2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for emacs 23.0.50.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE
=1; export DUALCASE
# for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix
*) set -o posix
;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits
='0123456789'
38 as_cr_alnum
=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
53 # Support unset when possible.
54 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself
=$0 ;;
73 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir
=.
78 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x
; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var
in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C
; export $as_var
111 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
123 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me
=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x
; then
155 if (eval ":") 2>/dev
/null
; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev
/null
; then
221 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
222 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir
=.
228 for as_base
in sh bash ksh sh5
; do
229 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
236 for as_shell
in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix
*) set -o posix
;;
258 CONFIG_SHELL
=$as_shell
260 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix
*) set -o posix
;;
286 as_func_ret_success
() {
289 as_func_ret_failure
() {
294 if as_func_success
; then
298 echo as_func_success failed.
301 if as_func_failure
; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success
; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure
; then
315 echo as_func_ret_failure succeeded.
318 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) ||
{ (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x
; then
343 for as_var
in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no
; then
352 echo This
script requires a shell
more modern than all the
353 echo shells that I found on your system. Please
install a
354 echo modern shell
, or manually run the
script under such a
355 echo shell
if you
do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") ||
{
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system
,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x
"$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
472 ECHO_C
= ECHO_N
= ECHO_T
=
476 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
483 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
490 rm -f conf$$ conf$$.exe conf$$.
file
491 if test -d conf$$.dir
; then
492 rm -f conf$$.dir
/conf$$.
file
498 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
506 elif ln conf$$.
file conf$$
2>/dev
/null
; then
511 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
512 rmdir conf$$.dir
2>/dev
/null
514 if mkdir
-p .
2>/dev
/null
; then
517 test -d .
/-p && rmdir .
/-p
521 if test -x / >/dev
/null
2>&1; then
524 if ls -dL / >/dev
/null
2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p
=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev
/null
6>&1
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 ac_default_prefix
=/usr
/local
564 ac_config_libobj_dir
=.
570 SHELL
=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
574 PACKAGE_TARNAME
='emacs'
575 PACKAGE_VERSION
='23.0.50'
576 PACKAGE_STRING
='emacs 23.0.50'
579 ac_unique_file
="src/lisp.h"
580 ac_config_libobj_dir
=src
581 # Factoring default headers for most tests.
582 ac_includes_default
="\
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
594 # ifdef HAVE_STDLIB_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
628 program_transform_name
722 x_default_search_path
739 ac_precious_vars
='build_alias
751 # Initialize some variables set by options.
753 ac_init_version
=false
754 # The variables have the same names as the options, with
755 # dashes changed to underlines.
763 program_transform_name
=s
,x
,x
,
771 # Installation directory options.
772 # These are left unexpanded so users can "make install exec_prefix=/foo"
773 # and all the variables that are supposed to be based on exec_prefix
774 # by default will actually change.
775 # Use braces instead of parens because sh, perl, etc. also accept them.
776 # (The list follows the same order as the GNU Coding Standards.)
777 bindir
='${exec_prefix}/bin'
778 sbindir
='${exec_prefix}/sbin'
779 libexecdir
='${exec_prefix}/libexec'
780 datarootdir
='${prefix}/share'
781 datadir
='${datarootdir}'
782 sysconfdir
='${prefix}/etc'
783 sharedstatedir
='${prefix}/com'
784 localstatedir
='${prefix}/var'
785 includedir
='${prefix}/include'
786 oldincludedir
='/usr/include'
787 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
788 infodir
='${datarootdir}/info'
793 libdir
='${exec_prefix}/lib'
794 localedir
='${datarootdir}/locale'
795 mandir
='${datarootdir}/man'
801 # If the previous option needs an argument, assign it.
802 if test -n "$ac_prev"; then
803 eval $ac_prev=\
$ac_option
809 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
813 # Accept the important Cygnus configure options, so we can diagnose typos.
815 case $ac_dashdash$ac_option in
819 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
821 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
824 -build |
--build |
--buil |
--bui |
--bu)
825 ac_prev
=build_alias
;;
826 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
827 build_alias
=$ac_optarg ;;
829 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
830 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
831 ac_prev
=cache_file
;;
832 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
833 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
834 cache_file
=$ac_optarg ;;
837 cache_file
=config.cache
;;
839 -datadir |
--datadir |
--datadi |
--datad)
841 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
842 datadir
=$ac_optarg ;;
844 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
845 |
--dataroo |
--dataro |
--datar)
846 ac_prev
=datarootdir
;;
847 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
848 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
849 datarootdir
=$ac_optarg ;;
851 -disable-* |
--disable-*)
852 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
853 # Reject names that are not valid shell variable names.
854 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
855 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
856 { (exit 1); exit 1; }; }
857 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
858 eval enable_
$ac_feature=no
;;
860 -docdir |
--docdir |
--docdi |
--doc |
--do)
862 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
865 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
867 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
870 -enable-* |
--enable-*)
871 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
872 # Reject names that are not valid shell variable names.
873 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
874 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
875 { (exit 1); exit 1; }; }
876 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
877 eval enable_
$ac_feature=\
$ac_optarg ;;
879 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
880 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
881 |
--exec |
--exe |
--ex)
882 ac_prev
=exec_prefix
;;
883 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
884 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
885 |
--exec=* |
--exe=* |
--ex=*)
886 exec_prefix
=$ac_optarg ;;
888 -gas |
--gas |
--ga |
--g)
889 # Obsolete; use --with-gas.
892 -help |
--help |
--hel |
--he |
-h)
894 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
895 ac_init_help
=recursive
;;
896 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
897 ac_init_help
=short
;;
899 -host |
--host |
--hos |
--ho)
900 ac_prev
=host_alias
;;
901 -host=* |
--host=* |
--hos=* |
--ho=*)
902 host_alias
=$ac_optarg ;;
904 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
906 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
908 htmldir
=$ac_optarg ;;
910 -includedir |
--includedir |
--includedi |
--included |
--include \
911 |
--includ |
--inclu |
--incl |
--inc)
912 ac_prev
=includedir
;;
913 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
914 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
915 includedir
=$ac_optarg ;;
917 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
919 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
920 infodir
=$ac_optarg ;;
922 -libdir |
--libdir |
--libdi |
--libd)
924 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
927 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
928 |
--libexe |
--libex |
--libe)
929 ac_prev
=libexecdir
;;
930 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
931 |
--libexe=* |
--libex=* |
--libe=*)
932 libexecdir
=$ac_optarg ;;
934 -localedir |
--localedir |
--localedi |
--localed |
--locale)
936 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
937 localedir
=$ac_optarg ;;
939 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
940 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
941 ac_prev
=localstatedir
;;
942 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
943 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
944 localstatedir
=$ac_optarg ;;
946 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
948 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
952 # Obsolete; use --without-fp.
955 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
956 |
--no-cr |
--no-c |
-n)
959 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
960 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
963 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
964 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
965 |
--oldin |
--oldi |
--old |
--ol |
--o)
966 ac_prev
=oldincludedir
;;
967 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
968 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
969 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
970 oldincludedir
=$ac_optarg ;;
972 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
974 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
977 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
978 |
--program-pre |
--program-pr |
--program-p)
979 ac_prev
=program_prefix
;;
980 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
981 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
982 program_prefix
=$ac_optarg ;;
984 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
985 |
--program-suf |
--program-su |
--program-s)
986 ac_prev
=program_suffix
;;
987 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
988 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
989 program_suffix
=$ac_optarg ;;
991 -program-transform-name |
--program-transform-name \
992 |
--program-transform-nam |
--program-transform-na \
993 |
--program-transform-n |
--program-transform- \
994 |
--program-transform |
--program-transfor \
995 |
--program-transfo |
--program-transf \
996 |
--program-trans |
--program-tran \
997 |
--progr-tra |
--program-tr |
--program-t)
998 ac_prev
=program_transform_name
;;
999 -program-transform-name=* |
--program-transform-name=* \
1000 |
--program-transform-nam=* |
--program-transform-na=* \
1001 |
--program-transform-n=* |
--program-transform-=* \
1002 |
--program-transform=* |
--program-transfor=* \
1003 |
--program-transfo=* |
--program-transf=* \
1004 |
--program-trans=* |
--program-tran=* \
1005 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1006 program_transform_name
=$ac_optarg ;;
1008 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1010 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1011 pdfdir
=$ac_optarg ;;
1013 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1015 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1018 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1019 |
-silent |
--silent |
--silen |
--sile |
--sil)
1022 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1024 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1026 sbindir
=$ac_optarg ;;
1028 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1029 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1030 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1032 ac_prev
=sharedstatedir
;;
1033 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1034 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1035 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1037 sharedstatedir
=$ac_optarg ;;
1039 -site |
--site |
--sit)
1041 -site=* |
--site=* |
--sit=*)
1044 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1046 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1047 srcdir
=$ac_optarg ;;
1049 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1050 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1051 ac_prev
=sysconfdir
;;
1052 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1053 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1054 sysconfdir
=$ac_optarg ;;
1056 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1057 ac_prev
=target_alias
;;
1058 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1059 target_alias
=$ac_optarg ;;
1061 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1064 -version |
--version |
--versio |
--versi |
--vers |
-V)
1065 ac_init_version
=: ;;
1068 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1069 # Reject names that are not valid shell variable names.
1070 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1071 { echo "$as_me: error: invalid package name: $ac_package" >&2
1072 { (exit 1); exit 1; }; }
1073 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1074 eval with_
$ac_package=\
$ac_optarg ;;
1076 -without-* |
--without-*)
1077 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1078 # Reject names that are not valid shell variable names.
1079 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1080 { echo "$as_me: error: invalid package name: $ac_package" >&2
1081 { (exit 1); exit 1; }; }
1082 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1083 eval with_
$ac_package=no
;;
1086 # Obsolete; use --with-x.
1089 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1090 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1091 ac_prev
=x_includes
;;
1092 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1093 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1094 x_includes
=$ac_optarg ;;
1096 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1097 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1098 ac_prev
=x_libraries
;;
1099 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1100 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1101 x_libraries
=$ac_optarg ;;
1103 -*) { echo "$as_me: error: unrecognized option: $ac_option
1104 Try \`$0 --help' for more information." >&2
1105 { (exit 1); exit 1; }; }
1109 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1110 # Reject names that are not valid shell variable names.
1111 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1112 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1113 { (exit 1); exit 1; }; }
1114 eval $ac_envvar=\
$ac_optarg
1115 export $ac_envvar ;;
1118 # FIXME: should be removed in autoconf 3.0.
1119 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1120 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1121 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1122 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1128 if test -n "$ac_prev"; then
1129 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1130 { echo "$as_me: error: missing argument to $ac_option" >&2
1131 { (exit 1); exit 1; }; }
1134 # Be sure to have absolute directory names.
1135 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1136 datadir sysconfdir sharedstatedir localstatedir includedir \
1137 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1138 libdir localedir mandir
1140 eval ac_val
=\$
$ac_var
1142 [\\/$
]* | ?
:[\\/]* ) continue;;
1143 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1145 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1146 { (exit 1); exit 1; }; }
1149 # There might be people who depend on the old broken behavior: `$host'
1150 # used to hold the argument of --host etc.
1151 # FIXME: To remove some day.
1154 target
=$target_alias
1156 # FIXME: To remove some day.
1157 if test "x$host_alias" != x
; then
1158 if test "x$build_alias" = x
; then
1159 cross_compiling
=maybe
1160 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1161 If a cross compiler is detected then cross compile mode will be used." >&2
1162 elif test "x$build_alias" != "x$host_alias"; then
1168 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1170 test "$silent" = yes && exec 6>/dev
/null
1173 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1174 ac_ls_di
=`ls -di .` &&
1175 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1176 { echo "$as_me: error: Working directory cannot be determined" >&2
1177 { (exit 1); exit 1; }; }
1178 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1179 { echo "$as_me: error: pwd does not report name of working directory" >&2
1180 { (exit 1); exit 1; }; }
1183 # Find the source files, if location was not specified.
1184 if test -z "$srcdir"; then
1185 ac_srcdir_defaulted
=yes
1186 # Try the directory containing this script, then the parent directory.
1187 ac_confdir
=`$as_dirname -- "$0" ||
1188 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1189 X"$0" : 'X\(//\)[^/]' \| \
1190 X"$0" : 'X\(//\)$' \| \
1191 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1211 if test ! -r "$srcdir/$ac_unique_file"; then
1215 ac_srcdir_defaulted
=no
1217 if test ! -r "$srcdir/$ac_unique_file"; then
1218 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1219 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1220 { (exit 1); exit 1; }; }
1222 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1224 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1225 { (exit 1); exit 1; }; }
1227 # When building in place, set srcdir=.
1228 if test "$ac_abs_confdir" = "$ac_pwd"; then
1231 # Remove unnecessary trailing slashes from srcdir.
1232 # Double slashes in file names in object file debugging info
1233 # mess up M-x gdb in Emacs.
1235 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1237 for ac_var
in $ac_precious_vars; do
1238 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1239 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1240 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1241 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1245 # Report the --help message.
1247 if test "$ac_init_help" = "long"; then
1248 # Omit some internal or obsolete options to make the list less imposing.
1249 # This message is too long to be a string in the A/UX 3.1 sh.
1251 \`configure' configures emacs 23.0.50 to adapt to many kinds of systems.
1253 Usage: $0 [OPTION]... [VAR=VALUE]...
1255 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1256 VAR=VALUE. See below for descriptions of some of the useful variables.
1258 Defaults for the options are specified in brackets.
1261 -h, --help display this help and exit
1262 --help=short display options specific to this package
1263 --help=recursive display the short help of all the included packages
1264 -V, --version display version information and exit
1265 -q, --quiet, --silent do not print \`checking...' messages
1266 --cache-file=FILE cache test results in FILE [disabled]
1267 -C, --config-cache alias for \`--cache-file=config.cache'
1268 -n, --no-create do not create output files
1269 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1271 Installation directories:
1272 --prefix=PREFIX install architecture-independent files in PREFIX
1273 [$ac_default_prefix]
1274 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1277 By default, \`make install' will install all the files in
1278 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1279 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1280 for instance \`--prefix=\$HOME'.
1282 For better control, use the options below.
1284 Fine tuning of the installation directories:
1285 --bindir=DIR user executables [EPREFIX/bin]
1286 --sbindir=DIR system admin executables [EPREFIX/sbin]
1287 --libexecdir=DIR program executables [EPREFIX/libexec]
1288 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1289 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1290 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1291 --libdir=DIR object code libraries [EPREFIX/lib]
1292 --includedir=DIR C header files [PREFIX/include]
1293 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1294 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1295 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1296 --infodir=DIR info documentation [DATAROOTDIR/info]
1297 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1298 --mandir=DIR man documentation [DATAROOTDIR/man]
1299 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1300 --htmldir=DIR html documentation [DOCDIR]
1301 --dvidir=DIR dvi documentation [DOCDIR]
1302 --pdfdir=DIR pdf documentation [DOCDIR]
1303 --psdir=DIR ps documentation [DOCDIR]
1309 --program-prefix=PREFIX prepend PREFIX to installed program names
1310 --program-suffix=SUFFIX append SUFFIX to installed program names
1311 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1314 --x-includes=DIR X include files are
in DIR
1315 --x-libraries=DIR X library files are
in DIR
1318 --build=BUILD configure
for building on BUILD
[guessed
]
1319 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1323 if test -n "$ac_init_help"; then
1324 case $ac_init_help in
1325 short | recursive
) echo "Configuration of emacs 23.0.50:";;
1330 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1331 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1332 --enable-carbon-app[=DIR
]
1333 specify
install directory
for Emacs.app on Mac OS X
1335 --enable-font-backend compile code of font-backend support
1336 --enable-asserts compile code with asserts enabled
1337 --enable-maintainer-mode
1338 enable make rules and dependencies not useful
(and
1339 sometimes confusing
) to the casual installer
1340 --enable-locallisppath=PATH
1341 directories Emacs should search
for lisp files
1342 specific to this site
1343 --disable-largefile omit support
for large files
1346 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1347 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1348 --without-pop don
't support POP mail retrieval with movemail
1349 --with-kerberos support Kerberos-authenticated POP
1350 --with-kerberos5 support Kerberos version 5 authenticated POP
1351 --with-hesiod support Hesiod to get the POP server host
1352 --without-sound don't compile with sound support
1353 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes, lucid
, athena
,
1355 --without-xpm don
't compile with XPM image support
1356 --without-jpeg don't compile with JPEG image support
1357 --without-tiff don
't compile with TIFF image support
1358 --without-gif don't compile with GIF image support
1359 --without-png don
't compile with PNG image support
1360 --without-rsvg don't compile with SVG image support
1361 --without-freetype don
't use Freetype for local font support
1362 --without-xft don't use XFT
for anti aliased fonts
1363 --without-libotf don
't use libotf for OpenType font support
1364 --without-m17n-flt don't use m17n-flt
for text shaping
1365 --without-toolkit-scroll-bars
1366 don
't use Motif or Xaw3d scroll bars
1367 --without-xaw3d don't use Xaw3d
1368 --without-xim don
't use X11 XIM
1369 --with-carbon use Carbon GUI on Mac OS X. This is unsupported!
1370 --without-gpm don't use
-lgpm for mouse support on a GNU
/Linux
1372 --without-dbus don
't compile with D-Bus support
1374 --with-pkg-config-prog=PATH
1375 Path to pkg-config for finding GTK and librsvg
1376 --with-x use the X Window System
1378 Some influential environment variables:
1379 CC C compiler command
1380 CFLAGS C compiler flags
1381 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1382 nonstandard directory <lib dir>
1383 LIBS libraries to pass to the linker, e.g. -l<library>
1384 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1385 you have headers in a nonstandard directory <include dir>
1387 XMKMF Path to xmkmf, Makefile generator for X Window System
1389 Use these variables to override the choices made by `configure' or to
help
1390 it to
find libraries and programs with nonstandard names
/locations.
1396 if test "$ac_init_help" = "recursive"; then
1397 # If there are subdirs, report their specific --help.
1398 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1399 test -d "$ac_dir" ||
continue
1403 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1405 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1406 # A ".." for each directory in $ac_dir_suffix.
1407 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1408 case $ac_top_builddir_sub in
1409 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1410 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1413 ac_abs_top_builddir
=$ac_pwd
1414 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1415 # for backward compatibility:
1416 ac_top_builddir
=$ac_top_build_prefix
1419 .
) # We are building in place.
1421 ac_top_srcdir
=$ac_top_builddir_sub
1422 ac_abs_top_srcdir
=$ac_pwd ;;
1423 [\\/]* | ?
:[\\/]* ) # Absolute name.
1424 ac_srcdir
=$srcdir$ac_dir_suffix;
1425 ac_top_srcdir
=$srcdir
1426 ac_abs_top_srcdir
=$srcdir ;;
1428 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1429 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1430 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1432 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1434 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1435 # Check for guested configure.
1436 if test -f "$ac_srcdir/configure.gnu"; then
1438 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1439 elif test -f "$ac_srcdir/configure"; then
1441 $SHELL "$ac_srcdir/configure" --help=recursive
1443 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1445 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1449 test -n "$ac_init_help" && exit $ac_status
1450 if $ac_init_version; then
1452 emacs configure
23.0.50
1453 generated by GNU Autoconf
2.61
1455 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1456 2002, 2003, 2004, 2005, 2006 Free Software Foundation
, Inc.
1457 This configure
script is free software
; the Free Software Foundation
1458 gives unlimited permission to copy
, distribute and modify it.
1462 cat >config.log
<<_ACEOF
1463 This file contains any messages produced by compilers while
1464 running configure, to aid debugging if configure makes a mistake.
1466 It was created by emacs $as_me 23.0.50, which was
1467 generated by GNU Autoconf 2.61. Invocation command line was
1479 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1480 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1481 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1482 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1483 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1485 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1486 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1488 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1489 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1490 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1491 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1492 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1493 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1494 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1498 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1502 test -z "$as_dir" && as_dir
=.
1503 echo "PATH: $as_dir"
1519 # Keep a trace of the command line.
1520 # Strip out --no-create and --no-recursion so they do not pile up.
1521 # Strip out --silent because we don't want to record it for future runs.
1522 # Also quote any args containing shell meta-characters.
1523 # Make two passes to allow for proper duplicate-argument suppression.
1527 ac_must_keep_next
=false
1533 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1534 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1535 |
-silent |
--silent |
--silen |
--sile |
--sil)
1538 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1541 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1543 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1544 if test $ac_must_keep_next = true
; then
1545 ac_must_keep_next
=false
# Got value, back to normal.
1548 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1549 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1550 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1551 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1552 case "$ac_configure_args0 " in
1553 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1556 -* ) ac_must_keep_next
=true
;;
1559 ac_configure_args
="$ac_configure_args '$ac_arg'"
1564 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1565 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1567 # When interrupted or exit'd, cleanup temporary files, and complete
1568 # config.log. We remove comments because anyway the quotes in there
1569 # would cause problems or look ugly.
1570 # WARNING: Use '\'' to represent an apostrophe within the trap.
1571 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1572 trap 'exit_status=$?
1573 # Save into config.log some information that might help in debugging.
1578 ## ---------------- ##
1579 ## Cache variables. ##
1580 ## ---------------- ##
1583 # The following way of writing the cache mishandles newlines in values,
1585 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1586 eval ac_val=\$$ac_var
1590 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1591 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1594 _ | IFS | as_nl) ;; #(
1595 *) $as_unset $ac_var ;;
1600 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1601 *${as_nl}ac_space=\ *)
1603 "s/'\''/'\''\\\\'\'''\''/g;
1604 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1607 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1615 ## ----------------- ##
1616 ## Output variables. ##
1617 ## ----------------- ##
1620 for ac_var in $ac_subst_vars
1622 eval ac_val=\$$ac_var
1624 *\'\''*) ac_val
=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1626 echo "$ac_var='\''$ac_val'\''"
1630 if test -n "$ac_subst_files"; then
1632 ## ------------------- ##
1633 ## File substitutions. ##
1634 ## ------------------- ##
1637 for ac_var
in $ac_subst_files
1639 eval ac_val
=\$
$ac_var
1641 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1643 echo "$ac_var='\''$ac_val'\''"
1648 if test -s confdefs.h; then
1658 test "$ac_signal" != 0 &&
1659 echo "$as_me: caught signal $ac_signal"
1660 echo "$as_me: exit $exit_status"
1662 rm -f core *.core core.conftest.* &&
1663 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1666 for ac_signal
in 1 2 13 15; do
1667 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1671 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1672 rm -f -r conftest
* confdefs.h
1674 # Predefined preprocessor variables.
1676 cat >>confdefs.h
<<_ACEOF
1677 #define PACKAGE_NAME "$PACKAGE_NAME"
1681 cat >>confdefs.h
<<_ACEOF
1682 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1686 cat >>confdefs.h
<<_ACEOF
1687 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1691 cat >>confdefs.h
<<_ACEOF
1692 #define PACKAGE_STRING "$PACKAGE_STRING"
1696 cat >>confdefs.h
<<_ACEOF
1697 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1701 # Let the site file select an alternate cache file if it wants to.
1702 # Prefer explicitly selected file to automatically selected ones.
1703 if test -n "$CONFIG_SITE"; then
1704 set x
"$CONFIG_SITE"
1705 elif test "x$prefix" != xNONE
; then
1706 set x
"$prefix/share/config.site" "$prefix/etc/config.site"
1708 set x
"$ac_default_prefix/share/config.site" \
1709 "$ac_default_prefix/etc/config.site"
1714 if test -r "$ac_site_file"; then
1715 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1716 echo "$as_me: loading site script $ac_site_file" >&6;}
1717 sed 's/^/| /' "$ac_site_file" >&5
1722 if test -r "$cache_file"; then
1723 # Some versions of bash will fail to source /dev/null (special
1724 # files actually), so we avoid doing that.
1725 if test -f "$cache_file"; then
1726 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1727 echo "$as_me: loading cache $cache_file" >&6;}
1729 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
1730 *) .
"./$cache_file";;
1734 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1735 echo "$as_me: creating cache $cache_file" >&6;}
1739 ac_header_list
="$ac_header_list sys/time.h"
1740 ac_header_list
="$ac_header_list unistd.h"
1741 ac_func_list
="$ac_func_list alarm"
1742 # Check that the precious variables saved in the cache have kept the same
1744 ac_cache_corrupted
=false
1745 for ac_var
in $ac_precious_vars; do
1746 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1747 eval ac_new_set
=\
$ac_env_${ac_var}_set
1748 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
1749 eval ac_new_val
=\
$ac_env_${ac_var}_value
1750 case $ac_old_set,$ac_new_set in
1752 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1753 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1754 ac_cache_corrupted
=: ;;
1756 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1757 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1758 ac_cache_corrupted
=: ;;
1761 if test "x$ac_old_val" != "x$ac_new_val"; then
1762 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1763 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1764 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1765 echo "$as_me: former value: $ac_old_val" >&2;}
1766 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1767 echo "$as_me: current value: $ac_new_val" >&2;}
1768 ac_cache_corrupted
=:
1771 # Pass precious variables to config.status.
1772 if test "$ac_new_set" = set; then
1774 *\'*) ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1775 *) ac_arg
=$ac_var=$ac_new_val ;;
1777 case " $ac_configure_args " in
1778 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1779 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1783 if $ac_cache_corrupted; then
1784 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1785 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1786 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1787 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1788 { (exit 1); exit 1; }; }
1816 ac_cpp
='$CPP $CPPFLAGS'
1817 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1818 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1819 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1822 ac_config_headers
="$ac_config_headers src/config.h:src/config.in"
1826 test "$program_prefix" != NONE
&&
1827 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
1828 # Use a double $ so make ignores it.
1829 test "$program_suffix" != NONE
&&
1830 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
1831 # Double any \ or $. echo might interpret backslashes.
1832 # By default was `s,x,x', remove it if useless.
1833 cat <<\_ACEOF
>conftest.
sed
1834 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1836 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1840 lispdir
='${datadir}/emacs/${version}/lisp'
1841 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
1842 '${datadir}/emacs/site-lisp'
1843 lisppath
='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1844 etcdir
='${datadir}/emacs/${version}/etc'
1845 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
1846 docdir
='${datadir}/emacs/${version}/etc'
1847 gamedir
='${localstatedir}/games/emacs'
1854 # Check whether --with-pop was given.
1855 if test "${with_pop+set}" = set; then
1861 if test "$with_pop" = yes; then
1862 cat >>confdefs.h
<<\_ACEOF
1863 #define MAIL_USE_POP 1
1870 # Check whether --with-kerberos was given.
1871 if test "${with_kerberos+set}" = set; then
1872 withval
=$with_kerberos;
1877 if test "$with_kerberos" = yes; then
1878 cat >>confdefs.h
<<\_ACEOF
1886 # Check whether --with-kerberos5 was given.
1887 if test "${with_kerberos5+set}" = set; then
1888 withval
=$with_kerberos5;
1893 if test "${with_kerberos5}" = yes; then
1894 if test "${with_kerberos}" != yes; then
1896 cat >>confdefs.h
<<\_ACEOF
1902 cat >>confdefs.h
<<\_ACEOF
1909 # Check whether --with-hesiod was given.
1910 if test "${with_hesiod+set}" = set; then
1911 withval
=$with_hesiod;
1916 if test "$with_hesiod" = yes; then
1918 cat >>confdefs.h
<<\_ACEOF
1925 # Check whether --with-sound was given.
1926 if test "${with_sound+set}" = set; then
1927 withval
=$with_sound;
1934 # Check whether --with-x-toolkit was given.
1935 if test "${with_x_toolkit+set}" = set; then
1936 withval
=$with_x_toolkit; case "${withval}" in
1937 y | ye |
yes ) val
=gtk
;;
1939 l | lu | luc | luci | lucid
) val
=lucid
;;
1940 a |
at | ath | athe | athen | athena
) val
=athena
;;
1941 m | mo | mot | moti | motif
) val
=motif
;;
1942 g | gt | gtk
) val
=gtk
;;
1944 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
1945 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1946 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
1947 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
1948 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1949 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
1950 { (exit 1); exit 1; }; }
1959 # Check whether --with-xpm was given.
1960 if test "${with_xpm+set}" = set; then
1967 # Check whether --with-jpeg was given.
1968 if test "${with_jpeg+set}" = set; then
1975 # Check whether --with-tiff was given.
1976 if test "${with_tiff+set}" = set; then
1983 # Check whether --with-gif was given.
1984 if test "${with_gif+set}" = set; then
1991 # Check whether --with-png was given.
1992 if test "${with_png+set}" = set; then
1999 # Check whether --with-rsvg was given.
2000 if test "${with_rsvg+set}" = set; then
2008 # Check whether --with-freetype was given.
2009 if test "${with_freetype+set}" = set; then
2010 withval
=$with_freetype;
2016 # Check whether --with-xft was given.
2017 if test "${with_xft+set}" = set; then
2024 # Check whether --with-libotf was given.
2025 if test "${with_libotf+set}" = set; then
2026 withval
=$with_libotf;
2032 # Check whether --with-m17n-flt was given.
2033 if test "${with_m17n_flt+set}" = set; then
2034 withval
=$with_m17n_flt;
2041 # Check whether --with-toolkit-scroll-bars was given.
2042 if test "${with_toolkit_scroll_bars+set}" = set; then
2043 withval
=$with_toolkit_scroll_bars;
2045 with_toolkit_scroll_bars
=yes
2049 # Check whether --with-xaw3d was given.
2050 if test "${with_xaw3d+set}" = set; then
2051 withval
=$with_xaw3d;
2057 # Check whether --with-xim was given.
2058 if test "${with_xim+set}" = set; then
2065 # Check whether --with-carbon was given.
2066 if test "${with_carbon+set}" = set; then
2067 withval
=$with_carbon;
2074 # Check whether --with-gpm was given.
2075 if test "${with_gpm+set}" = set; then
2082 # Check whether --with-dbus was given.
2083 if test "${with_dbus+set}" = set; then
2091 # Check whether --with-gtk was given.
2092 if test "${with_gtk+set}" = set; then
2093 withval
=$with_gtk; { { echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2094 specify a toolkit." >&5
2095 echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2096 specify a toolkit." >&2;}
2097 { (exit 1); exit 1; }; }
2102 # Check whether --with-gcc was given.
2103 if test "${with_gcc+set}" = set; then
2104 withval
=$with_gcc; { { echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2105 variable to specify a compiler." >&5
2106 echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2107 variable to specify a compiler." >&2;}
2108 { (exit 1); exit 1; }; }
2113 # Check whether --with-pkg-config-prog was given.
2114 if test "${with_pkg_config_prog+set}" = set; then
2115 withval
=$with_pkg_config_prog;
2118 if test "X${with_pkg_config_prog}" != X
; then
2119 if test "${with_pkg_config_prog}" != yes; then
2120 PKG_CONFIG
="${with_pkg_config_prog}"
2124 # Check whether --enable-carbon-app was given.
2125 if test "${enable_carbon_app+set}" = set; then
2126 enableval
=$enable_carbon_app; carbon_appdir_x
=${enableval}
2130 # Check whether --enable-font-backend was given.
2131 if test "${enable_font_backend+set}" = set; then
2132 enableval
=$enable_font_backend; USE_FONT_BACKEND
=$enableval
2138 # Check whether --enable-asserts was given.
2139 if test "${enable_asserts+set}" = set; then
2140 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
2146 # Check whether --enable-maintainer-mode was given.
2147 if test "${enable_maintainer_mode+set}" = set; then
2148 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2150 USE_MAINTAINER_MODE
=no
2153 if test $USE_MAINTAINER_MODE = yes; then
2160 # Check whether --enable-locallisppath was given.
2161 if test "${enable_locallisppath+set}" = set; then
2162 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
2164 elif test "${enableval}" != "yes"; then
2165 locallisppath
=${enableval}
2170 #### Make srcdir absolute, if it isn't already. It's important to
2171 #### avoid running the path through pwd unnecessarily, since pwd can
2172 #### give you automounter prefixes, which can go away. We do all this
2173 #### so Emacs can find its files when run uninstalled.
2174 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2179 ## We may be able to use the $PWD environment variable to make this
2180 ## absolute. But sometimes PWD is inaccurate.
2181 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2182 ## but that tested only for a well-formed and valid PWD,
2183 ## it did not object when PWD was well-formed and valid but just wrong.
2184 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2188 srcdir
="`(cd ${srcdir}; pwd)`"
2191 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2194 #### Check if the source directory already has a configured system in it.
2195 if test `pwd` != `(cd ${srcdir} && pwd)` \
2196 && test -f "${srcdir}/src/config.h" ; then
2197 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2198 as a build directory right now; it has been configured in its own
2199 right. To configure in another directory as well, you MUST
2200 use GNU make. If you do not have GNU make, then you must
2201 now do \`make distclean' in ${srcdir},
2202 and then run $0 again." >&5
2203 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2204 as a build directory right now; it has been configured in its own
2205 right. To configure in another directory as well, you MUST
2206 use GNU make. If you do not have GNU make, then you must
2207 now do \`make distclean' in ${srcdir},
2208 and then run $0 again." >&2;}
2211 #### Given the configuration name, set machfile and opsysfile to the
2212 #### names of the m/*.h and s/*.h files we should use.
2214 ### Canonicalize the configuration name.
2217 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2218 if test -f "$ac_dir/install-sh"; then
2220 ac_install_sh
="$ac_aux_dir/install-sh -c"
2222 elif test -f "$ac_dir/install.sh"; then
2224 ac_install_sh
="$ac_aux_dir/install.sh -c"
2226 elif test -f "$ac_dir/shtool"; then
2228 ac_install_sh
="$ac_aux_dir/shtool install -c"
2232 if test -z "$ac_aux_dir"; then
2233 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2234 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2235 { (exit 1); exit 1; }; }
2238 # These three variables are undocumented and unsupported,
2239 # and are intended to be withdrawn in a future Autoconf release.
2240 # They can cause serious problems if a builder's source tree is in a directory
2241 # whose full name contains unusual characters.
2242 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2243 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2244 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2247 # Make sure we can run config.sub.
2248 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2249 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2250 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2251 { (exit 1); exit 1; }; }
2253 { echo "$as_me:$LINENO: checking build system type" >&5
2254 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2255 if test "${ac_cv_build+set}" = set; then
2256 echo $ECHO_N "(cached) $ECHO_C" >&6
2258 ac_build_alias
=$build_alias
2259 test "x$ac_build_alias" = x
&&
2260 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2261 test "x$ac_build_alias" = x
&&
2262 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2263 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2264 { (exit 1); exit 1; }; }
2265 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2266 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2267 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2268 { (exit 1); exit 1; }; }
2271 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2272 echo "${ECHO_T}$ac_cv_build" >&6; }
2273 case $ac_cv_build in
2275 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2276 echo "$as_me: error: invalid value of canonical build" >&2;}
2277 { (exit 1); exit 1; }; };;
2280 ac_save_IFS
=$IFS; IFS
='-'
2286 # Remember, the first character of IFS is used to create $*,
2287 # except with old shells:
2290 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2293 { echo "$as_me:$LINENO: checking host system type" >&5
2294 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2295 if test "${ac_cv_host+set}" = set; then
2296 echo $ECHO_N "(cached) $ECHO_C" >&6
2298 if test "x$host_alias" = x
; then
2299 ac_cv_host
=$ac_cv_build
2301 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2302 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2303 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2304 { (exit 1); exit 1; }; }
2308 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2309 echo "${ECHO_T}$ac_cv_host" >&6; }
2312 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2313 echo "$as_me: error: invalid value of canonical host" >&2;}
2314 { (exit 1); exit 1; }; };;
2317 ac_save_IFS
=$IFS; IFS
='-'
2323 # Remember, the first character of IFS is used to create $*,
2324 # except with old shells:
2327 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2331 configuration
=${host_alias-${build_alias-$host}}
2335 ### If you add support for a new configuration, add code to this
2336 ### switch statement to recognize your configuration name and select
2337 ### the appropriate operating system and machine description files.
2339 ### You would hope that you could choose an m/*.h file pretty much
2340 ### based on the machine portion of the configuration name, and an s-
2341 ### file based on the operating system portion. However, it turns out
2342 ### that each m/*.h file is pretty manufacturer-specific - for
2343 ### example hp9000s300.h is a 68000 machine;
2344 ### mips.h, pmax.h are all MIPS
2345 ### machines. So we basically have to have a special case for each
2346 ### configuration name.
2348 ### As far as handling version numbers on operating systems is
2349 ### concerned, make sure things will fail in a fixable way. If
2350 ### /etc/MACHINES doesn't say anything about version numbers, be
2351 ### prepared to handle anything reasonably. If version numbers
2352 ### matter, be sure /etc/MACHINES says something about it.
2354 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2355 ### "System V Release 4"; he writes, "The old convention encouraged
2356 ### confusion between `system' and `release' levels'."
2358 machine
='' opsys
='' unported
=no
2359 case "${canonical}" in
2364 case "${canonical}" in
2365 alpha
*-*-freebsd*) machine
=alpha
;;
2366 arm
*-*-freebsd*) machine
=arm
;;
2367 ia64-
*-freebsd*) machine
=ia64
;;
2368 sparc64-
*-freebsd*) machine
=sparc
;;
2369 powerpc-
*-freebsd*) machine
=macppc
;;
2370 i
[3456]86-*-freebsd*) machine
=intel386
;;
2371 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2375 ## FreeBSD kernel + glibc based userland
2378 case "${canonical}" in
2379 alpha
*-*-kfreebsd*) machine
=alpha
;;
2380 ia64-
*-kfreebsd*) machine
=ia64
;;
2381 sparc64-
*-kfreebsd*) machine
=sparc
;;
2382 powerpc-
*-kfreebsd*) machine
=macppc
;;
2383 i
[3456]86-*-kfreebsd*) machine
=intel386
;;
2384 amd64-
*-kfreebsd*|x86_64-
*-kfreebsd*) machine
=amdx86-64
;;
2391 if test -f /usr
/lib
/crti.o
; then
2393 cat >>confdefs.h
<<\_ACEOF
2399 case "${canonical}" in
2400 alpha
*-*-netbsd*) machine
=alpha
;;
2401 i
[3456]86-*-netbsd*) machine
=intel386
;;
2403 # This is somewhat bogus.
2404 machine
=hp9000s300
;;
2405 mips-
*-netbsd*) machine
=pmax
;;
2406 mipsel-
*-netbsd*) machine
=pmax
;;
2407 mipseb-
*-netbsd*) machine
=pmax
;;
2408 powerpc-
*-netbsd*) machine
=macppc
;;
2409 sparc
*-*-netbsd*) machine
=sparc
;;
2410 vax-
*-netbsd*) machine
=vax
;;
2411 arm-
*-netbsd*) machine
=arm
;;
2412 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2413 hppa-
*-netbsd*) machine
=hp800
;;
2420 case "${canonical}" in
2421 alpha
*-*-openbsd*) machine
=alpha
;;
2422 arm-
*-openbsd*) machine
=arm
;;
2423 hppa-
*-openbsd*) machine
=hp9000s300
;;
2424 i386-
*-openbsd*) machine
=intel386
;;
2425 m68k-
*-openbsd*) machine
=hp9000s300
;;
2426 powerpc-
*-openbsd*) machine
=macppc
;;
2427 sparc
*-*-openbsd*) machine
=sparc
;;
2428 vax-
*-openbsd*) machine
=vax
;;
2429 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2436 case "${canonical}" in
2437 i
[3456]86-*-lynxos*) machine
=intel386
;;
2438 powerpc-
*-lynxos*) machine
=powerpc
;;
2445 case "${canonical}" in
2446 i
[345]86-*-bsdi*) machine
=intel386
;;
2447 sparc-
*-bsdi*) machine
=sparc
;;
2448 powerpc-
*-bsdi*) machine
=macppc
;;
2450 case "${canonical}" in
2451 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
2452 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
2453 *-*-bsdi2* ) opsys
=bsdos2-1
;;
2454 *-*-bsdi3* ) opsys
=bsdos3
;;
2455 *-*-bsdi[45]* ) opsys
=bsdos4
;;
2459 alpha
*-*-linux-gnu* )
2460 machine
=alpha opsys
=gnu-linux
2464 machine
=arm opsys
=gnu-linux
2467 ## Apple Darwin / Mac OS X
2469 case "${canonical}" in
2470 i
[3456]86-* ) machine
=intel386
;;
2471 powerpc-
* ) machine
=powermac
;;
2475 # Define CPP as follows to make autoconf work correctly.
2476 CPP
="${CC-cc} -E -no-cpp-precomp"
2477 # Use fink packages if available.
2478 if test -d /sw
/include
&& test -d /sw
/lib
; then
2479 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2480 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2481 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2486 i
[3456]86-cubix-sysv* )
2487 machine
=intel386 opsys
=usg5-3
2490 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
2491 machine
=pmax opsys
=bsd4-2
2493 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
2494 machine
=pmax opsys
=bsd4-3
2497 machine
=pmax opsys
=ultrix4-3
2499 ## HP 9000 series 200 or 300
2501 machine
=hp9000s300 opsys
=bsd4-3
2503 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2505 case "`uname -r`" in
2506 ## Someone's system reports A.B8.05 for this.
2507 ## I wonder what other possibilities there are.
2508 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2509 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2510 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2511 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2512 *) machine
=hp9000s300 opsys
=hpux
;;
2516 ## HP 9000 series 700 and 800, running HP/UX
2518 machine
=hp800 opsys
=hpux
2521 machine
=hp800 opsys
=hpux8
2523 hppa
*-hp-hpux9shr* )
2524 machine
=hp800 opsys
=hpux9shr
2527 machine
=hp800 opsys
=hpux9
2529 hppa
*-hp-hpux10.2
* )
2530 machine
=hp800 opsys
=hpux10-20
2533 machine
=hp800 opsys
=hpux10
2535 hppa
*-hp-hpux1[1-9]* )
2536 machine
=hp800 opsys
=hpux11
2537 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2540 hppa
*-*-linux-gnu* )
2541 machine
=hp800 opsys
=gnu-linux
2544 ## HP 9000 series 700 and 800, running HP/UX
2546 ## Cross-compilation? Nah!
2547 case "`uname -r`" in
2548 ## Someone's system reports A.B8.05 for this.
2549 ## I wonder what other possibilities there are.
2550 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2551 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2552 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2553 *) machine
=hp800 opsys
=hpux10
;;
2557 machine
=hp800 opsys
=nextstep
2562 machine
=ibm370aix opsys
=usg5-3
2565 machine
=ibms390 opsys
=gnu-linux
2567 s390x-
*-linux-gnu* )
2568 machine
=ibms390x opsys
=gnu-linux
2570 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2571 machine
=ibmrs6000 opsys
=aix3-1
2573 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2574 machine
=ibmrs6000 opsys
=aix3-2-5
2576 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2577 machine
=ibmrs6000 opsys
=aix4-1
2579 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2580 machine
=ibmrs6000 opsys
=aix4-2
2582 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
2583 machine
=ibmrs6000 opsys
=aix4-2
2585 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2586 machine
=ibmrs6000 opsys
=aix4-2
2588 rs6000-ibm-aix5
* | powerpc-ibm-aix6
* )
2589 machine
=ibmrs6000 opsys
=aix4-2
2591 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2592 machine
=ibmrs6000 opsys
=aix4
2594 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2595 machine
=ibmrs6000 opsys
=aix4-1
2597 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2598 machine
=ibmrs6000 opsys
=aix3-2
2602 i
[3456]86-prime-sysv* )
2603 machine
=i386 opsys
=usg5-3
2606 ## ncr machine running svr4.3.
2607 i
[3456]86-ncr-sysv4.3
)
2608 machine
=ncr386 opsys
=usg5-4-3
2611 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2612 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2613 i
[3456]86-ncr-sysv* )
2614 machine
=ncr386 opsys
=usg5-4-2
2617 ## Macintosh PowerPC
2618 powerpc
*-*-linux-gnu* )
2619 machine
=macppc opsys
=gnu-linux
2622 ## Workstations sold by MIPS
2623 ## This is not necessarily all workstations using the MIPS processor -
2624 ## Irises are produced by SGI, and DECstations by DEC.
2627 machine
=mips opsys
=bsd4-3
2630 machine
=mips opsys
=usg5-2-2
2634 m68
*-next-* | m68k-
*-nextstep* )
2635 machine
=m68k opsys
=nextstep
2640 machine
=ews4800 opsys
=ux4800
2644 mips-siemens-sysv
* | mips-sni-sysv
*)
2645 machine
=mips-siemens opsys
=usg5-4
2646 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2647 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2650 ## Silicon Graphics machines
2653 machine
=iris4d opsys
=irix6-5
2654 # Without defining _LANGUAGE_C, things get masked out in the headers
2655 # so that, for instance, grepping for `free' in stdlib.h fails and
2656 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2657 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2658 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2662 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2663 machine
=sparc opsys
=gnu-linux
2666 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2667 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2668 | rs6000-
*-solaris2*)
2669 case "${canonical}" in
2670 i
[3456]86-*-* ) machine
=intel386
;;
2671 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2672 powerpcle
* ) machine
=powerpcle
;;
2673 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2674 sparc
* ) machine
=sparc
;;
2677 case "${canonical}" in
2678 *-sunos5.3
* |
*-solaris2.3
* )
2680 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2682 *-sunos5.4
* |
*-solaris2.4
* )
2684 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2687 *-sunos5.5
* |
*-solaris2.5
* )
2689 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2692 *-sunos5.6
* |
*-solaris2.6
* )
2694 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2697 *-sunos5* |
*-solaris* )
2699 emacs_check_sunpro_c
=yes
2700 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2704 ## Watch out for a compiler that we know will not work.
2705 case "${canonical}" in
2706 *-solaris* |
*-sunos5* )
2707 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2708 ## /usr/ucb/cc doesn't work;
2709 ## we should find some other compiler that does work.
2717 machine
=sparc opsys
=nextstep
2720 ## Tandem Integrity S2
2722 machine
=tandem-s2 opsys
=usg5-3
2728 case "${canonical}" in
2729 *-bsd4.1
* ) opsys
=bsd4-1
;;
2730 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
2731 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
2732 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
2733 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
2734 *-vms* ) opsys
=vms
;;
2741 machine
=ia64 opsys
=gnu-linux
2744 ## Intel 386 machines where we don't care about the manufacturer
2747 case "${canonical}" in
2748 *-cygwin ) opsys
=cygwin
;;
2749 *-darwin* ) opsys
=darwin
2750 CPP
="${CC-cc} -E -no-cpp-precomp"
2752 *-linux-gnu* ) opsys
=gnu-linux
;;
2753 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2754 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2755 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2756 *-386bsd* ) opsys
=386bsd
;;
2757 *-nextstep* ) opsys
=nextstep
;;
2758 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2762 ## m68k Linux-based GNU system
2764 machine
=m68k opsys
=gnu-linux
2767 ## Mips Linux-based GNU system
2768 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
2769 machine
=mips opsys
=gnu-linux
2773 sparc-fujitsu-sysv4
* )
2774 machine
=sparc opsys
=uxpds
2775 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2779 ## AMD x86-64 Linux-based GNU system
2780 x86_64-
*-linux-gnu* )
2781 machine
=amdx86-64 opsys
=gnu-linux
2784 ## Tensilica Xtensa Linux-based GNU system
2785 xtensa
*-*-linux-gnu* )
2786 machine
=xtensa opsys
=gnu-linux
2794 ### If the code above didn't choose an operating system, just choose
2795 ### an operating system based on the configuration name. You really
2796 ### only want to use this when you have no idea what the right
2797 ### operating system is; if you know what operating systems a machine
2798 ### runs, it's cleaner to make it explicit in the case statement
2800 if test x
"${opsys}" = x
; then
2801 case "${canonical}" in
2802 *-gnu* ) opsys
=gnu
;;
2803 *-bsd4.
[01] ) opsys
=bsd4-1
;;
2804 *-bsd4.2
) opsys
=bsd4-2
;;
2805 *-bsd4.3
) opsys
=bsd4-3
;;
2806 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
2807 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
2808 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
2809 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
2810 *-sysv4.2uw
* ) opsys
=unixware
;;
2811 *-sysv5uw* ) opsys
=unixware
;;
2812 *-sysv5OpenUNIX* ) opsys
=unixware
;;
2813 *-sysv4.1
* |
*-sysvr4.1
* )
2814 NON_GNU_CPP
=/usr
/lib
/cpp
2816 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2817 if [ x
$NON_GNU_CPP = x
]; then
2818 if [ -f /usr
/ccs
/lib
/cpp
]; then
2819 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2821 NON_GNU_CPP
=/lib
/cpp
2825 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2832 ### Tests for sytems that we beleive are obsolete and should be desupported.
2834 case "${machine}" in
2835 pmax | hp9000s300 | ibm370aix | ncr386 | ews4800 | mips-siemens | powerpcle | tandem-s2
)
2836 echo "The system that you are configuring on: ${canonical} is considered to be obsolete"
2837 echo "and it is planned to be desupported in the next version of Emacs"
2838 echo "Please email emacs-devel@gnu.org as soon as possible if this system is still in use."
2839 echo "The code is still functional, but you need to edit the 'configure' script and remove the"
2840 echo "exit 33 line. After that you can run configure again and 'complete' the build."
2846 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
)
2847 echo "The system that you are configuring on: ${canonical} is considered to be obsolete"
2848 echo "and it is planned to be desupported in the next version of Emacs"
2849 echo "Please email emacs-devel@gnu.org as soon as possible if this system is still in use."
2850 echo "The code is still functional, but you need to edit the 'configure' script and remove the"
2851 echo "'exit 44' line. After that you can run 'configure' again and complete the build."
2858 if test $unported = yes; then
2859 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2860 Check \`etc/MACHINES' for recognized configuration names." >&5
2861 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2862 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2863 { (exit 1); exit 1; }; }
2866 machfile
="m/${machine}.h"
2867 opsysfile
="s/${opsys}.h"
2870 #### Choose a compiler.
2871 test -n "$CC" && cc_specified
=yes
2873 # Save the value of CFLAGS that the user specified.
2874 SPECIFIED_CFLAGS
="$CFLAGS"
2877 ac_cpp
='$CPP $CPPFLAGS'
2878 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2879 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2880 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2881 if test -n "$ac_tool_prefix"; then
2882 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2883 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2884 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2886 if test "${ac_cv_prog_CC+set}" = set; then
2887 echo $ECHO_N "(cached) $ECHO_C" >&6
2889 if test -n "$CC"; then
2890 ac_cv_prog_CC
="$CC" # Let the user override the test.
2892 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2896 test -z "$as_dir" && as_dir
=.
2897 for ac_exec_ext
in '' $ac_executable_extensions; do
2898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2899 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2910 if test -n "$CC"; then
2911 { echo "$as_me:$LINENO: result: $CC" >&5
2912 echo "${ECHO_T}$CC" >&6; }
2914 { echo "$as_me:$LINENO: result: no" >&5
2915 echo "${ECHO_T}no" >&6; }
2920 if test -z "$ac_cv_prog_CC"; then
2922 # Extract the first word of "gcc", so it can be a program name with args.
2923 set dummy gcc
; ac_word
=$2
2924 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2926 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2927 echo $ECHO_N "(cached) $ECHO_C" >&6
2929 if test -n "$ac_ct_CC"; then
2930 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2932 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2936 test -z "$as_dir" && as_dir
=.
2937 for ac_exec_ext
in '' $ac_executable_extensions; do
2938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2939 ac_cv_prog_ac_ct_CC
="gcc"
2940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2949 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2950 if test -n "$ac_ct_CC"; then
2951 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2952 echo "${ECHO_T}$ac_ct_CC" >&6; }
2954 { echo "$as_me:$LINENO: result: no" >&5
2955 echo "${ECHO_T}no" >&6; }
2958 if test "x$ac_ct_CC" = x
; then
2961 case $cross_compiling:$ac_tool_warned in
2963 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2964 whose name does not start with the host triplet. If you think this
2965 configuration is useful to you, please write to autoconf@gnu.org." >&5
2966 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2967 whose name does not start with the host triplet. If you think this
2968 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2969 ac_tool_warned
=yes ;;
2977 if test -z "$CC"; then
2978 if test -n "$ac_tool_prefix"; then
2979 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2980 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2981 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2983 if test "${ac_cv_prog_CC+set}" = set; then
2984 echo $ECHO_N "(cached) $ECHO_C" >&6
2986 if test -n "$CC"; then
2987 ac_cv_prog_CC
="$CC" # Let the user override the test.
2989 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2993 test -z "$as_dir" && as_dir
=.
2994 for ac_exec_ext
in '' $ac_executable_extensions; do
2995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2996 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3007 if test -n "$CC"; then
3008 { echo "$as_me:$LINENO: result: $CC" >&5
3009 echo "${ECHO_T}$CC" >&6; }
3011 { echo "$as_me:$LINENO: result: no" >&5
3012 echo "${ECHO_T}no" >&6; }
3018 if test -z "$CC"; then
3019 # Extract the first word of "cc", so it can be a program name with args.
3020 set dummy cc
; ac_word
=$2
3021 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3023 if test "${ac_cv_prog_CC+set}" = set; then
3024 echo $ECHO_N "(cached) $ECHO_C" >&6
3026 if test -n "$CC"; then
3027 ac_cv_prog_CC
="$CC" # Let the user override the test.
3030 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3034 test -z "$as_dir" && as_dir
=.
3035 for ac_exec_ext
in '' $ac_executable_extensions; do
3036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3037 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3038 ac_prog_rejected
=yes
3042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3049 if test $ac_prog_rejected = yes; then
3050 # We found a bogon in the path, so make sure we never use it.
3051 set dummy
$ac_cv_prog_CC
3053 if test $# != 0; then
3054 # We chose a different compiler from the bogus one.
3055 # However, it has the same basename, so the bogon will be chosen
3056 # first if we set CC to just the basename; use the full file name.
3058 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3064 if test -n "$CC"; then
3065 { echo "$as_me:$LINENO: result: $CC" >&5
3066 echo "${ECHO_T}$CC" >&6; }
3068 { echo "$as_me:$LINENO: result: no" >&5
3069 echo "${ECHO_T}no" >&6; }
3074 if test -z "$CC"; then
3075 if test -n "$ac_tool_prefix"; then
3076 for ac_prog
in cl.exe
3078 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3079 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3080 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3082 if test "${ac_cv_prog_CC+set}" = set; then
3083 echo $ECHO_N "(cached) $ECHO_C" >&6
3085 if test -n "$CC"; then
3086 ac_cv_prog_CC
="$CC" # Let the user override the test.
3088 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3092 test -z "$as_dir" && as_dir
=.
3093 for ac_exec_ext
in '' $ac_executable_extensions; do
3094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3095 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3106 if test -n "$CC"; then
3107 { echo "$as_me:$LINENO: result: $CC" >&5
3108 echo "${ECHO_T}$CC" >&6; }
3110 { echo "$as_me:$LINENO: result: no" >&5
3111 echo "${ECHO_T}no" >&6; }
3115 test -n "$CC" && break
3118 if test -z "$CC"; then
3120 for ac_prog
in cl.exe
3122 # Extract the first word of "$ac_prog", so it can be a program name with args.
3123 set dummy
$ac_prog; ac_word
=$2
3124 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3126 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3127 echo $ECHO_N "(cached) $ECHO_C" >&6
3129 if test -n "$ac_ct_CC"; then
3130 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3132 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3136 test -z "$as_dir" && as_dir
=.
3137 for ac_exec_ext
in '' $ac_executable_extensions; do
3138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3139 ac_cv_prog_ac_ct_CC
="$ac_prog"
3140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3149 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3150 if test -n "$ac_ct_CC"; then
3151 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3152 echo "${ECHO_T}$ac_ct_CC" >&6; }
3154 { echo "$as_me:$LINENO: result: no" >&5
3155 echo "${ECHO_T}no" >&6; }
3159 test -n "$ac_ct_CC" && break
3162 if test "x$ac_ct_CC" = x
; then
3165 case $cross_compiling:$ac_tool_warned in
3167 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3168 whose name does not start with the host triplet. If you think this
3169 configuration is useful to you, please write to autoconf@gnu.org." >&5
3170 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3171 whose name does not start with the host triplet. If you think this
3172 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3173 ac_tool_warned
=yes ;;
3182 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3183 See \`config.log' for more details." >&5
3184 echo "$as_me: error: no acceptable C compiler found in \$PATH
3185 See \`config.log' for more details." >&2;}
3186 { (exit 1); exit 1; }; }
3188 # Provide some information about the compiler.
3189 echo "$as_me:$LINENO: checking for C compiler version" >&5
3190 ac_compiler
=`set X $ac_compile; echo $2`
3191 { (ac_try
="$ac_compiler --version >&5"
3193 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3194 *) ac_try_echo=$ac_try;;
3196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3197 (eval "$ac_compiler --version >&5") 2>&5
3199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200 (exit $ac_status); }
3201 { (ac_try="$ac_compiler -v >&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 -v >&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); }
3222 cat >conftest.$ac_ext <<_ACEOF
3225 cat confdefs.h >>conftest.$ac_ext
3226 cat >>conftest.$ac_ext <<_ACEOF
3227 /* end confdefs.h. */
3237 ac_clean_files_save=$ac_clean_files
3238 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3239 # Try to create an executable without -o first, disregard a.out.
3240 # It will help us diagnose broken compilers, and finding out an intuition
3242 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3243 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3244 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3246 # List of possible output files, starting from the most likely.
3247 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
3248 # only as a last resort. b.out is created by i960 compilers.
3249 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
3251 # The IRIX 6 linker writes into existing files which may not be
3252 # executable, retaining their permissions. Remove them first so a
3253 # subsequent execution test works.
3255 for ac_file in $ac_files
3258 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3259 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3264 if { (ac_try="$ac_link_default"
3266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3267 *) ac_try_echo=$ac_try;;
3269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3270 (eval "$ac_link_default") 2>&5
3272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273 (exit $ac_status); }; then
3274 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3275 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3276 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3277 # so that the user can short-circuit this test for compilers unknown to
3279 for ac_file
in $ac_files ''
3281 test -f "$ac_file" ||
continue
3283 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
3286 # We found the default executable, but exeext='' is most
3290 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3292 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3294 # We set ac_cv_exeext here because the later test for it is not
3295 # safe: cross compilers may not add the suffix if given an `-o'
3296 # argument, so we may need to know it at that point already.
3297 # Even if this section looks crufty: it has the advantage of
3304 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3310 { echo "$as_me:$LINENO: result: $ac_file" >&5
3311 echo "${ECHO_T}$ac_file" >&6; }
3312 if test -z "$ac_file"; then
3313 echo "$as_me: failed program was:" >&5
3314 sed 's/^/| /' conftest.
$ac_ext >&5
3316 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3317 See \`config.log' for more details." >&5
3318 echo "$as_me: error: C compiler cannot create executables
3319 See \`config.log' for more details." >&2;}
3320 { (exit 77); exit 77; }; }
3323 ac_exeext
=$ac_cv_exeext
3325 # Check that the compiler produces executables we can run. If not, either
3326 # the compiler is broken, or we cross compile.
3327 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3328 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3329 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3330 # If not cross compiling, check that we can run a simple program.
3331 if test "$cross_compiling" != yes; then
3332 if { ac_try
='./$ac_file'
3333 { (case "(($ac_try" in
3334 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3335 *) ac_try_echo=$ac_try;;
3337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3338 (eval "$ac_try") 2>&5
3340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341 (exit $ac_status); }; }; then
3344 if test "$cross_compiling" = maybe; then
3347 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3348 If you meant to cross compile, use \`--host'.
3349 See \`config.log' for more details.
" >&5
3350 echo "$as_me: error
: cannot run C compiled programs.
3351 If you meant to cross compile
, use \
`--host'.
3352 See \`config.log
' for more details." >&2;}
3353 { (exit 1); exit 1; }; }
3357 { echo "$as_me:$LINENO: result: yes" >&5
3358 echo "${ECHO_T}yes" >&6; }
3360 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3361 ac_clean_files=$ac_clean_files_save
3362 # Check that the compiler produces executables we can run. If not, either
3363 # the compiler is broken, or we cross compile.
3364 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3365 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3366 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3367 echo "${ECHO_T}$cross_compiling" >&6; }
3369 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3370 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3371 if { (ac_try="$ac_link"
3373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3374 *) ac_try_echo=$ac_try;;
3376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3377 (eval "$ac_link") 2>&5
3379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380 (exit $ac_status); }; then
3381 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3382 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3383 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3385 for ac_file
in conftest.exe conftest conftest.
*; do
3386 test -f "$ac_file" ||
continue
3388 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
3389 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3395 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3396 See \`config.log' for more details." >&5
3397 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3398 See \`config.log' for more details." >&2;}
3399 { (exit 1); exit 1; }; }
3402 rm -f conftest
$ac_cv_exeext
3403 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3404 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3406 rm -f conftest.
$ac_ext
3407 EXEEXT
=$ac_cv_exeext
3409 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3410 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3411 if test "${ac_cv_objext+set}" = set; then
3412 echo $ECHO_N "(cached) $ECHO_C" >&6
3414 cat >conftest.
$ac_ext <<_ACEOF
3417 cat confdefs.h
>>conftest.
$ac_ext
3418 cat >>conftest.
$ac_ext <<_ACEOF
3419 /* end confdefs.h. */
3429 rm -f conftest.o conftest.obj
3430 if { (ac_try
="$ac_compile"
3432 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3433 *) ac_try_echo=$ac_try;;
3435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3436 (eval "$ac_compile") 2>&5
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439 (exit $ac_status); }; then
3440 for ac_file in conftest.o conftest.obj conftest.*; do
3441 test -f "$ac_file" || continue;
3443 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3444 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3449 echo "$as_me: failed program was:" >&5
3450 sed 's/^/| /' conftest.$ac_ext >&5
3452 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3453 See \`config.log
' for more details." >&5
3454 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3455 See \`config.log' for more details.
" >&2;}
3456 { (exit 1); exit 1; }; }
3459 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3461 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3462 echo "${ECHO_T}$ac_cv_objext" >&6; }
3463 OBJEXT=$ac_cv_objext
3465 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3466 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3467 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3468 echo $ECHO_N "(cached
) $ECHO_C" >&6
3470 cat >conftest.$ac_ext <<_ACEOF
3473 cat confdefs.h >>conftest.$ac_ext
3474 cat >>conftest.$ac_ext <<_ACEOF
3475 /* end confdefs.h. */
3488 rm -f conftest.$ac_objext
3489 if { (ac_try="$ac_compile"
3491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3492 *) ac_try_echo=$ac_try;;
3494 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3495 (eval "$ac_compile") 2>conftest.er1
3497 grep -v '^ *+' conftest.er1 >conftest.err
3499 cat conftest.err >&5
3500 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3501 (exit $ac_status); } && {
3502 test -z "$ac_c_werror_flag" ||
3503 test ! -s conftest.err
3504 } && test -s conftest.$ac_objext; then
3507 echo "$as_me: failed program was
:" >&5
3508 sed 's/^/| /' conftest.$ac_ext >&5
3513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3514 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3517 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3518 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3519 GCC=`test $ac_compiler_gnu = yes && echo yes`
3520 ac_test_CFLAGS=${CFLAGS+set}
3521 ac_save_CFLAGS=$CFLAGS
3522 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3523 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3524 if test "${ac_cv_prog_cc_g+set}" = set; then
3525 echo $ECHO_N "(cached
) $ECHO_C" >&6
3527 ac_save_c_werror_flag=$ac_c_werror_flag
3528 ac_c_werror_flag=yes
3531 cat >conftest.$ac_ext <<_ACEOF
3534 cat confdefs.h >>conftest.$ac_ext
3535 cat >>conftest.$ac_ext <<_ACEOF
3536 /* end confdefs.h. */
3546 rm -f conftest.$ac_objext
3547 if { (ac_try="$ac_compile"
3549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3550 *) ac_try_echo=$ac_try;;
3552 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3553 (eval "$ac_compile") 2>conftest.er1
3555 grep -v '^ *+' conftest.er1 >conftest.err
3557 cat conftest.err >&5
3558 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3559 (exit $ac_status); } && {
3560 test -z "$ac_c_werror_flag" ||
3561 test ! -s conftest.err
3562 } && test -s conftest.$ac_objext; then
3565 echo "$as_me: failed program was
:" >&5
3566 sed 's/^/| /' conftest.$ac_ext >&5
3569 cat >conftest.$ac_ext <<_ACEOF
3572 cat confdefs.h >>conftest.$ac_ext
3573 cat >>conftest.$ac_ext <<_ACEOF
3574 /* end confdefs.h. */
3584 rm -f conftest.$ac_objext
3585 if { (ac_try="$ac_compile"
3587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3588 *) ac_try_echo=$ac_try;;
3590 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3591 (eval "$ac_compile") 2>conftest.er1
3593 grep -v '^ *+' conftest.er1 >conftest.err
3595 cat conftest.err >&5
3596 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3597 (exit $ac_status); } && {
3598 test -z "$ac_c_werror_flag" ||
3599 test ! -s conftest.err
3600 } && test -s conftest.$ac_objext; then
3603 echo "$as_me: failed program was
:" >&5
3604 sed 's/^/| /' conftest.$ac_ext >&5
3606 ac_c_werror_flag=$ac_save_c_werror_flag
3608 cat >conftest.$ac_ext <<_ACEOF
3611 cat confdefs.h >>conftest.$ac_ext
3612 cat >>conftest.$ac_ext <<_ACEOF
3613 /* end confdefs.h. */
3623 rm -f conftest.$ac_objext
3624 if { (ac_try="$ac_compile"
3626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3627 *) ac_try_echo=$ac_try;;
3629 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3630 (eval "$ac_compile") 2>conftest.er1
3632 grep -v '^ *+' conftest.er1 >conftest.err
3634 cat conftest.err >&5
3635 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3636 (exit $ac_status); } && {
3637 test -z "$ac_c_werror_flag" ||
3638 test ! -s conftest.err
3639 } && test -s conftest.$ac_objext; then
3642 echo "$as_me: failed program was
:" >&5
3643 sed 's/^/| /' conftest.$ac_ext >&5
3648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3655 ac_c_werror_flag=$ac_save_c_werror_flag
3657 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3658 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3659 if test "$ac_test_CFLAGS" = set; then
3660 CFLAGS=$ac_save_CFLAGS
3661 elif test $ac_cv_prog_cc_g = yes; then
3662 if test "$GCC" = yes; then
3668 if test "$GCC" = yes; then
3674 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3675 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
3676 if test "${ac_cv_prog_cc_c89+set}" = set; then
3677 echo $ECHO_N "(cached
) $ECHO_C" >&6
3679 ac_cv_prog_cc_c89=no
3681 cat >conftest.$ac_ext <<_ACEOF
3684 cat confdefs.h >>conftest.$ac_ext
3685 cat >>conftest.$ac_ext <<_ACEOF
3686 /* end confdefs.h. */
3689 #include <sys/types.h>
3690 #include <sys/stat.h>
3691 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3692 struct buf { int x; };
3693 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3694 static char *e (p, i)
3700 static char *f (char * (*g) (char **, int), char **p, ...)
3705 s = g (p, va_arg (v,int));
3710 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3711 function prototypes and stuff, but not '\xHH' hex character constants.
3712 These don't provoke an error unfortunately, instead are silently treated
3713 as 'x'. The following induces an error, until -std is added to get
3714 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3715 array size at least. It's necessary to write '\x00'==0 to get something
3716 that's true only with -std. */
3717 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3719 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3720 inside strings and character constants. */
3722 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3724 int test (int i, double x);
3725 struct s1 {int (*f) (int a);};
3726 struct s2 {int (*f) (double a);};
3727 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3733 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3738 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3739 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3741 CC="$ac_save_CC $ac_arg"
3742 rm -f conftest.$ac_objext
3743 if { (ac_try="$ac_compile"
3745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3746 *) ac_try_echo=$ac_try;;
3748 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3749 (eval "$ac_compile") 2>conftest.er1
3751 grep -v '^ *+' conftest.er1 >conftest.err
3753 cat conftest.err >&5
3754 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3755 (exit $ac_status); } && {
3756 test -z "$ac_c_werror_flag" ||
3757 test ! -s conftest.err
3758 } && test -s conftest.$ac_objext; then
3759 ac_cv_prog_cc_c89=$ac_arg
3761 echo "$as_me: failed program was
:" >&5
3762 sed 's/^/| /' conftest.$ac_ext >&5
3767 rm -f core conftest.err conftest.$ac_objext
3768 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3770 rm -f conftest.$ac_ext
3775 case "x
$ac_cv_prog_cc_c89" in
3777 { echo "$as_me:$LINENO: result
: none needed
" >&5
3778 echo "${ECHO_T}none needed
" >&6; } ;;
3780 { echo "$as_me:$LINENO: result
: unsupported
" >&5
3781 echo "${ECHO_T}unsupported
" >&6; } ;;
3783 CC="$CC $ac_cv_prog_cc_c89"
3784 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3785 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3790 ac_cpp='$CPP $CPPFLAGS'
3791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3796 # On Suns, sometimes $CPP names a directory.
3797 if test -n "$CPP" && test -d "$CPP"; then
3801 ## If not using gcc, and on Solaris, and no CPP specified, see if
3802 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3803 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3804 test x"$CPP" = x; then
3805 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler
" >&5
3806 echo $ECHO_N "checking whether we are using a Sun C compiler...
$ECHO_C" >&6; }
3808 if test "${emacs_cv_sunpro_c+set}" = set; then
3809 echo $ECHO_N "(cached
) $ECHO_C" >&6
3811 cat >conftest.$ac_ext <<_ACEOF
3814 cat confdefs.h >>conftest.$ac_ext
3815 cat >>conftest.$ac_ext <<_ACEOF
3816 /* end confdefs.h. */
3829 rm -f conftest.$ac_objext conftest$ac_exeext
3830 if { (ac_try="$ac_link"
3832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3833 *) ac_try_echo=$ac_try;;
3835 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3836 (eval "$ac_link") 2>conftest.er1
3838 grep -v '^ *+' conftest.er1 >conftest.err
3840 cat conftest.err >&5
3841 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3842 (exit $ac_status); } && {
3843 test -z "$ac_c_werror_flag" ||
3844 test ! -s conftest.err
3845 } && test -s conftest$ac_exeext &&
3846 $as_test_x conftest$ac_exeext; then
3847 emacs_cv_sunpro_c=yes
3849 echo "$as_me: failed program was
:" >&5
3850 sed 's/^/| /' conftest.$ac_ext >&5
3852 emacs_cv_sunpro_c=no
3855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3856 conftest$ac_exeext conftest.$ac_ext
3859 { echo "$as_me:$LINENO: result
: $emacs_cv_sunpro_c" >&5
3860 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
3862 if test x"$emacs_cv_sunpro_c" = xyes; then
3863 NON_GNU_CPP="$CC -E -Xs"
3867 #### Some systems specify a CPP to use unless we are using GCC.
3868 #### Now that we know whether we are using GCC, we can decide whether
3869 #### to use that one.
3870 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
3875 #### Some systems specify a CC to use unless we are using GCC.
3876 #### Now that we know whether we are using GCC, we can decide whether
3877 #### to use that one.
3878 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
3879 test x$cc_specified != xyes
3884 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
3886 CC="$CC $GCC_TEST_OPTIONS"
3889 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
3891 CC="$CC $NON_GCC_TEST_OPTIONS"
3895 ac_cpp='$CPP $CPPFLAGS'
3896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3899 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
3900 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
3901 # On Suns, sometimes $CPP names a directory.
3902 if test -n "$CPP" && test -d "$CPP"; then
3905 if test -z "$CPP"; then
3906 if test "${ac_cv_prog_CPP+set}" = set; then
3907 echo $ECHO_N "(cached
) $ECHO_C" >&6
3909 # Double quotes because CPP needs to be expanded
3910 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3913 for ac_c_preproc_warn_flag in '' yes
3915 # Use a header file that comes with gcc, so configuring glibc
3916 # with a fresh cross-compiler works.
3917 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3918 # <limits.h> exists even on freestanding compilers.
3919 # On the NeXT, cc -E runs the code through the compiler's parser,
3920 # not just through cpp. "Syntax error
" is here to catch this case.
3921 cat >conftest.$ac_ext <<_ACEOF
3924 cat confdefs.h >>conftest.$ac_ext
3925 cat >>conftest.$ac_ext <<_ACEOF
3926 /* end confdefs.h. */
3928 # include <limits.h>
3930 # include <assert.h>
3934 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3937 *) ac_try_echo=$ac_try;;
3939 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3940 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3942 grep -v '^ *+' conftest.er1 >conftest.err
3944 cat conftest.err >&5
3945 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3946 (exit $ac_status); } >/dev/null && {
3947 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3948 test ! -s conftest.err
3952 echo "$as_me: failed program was
:" >&5
3953 sed 's/^/| /' conftest.$ac_ext >&5
3955 # Broken: fails on valid input.
3959 rm -f conftest.err conftest.$ac_ext
3961 # OK, works on sane cases. Now check whether nonexistent headers
3962 # can be detected and how.
3963 cat >conftest.$ac_ext <<_ACEOF
3966 cat confdefs.h >>conftest.$ac_ext
3967 cat >>conftest.$ac_ext <<_ACEOF
3968 /* end confdefs.h. */
3969 #include <ac_nonexistent.h>
3971 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3974 *) ac_try_echo=$ac_try;;
3976 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3977 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3979 grep -v '^ *+' conftest.er1 >conftest.err
3981 cat conftest.err >&5
3982 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3983 (exit $ac_status); } >/dev/null && {
3984 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3985 test ! -s conftest.err
3987 # Broken: success on invalid input.
3990 echo "$as_me: failed program was
:" >&5
3991 sed 's/^/| /' conftest.$ac_ext >&5
3993 # Passes both tests.
3998 rm -f conftest.err conftest.$ac_ext
4001 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4002 rm -f conftest.err conftest.$ac_ext
4003 if $ac_preproc_ok; then
4015 { echo "$as_me:$LINENO: result
: $CPP" >&5
4016 echo "${ECHO_T}$CPP" >&6; }
4018 for ac_c_preproc_warn_flag in '' yes
4020 # Use a header file that comes with gcc, so configuring glibc
4021 # with a fresh cross-compiler works.
4022 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4023 # <limits.h> exists even on freestanding compilers.
4024 # On the NeXT, cc -E runs the code through the compiler's parser,
4025 # not just through cpp. "Syntax error
" is here to catch this case.
4026 cat >conftest.$ac_ext <<_ACEOF
4029 cat confdefs.h >>conftest.$ac_ext
4030 cat >>conftest.$ac_ext <<_ACEOF
4031 /* end confdefs.h. */
4033 # include <limits.h>
4035 # include <assert.h>
4039 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4042 *) ac_try_echo=$ac_try;;
4044 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4045 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4047 grep -v '^ *+' conftest.er1 >conftest.err
4049 cat conftest.err >&5
4050 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4051 (exit $ac_status); } >/dev/null && {
4052 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4053 test ! -s conftest.err
4057 echo "$as_me: failed program was
:" >&5
4058 sed 's/^/| /' conftest.$ac_ext >&5
4060 # Broken: fails on valid input.
4064 rm -f conftest.err conftest.$ac_ext
4066 # OK, works on sane cases. Now check whether nonexistent headers
4067 # can be detected and how.
4068 cat >conftest.$ac_ext <<_ACEOF
4071 cat confdefs.h >>conftest.$ac_ext
4072 cat >>conftest.$ac_ext <<_ACEOF
4073 /* end confdefs.h. */
4074 #include <ac_nonexistent.h>
4076 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4079 *) ac_try_echo=$ac_try;;
4081 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4082 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4084 grep -v '^ *+' conftest.er1 >conftest.err
4086 cat conftest.err >&5
4087 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4088 (exit $ac_status); } >/dev/null && {
4089 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4090 test ! -s conftest.err
4092 # Broken: success on invalid input.
4095 echo "$as_me: failed program was
:" >&5
4096 sed 's/^/| /' conftest.$ac_ext >&5
4098 # Passes both tests.
4103 rm -f conftest.err conftest.$ac_ext
4106 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4107 rm -f conftest.err conftest.$ac_ext
4108 if $ac_preproc_ok; then
4111 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4112 See \
`config.log' for more details." >&5
4113 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4114 See \`config.log
' for more details." >&2;}
4115 { (exit 1); exit 1; }; }
4119 ac_cpp='$CPP $CPPFLAGS'
4120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4121 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4125 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4126 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4127 if test "${ac_cv_path_GREP+set}" = set; then
4128 echo $ECHO_N "(cached) $ECHO_C" >&6
4130 # Extract the first word of "grep ggrep" to use in msg output
4131 if test -z "$GREP"; then
4132 set dummy grep ggrep; ac_prog_name=$2
4133 if test "${ac_cv_path_GREP+set}" = set; then
4134 echo $ECHO_N "(cached) $ECHO_C" >&6
4136 ac_path_GREP_found=false
4137 # Loop through the user's path and
test for each of PROGNAME-LIST
4138 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4139 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4142 test -z "$as_dir" && as_dir
=.
4143 for ac_prog
in grep ggrep
; do
4144 for ac_exec_ext
in '' $ac_executable_extensions; do
4145 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4146 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4147 # Check for GNU ac_path_GREP and select it if it is found.
4148 # Check for GNU $ac_path_GREP
4149 case `"$ac_path_GREP" --version 2>&1` in
4151 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4154 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4157 cat "conftest.in" "conftest.in" >"conftest.tmp"
4158 mv "conftest.tmp" "conftest.in"
4159 cp "conftest.in" "conftest.nl"
4160 echo 'GREP' >> "conftest.nl"
4161 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4162 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4163 ac_count
=`expr $ac_count + 1`
4164 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4165 # Best one so far, save it but keep looking for a better one
4166 ac_cv_path_GREP
="$ac_path_GREP"
4167 ac_path_GREP_max
=$ac_count
4169 # 10*(2^10) chars as input seems more than enough
4170 test $ac_count -gt 10 && break
4172 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4176 $ac_path_GREP_found && break 3
4186 GREP
="$ac_cv_path_GREP"
4187 if test -z "$GREP"; then
4188 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4189 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4190 { (exit 1); exit 1; }; }
4194 ac_cv_path_GREP
=$GREP
4199 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4200 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4201 GREP
="$ac_cv_path_GREP"
4204 { echo "$as_me:$LINENO: checking for egrep" >&5
4205 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4206 if test "${ac_cv_path_EGREP+set}" = set; then
4207 echo $ECHO_N "(cached) $ECHO_C" >&6
4209 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4210 then ac_cv_path_EGREP
="$GREP -E"
4212 # Extract the first word of "egrep" to use in msg output
4213 if test -z "$EGREP"; then
4214 set dummy
egrep; ac_prog_name
=$2
4215 if test "${ac_cv_path_EGREP+set}" = set; then
4216 echo $ECHO_N "(cached) $ECHO_C" >&6
4218 ac_path_EGREP_found
=false
4219 # Loop through the user's path and test for each of PROGNAME-LIST
4220 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4221 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4224 test -z "$as_dir" && as_dir
=.
4225 for ac_prog
in egrep; do
4226 for ac_exec_ext
in '' $ac_executable_extensions; do
4227 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4228 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4229 # Check for GNU ac_path_EGREP and select it if it is found.
4230 # Check for GNU $ac_path_EGREP
4231 case `"$ac_path_EGREP" --version 2>&1` in
4233 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4236 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4239 cat "conftest.in" "conftest.in" >"conftest.tmp"
4240 mv "conftest.tmp" "conftest.in"
4241 cp "conftest.in" "conftest.nl"
4242 echo 'EGREP' >> "conftest.nl"
4243 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4244 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4245 ac_count
=`expr $ac_count + 1`
4246 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4247 # Best one so far, save it but keep looking for a better one
4248 ac_cv_path_EGREP
="$ac_path_EGREP"
4249 ac_path_EGREP_max
=$ac_count
4251 # 10*(2^10) chars as input seems more than enough
4252 test $ac_count -gt 10 && break
4254 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4258 $ac_path_EGREP_found && break 3
4268 EGREP
="$ac_cv_path_EGREP"
4269 if test -z "$EGREP"; then
4270 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4271 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4272 { (exit 1); exit 1; }; }
4276 ac_cv_path_EGREP
=$EGREP
4282 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4283 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4284 EGREP
="$ac_cv_path_EGREP"
4288 { echo "$as_me:$LINENO: checking for AIX" >&5
4289 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4290 cat >conftest.
$ac_ext <<_ACEOF
4293 cat confdefs.h
>>conftest.
$ac_ext
4294 cat >>conftest.
$ac_ext <<_ACEOF
4295 /* end confdefs.h. */
4301 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4302 $EGREP "yes" >/dev
/null
2>&1; then
4303 { echo "$as_me:$LINENO: result: yes" >&5
4304 echo "${ECHO_T}yes" >&6; }
4305 cat >>confdefs.h
<<\_ACEOF
4306 #define _ALL_SOURCE 1
4310 { echo "$as_me:$LINENO: result: no" >&5
4311 echo "${ECHO_T}no" >&6; }
4317 cat >>confdefs.h
<<\_ACEOF
4318 #define _GNU_SOURCE 1
4323 ### Use -Wno-pointer-sign if the compiler supports it
4324 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4325 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4326 SAVE_CFLAGS
="$CFLAGS"
4327 CFLAGS
="$CFLAGS -Wno-pointer-sign"
4328 cat >conftest.
$ac_ext <<_ACEOF
4331 cat confdefs.h
>>conftest.
$ac_ext
4332 cat >>conftest.
$ac_ext <<_ACEOF
4333 /* end confdefs.h. */
4343 rm -f conftest.
$ac_objext
4344 if { (ac_try
="$ac_compile"
4346 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4347 *) ac_try_echo=$ac_try;;
4349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4350 (eval "$ac_compile") 2>conftest.er1
4352 grep -v '^ *+' conftest.er1 >conftest.err
4354 cat conftest.err >&5
4355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356 (exit $ac_status); } && {
4357 test -z "$ac_c_werror_flag" ||
4358 test ! -s conftest.err
4359 } && test -s conftest.$ac_objext; then
4362 echo "$as_me: failed program was:" >&5
4363 sed 's/^/| /' conftest.$ac_ext >&5
4368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4369 if test $has_option = yes; then
4370 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4372 { echo "$as_me:$LINENO: result: $has_option" >&5
4373 echo "${ECHO_T}$has_option" >&6; }
4374 CFLAGS="$SAVE_CFLAGS"
4378 #### Some other nice autoconf tests.
4380 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4381 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4383 if test "$LN_S" = "ln -s"; then
4384 { echo "$as_me:$LINENO: result: yes" >&5
4385 echo "${ECHO_T}yes" >&6; }
4387 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4388 echo "${ECHO_T}no, using $LN_S" >&6; }
4392 ac_cpp='$CPP $CPPFLAGS'
4393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4396 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4397 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4398 # On Suns, sometimes $CPP names a directory.
4399 if test -n "$CPP" && test -d "$CPP"; then
4402 if test -z "$CPP"; then
4403 if test "${ac_cv_prog_CPP+set}" = set; then
4404 echo $ECHO_N "(cached) $ECHO_C" >&6
4406 # Double quotes because CPP needs to be expanded
4407 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4410 for ac_c_preproc_warn_flag in '' yes
4412 # Use a header file that comes with gcc, so configuring glibc
4413 # with a fresh cross-compiler works.
4414 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4415 # <limits.h> exists even on freestanding compilers.
4416 # On the NeXT, cc -E runs the code through the compiler's parser,
4417 # not just through cpp. "Syntax error" is here to catch this case.
4418 cat >conftest.$ac_ext <<_ACEOF
4421 cat confdefs.h >>conftest.$ac_ext
4422 cat >>conftest.$ac_ext <<_ACEOF
4423 /* end confdefs.h. */
4425 # include <limits.h>
4427 # include <assert.h>
4431 if { (ac_try="$ac_cpp conftest.$ac_ext"
4433 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4434 *) ac_try_echo
=$ac_try;;
4436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4437 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4439 grep -v '^ *+' conftest.er1
>conftest.err
4441 cat conftest.err
>&5
4442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4443 (exit $ac_status); } >/dev
/null
&& {
4444 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4445 test ! -s conftest.err
4449 echo "$as_me: failed program was:" >&5
4450 sed 's/^/| /' conftest.
$ac_ext >&5
4452 # Broken: fails on valid input.
4456 rm -f conftest.err conftest.
$ac_ext
4458 # OK, works on sane cases. Now check whether nonexistent headers
4459 # can be detected and how.
4460 cat >conftest.
$ac_ext <<_ACEOF
4463 cat confdefs.h
>>conftest.
$ac_ext
4464 cat >>conftest.
$ac_ext <<_ACEOF
4465 /* end confdefs.h. */
4466 #include <ac_nonexistent.h>
4468 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4470 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4471 *) ac_try_echo=$ac_try;;
4473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4474 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4476 grep -v '^ *+' conftest.er1 >conftest.err
4478 cat conftest.err >&5
4479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480 (exit $ac_status); } >/dev/null && {
4481 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4482 test ! -s conftest.err
4484 # Broken: success on invalid input.
4487 echo "$as_me: failed program was:" >&5
4488 sed 's/^/| /' conftest.$ac_ext >&5
4490 # Passes both tests.
4495 rm -f conftest.err conftest.$ac_ext
4498 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4499 rm -f conftest.err conftest.
$ac_ext
4500 if $ac_preproc_ok; then
4512 { echo "$as_me:$LINENO: result: $CPP" >&5
4513 echo "${ECHO_T}$CPP" >&6; }
4515 for ac_c_preproc_warn_flag
in '' yes
4517 # Use a header file that comes with gcc, so configuring glibc
4518 # with a fresh cross-compiler works.
4519 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4520 # <limits.h> exists even on freestanding compilers.
4521 # On the NeXT, cc -E runs the code through the compiler's parser,
4522 # not just through cpp. "Syntax error" is here to catch this case.
4523 cat >conftest.
$ac_ext <<_ACEOF
4526 cat confdefs.h
>>conftest.
$ac_ext
4527 cat >>conftest.
$ac_ext <<_ACEOF
4528 /* end confdefs.h. */
4530 # include <limits.h>
4532 # include <assert.h>
4536 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4538 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4539 *) ac_try_echo=$ac_try;;
4541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4542 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4544 grep -v '^ *+' conftest.er1 >conftest.err
4546 cat conftest.err >&5
4547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548 (exit $ac_status); } >/dev/null && {
4549 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4550 test ! -s conftest.err
4554 echo "$as_me: failed program was:" >&5
4555 sed 's/^/| /' conftest.$ac_ext >&5
4557 # Broken: fails on valid input.
4561 rm -f conftest.err conftest.$ac_ext
4563 # OK, works on sane cases. Now check whether nonexistent headers
4564 # can be detected and how.
4565 cat >conftest.$ac_ext <<_ACEOF
4568 cat confdefs.h >>conftest.$ac_ext
4569 cat >>conftest.$ac_ext <<_ACEOF
4570 /* end confdefs.h. */
4571 #include <ac_nonexistent.h>
4573 if { (ac_try="$ac_cpp conftest.$ac_ext"
4575 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4576 *) ac_try_echo
=$ac_try;;
4578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4581 grep -v '^ *+' conftest.er1
>conftest.err
4583 cat conftest.err
>&5
4584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585 (exit $ac_status); } >/dev
/null
&& {
4586 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4587 test ! -s conftest.err
4589 # Broken: success on invalid input.
4592 echo "$as_me: failed program was:" >&5
4593 sed 's/^/| /' conftest.
$ac_ext >&5
4595 # Passes both tests.
4600 rm -f conftest.err conftest.
$ac_ext
4603 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4604 rm -f conftest.err conftest.
$ac_ext
4605 if $ac_preproc_ok; then
4608 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4609 See \`config.log' for more details." >&5
4610 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4611 See \`config.log' for more details." >&2;}
4612 { (exit 1); exit 1; }; }
4616 ac_cpp
='$CPP $CPPFLAGS'
4617 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4618 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4619 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4621 # Find a good install program. We prefer a C program (faster),
4622 # so one script is as good as another. But avoid the broken or
4623 # incompatible versions:
4624 # SysV /etc/install, /usr/sbin/install
4625 # SunOS /usr/etc/install
4626 # IRIX /sbin/install
4628 # AmigaOS /C/install, which installs bootblocks on floppy discs
4629 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4630 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4631 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4632 # OS/2's system install, which has a completely different semantic
4633 # ./install, which can be erroneously created by make from ./install.sh.
4634 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4635 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4636 if test -z "$INSTALL"; then
4637 if test "${ac_cv_path_install+set}" = set; then
4638 echo $ECHO_N "(cached) $ECHO_C" >&6
4640 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4644 test -z "$as_dir" && as_dir
=.
4645 # Account for people who put trailing slashes in PATH elements.
4647 .
/ | .
// |
/cC
/* | \
4648 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4649 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4652 # OSF1 and SCO ODT 3.0 have their own names for install.
4653 # Don't use installbsd from OSF since it installs stuff as root
4655 for ac_prog
in ginstall scoinst
install; do
4656 for ac_exec_ext
in '' $ac_executable_extensions; do
4657 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4658 if test $ac_prog = install &&
4659 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4660 # AIX install. It has an incompatible calling convention.
4662 elif test $ac_prog = install &&
4663 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4664 # program-specific install script used by HP pwplus--don't use.
4667 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4680 if test "${ac_cv_path_install+set}" = set; then
4681 INSTALL
=$ac_cv_path_install
4683 # As a last resort, use the slow shell script. Don't cache a
4684 # value for INSTALL within a source directory, because that will
4685 # break other packages using the cache if that directory is
4686 # removed, or if the value is a relative name.
4687 INSTALL
=$ac_install_sh
4690 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4691 echo "${ECHO_T}$INSTALL" >&6; }
4693 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4694 # It thinks the first close brace ends the variable substitution.
4695 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4697 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4699 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4701 if test "x$RANLIB" = x
; then
4702 if test -n "$ac_tool_prefix"; then
4703 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4704 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4705 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4707 if test "${ac_cv_prog_RANLIB+set}" = set; then
4708 echo $ECHO_N "(cached) $ECHO_C" >&6
4710 if test -n "$RANLIB"; then
4711 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4713 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4717 test -z "$as_dir" && as_dir
=.
4718 for ac_exec_ext
in '' $ac_executable_extensions; do
4719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4720 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4730 RANLIB
=$ac_cv_prog_RANLIB
4731 if test -n "$RANLIB"; then
4732 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4733 echo "${ECHO_T}$RANLIB" >&6; }
4735 { echo "$as_me:$LINENO: result: no" >&5
4736 echo "${ECHO_T}no" >&6; }
4741 if test -z "$ac_cv_prog_RANLIB"; then
4742 ac_ct_RANLIB
=$RANLIB
4743 # Extract the first word of "ranlib", so it can be a program name with args.
4744 set dummy ranlib
; ac_word
=$2
4745 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4747 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4748 echo $ECHO_N "(cached) $ECHO_C" >&6
4750 if test -n "$ac_ct_RANLIB"; then
4751 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4753 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4757 test -z "$as_dir" && as_dir
=.
4758 for ac_exec_ext
in '' $ac_executable_extensions; do
4759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4760 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4770 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4771 if test -n "$ac_ct_RANLIB"; then
4772 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4773 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4775 { echo "$as_me:$LINENO: result: no" >&5
4776 echo "${ECHO_T}no" >&6; }
4779 if test "x$ac_ct_RANLIB" = x
; then
4782 case $cross_compiling:$ac_tool_warned in
4784 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4785 whose name does not start with the host triplet. If you think this
4786 configuration is useful to you, please write to autoconf@gnu.org." >&5
4787 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4788 whose name does not start with the host triplet. If you think this
4789 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4790 ac_tool_warned
=yes ;;
4792 RANLIB
=$ac_ct_RANLIB
4795 RANLIB
="$ac_cv_prog_RANLIB"
4799 # Extract the first word of "install-info", so it can be a program name with args.
4800 set dummy install-info
; ac_word
=$2
4801 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4803 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4804 echo $ECHO_N "(cached) $ECHO_C" >&6
4806 case $INSTALL_INFO in
4808 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4811 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4815 test -z "$as_dir" && as_dir
=.
4816 for ac_exec_ext
in '' $ac_executable_extensions; do
4817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4818 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4829 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4830 if test -n "$INSTALL_INFO"; then
4831 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4832 echo "${ECHO_T}$INSTALL_INFO" >&6; }
4834 { echo "$as_me:$LINENO: result: no" >&5
4835 echo "${ECHO_T}no" >&6; }
4839 # Extract the first word of "install-info", so it can be a program name with args.
4840 set dummy install-info
; ac_word
=$2
4841 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4843 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4844 echo $ECHO_N "(cached) $ECHO_C" >&6
4846 case $INSTALL_INFO in
4848 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4851 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4852 for as_dir
in /usr
/sbin
4855 test -z "$as_dir" && as_dir
=.
4856 for ac_exec_ext
in '' $ac_executable_extensions; do
4857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4858 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4869 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4870 if test -n "$INSTALL_INFO"; then
4871 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4872 echo "${ECHO_T}$INSTALL_INFO" >&6; }
4874 { echo "$as_me:$LINENO: result: no" >&5
4875 echo "${ECHO_T}no" >&6; }
4879 # Extract the first word of "install-info", so it can be a program name with args.
4880 set dummy install-info
; ac_word
=$2
4881 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4883 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4884 echo $ECHO_N "(cached) $ECHO_C" >&6
4886 case $INSTALL_INFO in
4888 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4891 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4895 test -z "$as_dir" && as_dir
=.
4896 for ac_exec_ext
in '' $ac_executable_extensions; do
4897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4898 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4906 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
4910 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4911 if test -n "$INSTALL_INFO"; then
4912 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4913 echo "${ECHO_T}$INSTALL_INFO" >&6; }
4915 { echo "$as_me:$LINENO: result: no" >&5
4916 echo "${ECHO_T}no" >&6; }
4920 # Extract the first word of "gzip", so it can be a program name with args.
4921 set dummy
gzip; ac_word
=$2
4922 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4924 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
4925 echo $ECHO_N "(cached) $ECHO_C" >&6
4929 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
4932 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4936 test -z "$as_dir" && as_dir
=.
4937 for ac_exec_ext
in '' $ac_executable_extensions; do
4938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4939 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
4940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4950 GZIP_PROG
=$ac_cv_path_GZIP_PROG
4951 if test -n "$GZIP_PROG"; then
4952 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
4953 echo "${ECHO_T}$GZIP_PROG" >&6; }
4955 { echo "$as_me:$LINENO: result: no" >&5
4956 echo "${ECHO_T}no" >&6; }
4962 ## Need makeinfo >= 4.6 (?) to build the manuals.
4963 # Extract the first word of "makeinfo", so it can be a program name with args.
4964 set dummy makeinfo
; ac_word
=$2
4965 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4967 if test "${ac_cv_path_MAKEINFO+set}" = set; then
4968 echo $ECHO_N "(cached) $ECHO_C" >&6
4972 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
4975 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4979 test -z "$as_dir" && as_dir
=.
4980 for ac_exec_ext
in '' $ac_executable_extensions; do
4981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4982 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
4983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4990 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
4994 MAKEINFO
=$ac_cv_path_MAKEINFO
4995 if test -n "$MAKEINFO"; then
4996 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
4997 echo "${ECHO_T}$MAKEINFO" >&6; }
4999 { echo "$as_me:$LINENO: result: no" >&5
5000 echo "${ECHO_T}no" >&6; }
5004 if test "$MAKEINFO" != "no" && \
5005 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
5009 if test "$MAKEINFO" = "no"; then
5010 { { echo "$as_me:$LINENO: error: makeinfo >= 4.6 is required " >&5
5011 echo "$as_me: error: makeinfo >= 4.6 is required " >&2;}
5012 { (exit 1); exit 1; }; }
5017 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5019 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5022 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5024 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5028 late_LDFLAGS
=$LDFLAGS
5029 if test "$GCC" = yes; then
5030 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5032 LDFLAGS
="$LDFLAGS -znocombreloc"
5035 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5036 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5037 cat >conftest.
$ac_ext <<_ACEOF
5040 rm -f conftest.
$ac_objext conftest
$ac_exeext
5041 if { (ac_try
="$ac_link"
5043 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5044 *) ac_try_echo=$ac_try;;
5046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5047 (eval "$ac_link") 2>conftest.er1
5049 grep -v '^ *+' conftest.er1 >conftest.err
5051 cat conftest.err >&5
5052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053 (exit $ac_status); } && {
5054 test -z "$ac_c_werror_flag" ||
5055 test ! -s conftest.err
5056 } && test -s conftest$ac_exeext &&
5057 $as_test_x conftest$ac_exeext; then
5058 { echo "$as_me:$LINENO: result: yes" >&5
5059 echo "${ECHO_T}yes" >&6; }
5061 echo "$as_me: failed program was:" >&5
5062 sed 's/^/| /' conftest.$ac_ext >&5
5064 LDFLAGS=$late_LDFLAGS
5065 { echo "$as_me:$LINENO: result: no" >&5
5066 echo "${ECHO_T}no" >&6; }
5069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5070 conftest$ac_exeext conftest.$ac_ext
5072 #### Extract some information from the operating system and machine files.
5074 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5075 - which libraries the lib-src programs will want, and
5076 - whether the GNU malloc routines are usable..." >&5
5077 echo "$as_me: checking the machine- and system-dependent files to find out
5078 - which libraries the lib-src programs will want, and
5079 - whether the GNU malloc routines are usable..." >&6;}
5081 ### First figure out CFLAGS (which we use for running the compiler here)
5082 ### and REAL_CFLAGS (which we use for real compilation).
5083 ### The two are the same except on a few systems, where they are made
5084 ### different to work around various lossages. For example,
5085 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5086 ### as implying static linking.
5088 ### If the CFLAGS env var is specified, we use that value
5089 ### instead of the default.
5091 ### It's not important that this name contain the PID; you can't run
5092 ### two configures in the same directory and have anything work
5094 tempcname="conftest.c"
5097 #include "'${srcdir}'/src/'${opsysfile}'"
5098 #include "'${srcdir}'/src/'${machfile}'"
5099 #ifndef LIBS_MACHINE
5100 #define LIBS_MACHINE
5105 #ifndef C_SWITCH_SYSTEM
5106 #define C_SWITCH_SYSTEM
5108 #ifndef C_SWITCH_MACHINE
5109 #define C_SWITCH_MACHINE
5111 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5112 configure___ c_switch_system=C_SWITCH_SYSTEM
5113 configure___ c_switch_machine=C_SWITCH_MACHINE
5116 #define LIB_X11_LIB -lX11
5119 #ifndef LIBX11_SYSTEM
5120 #define LIBX11_SYSTEM
5122 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5125 configure___ unexec=UNEXEC
5127 configure___ unexec=unexec.o
5130 #ifdef SYSTEM_MALLOC
5131 configure___ system_malloc=yes
5133 configure___ system_malloc=no
5136 #ifdef USE_MMAP_FOR_BUFFERS
5137 configure___ use_mmap_for_buffers=yes
5139 configure___ use_mmap_for_buffers=no
5142 #ifndef C_DEBUG_SWITCH
5143 #define C_DEBUG_SWITCH -g
5146 #ifndef C_OPTIMIZE_SWITCH
5148 #define C_OPTIMIZE_SWITCH -O2
5150 #define C_OPTIMIZE_SWITCH -O
5154 #ifndef C_WARNINGS_SWITCH
5155 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5158 #ifndef LD_SWITCH_MACHINE
5159 #define LD_SWITCH_MACHINE
5162 #ifndef LD_SWITCH_SYSTEM
5163 #define LD_SWITCH_SYSTEM
5166 #ifndef LD_SWITCH_X_SITE_AUX
5167 #define LD_SWITCH_X_SITE_AUX
5170 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5171 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5173 #ifdef THIS_IS_CONFIGURE
5175 /* Get the CFLAGS for tests in configure. */
5177 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5179 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5182 #else /* not THIS_IS_CONFIGURE */
5184 /* Get the CFLAGS for real compilation. */
5186 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5188 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5191 #endif /* not THIS_IS_CONFIGURE */
5194 # The value of CPP is a quoted variable reference, so we need to do this
5195 # to get its actual value...
5196 CPP=`eval "echo $CPP"`
5197 eval `${CPP} -Isrc ${tempcname} \
5198 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5199 if test "x$SPECIFIED_CFLAGS" = x; then
5200 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5201 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5203 REAL_CFLAGS="$CFLAGS"
5207 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5209 ### Make sure subsequent tests use flags consistent with the build flags.
5211 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5212 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5214 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5219 # Check whether --enable-largefile was given.
5220 if test "${enable_largefile+set}" = set; then
5221 enableval=$enable_largefile;
5224 if test "$enable_largefile" != no; then
5226 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5227 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5228 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5229 echo $ECHO_N "(cached) $ECHO_C" >&6
5231 ac_cv_sys_largefile_CC=no
5232 if test "$GCC" != yes; then
5235 # IRIX 6.2 and later do not support large files by default,
5236 # so use the C compiler's -n32 option if that helps.
5237 cat >conftest.$ac_ext <<_ACEOF
5240 cat confdefs.h >>conftest.$ac_ext
5241 cat >>conftest.$ac_ext <<_ACEOF
5242 /* end confdefs.h. */
5243 #include <sys/types.h>
5244 /* Check that off_t can represent 2**63 - 1 correctly.
5245 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5246 since some C++ compilers masquerading as C compilers
5247 incorrectly reject 9223372036854775807. */
5248 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5249 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5250 && LARGE_OFF_T % 2147483647 == 1)
5260 rm -f conftest.$ac_objext
5261 if { (ac_try="$ac_compile"
5263 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5264 *) ac_try_echo
=$ac_try;;
5266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5267 (eval "$ac_compile") 2>conftest.er1
5269 grep -v '^ *+' conftest.er1
>conftest.err
5271 cat conftest.err
>&5
5272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5273 (exit $ac_status); } && {
5274 test -z "$ac_c_werror_flag" ||
5275 test ! -s conftest.err
5276 } && test -s conftest.
$ac_objext; then
5279 echo "$as_me: failed program was:" >&5
5280 sed 's/^/| /' conftest.
$ac_ext >&5
5285 rm -f core conftest.err conftest.
$ac_objext
5287 rm -f conftest.
$ac_objext
5288 if { (ac_try
="$ac_compile"
5290 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5291 *) ac_try_echo=$ac_try;;
5293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5294 (eval "$ac_compile") 2>conftest.er1
5296 grep -v '^ *+' conftest.er1 >conftest.err
5298 cat conftest.err >&5
5299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300 (exit $ac_status); } && {
5301 test -z "$ac_c_werror_flag" ||
5302 test ! -s conftest.err
5303 } && test -s conftest.$ac_objext; then
5304 ac_cv_sys_largefile_CC=' -n32'; break
5306 echo "$as_me: failed program was:" >&5
5307 sed 's/^/| /' conftest.$ac_ext >&5
5312 rm -f core conftest.err conftest.$ac_objext
5316 rm -f conftest.$ac_ext
5319 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5320 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5321 if test "$ac_cv_sys_largefile_CC" != no; then
5322 CC=$CC$ac_cv_sys_largefile_CC
5325 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5326 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5327 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5328 echo $ECHO_N "(cached) $ECHO_C" >&6
5331 cat >conftest.$ac_ext <<_ACEOF
5334 cat confdefs.h >>conftest.$ac_ext
5335 cat >>conftest.$ac_ext <<_ACEOF
5336 /* end confdefs.h. */
5337 #include <sys/types.h>
5338 /* Check that off_t can represent 2**63 - 1 correctly.
5339 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5340 since some C++ compilers masquerading as C compilers
5341 incorrectly reject 9223372036854775807. */
5342 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5343 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5344 && LARGE_OFF_T % 2147483647 == 1)
5354 rm -f conftest.$ac_objext
5355 if { (ac_try="$ac_compile"
5357 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5358 *) ac_try_echo
=$ac_try;;
5360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5361 (eval "$ac_compile") 2>conftest.er1
5363 grep -v '^ *+' conftest.er1
>conftest.err
5365 cat conftest.err
>&5
5366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5367 (exit $ac_status); } && {
5368 test -z "$ac_c_werror_flag" ||
5369 test ! -s conftest.err
5370 } && test -s conftest.
$ac_objext; then
5371 ac_cv_sys_file_offset_bits
=no
; break
5373 echo "$as_me: failed program was:" >&5
5374 sed 's/^/| /' conftest.
$ac_ext >&5
5379 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5380 cat >conftest.
$ac_ext <<_ACEOF
5383 cat confdefs.h
>>conftest.
$ac_ext
5384 cat >>conftest.
$ac_ext <<_ACEOF
5385 /* end confdefs.h. */
5386 #define _FILE_OFFSET_BITS 64
5387 #include <sys/types.h>
5388 /* Check that off_t can represent 2**63 - 1 correctly.
5389 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5390 since some C++ compilers masquerading as C compilers
5391 incorrectly reject 9223372036854775807. */
5392 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5393 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5394 && LARGE_OFF_T % 2147483647 == 1)
5404 rm -f conftest.
$ac_objext
5405 if { (ac_try
="$ac_compile"
5407 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5408 *) ac_try_echo=$ac_try;;
5410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5411 (eval "$ac_compile") 2>conftest.er1
5413 grep -v '^ *+' conftest.er1 >conftest.err
5415 cat conftest.err >&5
5416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417 (exit $ac_status); } && {
5418 test -z "$ac_c_werror_flag" ||
5419 test ! -s conftest.err
5420 } && test -s conftest.$ac_objext; then
5421 ac_cv_sys_file_offset_bits=64; break
5423 echo "$as_me: failed program was:" >&5
5424 sed 's/^/| /' conftest.$ac_ext >&5
5429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5430 ac_cv_sys_file_offset_bits=unknown
5434 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5435 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5436 case $ac_cv_sys_file_offset_bits in #(
5439 cat >>confdefs.h <<_ACEOF
5440 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5445 if test $ac_cv_sys_file_offset_bits = unknown; then
5446 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5447 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5448 if test "${ac_cv_sys_large_files+set}" = set; then
5449 echo $ECHO_N "(cached) $ECHO_C" >&6
5452 cat >conftest.$ac_ext <<_ACEOF
5455 cat confdefs.h >>conftest.$ac_ext
5456 cat >>conftest.$ac_ext <<_ACEOF
5457 /* end confdefs.h. */
5458 #include <sys/types.h>
5459 /* Check that off_t can represent 2**63 - 1 correctly.
5460 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5461 since some C++ compilers masquerading as C compilers
5462 incorrectly reject 9223372036854775807. */
5463 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5464 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5465 && LARGE_OFF_T % 2147483647 == 1)
5475 rm -f conftest.$ac_objext
5476 if { (ac_try="$ac_compile"
5478 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5479 *) ac_try_echo
=$ac_try;;
5481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5482 (eval "$ac_compile") 2>conftest.er1
5484 grep -v '^ *+' conftest.er1
>conftest.err
5486 cat conftest.err
>&5
5487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488 (exit $ac_status); } && {
5489 test -z "$ac_c_werror_flag" ||
5490 test ! -s conftest.err
5491 } && test -s conftest.
$ac_objext; then
5492 ac_cv_sys_large_files
=no
; break
5494 echo "$as_me: failed program was:" >&5
5495 sed 's/^/| /' conftest.
$ac_ext >&5
5500 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5501 cat >conftest.
$ac_ext <<_ACEOF
5504 cat confdefs.h
>>conftest.
$ac_ext
5505 cat >>conftest.
$ac_ext <<_ACEOF
5506 /* end confdefs.h. */
5507 #define _LARGE_FILES 1
5508 #include <sys/types.h>
5509 /* Check that off_t can represent 2**63 - 1 correctly.
5510 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5511 since some C++ compilers masquerading as C compilers
5512 incorrectly reject 9223372036854775807. */
5513 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5514 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5515 && LARGE_OFF_T % 2147483647 == 1)
5525 rm -f conftest.
$ac_objext
5526 if { (ac_try
="$ac_compile"
5528 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5529 *) ac_try_echo=$ac_try;;
5531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5532 (eval "$ac_compile") 2>conftest.er1
5534 grep -v '^ *+' conftest.er1 >conftest.err
5536 cat conftest.err >&5
5537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538 (exit $ac_status); } && {
5539 test -z "$ac_c_werror_flag" ||
5540 test ! -s conftest.err
5541 } && test -s conftest.$ac_objext; then
5542 ac_cv_sys_large_files=1; break
5544 echo "$as_me: failed program was:" >&5
5545 sed 's/^/| /' conftest.$ac_ext >&5
5550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5551 ac_cv_sys_large_files=unknown
5555 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5556 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5557 case $ac_cv_sys_large_files in #(
5560 cat >>confdefs.h <<_ACEOF
5561 #define _LARGE_FILES $ac_cv_sys_large_files
5571 ### The standard library on x86-64 and s390x GNU/Linux distributions can
5572 ### be located in either /usr/lib64 or /usr/lib.
5573 case "${canonical}" in
5574 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
5575 if test -d /usr/lib64; then
5577 cat >>confdefs.h <<\_ACEOF
5578 #define HAVE_LIB64_DIR 1
5587 if test "${with_sound}" != "no"; then
5588 # Sound support for GNU/Linux and the free BSDs.
5589 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5590 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5591 if test "${ac_cv_header_stdc+set}" = set; then
5592 echo $ECHO_N "(cached) $ECHO_C" >&6
5594 cat >conftest.$ac_ext <<_ACEOF
5597 cat confdefs.h >>conftest.$ac_ext
5598 cat >>conftest.$ac_ext <<_ACEOF
5599 /* end confdefs.h. */
5613 rm -f conftest.$ac_objext
5614 if { (ac_try="$ac_compile"
5616 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5617 *) ac_try_echo
=$ac_try;;
5619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5620 (eval "$ac_compile") 2>conftest.er1
5622 grep -v '^ *+' conftest.er1
>conftest.err
5624 cat conftest.err
>&5
5625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626 (exit $ac_status); } && {
5627 test -z "$ac_c_werror_flag" ||
5628 test ! -s conftest.err
5629 } && test -s conftest.
$ac_objext; then
5630 ac_cv_header_stdc
=yes
5632 echo "$as_me: failed program was:" >&5
5633 sed 's/^/| /' conftest.
$ac_ext >&5
5635 ac_cv_header_stdc
=no
5638 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5640 if test $ac_cv_header_stdc = yes; then
5641 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5642 cat >conftest.
$ac_ext <<_ACEOF
5645 cat confdefs.h
>>conftest.
$ac_ext
5646 cat >>conftest.
$ac_ext <<_ACEOF
5647 /* end confdefs.h. */
5651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5652 $EGREP "memchr" >/dev
/null
2>&1; then
5655 ac_cv_header_stdc
=no
5661 if test $ac_cv_header_stdc = yes; then
5662 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5663 cat >conftest.
$ac_ext <<_ACEOF
5666 cat confdefs.h
>>conftest.
$ac_ext
5667 cat >>conftest.
$ac_ext <<_ACEOF
5668 /* end confdefs.h. */
5672 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5673 $EGREP "free" >/dev
/null
2>&1; then
5676 ac_cv_header_stdc
=no
5682 if test $ac_cv_header_stdc = yes; then
5683 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5684 if test "$cross_compiling" = yes; then
5687 cat >conftest.
$ac_ext <<_ACEOF
5690 cat confdefs.h
>>conftest.
$ac_ext
5691 cat >>conftest.
$ac_ext <<_ACEOF
5692 /* end confdefs.h. */
5695 #if ((' ' & 0x0FF) == 0x020)
5696 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5697 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5699 # define ISLOWER(c) \
5700 (('a' <= (c) && (c) <= 'i') \
5701 || ('j' <= (c) && (c) <= 'r') \
5702 || ('s' <= (c) && (c) <= 'z'))
5703 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5706 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5711 for (i = 0; i < 256; i++)
5712 if (XOR (islower (i), ISLOWER (i))
5713 || toupper (i) != TOUPPER (i))
5718 rm -f conftest
$ac_exeext
5719 if { (ac_try
="$ac_link"
5721 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5722 *) ac_try_echo=$ac_try;;
5724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5725 (eval "$ac_link") 2>&5
5727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5729 { (case "(($ac_try" in
5730 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5731 *) ac_try_echo
=$ac_try;;
5733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5734 (eval "$ac_try") 2>&5
5736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737 (exit $ac_status); }; }; then
5740 echo "$as_me: program exited with status $ac_status" >&5
5741 echo "$as_me: failed program was:" >&5
5742 sed 's/^/| /' conftest.
$ac_ext >&5
5745 ac_cv_header_stdc
=no
5747 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5753 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5754 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5755 if test $ac_cv_header_stdc = yes; then
5757 cat >>confdefs.h
<<\_ACEOF
5758 #define STDC_HEADERS 1
5763 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5773 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5774 inttypes.h stdint.h unistd.h
5776 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5777 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5778 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5779 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5780 echo $ECHO_N "(cached) $ECHO_C" >&6
5782 cat >conftest.
$ac_ext <<_ACEOF
5785 cat confdefs.h
>>conftest.
$ac_ext
5786 cat >>conftest.
$ac_ext <<_ACEOF
5787 /* end confdefs.h. */
5788 $ac_includes_default
5790 #include <$ac_header>
5792 rm -f conftest.
$ac_objext
5793 if { (ac_try
="$ac_compile"
5795 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5796 *) ac_try_echo=$ac_try;;
5798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5799 (eval "$ac_compile") 2>conftest.er1
5801 grep -v '^ *+' conftest.er1 >conftest.err
5803 cat conftest.err >&5
5804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805 (exit $ac_status); } && {
5806 test -z "$ac_c_werror_flag" ||
5807 test ! -s conftest.err
5808 } && test -s conftest.$ac_objext; then
5809 eval "$as_ac_Header=yes"
5811 echo "$as_me: failed program was:" >&5
5812 sed 's/^/| /' conftest.$ac_ext >&5
5814 eval "$as_ac_Header=no"
5817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5819 ac_res=`eval echo '${'$as_ac_Header'}'`
5820 { echo "$as_me:$LINENO: result: $ac_res" >&5
5821 echo "${ECHO_T}$ac_res" >&6; }
5822 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5823 cat >>confdefs.h <<_ACEOF
5824 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5835 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5837 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5838 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5839 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5841 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5842 echo $ECHO_N "(cached) $ECHO_C" >&6
5844 ac_res=`eval echo '${'$as_ac_Header'}'`
5845 { echo "$as_me:$LINENO: result: $ac_res" >&5
5846 echo "${ECHO_T}$ac_res" >&6; }
5848 # Is the header compilable?
5849 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5850 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5851 cat >conftest.$ac_ext <<_ACEOF
5854 cat confdefs.h >>conftest.$ac_ext
5855 cat >>conftest.$ac_ext <<_ACEOF
5856 /* end confdefs.h. */
5857 $ac_includes_default
5858 #include <$ac_header>
5860 rm -f conftest.$ac_objext
5861 if { (ac_try="$ac_compile"
5863 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5864 *) ac_try_echo
=$ac_try;;
5866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5867 (eval "$ac_compile") 2>conftest.er1
5869 grep -v '^ *+' conftest.er1
>conftest.err
5871 cat conftest.err
>&5
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); } && {
5874 test -z "$ac_c_werror_flag" ||
5875 test ! -s conftest.err
5876 } && test -s conftest.
$ac_objext; then
5877 ac_header_compiler
=yes
5879 echo "$as_me: failed program was:" >&5
5880 sed 's/^/| /' conftest.
$ac_ext >&5
5882 ac_header_compiler
=no
5885 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5886 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5887 echo "${ECHO_T}$ac_header_compiler" >&6; }
5889 # Is the header present?
5890 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5891 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5892 cat >conftest.
$ac_ext <<_ACEOF
5895 cat confdefs.h
>>conftest.
$ac_ext
5896 cat >>conftest.
$ac_ext <<_ACEOF
5897 /* end confdefs.h. */
5898 #include <$ac_header>
5900 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5902 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5903 *) ac_try_echo=$ac_try;;
5905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5906 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5908 grep -v '^ *+' conftest.er1 >conftest.err
5910 cat conftest.err >&5
5911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5912 (exit $ac_status); } >/dev/null && {
5913 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5914 test ! -s conftest.err
5916 ac_header_preproc=yes
5918 echo "$as_me: failed program was:" >&5
5919 sed 's/^/| /' conftest.$ac_ext >&5
5921 ac_header_preproc=no
5924 rm -f conftest.err conftest.$ac_ext
5925 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5926 echo "${ECHO_T}$ac_header_preproc" >&6; }
5928 # So? What about this header?
5929 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5931 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5932 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5933 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5934 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5935 ac_header_preproc=yes
5938 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5939 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5940 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5941 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5942 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5943 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5944 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5945 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5946 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5947 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5948 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5949 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5953 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5954 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5955 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5956 echo $ECHO_N "(cached) $ECHO_C" >&6
5958 eval "$as_ac_Header=\$ac_header_preproc"
5960 ac_res=`eval echo '${'$as_ac_Header'}'`
5961 { echo "$as_me:$LINENO: result: $ac_res" >&5
5962 echo "${ECHO_T}$ac_res" >&6; }
5965 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5966 cat >>confdefs.h <<_ACEOF
5967 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5974 # Emulation library used on NetBSD.
5975 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5976 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
5977 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5978 echo $ECHO_N "(cached) $ECHO_C" >&6
5980 ac_check_lib_save_LIBS=$LIBS
5981 LIBS="-lossaudio $LIBS"
5982 cat >conftest.$ac_ext <<_ACEOF
5985 cat confdefs.h >>conftest.$ac_ext
5986 cat >>conftest.$ac_ext <<_ACEOF
5987 /* end confdefs.h. */
5989 /* Override any GCC internal prototype to avoid an error.
5990 Use char because int might match the return type of a GCC
5991 builtin and then its argument prototype would still apply. */
5999 return _oss_ioctl ();
6004 rm -f conftest.$ac_objext conftest$ac_exeext
6005 if { (ac_try="$ac_link"
6007 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6008 *) ac_try_echo
=$ac_try;;
6010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6011 (eval "$ac_link") 2>conftest.er1
6013 grep -v '^ *+' conftest.er1
>conftest.err
6015 cat conftest.err
>&5
6016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017 (exit $ac_status); } && {
6018 test -z "$ac_c_werror_flag" ||
6019 test ! -s conftest.err
6020 } && test -s conftest
$ac_exeext &&
6021 $as_test_x conftest
$ac_exeext; then
6022 ac_cv_lib_ossaudio__oss_ioctl
=yes
6024 echo "$as_me: failed program was:" >&5
6025 sed 's/^/| /' conftest.
$ac_ext >&5
6027 ac_cv_lib_ossaudio__oss_ioctl
=no
6030 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6031 conftest
$ac_exeext conftest.
$ac_ext
6032 LIBS
=$ac_check_lib_save_LIBS
6034 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6035 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6036 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6045 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6049 # Extract the first word of "pkg-config", so it can be a program name with args.
6050 set dummy pkg-config
; ac_word
=$2
6051 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6053 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6054 echo $ECHO_N "(cached) $ECHO_C" >&6
6058 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6061 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6065 test -z "$as_dir" && as_dir
=.
6066 for ac_exec_ext
in '' $ac_executable_extensions; do
6067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6068 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6076 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6080 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6081 if test -n "$PKG_CONFIG"; then
6082 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6083 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6085 { echo "$as_me:$LINENO: result: no" >&5
6086 echo "${ECHO_T}no" >&6; }
6091 if test "$PKG_CONFIG" = "no" ; then
6094 PKG_CONFIG_MIN_VERSION
=0.9.0
6095 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6096 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6097 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6099 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6100 { echo "$as_me:$LINENO: result: yes" >&5
6101 echo "${ECHO_T}yes" >&6; }
6104 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6105 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6106 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6107 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6108 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6110 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6111 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6112 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6113 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6114 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6116 { echo "$as_me:$LINENO: result: no" >&5
6117 echo "${ECHO_T}no" >&6; }
6120 ## If we have a custom action on failure, don't print errors, but
6121 ## do set a variable so people can do so.
6122 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6129 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6130 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6134 if test $succeeded = yes; then
6140 if test $HAVE_ALSA = yes; then
6141 SAVE_CFLAGS
="$CFLAGS"
6142 SAVE_LDFLAGS
="$LDFLAGS"
6143 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6144 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6145 cat >conftest.
$ac_ext <<_ACEOF
6148 cat confdefs.h
>>conftest.
$ac_ext
6149 cat >>conftest.
$ac_ext <<_ACEOF
6150 /* end confdefs.h. */
6151 #include <asoundlib.h>
6155 snd_lib_error_set_handler (0);
6160 rm -f conftest.
$ac_objext
6161 if { (ac_try
="$ac_compile"
6163 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6164 *) ac_try_echo=$ac_try;;
6166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6167 (eval "$ac_compile") 2>conftest.er1
6169 grep -v '^ *+' conftest.er1 >conftest.err
6171 cat conftest.err >&5
6172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6173 (exit $ac_status); } && {
6174 test -z "$ac_c_werror_flag" ||
6175 test ! -s conftest.err
6176 } && test -s conftest.$ac_objext; then
6177 emacs_alsa_normal=yes
6179 echo "$as_me: failed program was:" >&5
6180 sed 's/^/| /' conftest.$ac_ext >&5
6182 emacs_alsa_normal=no
6185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6186 if test "$emacs_alsa_normal" != yes; then
6187 cat >conftest.$ac_ext <<_ACEOF
6190 cat confdefs.h >>conftest.$ac_ext
6191 cat >>conftest.$ac_ext <<_ACEOF
6192 /* end confdefs.h. */
6193 #include <alsa/asoundlib.h>
6197 snd_lib_error_set_handler (0);
6202 rm -f conftest.$ac_objext
6203 if { (ac_try="$ac_compile"
6205 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6206 *) ac_try_echo
=$ac_try;;
6208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6209 (eval "$ac_compile") 2>conftest.er1
6211 grep -v '^ *+' conftest.er1
>conftest.err
6213 cat conftest.err
>&5
6214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215 (exit $ac_status); } && {
6216 test -z "$ac_c_werror_flag" ||
6217 test ! -s conftest.err
6218 } && test -s conftest.
$ac_objext; then
6219 emacs_alsa_subdir
=yes
6221 echo "$as_me: failed program was:" >&5
6222 sed 's/^/| /' conftest.
$ac_ext >&5
6224 emacs_alsa_subdir
=no
6227 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6228 if test "$emacs_alsa_subdir" != yes; then
6229 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6230 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6231 { (exit 1); exit 1; }; }
6233 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6236 CFLAGS
="$SAVE_CFLAGS"
6237 LDFLAGS
="$SAVE_LDFLAGS"
6238 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6239 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6241 cat >>confdefs.h
<<\_ACEOF
6274 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6275 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6276 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6277 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6280 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6281 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6282 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6283 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6284 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6285 echo $ECHO_N "(cached) $ECHO_C" >&6
6287 ac_res
=`eval echo '${'$as_ac_Header'}'`
6288 { echo "$as_me:$LINENO: result: $ac_res" >&5
6289 echo "${ECHO_T}$ac_res" >&6; }
6291 # Is the header compilable?
6292 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6293 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6294 cat >conftest.
$ac_ext <<_ACEOF
6297 cat confdefs.h
>>conftest.
$ac_ext
6298 cat >>conftest.
$ac_ext <<_ACEOF
6299 /* end confdefs.h. */
6300 $ac_includes_default
6301 #include <$ac_header>
6303 rm -f conftest.
$ac_objext
6304 if { (ac_try
="$ac_compile"
6306 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6307 *) ac_try_echo=$ac_try;;
6309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6310 (eval "$ac_compile") 2>conftest.er1
6312 grep -v '^ *+' conftest.er1 >conftest.err
6314 cat conftest.err >&5
6315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316 (exit $ac_status); } && {
6317 test -z "$ac_c_werror_flag" ||
6318 test ! -s conftest.err
6319 } && test -s conftest.$ac_objext; then
6320 ac_header_compiler=yes
6322 echo "$as_me: failed program was:" >&5
6323 sed 's/^/| /' conftest.$ac_ext >&5
6325 ac_header_compiler=no
6328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6329 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6330 echo "${ECHO_T}$ac_header_compiler" >&6; }
6332 # Is the header present?
6333 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6334 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6335 cat >conftest.$ac_ext <<_ACEOF
6338 cat confdefs.h >>conftest.$ac_ext
6339 cat >>conftest.$ac_ext <<_ACEOF
6340 /* end confdefs.h. */
6341 #include <$ac_header>
6343 if { (ac_try="$ac_cpp conftest.$ac_ext"
6345 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6346 *) ac_try_echo
=$ac_try;;
6348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6349 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6351 grep -v '^ *+' conftest.er1
>conftest.err
6353 cat conftest.err
>&5
6354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355 (exit $ac_status); } >/dev
/null
&& {
6356 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6357 test ! -s conftest.err
6359 ac_header_preproc
=yes
6361 echo "$as_me: failed program was:" >&5
6362 sed 's/^/| /' conftest.
$ac_ext >&5
6364 ac_header_preproc
=no
6367 rm -f conftest.err conftest.
$ac_ext
6368 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6369 echo "${ECHO_T}$ac_header_preproc" >&6; }
6371 # So? What about this header?
6372 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6374 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6375 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6376 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6377 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6378 ac_header_preproc
=yes
6381 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6382 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6383 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6384 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6385 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6386 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6387 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6388 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6389 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6390 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6391 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6392 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6396 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6398 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6399 echo $ECHO_N "(cached) $ECHO_C" >&6
6401 eval "$as_ac_Header=\$ac_header_preproc"
6403 ac_res
=`eval echo '${'$as_ac_Header'}'`
6404 { echo "$as_me:$LINENO: result: $ac_res" >&5
6405 echo "${ECHO_T}$ac_res" >&6; }
6408 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6409 cat >>confdefs.h
<<_ACEOF
6410 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6418 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6419 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6420 cat >conftest.
$ac_ext <<_ACEOF
6423 cat confdefs.h
>>conftest.
$ac_ext
6424 cat >>conftest.
$ac_ext <<_ACEOF
6425 /* end confdefs.h. */
6426 #include <sys/personality.h>
6430 personality (PER_LINUX32)
6435 rm -f conftest.
$ac_objext
6436 if { (ac_try
="$ac_compile"
6438 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6439 *) ac_try_echo=$ac_try;;
6441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6442 (eval "$ac_compile") 2>conftest.er1
6444 grep -v '^ *+' conftest.er1 >conftest.err
6446 cat conftest.err >&5
6447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448 (exit $ac_status); } && {
6449 test -z "$ac_c_werror_flag" ||
6450 test ! -s conftest.err
6451 } && test -s conftest.$ac_objext; then
6452 emacs_cv_personality_linux32=yes
6454 echo "$as_me: failed program was:" >&5
6455 sed 's/^/| /' conftest.$ac_ext >&5
6457 emacs_cv_personality_linux32=no
6460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6461 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6462 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6464 if test $emacs_cv_personality_linux32 = yes; then
6466 cat >>confdefs.h <<\_ACEOF
6467 #define HAVE_PERSONALITY_LINUX32 1
6473 for ac_header in term.h
6475 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6476 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6478 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6479 echo $ECHO_N "(cached) $ECHO_C" >&6
6481 cat >conftest.$ac_ext <<_ACEOF
6484 cat confdefs.h >>conftest.$ac_ext
6485 cat >>conftest.$ac_ext <<_ACEOF
6486 /* end confdefs.h. */
6487 #include <$ac_header>
6489 if { (ac_try="$ac_cpp conftest.$ac_ext"
6491 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6492 *) ac_try_echo
=$ac_try;;
6494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6495 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6497 grep -v '^ *+' conftest.er1
>conftest.err
6499 cat conftest.err
>&5
6500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501 (exit $ac_status); } >/dev
/null
&& {
6502 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6503 test ! -s conftest.err
6505 eval "$as_ac_Header=yes"
6507 echo "$as_me: failed program was:" >&5
6508 sed 's/^/| /' conftest.
$ac_ext >&5
6510 eval "$as_ac_Header=no"
6513 rm -f conftest.err conftest.
$ac_ext
6515 ac_res
=`eval echo '${'$as_ac_Header'}'`
6516 { echo "$as_me:$LINENO: result: $ac_res" >&5
6517 echo "${ECHO_T}$ac_res" >&6; }
6518 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6519 cat >>confdefs.h
<<_ACEOF
6520 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6527 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6528 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6529 if test "${ac_cv_header_stdc+set}" = set; then
6530 echo $ECHO_N "(cached) $ECHO_C" >&6
6532 cat >conftest.
$ac_ext <<_ACEOF
6535 cat confdefs.h
>>conftest.
$ac_ext
6536 cat >>conftest.
$ac_ext <<_ACEOF
6537 /* end confdefs.h. */
6551 rm -f conftest.
$ac_objext
6552 if { (ac_try
="$ac_compile"
6554 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6555 *) ac_try_echo=$ac_try;;
6557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6558 (eval "$ac_compile") 2>conftest.er1
6560 grep -v '^ *+' conftest.er1 >conftest.err
6562 cat conftest.err >&5
6563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6564 (exit $ac_status); } && {
6565 test -z "$ac_c_werror_flag" ||
6566 test ! -s conftest.err
6567 } && test -s conftest.$ac_objext; then
6568 ac_cv_header_stdc=yes
6570 echo "$as_me: failed program was:" >&5
6571 sed 's/^/| /' conftest.$ac_ext >&5
6573 ac_cv_header_stdc=no
6576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6578 if test $ac_cv_header_stdc = yes; then
6579 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6580 cat >conftest.$ac_ext <<_ACEOF
6583 cat confdefs.h >>conftest.$ac_ext
6584 cat >>conftest.$ac_ext <<_ACEOF
6585 /* end confdefs.h. */
6589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6590 $EGREP "memchr" >/dev/null 2>&1; then
6593 ac_cv_header_stdc=no
6599 if test $ac_cv_header_stdc = yes; then
6600 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6601 cat >conftest.$ac_ext <<_ACEOF
6604 cat confdefs.h >>conftest.$ac_ext
6605 cat >>conftest.$ac_ext <<_ACEOF
6606 /* end confdefs.h. */
6610 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6611 $EGREP "free" >/dev/null 2>&1; then
6614 ac_cv_header_stdc=no
6620 if test $ac_cv_header_stdc = yes; then
6621 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6622 if test "$cross_compiling" = yes; then
6625 cat >conftest.$ac_ext <<_ACEOF
6628 cat confdefs.h >>conftest.$ac_ext
6629 cat >>conftest.$ac_ext <<_ACEOF
6630 /* end confdefs.h. */
6633 #if ((' ' & 0x0FF) == 0x020)
6634 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6635 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6637 # define ISLOWER(c) \
6638 (('a' <= (c) && (c) <= 'i') \
6639 || ('j' <= (c) && (c) <= 'r') \
6640 || ('s' <= (c) && (c) <= 'z'))
6641 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6644 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6649 for (i = 0; i < 256; i++)
6650 if (XOR (islower (i), ISLOWER (i))
6651 || toupper (i) != TOUPPER (i))
6656 rm -f conftest$ac_exeext
6657 if { (ac_try="$ac_link"
6659 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6660 *) ac_try_echo
=$ac_try;;
6662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6663 (eval "$ac_link") 2>&5
6665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6667 { (case "(($ac_try" in
6668 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6669 *) ac_try_echo=$ac_try;;
6671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6672 (eval "$ac_try") 2>&5
6674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675 (exit $ac_status); }; }; then
6678 echo "$as_me: program exited with status $ac_status" >&5
6679 echo "$as_me: failed program was:" >&5
6680 sed 's/^/| /' conftest.$ac_ext >&5
6683 ac_cv_header_stdc=no
6685 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6691 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6692 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6693 if test $ac_cv_header_stdc = yes; then
6695 cat >>confdefs.h <<\_ACEOF
6696 #define STDC_HEADERS 1
6701 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6702 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6703 if test "${ac_cv_header_time+set}" = set; then
6704 echo $ECHO_N "(cached) $ECHO_C" >&6
6706 cat >conftest.$ac_ext <<_ACEOF
6709 cat confdefs.h >>conftest.$ac_ext
6710 cat >>conftest.$ac_ext <<_ACEOF
6711 /* end confdefs.h. */
6712 #include <sys/types.h>
6713 #include <sys/time.h>
6719 if ((struct tm *) 0)
6725 rm -f conftest.$ac_objext
6726 if { (ac_try="$ac_compile"
6728 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6729 *) ac_try_echo
=$ac_try;;
6731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6732 (eval "$ac_compile") 2>conftest.er1
6734 grep -v '^ *+' conftest.er1
>conftest.err
6736 cat conftest.err
>&5
6737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6738 (exit $ac_status); } && {
6739 test -z "$ac_c_werror_flag" ||
6740 test ! -s conftest.err
6741 } && test -s conftest.
$ac_objext; then
6742 ac_cv_header_time
=yes
6744 echo "$as_me: failed program was:" >&5
6745 sed 's/^/| /' conftest.
$ac_ext >&5
6747 ac_cv_header_time
=no
6750 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6752 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6753 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6754 if test $ac_cv_header_time = yes; then
6756 cat >>confdefs.h
<<\_ACEOF
6757 #define TIME_WITH_SYS_TIME 1
6762 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6763 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
6764 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6765 echo $ECHO_N "(cached) $ECHO_C" >&6
6767 cat >conftest.
$ac_ext <<_ACEOF
6770 cat confdefs.h
>>conftest.
$ac_ext
6771 cat >>conftest.
$ac_ext <<_ACEOF
6772 /* end confdefs.h. */
6773 $ac_includes_default
6785 rm -f conftest.
$ac_objext
6786 if { (ac_try
="$ac_compile"
6788 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6789 *) ac_try_echo=$ac_try;;
6791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6792 (eval "$ac_compile") 2>conftest.er1
6794 grep -v '^ *+' conftest.er1 >conftest.err
6796 cat conftest.err >&5
6797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6798 (exit $ac_status); } && {
6799 test -z "$ac_c_werror_flag" ||
6800 test ! -s conftest.err
6801 } && test -s conftest.$ac_objext; then
6802 ac_cv_have_decl_sys_siglist=yes
6804 echo "$as_me: failed program was:" >&5
6805 sed 's/^/| /' conftest.$ac_ext >&5
6807 ac_cv_have_decl_sys_siglist=no
6810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6812 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6813 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
6814 if test $ac_cv_have_decl_sys_siglist = yes; then
6816 cat >>confdefs.h <<_ACEOF
6817 #define HAVE_DECL_SYS_SIGLIST 1
6822 cat >>confdefs.h <<_ACEOF
6823 #define HAVE_DECL_SYS_SIGLIST 0
6830 if test $ac_cv_have_decl_sys_siglist != yes; then
6831 # For Tru64, at least:
6832 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6833 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
6834 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6835 echo $ECHO_N "(cached) $ECHO_C" >&6
6837 cat >conftest.$ac_ext <<_ACEOF
6840 cat confdefs.h >>conftest.$ac_ext
6841 cat >>conftest.$ac_ext <<_ACEOF
6842 /* end confdefs.h. */
6843 $ac_includes_default
6847 #ifndef __sys_siglist
6848 (void) __sys_siglist;
6855 rm -f conftest.$ac_objext
6856 if { (ac_try="$ac_compile"
6858 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6859 *) ac_try_echo
=$ac_try;;
6861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6862 (eval "$ac_compile") 2>conftest.er1
6864 grep -v '^ *+' conftest.er1
>conftest.err
6866 cat conftest.err
>&5
6867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868 (exit $ac_status); } && {
6869 test -z "$ac_c_werror_flag" ||
6870 test ! -s conftest.err
6871 } && test -s conftest.
$ac_objext; then
6872 ac_cv_have_decl___sys_siglist
=yes
6874 echo "$as_me: failed program was:" >&5
6875 sed 's/^/| /' conftest.
$ac_ext >&5
6877 ac_cv_have_decl___sys_siglist
=no
6880 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6882 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6883 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
6884 if test $ac_cv_have_decl___sys_siglist = yes; then
6886 cat >>confdefs.h
<<_ACEOF
6887 #define HAVE_DECL___SYS_SIGLIST 1
6892 cat >>confdefs.h
<<_ACEOF
6893 #define HAVE_DECL___SYS_SIGLIST 0
6900 if test $ac_cv_have_decl___sys_siglist = yes; then
6902 cat >>confdefs.h
<<\_ACEOF
6903 #define sys_siglist __sys_siglist
6908 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6909 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6910 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6911 echo $ECHO_N "(cached) $ECHO_C" >&6
6913 cat >conftest.
$ac_ext <<_ACEOF
6916 cat confdefs.h
>>conftest.
$ac_ext
6917 cat >>conftest.
$ac_ext <<_ACEOF
6918 /* end confdefs.h. */
6919 #include <sys/types.h>
6920 #include <sys/wait.h>
6922 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6925 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6933 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6938 rm -f conftest.
$ac_objext
6939 if { (ac_try
="$ac_compile"
6941 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6942 *) ac_try_echo=$ac_try;;
6944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6945 (eval "$ac_compile") 2>conftest.er1
6947 grep -v '^ *+' conftest.er1 >conftest.err
6949 cat conftest.err >&5
6950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6951 (exit $ac_status); } && {
6952 test -z "$ac_c_werror_flag" ||
6953 test ! -s conftest.err
6954 } && test -s conftest.$ac_objext; then
6955 ac_cv_header_sys_wait_h=yes
6957 echo "$as_me: failed program was:" >&5
6958 sed 's/^/| /' conftest.$ac_ext >&5
6960 ac_cv_header_sys_wait_h=no
6963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6965 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6966 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
6967 if test $ac_cv_header_sys_wait_h = yes; then
6969 cat >>confdefs.h <<\_ACEOF
6970 #define HAVE_SYS_WAIT_H 1
6976 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6977 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
6978 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6979 echo $ECHO_N "(cached) $ECHO_C" >&6
6981 cat >conftest.$ac_ext <<_ACEOF
6984 cat confdefs.h >>conftest.$ac_ext
6985 cat >>conftest.$ac_ext <<_ACEOF
6986 /* end confdefs.h. */
6987 #ifdef TIME_WITH_SYS_TIME
6988 #include <sys/time.h>
6991 #ifdef HAVE_SYS_TIME_H
6992 #include <sys/time.h>
7003 static struct utimbuf x; x.actime = x.modtime;
7008 rm -f conftest.$ac_objext
7009 if { (ac_try="$ac_compile"
7011 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7012 *) ac_try_echo
=$ac_try;;
7014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7015 (eval "$ac_compile") 2>conftest.er1
7017 grep -v '^ *+' conftest.er1
>conftest.err
7019 cat conftest.err
>&5
7020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021 (exit $ac_status); } && {
7022 test -z "$ac_c_werror_flag" ||
7023 test ! -s conftest.err
7024 } && test -s conftest.
$ac_objext; then
7025 emacs_cv_struct_utimbuf
=yes
7027 echo "$as_me: failed program was:" >&5
7028 sed 's/^/| /' conftest.
$ac_ext >&5
7030 emacs_cv_struct_utimbuf
=no
7033 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7035 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7036 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7037 if test $emacs_cv_struct_utimbuf = yes; then
7039 cat >>confdefs.h
<<\_ACEOF
7040 #define HAVE_STRUCT_UTIMBUF 1
7045 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7046 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7047 if test "${ac_cv_type_signal+set}" = set; then
7048 echo $ECHO_N "(cached) $ECHO_C" >&6
7050 cat >conftest.
$ac_ext <<_ACEOF
7053 cat confdefs.h
>>conftest.
$ac_ext
7054 cat >>conftest.
$ac_ext <<_ACEOF
7055 /* end confdefs.h. */
7056 #include <sys/types.h>
7062 return *(signal (0, 0)) (0) == 1;
7067 rm -f conftest.
$ac_objext
7068 if { (ac_try
="$ac_compile"
7070 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7071 *) ac_try_echo=$ac_try;;
7073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7074 (eval "$ac_compile") 2>conftest.er1
7076 grep -v '^ *+' conftest.er1 >conftest.err
7078 cat conftest.err >&5
7079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080 (exit $ac_status); } && {
7081 test -z "$ac_c_werror_flag" ||
7082 test ! -s conftest.err
7083 } && test -s conftest.$ac_objext; then
7084 ac_cv_type_signal=int
7086 echo "$as_me: failed program was:" >&5
7087 sed 's/^/| /' conftest.$ac_ext >&5
7089 ac_cv_type_signal=void
7092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7094 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7095 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7097 cat >>confdefs.h <<_ACEOF
7098 #define RETSIGTYPE $ac_cv_type_signal
7103 { echo "$as_me:$LINENO: checking for speed_t" >&5
7104 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7105 if test "${emacs_cv_speed_t+set}" = set; then
7106 echo $ECHO_N "(cached) $ECHO_C" >&6
7108 cat >conftest.$ac_ext <<_ACEOF
7111 cat confdefs.h >>conftest.$ac_ext
7112 cat >>conftest.$ac_ext <<_ACEOF
7113 /* end confdefs.h. */
7114 #include <termios.h>
7123 rm -f conftest.$ac_objext
7124 if { (ac_try="$ac_compile"
7126 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7127 *) ac_try_echo
=$ac_try;;
7129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7130 (eval "$ac_compile") 2>conftest.er1
7132 grep -v '^ *+' conftest.er1
>conftest.err
7134 cat conftest.err
>&5
7135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7136 (exit $ac_status); } && {
7137 test -z "$ac_c_werror_flag" ||
7138 test ! -s conftest.err
7139 } && test -s conftest.
$ac_objext; then
7140 emacs_cv_speed_t
=yes
7142 echo "$as_me: failed program was:" >&5
7143 sed 's/^/| /' conftest.
$ac_ext >&5
7148 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7150 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7151 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7152 if test $emacs_cv_speed_t = yes; then
7154 cat >>confdefs.h
<<\_ACEOF
7155 #define HAVE_SPEED_T 1
7160 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7161 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7162 if test "${emacs_cv_struct_timeval+set}" = set; then
7163 echo $ECHO_N "(cached) $ECHO_C" >&6
7165 cat >conftest.
$ac_ext <<_ACEOF
7168 cat confdefs.h
>>conftest.
$ac_ext
7169 cat >>conftest.
$ac_ext <<_ACEOF
7170 /* end confdefs.h. */
7171 #ifdef TIME_WITH_SYS_TIME
7172 #include <sys/time.h>
7175 #ifdef HAVE_SYS_TIME_H
7176 #include <sys/time.h>
7184 static struct timeval x; x.tv_sec = x.tv_usec;
7189 rm -f conftest.
$ac_objext
7190 if { (ac_try
="$ac_compile"
7192 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7193 *) ac_try_echo=$ac_try;;
7195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7196 (eval "$ac_compile") 2>conftest.er1
7198 grep -v '^ *+' conftest.er1 >conftest.err
7200 cat conftest.err >&5
7201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202 (exit $ac_status); } && {
7203 test -z "$ac_c_werror_flag" ||
7204 test ! -s conftest.err
7205 } && test -s conftest.$ac_objext; then
7206 emacs_cv_struct_timeval=yes
7208 echo "$as_me: failed program was:" >&5
7209 sed 's/^/| /' conftest.$ac_ext >&5
7211 emacs_cv_struct_timeval=no
7214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7216 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7217 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7218 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7219 if test $emacs_cv_struct_timeval = yes; then
7221 cat >>confdefs.h <<\_ACEOF
7222 #define HAVE_TIMEVAL 1
7227 { echo "$as_me:$LINENO: checking for struct exception" >&5
7228 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7229 if test "${emacs_cv_struct_exception+set}" = set; then
7230 echo $ECHO_N "(cached) $ECHO_C" >&6
7232 cat >conftest.$ac_ext <<_ACEOF
7235 cat confdefs.h >>conftest.$ac_ext
7236 cat >>conftest.$ac_ext <<_ACEOF
7237 /* end confdefs.h. */
7242 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7247 rm -f conftest.$ac_objext
7248 if { (ac_try="$ac_compile"
7250 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7251 *) ac_try_echo
=$ac_try;;
7253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7254 (eval "$ac_compile") 2>conftest.er1
7256 grep -v '^ *+' conftest.er1
>conftest.err
7258 cat conftest.err
>&5
7259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260 (exit $ac_status); } && {
7261 test -z "$ac_c_werror_flag" ||
7262 test ! -s conftest.err
7263 } && test -s conftest.
$ac_objext; then
7264 emacs_cv_struct_exception
=yes
7266 echo "$as_me: failed program was:" >&5
7267 sed 's/^/| /' conftest.
$ac_ext >&5
7269 emacs_cv_struct_exception
=no
7272 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7274 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7275 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7276 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7277 if test $emacs_cv_struct_exception != yes; then
7279 cat >>confdefs.h
<<\_ACEOF
7280 #define NO_MATHERR 1
7286 for ac_header
in sys
/socket.h
7288 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7289 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7290 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7291 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7292 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7293 echo $ECHO_N "(cached) $ECHO_C" >&6
7295 ac_res
=`eval echo '${'$as_ac_Header'}'`
7296 { echo "$as_me:$LINENO: result: $ac_res" >&5
7297 echo "${ECHO_T}$ac_res" >&6; }
7299 # Is the header compilable?
7300 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7301 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7302 cat >conftest.
$ac_ext <<_ACEOF
7305 cat confdefs.h
>>conftest.
$ac_ext
7306 cat >>conftest.
$ac_ext <<_ACEOF
7307 /* end confdefs.h. */
7308 $ac_includes_default
7309 #include <$ac_header>
7311 rm -f conftest.
$ac_objext
7312 if { (ac_try
="$ac_compile"
7314 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7315 *) ac_try_echo=$ac_try;;
7317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7318 (eval "$ac_compile") 2>conftest.er1
7320 grep -v '^ *+' conftest.er1 >conftest.err
7322 cat conftest.err >&5
7323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7324 (exit $ac_status); } && {
7325 test -z "$ac_c_werror_flag" ||
7326 test ! -s conftest.err
7327 } && test -s conftest.$ac_objext; then
7328 ac_header_compiler=yes
7330 echo "$as_me: failed program was:" >&5
7331 sed 's/^/| /' conftest.$ac_ext >&5
7333 ac_header_compiler=no
7336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7337 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7338 echo "${ECHO_T}$ac_header_compiler" >&6; }
7340 # Is the header present?
7341 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7342 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7343 cat >conftest.$ac_ext <<_ACEOF
7346 cat confdefs.h >>conftest.$ac_ext
7347 cat >>conftest.$ac_ext <<_ACEOF
7348 /* end confdefs.h. */
7349 #include <$ac_header>
7351 if { (ac_try="$ac_cpp conftest.$ac_ext"
7353 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7354 *) ac_try_echo
=$ac_try;;
7356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7357 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7359 grep -v '^ *+' conftest.er1
>conftest.err
7361 cat conftest.err
>&5
7362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7363 (exit $ac_status); } >/dev
/null
&& {
7364 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7365 test ! -s conftest.err
7367 ac_header_preproc
=yes
7369 echo "$as_me: failed program was:" >&5
7370 sed 's/^/| /' conftest.
$ac_ext >&5
7372 ac_header_preproc
=no
7375 rm -f conftest.err conftest.
$ac_ext
7376 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7377 echo "${ECHO_T}$ac_header_preproc" >&6; }
7379 # So? What about this header?
7380 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7382 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7383 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7384 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7385 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7386 ac_header_preproc
=yes
7389 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7390 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7391 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7392 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7393 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7394 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7395 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7396 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7397 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7398 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7399 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7400 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7404 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7406 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7407 echo $ECHO_N "(cached) $ECHO_C" >&6
7409 eval "$as_ac_Header=\$ac_header_preproc"
7411 ac_res
=`eval echo '${'$as_ac_Header'}'`
7412 { echo "$as_me:$LINENO: result: $ac_res" >&5
7413 echo "${ECHO_T}$ac_res" >&6; }
7416 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7417 cat >>confdefs.h
<<_ACEOF
7418 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7426 for ac_header
in net
/if.h
7428 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7429 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7430 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7431 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7432 echo $ECHO_N "(cached) $ECHO_C" >&6
7434 cat >conftest.
$ac_ext <<_ACEOF
7437 cat confdefs.h
>>conftest.
$ac_ext
7438 cat >>conftest.
$ac_ext <<_ACEOF
7439 /* end confdefs.h. */
7440 $ac_includes_default
7441 #if HAVE_SYS_SOCKET_H
7442 #include <sys/socket.h>
7445 #include <$ac_header>
7447 rm -f conftest.
$ac_objext
7448 if { (ac_try
="$ac_compile"
7450 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7451 *) ac_try_echo=$ac_try;;
7453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7454 (eval "$ac_compile") 2>conftest.er1
7456 grep -v '^ *+' conftest.er1 >conftest.err
7458 cat conftest.err >&5
7459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7460 (exit $ac_status); } && {
7461 test -z "$ac_c_werror_flag" ||
7462 test ! -s conftest.err
7463 } && test -s conftest.$ac_objext; then
7464 eval "$as_ac_Header=yes"
7466 echo "$as_me: failed program was:" >&5
7467 sed 's/^/| /' conftest.$ac_ext >&5
7469 eval "$as_ac_Header=no"
7472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7474 ac_res=`eval echo '${'$as_ac_Header'}'`
7475 { echo "$as_me:$LINENO: result: $ac_res" >&5
7476 echo "${ECHO_T}$ac_res" >&6; }
7477 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7478 cat >>confdefs.h <<_ACEOF
7479 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7487 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7488 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7489 if test "${ac_cv_struct_tm+set}" = set; then
7490 echo $ECHO_N "(cached) $ECHO_C" >&6
7492 cat >conftest.$ac_ext <<_ACEOF
7495 cat confdefs.h >>conftest.$ac_ext
7496 cat >>conftest.$ac_ext <<_ACEOF
7497 /* end confdefs.h. */
7498 #include <sys/types.h>
7505 int *p = &tm.tm_sec;
7511 rm -f conftest.$ac_objext
7512 if { (ac_try="$ac_compile"
7514 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7515 *) ac_try_echo
=$ac_try;;
7517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7518 (eval "$ac_compile") 2>conftest.er1
7520 grep -v '^ *+' conftest.er1
>conftest.err
7522 cat conftest.err
>&5
7523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7524 (exit $ac_status); } && {
7525 test -z "$ac_c_werror_flag" ||
7526 test ! -s conftest.err
7527 } && test -s conftest.
$ac_objext; then
7528 ac_cv_struct_tm
=time.h
7530 echo "$as_me: failed program was:" >&5
7531 sed 's/^/| /' conftest.
$ac_ext >&5
7533 ac_cv_struct_tm
=sys
/time.h
7536 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7538 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7539 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7540 if test $ac_cv_struct_tm = sys
/time.h
; then
7542 cat >>confdefs.h
<<\_ACEOF
7543 #define TM_IN_SYS_TIME 1
7548 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7549 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7550 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7551 echo $ECHO_N "(cached) $ECHO_C" >&6
7553 cat >conftest.
$ac_ext <<_ACEOF
7556 cat confdefs.h
>>conftest.
$ac_ext
7557 cat >>conftest.
$ac_ext <<_ACEOF
7558 /* end confdefs.h. */
7559 #include <sys/types.h>
7560 #include <$ac_cv_struct_tm>
7566 static struct tm ac_aggr;
7567 if (ac_aggr.tm_zone)
7573 rm -f conftest.
$ac_objext
7574 if { (ac_try
="$ac_compile"
7576 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7577 *) ac_try_echo=$ac_try;;
7579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7580 (eval "$ac_compile") 2>conftest.er1
7582 grep -v '^ *+' conftest.er1 >conftest.err
7584 cat conftest.err >&5
7585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7586 (exit $ac_status); } && {
7587 test -z "$ac_c_werror_flag" ||
7588 test ! -s conftest.err
7589 } && test -s conftest.$ac_objext; then
7590 ac_cv_member_struct_tm_tm_zone=yes
7592 echo "$as_me: failed program was:" >&5
7593 sed 's/^/| /' conftest.$ac_ext >&5
7595 cat >conftest.$ac_ext <<_ACEOF
7598 cat confdefs.h >>conftest.$ac_ext
7599 cat >>conftest.$ac_ext <<_ACEOF
7600 /* end confdefs.h. */
7601 #include <sys/types.h>
7602 #include <$ac_cv_struct_tm>
7608 static struct tm ac_aggr;
7609 if (sizeof ac_aggr.tm_zone)
7615 rm -f conftest.$ac_objext
7616 if { (ac_try="$ac_compile"
7618 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7619 *) ac_try_echo
=$ac_try;;
7621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7622 (eval "$ac_compile") 2>conftest.er1
7624 grep -v '^ *+' conftest.er1
>conftest.err
7626 cat conftest.err
>&5
7627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628 (exit $ac_status); } && {
7629 test -z "$ac_c_werror_flag" ||
7630 test ! -s conftest.err
7631 } && test -s conftest.
$ac_objext; then
7632 ac_cv_member_struct_tm_tm_zone
=yes
7634 echo "$as_me: failed program was:" >&5
7635 sed 's/^/| /' conftest.
$ac_ext >&5
7637 ac_cv_member_struct_tm_tm_zone
=no
7640 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7643 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7645 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7646 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7647 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7649 cat >>confdefs.h
<<_ACEOF
7650 #define HAVE_STRUCT_TM_TM_ZONE 1
7656 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7658 cat >>confdefs.h
<<\_ACEOF
7659 #define HAVE_TM_ZONE 1
7663 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7664 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7665 if test "${ac_cv_have_decl_tzname+set}" = set; then
7666 echo $ECHO_N "(cached) $ECHO_C" >&6
7668 cat >conftest.
$ac_ext <<_ACEOF
7671 cat confdefs.h
>>conftest.
$ac_ext
7672 cat >>conftest.
$ac_ext <<_ACEOF
7673 /* end confdefs.h. */
7687 rm -f conftest.
$ac_objext
7688 if { (ac_try
="$ac_compile"
7690 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7691 *) ac_try_echo=$ac_try;;
7693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7694 (eval "$ac_compile") 2>conftest.er1
7696 grep -v '^ *+' conftest.er1 >conftest.err
7698 cat conftest.err >&5
7699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7700 (exit $ac_status); } && {
7701 test -z "$ac_c_werror_flag" ||
7702 test ! -s conftest.err
7703 } && test -s conftest.$ac_objext; then
7704 ac_cv_have_decl_tzname=yes
7706 echo "$as_me: failed program was:" >&5
7707 sed 's/^/| /' conftest.$ac_ext >&5
7709 ac_cv_have_decl_tzname=no
7712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7714 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7715 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7716 if test $ac_cv_have_decl_tzname = yes; then
7718 cat >>confdefs.h <<_ACEOF
7719 #define HAVE_DECL_TZNAME 1
7724 cat >>confdefs.h <<_ACEOF
7725 #define HAVE_DECL_TZNAME 0
7732 { echo "$as_me:$LINENO: checking for tzname" >&5
7733 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7734 if test "${ac_cv_var_tzname+set}" = set; then
7735 echo $ECHO_N "(cached) $ECHO_C" >&6
7737 cat >conftest.$ac_ext <<_ACEOF
7740 cat confdefs.h >>conftest.$ac_ext
7741 cat >>conftest.$ac_ext <<_ACEOF
7742 /* end confdefs.h. */
7744 #if !HAVE_DECL_TZNAME
7745 extern char *tzname[];
7751 return tzname[0][0];
7756 rm -f conftest.$ac_objext conftest$ac_exeext
7757 if { (ac_try="$ac_link"
7759 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7760 *) ac_try_echo
=$ac_try;;
7762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7763 (eval "$ac_link") 2>conftest.er1
7765 grep -v '^ *+' conftest.er1
>conftest.err
7767 cat conftest.err
>&5
7768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7769 (exit $ac_status); } && {
7770 test -z "$ac_c_werror_flag" ||
7771 test ! -s conftest.err
7772 } && test -s conftest
$ac_exeext &&
7773 $as_test_x conftest
$ac_exeext; then
7774 ac_cv_var_tzname
=yes
7776 echo "$as_me: failed program was:" >&5
7777 sed 's/^/| /' conftest.
$ac_ext >&5
7782 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7783 conftest
$ac_exeext conftest.
$ac_ext
7785 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7786 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7787 if test $ac_cv_var_tzname = yes; then
7789 cat >>confdefs.h
<<\_ACEOF
7790 #define HAVE_TZNAME 1
7796 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7797 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7798 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7799 echo $ECHO_N "(cached) $ECHO_C" >&6
7801 cat >conftest.
$ac_ext <<_ACEOF
7804 cat confdefs.h
>>conftest.
$ac_ext
7805 cat >>conftest.
$ac_ext <<_ACEOF
7806 /* end confdefs.h. */
7812 static struct tm ac_aggr;
7813 if (ac_aggr.tm_gmtoff)
7819 rm -f conftest.
$ac_objext
7820 if { (ac_try
="$ac_compile"
7822 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7823 *) ac_try_echo=$ac_try;;
7825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7826 (eval "$ac_compile") 2>conftest.er1
7828 grep -v '^ *+' conftest.er1 >conftest.err
7830 cat conftest.err >&5
7831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832 (exit $ac_status); } && {
7833 test -z "$ac_c_werror_flag" ||
7834 test ! -s conftest.err
7835 } && test -s conftest.$ac_objext; then
7836 ac_cv_member_struct_tm_tm_gmtoff=yes
7838 echo "$as_me: failed program was:" >&5
7839 sed 's/^/| /' conftest.$ac_ext >&5
7841 cat >conftest.$ac_ext <<_ACEOF
7844 cat confdefs.h >>conftest.$ac_ext
7845 cat >>conftest.$ac_ext <<_ACEOF
7846 /* end confdefs.h. */
7852 static struct tm ac_aggr;
7853 if (sizeof ac_aggr.tm_gmtoff)
7859 rm -f conftest.$ac_objext
7860 if { (ac_try="$ac_compile"
7862 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7863 *) ac_try_echo
=$ac_try;;
7865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7866 (eval "$ac_compile") 2>conftest.er1
7868 grep -v '^ *+' conftest.er1
>conftest.err
7870 cat conftest.err
>&5
7871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7872 (exit $ac_status); } && {
7873 test -z "$ac_c_werror_flag" ||
7874 test ! -s conftest.err
7875 } && test -s conftest.
$ac_objext; then
7876 ac_cv_member_struct_tm_tm_gmtoff
=yes
7878 echo "$as_me: failed program was:" >&5
7879 sed 's/^/| /' conftest.
$ac_ext >&5
7881 ac_cv_member_struct_tm_tm_gmtoff
=no
7884 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7887 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7889 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7890 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7891 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7893 cat >>confdefs.h
<<\_ACEOF
7894 #define HAVE_TM_GMTOFF 1
7899 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7900 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
7901 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7902 echo $ECHO_N "(cached) $ECHO_C" >&6
7904 cat >conftest.
$ac_ext <<_ACEOF
7907 cat confdefs.h
>>conftest.
$ac_ext
7908 cat >>conftest.
$ac_ext <<_ACEOF
7909 /* end confdefs.h. */
7910 $ac_includes_default
7911 #if HAVE_SYS_SOCKET_H
7912 #include <sys/socket.h>
7921 static struct ifreq ac_aggr;
7922 if (ac_aggr.ifr_flags)
7928 rm -f conftest.
$ac_objext
7929 if { (ac_try
="$ac_compile"
7931 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7932 *) ac_try_echo=$ac_try;;
7934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7935 (eval "$ac_compile") 2>conftest.er1
7937 grep -v '^ *+' conftest.er1 >conftest.err
7939 cat conftest.err >&5
7940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7941 (exit $ac_status); } && {
7942 test -z "$ac_c_werror_flag" ||
7943 test ! -s conftest.err
7944 } && test -s conftest.$ac_objext; then
7945 ac_cv_member_struct_ifreq_ifr_flags=yes
7947 echo "$as_me: failed program was:" >&5
7948 sed 's/^/| /' conftest.$ac_ext >&5
7950 cat >conftest.$ac_ext <<_ACEOF
7953 cat confdefs.h >>conftest.$ac_ext
7954 cat >>conftest.$ac_ext <<_ACEOF
7955 /* end confdefs.h. */
7956 $ac_includes_default
7957 #if HAVE_SYS_SOCKET_H
7958 #include <sys/socket.h>
7967 static struct ifreq ac_aggr;
7968 if (sizeof ac_aggr.ifr_flags)
7974 rm -f conftest.$ac_objext
7975 if { (ac_try="$ac_compile"
7977 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7978 *) ac_try_echo
=$ac_try;;
7980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7981 (eval "$ac_compile") 2>conftest.er1
7983 grep -v '^ *+' conftest.er1
>conftest.err
7985 cat conftest.err
>&5
7986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987 (exit $ac_status); } && {
7988 test -z "$ac_c_werror_flag" ||
7989 test ! -s conftest.err
7990 } && test -s conftest.
$ac_objext; then
7991 ac_cv_member_struct_ifreq_ifr_flags
=yes
7993 echo "$as_me: failed program was:" >&5
7994 sed 's/^/| /' conftest.
$ac_ext >&5
7996 ac_cv_member_struct_ifreq_ifr_flags
=no
7999 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8002 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8004 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8005 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8006 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8008 cat >>confdefs.h
<<_ACEOF
8009 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8014 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8015 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8016 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8017 echo $ECHO_N "(cached) $ECHO_C" >&6
8019 cat >conftest.
$ac_ext <<_ACEOF
8022 cat confdefs.h
>>conftest.
$ac_ext
8023 cat >>conftest.
$ac_ext <<_ACEOF
8024 /* end confdefs.h. */
8025 $ac_includes_default
8026 #if HAVE_SYS_SOCKET_H
8027 #include <sys/socket.h>
8036 static struct ifreq ac_aggr;
8037 if (ac_aggr.ifr_hwaddr)
8043 rm -f conftest.
$ac_objext
8044 if { (ac_try
="$ac_compile"
8046 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8047 *) ac_try_echo=$ac_try;;
8049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8050 (eval "$ac_compile") 2>conftest.er1
8052 grep -v '^ *+' conftest.er1 >conftest.err
8054 cat conftest.err >&5
8055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8056 (exit $ac_status); } && {
8057 test -z "$ac_c_werror_flag" ||
8058 test ! -s conftest.err
8059 } && test -s conftest.$ac_objext; then
8060 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8062 echo "$as_me: failed program was:" >&5
8063 sed 's/^/| /' conftest.$ac_ext >&5
8065 cat >conftest.$ac_ext <<_ACEOF
8068 cat confdefs.h >>conftest.$ac_ext
8069 cat >>conftest.$ac_ext <<_ACEOF
8070 /* end confdefs.h. */
8071 $ac_includes_default
8072 #if HAVE_SYS_SOCKET_H
8073 #include <sys/socket.h>
8082 static struct ifreq ac_aggr;
8083 if (sizeof ac_aggr.ifr_hwaddr)
8089 rm -f conftest.$ac_objext
8090 if { (ac_try="$ac_compile"
8092 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8093 *) ac_try_echo
=$ac_try;;
8095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8096 (eval "$ac_compile") 2>conftest.er1
8098 grep -v '^ *+' conftest.er1
>conftest.err
8100 cat conftest.err
>&5
8101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8102 (exit $ac_status); } && {
8103 test -z "$ac_c_werror_flag" ||
8104 test ! -s conftest.err
8105 } && test -s conftest.
$ac_objext; then
8106 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8108 echo "$as_me: failed program was:" >&5
8109 sed 's/^/| /' conftest.
$ac_ext >&5
8111 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8114 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8117 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8119 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8120 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8121 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8123 cat >>confdefs.h
<<_ACEOF
8124 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8129 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8130 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8131 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8132 echo $ECHO_N "(cached) $ECHO_C" >&6
8134 cat >conftest.
$ac_ext <<_ACEOF
8137 cat confdefs.h
>>conftest.
$ac_ext
8138 cat >>conftest.
$ac_ext <<_ACEOF
8139 /* end confdefs.h. */
8140 $ac_includes_default
8141 #if HAVE_SYS_SOCKET_H
8142 #include <sys/socket.h>
8151 static struct ifreq ac_aggr;
8152 if (ac_aggr.ifr_netmask)
8158 rm -f conftest.
$ac_objext
8159 if { (ac_try
="$ac_compile"
8161 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8162 *) ac_try_echo=$ac_try;;
8164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8165 (eval "$ac_compile") 2>conftest.er1
8167 grep -v '^ *+' conftest.er1 >conftest.err
8169 cat conftest.err >&5
8170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171 (exit $ac_status); } && {
8172 test -z "$ac_c_werror_flag" ||
8173 test ! -s conftest.err
8174 } && test -s conftest.$ac_objext; then
8175 ac_cv_member_struct_ifreq_ifr_netmask=yes
8177 echo "$as_me: failed program was:" >&5
8178 sed 's/^/| /' conftest.$ac_ext >&5
8180 cat >conftest.$ac_ext <<_ACEOF
8183 cat confdefs.h >>conftest.$ac_ext
8184 cat >>conftest.$ac_ext <<_ACEOF
8185 /* end confdefs.h. */
8186 $ac_includes_default
8187 #if HAVE_SYS_SOCKET_H
8188 #include <sys/socket.h>
8197 static struct ifreq ac_aggr;
8198 if (sizeof ac_aggr.ifr_netmask)
8204 rm -f conftest.$ac_objext
8205 if { (ac_try="$ac_compile"
8207 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8208 *) ac_try_echo
=$ac_try;;
8210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8211 (eval "$ac_compile") 2>conftest.er1
8213 grep -v '^ *+' conftest.er1
>conftest.err
8215 cat conftest.err
>&5
8216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8217 (exit $ac_status); } && {
8218 test -z "$ac_c_werror_flag" ||
8219 test ! -s conftest.err
8220 } && test -s conftest.
$ac_objext; then
8221 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8223 echo "$as_me: failed program was:" >&5
8224 sed 's/^/| /' conftest.
$ac_ext >&5
8226 ac_cv_member_struct_ifreq_ifr_netmask
=no
8229 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8232 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8234 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8235 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8236 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8238 cat >>confdefs.h
<<_ACEOF
8239 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8244 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8245 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8246 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8247 echo $ECHO_N "(cached) $ECHO_C" >&6
8249 cat >conftest.
$ac_ext <<_ACEOF
8252 cat confdefs.h
>>conftest.
$ac_ext
8253 cat >>conftest.
$ac_ext <<_ACEOF
8254 /* end confdefs.h. */
8255 $ac_includes_default
8256 #if HAVE_SYS_SOCKET_H
8257 #include <sys/socket.h>
8266 static struct ifreq ac_aggr;
8267 if (ac_aggr.ifr_broadaddr)
8273 rm -f conftest.
$ac_objext
8274 if { (ac_try
="$ac_compile"
8276 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8277 *) ac_try_echo=$ac_try;;
8279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8280 (eval "$ac_compile") 2>conftest.er1
8282 grep -v '^ *+' conftest.er1 >conftest.err
8284 cat conftest.err >&5
8285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8286 (exit $ac_status); } && {
8287 test -z "$ac_c_werror_flag" ||
8288 test ! -s conftest.err
8289 } && test -s conftest.$ac_objext; then
8290 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8292 echo "$as_me: failed program was:" >&5
8293 sed 's/^/| /' conftest.$ac_ext >&5
8295 cat >conftest.$ac_ext <<_ACEOF
8298 cat confdefs.h >>conftest.$ac_ext
8299 cat >>conftest.$ac_ext <<_ACEOF
8300 /* end confdefs.h. */
8301 $ac_includes_default
8302 #if HAVE_SYS_SOCKET_H
8303 #include <sys/socket.h>
8312 static struct ifreq ac_aggr;
8313 if (sizeof ac_aggr.ifr_broadaddr)
8319 rm -f conftest.$ac_objext
8320 if { (ac_try="$ac_compile"
8322 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8323 *) ac_try_echo
=$ac_try;;
8325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8326 (eval "$ac_compile") 2>conftest.er1
8328 grep -v '^ *+' conftest.er1
>conftest.err
8330 cat conftest.err
>&5
8331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332 (exit $ac_status); } && {
8333 test -z "$ac_c_werror_flag" ||
8334 test ! -s conftest.err
8335 } && test -s conftest.
$ac_objext; then
8336 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
8338 echo "$as_me: failed program was:" >&5
8339 sed 's/^/| /' conftest.
$ac_ext >&5
8341 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
8344 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8347 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8349 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8350 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8351 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8353 cat >>confdefs.h
<<_ACEOF
8354 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8359 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8360 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8361 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8362 echo $ECHO_N "(cached) $ECHO_C" >&6
8364 cat >conftest.
$ac_ext <<_ACEOF
8367 cat confdefs.h
>>conftest.
$ac_ext
8368 cat >>conftest.
$ac_ext <<_ACEOF
8369 /* end confdefs.h. */
8370 $ac_includes_default
8371 #if HAVE_SYS_SOCKET_H
8372 #include <sys/socket.h>
8381 static struct ifreq ac_aggr;
8382 if (ac_aggr.ifr_addr)
8388 rm -f conftest.
$ac_objext
8389 if { (ac_try
="$ac_compile"
8391 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8392 *) ac_try_echo=$ac_try;;
8394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8395 (eval "$ac_compile") 2>conftest.er1
8397 grep -v '^ *+' conftest.er1 >conftest.err
8399 cat conftest.err >&5
8400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401 (exit $ac_status); } && {
8402 test -z "$ac_c_werror_flag" ||
8403 test ! -s conftest.err
8404 } && test -s conftest.$ac_objext; then
8405 ac_cv_member_struct_ifreq_ifr_addr=yes
8407 echo "$as_me: failed program was:" >&5
8408 sed 's/^/| /' conftest.$ac_ext >&5
8410 cat >conftest.$ac_ext <<_ACEOF
8413 cat confdefs.h >>conftest.$ac_ext
8414 cat >>conftest.$ac_ext <<_ACEOF
8415 /* end confdefs.h. */
8416 $ac_includes_default
8417 #if HAVE_SYS_SOCKET_H
8418 #include <sys/socket.h>
8427 static struct ifreq ac_aggr;
8428 if (sizeof ac_aggr.ifr_addr)
8434 rm -f conftest.$ac_objext
8435 if { (ac_try="$ac_compile"
8437 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8438 *) ac_try_echo
=$ac_try;;
8440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8441 (eval "$ac_compile") 2>conftest.er1
8443 grep -v '^ *+' conftest.er1
>conftest.err
8445 cat conftest.err
>&5
8446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447 (exit $ac_status); } && {
8448 test -z "$ac_c_werror_flag" ||
8449 test ! -s conftest.err
8450 } && test -s conftest.
$ac_objext; then
8451 ac_cv_member_struct_ifreq_ifr_addr
=yes
8453 echo "$as_me: failed program was:" >&5
8454 sed 's/^/| /' conftest.
$ac_ext >&5
8456 ac_cv_member_struct_ifreq_ifr_addr
=no
8459 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8462 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8464 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8465 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8466 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8468 cat >>confdefs.h
<<_ACEOF
8469 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8477 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8478 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8479 if test "$ac_cv_prog_cc_c89" != no
; then
8480 { echo "$as_me:$LINENO: result: yes" >&5
8481 echo "${ECHO_T}yes" >&6; }
8483 cat >>confdefs.h
<<\_ACEOF
8484 #define PROTOTYPES 1
8488 cat >>confdefs.h
<<\_ACEOF
8489 #define __PROTOTYPES 1
8493 { echo "$as_me:$LINENO: result: no" >&5
8494 echo "${ECHO_T}no" >&6; }
8497 { echo "$as_me:$LINENO: checking for working volatile" >&5
8498 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8499 if test "${ac_cv_c_volatile+set}" = set; then
8500 echo $ECHO_N "(cached) $ECHO_C" >&6
8502 cat >conftest.
$ac_ext <<_ACEOF
8505 cat confdefs.h
>>conftest.
$ac_ext
8506 cat >>conftest.
$ac_ext <<_ACEOF
8507 /* end confdefs.h. */
8514 int * volatile y = (int *) 0;
8520 rm -f conftest.
$ac_objext
8521 if { (ac_try
="$ac_compile"
8523 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8524 *) ac_try_echo=$ac_try;;
8526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8527 (eval "$ac_compile") 2>conftest.er1
8529 grep -v '^ *+' conftest.er1 >conftest.err
8531 cat conftest.err >&5
8532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533 (exit $ac_status); } && {
8534 test -z "$ac_c_werror_flag" ||
8535 test ! -s conftest.err
8536 } && test -s conftest.$ac_objext; then
8537 ac_cv_c_volatile=yes
8539 echo "$as_me: failed program was:" >&5
8540 sed 's/^/| /' conftest.$ac_ext >&5
8545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8547 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8548 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8549 if test $ac_cv_c_volatile = no; then
8551 cat >>confdefs.h <<\_ACEOF
8557 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8558 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8559 if test "${ac_cv_c_const+set}" = set; then
8560 echo $ECHO_N "(cached) $ECHO_C" >&6
8562 cat >conftest.$ac_ext <<_ACEOF
8565 cat confdefs.h >>conftest.$ac_ext
8566 cat >>conftest.$ac_ext <<_ACEOF
8567 /* end confdefs.h. */
8572 /* FIXME: Include the comments suggested by Paul. */
8574 /* Ultrix mips cc rejects this. */
8575 typedef int charset[2];
8577 /* SunOS 4.1.1 cc rejects this. */
8578 char const *const *pcpcc;
8580 /* NEC SVR4.0.2 mips cc rejects this. */
8581 struct point {int x, y;};
8582 static struct point const zero = {0,0};
8583 /* AIX XL C 1.02.0.0 rejects this.
8584 It does not let you subtract one const X* pointer from another in
8585 an arm of an if-expression whose if-part is not a constant
8587 const char *g = "string";
8588 pcpcc = &g + (g ? g-g : 0);
8589 /* HPUX 7.0 cc rejects these. */
8591 ppc = (char**) pcpcc;
8592 pcpcc = (char const *const *) ppc;
8593 { /* SCO 3.2v4 cc rejects this. */
8595 char const *s = 0 ? (char *) 0 : (char const *) 0;
8600 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8602 const int *foo = &x[0];
8605 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8606 typedef const int *iptr;
8610 { /* AIX XL C 1.02.0.0 rejects this saying
8611 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8612 struct s { int j; const int *ap[3]; };
8613 struct s *b; b->j = 5;
8615 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8619 return !cs[0] && !zero.x;
8626 rm -f conftest.$ac_objext
8627 if { (ac_try="$ac_compile"
8629 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8630 *) ac_try_echo
=$ac_try;;
8632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8633 (eval "$ac_compile") 2>conftest.er1
8635 grep -v '^ *+' conftest.er1
>conftest.err
8637 cat conftest.err
>&5
8638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639 (exit $ac_status); } && {
8640 test -z "$ac_c_werror_flag" ||
8641 test ! -s conftest.err
8642 } && test -s conftest.
$ac_objext; then
8645 echo "$as_me: failed program was:" >&5
8646 sed 's/^/| /' conftest.
$ac_ext >&5
8651 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8653 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8654 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8655 if test $ac_cv_c_const = no
; then
8657 cat >>confdefs.h
<<\_ACEOF
8663 { echo "$as_me:$LINENO: checking for void * support" >&5
8664 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8665 if test "${emacs_cv_void_star+set}" = set; then
8666 echo $ECHO_N "(cached) $ECHO_C" >&6
8668 cat >conftest.
$ac_ext <<_ACEOF
8671 cat confdefs.h
>>conftest.
$ac_ext
8672 cat >>conftest.
$ac_ext <<_ACEOF
8673 /* end confdefs.h. */
8683 rm -f conftest.
$ac_objext
8684 if { (ac_try
="$ac_compile"
8686 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8687 *) ac_try_echo=$ac_try;;
8689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8690 (eval "$ac_compile") 2>conftest.er1
8692 grep -v '^ *+' conftest.er1 >conftest.err
8694 cat conftest.err >&5
8695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696 (exit $ac_status); } && {
8697 test -z "$ac_c_werror_flag" ||
8698 test ! -s conftest.err
8699 } && test -s conftest.$ac_objext; then
8700 emacs_cv_void_star=yes
8702 echo "$as_me: failed program was:" >&5
8703 sed 's/^/| /' conftest.$ac_ext >&5
8705 emacs_cv_void_star=no
8708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8710 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8711 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8712 if test $emacs_cv_void_star = yes; then
8713 cat >>confdefs.h <<\_ACEOF
8714 #define POINTER_TYPE void
8718 cat >>confdefs.h <<\_ACEOF
8719 #define POINTER_TYPE char
8728 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8729 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8730 set x ${MAKE-make}; ac_make=`echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8731 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8732 echo $ECHO_N "(cached) $ECHO_C" >&6
8734 cat >conftest.make <<\_ACEOF
8737 @echo '@@@%%%=$(MAKE)=@@@%%%'
8739 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8740 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
8742 eval ac_cv_prog_make_${ac_make}_set=yes;;
8744 eval ac_cv_prog_make_${ac_make}_set=no;;
8748 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8749 { echo "$as_me:$LINENO: result: yes" >&5
8750 echo "${ECHO_T}yes" >&6; }
8753 { echo "$as_me:$LINENO: result: no" >&5
8754 echo "${ECHO_T}no" >&6; }
8755 SET_MAKE="MAKE=${MAKE-make}"
8759 { echo "$as_me:$LINENO: checking for long file names" >&5
8760 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
8761 if test "${ac_cv_sys_long_file_names+set}" = set; then
8762 echo $ECHO_N "(cached) $ECHO_C" >&6
8764 ac_cv_sys_long_file_names=yes
8765 # Test for long file names in all the places we know might matter:
8766 # . the current directory, where building will happen
8767 # $prefix/lib where we will be installing things
8768 # $exec_prefix/lib likewise
8769 # $TMPDIR if set, where it might want to write temporary files
8770 # /tmp where it might want to write temporary files
8773 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8774 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8775 # in the usual case where exec_prefix is '${prefix}'.
8777 . | /* | ?:[\\/]*) ;; #(
8780 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8781 ac_xdir=$ac_dir/cf$$
8782 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8783 ac_tf1=$ac_xdir/conftest9012345
8784 ac_tf2=$ac_xdir/conftest9012346
8785 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8786 ac_cv_sys_long_file_names=no
8787 rm -f -r "$ac_xdir" 2>/dev/null
8788 test $ac_cv_sys_long_file_names = no && break
8791 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8792 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
8793 if test $ac_cv_sys_long_file_names = yes; then
8795 cat >>confdefs.h <<\_ACEOF
8796 #define HAVE_LONG_FILE_NAMES 1
8802 #### Choose a window system.
8804 { echo "$as_me:$LINENO: checking for X" >&5
8805 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
8808 # Check whether --with-x was given.
8809 if test "${with_x+set}" = set; then
8813 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8814 if test "x$with_x" = xno; then
8815 # The user explicitly disabled X.
8818 case $x_includes,$x_libraries in #(
8819 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
8820 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
8821 { (exit 1); exit 1; }; };; #(
8822 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
8823 echo $ECHO_N "(cached) $ECHO_C" >&6
8825 # One or both of the vars are not set, and there is no cached value.
8826 ac_x_includes=no ac_x_libraries=no
8827 rm -f -r conftest.dir
8828 if mkdir conftest.dir; then
8830 cat >Imakefile <<'_ACEOF'
8832 @echo incroot='${INCROOT}'
8834 @echo usrlibdir='${USRLIBDIR}'
8836 @echo libdir='${LIBDIR}'
8838 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8839 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8840 for ac_var in incroot usrlibdir libdir; do
8841 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
8843 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8844 for ac_extension in a so sl; do
8845 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8846 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8847 ac_im_usrlibdir=$ac_im_libdir; break
8850 # Screen out bogus values from the imake configuration. They are
8851 # bogus both because they are the default anyway, and because
8852 # using them would break gcc on systems where it needs fixed includes.
8853 case $ac_im_incroot in
8854 /usr/include) ac_x_includes= ;;
8855 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8857 case $ac_im_usrlibdir in
8859 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8863 rm -f -r conftest.dir
8866 # Standard set of common directories for X headers.
8867 # Check X11 before X11Rn because it is often a symlink to the current release.
8879 /usr/local/X11/include
8880 /usr/local/X11R6/include
8881 /usr/local/X11R5/include
8882 /usr/local/X11R4/include
8884 /usr/local/include/X11
8885 /usr/local/include/X11R6
8886 /usr/local/include/X11R5
8887 /usr/local/include/X11R4
8891 /usr/XFree86/include/X11
8895 /usr/unsupported/include
8897 /usr/local/x11r5/include
8898 /usr/lpp/Xamples/include
8900 /usr/openwin/include
8901 /usr/openwin/share/include'
8903 if test "$ac_x_includes" = no; then
8904 # Guess where to find include files, by looking for Xlib.h.
8905 # First, try using that file with no special directory specified.
8906 cat >conftest.$ac_ext <<_ACEOF
8909 cat confdefs.h >>conftest.$ac_ext
8910 cat >>conftest.$ac_ext <<_ACEOF
8911 /* end confdefs.h. */
8912 #include <X11/Xlib.h>
8914 if { (ac_try="$ac_cpp conftest.$ac_ext"
8916 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8917 *) ac_try_echo
=$ac_try;;
8919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8920 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8922 grep -v '^ *+' conftest.er1
>conftest.err
8924 cat conftest.err
>&5
8925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8926 (exit $ac_status); } >/dev
/null
&& {
8927 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8928 test ! -s conftest.err
8930 # We can compile using X headers with no special include directory.
8933 echo "$as_me: failed program was:" >&5
8934 sed 's/^/| /' conftest.
$ac_ext >&5
8936 for ac_dir
in $ac_x_header_dirs; do
8937 if test -r "$ac_dir/X11/Xlib.h"; then
8938 ac_x_includes
=$ac_dir
8944 rm -f conftest.err conftest.
$ac_ext
8945 fi # $ac_x_includes = no
8947 if test "$ac_x_libraries" = no
; then
8948 # Check for the libraries.
8949 # See if we find them without any special options.
8950 # Don't add to $LIBS permanently.
8953 cat >conftest.
$ac_ext <<_ACEOF
8956 cat confdefs.h
>>conftest.
$ac_ext
8957 cat >>conftest.
$ac_ext <<_ACEOF
8958 /* end confdefs.h. */
8959 #include <X11/Xlib.h>
8968 rm -f conftest.
$ac_objext conftest
$ac_exeext
8969 if { (ac_try
="$ac_link"
8971 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8972 *) ac_try_echo=$ac_try;;
8974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8975 (eval "$ac_link") 2>conftest.er1
8977 grep -v '^ *+' conftest.er1 >conftest.err
8979 cat conftest.err >&5
8980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981 (exit $ac_status); } && {
8982 test -z "$ac_c_werror_flag" ||
8983 test ! -s conftest.err
8984 } && test -s conftest$ac_exeext &&
8985 $as_test_x conftest$ac_exeext; then
8987 # We can link X programs with no special library path.
8990 echo "$as_me: failed program was:" >&5
8991 sed 's/^/| /' conftest.$ac_ext >&5
8994 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
8996 # Don't even attempt the hair of trying to link an X program!
8997 for ac_extension in a so sl; do
8998 if test -r "$ac_dir/libX11.$ac_extension"; then
8999 ac_x_libraries=$ac_dir
9006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9007 conftest$ac_exeext conftest.$ac_ext
9008 fi # $ac_x_libraries = no
9010 case $ac_x_includes,$ac_x_libraries in #(
9012 # Didn't find X, or a directory has "'" in its name.
9013 ac_cv_have_x="have_x=no";; #(
9015 # Record where we found X for the cache.
9016 ac_cv_have_x="have_x=yes\
9017 ac_x_includes='$ac_x_includes'\
9018 ac_x_libraries='$ac_x_libraries'"
9024 eval "$ac_cv_have_x"
9027 if test "$have_x" != yes; then
9028 { echo "$as_me:$LINENO: result: $have_x" >&5
9029 echo "${ECHO_T}$have_x" >&6; }
9032 # If each of the values was on the command line, it overrides each guess.
9033 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9034 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9035 # Update the cache value to reflect the command line values.
9036 ac_cv_have_x="have_x=yes\
9037 ac_x_includes='$x_includes'\
9038 ac_x_libraries='$x_libraries'"
9039 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9040 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9043 if test "$no_x" = yes; then
9049 if test "${x_libraries}" != NONE; then
9050 if test -n "${x_libraries}"; then
9051 LD_SWITCH_X_SITE=-L`echo ${x_libraries} |
sed -e "s/:/ -L/g"`
9052 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} |
sed -e "s/:/ -R/g"`
9054 x_default_search_path=""
9055 x_search_path=${x_libraries}
9056 if test -z "${x_search_path}"; then
9057 x_search_path=/usr/lib
9059 for x_library in `echo ${x_search_path}: | \
9060 sed -e "s/:/ /g" -e p
-e "s:/lib[^ /]* :/share :g"`; do
9062 ${x_library}/X11/%L/%T/%N%C%S:\
9063 ${x_library}/X11/%l/%T/%N%C%S:\
9064 ${x_library}/X11/%T/%N%C%S:\
9065 ${x_library}/X11/%L/%T/%N%S:\
9066 ${x_library}/X11/%l/%T/%N%S:\
9067 ${x_library}/X11/%T/%N%S"
9068 if test x"${x_default_search_path}" = x; then
9069 x_default_search_path=${x_search_path}
9071 x_default_search_path="${x_search_path}:${x_default_search_path}"
9075 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9076 C_SWITCH_X_SITE=-I`echo ${x_includes} |
sed -e "s/:/ -I/g"`
9079 if test x"${x_includes}" = x; then
9080 bitmapdir=/usr/include/X11/bitmaps
9082 # accumulate include directories that have X11 bitmap subdirectories
9084 for bmd in `echo ${x_includes} |
sed -e "s/:/ /g"`; do
9085 if test -d "${bmd}/X11/bitmaps"; then
9086 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9088 if test -d "${bmd}/bitmaps"; then
9089 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9092 if test ${bmd_acc} != "dummyval"; then
9093 bitmapdir=`echo ${bmd_acc} |
sed -e "s/^dummyval://"`
9098 if test "${with_carbon}" != no; then
9099 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9100 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9101 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9102 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9103 echo $ECHO_N "(cached) $ECHO_C" >&6
9105 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9106 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9108 # Is the header compilable?
9109 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9110 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9111 cat >conftest.$ac_ext <<_ACEOF
9114 cat confdefs.h >>conftest.$ac_ext
9115 cat >>conftest.$ac_ext <<_ACEOF
9116 /* end confdefs.h. */
9117 $ac_includes_default
9118 #include <Carbon/Carbon.h>
9120 rm -f conftest.$ac_objext
9121 if { (ac_try="$ac_compile"
9123 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9124 *) ac_try_echo
=$ac_try;;
9126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9127 (eval "$ac_compile") 2>conftest.er1
9129 grep -v '^ *+' conftest.er1
>conftest.err
9131 cat conftest.err
>&5
9132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133 (exit $ac_status); } && {
9134 test -z "$ac_c_werror_flag" ||
9135 test ! -s conftest.err
9136 } && test -s conftest.
$ac_objext; then
9137 ac_header_compiler
=yes
9139 echo "$as_me: failed program was:" >&5
9140 sed 's/^/| /' conftest.
$ac_ext >&5
9142 ac_header_compiler
=no
9145 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9146 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9147 echo "${ECHO_T}$ac_header_compiler" >&6; }
9149 # Is the header present?
9150 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9151 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9152 cat >conftest.
$ac_ext <<_ACEOF
9155 cat confdefs.h
>>conftest.
$ac_ext
9156 cat >>conftest.
$ac_ext <<_ACEOF
9157 /* end confdefs.h. */
9158 #include <Carbon/Carbon.h>
9160 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9162 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9163 *) ac_try_echo=$ac_try;;
9165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9166 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9168 grep -v '^ *+' conftest.er1 >conftest.err
9170 cat conftest.err >&5
9171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9172 (exit $ac_status); } >/dev/null && {
9173 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9174 test ! -s conftest.err
9176 ac_header_preproc=yes
9178 echo "$as_me: failed program was:" >&5
9179 sed 's/^/| /' conftest.$ac_ext >&5
9181 ac_header_preproc=no
9184 rm -f conftest.err conftest.$ac_ext
9185 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9186 echo "${ECHO_T}$ac_header_preproc" >&6; }
9188 # So? What about this header?
9189 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9191 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9192 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9193 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9194 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9195 ac_header_preproc=yes
9198 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9199 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9200 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9201 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9202 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9203 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9204 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9205 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9206 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9207 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9208 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9209 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9213 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9214 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9215 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9216 echo $ECHO_N "(cached) $ECHO_C" >&6
9218 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9220 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9221 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9224 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9230 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9231 if test "${with_carbon+set}" != set \
9232 && test "${carbon_appdir_x+set}" != set; then
9233 for var in with_x with_x_toolkit with_xim \
9234 with_xpm with_jpeg with_tiff with_gif with_png; do
9235 if eval test \"\${$var+set}\" = set; then
9242 if test "${HAVE_CARBON}" = yes; then
9246 case "${window_system}" in
9250 case "${with_x_toolkit}" in
9251 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9252 motif ) USE_X_TOOLKIT=MOTIF ;;
9254 USE_X_TOOLKIT=none ;;
9255 no ) USE_X_TOOLKIT=none ;;
9256 * ) USE_X_TOOLKIT=maybe ;;
9266 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9267 # Extract the first word of "X", so it can be a program name with args.
9268 set dummy X; ac_word=$2
9269 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9271 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9272 echo $ECHO_N "(cached) $ECHO_C" >&6
9274 if test -n "$HAVE_XSERVER"; then
9275 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9281 test -z "$as_dir" && as_dir=.
9282 for ac_exec_ext in '' $ac_executable_extensions; do
9283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9284 ac_cv_prog_HAVE_XSERVER="true"
9285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9292 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9295 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9296 if test -n "$HAVE_XSERVER"; then
9297 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9298 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9300 { echo "$as_me:$LINENO: result: no" >&5
9301 echo "${ECHO_T}no" >&6; }
9305 if test "$HAVE_XSERVER" = true ||
9306 test -n "$DISPLAY" ||
9307 test "`echo /usr
/lib
/libX11.
*`" != "/usr/lib/libX11.*"; then
9308 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9309 were found. You should install the relevant development files for X
9310 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9311 sure you have development files for image handling, i.e.
9312 tiff, gif, jpeg, png and xpm.
9313 If you are sure you want Emacs compiled without X window support, pass
9316 echo "$as_me: error: You seem to be running X, but no X development libraries
9317 were found. You should install the relevant development files for X
9318 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9319 sure you have development files for image handling, i.e.
9320 tiff, gif, jpeg, png and xpm.
9321 If you are sure you want Emacs compiled without X window support, pass
9323 to configure." >&2;}
9324 { (exit 1); exit 1; }; }
9328 ### If we're using X11, we should use the X menu package.
9331 yes ) HAVE_MENUS=yes ;;
9334 ### Compute the unexec source name from the object name.
9335 UNEXEC_SRC="`echo ${unexec} |
sed 's/\.o/.c/'`"
9337 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9338 # Assume not, until told otherwise.
9341 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9342 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9343 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9344 echo $ECHO_N "(cached) $ECHO_C" >&6
9346 cat >conftest.$ac_ext <<_ACEOF
9349 cat confdefs.h >>conftest.$ac_ext
9350 cat >>conftest.$ac_ext <<_ACEOF
9351 /* end confdefs.h. */
9352 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9353 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9354 #define malloc_get_state innocuous_malloc_get_state
9356 /* System header to define __stub macros and hopefully few prototypes,
9357 which can conflict with char malloc_get_state (); below.
9358 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9359 <limits.h> exists even on freestanding compilers. */
9362 # include <limits.h>
9364 # include <assert.h>
9367 #undef malloc_get_state
9369 /* Override any GCC internal prototype to avoid an error.
9370 Use char because int might match the return type of a GCC
9371 builtin and then its argument prototype would still apply. */
9375 char malloc_get_state ();
9376 /* The GNU C library defines this for functions which it implements
9377 to always fail with ENOSYS. Some functions are actually named
9378 something starting with __ and the normal name is an alias. */
9379 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9386 return malloc_get_state ();
9391 rm -f conftest.$ac_objext conftest$ac_exeext
9392 if { (ac_try="$ac_link"
9394 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9395 *) ac_try_echo
=$ac_try;;
9397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9398 (eval "$ac_link") 2>conftest.er1
9400 grep -v '^ *+' conftest.er1
>conftest.err
9402 cat conftest.err
>&5
9403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404 (exit $ac_status); } && {
9405 test -z "$ac_c_werror_flag" ||
9406 test ! -s conftest.err
9407 } && test -s conftest
$ac_exeext &&
9408 $as_test_x conftest
$ac_exeext; then
9409 ac_cv_func_malloc_get_state
=yes
9411 echo "$as_me: failed program was:" >&5
9412 sed 's/^/| /' conftest.
$ac_ext >&5
9414 ac_cv_func_malloc_get_state
=no
9417 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9418 conftest
$ac_exeext conftest.
$ac_ext
9420 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9421 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9422 if test $ac_cv_func_malloc_get_state = yes; then
9428 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9429 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9430 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9431 echo $ECHO_N "(cached) $ECHO_C" >&6
9433 cat >conftest.
$ac_ext <<_ACEOF
9436 cat confdefs.h
>>conftest.
$ac_ext
9437 cat >>conftest.
$ac_ext <<_ACEOF
9438 /* end confdefs.h. */
9439 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9440 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9441 #define malloc_set_state innocuous_malloc_set_state
9443 /* System header to define __stub macros and hopefully few prototypes,
9444 which can conflict with char malloc_set_state (); below.
9445 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9446 <limits.h> exists even on freestanding compilers. */
9449 # include <limits.h>
9451 # include <assert.h>
9454 #undef malloc_set_state
9456 /* Override any GCC internal prototype to avoid an error.
9457 Use char because int might match the return type of a GCC
9458 builtin and then its argument prototype would still apply. */
9462 char malloc_set_state ();
9463 /* The GNU C library defines this for functions which it implements
9464 to always fail with ENOSYS. Some functions are actually named
9465 something starting with __ and the normal name is an alias. */
9466 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9473 return malloc_set_state ();
9478 rm -f conftest.
$ac_objext conftest
$ac_exeext
9479 if { (ac_try
="$ac_link"
9481 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9482 *) ac_try_echo=$ac_try;;
9484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9485 (eval "$ac_link") 2>conftest.er1
9487 grep -v '^ *+' conftest.er1 >conftest.err
9489 cat conftest.err >&5
9490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9491 (exit $ac_status); } && {
9492 test -z "$ac_c_werror_flag" ||
9493 test ! -s conftest.err
9494 } && test -s conftest$ac_exeext &&
9495 $as_test_x conftest$ac_exeext; then
9496 ac_cv_func_malloc_set_state=yes
9498 echo "$as_me: failed program was:" >&5
9499 sed 's/^/| /' conftest.$ac_ext >&5
9501 ac_cv_func_malloc_set_state=no
9504 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9505 conftest$ac_exeext conftest.$ac_ext
9507 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9508 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9509 if test $ac_cv_func_malloc_set_state = yes; then
9515 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9516 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9517 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9518 echo $ECHO_N "(cached) $ECHO_C" >&6
9520 cat >conftest.$ac_ext <<_ACEOF
9523 cat confdefs.h >>conftest.$ac_ext
9524 cat >>conftest.$ac_ext <<_ACEOF
9525 /* end confdefs.h. */
9526 extern void (* __after_morecore_hook)();
9530 __after_morecore_hook = 0
9535 rm -f conftest.$ac_objext conftest$ac_exeext
9536 if { (ac_try="$ac_link"
9538 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9539 *) ac_try_echo
=$ac_try;;
9541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9542 (eval "$ac_link") 2>conftest.er1
9544 grep -v '^ *+' conftest.er1
>conftest.err
9546 cat conftest.err
>&5
9547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548 (exit $ac_status); } && {
9549 test -z "$ac_c_werror_flag" ||
9550 test ! -s conftest.err
9551 } && test -s conftest
$ac_exeext &&
9552 $as_test_x conftest
$ac_exeext; then
9553 emacs_cv_var___after_morecore_hook
=yes
9555 echo "$as_me: failed program was:" >&5
9556 sed 's/^/| /' conftest.
$ac_ext >&5
9558 emacs_cv_var___after_morecore_hook
=no
9561 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9562 conftest
$ac_exeext conftest.
$ac_ext
9564 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9565 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9566 if test $emacs_cv_var___after_morecore_hook = no
; then
9569 if test "${system_malloc}" = "yes"; then
9572 (The GNU allocators don't work with this system configuration.)"
9574 if test "$doug_lea_malloc" = "yes" ; then
9575 if test "$GNU_MALLOC" = yes ; then
9577 (Using Doug Lea's new malloc from the GNU C Library.)"
9580 cat >>confdefs.h
<<\_ACEOF
9581 #define DOUG_LEA_MALLOC 1
9586 if test x
"${REL_ALLOC}" = x
; then
9587 REL_ALLOC
=${GNU_MALLOC}
9593 for ac_header
in stdlib.h unistd.h
9595 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9596 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9597 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9599 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9600 echo $ECHO_N "(cached) $ECHO_C" >&6
9602 ac_res
=`eval echo '${'$as_ac_Header'}'`
9603 { echo "$as_me:$LINENO: result: $ac_res" >&5
9604 echo "${ECHO_T}$ac_res" >&6; }
9606 # Is the header compilable?
9607 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9608 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9609 cat >conftest.
$ac_ext <<_ACEOF
9612 cat confdefs.h
>>conftest.
$ac_ext
9613 cat >>conftest.
$ac_ext <<_ACEOF
9614 /* end confdefs.h. */
9615 $ac_includes_default
9616 #include <$ac_header>
9618 rm -f conftest.
$ac_objext
9619 if { (ac_try
="$ac_compile"
9621 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9622 *) ac_try_echo=$ac_try;;
9624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9625 (eval "$ac_compile") 2>conftest.er1
9627 grep -v '^ *+' conftest.er1 >conftest.err
9629 cat conftest.err >&5
9630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9631 (exit $ac_status); } && {
9632 test -z "$ac_c_werror_flag" ||
9633 test ! -s conftest.err
9634 } && test -s conftest.$ac_objext; then
9635 ac_header_compiler=yes
9637 echo "$as_me: failed program was:" >&5
9638 sed 's/^/| /' conftest.$ac_ext >&5
9640 ac_header_compiler=no
9643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9644 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9645 echo "${ECHO_T}$ac_header_compiler" >&6; }
9647 # Is the header present?
9648 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9649 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9650 cat >conftest.$ac_ext <<_ACEOF
9653 cat confdefs.h >>conftest.$ac_ext
9654 cat >>conftest.$ac_ext <<_ACEOF
9655 /* end confdefs.h. */
9656 #include <$ac_header>
9658 if { (ac_try="$ac_cpp conftest.$ac_ext"
9660 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9661 *) ac_try_echo
=$ac_try;;
9663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9664 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9666 grep -v '^ *+' conftest.er1
>conftest.err
9668 cat conftest.err
>&5
9669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9670 (exit $ac_status); } >/dev
/null
&& {
9671 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9672 test ! -s conftest.err
9674 ac_header_preproc
=yes
9676 echo "$as_me: failed program was:" >&5
9677 sed 's/^/| /' conftest.
$ac_ext >&5
9679 ac_header_preproc
=no
9682 rm -f conftest.err conftest.
$ac_ext
9683 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9684 echo "${ECHO_T}$ac_header_preproc" >&6; }
9686 # So? What about this header?
9687 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9689 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9690 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9691 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9692 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9693 ac_header_preproc
=yes
9696 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9697 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9698 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9699 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9700 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9701 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9702 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9703 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9704 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9705 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9706 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9707 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9711 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9712 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9713 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9714 echo $ECHO_N "(cached) $ECHO_C" >&6
9716 eval "$as_ac_Header=\$ac_header_preproc"
9718 ac_res
=`eval echo '${'$as_ac_Header'}'`
9719 { echo "$as_me:$LINENO: result: $ac_res" >&5
9720 echo "${ECHO_T}$ac_res" >&6; }
9723 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9724 cat >>confdefs.h
<<_ACEOF
9725 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9733 for ac_func
in getpagesize
9735 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9736 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9737 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9738 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9739 echo $ECHO_N "(cached) $ECHO_C" >&6
9741 cat >conftest.
$ac_ext <<_ACEOF
9744 cat confdefs.h
>>conftest.
$ac_ext
9745 cat >>conftest.
$ac_ext <<_ACEOF
9746 /* end confdefs.h. */
9747 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9748 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9749 #define $ac_func innocuous_$ac_func
9751 /* System header to define __stub macros and hopefully few prototypes,
9752 which can conflict with char $ac_func (); below.
9753 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9754 <limits.h> exists even on freestanding compilers. */
9757 # include <limits.h>
9759 # include <assert.h>
9764 /* Override any GCC internal prototype to avoid an error.
9765 Use char because int might match the return type of a GCC
9766 builtin and then its argument prototype would still apply. */
9771 /* The GNU C library defines this for functions which it implements
9772 to always fail with ENOSYS. Some functions are actually named
9773 something starting with __ and the normal name is an alias. */
9774 #if defined __stub_$ac_func || defined __stub___$ac_func
9786 rm -f conftest.
$ac_objext conftest
$ac_exeext
9787 if { (ac_try
="$ac_link"
9789 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9790 *) ac_try_echo=$ac_try;;
9792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9793 (eval "$ac_link") 2>conftest.er1
9795 grep -v '^ *+' conftest.er1 >conftest.err
9797 cat conftest.err >&5
9798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799 (exit $ac_status); } && {
9800 test -z "$ac_c_werror_flag" ||
9801 test ! -s conftest.err
9802 } && test -s conftest$ac_exeext &&
9803 $as_test_x conftest$ac_exeext; then
9804 eval "$as_ac_var=yes"
9806 echo "$as_me: failed program was:" >&5
9807 sed 's/^/| /' conftest.$ac_ext >&5
9809 eval "$as_ac_var=no"
9812 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9813 conftest$ac_exeext conftest.$ac_ext
9815 ac_res=`eval echo '${'$as_ac_var'}'`
9816 { echo "$as_me:$LINENO: result: $ac_res" >&5
9817 echo "${ECHO_T}$ac_res" >&6; }
9818 if test `eval echo '${'$as_ac_var'}'` = yes; then
9819 cat >>confdefs.h <<_ACEOF
9820 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
9826 { echo "$as_me:$LINENO: checking for working mmap" >&5
9827 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9828 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9829 echo $ECHO_N "(cached) $ECHO_C" >&6
9831 if test "$cross_compiling" = yes; then
9832 ac_cv_func_mmap_fixed_mapped=no
9834 cat >conftest.$ac_ext <<_ACEOF
9837 cat confdefs.h >>conftest.$ac_ext
9838 cat >>conftest.$ac_ext <<_ACEOF
9839 /* end confdefs.h. */
9840 $ac_includes_default
9841 /* malloc might have been renamed as rpl_malloc. */
9844 /* Thanks to Mike Haertel and Jim Avera for this test.
9845 Here is a matrix of mmap possibilities:
9846 mmap private not fixed
9847 mmap private fixed at somewhere currently unmapped
9848 mmap private fixed at somewhere already mapped
9849 mmap shared not fixed
9850 mmap shared fixed at somewhere currently unmapped
9851 mmap shared fixed at somewhere already mapped
9852 For private mappings, we should verify that changes cannot be read()
9853 back from the file, nor mmap's back from the file at a different
9854 address. (There have been systems where private was not correctly
9855 implemented like the infamous i386 svr4.0, and systems where the
9856 VM page cache was not coherent with the file system buffer cache
9857 like early versions of FreeBSD and possibly contemporary NetBSD.)
9858 For shared mappings, we should conversely verify that changes get
9859 propagated back to all the places they're supposed to be.
9861 Grep wants private fixed already mapped.
9862 The main things grep needs to know about mmap are:
9863 * does it exist and is it safe to write into the mmap'd area
9864 * how to use it (BSD variants) */
9867 #include <sys/mman.h>
9869 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9873 /* This mess was copied from the GNU getpagesize.h. */
9874 #ifndef HAVE_GETPAGESIZE
9875 /* Assume that all systems that can run configure have sys/param.h. */
9876 # ifndef HAVE_SYS_PARAM_H
9877 # define HAVE_SYS_PARAM_H 1
9880 # ifdef _SC_PAGESIZE
9881 # define getpagesize() sysconf(_SC_PAGESIZE)
9882 # else /* no _SC_PAGESIZE */
9883 # ifdef HAVE_SYS_PARAM_H
9884 # include <sys/param.h>
9885 # ifdef EXEC_PAGESIZE
9886 # define getpagesize() EXEC_PAGESIZE
9887 # else /* no EXEC_PAGESIZE */
9889 # define getpagesize() NBPG * CLSIZE
9892 # endif /* no CLSIZE */
9893 # else /* no NBPG */
9895 # define getpagesize() NBPC
9896 # else /* no NBPC */
9898 # define getpagesize() PAGESIZE
9899 # endif /* PAGESIZE */
9900 # endif /* no NBPC */
9901 # endif /* no NBPG */
9902 # endif /* no EXEC_PAGESIZE */
9903 # else /* no HAVE_SYS_PARAM_H */
9904 # define getpagesize() 8192 /* punt totally */
9905 # endif /* no HAVE_SYS_PARAM_H */
9906 # endif /* no _SC_PAGESIZE */
9908 #endif /* no HAVE_GETPAGESIZE */
9913 char *data, *data2, *data3;
9917 pagesize = getpagesize ();
9919 /* First, make a file with some known garbage in it. */
9920 data = (char *) malloc (pagesize);
9923 for (i = 0; i < pagesize; ++i)
9924 *(data + i) = rand ();
9926 fd = creat ("conftest.mmap", 0600);
9929 if (write (fd, data, pagesize) != pagesize)
9933 /* Next, try to mmap the file at a fixed address which already has
9934 something else allocated at it. If we can, also make sure that
9935 we see the same garbage. */
9936 fd = open ("conftest.mmap", O_RDWR);
9939 data2 = (char *) malloc (2 * pagesize);
9942 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
9943 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9944 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9946 for (i = 0; i < pagesize; ++i)
9947 if (*(data + i) != *(data2 + i))
9950 /* Finally, make sure that changes to the mapped area do not
9951 percolate back to the file as seen by read(). (This is a bug on
9952 some variants of i386 svr4.0.) */
9953 for (i = 0; i < pagesize; ++i)
9954 *(data2 + i) = *(data2 + i) + 1;
9955 data3 = (char *) malloc (pagesize);
9958 if (read (fd, data3, pagesize) != pagesize)
9960 for (i = 0; i < pagesize; ++i)
9961 if (*(data + i) != *(data3 + i))
9967 rm -f conftest$ac_exeext
9968 if { (ac_try="$ac_link"
9970 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9971 *) ac_try_echo
=$ac_try;;
9973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9974 (eval "$ac_link") 2>&5
9976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9978 { (case "(($ac_try" in
9979 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9980 *) ac_try_echo=$ac_try;;
9982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9983 (eval "$ac_try") 2>&5
9985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986 (exit $ac_status); }; }; then
9987 ac_cv_func_mmap_fixed_mapped=yes
9989 echo "$as_me: program exited with status $ac_status" >&5
9990 echo "$as_me: failed program was:" >&5
9991 sed 's/^/| /' conftest.$ac_ext >&5
9994 ac_cv_func_mmap_fixed_mapped=no
9996 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10001 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10002 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10003 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10005 cat >>confdefs.h <<\_ACEOF
10006 #define HAVE_MMAP 1
10010 rm -f conftest.mmap
10012 if test $use_mmap_for_buffers = yes; then
10016 LIBS="$libsrc_libs $LIBS"
10019 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10020 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10021 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10022 echo $ECHO_N "(cached) $ECHO_C" >&6
10024 ac_check_lib_save_LIBS=$LIBS
10025 LIBS="-ldnet $LIBS"
10026 cat >conftest.$ac_ext <<_ACEOF
10029 cat confdefs.h >>conftest.$ac_ext
10030 cat >>conftest.$ac_ext <<_ACEOF
10031 /* end confdefs.h. */
10033 /* Override any GCC internal prototype to avoid an error.
10034 Use char because int might match the return type of a GCC
10035 builtin and then its argument prototype would still apply. */
10043 return dnet_ntoa ();
10048 rm -f conftest.$ac_objext conftest$ac_exeext
10049 if { (ac_try="$ac_link"
10050 case "(($ac_try" in
10051 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10052 *) ac_try_echo
=$ac_try;;
10054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10055 (eval "$ac_link") 2>conftest.er1
10057 grep -v '^ *+' conftest.er1
>conftest.err
10059 cat conftest.err
>&5
10060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061 (exit $ac_status); } && {
10062 test -z "$ac_c_werror_flag" ||
10063 test ! -s conftest.err
10064 } && test -s conftest
$ac_exeext &&
10065 $as_test_x conftest
$ac_exeext; then
10066 ac_cv_lib_dnet_dnet_ntoa
=yes
10068 echo "$as_me: failed program was:" >&5
10069 sed 's/^/| /' conftest.
$ac_ext >&5
10071 ac_cv_lib_dnet_dnet_ntoa
=no
10074 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10075 conftest
$ac_exeext conftest.
$ac_ext
10076 LIBS
=$ac_check_lib_save_LIBS
10078 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10079 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10080 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10081 cat >>confdefs.h
<<_ACEOF
10082 #define HAVE_LIBDNET 1
10085 LIBS
="-ldnet $LIBS"
10090 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10091 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10092 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10093 echo $ECHO_N "(cached) $ECHO_C" >&6
10095 ac_check_lib_save_LIBS
=$LIBS
10096 LIBS
="-lXbsd $LIBS"
10097 cat >conftest.
$ac_ext <<_ACEOF
10100 cat confdefs.h
>>conftest.
$ac_ext
10101 cat >>conftest.
$ac_ext <<_ACEOF
10102 /* end confdefs.h. */
10113 rm -f conftest.
$ac_objext conftest
$ac_exeext
10114 if { (ac_try
="$ac_link"
10115 case "(($ac_try" in
10116 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10117 *) ac_try_echo=$ac_try;;
10119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10120 (eval "$ac_link") 2>conftest.er1
10122 grep -v '^ *+' conftest.er1 >conftest.err
10124 cat conftest.err >&5
10125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10126 (exit $ac_status); } && {
10127 test -z "$ac_c_werror_flag" ||
10128 test ! -s conftest.err
10129 } && test -s conftest$ac_exeext &&
10130 $as_test_x conftest$ac_exeext; then
10131 ac_cv_lib_Xbsd_main=yes
10133 echo "$as_me: failed program was:" >&5
10134 sed 's/^/| /' conftest.$ac_ext >&5
10136 ac_cv_lib_Xbsd_main=no
10139 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10140 conftest$ac_exeext conftest.$ac_ext
10141 LIBS=$ac_check_lib_save_LIBS
10143 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10144 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10145 if test $ac_cv_lib_Xbsd_main = yes; then
10146 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10151 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10152 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10153 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10154 echo $ECHO_N "(cached) $ECHO_C" >&6
10156 ac_check_lib_save_LIBS=$LIBS
10157 LIBS="-lpthreads $LIBS"
10158 cat >conftest.$ac_ext <<_ACEOF
10161 cat confdefs.h >>conftest.$ac_ext
10162 cat >>conftest.$ac_ext <<_ACEOF
10163 /* end confdefs.h. */
10165 /* Override any GCC internal prototype to avoid an error.
10166 Use char because int might match the return type of a GCC
10167 builtin and then its argument prototype would still apply. */
10175 return cma_open ();
10180 rm -f conftest.$ac_objext conftest$ac_exeext
10181 if { (ac_try="$ac_link"
10182 case "(($ac_try" in
10183 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10184 *) ac_try_echo
=$ac_try;;
10186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10187 (eval "$ac_link") 2>conftest.er1
10189 grep -v '^ *+' conftest.er1
>conftest.err
10191 cat conftest.err
>&5
10192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193 (exit $ac_status); } && {
10194 test -z "$ac_c_werror_flag" ||
10195 test ! -s conftest.err
10196 } && test -s conftest
$ac_exeext &&
10197 $as_test_x conftest
$ac_exeext; then
10198 ac_cv_lib_pthreads_cma_open
=yes
10200 echo "$as_me: failed program was:" >&5
10201 sed 's/^/| /' conftest.
$ac_ext >&5
10203 ac_cv_lib_pthreads_cma_open
=no
10206 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10207 conftest
$ac_exeext conftest.
$ac_ext
10208 LIBS
=$ac_check_lib_save_LIBS
10210 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10211 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10212 if test $ac_cv_lib_pthreads_cma_open = yes; then
10213 cat >>confdefs.h
<<_ACEOF
10214 #define HAVE_LIBPTHREADS 1
10217 LIBS
="-lpthreads $LIBS"
10225 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10226 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10227 if test "${gdb_cv_bigtoc+set}" = set; then
10228 echo $ECHO_N "(cached) $ECHO_C" >&6
10232 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10233 *) gdb_cv_bigtoc
=-bbigtoc ;;
10236 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10237 cat >conftest.
$ac_ext <<_ACEOF
10240 cat confdefs.h
>>conftest.
$ac_ext
10241 cat >>conftest.
$ac_ext <<_ACEOF
10242 /* end confdefs.h. */
10252 rm -f conftest.
$ac_objext conftest
$ac_exeext
10253 if { (ac_try
="$ac_link"
10254 case "(($ac_try" in
10255 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10256 *) ac_try_echo=$ac_try;;
10258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10259 (eval "$ac_link") 2>conftest.er1
10261 grep -v '^ *+' conftest.er1 >conftest.err
10263 cat conftest.err >&5
10264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10265 (exit $ac_status); } && {
10266 test -z "$ac_c_werror_flag" ||
10267 test ! -s conftest.err
10268 } && test -s conftest$ac_exeext &&
10269 $as_test_x conftest$ac_exeext; then
10272 echo "$as_me: failed program was:" >&5
10273 sed 's/^/| /' conftest.$ac_ext >&5
10278 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10279 conftest$ac_exeext conftest.$ac_ext
10282 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10283 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10287 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10288 # used for the tests that follow. We set them back to REAL_CFLAGS and
10289 # REAL_CPPFLAGS later on.
10291 REAL_CPPFLAGS="$CPPFLAGS"
10293 if test "${HAVE_X11}" = "yes"; then
10294 DEFS="$C_SWITCH_X_SITE $DEFS"
10295 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10297 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10298 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10300 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10301 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10302 # but it's more convenient here to set LD_RUN_PATH
10303 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10304 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10305 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10309 if test "${opsys}" = "gnu-linux"; then
10310 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10311 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10312 cat >conftest.$ac_ext <<_ACEOF
10315 cat confdefs.h >>conftest.$ac_ext
10316 cat >>conftest.$ac_ext <<_ACEOF
10317 /* end confdefs.h. */
10322 XOpenDisplay ("foo");
10327 rm -f conftest.$ac_objext conftest$ac_exeext
10328 if { (ac_try="$ac_link"
10329 case "(($ac_try" in
10330 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10331 *) ac_try_echo
=$ac_try;;
10333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10334 (eval "$ac_link") 2>conftest.er1
10336 grep -v '^ *+' conftest.er1
>conftest.err
10338 cat conftest.err
>&5
10339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10340 (exit $ac_status); } && {
10341 test -z "$ac_c_werror_flag" ||
10342 test ! -s conftest.err
10343 } && test -s conftest
$ac_exeext &&
10344 $as_test_x conftest
$ac_exeext; then
10345 xlinux_first_failure
=no
10347 echo "$as_me: failed program was:" >&5
10348 sed 's/^/| /' conftest.
$ac_ext >&5
10350 xlinux_first_failure
=yes
10353 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10354 conftest
$ac_exeext conftest.
$ac_ext
10355 if test "${xlinux_first_failure}" = "yes"; then
10356 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10357 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10358 OLD_CPPFLAGS
="$CPPFLAGS"
10360 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10361 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10362 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10363 LIBS
="$LIBS -b i486-linuxaout"
10364 cat >conftest.
$ac_ext <<_ACEOF
10367 cat confdefs.h
>>conftest.
$ac_ext
10368 cat >>conftest.
$ac_ext <<_ACEOF
10369 /* end confdefs.h. */
10374 XOpenDisplay ("foo");
10379 rm -f conftest.
$ac_objext conftest
$ac_exeext
10380 if { (ac_try
="$ac_link"
10381 case "(($ac_try" in
10382 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10383 *) ac_try_echo=$ac_try;;
10385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10386 (eval "$ac_link") 2>conftest.er1
10388 grep -v '^ *+' conftest.er1 >conftest.err
10390 cat conftest.err >&5
10391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10392 (exit $ac_status); } && {
10393 test -z "$ac_c_werror_flag" ||
10394 test ! -s conftest.err
10395 } && test -s conftest$ac_exeext &&
10396 $as_test_x conftest$ac_exeext; then
10397 xlinux_second_failure=no
10399 echo "$as_me: failed program was:" >&5
10400 sed 's/^/| /' conftest.$ac_ext >&5
10402 xlinux_second_failure=yes
10405 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10406 conftest$ac_exeext conftest.$ac_ext
10407 if test "${xlinux_second_failure}" = "yes"; then
10408 # If we get the same failure with -b, there is no use adding -b.
10409 # So take it out. This plays safe.
10410 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10411 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10412 CPPFLAGS="$OLD_CPPFLAGS"
10414 { echo "$as_me:$LINENO: result: no" >&5
10415 echo "${ECHO_T}no" >&6; }
10417 { echo "$as_me:$LINENO: result: yes" >&5
10418 echo "${ECHO_T}yes" >&6; }
10421 { echo "$as_me:$LINENO: result: no" >&5
10422 echo "${ECHO_T}no" >&6; }
10426 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10427 # header files included from there.
10428 { echo "$as_me:$LINENO: checking for Xkb" >&5
10429 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10430 cat >conftest.$ac_ext <<_ACEOF
10433 cat confdefs.h >>conftest.$ac_ext
10434 cat >>conftest.$ac_ext <<_ACEOF
10435 /* end confdefs.h. */
10436 #include <X11/Xlib.h>
10437 #include <X11/XKBlib.h>
10441 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10446 rm -f conftest.$ac_objext conftest$ac_exeext
10447 if { (ac_try="$ac_link"
10448 case "(($ac_try" in
10449 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10450 *) ac_try_echo
=$ac_try;;
10452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10453 (eval "$ac_link") 2>conftest.er1
10455 grep -v '^ *+' conftest.er1
>conftest.err
10457 cat conftest.err
>&5
10458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10459 (exit $ac_status); } && {
10460 test -z "$ac_c_werror_flag" ||
10461 test ! -s conftest.err
10462 } && test -s conftest
$ac_exeext &&
10463 $as_test_x conftest
$ac_exeext; then
10466 echo "$as_me: failed program was:" >&5
10467 sed 's/^/| /' conftest.
$ac_ext >&5
10472 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10473 conftest
$ac_exeext conftest.
$ac_ext
10474 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10475 echo "${ECHO_T}$emacs_xkb" >&6; }
10476 if test $emacs_xkb = yes; then
10478 cat >>confdefs.h
<<\_ACEOF
10479 #define HAVE_XKBGETKEYBOARD 1
10488 for ac_func
in XrmSetDatabase XScreenResourceString \
10489 XScreenNumberOfScreen XSetWMProtocols
10491 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10492 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10493 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10494 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10495 echo $ECHO_N "(cached) $ECHO_C" >&6
10497 cat >conftest.
$ac_ext <<_ACEOF
10500 cat confdefs.h
>>conftest.
$ac_ext
10501 cat >>conftest.
$ac_ext <<_ACEOF
10502 /* end confdefs.h. */
10503 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10504 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10505 #define $ac_func innocuous_$ac_func
10507 /* System header to define __stub macros and hopefully few prototypes,
10508 which can conflict with char $ac_func (); below.
10509 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10510 <limits.h> exists even on freestanding compilers. */
10513 # include <limits.h>
10515 # include <assert.h>
10520 /* Override any GCC internal prototype to avoid an error.
10521 Use char because int might match the return type of a GCC
10522 builtin and then its argument prototype would still apply. */
10527 /* The GNU C library defines this for functions which it implements
10528 to always fail with ENOSYS. Some functions are actually named
10529 something starting with __ and the normal name is an alias. */
10530 #if defined __stub_$ac_func || defined __stub___$ac_func
10537 return $ac_func ();
10542 rm -f conftest.
$ac_objext conftest
$ac_exeext
10543 if { (ac_try
="$ac_link"
10544 case "(($ac_try" in
10545 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10546 *) ac_try_echo=$ac_try;;
10548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10549 (eval "$ac_link") 2>conftest.er1
10551 grep -v '^ *+' conftest.er1 >conftest.err
10553 cat conftest.err >&5
10554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555 (exit $ac_status); } && {
10556 test -z "$ac_c_werror_flag" ||
10557 test ! -s conftest.err
10558 } && test -s conftest$ac_exeext &&
10559 $as_test_x conftest$ac_exeext; then
10560 eval "$as_ac_var=yes"
10562 echo "$as_me: failed program was:" >&5
10563 sed 's/^/| /' conftest.$ac_ext >&5
10565 eval "$as_ac_var=no"
10568 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10569 conftest$ac_exeext conftest.$ac_ext
10571 ac_res=`eval echo '${'$as_ac_var'}'`
10572 { echo "$as_me:$LINENO: result: $ac_res" >&5
10573 echo "${ECHO_T}$ac_res" >&6; }
10574 if test `eval echo '${'$as_ac_var'}'` = yes; then
10575 cat >>confdefs.h <<_ACEOF
10576 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10584 if test "${window_system}" = "x11"; then
10585 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10586 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10587 if test "${emacs_cv_x11_version_6+set}" = set; then
10588 echo $ECHO_N "(cached) $ECHO_C" >&6
10590 cat >conftest.$ac_ext <<_ACEOF
10593 cat confdefs.h >>conftest.$ac_ext
10594 cat >>conftest.$ac_ext <<_ACEOF
10595 /* end confdefs.h. */
10596 #include <X11/Xlib.h>
10600 #if XlibSpecificationRelease < 6
10608 rm -f conftest.$ac_objext conftest$ac_exeext
10609 if { (ac_try="$ac_link"
10610 case "(($ac_try" in
10611 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10612 *) ac_try_echo
=$ac_try;;
10614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10615 (eval "$ac_link") 2>conftest.er1
10617 grep -v '^ *+' conftest.er1
>conftest.err
10619 cat conftest.err
>&5
10620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10621 (exit $ac_status); } && {
10622 test -z "$ac_c_werror_flag" ||
10623 test ! -s conftest.err
10624 } && test -s conftest
$ac_exeext &&
10625 $as_test_x conftest
$ac_exeext; then
10626 emacs_cv_x11_version_6
=yes
10628 echo "$as_me: failed program was:" >&5
10629 sed 's/^/| /' conftest.
$ac_ext >&5
10631 emacs_cv_x11_version_6
=no
10634 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10635 conftest
$ac_exeext conftest.
$ac_ext
10638 if test $emacs_cv_x11_version_6 = yes; then
10639 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10640 echo "${ECHO_T}6 or newer" >&6; }
10642 cat >>confdefs.h
<<\_ACEOF
10643 #define HAVE_X11R6 1
10647 { echo "$as_me:$LINENO: result: before 6" >&5
10648 echo "${ECHO_T}before 6" >&6; }
10653 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10655 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_CARBON}" = "yes"; then
10656 if test "${with_rsvg}" != "no"; then
10657 RSVG_REQUIRED
=2.0.0
10658 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
10663 # Extract the first word of "pkg-config", so it can be a program name with args.
10664 set dummy pkg-config
; ac_word
=$2
10665 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10667 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10668 echo $ECHO_N "(cached) $ECHO_C" >&6
10670 case $PKG_CONFIG in
10672 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10675 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10676 for as_dir
in $PATH
10679 test -z "$as_dir" && as_dir
=.
10680 for ac_exec_ext
in '' $ac_executable_extensions; do
10681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10682 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10690 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10694 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10695 if test -n "$PKG_CONFIG"; then
10696 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10697 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10699 { echo "$as_me:$LINENO: result: no" >&5
10700 echo "${ECHO_T}no" >&6; }
10705 if test "$PKG_CONFIG" = "no" ; then
10708 PKG_CONFIG_MIN_VERSION
=0.9.0
10709 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10710 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
10711 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
10713 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10714 { echo "$as_me:$LINENO: result: yes" >&5
10715 echo "${ECHO_T}yes" >&6; }
10718 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
10719 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
10720 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10721 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
10722 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
10724 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
10725 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
10726 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10727 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
10728 echo "${ECHO_T}$RSVG_LIBS" >&6; }
10730 { echo "$as_me:$LINENO: result: no" >&5
10731 echo "${ECHO_T}no" >&6; }
10734 ## If we have a custom action on failure, don't print errors, but
10735 ## do set a variable so people can do so.
10736 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10743 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10744 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10748 if test $succeeded = yes; then
10757 if test ".${RSVG_CFLAGS}" != "."; then
10760 cat >>confdefs.h
<<\_ACEOF
10761 #define HAVE_RSVG 1
10764 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
10765 LIBS
="$RSVG_LIBS $LIBS"
10772 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
10775 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10780 # Extract the first word of "pkg-config", so it can be a program name with args.
10781 set dummy pkg-config
; ac_word
=$2
10782 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10784 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10785 echo $ECHO_N "(cached) $ECHO_C" >&6
10787 case $PKG_CONFIG in
10789 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10792 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10793 for as_dir
in $PATH
10796 test -z "$as_dir" && as_dir
=.
10797 for ac_exec_ext
in '' $ac_executable_extensions; do
10798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10799 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10807 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10811 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10812 if test -n "$PKG_CONFIG"; then
10813 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10814 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10816 { echo "$as_me:$LINENO: result: no" >&5
10817 echo "${ECHO_T}no" >&6; }
10822 if test "$PKG_CONFIG" = "no" ; then
10825 PKG_CONFIG_MIN_VERSION
=0.9.0
10826 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10827 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10828 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
10830 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10831 { echo "$as_me:$LINENO: result: yes" >&5
10832 echo "${ECHO_T}yes" >&6; }
10835 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10836 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
10837 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10838 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10839 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
10841 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10842 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
10843 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10844 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10845 echo "${ECHO_T}$GTK_LIBS" >&6; }
10847 { echo "$as_me:$LINENO: result: no" >&5
10848 echo "${ECHO_T}no" >&6; }
10851 ## If we have a custom action on failure, don't print errors, but
10852 ## do set a variable so people can do so.
10853 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10860 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10861 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10865 if test $succeeded = yes; then
10871 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10872 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
10873 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
10874 { (exit 1); exit 1; }; }
10879 if test x
"$pkg_check_gtk" = xyes
; then
10883 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
10884 CFLAGS
="$CFLAGS $GTK_CFLAGS"
10885 LIBS
="$GTK_LIBS $LIBS"
10888 for ac_func
in gtk_main
10890 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10891 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10892 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10893 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10894 echo $ECHO_N "(cached) $ECHO_C" >&6
10896 cat >conftest.
$ac_ext <<_ACEOF
10899 cat confdefs.h
>>conftest.
$ac_ext
10900 cat >>conftest.
$ac_ext <<_ACEOF
10901 /* end confdefs.h. */
10902 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10903 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10904 #define $ac_func innocuous_$ac_func
10906 /* System header to define __stub macros and hopefully few prototypes,
10907 which can conflict with char $ac_func (); below.
10908 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10909 <limits.h> exists even on freestanding compilers. */
10912 # include <limits.h>
10914 # include <assert.h>
10919 /* Override any GCC internal prototype to avoid an error.
10920 Use char because int might match the return type of a GCC
10921 builtin and then its argument prototype would still apply. */
10926 /* The GNU C library defines this for functions which it implements
10927 to always fail with ENOSYS. Some functions are actually named
10928 something starting with __ and the normal name is an alias. */
10929 #if defined __stub_$ac_func || defined __stub___$ac_func
10936 return $ac_func ();
10941 rm -f conftest.
$ac_objext conftest
$ac_exeext
10942 if { (ac_try
="$ac_link"
10943 case "(($ac_try" in
10944 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10945 *) ac_try_echo=$ac_try;;
10947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10948 (eval "$ac_link") 2>conftest.er1
10950 grep -v '^ *+' conftest.er1 >conftest.err
10952 cat conftest.err >&5
10953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10954 (exit $ac_status); } && {
10955 test -z "$ac_c_werror_flag" ||
10956 test ! -s conftest.err
10957 } && test -s conftest$ac_exeext &&
10958 $as_test_x conftest$ac_exeext; then
10959 eval "$as_ac_var=yes"
10961 echo "$as_me: failed program was:" >&5
10962 sed 's/^/| /' conftest.$ac_ext >&5
10964 eval "$as_ac_var=no"
10967 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10968 conftest$ac_exeext conftest.$ac_ext
10970 ac_res=`eval echo '${'$as_ac_var'}'`
10971 { echo "$as_me:$LINENO: result: $ac_res" >&5
10972 echo "${ECHO_T}$ac_res" >&6; }
10973 if test `eval echo '${'$as_ac_var'}'` = yes; then
10974 cat >>confdefs.h <<_ACEOF
10975 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10981 if test "${GTK_COMPILES}" != "yes"; then
10982 if test "$USE_X_TOOLKIT" != "maybe"; then
10983 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
10984 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
10985 { (exit 1); exit 1; }; };
10990 cat >>confdefs.h <<\_ACEOF
10995 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
10998 { echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
10999 closing open displays. This is no problem if you just use
11000 one display, but if you use more than one and close one of them
11001 Emacs may crash." >&5
11002 echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11003 closing open displays. This is no problem if you just use
11004 one display, but if you use more than one and close one of them
11005 Emacs may crash." >&2;}
11013 if test "${HAVE_GTK}" = "yes"; then
11015 if test "$with_toolkit_scroll_bars" != no; then
11016 with_toolkit_scroll_bars=yes
11019 HAVE_GTK_MULTIDISPLAY=no
11021 for ac_func in gdk_display_open
11023 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11024 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11025 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11026 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11027 echo $ECHO_N "(cached) $ECHO_C" >&6
11029 cat >conftest.$ac_ext <<_ACEOF
11032 cat confdefs.h >>conftest.$ac_ext
11033 cat >>conftest.$ac_ext <<_ACEOF
11034 /* end confdefs.h. */
11035 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11036 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11037 #define $ac_func innocuous_$ac_func
11039 /* System header to define __stub macros and hopefully few prototypes,
11040 which can conflict with char $ac_func (); below.
11041 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11042 <limits.h> exists even on freestanding compilers. */
11045 # include <limits.h>
11047 # include <assert.h>
11052 /* Override any GCC internal prototype to avoid an error.
11053 Use char because int might match the return type of a GCC
11054 builtin and then its argument prototype would still apply. */
11059 /* The GNU C library defines this for functions which it implements
11060 to always fail with ENOSYS. Some functions are actually named
11061 something starting with __ and the normal name is an alias. */
11062 #if defined __stub_$ac_func || defined __stub___$ac_func
11069 return $ac_func ();
11074 rm -f conftest.$ac_objext conftest$ac_exeext
11075 if { (ac_try="$ac_link"
11076 case "(($ac_try" in
11077 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11078 *) ac_try_echo
=$ac_try;;
11080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11081 (eval "$ac_link") 2>conftest.er1
11083 grep -v '^ *+' conftest.er1
>conftest.err
11085 cat conftest.err
>&5
11086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11087 (exit $ac_status); } && {
11088 test -z "$ac_c_werror_flag" ||
11089 test ! -s conftest.err
11090 } && test -s conftest
$ac_exeext &&
11091 $as_test_x conftest
$ac_exeext; then
11092 eval "$as_ac_var=yes"
11094 echo "$as_me: failed program was:" >&5
11095 sed 's/^/| /' conftest.
$ac_ext >&5
11097 eval "$as_ac_var=no"
11100 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11101 conftest
$ac_exeext conftest.
$ac_ext
11103 ac_res
=`eval echo '${'$as_ac_var'}'`
11104 { echo "$as_me:$LINENO: result: $ac_res" >&5
11105 echo "${ECHO_T}$ac_res" >&6; }
11106 if test `eval echo '${'$as_ac_var'}'` = yes; then
11107 cat >>confdefs.h
<<_ACEOF
11108 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11110 HAVE_GTK_MULTIDISPLAY
=yes
11114 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11116 cat >>confdefs.h
<<\_ACEOF
11117 #define HAVE_GTK_MULTIDISPLAY 1
11122 HAVE_GTK_FILE_SELECTION
=no
11124 for ac_func
in gtk_file_selection_new
11126 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11127 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11128 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11129 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11130 echo $ECHO_N "(cached) $ECHO_C" >&6
11132 cat >conftest.
$ac_ext <<_ACEOF
11135 cat confdefs.h
>>conftest.
$ac_ext
11136 cat >>conftest.
$ac_ext <<_ACEOF
11137 /* end confdefs.h. */
11138 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11139 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11140 #define $ac_func innocuous_$ac_func
11142 /* System header to define __stub macros and hopefully few prototypes,
11143 which can conflict with char $ac_func (); below.
11144 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11145 <limits.h> exists even on freestanding compilers. */
11148 # include <limits.h>
11150 # include <assert.h>
11155 /* Override any GCC internal prototype to avoid an error.
11156 Use char because int might match the return type of a GCC
11157 builtin and then its argument prototype would still apply. */
11162 /* The GNU C library defines this for functions which it implements
11163 to always fail with ENOSYS. Some functions are actually named
11164 something starting with __ and the normal name is an alias. */
11165 #if defined __stub_$ac_func || defined __stub___$ac_func
11172 return $ac_func ();
11177 rm -f conftest.
$ac_objext conftest
$ac_exeext
11178 if { (ac_try
="$ac_link"
11179 case "(($ac_try" in
11180 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11181 *) ac_try_echo=$ac_try;;
11183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11184 (eval "$ac_link") 2>conftest.er1
11186 grep -v '^ *+' conftest.er1 >conftest.err
11188 cat conftest.err >&5
11189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11190 (exit $ac_status); } && {
11191 test -z "$ac_c_werror_flag" ||
11192 test ! -s conftest.err
11193 } && test -s conftest$ac_exeext &&
11194 $as_test_x conftest$ac_exeext; then
11195 eval "$as_ac_var=yes"
11197 echo "$as_me: failed program was:" >&5
11198 sed 's/^/| /' conftest.$ac_ext >&5
11200 eval "$as_ac_var=no"
11203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11204 conftest$ac_exeext conftest.$ac_ext
11206 ac_res=`eval echo '${'$as_ac_var'}'`
11207 { echo "$as_me:$LINENO: result: $ac_res" >&5
11208 echo "${ECHO_T}$ac_res" >&6; }
11209 if test `eval echo '${'$as_ac_var'}'` = yes; then
11210 cat >>confdefs.h <<_ACEOF
11211 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11213 HAVE_GTK_FILE_SELECTION=yes
11218 HAVE_GTK_FILE_CHOOSER=no
11220 for ac_func in gtk_file_chooser_dialog_new
11222 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11223 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11224 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11225 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11226 echo $ECHO_N "(cached) $ECHO_C" >&6
11228 cat >conftest.$ac_ext <<_ACEOF
11231 cat confdefs.h >>conftest.$ac_ext
11232 cat >>conftest.$ac_ext <<_ACEOF
11233 /* end confdefs.h. */
11234 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11235 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11236 #define $ac_func innocuous_$ac_func
11238 /* System header to define __stub macros and hopefully few prototypes,
11239 which can conflict with char $ac_func (); below.
11240 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11241 <limits.h> exists even on freestanding compilers. */
11244 # include <limits.h>
11246 # include <assert.h>
11251 /* Override any GCC internal prototype to avoid an error.
11252 Use char because int might match the return type of a GCC
11253 builtin and then its argument prototype would still apply. */
11258 /* The GNU C library defines this for functions which it implements
11259 to always fail with ENOSYS. Some functions are actually named
11260 something starting with __ and the normal name is an alias. */
11261 #if defined __stub_$ac_func || defined __stub___$ac_func
11268 return $ac_func ();
11273 rm -f conftest.$ac_objext conftest$ac_exeext
11274 if { (ac_try="$ac_link"
11275 case "(($ac_try" in
11276 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11277 *) ac_try_echo
=$ac_try;;
11279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11280 (eval "$ac_link") 2>conftest.er1
11282 grep -v '^ *+' conftest.er1
>conftest.err
11284 cat conftest.err
>&5
11285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11286 (exit $ac_status); } && {
11287 test -z "$ac_c_werror_flag" ||
11288 test ! -s conftest.err
11289 } && test -s conftest
$ac_exeext &&
11290 $as_test_x conftest
$ac_exeext; then
11291 eval "$as_ac_var=yes"
11293 echo "$as_me: failed program was:" >&5
11294 sed 's/^/| /' conftest.
$ac_ext >&5
11296 eval "$as_ac_var=no"
11299 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11300 conftest
$ac_exeext conftest.
$ac_ext
11302 ac_res
=`eval echo '${'$as_ac_var'}'`
11303 { echo "$as_me:$LINENO: result: $ac_res" >&5
11304 echo "${ECHO_T}$ac_res" >&6; }
11305 if test `eval echo '${'$as_ac_var'}'` = yes; then
11306 cat >>confdefs.h
<<_ACEOF
11307 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11309 HAVE_GTK_FILE_CHOOSER
=yes
11314 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11315 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11317 cat >>confdefs.h
<<\_ACEOF
11318 #define HAVE_GTK_FILE_BOTH 1
11323 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11324 HAVE_GTK_AND_PTHREAD
=no
11326 for ac_header
in pthread.h
11328 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11329 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11330 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11331 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11332 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11333 echo $ECHO_N "(cached) $ECHO_C" >&6
11335 ac_res
=`eval echo '${'$as_ac_Header'}'`
11336 { echo "$as_me:$LINENO: result: $ac_res" >&5
11337 echo "${ECHO_T}$ac_res" >&6; }
11339 # Is the header compilable?
11340 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11341 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11342 cat >conftest.
$ac_ext <<_ACEOF
11345 cat confdefs.h
>>conftest.
$ac_ext
11346 cat >>conftest.
$ac_ext <<_ACEOF
11347 /* end confdefs.h. */
11348 $ac_includes_default
11349 #include <$ac_header>
11351 rm -f conftest.
$ac_objext
11352 if { (ac_try
="$ac_compile"
11353 case "(($ac_try" in
11354 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11355 *) ac_try_echo=$ac_try;;
11357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11358 (eval "$ac_compile") 2>conftest.er1
11360 grep -v '^ *+' conftest.er1 >conftest.err
11362 cat conftest.err >&5
11363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11364 (exit $ac_status); } && {
11365 test -z "$ac_c_werror_flag" ||
11366 test ! -s conftest.err
11367 } && test -s conftest.$ac_objext; then
11368 ac_header_compiler=yes
11370 echo "$as_me: failed program was:" >&5
11371 sed 's/^/| /' conftest.$ac_ext >&5
11373 ac_header_compiler=no
11376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11377 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11378 echo "${ECHO_T}$ac_header_compiler" >&6; }
11380 # Is the header present?
11381 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11382 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11383 cat >conftest.$ac_ext <<_ACEOF
11386 cat confdefs.h >>conftest.$ac_ext
11387 cat >>conftest.$ac_ext <<_ACEOF
11388 /* end confdefs.h. */
11389 #include <$ac_header>
11391 if { (ac_try="$ac_cpp conftest.$ac_ext"
11392 case "(($ac_try" in
11393 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11394 *) ac_try_echo
=$ac_try;;
11396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11397 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11399 grep -v '^ *+' conftest.er1
>conftest.err
11401 cat conftest.err
>&5
11402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11403 (exit $ac_status); } >/dev
/null
&& {
11404 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11405 test ! -s conftest.err
11407 ac_header_preproc
=yes
11409 echo "$as_me: failed program was:" >&5
11410 sed 's/^/| /' conftest.
$ac_ext >&5
11412 ac_header_preproc
=no
11415 rm -f conftest.err conftest.
$ac_ext
11416 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11417 echo "${ECHO_T}$ac_header_preproc" >&6; }
11419 # So? What about this header?
11420 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11422 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11423 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11424 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11425 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11426 ac_header_preproc
=yes
11429 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11430 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11431 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11432 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11433 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11434 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11435 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11436 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11437 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11438 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11439 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11440 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11444 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11445 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11446 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11447 echo $ECHO_N "(cached) $ECHO_C" >&6
11449 eval "$as_ac_Header=\$ac_header_preproc"
11451 ac_res
=`eval echo '${'$as_ac_Header'}'`
11452 { echo "$as_me:$LINENO: result: $ac_res" >&5
11453 echo "${ECHO_T}$ac_res" >&6; }
11456 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11457 cat >>confdefs.h
<<_ACEOF
11458 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11465 if test "$ac_cv_header_pthread_h"; then
11466 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11467 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11468 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11469 echo $ECHO_N "(cached) $ECHO_C" >&6
11471 ac_check_lib_save_LIBS
=$LIBS
11472 LIBS
="-lpthread $LIBS"
11473 cat >conftest.
$ac_ext <<_ACEOF
11476 cat confdefs.h
>>conftest.
$ac_ext
11477 cat >>conftest.
$ac_ext <<_ACEOF
11478 /* end confdefs.h. */
11480 /* Override any GCC internal prototype to avoid an error.
11481 Use char because int might match the return type of a GCC
11482 builtin and then its argument prototype would still apply. */
11486 char pthread_self ();
11490 return pthread_self ();
11495 rm -f conftest.
$ac_objext conftest
$ac_exeext
11496 if { (ac_try
="$ac_link"
11497 case "(($ac_try" in
11498 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11499 *) ac_try_echo=$ac_try;;
11501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11502 (eval "$ac_link") 2>conftest.er1
11504 grep -v '^ *+' conftest.er1 >conftest.err
11506 cat conftest.err >&5
11507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11508 (exit $ac_status); } && {
11509 test -z "$ac_c_werror_flag" ||
11510 test ! -s conftest.err
11511 } && test -s conftest$ac_exeext &&
11512 $as_test_x conftest$ac_exeext; then
11513 ac_cv_lib_pthread_pthread_self=yes
11515 echo "$as_me: failed program was:" >&5
11516 sed 's/^/| /' conftest.$ac_ext >&5
11518 ac_cv_lib_pthread_pthread_self=no
11521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11522 conftest$ac_exeext conftest.$ac_ext
11523 LIBS=$ac_check_lib_save_LIBS
11525 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11526 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11527 if test $ac_cv_lib_pthread_pthread_self = yes; then
11528 HAVE_GTK_AND_PTHREAD=yes
11532 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11533 case "${canonical}" in
11535 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
11538 cat >>confdefs.h <<\_ACEOF
11539 #define HAVE_GTK_AND_PTHREAD 1
11547 if test "${with_dbus}" = "yes"; then
11551 # Extract the first word of "pkg-config", so it can be a program name with args.
11552 set dummy pkg-config; ac_word=$2
11553 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11555 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11556 echo $ECHO_N "(cached) $ECHO_C" >&6
11558 case $PKG_CONFIG in
11560 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11564 for as_dir in $PATH
11567 test -z "$as_dir" && as_dir=.
11568 for ac_exec_ext in '' $ac_executable_extensions; do
11569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11570 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11578 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11582 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11583 if test -n "$PKG_CONFIG"; then
11584 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11585 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11587 { echo "$as_me:$LINENO: result: no" >&5
11588 echo "${ECHO_T}no" >&6; }
11593 if test "$PKG_CONFIG" = "no" ; then
11596 PKG_CONFIG_MIN_VERSION=0.9.0
11597 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11598 { echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
11599 echo $ECHO_N "checking for dbus-1 >= 1.0... $ECHO_C" >&6; }
11601 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
11602 { echo "$as_me:$LINENO: result: yes" >&5
11603 echo "${ECHO_T}yes" >&6; }
11606 { echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
11607 echo $ECHO_N "checking DBUS_CFLAGS... $ECHO_C" >&6; }
11608 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
11609 { echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
11610 echo "${ECHO_T}$DBUS_CFLAGS" >&6; }
11612 { echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
11613 echo $ECHO_N "checking DBUS_LIBS... $ECHO_C" >&6; }
11614 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
11615 { echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
11616 echo "${ECHO_T}$DBUS_LIBS" >&6; }
11618 { echo "$as_me:$LINENO: result: no" >&5
11619 echo "${ECHO_T}no" >&6; }
11622 ## If we have a custom action on failure, don't print errors, but
11623 ## do set a variable so people can do so.
11624 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11631 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11632 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11636 if test $succeeded = yes; then
11642 if test "$HAVE_DBUS" = yes; then
11644 cat >>confdefs.h <<\_ACEOF
11645 #define HAVE_DBUS 1
11652 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11653 if test "$with_xaw3d" != no; then
11654 { echo "$as_me:$LINENO: checking for xaw3d" >&5
11655 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
11656 if test "${emacs_cv_xaw3d+set}" = set; then
11657 echo $ECHO_N "(cached) $ECHO_C" >&6
11659 cat >conftest.$ac_ext <<_ACEOF
11662 cat confdefs.h >>conftest.$ac_ext
11663 cat >>conftest.$ac_ext <<_ACEOF
11664 /* end confdefs.h. */
11666 #include <X11/Intrinsic.h>
11667 #include <X11/Xaw3d/Simple.h>
11676 rm -f conftest.$ac_objext conftest$ac_exeext
11677 if { (ac_try="$ac_link"
11678 case "(($ac_try" in
11679 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11680 *) ac_try_echo
=$ac_try;;
11682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11683 (eval "$ac_link") 2>conftest.er1
11685 grep -v '^ *+' conftest.er1
>conftest.err
11687 cat conftest.err
>&5
11688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11689 (exit $ac_status); } && {
11690 test -z "$ac_c_werror_flag" ||
11691 test ! -s conftest.err
11692 } && test -s conftest
$ac_exeext &&
11693 $as_test_x conftest
$ac_exeext; then
11696 echo "$as_me: failed program was:" >&5
11697 sed 's/^/| /' conftest.
$ac_ext >&5
11702 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11703 conftest
$ac_exeext conftest.
$ac_ext
11709 if test $emacs_cv_xaw3d = yes; then
11710 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11711 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11712 USE_X_TOOLKIT
=LUCID
11715 cat >>confdefs.h
<<\_ACEOF
11716 #define HAVE_XAW3D 1
11720 { echo "$as_me:$LINENO: result: no" >&5
11721 echo "${ECHO_T}no" >&6; }
11722 { echo "$as_me:$LINENO: checking for libXaw" >&5
11723 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
11724 if test "${emacs_cv_xaw+set}" = set; then
11725 echo $ECHO_N "(cached) $ECHO_C" >&6
11727 cat >conftest.
$ac_ext <<_ACEOF
11730 cat confdefs.h
>>conftest.
$ac_ext
11731 cat >>conftest.
$ac_ext <<_ACEOF
11732 /* end confdefs.h. */
11734 #include <X11/Intrinsic.h>
11735 #include <X11/Xaw/Simple.h>
11744 rm -f conftest.
$ac_objext conftest
$ac_exeext
11745 if { (ac_try
="$ac_link"
11746 case "(($ac_try" in
11747 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11748 *) ac_try_echo=$ac_try;;
11750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11751 (eval "$ac_link") 2>conftest.er1
11753 grep -v '^ *+' conftest.er1 >conftest.err
11755 cat conftest.err >&5
11756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757 (exit $ac_status); } && {
11758 test -z "$ac_c_werror_flag" ||
11759 test ! -s conftest.err
11760 } && test -s conftest$ac_exeext &&
11761 $as_test_x conftest$ac_exeext; then
11764 echo "$as_me: failed program was:" >&5
11765 sed 's/^/| /' conftest.$ac_ext >&5
11770 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11771 conftest$ac_exeext conftest.$ac_ext
11774 if test $emacs_cv_xaw = yes; then
11775 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11776 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11777 USE_X_TOOLKIT=LUCID
11778 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11779 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
11780 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
11781 { (exit 1); exit 1; }; }
11783 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
11784 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
11790 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11792 if test "${USE_X_TOOLKIT}" != "none"; then
11793 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11794 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
11795 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11796 echo $ECHO_N "(cached) $ECHO_C" >&6
11798 cat >conftest.$ac_ext <<_ACEOF
11801 cat confdefs.h >>conftest.$ac_ext
11802 cat >>conftest.$ac_ext <<_ACEOF
11803 /* end confdefs.h. */
11804 #include <X11/Intrinsic.h>
11808 #if XtSpecificationRelease < 6
11816 rm -f conftest.$ac_objext conftest$ac_exeext
11817 if { (ac_try="$ac_link"
11818 case "(($ac_try" in
11819 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11820 *) ac_try_echo
=$ac_try;;
11822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11823 (eval "$ac_link") 2>conftest.er1
11825 grep -v '^ *+' conftest.er1
>conftest.err
11827 cat conftest.err
>&5
11828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11829 (exit $ac_status); } && {
11830 test -z "$ac_c_werror_flag" ||
11831 test ! -s conftest.err
11832 } && test -s conftest
$ac_exeext &&
11833 $as_test_x conftest
$ac_exeext; then
11834 emacs_cv_x11_toolkit_version_6
=yes
11836 echo "$as_me: failed program was:" >&5
11837 sed 's/^/| /' conftest.
$ac_ext >&5
11839 emacs_cv_x11_toolkit_version_6
=no
11842 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11843 conftest
$ac_exeext conftest.
$ac_ext
11846 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
11847 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11848 { echo "$as_me:$LINENO: result: 6 or newer" >&5
11849 echo "${ECHO_T}6 or newer" >&6; }
11851 cat >>confdefs.h
<<\_ACEOF
11852 #define HAVE_X11XTR6 1
11856 { echo "$as_me:$LINENO: result: before 6" >&5
11857 echo "${ECHO_T}before 6" >&6; }
11861 if test x
$HAVE_X11XTR6 = xyes
; then
11862 LIBS
="-lXt -lSM -lICE $LIBS"
11867 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
11868 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
11869 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
11870 echo $ECHO_N "(cached) $ECHO_C" >&6
11872 ac_check_lib_save_LIBS
=$LIBS
11874 cat >conftest.
$ac_ext <<_ACEOF
11877 cat confdefs.h
>>conftest.
$ac_ext
11878 cat >>conftest.
$ac_ext <<_ACEOF
11879 /* end confdefs.h. */
11881 /* Override any GCC internal prototype to avoid an error.
11882 Use char because int might match the return type of a GCC
11883 builtin and then its argument prototype would still apply. */
11887 char XmuConvertStandardSelection ();
11891 return XmuConvertStandardSelection ();
11896 rm -f conftest.
$ac_objext conftest
$ac_exeext
11897 if { (ac_try
="$ac_link"
11898 case "(($ac_try" in
11899 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11900 *) ac_try_echo=$ac_try;;
11902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11903 (eval "$ac_link") 2>conftest.er1
11905 grep -v '^ *+' conftest.er1 >conftest.err
11907 cat conftest.err >&5
11908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909 (exit $ac_status); } && {
11910 test -z "$ac_c_werror_flag" ||
11911 test ! -s conftest.err
11912 } && test -s conftest$ac_exeext &&
11913 $as_test_x conftest$ac_exeext; then
11914 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11916 echo "$as_me: failed program was:" >&5
11917 sed 's/^/| /' conftest.$ac_ext >&5
11919 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11922 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11923 conftest$ac_exeext conftest.$ac_ext
11924 LIBS=$ac_check_lib_save_LIBS
11926 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11927 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11928 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
11929 cat >>confdefs.h <<_ACEOF
11930 #define HAVE_LIBXMU 1
11937 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11940 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11941 if test "${HAVE_X11}" = "yes"; then
11942 if test "${USE_X_TOOLKIT}" != "none"; then
11944 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
11945 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
11946 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
11947 echo $ECHO_N "(cached) $ECHO_C" >&6
11949 ac_check_lib_save_LIBS=$LIBS
11950 LIBS="-lXext $LIBS"
11951 cat >conftest.$ac_ext <<_ACEOF
11954 cat confdefs.h >>conftest.$ac_ext
11955 cat >>conftest.$ac_ext <<_ACEOF
11956 /* end confdefs.h. */
11958 /* Override any GCC internal prototype to avoid an error.
11959 Use char because int might match the return type of a GCC
11960 builtin and then its argument prototype would still apply. */
11964 char XShapeQueryExtension ();
11968 return XShapeQueryExtension ();
11973 rm -f conftest.$ac_objext conftest$ac_exeext
11974 if { (ac_try="$ac_link"
11975 case "(($ac_try" in
11976 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11977 *) ac_try_echo
=$ac_try;;
11979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11980 (eval "$ac_link") 2>conftest.er1
11982 grep -v '^ *+' conftest.er1
>conftest.err
11984 cat conftest.err
>&5
11985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11986 (exit $ac_status); } && {
11987 test -z "$ac_c_werror_flag" ||
11988 test ! -s conftest.err
11989 } && test -s conftest
$ac_exeext &&
11990 $as_test_x conftest
$ac_exeext; then
11991 ac_cv_lib_Xext_XShapeQueryExtension
=yes
11993 echo "$as_me: failed program was:" >&5
11994 sed 's/^/| /' conftest.
$ac_ext >&5
11996 ac_cv_lib_Xext_XShapeQueryExtension
=no
11999 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12000 conftest
$ac_exeext conftest.
$ac_ext
12001 LIBS
=$ac_check_lib_save_LIBS
12003 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12004 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12005 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12006 cat >>confdefs.h
<<_ACEOF
12007 #define HAVE_LIBXEXT 1
12010 LIBS
="-lXext $LIBS"
12017 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12018 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12019 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12020 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12021 echo $ECHO_N "(cached) $ECHO_C" >&6
12023 cat >conftest.
$ac_ext <<_ACEOF
12026 cat confdefs.h
>>conftest.
$ac_ext
12027 cat >>conftest.
$ac_ext <<_ACEOF
12028 /* end confdefs.h. */
12033 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12036 Motif version prior to 2.1.
12042 rm -f conftest.
$ac_objext
12043 if { (ac_try
="$ac_compile"
12044 case "(($ac_try" in
12045 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12046 *) ac_try_echo=$ac_try;;
12048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12049 (eval "$ac_compile") 2>conftest.er1
12051 grep -v '^ *+' conftest.er1 >conftest.err
12053 cat conftest.err >&5
12054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055 (exit $ac_status); } && {
12056 test -z "$ac_c_werror_flag" ||
12057 test ! -s conftest.err
12058 } && test -s conftest.$ac_objext; then
12059 emacs_cv_motif_version_2_1=yes
12061 echo "$as_me: failed program was:" >&5
12062 sed 's/^/| /' conftest.$ac_ext >&5
12064 emacs_cv_motif_version_2_1=no
12067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12069 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12070 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12071 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12072 if test $emacs_cv_motif_version_2_1 = yes; then
12075 cat >>confdefs.h <<\_ACEOF
12076 #define HAVE_MOTIF_2_1 1
12079 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12080 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12081 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12082 echo $ECHO_N "(cached) $ECHO_C" >&6
12084 ac_check_lib_save_LIBS=$LIBS
12086 cat >conftest.$ac_ext <<_ACEOF
12089 cat confdefs.h >>conftest.$ac_ext
12090 cat >>conftest.$ac_ext <<_ACEOF
12091 /* end confdefs.h. */
12093 /* Override any GCC internal prototype to avoid an error.
12094 Use char because int might match the return type of a GCC
12095 builtin and then its argument prototype would still apply. */
12099 char XpCreateContext ();
12103 return XpCreateContext ();
12108 rm -f conftest.$ac_objext conftest$ac_exeext
12109 if { (ac_try="$ac_link"
12110 case "(($ac_try" in
12111 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12112 *) ac_try_echo
=$ac_try;;
12114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12115 (eval "$ac_link") 2>conftest.er1
12117 grep -v '^ *+' conftest.er1
>conftest.err
12119 cat conftest.err
>&5
12120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121 (exit $ac_status); } && {
12122 test -z "$ac_c_werror_flag" ||
12123 test ! -s conftest.err
12124 } && test -s conftest
$ac_exeext &&
12125 $as_test_x conftest
$ac_exeext; then
12126 ac_cv_lib_Xp_XpCreateContext
=yes
12128 echo "$as_me: failed program was:" >&5
12129 sed 's/^/| /' conftest.
$ac_ext >&5
12131 ac_cv_lib_Xp_XpCreateContext
=no
12134 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12135 conftest
$ac_exeext conftest.
$ac_ext
12136 LIBS
=$ac_check_lib_save_LIBS
12138 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12139 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12140 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12144 if test ${HAVE_LIBXP} = yes; then
12146 cat >>confdefs.h
<<\_ACEOF
12147 #define HAVE_LIBXP 1
12152 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12153 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12154 if test "${emacs_cv_lesstif+set}" = set; then
12155 echo $ECHO_N "(cached) $ECHO_C" >&6
12157 # We put this in CFLAGS temporarily to precede other -I options
12158 # that might be in CFLAGS temporarily.
12159 # We put this in CPPFLAGS where it precedes the other -I options.
12160 OLD_CPPFLAGS
=$CPPFLAGS
12162 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12163 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12164 cat >conftest.
$ac_ext <<_ACEOF
12167 cat confdefs.h
>>conftest.
$ac_ext
12168 cat >>conftest.
$ac_ext <<_ACEOF
12169 /* end confdefs.h. */
12170 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12179 rm -f conftest.
$ac_objext
12180 if { (ac_try
="$ac_compile"
12181 case "(($ac_try" in
12182 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12183 *) ac_try_echo=$ac_try;;
12185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12186 (eval "$ac_compile") 2>conftest.er1
12188 grep -v '^ *+' conftest.er1 >conftest.err
12190 cat conftest.err >&5
12191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12192 (exit $ac_status); } && {
12193 test -z "$ac_c_werror_flag" ||
12194 test ! -s conftest.err
12195 } && test -s conftest.$ac_objext; then
12196 emacs_cv_lesstif=yes
12198 echo "$as_me: failed program was:" >&5
12199 sed 's/^/| /' conftest.$ac_ext >&5
12201 emacs_cv_lesstif=no
12204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12206 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12207 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12208 if test $emacs_cv_lesstif = yes; then
12209 # Make sure this -I option remains in CPPFLAGS after it is set
12210 # back to REAL_CPPFLAGS.
12211 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12212 # have those other -I options anyway. Ultimately, having this
12213 # directory ultimately in CPPFLAGS will be enough.
12214 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12215 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12218 CPPFLAGS=$OLD_CPPFLAGS
12225 USE_TOOLKIT_SCROLL_BARS=no
12226 if test "${with_toolkit_scroll_bars}" != "no"; then
12227 if test "${USE_X_TOOLKIT}" != "none"; then
12228 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12229 cat >>confdefs.h <<\_ACEOF
12230 #define USE_TOOLKIT_SCROLL_BARS 1
12234 USE_TOOLKIT_SCROLL_BARS=yes
12235 elif test "${HAVE_XAW3D}" = "yes"; then
12236 cat >>confdefs.h <<\_ACEOF
12237 #define USE_TOOLKIT_SCROLL_BARS 1
12240 USE_TOOLKIT_SCROLL_BARS=yes
12242 elif test "${HAVE_GTK}" = "yes"; then
12243 cat >>confdefs.h <<\_ACEOF
12244 #define USE_TOOLKIT_SCROLL_BARS 1
12247 USE_TOOLKIT_SCROLL_BARS=yes
12248 elif test "${HAVE_CARBON}" = "yes"; then
12249 cat >>confdefs.h <<\_ACEOF
12250 #define USE_TOOLKIT_SCROLL_BARS 1
12253 USE_TOOLKIT_SCROLL_BARS=yes
12257 cat >conftest.$ac_ext <<_ACEOF
12260 cat confdefs.h >>conftest.$ac_ext
12261 cat >>conftest.$ac_ext <<_ACEOF
12262 /* end confdefs.h. */
12264 #include <X11/Xlib.h>
12265 #include <X11/Xresource.h>
12274 rm -f conftest.$ac_objext
12275 if { (ac_try="$ac_compile"
12276 case "(($ac_try" in
12277 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12278 *) ac_try_echo
=$ac_try;;
12280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12281 (eval "$ac_compile") 2>conftest.er1
12283 grep -v '^ *+' conftest.er1
>conftest.err
12285 cat conftest.err
>&5
12286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287 (exit $ac_status); } && {
12288 test -z "$ac_c_werror_flag" ||
12289 test ! -s conftest.err
12290 } && test -s conftest.
$ac_objext; then
12293 cat >>confdefs.h
<<\_ACEOF
12298 echo "$as_me: failed program was:" >&5
12299 sed 's/^/| /' conftest.
$ac_ext >&5
12304 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12307 if test "${with_xim}" != "no"; then
12309 cat >>confdefs.h
<<\_ACEOF
12316 if test "${HAVE_XIM}" != "no"; then
12317 late_CFLAGS
=$CFLAGS
12318 if test "$GCC" = yes; then
12319 CFLAGS
="$CFLAGS --pedantic-errors"
12321 cat >conftest.
$ac_ext <<_ACEOF
12324 cat confdefs.h
>>conftest.
$ac_ext
12325 cat >>conftest.
$ac_ext <<_ACEOF
12326 /* end confdefs.h. */
12328 #include <X11/Xlib.h>
12329 #include <X11/Xresource.h>
12338 XPointer *client_data;
12340 /* If we're not using GCC, it's probably not XFree86, and this is
12341 probably right, but we can't use something like --pedantic-errors. */
12342 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12343 char*, XIMProc, XPointer*);
12345 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12351 rm -f conftest.
$ac_objext
12352 if { (ac_try
="$ac_compile"
12353 case "(($ac_try" in
12354 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12355 *) ac_try_echo=$ac_try;;
12357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12358 (eval "$ac_compile") 2>conftest.er1
12360 grep -v '^ *+' conftest.er1 >conftest.err
12362 cat conftest.err >&5
12363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364 (exit $ac_status); } && {
12365 test -z "$ac_c_werror_flag" ||
12366 test ! -s conftest.err
12367 } && test -s conftest.$ac_objext; then
12368 emacs_cv_arg6_star=yes
12370 echo "$as_me: failed program was:" >&5
12371 sed 's/^/| /' conftest.$ac_ext >&5
12376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12378 if test "$emacs_cv_arg6_star" = yes; then
12379 cat >>confdefs.h <<\_ACEOF
12380 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12384 cat >>confdefs.h <<\_ACEOF
12385 #define XRegisterIMInstantiateCallback_arg6 XPointer
12389 CFLAGS=$late_CFLAGS
12392 #### For font-backend
12393 if test "${USE_FONT_BACKEND}" = "yes"; then
12396 cat >>confdefs.h <<\_ACEOF
12397 #define USE_FONT_BACKEND 1
12401 ### Use -lXft if available, unless `--with-freetype=no
' nor `--with-xft=no'.
12403 if test "${HAVE_X11}" = "yes"; then
12404 if test "x${with_freetype}" = "xno"; then
12407 if test "x${with_xft}" != "xno"; then
12409 if test "X${with_pkg_config_prog}" != X
; then
12410 PKG_CONFIG
="${with_pkg_config_prog}"
12416 # Extract the first word of "pkg-config", so it can be a program name with args.
12417 set dummy pkg-config
; ac_word
=$2
12418 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12420 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12421 echo $ECHO_N "(cached) $ECHO_C" >&6
12423 case $PKG_CONFIG in
12425 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12428 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12429 for as_dir
in $PATH
12432 test -z "$as_dir" && as_dir
=.
12433 for ac_exec_ext
in '' $ac_executable_extensions; do
12434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12435 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12443 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12447 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12448 if test -n "$PKG_CONFIG"; then
12449 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12450 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12452 { echo "$as_me:$LINENO: result: no" >&5
12453 echo "${ECHO_T}no" >&6; }
12458 if test "$PKG_CONFIG" = "no" ; then
12461 PKG_CONFIG_MIN_VERSION
=0.9.0
12462 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12463 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12464 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12466 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12467 { echo "$as_me:$LINENO: result: yes" >&5
12468 echo "${ECHO_T}yes" >&6; }
12471 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12472 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12473 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12474 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12475 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12477 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12478 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12479 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12480 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12481 echo "${ECHO_T}$XFT_LIBS" >&6; }
12483 { echo "$as_me:$LINENO: result: no" >&5
12484 echo "${ECHO_T}no" >&6; }
12487 ## If we have a custom action on failure, don't print errors, but
12488 ## do set a variable so people can do so.
12489 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12496 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12497 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12501 if test $succeeded = yes; then
12507 if test "$HAVE_XFT" != no
; then
12508 OLD_CPPFLAGS
="$CPPFLAGS"
12509 OLD_CFLAGS
="$CFLAGS"
12511 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
12512 CFLAGS
="$CFLAGS $XFT_CFLAGS"
12513 LIBS
="$XFT_LIBS $LIBS"
12514 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12515 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12516 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12517 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12518 echo $ECHO_N "(cached) $ECHO_C" >&6
12520 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12521 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12523 # Is the header compilable?
12524 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12525 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12526 cat >conftest.
$ac_ext <<_ACEOF
12529 cat confdefs.h
>>conftest.
$ac_ext
12530 cat >>conftest.
$ac_ext <<_ACEOF
12531 /* end confdefs.h. */
12532 $ac_includes_default
12533 #include <X11/Xft/Xft.h>
12535 rm -f conftest.
$ac_objext
12536 if { (ac_try
="$ac_compile"
12537 case "(($ac_try" in
12538 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12539 *) ac_try_echo=$ac_try;;
12541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12542 (eval "$ac_compile") 2>conftest.er1
12544 grep -v '^ *+' conftest.er1 >conftest.err
12546 cat conftest.err >&5
12547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548 (exit $ac_status); } && {
12549 test -z "$ac_c_werror_flag" ||
12550 test ! -s conftest.err
12551 } && test -s conftest.$ac_objext; then
12552 ac_header_compiler=yes
12554 echo "$as_me: failed program was:" >&5
12555 sed 's/^/| /' conftest.$ac_ext >&5
12557 ac_header_compiler=no
12560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12561 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12562 echo "${ECHO_T}$ac_header_compiler" >&6; }
12564 # Is the header present?
12565 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12566 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12567 cat >conftest.$ac_ext <<_ACEOF
12570 cat confdefs.h >>conftest.$ac_ext
12571 cat >>conftest.$ac_ext <<_ACEOF
12572 /* end confdefs.h. */
12573 #include <X11/Xft/Xft.h>
12575 if { (ac_try="$ac_cpp conftest.$ac_ext"
12576 case "(($ac_try" in
12577 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12578 *) ac_try_echo
=$ac_try;;
12580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12581 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12583 grep -v '^ *+' conftest.er1
>conftest.err
12585 cat conftest.err
>&5
12586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12587 (exit $ac_status); } >/dev
/null
&& {
12588 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12589 test ! -s conftest.err
12591 ac_header_preproc
=yes
12593 echo "$as_me: failed program was:" >&5
12594 sed 's/^/| /' conftest.
$ac_ext >&5
12596 ac_header_preproc
=no
12599 rm -f conftest.err conftest.
$ac_ext
12600 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12601 echo "${ECHO_T}$ac_header_preproc" >&6; }
12603 # So? What about this header?
12604 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12606 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12607 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12608 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12609 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12610 ac_header_preproc
=yes
12613 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12614 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12615 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12616 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12617 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12618 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12619 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12620 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12621 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12622 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12623 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12624 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12628 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12629 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12630 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12631 echo $ECHO_N "(cached) $ECHO_C" >&6
12633 ac_cv_header_X11_Xft_Xft_h
=$ac_header_preproc
12635 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12636 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12639 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12640 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12641 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12642 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12643 echo $ECHO_N "(cached) $ECHO_C" >&6
12645 ac_check_lib_save_LIBS
=$LIBS
12646 LIBS
="-lXft $XFT_LIBS $LIBS"
12647 cat >conftest.
$ac_ext <<_ACEOF
12650 cat confdefs.h
>>conftest.
$ac_ext
12651 cat >>conftest.
$ac_ext <<_ACEOF
12652 /* end confdefs.h. */
12654 /* Override any GCC internal prototype to avoid an error.
12655 Use char because int might match the return type of a GCC
12656 builtin and then its argument prototype would still apply. */
12660 char XftFontOpen ();
12664 return XftFontOpen ();
12669 rm -f conftest.
$ac_objext conftest
$ac_exeext
12670 if { (ac_try
="$ac_link"
12671 case "(($ac_try" in
12672 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12673 *) ac_try_echo=$ac_try;;
12675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12676 (eval "$ac_link") 2>conftest.er1
12678 grep -v '^ *+' conftest.er1 >conftest.err
12680 cat conftest.err >&5
12681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12682 (exit $ac_status); } && {
12683 test -z "$ac_c_werror_flag" ||
12684 test ! -s conftest.err
12685 } && test -s conftest$ac_exeext &&
12686 $as_test_x conftest$ac_exeext; then
12687 ac_cv_lib_Xft_XftFontOpen=yes
12689 echo "$as_me: failed program was:" >&5
12690 sed 's/^/| /' conftest.$ac_ext >&5
12692 ac_cv_lib_Xft_XftFontOpen=no
12695 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12696 conftest$ac_exeext conftest.$ac_ext
12697 LIBS=$ac_check_lib_save_LIBS
12699 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12700 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12701 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12709 if test "${HAVE_XFT}" = "yes"; then
12711 cat >>confdefs.h <<\_ACEOF
12716 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12718 CPPFLAGS="$OLD_CPPFLAGS"
12719 CFLAGS="$OLD_CFLAGS"
12725 if test "$HAVE_XFT" != "yes"; then
12731 ### Use -lfreetype if available, unless `--with-freetype=no
'.
12732 if test "${HAVE_XFT}" = "yes"; then
12734 elif test "x${with_freetype}" != "xno"; then
12735 if test "X${with_pkg_config_prog}" != X; then
12736 PKG_CONFIG="${with_pkg_config_prog}"
12742 # Extract the first word of "pkg-config", so it can be a program name with args.
12743 set dummy pkg-config; ac_word=$2
12744 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12746 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12747 echo $ECHO_N "(cached) $ECHO_C" >&6
12749 case $PKG_CONFIG in
12751 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12755 for as_dir in $PATH
12758 test -z "$as_dir" && as_dir=.
12759 for ac_exec_ext in '' $ac_executable_extensions; do
12760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12761 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12769 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12773 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12774 if test -n "$PKG_CONFIG"; then
12775 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12776 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12778 { echo "$as_me:$LINENO: result: no" >&5
12779 echo "${ECHO_T}no" >&6; }
12784 if test "$PKG_CONFIG" = "no" ; then
12787 PKG_CONFIG_MIN_VERSION=0.9.0
12788 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12789 { echo "$as_me:$LINENO: checking for freetype2" >&5
12790 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6; }
12792 if $PKG_CONFIG --exists "freetype2" 2>&5; then
12793 { echo "$as_me:$LINENO: result: yes" >&5
12794 echo "${ECHO_T}yes" >&6; }
12797 { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
12798 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6; }
12799 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's
,///*,/,g
'`
12800 { echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
12801 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; }
12803 { echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
12804 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6; }
12805 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's
,///*,/,g
'`
12806 { echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
12807 echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
12809 { echo "$as_me:$LINENO: result: no" >&5
12810 echo "${ECHO_T}no" >&6; }
12813 ## If we have a custom action on failure, don't print errors
, but
12814 ## do set a variable so people can do so.
12815 FREETYPE_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12822 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12823 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12827 if test $succeeded = yes; then
12833 if test "${HAVE_FREETYPE}" = "yes"; then
12837 # Extract the first word of "pkg-config", so it can be a program name with args.
12838 set dummy pkg-config
; ac_word
=$2
12839 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12841 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12842 echo $ECHO_N "(cached) $ECHO_C" >&6
12844 case $PKG_CONFIG in
12846 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12849 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12850 for as_dir
in $PATH
12853 test -z "$as_dir" && as_dir
=.
12854 for ac_exec_ext
in '' $ac_executable_extensions; do
12855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12856 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12864 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12868 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12869 if test -n "$PKG_CONFIG"; then
12870 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12871 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12873 { echo "$as_me:$LINENO: result: no" >&5
12874 echo "${ECHO_T}no" >&6; }
12879 if test "$PKG_CONFIG" = "no" ; then
12882 PKG_CONFIG_MIN_VERSION
=0.9.0
12883 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12884 { echo "$as_me:$LINENO: checking for fontconfig" >&5
12885 echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6; }
12887 if $PKG_CONFIG --exists "fontconfig" 2>&5; then
12888 { echo "$as_me:$LINENO: result: yes" >&5
12889 echo "${ECHO_T}yes" >&6; }
12892 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
12893 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6; }
12894 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig"|sed -e 's,///*,/,g'`
12895 { echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
12896 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
12898 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
12899 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6; }
12900 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig"|sed -e 's,///*,/,g'`
12901 { echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
12902 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
12904 { echo "$as_me:$LINENO: result: no" >&5
12905 echo "${ECHO_T}no" >&6; }
12906 FONTCONFIG_CFLAGS
=""
12908 ## If we have a custom action on failure, don't print errors, but
12909 ## do set a variable so people can do so.
12910 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
12917 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12918 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12922 if test $succeeded = yes; then
12928 if test "${HAVE_FC}" = "no"; then
12935 if test "${HAVE_FREETYPE}" = "yes"; then
12937 cat >>confdefs.h
<<\_ACEOF
12938 #define HAVE_FREETYPE 1
12941 if test "${with_libotf}" != "no"; then
12942 if test "X${with_pkg_config_prog}" != X
; then
12943 PKG_CONFIG
="${with_pkg_config_prog}"
12948 # Extract the first word of "pkg-config", so it can be a program name with args.
12949 set dummy pkg-config
; ac_word
=$2
12950 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12952 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12953 echo $ECHO_N "(cached) $ECHO_C" >&6
12955 case $PKG_CONFIG in
12957 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12960 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12961 for as_dir
in $PATH
12964 test -z "$as_dir" && as_dir
=.
12965 for ac_exec_ext
in '' $ac_executable_extensions; do
12966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12967 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12975 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12979 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12980 if test -n "$PKG_CONFIG"; then
12981 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12982 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12984 { echo "$as_me:$LINENO: result: no" >&5
12985 echo "${ECHO_T}no" >&6; }
12990 if test "$PKG_CONFIG" = "no" ; then
12993 PKG_CONFIG_MIN_VERSION
=0.9.0
12994 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12995 { echo "$as_me:$LINENO: checking for libotf" >&5
12996 echo $ECHO_N "checking for libotf... $ECHO_C" >&6; }
12998 if $PKG_CONFIG --exists "libotf" 2>&5; then
12999 { echo "$as_me:$LINENO: result: yes" >&5
13000 echo "${ECHO_T}yes" >&6; }
13003 { echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
13004 echo $ECHO_N "checking LIBOTF_CFLAGS... $ECHO_C" >&6; }
13005 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
13006 { echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
13007 echo "${ECHO_T}$LIBOTF_CFLAGS" >&6; }
13009 { echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
13010 echo $ECHO_N "checking LIBOTF_LIBS... $ECHO_C" >&6; }
13011 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
13012 { echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
13013 echo "${ECHO_T}$LIBOTF_LIBS" >&6; }
13015 { echo "$as_me:$LINENO: result: no" >&5
13016 echo "${ECHO_T}no" >&6; }
13019 ## If we have a custom action on failure, don't print errors, but
13020 ## do set a variable so people can do so.
13021 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
13028 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13029 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13033 if test $succeeded = yes; then
13039 if test "$HAVE_LIBOTF" = "yes"; then
13041 cat >>confdefs.h
<<\_ACEOF
13042 #define HAVE_LIBOTF 1
13050 if test "${with_m17n_flt}" != "no"; then
13051 if test "X${with_pkg_config_prog}" != X
; then
13052 PKG_CONFIG
="${with_pkg_config_prog}"
13057 # Extract the first word of "pkg-config", so it can be a program name with args.
13058 set dummy pkg-config
; ac_word
=$2
13059 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13061 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13062 echo $ECHO_N "(cached) $ECHO_C" >&6
13064 case $PKG_CONFIG in
13066 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13069 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13070 for as_dir
in $PATH
13073 test -z "$as_dir" && as_dir
=.
13074 for ac_exec_ext
in '' $ac_executable_extensions; do
13075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13076 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13084 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13088 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13089 if test -n "$PKG_CONFIG"; then
13090 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13091 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13093 { echo "$as_me:$LINENO: result: no" >&5
13094 echo "${ECHO_T}no" >&6; }
13099 if test "$PKG_CONFIG" = "no" ; then
13102 PKG_CONFIG_MIN_VERSION
=0.9.0
13103 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13104 { echo "$as_me:$LINENO: checking for m17n-flt" >&5
13105 echo $ECHO_N "checking for m17n-flt... $ECHO_C" >&6; }
13107 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
13108 { echo "$as_me:$LINENO: result: yes" >&5
13109 echo "${ECHO_T}yes" >&6; }
13112 { echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
13113 echo $ECHO_N "checking M17N_FLT_CFLAGS... $ECHO_C" >&6; }
13114 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
13115 { echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
13116 echo "${ECHO_T}$M17N_FLT_CFLAGS" >&6; }
13118 { echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
13119 echo $ECHO_N "checking M17N_FLT_LIBS... $ECHO_C" >&6; }
13120 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
13121 { echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
13122 echo "${ECHO_T}$M17N_FLT_LIBS" >&6; }
13124 { echo "$as_me:$LINENO: result: no" >&5
13125 echo "${ECHO_T}no" >&6; }
13128 ## If we have a custom action on failure, don't print errors, but
13129 ## do set a variable so people can do so.
13130 M17N_FLT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13137 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13138 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13142 if test $succeeded = yes; then
13148 if test "$HAVE_M17N_FLT" = "yes"; then
13150 cat >>confdefs.h
<<\_ACEOF
13151 #define HAVE_M17N_FLT 1
13167 #### End for font-backend
13169 ### Use -lXpm if available, unless `--with-xpm=no'.
13171 if test "${HAVE_X11}" = "yes"; then
13172 if test "${with_xpm}" != "no"; then
13173 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13174 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13175 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13176 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13177 echo $ECHO_N "(cached) $ECHO_C" >&6
13179 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13180 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13182 # Is the header compilable?
13183 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13184 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13185 cat >conftest.
$ac_ext <<_ACEOF
13188 cat confdefs.h
>>conftest.
$ac_ext
13189 cat >>conftest.
$ac_ext <<_ACEOF
13190 /* end confdefs.h. */
13191 $ac_includes_default
13192 #include <X11/xpm.h>
13194 rm -f conftest.
$ac_objext
13195 if { (ac_try
="$ac_compile"
13196 case "(($ac_try" in
13197 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13198 *) ac_try_echo=$ac_try;;
13200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13201 (eval "$ac_compile") 2>conftest.er1
13203 grep -v '^ *+' conftest.er1 >conftest.err
13205 cat conftest.err >&5
13206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13207 (exit $ac_status); } && {
13208 test -z "$ac_c_werror_flag" ||
13209 test ! -s conftest.err
13210 } && test -s conftest.$ac_objext; then
13211 ac_header_compiler=yes
13213 echo "$as_me: failed program was:" >&5
13214 sed 's/^/| /' conftest.$ac_ext >&5
13216 ac_header_compiler=no
13219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13220 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13221 echo "${ECHO_T}$ac_header_compiler" >&6; }
13223 # Is the header present?
13224 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13225 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13226 cat >conftest.$ac_ext <<_ACEOF
13229 cat confdefs.h >>conftest.$ac_ext
13230 cat >>conftest.$ac_ext <<_ACEOF
13231 /* end confdefs.h. */
13232 #include <X11/xpm.h>
13234 if { (ac_try="$ac_cpp conftest.$ac_ext"
13235 case "(($ac_try" in
13236 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13237 *) ac_try_echo
=$ac_try;;
13239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13240 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13242 grep -v '^ *+' conftest.er1
>conftest.err
13244 cat conftest.err
>&5
13245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246 (exit $ac_status); } >/dev
/null
&& {
13247 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13248 test ! -s conftest.err
13250 ac_header_preproc
=yes
13252 echo "$as_me: failed program was:" >&5
13253 sed 's/^/| /' conftest.
$ac_ext >&5
13255 ac_header_preproc
=no
13258 rm -f conftest.err conftest.
$ac_ext
13259 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13260 echo "${ECHO_T}$ac_header_preproc" >&6; }
13262 # So? What about this header?
13263 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13265 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13266 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13267 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13268 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13269 ac_header_preproc
=yes
13272 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13273 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13274 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13275 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13276 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13277 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13278 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13279 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13280 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13281 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13282 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13283 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13287 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13288 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13289 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13290 echo $ECHO_N "(cached) $ECHO_C" >&6
13292 ac_cv_header_X11_xpm_h
=$ac_header_preproc
13294 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13295 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13298 if test $ac_cv_header_X11_xpm_h = yes; then
13299 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13300 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13301 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13302 echo $ECHO_N "(cached) $ECHO_C" >&6
13304 ac_check_lib_save_LIBS
=$LIBS
13305 LIBS
="-lXpm -lX11 $LIBS"
13306 cat >conftest.
$ac_ext <<_ACEOF
13309 cat confdefs.h
>>conftest.
$ac_ext
13310 cat >>conftest.
$ac_ext <<_ACEOF
13311 /* end confdefs.h. */
13313 /* Override any GCC internal prototype to avoid an error.
13314 Use char because int might match the return type of a GCC
13315 builtin and then its argument prototype would still apply. */
13319 char XpmReadFileToPixmap ();
13323 return XpmReadFileToPixmap ();
13328 rm -f conftest.
$ac_objext conftest
$ac_exeext
13329 if { (ac_try
="$ac_link"
13330 case "(($ac_try" in
13331 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13332 *) ac_try_echo=$ac_try;;
13334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13335 (eval "$ac_link") 2>conftest.er1
13337 grep -v '^ *+' conftest.er1 >conftest.err
13339 cat conftest.err >&5
13340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13341 (exit $ac_status); } && {
13342 test -z "$ac_c_werror_flag" ||
13343 test ! -s conftest.err
13344 } && test -s conftest$ac_exeext &&
13345 $as_test_x conftest$ac_exeext; then
13346 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13348 echo "$as_me: failed program was:" >&5
13349 sed 's/^/| /' conftest.$ac_ext >&5
13351 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13354 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13355 conftest$ac_exeext conftest.$ac_ext
13356 LIBS=$ac_check_lib_save_LIBS
13358 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13359 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13360 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13367 if test "${HAVE_XPM}" = "yes"; then
13368 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13369 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13370 cat >conftest.$ac_ext <<_ACEOF
13373 cat confdefs.h >>conftest.$ac_ext
13374 cat >>conftest.$ac_ext <<_ACEOF
13375 /* end confdefs.h. */
13376 #include "X11/xpm.h"
13377 #ifndef XpmReturnAllocPixels
13378 no_return_alloc_pixels
13382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13383 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13391 if test "${HAVE_XPM}" = "yes"; then
13392 { echo "$as_me:$LINENO: result: yes" >&5
13393 echo "${ECHO_T}yes" >&6; }
13395 { echo "$as_me:$LINENO: result: no" >&5
13396 echo "${ECHO_T}no" >&6; }
13401 if test "${HAVE_XPM}" = "yes"; then
13403 cat >>confdefs.h <<\_ACEOF
13410 ### Use -ljpeg if available, unless `--with-jpeg=no
'.
13412 if test "${HAVE_X11}" = "yes"; then
13413 if test "${with_jpeg}" != "no"; then
13414 if test "${ac_cv_header_jerror_h+set}" = set; then
13415 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13416 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13417 if test "${ac_cv_header_jerror_h+set}" = set; then
13418 echo $ECHO_N "(cached) $ECHO_C" >&6
13420 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13421 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13423 # Is the header compilable?
13424 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13425 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13426 cat >conftest.$ac_ext <<_ACEOF
13429 cat confdefs.h >>conftest.$ac_ext
13430 cat >>conftest.$ac_ext <<_ACEOF
13431 /* end confdefs.h. */
13432 $ac_includes_default
13433 #include <jerror.h>
13435 rm -f conftest.$ac_objext
13436 if { (ac_try="$ac_compile"
13437 case "(($ac_try" in
13438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13439 *) ac_try_echo=$ac_try;;
13441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13442 (eval "$ac_compile") 2>conftest.er1
13444 grep -v '^
*+' conftest.er1 >conftest.err
13446 cat conftest.err >&5
13447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13448 (exit $ac_status); } && {
13449 test -z "$ac_c_werror_flag" ||
13450 test ! -s conftest.err
13451 } && test -s conftest.$ac_objext; then
13452 ac_header_compiler=yes
13454 echo "$as_me: failed program was:" >&5
13455 sed 's
/^
/|
/' conftest.$ac_ext >&5
13457 ac_header_compiler=no
13460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13461 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13462 echo "${ECHO_T}$ac_header_compiler" >&6; }
13464 # Is the header present?
13465 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13466 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13467 cat >conftest.$ac_ext <<_ACEOF
13470 cat confdefs.h >>conftest.$ac_ext
13471 cat >>conftest.$ac_ext <<_ACEOF
13472 /* end confdefs.h. */
13473 #include <jerror.h>
13475 if { (ac_try="$ac_cpp conftest.$ac_ext"
13476 case "(($ac_try" in
13477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13478 *) ac_try_echo=$ac_try;;
13480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13481 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13483 grep -v '^
*+' conftest.er1 >conftest.err
13485 cat conftest.err >&5
13486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13487 (exit $ac_status); } >/dev/null && {
13488 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13489 test ! -s conftest.err
13491 ac_header_preproc=yes
13493 echo "$as_me: failed program was:" >&5
13494 sed 's
/^
/|
/' conftest.$ac_ext >&5
13496 ac_header_preproc=no
13499 rm -f conftest.err conftest.$ac_ext
13500 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13501 echo "${ECHO_T}$ac_header_preproc" >&6; }
13503 # So? What about this header?
13504 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13506 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13507 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13508 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result
" >&5
13509 echo "$as_me: WARNING
: jerror.h
: proceeding with the compiler
's result" >&2;}
13510 ac_header_preproc=yes
13513 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13514 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13515 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13516 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13517 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13518 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13519 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13520 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13521 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result
" >&5
13522 echo "$as_me: WARNING
: jerror.h
: proceeding with the preprocessor
's result" >&2;}
13523 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13524 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13528 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13529 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13530 if test "${ac_cv_header_jerror_h+set}" = set; then
13531 echo $ECHO_N "(cached) $ECHO_C" >&6
13533 ac_cv_header_jerror_h=$ac_header_preproc
13535 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13536 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13539 if test $ac_cv_header_jerror_h = yes; then
13540 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13541 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13542 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13543 echo $ECHO_N "(cached) $ECHO_C" >&6
13545 ac_check_lib_save_LIBS=$LIBS
13546 LIBS="-ljpeg $LIBS"
13547 cat >conftest.$ac_ext <<_ACEOF
13550 cat confdefs.h >>conftest.$ac_ext
13551 cat >>conftest.$ac_ext <<_ACEOF
13552 /* end confdefs.h. */
13554 /* Override any GCC internal prototype to avoid an error.
13555 Use char because int might match the return type of a GCC
13556 builtin and then its argument prototype would still apply. */
13560 char jpeg_destroy_compress ();
13564 return jpeg_destroy_compress ();
13569 rm -f conftest.$ac_objext conftest$ac_exeext
13570 if { (ac_try="$ac_link"
13571 case "(($ac_try" in
13572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13573 *) ac_try_echo=$ac_try;;
13575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13576 (eval "$ac_link") 2>conftest.er1
13578 grep -v '^
*+' conftest.er1 >conftest.err
13580 cat conftest.err >&5
13581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13582 (exit $ac_status); } && {
13583 test -z "$ac_c_werror_flag" ||
13584 test ! -s conftest.err
13585 } && test -s conftest$ac_exeext &&
13586 $as_test_x conftest$ac_exeext; then
13587 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13589 echo "$as_me: failed program was:" >&5
13590 sed 's
/^
/|
/' conftest.$ac_ext >&5
13592 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13595 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13596 conftest$ac_exeext conftest.$ac_ext
13597 LIBS=$ac_check_lib_save_LIBS
13599 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13600 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13601 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13611 if test "${HAVE_JPEG}" = "yes"; then
13612 cat >>confdefs.h <<\_ACEOF
13613 #define HAVE_JPEG 1
13616 cat >conftest.$ac_ext <<_ACEOF
13619 cat confdefs.h >>conftest.$ac_ext
13620 cat >>conftest.$ac_ext <<_ACEOF
13621 /* end confdefs.h. */
13622 #include <jpeglib.h>
13623 version=JPEG_LIB_VERSION
13626 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13627 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13628 cat >>confdefs.h <<\_ACEOF
13629 #define HAVE_JPEG 1
13633 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13634 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13642 ### Use -lpng if available, unless `--with-png=no'.
13644 if test "${HAVE_X11}" = "yes"; then
13645 if test "${with_png}" != "no"; then
13646 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13647 # in /usr/include/libpng.
13650 for ac_header
in png.h libpng
/png.h
13652 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13653 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13654 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13655 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13656 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13657 echo $ECHO_N "(cached) $ECHO_C" >&6
13659 ac_res
=`eval echo '${'$as_ac_Header'}'`
13660 { echo "$as_me:$LINENO: result: $ac_res" >&5
13661 echo "${ECHO_T}$ac_res" >&6; }
13663 # Is the header compilable?
13664 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13665 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13666 cat >conftest.
$ac_ext <<_ACEOF
13669 cat confdefs.h
>>conftest.
$ac_ext
13670 cat >>conftest.
$ac_ext <<_ACEOF
13671 /* end confdefs.h. */
13672 $ac_includes_default
13673 #include <$ac_header>
13675 rm -f conftest.
$ac_objext
13676 if { (ac_try
="$ac_compile"
13677 case "(($ac_try" in
13678 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13679 *) ac_try_echo=$ac_try;;
13681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13682 (eval "$ac_compile") 2>conftest.er1
13684 grep -v '^ *+' conftest.er1 >conftest.err
13686 cat conftest.err >&5
13687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13688 (exit $ac_status); } && {
13689 test -z "$ac_c_werror_flag" ||
13690 test ! -s conftest.err
13691 } && test -s conftest.$ac_objext; then
13692 ac_header_compiler=yes
13694 echo "$as_me: failed program was:" >&5
13695 sed 's/^/| /' conftest.$ac_ext >&5
13697 ac_header_compiler=no
13700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13701 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13702 echo "${ECHO_T}$ac_header_compiler" >&6; }
13704 # Is the header present?
13705 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13706 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13707 cat >conftest.$ac_ext <<_ACEOF
13710 cat confdefs.h >>conftest.$ac_ext
13711 cat >>conftest.$ac_ext <<_ACEOF
13712 /* end confdefs.h. */
13713 #include <$ac_header>
13715 if { (ac_try="$ac_cpp conftest.$ac_ext"
13716 case "(($ac_try" in
13717 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13718 *) ac_try_echo
=$ac_try;;
13720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13721 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13723 grep -v '^ *+' conftest.er1
>conftest.err
13725 cat conftest.err
>&5
13726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13727 (exit $ac_status); } >/dev
/null
&& {
13728 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13729 test ! -s conftest.err
13731 ac_header_preproc
=yes
13733 echo "$as_me: failed program was:" >&5
13734 sed 's/^/| /' conftest.
$ac_ext >&5
13736 ac_header_preproc
=no
13739 rm -f conftest.err conftest.
$ac_ext
13740 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13741 echo "${ECHO_T}$ac_header_preproc" >&6; }
13743 # So? What about this header?
13744 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13746 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13747 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13748 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13749 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13750 ac_header_preproc
=yes
13753 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13754 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13755 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13756 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13757 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13758 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13759 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13760 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13761 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13762 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13763 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13764 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13768 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13769 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13770 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13771 echo $ECHO_N "(cached) $ECHO_C" >&6
13773 eval "$as_ac_Header=\$ac_header_preproc"
13775 ac_res
=`eval echo '${'$as_ac_Header'}'`
13776 { echo "$as_me:$LINENO: result: $ac_res" >&5
13777 echo "${ECHO_T}$ac_res" >&6; }
13780 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13781 cat >>confdefs.h
<<_ACEOF
13782 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13789 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
13790 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13791 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13792 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13793 echo $ECHO_N "(cached) $ECHO_C" >&6
13795 ac_check_lib_save_LIBS
=$LIBS
13796 LIBS
="-lpng -lz -lm $LIBS"
13797 cat >conftest.
$ac_ext <<_ACEOF
13800 cat confdefs.h
>>conftest.
$ac_ext
13801 cat >>conftest.
$ac_ext <<_ACEOF
13802 /* end confdefs.h. */
13804 /* Override any GCC internal prototype to avoid an error.
13805 Use char because int might match the return type of a GCC
13806 builtin and then its argument prototype would still apply. */
13810 char png_get_channels ();
13814 return png_get_channels ();
13819 rm -f conftest.
$ac_objext conftest
$ac_exeext
13820 if { (ac_try
="$ac_link"
13821 case "(($ac_try" in
13822 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13823 *) ac_try_echo=$ac_try;;
13825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13826 (eval "$ac_link") 2>conftest.er1
13828 grep -v '^ *+' conftest.er1 >conftest.err
13830 cat conftest.err >&5
13831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13832 (exit $ac_status); } && {
13833 test -z "$ac_c_werror_flag" ||
13834 test ! -s conftest.err
13835 } && test -s conftest$ac_exeext &&
13836 $as_test_x conftest$ac_exeext; then
13837 ac_cv_lib_png_png_get_channels=yes
13839 echo "$as_me: failed program was:" >&5
13840 sed 's/^/| /' conftest.$ac_ext >&5
13842 ac_cv_lib_png_png_get_channels=no
13845 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13846 conftest$ac_exeext conftest.$ac_ext
13847 LIBS=$ac_check_lib_save_LIBS
13849 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13850 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13851 if test $ac_cv_lib_png_png_get_channels = yes; then
13858 if test "${HAVE_PNG}" = "yes"; then
13860 cat >>confdefs.h <<\_ACEOF
13867 ### Use -ltiff if available, unless `--with-tiff=no
'.
13869 if test "${HAVE_X11}" = "yes"; then
13870 if test "${with_tiff}" != "no"; then
13871 if test "${ac_cv_header_tiffio_h+set}" = set; then
13872 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13873 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13874 if test "${ac_cv_header_tiffio_h+set}" = set; then
13875 echo $ECHO_N "(cached) $ECHO_C" >&6
13877 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13878 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13880 # Is the header compilable?
13881 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13882 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13883 cat >conftest.$ac_ext <<_ACEOF
13886 cat confdefs.h >>conftest.$ac_ext
13887 cat >>conftest.$ac_ext <<_ACEOF
13888 /* end confdefs.h. */
13889 $ac_includes_default
13890 #include <tiffio.h>
13892 rm -f conftest.$ac_objext
13893 if { (ac_try="$ac_compile"
13894 case "(($ac_try" in
13895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13896 *) ac_try_echo=$ac_try;;
13898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13899 (eval "$ac_compile") 2>conftest.er1
13901 grep -v '^
*+' conftest.er1 >conftest.err
13903 cat conftest.err >&5
13904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13905 (exit $ac_status); } && {
13906 test -z "$ac_c_werror_flag" ||
13907 test ! -s conftest.err
13908 } && test -s conftest.$ac_objext; then
13909 ac_header_compiler=yes
13911 echo "$as_me: failed program was:" >&5
13912 sed 's
/^
/|
/' conftest.$ac_ext >&5
13914 ac_header_compiler=no
13917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13918 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13919 echo "${ECHO_T}$ac_header_compiler" >&6; }
13921 # Is the header present?
13922 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13923 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13924 cat >conftest.$ac_ext <<_ACEOF
13927 cat confdefs.h >>conftest.$ac_ext
13928 cat >>conftest.$ac_ext <<_ACEOF
13929 /* end confdefs.h. */
13930 #include <tiffio.h>
13932 if { (ac_try="$ac_cpp conftest.$ac_ext"
13933 case "(($ac_try" in
13934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13935 *) ac_try_echo=$ac_try;;
13937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13938 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13940 grep -v '^
*+' conftest.er1 >conftest.err
13942 cat conftest.err >&5
13943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944 (exit $ac_status); } >/dev/null && {
13945 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13946 test ! -s conftest.err
13948 ac_header_preproc=yes
13950 echo "$as_me: failed program was:" >&5
13951 sed 's
/^
/|
/' conftest.$ac_ext >&5
13953 ac_header_preproc=no
13956 rm -f conftest.err conftest.$ac_ext
13957 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13958 echo "${ECHO_T}$ac_header_preproc" >&6; }
13960 # So? What about this header?
13961 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13963 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13964 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13965 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result
" >&5
13966 echo "$as_me: WARNING
: tiffio.h
: proceeding with the compiler
's result" >&2;}
13967 ac_header_preproc=yes
13970 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13971 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13972 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13973 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13974 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13975 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13976 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13977 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13978 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result
" >&5
13979 echo "$as_me: WARNING
: tiffio.h
: proceeding with the preprocessor
's result" >&2;}
13980 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13981 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13985 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13986 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13987 if test "${ac_cv_header_tiffio_h+set}" = set; then
13988 echo $ECHO_N "(cached) $ECHO_C" >&6
13990 ac_cv_header_tiffio_h=$ac_header_preproc
13992 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13993 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13996 if test $ac_cv_header_tiffio_h = yes; then
13998 # At least one tiff package requires the jpeg library.
13999 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14000 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
14001 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
14002 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14003 echo $ECHO_N "(cached) $ECHO_C" >&6
14005 ac_check_lib_save_LIBS=$LIBS
14006 LIBS="-ltiff $tifflibs $LIBS"
14007 cat >conftest.$ac_ext <<_ACEOF
14010 cat confdefs.h >>conftest.$ac_ext
14011 cat >>conftest.$ac_ext <<_ACEOF
14012 /* end confdefs.h. */
14014 /* Override any GCC internal prototype to avoid an error.
14015 Use char because int might match the return type of a GCC
14016 builtin and then its argument prototype would still apply. */
14020 char TIFFGetVersion ();
14024 return TIFFGetVersion ();
14029 rm -f conftest.$ac_objext conftest$ac_exeext
14030 if { (ac_try="$ac_link"
14031 case "(($ac_try" in
14032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14033 *) ac_try_echo=$ac_try;;
14035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14036 (eval "$ac_link") 2>conftest.er1
14038 grep -v '^
*+' conftest.er1 >conftest.err
14040 cat conftest.err >&5
14041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042 (exit $ac_status); } && {
14043 test -z "$ac_c_werror_flag" ||
14044 test ! -s conftest.err
14045 } && test -s conftest$ac_exeext &&
14046 $as_test_x conftest$ac_exeext; then
14047 ac_cv_lib_tiff_TIFFGetVersion=yes
14049 echo "$as_me: failed program was:" >&5
14050 sed 's
/^
/|
/' conftest.$ac_ext >&5
14052 ac_cv_lib_tiff_TIFFGetVersion=no
14055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14056 conftest$ac_exeext conftest.$ac_ext
14057 LIBS=$ac_check_lib_save_LIBS
14059 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14060 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14061 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14070 if test "${HAVE_TIFF}" = "yes"; then
14072 cat >>confdefs.h <<\_ACEOF
14073 #define HAVE_TIFF 1
14079 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14081 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14082 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14083 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14084 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14085 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14086 echo $ECHO_N "(cached) $ECHO_C" >&6
14088 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14089 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14091 # Is the header compilable?
14092 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14093 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14094 cat >conftest.
$ac_ext <<_ACEOF
14097 cat confdefs.h
>>conftest.
$ac_ext
14098 cat >>conftest.
$ac_ext <<_ACEOF
14099 /* end confdefs.h. */
14100 $ac_includes_default
14101 #include <gif_lib.h>
14103 rm -f conftest.
$ac_objext
14104 if { (ac_try
="$ac_compile"
14105 case "(($ac_try" in
14106 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14107 *) ac_try_echo=$ac_try;;
14109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14110 (eval "$ac_compile") 2>conftest.er1
14112 grep -v '^ *+' conftest.er1 >conftest.err
14114 cat conftest.err >&5
14115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116 (exit $ac_status); } && {
14117 test -z "$ac_c_werror_flag" ||
14118 test ! -s conftest.err
14119 } && test -s conftest.$ac_objext; then
14120 ac_header_compiler=yes
14122 echo "$as_me: failed program was:" >&5
14123 sed 's/^/| /' conftest.$ac_ext >&5
14125 ac_header_compiler=no
14128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14129 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14130 echo "${ECHO_T}$ac_header_compiler" >&6; }
14132 # Is the header present?
14133 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14134 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14135 cat >conftest.$ac_ext <<_ACEOF
14138 cat confdefs.h >>conftest.$ac_ext
14139 cat >>conftest.$ac_ext <<_ACEOF
14140 /* end confdefs.h. */
14141 #include <gif_lib.h>
14143 if { (ac_try="$ac_cpp conftest.$ac_ext"
14144 case "(($ac_try" in
14145 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14146 *) ac_try_echo
=$ac_try;;
14148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14149 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14151 grep -v '^ *+' conftest.er1
>conftest.err
14153 cat conftest.err
>&5
14154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14155 (exit $ac_status); } >/dev
/null
&& {
14156 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14157 test ! -s conftest.err
14159 ac_header_preproc
=yes
14161 echo "$as_me: failed program was:" >&5
14162 sed 's/^/| /' conftest.
$ac_ext >&5
14164 ac_header_preproc
=no
14167 rm -f conftest.err conftest.
$ac_ext
14168 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14169 echo "${ECHO_T}$ac_header_preproc" >&6; }
14171 # So? What about this header?
14172 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14174 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14175 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14176 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14177 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14178 ac_header_preproc
=yes
14181 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14182 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14183 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14184 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14185 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14186 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14187 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14188 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14189 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14190 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14191 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14192 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14196 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14197 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14198 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14199 echo $ECHO_N "(cached) $ECHO_C" >&6
14201 ac_cv_header_gif_lib_h
=$ac_header_preproc
14203 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14204 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14207 if test $ac_cv_header_gif_lib_h = yes; then
14208 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14209 # Earlier versions can crash Emacs.
14210 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14211 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
14212 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14213 echo $ECHO_N "(cached) $ECHO_C" >&6
14215 ac_check_lib_save_LIBS
=$LIBS
14217 cat >conftest.
$ac_ext <<_ACEOF
14220 cat confdefs.h
>>conftest.
$ac_ext
14221 cat >>conftest.
$ac_ext <<_ACEOF
14222 /* end confdefs.h. */
14224 /* Override any GCC internal prototype to avoid an error.
14225 Use char because int might match the return type of a GCC
14226 builtin and then its argument prototype would still apply. */
14230 char EGifPutExtensionLast ();
14234 return EGifPutExtensionLast ();
14239 rm -f conftest.
$ac_objext conftest
$ac_exeext
14240 if { (ac_try
="$ac_link"
14241 case "(($ac_try" in
14242 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14243 *) ac_try_echo=$ac_try;;
14245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14246 (eval "$ac_link") 2>conftest.er1
14248 grep -v '^ *+' conftest.er1 >conftest.err
14250 cat conftest.err >&5
14251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14252 (exit $ac_status); } && {
14253 test -z "$ac_c_werror_flag" ||
14254 test ! -s conftest.err
14255 } && test -s conftest$ac_exeext &&
14256 $as_test_x conftest$ac_exeext; then
14257 ac_cv_lib_gif_EGifPutExtensionLast=yes
14259 echo "$as_me: failed program was:" >&5
14260 sed 's/^/| /' conftest.$ac_ext >&5
14262 ac_cv_lib_gif_EGifPutExtensionLast=no
14265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14266 conftest$ac_exeext conftest.$ac_ext
14267 LIBS=$ac_check_lib_save_LIBS
14269 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14270 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14271 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14281 if test "$HAVE_GIF" = yes; then
14282 ac_gif_lib_name="-lgif"
14285 # If gif_lib.h but no libgif, try libungif.
14286 if test x"$try_libungif" = xyes; then
14287 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14288 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14289 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14290 echo $ECHO_N "(cached) $ECHO_C" >&6
14292 ac_check_lib_save_LIBS=$LIBS
14293 LIBS="-lungif $LIBS"
14294 cat >conftest.$ac_ext <<_ACEOF
14297 cat confdefs.h >>conftest.$ac_ext
14298 cat >>conftest.$ac_ext <<_ACEOF
14299 /* end confdefs.h. */
14301 /* Override any GCC internal prototype to avoid an error.
14302 Use char because int might match the return type of a GCC
14303 builtin and then its argument prototype would still apply. */
14307 char EGifPutExtensionLast ();
14311 return EGifPutExtensionLast ();
14316 rm -f conftest.$ac_objext conftest$ac_exeext
14317 if { (ac_try="$ac_link"
14318 case "(($ac_try" in
14319 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14320 *) ac_try_echo
=$ac_try;;
14322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14323 (eval "$ac_link") 2>conftest.er1
14325 grep -v '^ *+' conftest.er1
>conftest.err
14327 cat conftest.err
>&5
14328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14329 (exit $ac_status); } && {
14330 test -z "$ac_c_werror_flag" ||
14331 test ! -s conftest.err
14332 } && test -s conftest
$ac_exeext &&
14333 $as_test_x conftest
$ac_exeext; then
14334 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
14336 echo "$as_me: failed program was:" >&5
14337 sed 's/^/| /' conftest.
$ac_ext >&5
14339 ac_cv_lib_ungif_EGifPutExtensionLast
=no
14342 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14343 conftest
$ac_exeext conftest.
$ac_ext
14344 LIBS
=$ac_check_lib_save_LIBS
14346 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14347 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14348 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14353 if test "$HAVE_GIF" = yes; then
14355 cat >>confdefs.h
<<\_ACEOF
14356 #define LIBGIF -lungif
14359 ac_gif_lib_name
="-lungif"
14363 if test "${HAVE_GIF}" = "yes"; then
14365 cat >>confdefs.h
<<\_ACEOF
14372 if test "${HAVE_X11}" = "yes"; then
14375 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14376 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
14377 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14378 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
14379 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14380 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
14381 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14382 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
14383 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14384 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
14386 if test "X${MISSING}" != X
; then
14387 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
14389 Maybe some development libraries/packages are missing?
14390 If you don't want to link with them give
14392 as options to configure" >&5
14393 echo "$as_me: error: The following required libraries were not found:
14395 Maybe some development libraries/packages are missing?
14396 If you don't want to link with them give
14398 as options to configure" >&2;}
14399 { (exit 1); exit 1; }; }
14403 ### Use -lgpm if available, unless `--with-gpm=no'.
14405 if test "${with_gpm}" != "no"; then
14406 if test "${ac_cv_header_gpm_h+set}" = set; then
14407 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14408 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14409 if test "${ac_cv_header_gpm_h+set}" = set; then
14410 echo $ECHO_N "(cached) $ECHO_C" >&6
14412 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14413 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14415 # Is the header compilable?
14416 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14417 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14418 cat >conftest.
$ac_ext <<_ACEOF
14421 cat confdefs.h
>>conftest.
$ac_ext
14422 cat >>conftest.
$ac_ext <<_ACEOF
14423 /* end confdefs.h. */
14424 $ac_includes_default
14427 rm -f conftest.
$ac_objext
14428 if { (ac_try
="$ac_compile"
14429 case "(($ac_try" in
14430 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14431 *) ac_try_echo=$ac_try;;
14433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14434 (eval "$ac_compile") 2>conftest.er1
14436 grep -v '^ *+' conftest.er1 >conftest.err
14438 cat conftest.err >&5
14439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440 (exit $ac_status); } && {
14441 test -z "$ac_c_werror_flag" ||
14442 test ! -s conftest.err
14443 } && test -s conftest.$ac_objext; then
14444 ac_header_compiler=yes
14446 echo "$as_me: failed program was:" >&5
14447 sed 's/^/| /' conftest.$ac_ext >&5
14449 ac_header_compiler=no
14452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14453 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14454 echo "${ECHO_T}$ac_header_compiler" >&6; }
14456 # Is the header present?
14457 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14458 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14459 cat >conftest.$ac_ext <<_ACEOF
14462 cat confdefs.h >>conftest.$ac_ext
14463 cat >>conftest.$ac_ext <<_ACEOF
14464 /* end confdefs.h. */
14467 if { (ac_try="$ac_cpp conftest.$ac_ext"
14468 case "(($ac_try" in
14469 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14470 *) ac_try_echo
=$ac_try;;
14472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14473 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14475 grep -v '^ *+' conftest.er1
>conftest.err
14477 cat conftest.err
>&5
14478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14479 (exit $ac_status); } >/dev
/null
&& {
14480 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14481 test ! -s conftest.err
14483 ac_header_preproc
=yes
14485 echo "$as_me: failed program was:" >&5
14486 sed 's/^/| /' conftest.
$ac_ext >&5
14488 ac_header_preproc
=no
14491 rm -f conftest.err conftest.
$ac_ext
14492 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14493 echo "${ECHO_T}$ac_header_preproc" >&6; }
14495 # So? What about this header?
14496 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14498 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14499 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14500 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14501 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14502 ac_header_preproc
=yes
14505 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14506 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14507 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14508 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14509 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14510 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14511 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14512 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14513 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14514 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14515 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14516 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14520 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14521 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14522 if test "${ac_cv_header_gpm_h+set}" = set; then
14523 echo $ECHO_N "(cached) $ECHO_C" >&6
14525 ac_cv_header_gpm_h
=$ac_header_preproc
14527 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14528 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14531 if test $ac_cv_header_gpm_h = yes; then
14532 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14533 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14534 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14535 echo $ECHO_N "(cached) $ECHO_C" >&6
14537 ac_check_lib_save_LIBS
=$LIBS
14539 cat >conftest.
$ac_ext <<_ACEOF
14542 cat confdefs.h
>>conftest.
$ac_ext
14543 cat >>conftest.
$ac_ext <<_ACEOF
14544 /* end confdefs.h. */
14546 /* Override any GCC internal prototype to avoid an error.
14547 Use char because int might match the return type of a GCC
14548 builtin and then its argument prototype would still apply. */
14556 return Gpm_Open ();
14561 rm -f conftest.
$ac_objext conftest
$ac_exeext
14562 if { (ac_try
="$ac_link"
14563 case "(($ac_try" in
14564 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14565 *) ac_try_echo=$ac_try;;
14567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14568 (eval "$ac_link") 2>conftest.er1
14570 grep -v '^ *+' conftest.er1 >conftest.err
14572 cat conftest.err >&5
14573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14574 (exit $ac_status); } && {
14575 test -z "$ac_c_werror_flag" ||
14576 test ! -s conftest.err
14577 } && test -s conftest$ac_exeext &&
14578 $as_test_x conftest$ac_exeext; then
14579 ac_cv_lib_gpm_Gpm_Open=yes
14581 echo "$as_me: failed program was:" >&5
14582 sed 's/^/| /' conftest.$ac_ext >&5
14584 ac_cv_lib_gpm_Gpm_Open=no
14587 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14588 conftest$ac_exeext conftest.$ac_ext
14589 LIBS=$ac_check_lib_save_LIBS
14591 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14592 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14593 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14602 if test "${HAVE_GPM}" = "yes"; then
14604 cat >>confdefs.h <<\_ACEOF
14610 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14611 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14612 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14613 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14614 echo $ECHO_N "(cached) $ECHO_C" >&6
14616 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14617 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14619 # Is the header compilable?
14620 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14621 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14622 cat >conftest.$ac_ext <<_ACEOF
14625 cat confdefs.h >>conftest.$ac_ext
14626 cat >>conftest.$ac_ext <<_ACEOF
14627 /* end confdefs.h. */
14628 $ac_includes_default
14629 #include <malloc/malloc.h>
14631 rm -f conftest.$ac_objext
14632 if { (ac_try="$ac_compile"
14633 case "(($ac_try" in
14634 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14635 *) ac_try_echo
=$ac_try;;
14637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14638 (eval "$ac_compile") 2>conftest.er1
14640 grep -v '^ *+' conftest.er1
>conftest.err
14642 cat conftest.err
>&5
14643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644 (exit $ac_status); } && {
14645 test -z "$ac_c_werror_flag" ||
14646 test ! -s conftest.err
14647 } && test -s conftest.
$ac_objext; then
14648 ac_header_compiler
=yes
14650 echo "$as_me: failed program was:" >&5
14651 sed 's/^/| /' conftest.
$ac_ext >&5
14653 ac_header_compiler
=no
14656 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14657 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14658 echo "${ECHO_T}$ac_header_compiler" >&6; }
14660 # Is the header present?
14661 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14662 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14663 cat >conftest.
$ac_ext <<_ACEOF
14666 cat confdefs.h
>>conftest.
$ac_ext
14667 cat >>conftest.
$ac_ext <<_ACEOF
14668 /* end confdefs.h. */
14669 #include <malloc/malloc.h>
14671 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14672 case "(($ac_try" in
14673 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14674 *) ac_try_echo=$ac_try;;
14676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14677 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14679 grep -v '^ *+' conftest.er1 >conftest.err
14681 cat conftest.err >&5
14682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14683 (exit $ac_status); } >/dev/null && {
14684 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14685 test ! -s conftest.err
14687 ac_header_preproc=yes
14689 echo "$as_me: failed program was:" >&5
14690 sed 's/^/| /' conftest.$ac_ext >&5
14692 ac_header_preproc=no
14695 rm -f conftest.err conftest.$ac_ext
14696 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14697 echo "${ECHO_T}$ac_header_preproc" >&6; }
14699 # So? What about this header?
14700 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14702 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14703 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14704 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14705 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14706 ac_header_preproc=yes
14709 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14710 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14711 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14712 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14713 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14714 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14715 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14716 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14717 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14718 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14719 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14720 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14724 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14725 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14726 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14727 echo $ECHO_N "(cached) $ECHO_C" >&6
14729 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14731 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14732 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14735 if test $ac_cv_header_malloc_malloc_h = yes; then
14737 cat >>confdefs.h <<\_ACEOF
14738 #define HAVE_MALLOC_MALLOC_H 1
14745 ### Use Mac OS X Carbon API to implement GUI.
14746 if test "${HAVE_CARBON}" = "yes"; then
14748 cat >>confdefs.h <<\_ACEOF
14749 #define HAVE_CARBON 1
14752 ## Specify the install directory
14754 if test "${carbon_appdir_x}" != ""; then
14755 case ${carbon_appdir_x} in
14756 y | ye | yes) carbon_appdir=/Applications ;;
14757 * ) carbon_appdir=${carbon_appdir_x} ;;
14760 # We also have mouse menus.
14764 ### Use session management (-lSM -lICE) if available
14766 if test "${HAVE_X11}" = "yes"; then
14767 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14768 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14769 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14770 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14771 echo $ECHO_N "(cached) $ECHO_C" >&6
14773 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14774 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14776 # Is the header compilable?
14777 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14778 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14779 cat >conftest.$ac_ext <<_ACEOF
14782 cat confdefs.h >>conftest.$ac_ext
14783 cat >>conftest.$ac_ext <<_ACEOF
14784 /* end confdefs.h. */
14785 $ac_includes_default
14786 #include <X11/SM/SMlib.h>
14788 rm -f conftest.$ac_objext
14789 if { (ac_try="$ac_compile"
14790 case "(($ac_try" in
14791 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14792 *) ac_try_echo
=$ac_try;;
14794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14795 (eval "$ac_compile") 2>conftest.er1
14797 grep -v '^ *+' conftest.er1
>conftest.err
14799 cat conftest.err
>&5
14800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14801 (exit $ac_status); } && {
14802 test -z "$ac_c_werror_flag" ||
14803 test ! -s conftest.err
14804 } && test -s conftest.
$ac_objext; then
14805 ac_header_compiler
=yes
14807 echo "$as_me: failed program was:" >&5
14808 sed 's/^/| /' conftest.
$ac_ext >&5
14810 ac_header_compiler
=no
14813 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14814 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14815 echo "${ECHO_T}$ac_header_compiler" >&6; }
14817 # Is the header present?
14818 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14819 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14820 cat >conftest.
$ac_ext <<_ACEOF
14823 cat confdefs.h
>>conftest.
$ac_ext
14824 cat >>conftest.
$ac_ext <<_ACEOF
14825 /* end confdefs.h. */
14826 #include <X11/SM/SMlib.h>
14828 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14829 case "(($ac_try" in
14830 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14831 *) ac_try_echo=$ac_try;;
14833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14834 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14836 grep -v '^ *+' conftest.er1 >conftest.err
14838 cat conftest.err >&5
14839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14840 (exit $ac_status); } >/dev/null && {
14841 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14842 test ! -s conftest.err
14844 ac_header_preproc=yes
14846 echo "$as_me: failed program was:" >&5
14847 sed 's/^/| /' conftest.$ac_ext >&5
14849 ac_header_preproc=no
14852 rm -f conftest.err conftest.$ac_ext
14853 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14854 echo "${ECHO_T}$ac_header_preproc" >&6; }
14856 # So? What about this header?
14857 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14859 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14860 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14861 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14862 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14863 ac_header_preproc=yes
14866 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14867 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14868 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14869 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14870 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14871 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14872 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14873 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14874 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14875 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14876 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14877 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14881 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14882 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14883 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14884 echo $ECHO_N "(cached) $ECHO_C" >&6
14886 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14888 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14889 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14892 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14893 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14894 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14895 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14896 echo $ECHO_N "(cached) $ECHO_C" >&6
14898 ac_check_lib_save_LIBS=$LIBS
14899 LIBS="-lSM -lICE $LIBS"
14900 cat >conftest.$ac_ext <<_ACEOF
14903 cat confdefs.h >>conftest.$ac_ext
14904 cat >>conftest.$ac_ext <<_ACEOF
14905 /* end confdefs.h. */
14907 /* Override any GCC internal prototype to avoid an error.
14908 Use char because int might match the return type of a GCC
14909 builtin and then its argument prototype would still apply. */
14913 char SmcOpenConnection ();
14917 return SmcOpenConnection ();
14922 rm -f conftest.$ac_objext conftest$ac_exeext
14923 if { (ac_try="$ac_link"
14924 case "(($ac_try" in
14925 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14926 *) ac_try_echo
=$ac_try;;
14928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14929 (eval "$ac_link") 2>conftest.er1
14931 grep -v '^ *+' conftest.er1
>conftest.err
14933 cat conftest.err
>&5
14934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14935 (exit $ac_status); } && {
14936 test -z "$ac_c_werror_flag" ||
14937 test ! -s conftest.err
14938 } && test -s conftest
$ac_exeext &&
14939 $as_test_x conftest
$ac_exeext; then
14940 ac_cv_lib_SM_SmcOpenConnection
=yes
14942 echo "$as_me: failed program was:" >&5
14943 sed 's/^/| /' conftest.
$ac_ext >&5
14945 ac_cv_lib_SM_SmcOpenConnection
=no
14948 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14949 conftest
$ac_exeext conftest.
$ac_ext
14950 LIBS
=$ac_check_lib_save_LIBS
14952 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14953 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14954 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14962 if test "${HAVE_X_SM}" = "yes"; then
14964 cat >>confdefs.h
<<\_ACEOF
14965 #define HAVE_X_SM 1
14970 *) LIBS
="-lSM -lICE $LIBS" ;;
14975 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14976 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14977 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14978 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14979 echo $ECHO_N "(cached) $ECHO_C" >&6
14981 cat >conftest.
$ac_ext <<_ACEOF
14984 cat confdefs.h
>>conftest.
$ac_ext
14985 cat >>conftest.
$ac_ext <<_ACEOF
14986 /* end confdefs.h. */
14996 rm -f conftest.
$ac_objext conftest
$ac_exeext
14997 if { (ac_try
="$ac_link"
14998 case "(($ac_try" in
14999 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15000 *) ac_try_echo=$ac_try;;
15002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15003 (eval "$ac_link") 2>conftest.er1
15005 grep -v '^ *+' conftest.er1 >conftest.err
15007 cat conftest.err >&5
15008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15009 (exit $ac_status); } && {
15010 test -z "$ac_c_werror_flag" ||
15011 test ! -s conftest.err
15012 } && test -s conftest$ac_exeext &&
15013 $as_test_x conftest$ac_exeext; then
15014 emacs_cv_netdb_declares_h_errno=yes
15016 echo "$as_me: failed program was:" >&5
15017 sed 's/^/| /' conftest.$ac_ext >&5
15019 emacs_cv_netdb_declares_h_errno=no
15022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15023 conftest$ac_exeext conftest.$ac_ext
15025 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15026 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
15027 if test $emacs_cv_netdb_declares_h_errno = yes; then
15029 cat >>confdefs.h <<\_ACEOF
15030 #define HAVE_H_ERRNO 1
15035 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15036 # for constant arguments. Useless!
15037 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
15038 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
15039 if test "${ac_cv_working_alloca_h+set}" = set; then
15040 echo $ECHO_N "(cached) $ECHO_C" >&6
15042 cat >conftest.$ac_ext <<_ACEOF
15045 cat confdefs.h >>conftest.$ac_ext
15046 cat >>conftest.$ac_ext <<_ACEOF
15047 /* end confdefs.h. */
15048 #include <alloca.h>
15052 char *p = (char *) alloca (2 * sizeof (int));
15058 rm -f conftest.$ac_objext conftest$ac_exeext
15059 if { (ac_try="$ac_link"
15060 case "(($ac_try" in
15061 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15062 *) ac_try_echo
=$ac_try;;
15064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15065 (eval "$ac_link") 2>conftest.er1
15067 grep -v '^ *+' conftest.er1
>conftest.err
15069 cat conftest.err
>&5
15070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15071 (exit $ac_status); } && {
15072 test -z "$ac_c_werror_flag" ||
15073 test ! -s conftest.err
15074 } && test -s conftest
$ac_exeext &&
15075 $as_test_x conftest
$ac_exeext; then
15076 ac_cv_working_alloca_h
=yes
15078 echo "$as_me: failed program was:" >&5
15079 sed 's/^/| /' conftest.
$ac_ext >&5
15081 ac_cv_working_alloca_h
=no
15084 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15085 conftest
$ac_exeext conftest.
$ac_ext
15087 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15088 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15089 if test $ac_cv_working_alloca_h = yes; then
15091 cat >>confdefs.h
<<\_ACEOF
15092 #define HAVE_ALLOCA_H 1
15097 { echo "$as_me:$LINENO: checking for alloca" >&5
15098 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15099 if test "${ac_cv_func_alloca_works+set}" = set; then
15100 echo $ECHO_N "(cached) $ECHO_C" >&6
15102 cat >conftest.
$ac_ext <<_ACEOF
15105 cat confdefs.h
>>conftest.
$ac_ext
15106 cat >>conftest.
$ac_ext <<_ACEOF
15107 /* end confdefs.h. */
15109 # define alloca __builtin_alloca
15112 # include <malloc.h>
15113 # define alloca _alloca
15115 # ifdef HAVE_ALLOCA_H
15116 # include <alloca.h>
15121 # ifndef alloca /* predefined by HP cc +Olibcalls */
15132 char *p = (char *) alloca (1);
15138 rm -f conftest.
$ac_objext conftest
$ac_exeext
15139 if { (ac_try
="$ac_link"
15140 case "(($ac_try" in
15141 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15142 *) ac_try_echo=$ac_try;;
15144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15145 (eval "$ac_link") 2>conftest.er1
15147 grep -v '^ *+' conftest.er1 >conftest.err
15149 cat conftest.err >&5
15150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15151 (exit $ac_status); } && {
15152 test -z "$ac_c_werror_flag" ||
15153 test ! -s conftest.err
15154 } && test -s conftest$ac_exeext &&
15155 $as_test_x conftest$ac_exeext; then
15156 ac_cv_func_alloca_works=yes
15158 echo "$as_me: failed program was:" >&5
15159 sed 's/^/| /' conftest.$ac_ext >&5
15161 ac_cv_func_alloca_works=no
15164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15165 conftest$ac_exeext conftest.$ac_ext
15167 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15168 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15170 if test $ac_cv_func_alloca_works = yes; then
15172 cat >>confdefs.h <<\_ACEOF
15173 #define HAVE_ALLOCA 1
15177 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15178 # that cause trouble. Some versions do not even contain alloca or
15179 # contain a buggy version. If you still want to use their alloca,
15180 # use ar to extract alloca.o from them instead of compiling alloca.c.
15182 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15184 cat >>confdefs.h <<\_ACEOF
15189 { echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
15190 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks...
$ECHO_C" >&6; }
15191 if test "${ac_cv_os_cray+set}" = set; then
15192 echo $ECHO_N "(cached
) $ECHO_C" >&6
15194 cat >conftest.$ac_ext <<_ACEOF
15197 cat confdefs.h >>conftest.$ac_ext
15198 cat >>conftest.$ac_ext <<_ACEOF
15199 /* end confdefs.h. */
15200 #if defined CRAY && ! defined CRAY2
15207 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
15208 $EGREP "webecray
" >/dev/null 2>&1; then
15216 { echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
15217 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15218 if test $ac_cv_os_cray = yes; then
15219 for ac_func in _getb67 GETB67 getb67; do
15220 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15221 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15222 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15223 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15224 echo $ECHO_N "(cached
) $ECHO_C" >&6
15226 cat >conftest.$ac_ext <<_ACEOF
15229 cat confdefs.h >>conftest.$ac_ext
15230 cat >>conftest.$ac_ext <<_ACEOF
15231 /* end confdefs.h. */
15232 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15233 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15234 #define $ac_func innocuous_$ac_func
15236 /* System header to define __stub macros and hopefully few prototypes,
15237 which can conflict with char $ac_func (); below.
15238 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15239 <limits.h> exists even on freestanding compilers. */
15242 # include <limits.h>
15244 # include <assert.h>
15249 /* Override any GCC internal prototype to avoid an error.
15250 Use char because int might match the return type of a GCC
15251 builtin and then its argument prototype would still apply. */
15256 /* The GNU C library defines this for functions which it implements
15257 to always fail with ENOSYS. Some functions are actually named
15258 something starting with __ and the normal name is an alias. */
15259 #if defined __stub_$ac_func || defined __stub___$ac_func
15266 return $ac_func ();
15271 rm -f conftest.$ac_objext conftest$ac_exeext
15272 if { (ac_try="$ac_link"
15273 case "(($ac_try" in
15274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15275 *) ac_try_echo=$ac_try;;
15277 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15278 (eval "$ac_link") 2>conftest.er1
15280 grep -v '^ *+' conftest.er1 >conftest.err
15282 cat conftest.err >&5
15283 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15284 (exit $ac_status); } && {
15285 test -z "$ac_c_werror_flag" ||
15286 test ! -s conftest.err
15287 } && test -s conftest$ac_exeext &&
15288 $as_test_x conftest$ac_exeext; then
15289 eval "$as_ac_var=yes"
15291 echo "$as_me: failed program was
:" >&5
15292 sed 's/^/| /' conftest.$ac_ext >&5
15294 eval "$as_ac_var=no
"
15297 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15298 conftest$ac_exeext conftest.$ac_ext
15300 ac_res=`eval echo '${'$as_ac_var'}'`
15301 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15302 echo "${ECHO_T}$ac_res" >&6; }
15303 if test `eval echo '${'$as_ac_var'}'` = yes; then
15305 cat >>confdefs.h <<_ACEOF
15306 #define CRAY_STACKSEG_END $ac_func
15315 { echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
15316 echo $ECHO_N "checking stack direction
for C alloca...
$ECHO_C" >&6; }
15317 if test "${ac_cv_c_stack_direction+set}" = set; then
15318 echo $ECHO_N "(cached
) $ECHO_C" >&6
15320 if test "$cross_compiling" = yes; then
15321 ac_cv_c_stack_direction=0
15323 cat >conftest.$ac_ext <<_ACEOF
15326 cat confdefs.h >>conftest.$ac_ext
15327 cat >>conftest.$ac_ext <<_ACEOF
15328 /* end confdefs.h. */
15329 $ac_includes_default
15331 find_stack_direction ()
15333 static char *addr = 0;
15338 return find_stack_direction ();
15341 return (&dummy > addr) ? 1 : -1;
15347 return find_stack_direction () < 0;
15350 rm -f conftest$ac_exeext
15351 if { (ac_try="$ac_link"
15352 case "(($ac_try" in
15353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15354 *) ac_try_echo=$ac_try;;
15356 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15357 (eval "$ac_link") 2>&5
15359 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15360 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15361 { (case "(($ac_try" in
15362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15363 *) ac_try_echo=$ac_try;;
15365 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15366 (eval "$ac_try") 2>&5
15368 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15369 (exit $ac_status); }; }; then
15370 ac_cv_c_stack_direction=1
15372 echo "$as_me: program exited with status
$ac_status" >&5
15373 echo "$as_me: failed program was
:" >&5
15374 sed 's/^/| /' conftest.$ac_ext >&5
15376 ( exit $ac_status )
15377 ac_cv_c_stack_direction=-1
15379 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15384 { echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
15385 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15387 cat >>confdefs.h <<_ACEOF
15388 #define STACK_DIRECTION $ac_cv_c_stack_direction
15395 if test x"$ac_cv_func_alloca_works" != xyes; then
15396 { { echo "$as_me:$LINENO: error
: a system implementation of alloca is required
" >&5
15397 echo "$as_me: error
: a system implementation of alloca is required
" >&2;}
15398 { (exit 1); exit 1; }; }
15401 # fmod, logb, and frexp are found in -lm on most systems.
15402 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15404 { echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
15405 echo $ECHO_N "checking
for sqrt
in -lm...
$ECHO_C" >&6; }
15406 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15407 echo $ECHO_N "(cached
) $ECHO_C" >&6
15409 ac_check_lib_save_LIBS=$LIBS
15411 cat >conftest.$ac_ext <<_ACEOF
15414 cat confdefs.h >>conftest.$ac_ext
15415 cat >>conftest.$ac_ext <<_ACEOF
15416 /* end confdefs.h. */
15418 /* Override any GCC internal prototype to avoid an error.
15419 Use char because int might match the return type of a GCC
15420 builtin and then its argument prototype would still apply. */
15433 rm -f conftest.$ac_objext conftest$ac_exeext
15434 if { (ac_try="$ac_link"
15435 case "(($ac_try" in
15436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15437 *) ac_try_echo=$ac_try;;
15439 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15440 (eval "$ac_link") 2>conftest.er1
15442 grep -v '^ *+' conftest.er1 >conftest.err
15444 cat conftest.err >&5
15445 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15446 (exit $ac_status); } && {
15447 test -z "$ac_c_werror_flag" ||
15448 test ! -s conftest.err
15449 } && test -s conftest$ac_exeext &&
15450 $as_test_x conftest$ac_exeext; then
15451 ac_cv_lib_m_sqrt=yes
15453 echo "$as_me: failed program was
:" >&5
15454 sed 's/^/| /' conftest.$ac_ext >&5
15456 ac_cv_lib_m_sqrt=no
15459 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15460 conftest$ac_exeext conftest.$ac_ext
15461 LIBS=$ac_check_lib_save_LIBS
15463 { echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
15464 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15465 if test $ac_cv_lib_m_sqrt = yes; then
15466 cat >>confdefs.h <<_ACEOF
15467 #define HAVE_LIBM 1
15475 # Check for mail-locking functions in a "mail" library. Probably this should
15476 # have the same check as for liblockfile below.
15478 { echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
15479 echo $ECHO_N "checking
for maillock
in -lmail...
$ECHO_C" >&6; }
15480 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15481 echo $ECHO_N "(cached
) $ECHO_C" >&6
15483 ac_check_lib_save_LIBS=$LIBS
15484 LIBS="-lmail $LIBS"
15485 cat >conftest.$ac_ext <<_ACEOF
15488 cat confdefs.h >>conftest.$ac_ext
15489 cat >>conftest.$ac_ext <<_ACEOF
15490 /* end confdefs.h. */
15492 /* Override any GCC internal prototype to avoid an error.
15493 Use char because int might match the return type of a GCC
15494 builtin and then its argument prototype would still apply. */
15502 return maillock ();
15507 rm -f conftest.$ac_objext conftest$ac_exeext
15508 if { (ac_try="$ac_link"
15509 case "(($ac_try" in
15510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15511 *) ac_try_echo=$ac_try;;
15513 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15514 (eval "$ac_link") 2>conftest.er1
15516 grep -v '^ *+' conftest.er1 >conftest.err
15518 cat conftest.err >&5
15519 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15520 (exit $ac_status); } && {
15521 test -z "$ac_c_werror_flag" ||
15522 test ! -s conftest.err
15523 } && test -s conftest$ac_exeext &&
15524 $as_test_x conftest$ac_exeext; then
15525 ac_cv_lib_mail_maillock=yes
15527 echo "$as_me: failed program was
:" >&5
15528 sed 's/^/| /' conftest.$ac_ext >&5
15530 ac_cv_lib_mail_maillock=no
15533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15534 conftest$ac_exeext conftest.$ac_ext
15535 LIBS=$ac_check_lib_save_LIBS
15537 { echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
15538 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15539 if test $ac_cv_lib_mail_maillock = yes; then
15540 cat >>confdefs.h <<_ACEOF
15541 #define HAVE_LIBMAIL 1
15544 LIBS="-lmail $LIBS"
15549 { echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
15550 echo $ECHO_N "checking
for maillock
in -llockfile...
$ECHO_C" >&6; }
15551 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15552 echo $ECHO_N "(cached
) $ECHO_C" >&6
15554 ac_check_lib_save_LIBS=$LIBS
15555 LIBS="-llockfile $LIBS"
15556 cat >conftest.$ac_ext <<_ACEOF
15559 cat confdefs.h >>conftest.$ac_ext
15560 cat >>conftest.$ac_ext <<_ACEOF
15561 /* end confdefs.h. */
15563 /* Override any GCC internal prototype to avoid an error.
15564 Use char because int might match the return type of a GCC
15565 builtin and then its argument prototype would still apply. */
15573 return maillock ();
15578 rm -f conftest.$ac_objext conftest$ac_exeext
15579 if { (ac_try="$ac_link"
15580 case "(($ac_try" in
15581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15582 *) ac_try_echo=$ac_try;;
15584 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15585 (eval "$ac_link") 2>conftest.er1
15587 grep -v '^ *+' conftest.er1 >conftest.err
15589 cat conftest.err >&5
15590 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15591 (exit $ac_status); } && {
15592 test -z "$ac_c_werror_flag" ||
15593 test ! -s conftest.err
15594 } && test -s conftest$ac_exeext &&
15595 $as_test_x conftest$ac_exeext; then
15596 ac_cv_lib_lockfile_maillock=yes
15598 echo "$as_me: failed program was
:" >&5
15599 sed 's/^/| /' conftest.$ac_ext >&5
15601 ac_cv_lib_lockfile_maillock=no
15604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15605 conftest$ac_exeext conftest.$ac_ext
15606 LIBS=$ac_check_lib_save_LIBS
15608 { echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
15609 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15610 if test $ac_cv_lib_lockfile_maillock = yes; then
15611 cat >>confdefs.h <<_ACEOF
15612 #define HAVE_LIBLOCKFILE 1
15615 LIBS="-llockfile $LIBS"
15619 # If we have the shared liblockfile, assume we must use it for mail
15620 # locking (e.g. Debian). If we couldn't link against liblockfile
15621 # (no liblockfile.a installed), ensure that we don't need to.
15622 if test "$ac_cv_lib_lockfile_maillock" = no; then
15623 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
15624 set dummy liblockfile.so; ac_word=$2
15625 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
15626 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
15627 if test "${ac_cv_prog_liblockfile+set}" = set; then
15628 echo $ECHO_N "(cached
) $ECHO_C" >&6
15630 if test -n "$liblockfile"; then
15631 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15634 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
15635 for as_dir in $as_dummy
15638 test -z "$as_dir" && as_dir=.
15639 for ac_exec_ext in '' $ac_executable_extensions; do
15640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15641 ac_cv_prog_liblockfile="yes"
15642 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15649 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
15652 liblockfile=$ac_cv_prog_liblockfile
15653 if test -n "$liblockfile"; then
15654 { echo "$as_me:$LINENO: result
: $liblockfile" >&5
15655 echo "${ECHO_T}$liblockfile" >&6; }
15657 { echo "$as_me:$LINENO: result
: no
" >&5
15658 echo "${ECHO_T}no
" >&6; }
15662 if test $ac_cv_prog_liblockfile = yes; then
15663 { { echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
15664 This probably means that movemail could lose mail.
15665 There may be a \`development' package to
install containing liblockfile.
" >&5
15666 echo "$as_me: error
: Shared liblockfile found but can
't link against it.
15667 This probably means that movemail could lose mail.
15668 There may be a \`development' package to
install containing liblockfile.
" >&2;}
15669 { (exit 1); exit 1; }; }
15674 for ac_func in touchlock
15676 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15677 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15678 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15679 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15680 echo $ECHO_N "(cached
) $ECHO_C" >&6
15682 cat >conftest.$ac_ext <<_ACEOF
15685 cat confdefs.h >>conftest.$ac_ext
15686 cat >>conftest.$ac_ext <<_ACEOF
15687 /* end confdefs.h. */
15688 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15689 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15690 #define $ac_func innocuous_$ac_func
15692 /* System header to define __stub macros and hopefully few prototypes,
15693 which can conflict with char $ac_func (); below.
15694 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15695 <limits.h> exists even on freestanding compilers. */
15698 # include <limits.h>
15700 # include <assert.h>
15705 /* Override any GCC internal prototype to avoid an error.
15706 Use char because int might match the return type of a GCC
15707 builtin and then its argument prototype would still apply. */
15712 /* The GNU C library defines this for functions which it implements
15713 to always fail with ENOSYS. Some functions are actually named
15714 something starting with __ and the normal name is an alias. */
15715 #if defined __stub_$ac_func || defined __stub___$ac_func
15722 return $ac_func ();
15727 rm -f conftest.$ac_objext conftest$ac_exeext
15728 if { (ac_try="$ac_link"
15729 case "(($ac_try" in
15730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15731 *) ac_try_echo=$ac_try;;
15733 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15734 (eval "$ac_link") 2>conftest.er1
15736 grep -v '^ *+' conftest.er1 >conftest.err
15738 cat conftest.err >&5
15739 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15740 (exit $ac_status); } && {
15741 test -z "$ac_c_werror_flag" ||
15742 test ! -s conftest.err
15743 } && test -s conftest$ac_exeext &&
15744 $as_test_x conftest$ac_exeext; then
15745 eval "$as_ac_var=yes"
15747 echo "$as_me: failed program was
:" >&5
15748 sed 's/^/| /' conftest.$ac_ext >&5
15750 eval "$as_ac_var=no
"
15753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15754 conftest$ac_exeext conftest.$ac_ext
15756 ac_res=`eval echo '${'$as_ac_var'}'`
15757 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15758 echo "${ECHO_T}$ac_res" >&6; }
15759 if test `eval echo '${'$as_ac_var'}'` = yes; then
15760 cat >>confdefs.h <<_ACEOF
15761 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15768 for ac_header in maillock.h
15770 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15771 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15772 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15773 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15774 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15775 echo $ECHO_N "(cached
) $ECHO_C" >&6
15777 ac_res=`eval echo '${'$as_ac_Header'}'`
15778 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15779 echo "${ECHO_T}$ac_res" >&6; }
15781 # Is the header compilable?
15782 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15783 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15784 cat >conftest.$ac_ext <<_ACEOF
15787 cat confdefs.h >>conftest.$ac_ext
15788 cat >>conftest.$ac_ext <<_ACEOF
15789 /* end confdefs.h. */
15790 $ac_includes_default
15791 #include <$ac_header>
15793 rm -f conftest.$ac_objext
15794 if { (ac_try="$ac_compile"
15795 case "(($ac_try" in
15796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15797 *) ac_try_echo=$ac_try;;
15799 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15800 (eval "$ac_compile") 2>conftest.er1
15802 grep -v '^ *+' conftest.er1 >conftest.err
15804 cat conftest.err >&5
15805 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15806 (exit $ac_status); } && {
15807 test -z "$ac_c_werror_flag" ||
15808 test ! -s conftest.err
15809 } && test -s conftest.$ac_objext; then
15810 ac_header_compiler=yes
15812 echo "$as_me: failed program was
:" >&5
15813 sed 's/^/| /' conftest.$ac_ext >&5
15815 ac_header_compiler=no
15818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15819 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15820 echo "${ECHO_T}$ac_header_compiler" >&6; }
15822 # Is the header present?
15823 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15824 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15825 cat >conftest.$ac_ext <<_ACEOF
15828 cat confdefs.h >>conftest.$ac_ext
15829 cat >>conftest.$ac_ext <<_ACEOF
15830 /* end confdefs.h. */
15831 #include <$ac_header>
15833 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15834 case "(($ac_try" in
15835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15836 *) ac_try_echo=$ac_try;;
15838 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15839 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15841 grep -v '^ *+' conftest.er1 >conftest.err
15843 cat conftest.err >&5
15844 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15845 (exit $ac_status); } >/dev/null && {
15846 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15847 test ! -s conftest.err
15849 ac_header_preproc=yes
15851 echo "$as_me: failed program was
:" >&5
15852 sed 's/^/| /' conftest.$ac_ext >&5
15854 ac_header_preproc=no
15857 rm -f conftest.err conftest.$ac_ext
15858 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15859 echo "${ECHO_T}$ac_header_preproc" >&6; }
15861 # So? What about this header?
15862 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15864 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15865 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15866 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15867 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15868 ac_header_preproc=yes
15871 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15872 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15873 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15874 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15875 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15876 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15877 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15878 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15879 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15880 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15881 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15882 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15886 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15887 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15888 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15889 echo $ECHO_N "(cached
) $ECHO_C" >&6
15891 eval "$as_ac_Header=\
$ac_header_preproc"
15893 ac_res=`eval echo '${'$as_ac_Header'}'`
15894 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15895 echo "${ECHO_T}$ac_res" >&6; }
15898 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15899 cat >>confdefs.h <<_ACEOF
15900 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15976 for ac_func in gethostname getdomainname dup2 \
15977 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15978 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
15979 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15980 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15981 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15982 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15983 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15984 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15986 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15987 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15988 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15989 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15990 echo $ECHO_N "(cached
) $ECHO_C" >&6
15992 cat >conftest.$ac_ext <<_ACEOF
15995 cat confdefs.h >>conftest.$ac_ext
15996 cat >>conftest.$ac_ext <<_ACEOF
15997 /* end confdefs.h. */
15998 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15999 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16000 #define $ac_func innocuous_$ac_func
16002 /* System header to define __stub macros and hopefully few prototypes,
16003 which can conflict with char $ac_func (); below.
16004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16005 <limits.h> exists even on freestanding compilers. */
16008 # include <limits.h>
16010 # include <assert.h>
16015 /* Override any GCC internal prototype to avoid an error.
16016 Use char because int might match the return type of a GCC
16017 builtin and then its argument prototype would still apply. */
16022 /* The GNU C library defines this for functions which it implements
16023 to always fail with ENOSYS. Some functions are actually named
16024 something starting with __ and the normal name is an alias. */
16025 #if defined __stub_$ac_func || defined __stub___$ac_func
16032 return $ac_func ();
16037 rm -f conftest.$ac_objext conftest$ac_exeext
16038 if { (ac_try="$ac_link"
16039 case "(($ac_try" in
16040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16041 *) ac_try_echo=$ac_try;;
16043 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16044 (eval "$ac_link") 2>conftest.er1
16046 grep -v '^ *+' conftest.er1 >conftest.err
16048 cat conftest.err >&5
16049 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16050 (exit $ac_status); } && {
16051 test -z "$ac_c_werror_flag" ||
16052 test ! -s conftest.err
16053 } && test -s conftest$ac_exeext &&
16054 $as_test_x conftest$ac_exeext; then
16055 eval "$as_ac_var=yes"
16057 echo "$as_me: failed program was
:" >&5
16058 sed 's/^/| /' conftest.$ac_ext >&5
16060 eval "$as_ac_var=no
"
16063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16064 conftest$ac_exeext conftest.$ac_ext
16066 ac_res=`eval echo '${'$as_ac_var'}'`
16067 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16068 echo "${ECHO_T}$ac_res" >&6; }
16069 if test `eval echo '${'$as_ac_var'}'` = yes; then
16070 cat >>confdefs.h <<_ACEOF
16071 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16079 for ac_header in sys/un.h
16081 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16082 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16083 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16084 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16085 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16086 echo $ECHO_N "(cached
) $ECHO_C" >&6
16088 ac_res=`eval echo '${'$as_ac_Header'}'`
16089 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16090 echo "${ECHO_T}$ac_res" >&6; }
16092 # Is the header compilable?
16093 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16094 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16095 cat >conftest.$ac_ext <<_ACEOF
16098 cat confdefs.h >>conftest.$ac_ext
16099 cat >>conftest.$ac_ext <<_ACEOF
16100 /* end confdefs.h. */
16101 $ac_includes_default
16102 #include <$ac_header>
16104 rm -f conftest.$ac_objext
16105 if { (ac_try="$ac_compile"
16106 case "(($ac_try" in
16107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16108 *) ac_try_echo=$ac_try;;
16110 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16111 (eval "$ac_compile") 2>conftest.er1
16113 grep -v '^ *+' conftest.er1 >conftest.err
16115 cat conftest.err >&5
16116 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16117 (exit $ac_status); } && {
16118 test -z "$ac_c_werror_flag" ||
16119 test ! -s conftest.err
16120 } && test -s conftest.$ac_objext; then
16121 ac_header_compiler=yes
16123 echo "$as_me: failed program was
:" >&5
16124 sed 's/^/| /' conftest.$ac_ext >&5
16126 ac_header_compiler=no
16129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16130 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16131 echo "${ECHO_T}$ac_header_compiler" >&6; }
16133 # Is the header present?
16134 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16135 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16136 cat >conftest.$ac_ext <<_ACEOF
16139 cat confdefs.h >>conftest.$ac_ext
16140 cat >>conftest.$ac_ext <<_ACEOF
16141 /* end confdefs.h. */
16142 #include <$ac_header>
16144 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16145 case "(($ac_try" in
16146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16147 *) ac_try_echo=$ac_try;;
16149 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16150 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16152 grep -v '^ *+' conftest.er1 >conftest.err
16154 cat conftest.err >&5
16155 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16156 (exit $ac_status); } >/dev/null && {
16157 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16158 test ! -s conftest.err
16160 ac_header_preproc=yes
16162 echo "$as_me: failed program was
:" >&5
16163 sed 's/^/| /' conftest.$ac_ext >&5
16165 ac_header_preproc=no
16168 rm -f conftest.err conftest.$ac_ext
16169 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16170 echo "${ECHO_T}$ac_header_preproc" >&6; }
16172 # So? What about this header?
16173 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16175 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16176 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16177 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16178 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16179 ac_header_preproc=yes
16182 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16183 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16184 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16185 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16186 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16187 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16188 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16189 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16190 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16191 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16192 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16193 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16197 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16198 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16199 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16200 echo $ECHO_N "(cached
) $ECHO_C" >&6
16202 eval "$as_ac_Header=\
$ac_header_preproc"
16204 ac_res=`eval echo '${'$as_ac_Header'}'`
16205 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16206 echo "${ECHO_T}$ac_res" >&6; }
16209 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16210 cat >>confdefs.h <<_ACEOF
16211 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16223 for ac_header in $ac_header_list
16225 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16226 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16227 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16228 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16229 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16230 echo $ECHO_N "(cached
) $ECHO_C" >&6
16232 ac_res=`eval echo '${'$as_ac_Header'}'`
16233 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16234 echo "${ECHO_T}$ac_res" >&6; }
16236 # Is the header compilable?
16237 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16238 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16239 cat >conftest.$ac_ext <<_ACEOF
16242 cat confdefs.h >>conftest.$ac_ext
16243 cat >>conftest.$ac_ext <<_ACEOF
16244 /* end confdefs.h. */
16245 $ac_includes_default
16246 #include <$ac_header>
16248 rm -f conftest.$ac_objext
16249 if { (ac_try="$ac_compile"
16250 case "(($ac_try" in
16251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16252 *) ac_try_echo=$ac_try;;
16254 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16255 (eval "$ac_compile") 2>conftest.er1
16257 grep -v '^ *+' conftest.er1 >conftest.err
16259 cat conftest.err >&5
16260 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16261 (exit $ac_status); } && {
16262 test -z "$ac_c_werror_flag" ||
16263 test ! -s conftest.err
16264 } && test -s conftest.$ac_objext; then
16265 ac_header_compiler=yes
16267 echo "$as_me: failed program was
:" >&5
16268 sed 's/^/| /' conftest.$ac_ext >&5
16270 ac_header_compiler=no
16273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16274 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16275 echo "${ECHO_T}$ac_header_compiler" >&6; }
16277 # Is the header present?
16278 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16279 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16280 cat >conftest.$ac_ext <<_ACEOF
16283 cat confdefs.h >>conftest.$ac_ext
16284 cat >>conftest.$ac_ext <<_ACEOF
16285 /* end confdefs.h. */
16286 #include <$ac_header>
16288 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16289 case "(($ac_try" in
16290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16291 *) ac_try_echo=$ac_try;;
16293 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16294 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16296 grep -v '^ *+' conftest.er1 >conftest.err
16298 cat conftest.err >&5
16299 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16300 (exit $ac_status); } >/dev/null && {
16301 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16302 test ! -s conftest.err
16304 ac_header_preproc=yes
16306 echo "$as_me: failed program was
:" >&5
16307 sed 's/^/| /' conftest.$ac_ext >&5
16309 ac_header_preproc=no
16312 rm -f conftest.err conftest.$ac_ext
16313 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16314 echo "${ECHO_T}$ac_header_preproc" >&6; }
16316 # So? What about this header?
16317 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16319 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16320 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16321 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16322 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16323 ac_header_preproc=yes
16326 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16327 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16328 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16329 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16330 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16331 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16332 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16333 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16334 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16335 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16336 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16337 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16341 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16342 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16343 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16344 echo $ECHO_N "(cached
) $ECHO_C" >&6
16346 eval "$as_ac_Header=\
$ac_header_preproc"
16348 ac_res=`eval echo '${'$as_ac_Header'}'`
16349 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16350 echo "${ECHO_T}$ac_res" >&6; }
16353 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16354 cat >>confdefs.h <<_ACEOF
16355 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16370 for ac_func in $ac_func_list
16372 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16373 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16374 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16375 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16376 echo $ECHO_N "(cached
) $ECHO_C" >&6
16378 cat >conftest.$ac_ext <<_ACEOF
16381 cat confdefs.h >>conftest.$ac_ext
16382 cat >>conftest.$ac_ext <<_ACEOF
16383 /* end confdefs.h. */
16384 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16385 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16386 #define $ac_func innocuous_$ac_func
16388 /* System header to define __stub macros and hopefully few prototypes,
16389 which can conflict with char $ac_func (); below.
16390 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16391 <limits.h> exists even on freestanding compilers. */
16394 # include <limits.h>
16396 # include <assert.h>
16401 /* Override any GCC internal prototype to avoid an error.
16402 Use char because int might match the return type of a GCC
16403 builtin and then its argument prototype would still apply. */
16408 /* The GNU C library defines this for functions which it implements
16409 to always fail with ENOSYS. Some functions are actually named
16410 something starting with __ and the normal name is an alias. */
16411 #if defined __stub_$ac_func || defined __stub___$ac_func
16418 return $ac_func ();
16423 rm -f conftest.$ac_objext conftest$ac_exeext
16424 if { (ac_try="$ac_link"
16425 case "(($ac_try" in
16426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16427 *) ac_try_echo=$ac_try;;
16429 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16430 (eval "$ac_link") 2>conftest.er1
16432 grep -v '^ *+' conftest.er1 >conftest.err
16434 cat conftest.err >&5
16435 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16436 (exit $ac_status); } && {
16437 test -z "$ac_c_werror_flag" ||
16438 test ! -s conftest.err
16439 } && test -s conftest$ac_exeext &&
16440 $as_test_x conftest$ac_exeext; then
16441 eval "$as_ac_var=yes"
16443 echo "$as_me: failed program was
:" >&5
16444 sed 's/^/| /' conftest.$ac_ext >&5
16446 eval "$as_ac_var=no
"
16449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16450 conftest$ac_exeext conftest.$ac_ext
16452 ac_res=`eval echo '${'$as_ac_var'}'`
16453 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16454 echo "${ECHO_T}$ac_res" >&6; }
16455 if test `eval echo '${'$as_ac_var'}'` = yes; then
16456 cat >>confdefs.h <<_ACEOF
16457 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16479 { echo "$as_me:$LINENO: checking
for working mktime
" >&5
16480 echo $ECHO_N "checking
for working mktime...
$ECHO_C" >&6; }
16481 if test "${ac_cv_func_working_mktime+set}" = set; then
16482 echo $ECHO_N "(cached
) $ECHO_C" >&6
16484 if test "$cross_compiling" = yes; then
16485 ac_cv_func_working_mktime=no
16487 cat >conftest.$ac_ext <<_ACEOF
16490 cat confdefs.h >>conftest.$ac_ext
16491 cat >>conftest.$ac_ext <<_ACEOF
16492 /* end confdefs.h. */
16493 /* Test program from Paul Eggert and Tony Leneis. */
16494 #ifdef TIME_WITH_SYS_TIME
16495 # include <sys/time.h>
16498 # ifdef HAVE_SYS_TIME_H
16499 # include <sys/time.h>
16505 #include <stdlib.h>
16507 #ifdef HAVE_UNISTD_H
16508 # include <unistd.h>
16512 # define alarm(X) /* empty */
16515 /* Work around redefinition to rpl_putenv by other config tests. */
16518 static time_t time_t_max;
16519 static time_t time_t_min;
16521 /* Values we'll use to set the TZ environment variable. */
16522 static char *tz_strings[] = {
16523 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
16524 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
16526 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16528 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16529 Based on a problem report from Andreas Jaeger. */
16531 spring_forward_gap ()
16533 /* glibc (up to about 1998-10-07) failed this test. */
16536 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16537 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16538 on systems that don't support the Olson extension, or don't have the
16539 full zoneinfo tables installed. */
16540 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16549 return mktime (&tm) != (time_t) -1;
16557 return ! (lt = localtime (&now)) || mktime (lt) == now;
16564 return (mktime_test1 (now)
16565 && mktime_test1 ((time_t) (time_t_max - now))
16566 && mktime_test1 ((time_t) (time_t_min + now)));
16572 /* Based on code from Ariel Faigon. */
16582 return tm.tm_mon == 2 && tm.tm_mday == 31;
16591 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16592 now = mktime (&tm);
16593 if (now != (time_t) -1)
16595 struct tm *lt = localtime (&now);
16597 && lt->tm_year == tm.tm_year
16598 && lt->tm_mon == tm.tm_mon
16599 && lt->tm_mday == tm.tm_mday
16600 && lt->tm_hour == tm.tm_hour
16601 && lt->tm_min == tm.tm_min
16602 && lt->tm_sec == tm.tm_sec
16603 && lt->tm_yday == tm.tm_yday
16604 && lt->tm_wday == tm.tm_wday
16605 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16606 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16615 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16616 ignoring leap seconds. */
16617 unsigned long int answer = 2527315200UL;
16621 tm.tm_year = 2050 - 1900;
16624 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16627 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16628 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16629 on systems that don't support the Olson extension, or don't have the
16630 full zoneinfo tables installed. */
16631 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16635 /* Check that the result is either a failure, or close enough
16636 to the correct answer that we can assume the discrepancy is
16637 due to leap seconds. */
16638 return (t == (time_t) -1
16639 || (0 < t && answer - 120 <= t && t <= answer + 120));
16648 /* This test makes some buggy mktime implementations loop.
16649 Give up after 60 seconds; a mktime slower than that
16650 isn't worth using anyway. */
16653 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16656 if ((time_t) -1 < 0)
16657 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16659 delta = time_t_max / 997; /* a suitable prime number */
16660 for (i = 0; i < N_STRINGS; i++)
16663 putenv (tz_strings[i]);
16665 for (t = 0; t <= time_t_max - delta; t += delta)
16666 if (! mktime_test (t))
16668 if (! (mktime_test ((time_t) 1)
16669 && mktime_test ((time_t) (60 * 60))
16670 && mktime_test ((time_t) (60 * 60 * 24))))
16673 for (j = 1; 0 < j; j *= 2)
16674 if (! bigtime_test (j))
16676 if (! bigtime_test (j - 1))
16679 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16682 rm -f conftest$ac_exeext
16683 if { (ac_try="$ac_link"
16684 case "(($ac_try" in
16685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16686 *) ac_try_echo=$ac_try;;
16688 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16689 (eval "$ac_link") 2>&5
16691 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16692 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16693 { (case "(($ac_try" in
16694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16695 *) ac_try_echo=$ac_try;;
16697 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16698 (eval "$ac_try") 2>&5
16700 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16701 (exit $ac_status); }; }; then
16702 ac_cv_func_working_mktime=yes
16704 echo "$as_me: program exited with status
$ac_status" >&5
16705 echo "$as_me: failed program was
:" >&5
16706 sed 's/^/| /' conftest.$ac_ext >&5
16708 ( exit $ac_status )
16709 ac_cv_func_working_mktime=no
16711 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16716 { echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
16717 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16718 if test $ac_cv_func_working_mktime = no; then
16719 case " $LIBOBJS " in
16720 *" mktime.
$ac_objext "* ) ;;
16721 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
16727 if test "$ac_cv_func_working_mktime" = no; then
16729 cat >>confdefs.h <<\_ACEOF
16730 #define BROKEN_MKTIME 1
16735 ac_have_func=no # yes means we've found a way to get the load average.
16737 # Make sure getloadavg.c is where it belongs, at configure-time.
16738 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
16739 { { echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
16740 echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
16741 { (exit 1); exit 1; }; }
16745 # Check for getloadavg, but be sure not to touch the cache variable.
16746 ({ echo "$as_me:$LINENO: checking
for getloadavg
" >&5
16747 echo $ECHO_N "checking
for getloadavg...
$ECHO_C" >&6; }
16748 if test "${ac_cv_func_getloadavg+set}" = set; then
16749 echo $ECHO_N "(cached
) $ECHO_C" >&6
16751 cat >conftest.$ac_ext <<_ACEOF
16754 cat confdefs.h >>conftest.$ac_ext
16755 cat >>conftest.$ac_ext <<_ACEOF
16756 /* end confdefs.h. */
16757 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16758 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16759 #define getloadavg innocuous_getloadavg
16761 /* System header to define __stub macros and hopefully few prototypes,
16762 which can conflict with char getloadavg (); below.
16763 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16764 <limits.h> exists even on freestanding compilers. */
16767 # include <limits.h>
16769 # include <assert.h>
16774 /* Override any GCC internal prototype to avoid an error.
16775 Use char because int might match the return type of a GCC
16776 builtin and then its argument prototype would still apply. */
16780 char getloadavg ();
16781 /* The GNU C library defines this for functions which it implements
16782 to always fail with ENOSYS. Some functions are actually named
16783 something starting with __ and the normal name is an alias. */
16784 #if defined __stub_getloadavg || defined __stub___getloadavg
16791 return getloadavg ();
16796 rm -f conftest.$ac_objext conftest$ac_exeext
16797 if { (ac_try="$ac_link"
16798 case "(($ac_try" in
16799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16800 *) ac_try_echo=$ac_try;;
16802 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16803 (eval "$ac_link") 2>conftest.er1
16805 grep -v '^ *+' conftest.er1 >conftest.err
16807 cat conftest.err >&5
16808 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16809 (exit $ac_status); } && {
16810 test -z "$ac_c_werror_flag" ||
16811 test ! -s conftest.err
16812 } && test -s conftest$ac_exeext &&
16813 $as_test_x conftest$ac_exeext; then
16814 ac_cv_func_getloadavg=yes
16816 echo "$as_me: failed program was
:" >&5
16817 sed 's/^/| /' conftest.$ac_ext >&5
16819 ac_cv_func_getloadavg=no
16822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16823 conftest$ac_exeext conftest.$ac_ext
16825 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
16826 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16827 if test $ac_cv_func_getloadavg = yes; then
16832 ) && ac_have_func=yes
16834 # On HPUX9, an unprivileged user can get load averages through this function.
16836 for ac_func in pstat_getdynamic
16838 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16839 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16840 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16841 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16842 echo $ECHO_N "(cached
) $ECHO_C" >&6
16844 cat >conftest.$ac_ext <<_ACEOF
16847 cat confdefs.h >>conftest.$ac_ext
16848 cat >>conftest.$ac_ext <<_ACEOF
16849 /* end confdefs.h. */
16850 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16851 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16852 #define $ac_func innocuous_$ac_func
16854 /* System header to define __stub macros and hopefully few prototypes,
16855 which can conflict with char $ac_func (); below.
16856 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16857 <limits.h> exists even on freestanding compilers. */
16860 # include <limits.h>
16862 # include <assert.h>
16867 /* Override any GCC internal prototype to avoid an error.
16868 Use char because int might match the return type of a GCC
16869 builtin and then its argument prototype would still apply. */
16874 /* The GNU C library defines this for functions which it implements
16875 to always fail with ENOSYS. Some functions are actually named
16876 something starting with __ and the normal name is an alias. */
16877 #if defined __stub_$ac_func || defined __stub___$ac_func
16884 return $ac_func ();
16889 rm -f conftest.$ac_objext conftest$ac_exeext
16890 if { (ac_try="$ac_link"
16891 case "(($ac_try" in
16892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16893 *) ac_try_echo=$ac_try;;
16895 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16896 (eval "$ac_link") 2>conftest.er1
16898 grep -v '^ *+' conftest.er1 >conftest.err
16900 cat conftest.err >&5
16901 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16902 (exit $ac_status); } && {
16903 test -z "$ac_c_werror_flag" ||
16904 test ! -s conftest.err
16905 } && test -s conftest$ac_exeext &&
16906 $as_test_x conftest$ac_exeext; then
16907 eval "$as_ac_var=yes"
16909 echo "$as_me: failed program was
:" >&5
16910 sed 's/^/| /' conftest.$ac_ext >&5
16912 eval "$as_ac_var=no
"
16915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16916 conftest$ac_exeext conftest.$ac_ext
16918 ac_res=`eval echo '${'$as_ac_var'}'`
16919 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16920 echo "${ECHO_T}$ac_res" >&6; }
16921 if test `eval echo '${'$as_ac_var'}'` = yes; then
16922 cat >>confdefs.h <<_ACEOF
16923 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16930 # Solaris has libkstat which does not require root.
16932 { echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
16933 echo $ECHO_N "checking
for kstat_open
in -lkstat...
$ECHO_C" >&6; }
16934 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16935 echo $ECHO_N "(cached
) $ECHO_C" >&6
16937 ac_check_lib_save_LIBS=$LIBS
16938 LIBS="-lkstat $LIBS"
16939 cat >conftest.$ac_ext <<_ACEOF
16942 cat confdefs.h >>conftest.$ac_ext
16943 cat >>conftest.$ac_ext <<_ACEOF
16944 /* end confdefs.h. */
16946 /* Override any GCC internal prototype to avoid an error.
16947 Use char because int might match the return type of a GCC
16948 builtin and then its argument prototype would still apply. */
16952 char kstat_open ();
16956 return kstat_open ();
16961 rm -f conftest.$ac_objext conftest$ac_exeext
16962 if { (ac_try="$ac_link"
16963 case "(($ac_try" in
16964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16965 *) ac_try_echo=$ac_try;;
16967 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16968 (eval "$ac_link") 2>conftest.er1
16970 grep -v '^ *+' conftest.er1 >conftest.err
16972 cat conftest.err >&5
16973 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16974 (exit $ac_status); } && {
16975 test -z "$ac_c_werror_flag" ||
16976 test ! -s conftest.err
16977 } && test -s conftest$ac_exeext &&
16978 $as_test_x conftest$ac_exeext; then
16979 ac_cv_lib_kstat_kstat_open=yes
16981 echo "$as_me: failed program was
:" >&5
16982 sed 's/^/| /' conftest.$ac_ext >&5
16984 ac_cv_lib_kstat_kstat_open=no
16987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16988 conftest$ac_exeext conftest.$ac_ext
16989 LIBS=$ac_check_lib_save_LIBS
16991 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
16992 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16993 if test $ac_cv_lib_kstat_kstat_open = yes; then
16994 cat >>confdefs.h <<_ACEOF
16995 #define HAVE_LIBKSTAT 1
16998 LIBS="-lkstat $LIBS"
17002 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
17004 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17005 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17006 # to get the right answer into the cache.
17007 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17008 if test $ac_have_func = no; then
17009 { echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
17010 echo $ECHO_N "checking
for elf_begin
in -lelf...
$ECHO_C" >&6; }
17011 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17012 echo $ECHO_N "(cached
) $ECHO_C" >&6
17014 ac_check_lib_save_LIBS=$LIBS
17016 cat >conftest.$ac_ext <<_ACEOF
17019 cat confdefs.h >>conftest.$ac_ext
17020 cat >>conftest.$ac_ext <<_ACEOF
17021 /* end confdefs.h. */
17023 /* Override any GCC internal prototype to avoid an error.
17024 Use char because int might match the return type of a GCC
17025 builtin and then its argument prototype would still apply. */
17033 return elf_begin ();
17038 rm -f conftest.$ac_objext conftest$ac_exeext
17039 if { (ac_try="$ac_link"
17040 case "(($ac_try" in
17041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17042 *) ac_try_echo=$ac_try;;
17044 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17045 (eval "$ac_link") 2>conftest.er1
17047 grep -v '^ *+' conftest.er1 >conftest.err
17049 cat conftest.err >&5
17050 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17051 (exit $ac_status); } && {
17052 test -z "$ac_c_werror_flag" ||
17053 test ! -s conftest.err
17054 } && test -s conftest$ac_exeext &&
17055 $as_test_x conftest$ac_exeext; then
17056 ac_cv_lib_elf_elf_begin=yes
17058 echo "$as_me: failed program was
:" >&5
17059 sed 's/^/| /' conftest.$ac_ext >&5
17061 ac_cv_lib_elf_elf_begin=no
17064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17065 conftest$ac_exeext conftest.$ac_ext
17066 LIBS=$ac_check_lib_save_LIBS
17068 { echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
17069 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17070 if test $ac_cv_lib_elf_elf_begin = yes; then
17075 if test $ac_have_func = no; then
17076 { echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
17077 echo $ECHO_N "checking
for kvm_open
in -lkvm...
$ECHO_C" >&6; }
17078 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17079 echo $ECHO_N "(cached
) $ECHO_C" >&6
17081 ac_check_lib_save_LIBS=$LIBS
17083 cat >conftest.$ac_ext <<_ACEOF
17086 cat confdefs.h >>conftest.$ac_ext
17087 cat >>conftest.$ac_ext <<_ACEOF
17088 /* end confdefs.h. */
17090 /* Override any GCC internal prototype to avoid an error.
17091 Use char because int might match the return type of a GCC
17092 builtin and then its argument prototype would still apply. */
17100 return kvm_open ();
17105 rm -f conftest.$ac_objext conftest$ac_exeext
17106 if { (ac_try="$ac_link"
17107 case "(($ac_try" in
17108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17109 *) ac_try_echo=$ac_try;;
17111 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17112 (eval "$ac_link") 2>conftest.er1
17114 grep -v '^ *+' conftest.er1 >conftest.err
17116 cat conftest.err >&5
17117 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17118 (exit $ac_status); } && {
17119 test -z "$ac_c_werror_flag" ||
17120 test ! -s conftest.err
17121 } && test -s conftest$ac_exeext &&
17122 $as_test_x conftest$ac_exeext; then
17123 ac_cv_lib_kvm_kvm_open=yes
17125 echo "$as_me: failed program was
:" >&5
17126 sed 's/^/| /' conftest.$ac_ext >&5
17128 ac_cv_lib_kvm_kvm_open=no
17131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17132 conftest$ac_exeext conftest.$ac_ext
17133 LIBS=$ac_check_lib_save_LIBS
17135 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
17136 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17137 if test $ac_cv_lib_kvm_kvm_open = yes; then
17141 # Check for the 4.4BSD definition of getloadavg.
17142 { echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
17143 echo $ECHO_N "checking
for getloadavg
in -lutil...
$ECHO_C" >&6; }
17144 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17145 echo $ECHO_N "(cached
) $ECHO_C" >&6
17147 ac_check_lib_save_LIBS=$LIBS
17148 LIBS="-lutil $LIBS"
17149 cat >conftest.$ac_ext <<_ACEOF
17152 cat confdefs.h >>conftest.$ac_ext
17153 cat >>conftest.$ac_ext <<_ACEOF
17154 /* end confdefs.h. */
17156 /* Override any GCC internal prototype to avoid an error.
17157 Use char because int might match the return type of a GCC
17158 builtin and then its argument prototype would still apply. */
17162 char getloadavg ();
17166 return getloadavg ();
17171 rm -f conftest.$ac_objext conftest$ac_exeext
17172 if { (ac_try="$ac_link"
17173 case "(($ac_try" in
17174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17175 *) ac_try_echo=$ac_try;;
17177 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17178 (eval "$ac_link") 2>conftest.er1
17180 grep -v '^ *+' conftest.er1 >conftest.err
17182 cat conftest.err >&5
17183 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17184 (exit $ac_status); } && {
17185 test -z "$ac_c_werror_flag" ||
17186 test ! -s conftest.err
17187 } && test -s conftest$ac_exeext &&
17188 $as_test_x conftest$ac_exeext; then
17189 ac_cv_lib_util_getloadavg=yes
17191 echo "$as_me: failed program was
:" >&5
17192 sed 's/^/| /' conftest.$ac_ext >&5
17194 ac_cv_lib_util_getloadavg=no
17197 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17198 conftest$ac_exeext conftest.$ac_ext
17199 LIBS=$ac_check_lib_save_LIBS
17201 { echo "$as_me:$LINENO: result
: $ac_cv_lib_util_getloadavg" >&5
17202 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17203 if test $ac_cv_lib_util_getloadavg = yes; then
17204 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17209 if test $ac_have_func = no; then
17210 # There is a commonly available library for RS/6000 AIX.
17211 # Since it is not a standard part of AIX, it might be installed locally.
17212 ac_getloadavg_LIBS=$LIBS
17213 LIBS="-L/usr
/local
/lib
$LIBS"
17214 { echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
17215 echo $ECHO_N "checking
for getloadavg
in -lgetloadavg...
$ECHO_C" >&6; }
17216 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17217 echo $ECHO_N "(cached
) $ECHO_C" >&6
17219 ac_check_lib_save_LIBS=$LIBS
17220 LIBS="-lgetloadavg $LIBS"
17221 cat >conftest.$ac_ext <<_ACEOF
17224 cat confdefs.h >>conftest.$ac_ext
17225 cat >>conftest.$ac_ext <<_ACEOF
17226 /* end confdefs.h. */
17228 /* Override any GCC internal prototype to avoid an error.
17229 Use char because int might match the return type of a GCC
17230 builtin and then its argument prototype would still apply. */
17234 char getloadavg ();
17238 return getloadavg ();
17243 rm -f conftest.$ac_objext conftest$ac_exeext
17244 if { (ac_try="$ac_link"
17245 case "(($ac_try" in
17246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17247 *) ac_try_echo=$ac_try;;
17249 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17250 (eval "$ac_link") 2>conftest.er1
17252 grep -v '^ *+' conftest.er1 >conftest.err
17254 cat conftest.err >&5
17255 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17256 (exit $ac_status); } && {
17257 test -z "$ac_c_werror_flag" ||
17258 test ! -s conftest.err
17259 } && test -s conftest$ac_exeext &&
17260 $as_test_x conftest$ac_exeext; then
17261 ac_cv_lib_getloadavg_getloadavg=yes
17263 echo "$as_me: failed program was
:" >&5
17264 sed 's/^/| /' conftest.$ac_ext >&5
17266 ac_cv_lib_getloadavg_getloadavg=no
17269 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17270 conftest$ac_exeext conftest.$ac_ext
17271 LIBS=$ac_check_lib_save_LIBS
17273 { echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
17274 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17275 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17276 LIBS="-lgetloadavg $LIBS"
17278 LIBS=$ac_getloadavg_LIBS
17283 # Make sure it is really in the library, if we think we found it,
17284 # otherwise set up the replacement function.
17286 for ac_func in getloadavg
17288 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17289 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17290 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17291 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17292 echo $ECHO_N "(cached
) $ECHO_C" >&6
17294 cat >conftest.$ac_ext <<_ACEOF
17297 cat confdefs.h >>conftest.$ac_ext
17298 cat >>conftest.$ac_ext <<_ACEOF
17299 /* end confdefs.h. */
17300 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17301 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17302 #define $ac_func innocuous_$ac_func
17304 /* System header to define __stub macros and hopefully few prototypes,
17305 which can conflict with char $ac_func (); below.
17306 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17307 <limits.h> exists even on freestanding compilers. */
17310 # include <limits.h>
17312 # include <assert.h>
17317 /* Override any GCC internal prototype to avoid an error.
17318 Use char because int might match the return type of a GCC
17319 builtin and then its argument prototype would still apply. */
17324 /* The GNU C library defines this for functions which it implements
17325 to always fail with ENOSYS. Some functions are actually named
17326 something starting with __ and the normal name is an alias. */
17327 #if defined __stub_$ac_func || defined __stub___$ac_func
17334 return $ac_func ();
17339 rm -f conftest.$ac_objext conftest$ac_exeext
17340 if { (ac_try="$ac_link"
17341 case "(($ac_try" in
17342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17343 *) ac_try_echo=$ac_try;;
17345 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17346 (eval "$ac_link") 2>conftest.er1
17348 grep -v '^ *+' conftest.er1 >conftest.err
17350 cat conftest.err >&5
17351 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17352 (exit $ac_status); } && {
17353 test -z "$ac_c_werror_flag" ||
17354 test ! -s conftest.err
17355 } && test -s conftest$ac_exeext &&
17356 $as_test_x conftest$ac_exeext; then
17357 eval "$as_ac_var=yes"
17359 echo "$as_me: failed program was
:" >&5
17360 sed 's/^/| /' conftest.$ac_ext >&5
17362 eval "$as_ac_var=no
"
17365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17366 conftest$ac_exeext conftest.$ac_ext
17368 ac_res=`eval echo '${'$as_ac_var'}'`
17369 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17370 echo "${ECHO_T}$ac_res" >&6; }
17371 if test `eval echo '${'$as_ac_var'}'` = yes; then
17372 cat >>confdefs.h <<_ACEOF
17373 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17377 case " $LIBOBJS " in
17378 *" getloadavg.
$ac_objext "* ) ;;
17379 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
17384 cat >>confdefs.h <<\_ACEOF
17385 #define C_GETLOADAVG 1
17388 # Figure out what our getloadavg.c needs.
17390 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17391 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17392 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17393 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17394 echo $ECHO_N "(cached
) $ECHO_C" >&6
17396 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17397 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17399 # Is the header compilable?
17400 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
17401 echo $ECHO_N "checking sys
/dg_sys_info.h usability...
$ECHO_C" >&6; }
17402 cat >conftest.$ac_ext <<_ACEOF
17405 cat confdefs.h >>conftest.$ac_ext
17406 cat >>conftest.$ac_ext <<_ACEOF
17407 /* end confdefs.h. */
17408 $ac_includes_default
17409 #include <sys/dg_sys_info.h>
17411 rm -f conftest.$ac_objext
17412 if { (ac_try="$ac_compile"
17413 case "(($ac_try" in
17414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17415 *) ac_try_echo=$ac_try;;
17417 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17418 (eval "$ac_compile") 2>conftest.er1
17420 grep -v '^ *+' conftest.er1 >conftest.err
17422 cat conftest.err >&5
17423 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17424 (exit $ac_status); } && {
17425 test -z "$ac_c_werror_flag" ||
17426 test ! -s conftest.err
17427 } && test -s conftest.$ac_objext; then
17428 ac_header_compiler=yes
17430 echo "$as_me: failed program was
:" >&5
17431 sed 's/^/| /' conftest.$ac_ext >&5
17433 ac_header_compiler=no
17436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17437 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17438 echo "${ECHO_T}$ac_header_compiler" >&6; }
17440 # Is the header present?
17441 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
17442 echo $ECHO_N "checking sys
/dg_sys_info.h presence...
$ECHO_C" >&6; }
17443 cat >conftest.$ac_ext <<_ACEOF
17446 cat confdefs.h >>conftest.$ac_ext
17447 cat >>conftest.$ac_ext <<_ACEOF
17448 /* end confdefs.h. */
17449 #include <sys/dg_sys_info.h>
17451 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17452 case "(($ac_try" in
17453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17454 *) ac_try_echo=$ac_try;;
17456 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17457 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17459 grep -v '^ *+' conftest.er1 >conftest.err
17461 cat conftest.err >&5
17462 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17463 (exit $ac_status); } >/dev/null && {
17464 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17465 test ! -s conftest.err
17467 ac_header_preproc=yes
17469 echo "$as_me: failed program was
:" >&5
17470 sed 's/^/| /' conftest.$ac_ext >&5
17472 ac_header_preproc=no
17475 rm -f conftest.err conftest.$ac_ext
17476 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17477 echo "${ECHO_T}$ac_header_preproc" >&6; }
17479 # So? What about this header?
17480 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17482 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17483 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17484 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
17485 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
17486 ac_header_preproc=yes
17489 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
17490 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
17491 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
17492 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
17493 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
17494 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
17495 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17496 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17497 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
17498 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
17499 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
17500 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
17504 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17505 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17506 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17507 echo $ECHO_N "(cached
) $ECHO_C" >&6
17509 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17511 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17512 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17515 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17518 cat >>confdefs.h <<\_ACEOF
17523 { echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
17524 echo $ECHO_N "checking
for dg_sys_info
in -ldgc...
$ECHO_C" >&6; }
17525 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17526 echo $ECHO_N "(cached
) $ECHO_C" >&6
17528 ac_check_lib_save_LIBS=$LIBS
17530 cat >conftest.$ac_ext <<_ACEOF
17533 cat confdefs.h >>conftest.$ac_ext
17534 cat >>conftest.$ac_ext <<_ACEOF
17535 /* end confdefs.h. */
17537 /* Override any GCC internal prototype to avoid an error.
17538 Use char because int might match the return type of a GCC
17539 builtin and then its argument prototype would still apply. */
17543 char dg_sys_info ();
17547 return dg_sys_info ();
17552 rm -f conftest.$ac_objext conftest$ac_exeext
17553 if { (ac_try="$ac_link"
17554 case "(($ac_try" in
17555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17556 *) ac_try_echo=$ac_try;;
17558 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17559 (eval "$ac_link") 2>conftest.er1
17561 grep -v '^ *+' conftest.er1 >conftest.err
17563 cat conftest.err >&5
17564 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17565 (exit $ac_status); } && {
17566 test -z "$ac_c_werror_flag" ||
17567 test ! -s conftest.err
17568 } && test -s conftest$ac_exeext &&
17569 $as_test_x conftest$ac_exeext; then
17570 ac_cv_lib_dgc_dg_sys_info=yes
17572 echo "$as_me: failed program was
:" >&5
17573 sed 's/^/| /' conftest.$ac_ext >&5
17575 ac_cv_lib_dgc_dg_sys_info=no
17578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17579 conftest$ac_exeext conftest.$ac_ext
17580 LIBS=$ac_check_lib_save_LIBS
17582 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
17583 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17584 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17585 cat >>confdefs.h <<_ACEOF
17586 #define HAVE_LIBDGC 1
17597 if test "${ac_cv_header_locale_h+set}" = set; then
17598 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17599 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17600 if test "${ac_cv_header_locale_h+set}" = set; then
17601 echo $ECHO_N "(cached
) $ECHO_C" >&6
17603 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17604 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17606 # Is the header compilable?
17607 { echo "$as_me:$LINENO: checking locale.h usability
" >&5
17608 echo $ECHO_N "checking locale.h usability...
$ECHO_C" >&6; }
17609 cat >conftest.$ac_ext <<_ACEOF
17612 cat confdefs.h >>conftest.$ac_ext
17613 cat >>conftest.$ac_ext <<_ACEOF
17614 /* end confdefs.h. */
17615 $ac_includes_default
17616 #include <locale.h>
17618 rm -f conftest.$ac_objext
17619 if { (ac_try="$ac_compile"
17620 case "(($ac_try" in
17621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17622 *) ac_try_echo=$ac_try;;
17624 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17625 (eval "$ac_compile") 2>conftest.er1
17627 grep -v '^ *+' conftest.er1 >conftest.err
17629 cat conftest.err >&5
17630 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17631 (exit $ac_status); } && {
17632 test -z "$ac_c_werror_flag" ||
17633 test ! -s conftest.err
17634 } && test -s conftest.$ac_objext; then
17635 ac_header_compiler=yes
17637 echo "$as_me: failed program was
:" >&5
17638 sed 's/^/| /' conftest.$ac_ext >&5
17640 ac_header_compiler=no
17643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17644 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17645 echo "${ECHO_T}$ac_header_compiler" >&6; }
17647 # Is the header present?
17648 { echo "$as_me:$LINENO: checking locale.h presence
" >&5
17649 echo $ECHO_N "checking locale.h presence...
$ECHO_C" >&6; }
17650 cat >conftest.$ac_ext <<_ACEOF
17653 cat confdefs.h >>conftest.$ac_ext
17654 cat >>conftest.$ac_ext <<_ACEOF
17655 /* end confdefs.h. */
17656 #include <locale.h>
17658 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17659 case "(($ac_try" in
17660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17661 *) ac_try_echo=$ac_try;;
17663 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17664 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17666 grep -v '^ *+' conftest.er1 >conftest.err
17668 cat conftest.err >&5
17669 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17670 (exit $ac_status); } >/dev/null && {
17671 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17672 test ! -s conftest.err
17674 ac_header_preproc=yes
17676 echo "$as_me: failed program was
:" >&5
17677 sed 's/^/| /' conftest.$ac_ext >&5
17679 ac_header_preproc=no
17682 rm -f conftest.err conftest.$ac_ext
17683 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17684 echo "${ECHO_T}$ac_header_preproc" >&6; }
17686 # So? What about this header?
17687 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17689 { echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17690 echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17691 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
17692 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
17693 ac_header_preproc=yes
17696 { echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
17697 echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
17698 { echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
17699 echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
17700 { echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
17701 echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
17702 { echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17703 echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17704 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
17705 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
17706 { echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
17707 echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
17711 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17712 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17713 if test "${ac_cv_header_locale_h+set}" = set; then
17714 echo $ECHO_N "(cached
) $ECHO_C" >&6
17716 ac_cv_header_locale_h=$ac_header_preproc
17718 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17719 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17725 for ac_func in setlocale
17727 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17728 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17729 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17730 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17731 echo $ECHO_N "(cached
) $ECHO_C" >&6
17733 cat >conftest.$ac_ext <<_ACEOF
17736 cat confdefs.h >>conftest.$ac_ext
17737 cat >>conftest.$ac_ext <<_ACEOF
17738 /* end confdefs.h. */
17739 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17740 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17741 #define $ac_func innocuous_$ac_func
17743 /* System header to define __stub macros and hopefully few prototypes,
17744 which can conflict with char $ac_func (); below.
17745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17746 <limits.h> exists even on freestanding compilers. */
17749 # include <limits.h>
17751 # include <assert.h>
17756 /* Override any GCC internal prototype to avoid an error.
17757 Use char because int might match the return type of a GCC
17758 builtin and then its argument prototype would still apply. */
17763 /* The GNU C library defines this for functions which it implements
17764 to always fail with ENOSYS. Some functions are actually named
17765 something starting with __ and the normal name is an alias. */
17766 #if defined __stub_$ac_func || defined __stub___$ac_func
17773 return $ac_func ();
17778 rm -f conftest.$ac_objext conftest$ac_exeext
17779 if { (ac_try="$ac_link"
17780 case "(($ac_try" in
17781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17782 *) ac_try_echo=$ac_try;;
17784 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17785 (eval "$ac_link") 2>conftest.er1
17787 grep -v '^ *+' conftest.er1 >conftest.err
17789 cat conftest.err >&5
17790 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17791 (exit $ac_status); } && {
17792 test -z "$ac_c_werror_flag" ||
17793 test ! -s conftest.err
17794 } && test -s conftest$ac_exeext &&
17795 $as_test_x conftest$ac_exeext; then
17796 eval "$as_ac_var=yes"
17798 echo "$as_me: failed program was
:" >&5
17799 sed 's/^/| /' conftest.$ac_ext >&5
17801 eval "$as_ac_var=no
"
17804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17805 conftest$ac_exeext conftest.$ac_ext
17807 ac_res=`eval echo '${'$as_ac_var'}'`
17808 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17809 echo "${ECHO_T}$ac_res" >&6; }
17810 if test `eval echo '${'$as_ac_var'}'` = yes; then
17811 cat >>confdefs.h <<_ACEOF
17812 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17819 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17820 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17821 # Irix 4.0.5F has the header but not the library.
17822 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17825 cat >>confdefs.h <<\_ACEOF
17831 if test $ac_have_func = no; then
17832 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17833 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17834 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17835 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17836 echo $ECHO_N "(cached
) $ECHO_C" >&6
17838 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17839 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17841 # Is the header compilable?
17842 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
17843 echo $ECHO_N "checking inq_stats
/cpustats.h usability...
$ECHO_C" >&6; }
17844 cat >conftest.$ac_ext <<_ACEOF
17847 cat confdefs.h >>conftest.$ac_ext
17848 cat >>conftest.$ac_ext <<_ACEOF
17849 /* end confdefs.h. */
17850 $ac_includes_default
17851 #include <inq_stats/cpustats.h>
17853 rm -f conftest.$ac_objext
17854 if { (ac_try="$ac_compile"
17855 case "(($ac_try" in
17856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17857 *) ac_try_echo=$ac_try;;
17859 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17860 (eval "$ac_compile") 2>conftest.er1
17862 grep -v '^ *+' conftest.er1 >conftest.err
17864 cat conftest.err >&5
17865 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17866 (exit $ac_status); } && {
17867 test -z "$ac_c_werror_flag" ||
17868 test ! -s conftest.err
17869 } && test -s conftest.$ac_objext; then
17870 ac_header_compiler=yes
17872 echo "$as_me: failed program was
:" >&5
17873 sed 's/^/| /' conftest.$ac_ext >&5
17875 ac_header_compiler=no
17878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17879 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17880 echo "${ECHO_T}$ac_header_compiler" >&6; }
17882 # Is the header present?
17883 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
17884 echo $ECHO_N "checking inq_stats
/cpustats.h presence...
$ECHO_C" >&6; }
17885 cat >conftest.$ac_ext <<_ACEOF
17888 cat confdefs.h >>conftest.$ac_ext
17889 cat >>conftest.$ac_ext <<_ACEOF
17890 /* end confdefs.h. */
17891 #include <inq_stats/cpustats.h>
17893 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17894 case "(($ac_try" in
17895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17896 *) ac_try_echo=$ac_try;;
17898 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17899 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17901 grep -v '^ *+' conftest.er1 >conftest.err
17903 cat conftest.err >&5
17904 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17905 (exit $ac_status); } >/dev/null && {
17906 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17907 test ! -s conftest.err
17909 ac_header_preproc=yes
17911 echo "$as_me: failed program was
:" >&5
17912 sed 's/^/| /' conftest.$ac_ext >&5
17914 ac_header_preproc=no
17917 rm -f conftest.err conftest.$ac_ext
17918 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17919 echo "${ECHO_T}$ac_header_preproc" >&6; }
17921 # So? What about this header?
17922 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17924 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17925 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17926 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
17927 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
17928 ac_header_preproc=yes
17931 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
17932 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
17933 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
17934 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
17935 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
17936 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
17937 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17938 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17939 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
17940 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
17941 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
17942 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
17946 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17947 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17948 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17949 echo $ECHO_N "(cached
) $ECHO_C" >&6
17951 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17953 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17954 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17957 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17960 cat >>confdefs.h <<\_ACEOF
17965 cat >>confdefs.h <<\_ACEOF
17974 if test $ac_have_func = no; then
17975 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17976 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
17977 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
17978 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17979 echo $ECHO_N "(cached
) $ECHO_C" >&6
17981 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
17982 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17984 # Is the header compilable?
17985 { echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
17986 echo $ECHO_N "checking sys
/cpustats.h usability...
$ECHO_C" >&6; }
17987 cat >conftest.$ac_ext <<_ACEOF
17990 cat confdefs.h >>conftest.$ac_ext
17991 cat >>conftest.$ac_ext <<_ACEOF
17992 /* end confdefs.h. */
17993 $ac_includes_default
17994 #include <sys/cpustats.h>
17996 rm -f conftest.$ac_objext
17997 if { (ac_try="$ac_compile"
17998 case "(($ac_try" in
17999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18000 *) ac_try_echo=$ac_try;;
18002 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18003 (eval "$ac_compile") 2>conftest.er1
18005 grep -v '^ *+' conftest.er1 >conftest.err
18007 cat conftest.err >&5
18008 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18009 (exit $ac_status); } && {
18010 test -z "$ac_c_werror_flag" ||
18011 test ! -s conftest.err
18012 } && test -s conftest.$ac_objext; then
18013 ac_header_compiler=yes
18015 echo "$as_me: failed program was
:" >&5
18016 sed 's/^/| /' conftest.$ac_ext >&5
18018 ac_header_compiler=no
18021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18022 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18023 echo "${ECHO_T}$ac_header_compiler" >&6; }
18025 # Is the header present?
18026 { echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
18027 echo $ECHO_N "checking sys
/cpustats.h presence...
$ECHO_C" >&6; }
18028 cat >conftest.$ac_ext <<_ACEOF
18031 cat confdefs.h >>conftest.$ac_ext
18032 cat >>conftest.$ac_ext <<_ACEOF
18033 /* end confdefs.h. */
18034 #include <sys/cpustats.h>
18036 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18037 case "(($ac_try" in
18038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18039 *) ac_try_echo=$ac_try;;
18041 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18042 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18044 grep -v '^ *+' conftest.er1 >conftest.err
18046 cat conftest.err >&5
18047 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18048 (exit $ac_status); } >/dev/null && {
18049 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18050 test ! -s conftest.err
18052 ac_header_preproc=yes
18054 echo "$as_me: failed program was
:" >&5
18055 sed 's/^/| /' conftest.$ac_ext >&5
18057 ac_header_preproc=no
18060 rm -f conftest.err conftest.$ac_ext
18061 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18062 echo "${ECHO_T}$ac_header_preproc" >&6; }
18064 # So? What about this header?
18065 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18067 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
18068 echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18069 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
18070 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
18071 ac_header_preproc=yes
18074 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
18075 echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
18076 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
18077 echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
18078 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
18079 echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
18080 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
18081 echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
18082 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
18083 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
18084 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
18085 echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
18089 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
18090 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
18091 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18092 echo $ECHO_N "(cached
) $ECHO_C" >&6
18094 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18096 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
18097 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18100 if test $ac_cv_header_sys_cpustats_h = yes; then
18101 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18110 if test $ac_have_func = no; then
18112 for ac_header in mach/mach.h
18114 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18115 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18116 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18117 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18118 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18119 echo $ECHO_N "(cached
) $ECHO_C" >&6
18121 ac_res=`eval echo '${'$as_ac_Header'}'`
18122 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18123 echo "${ECHO_T}$ac_res" >&6; }
18125 # Is the header compilable?
18126 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18127 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18128 cat >conftest.$ac_ext <<_ACEOF
18131 cat confdefs.h >>conftest.$ac_ext
18132 cat >>conftest.$ac_ext <<_ACEOF
18133 /* end confdefs.h. */
18134 $ac_includes_default
18135 #include <$ac_header>
18137 rm -f conftest.$ac_objext
18138 if { (ac_try="$ac_compile"
18139 case "(($ac_try" in
18140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18141 *) ac_try_echo=$ac_try;;
18143 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18144 (eval "$ac_compile") 2>conftest.er1
18146 grep -v '^ *+' conftest.er1 >conftest.err
18148 cat conftest.err >&5
18149 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18150 (exit $ac_status); } && {
18151 test -z "$ac_c_werror_flag" ||
18152 test ! -s conftest.err
18153 } && test -s conftest.$ac_objext; then
18154 ac_header_compiler=yes
18156 echo "$as_me: failed program was
:" >&5
18157 sed 's/^/| /' conftest.$ac_ext >&5
18159 ac_header_compiler=no
18162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18163 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18164 echo "${ECHO_T}$ac_header_compiler" >&6; }
18166 # Is the header present?
18167 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18168 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18169 cat >conftest.$ac_ext <<_ACEOF
18172 cat confdefs.h >>conftest.$ac_ext
18173 cat >>conftest.$ac_ext <<_ACEOF
18174 /* end confdefs.h. */
18175 #include <$ac_header>
18177 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18178 case "(($ac_try" in
18179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18180 *) ac_try_echo=$ac_try;;
18182 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18183 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18185 grep -v '^ *+' conftest.er1 >conftest.err
18187 cat conftest.err >&5
18188 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18189 (exit $ac_status); } >/dev/null && {
18190 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18191 test ! -s conftest.err
18193 ac_header_preproc=yes
18195 echo "$as_me: failed program was
:" >&5
18196 sed 's/^/| /' conftest.$ac_ext >&5
18198 ac_header_preproc=no
18201 rm -f conftest.err conftest.$ac_ext
18202 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18203 echo "${ECHO_T}$ac_header_preproc" >&6; }
18205 # So? What about this header?
18206 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18208 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18209 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18210 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18211 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18212 ac_header_preproc=yes
18215 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18216 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18217 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18218 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18219 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18220 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18221 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18222 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18223 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18224 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18225 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18226 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18230 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18231 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18232 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18233 echo $ECHO_N "(cached
) $ECHO_C" >&6
18235 eval "$as_ac_Header=\
$ac_header_preproc"
18237 ac_res=`eval echo '${'$as_ac_Header'}'`
18238 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18239 echo "${ECHO_T}$ac_res" >&6; }
18242 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18243 cat >>confdefs.h <<_ACEOF
18244 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18254 for ac_header in nlist.h
18256 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18257 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18258 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18259 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18260 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18261 echo $ECHO_N "(cached
) $ECHO_C" >&6
18263 ac_res=`eval echo '${'$as_ac_Header'}'`
18264 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18265 echo "${ECHO_T}$ac_res" >&6; }
18267 # Is the header compilable?
18268 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18269 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18270 cat >conftest.$ac_ext <<_ACEOF
18273 cat confdefs.h >>conftest.$ac_ext
18274 cat >>conftest.$ac_ext <<_ACEOF
18275 /* end confdefs.h. */
18276 $ac_includes_default
18277 #include <$ac_header>
18279 rm -f conftest.$ac_objext
18280 if { (ac_try="$ac_compile"
18281 case "(($ac_try" in
18282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18283 *) ac_try_echo=$ac_try;;
18285 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18286 (eval "$ac_compile") 2>conftest.er1
18288 grep -v '^ *+' conftest.er1 >conftest.err
18290 cat conftest.err >&5
18291 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18292 (exit $ac_status); } && {
18293 test -z "$ac_c_werror_flag" ||
18294 test ! -s conftest.err
18295 } && test -s conftest.$ac_objext; then
18296 ac_header_compiler=yes
18298 echo "$as_me: failed program was
:" >&5
18299 sed 's/^/| /' conftest.$ac_ext >&5
18301 ac_header_compiler=no
18304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18305 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18306 echo "${ECHO_T}$ac_header_compiler" >&6; }
18308 # Is the header present?
18309 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18310 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18311 cat >conftest.$ac_ext <<_ACEOF
18314 cat confdefs.h >>conftest.$ac_ext
18315 cat >>conftest.$ac_ext <<_ACEOF
18316 /* end confdefs.h. */
18317 #include <$ac_header>
18319 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18320 case "(($ac_try" in
18321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18322 *) ac_try_echo=$ac_try;;
18324 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18325 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18327 grep -v '^ *+' conftest.er1 >conftest.err
18329 cat conftest.err >&5
18330 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18331 (exit $ac_status); } >/dev/null && {
18332 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18333 test ! -s conftest.err
18335 ac_header_preproc=yes
18337 echo "$as_me: failed program was
:" >&5
18338 sed 's/^/| /' conftest.$ac_ext >&5
18340 ac_header_preproc=no
18343 rm -f conftest.err conftest.$ac_ext
18344 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18345 echo "${ECHO_T}$ac_header_preproc" >&6; }
18347 # So? What about this header?
18348 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18350 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18351 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18352 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18353 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18354 ac_header_preproc=yes
18357 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18358 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18359 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18360 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18361 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18362 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18363 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18364 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18365 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18366 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18367 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18368 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18372 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18373 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18374 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18375 echo $ECHO_N "(cached
) $ECHO_C" >&6
18377 eval "$as_ac_Header=\
$ac_header_preproc"
18379 ac_res=`eval echo '${'$as_ac_Header'}'`
18380 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18381 echo "${ECHO_T}$ac_res" >&6; }
18384 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18385 cat >>confdefs.h <<_ACEOF
18386 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18388 { echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
18389 echo $ECHO_N "checking
for struct nlist.n_un.n_name...
$ECHO_C" >&6; }
18390 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18391 echo $ECHO_N "(cached
) $ECHO_C" >&6
18393 cat >conftest.$ac_ext <<_ACEOF
18396 cat confdefs.h >>conftest.$ac_ext
18397 cat >>conftest.$ac_ext <<_ACEOF
18398 /* end confdefs.h. */
18404 static struct nlist ac_aggr;
18405 if (ac_aggr.n_un.n_name)
18411 rm -f conftest.$ac_objext
18412 if { (ac_try="$ac_compile"
18413 case "(($ac_try" in
18414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18415 *) ac_try_echo=$ac_try;;
18417 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18418 (eval "$ac_compile") 2>conftest.er1
18420 grep -v '^ *+' conftest.er1 >conftest.err
18422 cat conftest.err >&5
18423 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18424 (exit $ac_status); } && {
18425 test -z "$ac_c_werror_flag" ||
18426 test ! -s conftest.err
18427 } && test -s conftest.$ac_objext; then
18428 ac_cv_member_struct_nlist_n_un_n_name=yes
18430 echo "$as_me: failed program was
:" >&5
18431 sed 's/^/| /' conftest.$ac_ext >&5
18433 cat >conftest.$ac_ext <<_ACEOF
18436 cat confdefs.h >>conftest.$ac_ext
18437 cat >>conftest.$ac_ext <<_ACEOF
18438 /* end confdefs.h. */
18444 static struct nlist ac_aggr;
18445 if (sizeof ac_aggr.n_un.n_name)
18451 rm -f conftest.$ac_objext
18452 if { (ac_try="$ac_compile"
18453 case "(($ac_try" in
18454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18455 *) ac_try_echo=$ac_try;;
18457 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18458 (eval "$ac_compile") 2>conftest.er1
18460 grep -v '^ *+' conftest.er1 >conftest.err
18462 cat conftest.err >&5
18463 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18464 (exit $ac_status); } && {
18465 test -z "$ac_c_werror_flag" ||
18466 test ! -s conftest.err
18467 } && test -s conftest.$ac_objext; then
18468 ac_cv_member_struct_nlist_n_un_n_name=yes
18470 echo "$as_me: failed program was
:" >&5
18471 sed 's/^/| /' conftest.$ac_ext >&5
18473 ac_cv_member_struct_nlist_n_un_n_name=no
18476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18481 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18482 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18483 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18485 cat >>confdefs.h <<_ACEOF
18486 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18490 cat >>confdefs.h <<\_ACEOF
18491 #define NLIST_NAME_UNION 1
18505 # Some definitions of getloadavg require that the program be installed setgid.
18506 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
18507 echo $ECHO_N "checking whether getloadavg requires setgid...
$ECHO_C" >&6; }
18508 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18509 echo $ECHO_N "(cached
) $ECHO_C" >&6
18511 cat >conftest.$ac_ext <<_ACEOF
18514 cat confdefs.h >>conftest.$ac_ext
18515 cat >>conftest.$ac_ext <<_ACEOF
18516 /* end confdefs.h. */
18517 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
18518 #ifdef LDAV_PRIVILEGED
18519 Yowza Am I SETGID yet
18522 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
18523 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
18524 ac_cv_func_getloadavg_setgid=yes
18526 ac_cv_func_getloadavg_setgid=no
18531 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
18532 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18533 if test $ac_cv_func_getloadavg_setgid = yes; then
18536 cat >>confdefs.h <<\_ACEOF
18537 #define GETLOADAVG_PRIVILEGED 1
18544 if test $ac_cv_func_getloadavg_setgid = yes; then
18545 { echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
18546 echo $ECHO_N "checking group of
/dev
/kmem...
$ECHO_C" >&6; }
18547 if test "${ac_cv_group_kmem+set}" = set; then
18548 echo $ECHO_N "(cached
) $ECHO_C" >&6
18550 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18551 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18552 # If we got an error (system does not support symlinks), try without -L.
18553 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18554 ac_cv_group_kmem=`echo $ac_ls_output \
18555 | sed -ne 's/[ ][ ]*/ /g;
18556 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18560 { echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
18561 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18562 KMEM_GROUP=$ac_cv_group_kmem
18564 if test "x
$ac_save_LIBS" = x; then
18565 GETLOADAVG_LIBS=$LIBS
18567 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s
!$ac_save_LIBS!!"`
18573 { echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
18574 echo $ECHO_N "checking
for _LARGEFILE_SOURCE value needed
for large files...
$ECHO_C" >&6; }
18575 if test "${ac_cv_sys_largefile_source+set}" = set; then
18576 echo $ECHO_N "(cached
) $ECHO_C" >&6
18579 cat >conftest.$ac_ext <<_ACEOF
18582 cat confdefs.h >>conftest.$ac_ext
18583 cat >>conftest.$ac_ext <<_ACEOF
18584 /* end confdefs.h. */
18589 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18594 rm -f conftest.$ac_objext conftest$ac_exeext
18595 if { (ac_try="$ac_link"
18596 case "(($ac_try" in
18597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18598 *) ac_try_echo=$ac_try;;
18600 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18601 (eval "$ac_link") 2>conftest.er1
18603 grep -v '^ *+' conftest.er1 >conftest.err
18605 cat conftest.err >&5
18606 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18607 (exit $ac_status); } && {
18608 test -z "$ac_c_werror_flag" ||
18609 test ! -s conftest.err
18610 } && test -s conftest$ac_exeext &&
18611 $as_test_x conftest$ac_exeext; then
18612 ac_cv_sys_largefile_source=no; break
18614 echo "$as_me: failed program was
:" >&5
18615 sed 's/^/| /' conftest.$ac_ext >&5
18620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18621 conftest$ac_exeext conftest.$ac_ext
18622 cat >conftest.$ac_ext <<_ACEOF
18625 cat confdefs.h >>conftest.$ac_ext
18626 cat >>conftest.$ac_ext <<_ACEOF
18627 /* end confdefs.h. */
18628 #define _LARGEFILE_SOURCE 1
18633 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18638 rm -f conftest.$ac_objext conftest$ac_exeext
18639 if { (ac_try="$ac_link"
18640 case "(($ac_try" in
18641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18642 *) ac_try_echo=$ac_try;;
18644 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18645 (eval "$ac_link") 2>conftest.er1
18647 grep -v '^ *+' conftest.er1 >conftest.err
18649 cat conftest.err >&5
18650 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18651 (exit $ac_status); } && {
18652 test -z "$ac_c_werror_flag" ||
18653 test ! -s conftest.err
18654 } && test -s conftest$ac_exeext &&
18655 $as_test_x conftest$ac_exeext; then
18656 ac_cv_sys_largefile_source=1; break
18658 echo "$as_me: failed program was
:" >&5
18659 sed 's/^/| /' conftest.$ac_ext >&5
18664 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18665 conftest$ac_exeext conftest.$ac_ext
18666 ac_cv_sys_largefile_source=unknown
18670 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
18671 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18672 case $ac_cv_sys_largefile_source in #(
18675 cat >>confdefs.h <<_ACEOF
18676 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18682 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18683 # in glibc 2.1.3, but that breaks too many other things.
18684 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18685 if test $ac_cv_sys_largefile_source != unknown; then
18687 cat >>confdefs.h <<\_ACEOF
18688 #define HAVE_FSEEKO 1
18694 # Configure getopt.
18695 # getopt.m4 serial 10
18697 # The getopt module assume you want GNU getopt, with getopt_long etc,
18698 # rather than vanilla POSIX getopt. This means your your code should
18699 # always include <getopt.h> for the getopt prototypes.
18711 # Prerequisites of lib/getopt*.
18718 for ac_header in getopt.h
18720 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18721 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18722 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18723 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18724 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18725 echo $ECHO_N "(cached
) $ECHO_C" >&6
18727 ac_res=`eval echo '${'$as_ac_Header'}'`
18728 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18729 echo "${ECHO_T}$ac_res" >&6; }
18731 # Is the header compilable?
18732 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18733 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18734 cat >conftest.$ac_ext <<_ACEOF
18737 cat confdefs.h >>conftest.$ac_ext
18738 cat >>conftest.$ac_ext <<_ACEOF
18739 /* end confdefs.h. */
18740 $ac_includes_default
18741 #include <$ac_header>
18743 rm -f conftest.$ac_objext
18744 if { (ac_try="$ac_compile"
18745 case "(($ac_try" in
18746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18747 *) ac_try_echo=$ac_try;;
18749 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18750 (eval "$ac_compile") 2>conftest.er1
18752 grep -v '^ *+' conftest.er1 >conftest.err
18754 cat conftest.err >&5
18755 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18756 (exit $ac_status); } && {
18757 test -z "$ac_c_werror_flag" ||
18758 test ! -s conftest.err
18759 } && test -s conftest.$ac_objext; then
18760 ac_header_compiler=yes
18762 echo "$as_me: failed program was
:" >&5
18763 sed 's/^/| /' conftest.$ac_ext >&5
18765 ac_header_compiler=no
18768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18769 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18770 echo "${ECHO_T}$ac_header_compiler" >&6; }
18772 # Is the header present?
18773 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18774 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18775 cat >conftest.$ac_ext <<_ACEOF
18778 cat confdefs.h >>conftest.$ac_ext
18779 cat >>conftest.$ac_ext <<_ACEOF
18780 /* end confdefs.h. */
18781 #include <$ac_header>
18783 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18784 case "(($ac_try" in
18785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18786 *) ac_try_echo=$ac_try;;
18788 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18789 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18791 grep -v '^ *+' conftest.er1 >conftest.err
18793 cat conftest.err >&5
18794 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18795 (exit $ac_status); } >/dev/null && {
18796 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18797 test ! -s conftest.err
18799 ac_header_preproc=yes
18801 echo "$as_me: failed program was
:" >&5
18802 sed 's/^/| /' conftest.$ac_ext >&5
18804 ac_header_preproc=no
18807 rm -f conftest.err conftest.$ac_ext
18808 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18809 echo "${ECHO_T}$ac_header_preproc" >&6; }
18811 # So? What about this header?
18812 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18814 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18815 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18816 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18817 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18818 ac_header_preproc=yes
18821 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18822 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18823 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18824 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18825 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18826 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18827 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18828 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18829 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18830 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18831 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18832 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18836 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18837 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18838 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18839 echo $ECHO_N "(cached
) $ECHO_C" >&6
18841 eval "$as_ac_Header=\
$ac_header_preproc"
18843 ac_res=`eval echo '${'$as_ac_Header'}'`
18844 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18845 echo "${ECHO_T}$ac_res" >&6; }
18848 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18849 cat >>confdefs.h <<_ACEOF
18850 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18859 if test -z "$GETOPT_H"; then
18861 for ac_func in getopt_long_only
18863 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18864 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18865 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18866 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18867 echo $ECHO_N "(cached
) $ECHO_C" >&6
18869 cat >conftest.$ac_ext <<_ACEOF
18872 cat confdefs.h >>conftest.$ac_ext
18873 cat >>conftest.$ac_ext <<_ACEOF
18874 /* end confdefs.h. */
18875 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18876 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18877 #define $ac_func innocuous_$ac_func
18879 /* System header to define __stub macros and hopefully few prototypes,
18880 which can conflict with char $ac_func (); below.
18881 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18882 <limits.h> exists even on freestanding compilers. */
18885 # include <limits.h>
18887 # include <assert.h>
18892 /* Override any GCC internal prototype to avoid an error.
18893 Use char because int might match the return type of a GCC
18894 builtin and then its argument prototype would still apply. */
18899 /* The GNU C library defines this for functions which it implements
18900 to always fail with ENOSYS. Some functions are actually named
18901 something starting with __ and the normal name is an alias. */
18902 #if defined __stub_$ac_func || defined __stub___$ac_func
18909 return $ac_func ();
18914 rm -f conftest.$ac_objext conftest$ac_exeext
18915 if { (ac_try="$ac_link"
18916 case "(($ac_try" in
18917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18918 *) ac_try_echo=$ac_try;;
18920 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18921 (eval "$ac_link") 2>conftest.er1
18923 grep -v '^ *+' conftest.er1 >conftest.err
18925 cat conftest.err >&5
18926 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18927 (exit $ac_status); } && {
18928 test -z "$ac_c_werror_flag" ||
18929 test ! -s conftest.err
18930 } && test -s conftest$ac_exeext &&
18931 $as_test_x conftest$ac_exeext; then
18932 eval "$as_ac_var=yes"
18934 echo "$as_me: failed program was
:" >&5
18935 sed 's/^/| /' conftest.$ac_ext >&5
18937 eval "$as_ac_var=no
"
18940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18941 conftest$ac_exeext conftest.$ac_ext
18943 ac_res=`eval echo '${'$as_ac_var'}'`
18944 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18945 echo "${ECHO_T}$ac_res" >&6; }
18946 if test `eval echo '${'$as_ac_var'}'` = yes; then
18947 cat >>confdefs.h <<_ACEOF
18948 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18958 if test -z "$GETOPT_H"; then
18959 { echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
18960 echo $ECHO_N "checking whether optreset is declared...
$ECHO_C" >&6; }
18961 if test "${ac_cv_have_decl_optreset+set}" = set; then
18962 echo $ECHO_N "(cached
) $ECHO_C" >&6
18964 cat >conftest.$ac_ext <<_ACEOF
18967 cat confdefs.h >>conftest.$ac_ext
18968 cat >>conftest.$ac_ext <<_ACEOF
18969 /* end confdefs.h. */
18970 #include <getopt.h>
18983 rm -f conftest.$ac_objext
18984 if { (ac_try="$ac_compile"
18985 case "(($ac_try" in
18986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18987 *) ac_try_echo=$ac_try;;
18989 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18990 (eval "$ac_compile") 2>conftest.er1
18992 grep -v '^ *+' conftest.er1 >conftest.err
18994 cat conftest.err >&5
18995 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18996 (exit $ac_status); } && {
18997 test -z "$ac_c_werror_flag" ||
18998 test ! -s conftest.err
18999 } && test -s conftest.$ac_objext; then
19000 ac_cv_have_decl_optreset=yes
19002 echo "$as_me: failed program was
:" >&5
19003 sed 's/^/| /' conftest.$ac_ext >&5
19005 ac_cv_have_decl_optreset=no
19008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19010 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
19011 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
19012 if test $ac_cv_have_decl_optreset = yes; then
19018 if test -z "$GETOPT_H"; then
19019 { echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
19020 echo $ECHO_N "checking
for working GNU getopt
function...
$ECHO_C" >&6; }
19021 if test "${gl_cv_func_gnu_getopt+set}" = set; then
19022 echo $ECHO_N "(cached
) $ECHO_C" >&6
19024 if test "$cross_compiling" = yes; then
19025 { echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
19026 echo $ECHO_N "checking whether getopt_clip is declared...
$ECHO_C" >&6; }
19027 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
19028 echo $ECHO_N "(cached
) $ECHO_C" >&6
19030 cat >conftest.$ac_ext <<_ACEOF
19033 cat confdefs.h >>conftest.$ac_ext
19034 cat >>conftest.$ac_ext <<_ACEOF
19035 /* end confdefs.h. */
19036 #include <getopt.h>
19041 #ifndef getopt_clip
19042 (void) getopt_clip;
19049 rm -f conftest.$ac_objext
19050 if { (ac_try="$ac_compile"
19051 case "(($ac_try" in
19052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19053 *) ac_try_echo=$ac_try;;
19055 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19056 (eval "$ac_compile") 2>conftest.er1
19058 grep -v '^ *+' conftest.er1 >conftest.err
19060 cat conftest.err >&5
19061 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19062 (exit $ac_status); } && {
19063 test -z "$ac_c_werror_flag" ||
19064 test ! -s conftest.err
19065 } && test -s conftest.$ac_objext; then
19066 ac_cv_have_decl_getopt_clip=yes
19068 echo "$as_me: failed program was
:" >&5
19069 sed 's/^/| /' conftest.$ac_ext >&5
19071 ac_cv_have_decl_getopt_clip=no
19074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19076 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
19077 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19078 if test $ac_cv_have_decl_getopt_clip = yes; then
19079 gl_cv_func_gnu_getopt=no
19081 gl_cv_func_gnu_getopt=yes
19085 cat >conftest.$ac_ext <<_ACEOF
19088 cat confdefs.h >>conftest.$ac_ext
19089 cat >>conftest.$ac_ext <<_ACEOF
19090 /* end confdefs.h. */
19091 #include <getopt.h>
19097 myargv[0] = "conftest
";
19100 return getopt (2, myargv, "+a
") != '?';
19106 rm -f conftest$ac_exeext
19107 if { (ac_try="$ac_link"
19108 case "(($ac_try" in
19109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19110 *) ac_try_echo=$ac_try;;
19112 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19113 (eval "$ac_link") 2>&5
19115 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19116 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19117 { (case "(($ac_try" in
19118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19119 *) ac_try_echo=$ac_try;;
19121 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19122 (eval "$ac_try") 2>&5
19124 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19125 (exit $ac_status); }; }; then
19126 gl_cv_func_gnu_getopt=yes
19128 echo "$as_me: program exited with status
$ac_status" >&5
19129 echo "$as_me: failed program was
:" >&5
19130 sed 's/^/| /' conftest.$ac_ext >&5
19132 ( exit $ac_status )
19133 gl_cv_func_gnu_getopt=no
19135 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19140 { echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
19141 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19142 if test "$gl_cv_func_gnu_getopt" = "no
"; then
19149 if test -n "$GETOPT_H"; then
19154 cat >>confdefs.h <<\_ACEOF
19155 #define __GETOPT_PREFIX rpl_
19161 GETOPTOBJS='getopt.o getopt1.o'
19168 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
19169 echo $ECHO_N "checking whether getpgrp requires zero arguments...
$ECHO_C" >&6; }
19170 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19171 echo $ECHO_N "(cached
) $ECHO_C" >&6
19173 # Use it with a single arg.
19174 cat >conftest.$ac_ext <<_ACEOF
19177 cat confdefs.h >>conftest.$ac_ext
19178 cat >>conftest.$ac_ext <<_ACEOF
19179 /* end confdefs.h. */
19180 $ac_includes_default
19189 rm -f conftest.$ac_objext
19190 if { (ac_try="$ac_compile"
19191 case "(($ac_try" in
19192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19193 *) ac_try_echo=$ac_try;;
19195 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19196 (eval "$ac_compile") 2>conftest.er1
19198 grep -v '^ *+' conftest.er1 >conftest.err
19200 cat conftest.err >&5
19201 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19202 (exit $ac_status); } && {
19203 test -z "$ac_c_werror_flag" ||
19204 test ! -s conftest.err
19205 } && test -s conftest.$ac_objext; then
19206 ac_cv_func_getpgrp_void=no
19208 echo "$as_me: failed program was
:" >&5
19209 sed 's/^/| /' conftest.$ac_ext >&5
19211 ac_cv_func_getpgrp_void=yes
19214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19217 { echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
19218 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19219 if test $ac_cv_func_getpgrp_void = yes; then
19221 cat >>confdefs.h <<\_ACEOF
19222 #define GETPGRP_VOID 1
19229 for ac_func in strftime
19231 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19232 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19233 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19234 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19235 echo $ECHO_N "(cached
) $ECHO_C" >&6
19237 cat >conftest.$ac_ext <<_ACEOF
19240 cat confdefs.h >>conftest.$ac_ext
19241 cat >>conftest.$ac_ext <<_ACEOF
19242 /* end confdefs.h. */
19243 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19244 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19245 #define $ac_func innocuous_$ac_func
19247 /* System header to define __stub macros and hopefully few prototypes,
19248 which can conflict with char $ac_func (); below.
19249 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19250 <limits.h> exists even on freestanding compilers. */
19253 # include <limits.h>
19255 # include <assert.h>
19260 /* Override any GCC internal prototype to avoid an error.
19261 Use char because int might match the return type of a GCC
19262 builtin and then its argument prototype would still apply. */
19267 /* The GNU C library defines this for functions which it implements
19268 to always fail with ENOSYS. Some functions are actually named
19269 something starting with __ and the normal name is an alias. */
19270 #if defined __stub_$ac_func || defined __stub___$ac_func
19277 return $ac_func ();
19282 rm -f conftest.$ac_objext conftest$ac_exeext
19283 if { (ac_try="$ac_link"
19284 case "(($ac_try" in
19285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19286 *) ac_try_echo=$ac_try;;
19288 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19289 (eval "$ac_link") 2>conftest.er1
19291 grep -v '^ *+' conftest.er1 >conftest.err
19293 cat conftest.err >&5
19294 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19295 (exit $ac_status); } && {
19296 test -z "$ac_c_werror_flag" ||
19297 test ! -s conftest.err
19298 } && test -s conftest$ac_exeext &&
19299 $as_test_x conftest$ac_exeext; then
19300 eval "$as_ac_var=yes"
19302 echo "$as_me: failed program was
:" >&5
19303 sed 's/^/| /' conftest.$ac_ext >&5
19305 eval "$as_ac_var=no
"
19308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19309 conftest$ac_exeext conftest.$ac_ext
19311 ac_res=`eval echo '${'$as_ac_var'}'`
19312 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19313 echo "${ECHO_T}$ac_res" >&6; }
19314 if test `eval echo '${'$as_ac_var'}'` = yes; then
19315 cat >>confdefs.h <<_ACEOF
19316 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19320 # strftime is in -lintl on SCO UNIX.
19321 { echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
19322 echo $ECHO_N "checking
for strftime
in -lintl...
$ECHO_C" >&6; }
19323 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19324 echo $ECHO_N "(cached
) $ECHO_C" >&6
19326 ac_check_lib_save_LIBS=$LIBS
19327 LIBS="-lintl $LIBS"
19328 cat >conftest.$ac_ext <<_ACEOF
19331 cat confdefs.h >>conftest.$ac_ext
19332 cat >>conftest.$ac_ext <<_ACEOF
19333 /* end confdefs.h. */
19335 /* Override any GCC internal prototype to avoid an error.
19336 Use char because int might match the return type of a GCC
19337 builtin and then its argument prototype would still apply. */
19345 return strftime ();
19350 rm -f conftest.$ac_objext conftest$ac_exeext
19351 if { (ac_try="$ac_link"
19352 case "(($ac_try" in
19353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19354 *) ac_try_echo=$ac_try;;
19356 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19357 (eval "$ac_link") 2>conftest.er1
19359 grep -v '^ *+' conftest.er1 >conftest.err
19361 cat conftest.err >&5
19362 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19363 (exit $ac_status); } && {
19364 test -z "$ac_c_werror_flag" ||
19365 test ! -s conftest.err
19366 } && test -s conftest$ac_exeext &&
19367 $as_test_x conftest$ac_exeext; then
19368 ac_cv_lib_intl_strftime=yes
19370 echo "$as_me: failed program was
:" >&5
19371 sed 's/^/| /' conftest.$ac_ext >&5
19373 ac_cv_lib_intl_strftime=no
19376 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19377 conftest$ac_exeext conftest.$ac_ext
19378 LIBS=$ac_check_lib_save_LIBS
19380 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
19381 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19382 if test $ac_cv_lib_intl_strftime = yes; then
19383 cat >>confdefs.h <<\_ACEOF
19384 #define HAVE_STRFTIME 1
19387 LIBS="-lintl $LIBS"
19396 for ac_func in grantpt
19398 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19399 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19400 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19401 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19402 echo $ECHO_N "(cached
) $ECHO_C" >&6
19404 cat >conftest.$ac_ext <<_ACEOF
19407 cat confdefs.h >>conftest.$ac_ext
19408 cat >>conftest.$ac_ext <<_ACEOF
19409 /* end confdefs.h. */
19410 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19411 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19412 #define $ac_func innocuous_$ac_func
19414 /* System header to define __stub macros and hopefully few prototypes,
19415 which can conflict with char $ac_func (); below.
19416 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19417 <limits.h> exists even on freestanding compilers. */
19420 # include <limits.h>
19422 # include <assert.h>
19427 /* Override any GCC internal prototype to avoid an error.
19428 Use char because int might match the return type of a GCC
19429 builtin and then its argument prototype would still apply. */
19434 /* The GNU C library defines this for functions which it implements
19435 to always fail with ENOSYS. Some functions are actually named
19436 something starting with __ and the normal name is an alias. */
19437 #if defined __stub_$ac_func || defined __stub___$ac_func
19444 return $ac_func ();
19449 rm -f conftest.$ac_objext conftest$ac_exeext
19450 if { (ac_try="$ac_link"
19451 case "(($ac_try" in
19452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19453 *) ac_try_echo=$ac_try;;
19455 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19456 (eval "$ac_link") 2>conftest.er1
19458 grep -v '^ *+' conftest.er1 >conftest.err
19460 cat conftest.err >&5
19461 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19462 (exit $ac_status); } && {
19463 test -z "$ac_c_werror_flag" ||
19464 test ! -s conftest.err
19465 } && test -s conftest$ac_exeext &&
19466 $as_test_x conftest$ac_exeext; then
19467 eval "$as_ac_var=yes"
19469 echo "$as_me: failed program was
:" >&5
19470 sed 's/^/| /' conftest.$ac_ext >&5
19472 eval "$as_ac_var=no
"
19475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19476 conftest$ac_exeext conftest.$ac_ext
19478 ac_res=`eval echo '${'$as_ac_var'}'`
19479 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19480 echo "${ECHO_T}$ac_res" >&6; }
19481 if test `eval echo '${'$as_ac_var'}'` = yes; then
19482 cat >>confdefs.h <<_ACEOF
19483 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19490 # PTY-related GNU extensions.
19492 for ac_func in getpt
19494 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19495 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19496 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19497 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19498 echo $ECHO_N "(cached
) $ECHO_C" >&6
19500 cat >conftest.$ac_ext <<_ACEOF
19503 cat confdefs.h >>conftest.$ac_ext
19504 cat >>conftest.$ac_ext <<_ACEOF
19505 /* end confdefs.h. */
19506 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19507 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19508 #define $ac_func innocuous_$ac_func
19510 /* System header to define __stub macros and hopefully few prototypes,
19511 which can conflict with char $ac_func (); below.
19512 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19513 <limits.h> exists even on freestanding compilers. */
19516 # include <limits.h>
19518 # include <assert.h>
19523 /* Override any GCC internal prototype to avoid an error.
19524 Use char because int might match the return type of a GCC
19525 builtin and then its argument prototype would still apply. */
19530 /* The GNU C library defines this for functions which it implements
19531 to always fail with ENOSYS. Some functions are actually named
19532 something starting with __ and the normal name is an alias. */
19533 #if defined __stub_$ac_func || defined __stub___$ac_func
19540 return $ac_func ();
19545 rm -f conftest.$ac_objext conftest$ac_exeext
19546 if { (ac_try="$ac_link"
19547 case "(($ac_try" in
19548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19549 *) ac_try_echo=$ac_try;;
19551 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19552 (eval "$ac_link") 2>conftest.er1
19554 grep -v '^ *+' conftest.er1 >conftest.err
19556 cat conftest.err >&5
19557 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19558 (exit $ac_status); } && {
19559 test -z "$ac_c_werror_flag" ||
19560 test ! -s conftest.err
19561 } && test -s conftest$ac_exeext &&
19562 $as_test_x conftest$ac_exeext; then
19563 eval "$as_ac_var=yes"
19565 echo "$as_me: failed program was
:" >&5
19566 sed 's/^/| /' conftest.$ac_ext >&5
19568 eval "$as_ac_var=no
"
19571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19572 conftest$ac_exeext conftest.$ac_ext
19574 ac_res=`eval echo '${'$as_ac_var'}'`
19575 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19576 echo "${ECHO_T}$ac_res" >&6; }
19577 if test `eval echo '${'$as_ac_var'}'` = yes; then
19578 cat >>confdefs.h <<_ACEOF
19579 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19586 # Check this now, so that we will NOT find the above functions in ncurses.
19587 # That is because we have not set up to link ncurses in lib-src.
19588 # It's better to believe a function is not available
19589 # than to expect to find it in ncurses.
19591 { echo "$as_me:$LINENO: checking
for tparm
in -lncurses" >&5
19592 echo $ECHO_N "checking
for tparm
in -lncurses...
$ECHO_C" >&6; }
19593 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19594 echo $ECHO_N "(cached
) $ECHO_C" >&6
19596 ac_check_lib_save_LIBS=$LIBS
19597 LIBS="-lncurses $LIBS"
19598 cat >conftest.$ac_ext <<_ACEOF
19601 cat confdefs.h >>conftest.$ac_ext
19602 cat >>conftest.$ac_ext <<_ACEOF
19603 /* end confdefs.h. */
19605 /* Override any GCC internal prototype to avoid an error.
19606 Use char because int might match the return type of a GCC
19607 builtin and then its argument prototype would still apply. */
19620 rm -f conftest.$ac_objext conftest$ac_exeext
19621 if { (ac_try="$ac_link"
19622 case "(($ac_try" in
19623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19624 *) ac_try_echo=$ac_try;;
19626 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19627 (eval "$ac_link") 2>conftest.er1
19629 grep -v '^ *+' conftest.er1 >conftest.err
19631 cat conftest.err >&5
19632 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19633 (exit $ac_status); } && {
19634 test -z "$ac_c_werror_flag" ||
19635 test ! -s conftest.err
19636 } && test -s conftest$ac_exeext &&
19637 $as_test_x conftest$ac_exeext; then
19638 ac_cv_lib_ncurses_tparm=yes
19640 echo "$as_me: failed program was
:" >&5
19641 sed 's/^/| /' conftest.$ac_ext >&5
19643 ac_cv_lib_ncurses_tparm=no
19646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19647 conftest$ac_exeext conftest.$ac_ext
19648 LIBS=$ac_check_lib_save_LIBS
19650 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ncurses_tparm" >&5
19651 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19652 if test $ac_cv_lib_ncurses_tparm = yes; then
19653 cat >>confdefs.h <<_ACEOF
19654 #define HAVE_LIBNCURSES 1
19657 LIBS="-lncurses $LIBS"
19662 # Do we have res_init, for detecting changes in /etc/resolv.conf?
19665 cat >conftest.$ac_ext <<_ACEOF
19668 cat confdefs.h >>conftest.$ac_ext
19669 cat >>conftest.$ac_ext <<_ACEOF
19670 /* end confdefs.h. */
19671 #include <netinet/in.h>
19672 #include <arpa/nameser.h>
19673 #include <resolv.h>
19682 rm -f conftest.$ac_objext conftest$ac_exeext
19683 if { (ac_try="$ac_link"
19684 case "(($ac_try" in
19685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19686 *) ac_try_echo=$ac_try;;
19688 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19689 (eval "$ac_link") 2>conftest.er1
19691 grep -v '^ *+' conftest.er1 >conftest.err
19693 cat conftest.err >&5
19694 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19695 (exit $ac_status); } && {
19696 test -z "$ac_c_werror_flag" ||
19697 test ! -s conftest.err
19698 } && test -s conftest$ac_exeext &&
19699 $as_test_x conftest$ac_exeext; then
19702 echo "$as_me: failed program was
:" >&5
19703 sed 's/^/| /' conftest.$ac_ext >&5
19708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19709 conftest$ac_exeext conftest.$ac_ext
19710 if test "$have_res_init" = no; then
19712 LIBS="$LIBS -lresolv"
19713 { echo "$as_me:$LINENO: checking
for res_init with
-lresolv" >&5
19714 echo $ECHO_N "checking
for res_init with
-lresolv...
$ECHO_C" >&6; }
19715 cat >conftest.$ac_ext <<_ACEOF
19718 cat confdefs.h >>conftest.$ac_ext
19719 cat >>conftest.$ac_ext <<_ACEOF
19720 /* end confdefs.h. */
19721 #include <netinet/in.h>
19722 #include <arpa/nameser.h>
19723 #include <resolv.h>
19732 rm -f conftest.$ac_objext conftest$ac_exeext
19733 if { (ac_try="$ac_link"
19734 case "(($ac_try" in
19735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19736 *) ac_try_echo=$ac_try;;
19738 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19739 (eval "$ac_link") 2>conftest.er1
19741 grep -v '^ *+' conftest.er1 >conftest.err
19743 cat conftest.err >&5
19744 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19745 (exit $ac_status); } && {
19746 test -z "$ac_c_werror_flag" ||
19747 test ! -s conftest.err
19748 } && test -s conftest$ac_exeext &&
19749 $as_test_x conftest$ac_exeext; then
19752 echo "$as_me: failed program was
:" >&5
19753 sed 's/^/| /' conftest.$ac_ext >&5
19758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19759 conftest$ac_exeext conftest.$ac_ext
19760 { echo "$as_me:$LINENO: result
: $have_res_init" >&5
19761 echo "${ECHO_T}$have_res_init" >&6; }
19762 if test "$have_res_init" = yes ; then
19768 if test "$have_res_init" = yes; then
19770 cat >>confdefs.h <<\_ACEOF
19771 #define HAVE_RES_INIT 1
19776 # Do we need the Hesiod library to provide the support routines?
19777 if test "$with_hesiod" = yes ; then
19778 # Don't set $LIBS here -- see comments above.
19779 { echo "$as_me:$LINENO: checking
for res_send
" >&5
19780 echo $ECHO_N "checking
for res_send...
$ECHO_C" >&6; }
19781 if test "${ac_cv_func_res_send+set}" = set; then
19782 echo $ECHO_N "(cached
) $ECHO_C" >&6
19784 cat >conftest.$ac_ext <<_ACEOF
19787 cat confdefs.h >>conftest.$ac_ext
19788 cat >>conftest.$ac_ext <<_ACEOF
19789 /* end confdefs.h. */
19790 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19791 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19792 #define res_send innocuous_res_send
19794 /* System header to define __stub macros and hopefully few prototypes,
19795 which can conflict with char res_send (); below.
19796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19797 <limits.h> exists even on freestanding compilers. */
19800 # include <limits.h>
19802 # include <assert.h>
19807 /* Override any GCC internal prototype to avoid an error.
19808 Use char because int might match the return type of a GCC
19809 builtin and then its argument prototype would still apply. */
19814 /* The GNU C library defines this for functions which it implements
19815 to always fail with ENOSYS. Some functions are actually named
19816 something starting with __ and the normal name is an alias. */
19817 #if defined __stub_res_send || defined __stub___res_send
19824 return res_send ();
19829 rm -f conftest.$ac_objext conftest$ac_exeext
19830 if { (ac_try="$ac_link"
19831 case "(($ac_try" in
19832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19833 *) ac_try_echo=$ac_try;;
19835 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19836 (eval "$ac_link") 2>conftest.er1
19838 grep -v '^ *+' conftest.er1 >conftest.err
19840 cat conftest.err >&5
19841 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19842 (exit $ac_status); } && {
19843 test -z "$ac_c_werror_flag" ||
19844 test ! -s conftest.err
19845 } && test -s conftest$ac_exeext &&
19846 $as_test_x conftest$ac_exeext; then
19847 ac_cv_func_res_send=yes
19849 echo "$as_me: failed program was
:" >&5
19850 sed 's/^/| /' conftest.$ac_ext >&5
19852 ac_cv_func_res_send=no
19855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19856 conftest$ac_exeext conftest.$ac_ext
19858 { echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
19859 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19860 if test $ac_cv_func_res_send = yes; then
19863 { echo "$as_me:$LINENO: checking
for __res_send
" >&5
19864 echo $ECHO_N "checking
for __res_send...
$ECHO_C" >&6; }
19865 if test "${ac_cv_func___res_send+set}" = set; then
19866 echo $ECHO_N "(cached
) $ECHO_C" >&6
19868 cat >conftest.$ac_ext <<_ACEOF
19871 cat confdefs.h >>conftest.$ac_ext
19872 cat >>conftest.$ac_ext <<_ACEOF
19873 /* end confdefs.h. */
19874 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19875 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19876 #define __res_send innocuous___res_send
19878 /* System header to define __stub macros and hopefully few prototypes,
19879 which can conflict with char __res_send (); below.
19880 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19881 <limits.h> exists even on freestanding compilers. */
19884 # include <limits.h>
19886 # include <assert.h>
19891 /* Override any GCC internal prototype to avoid an error.
19892 Use char because int might match the return type of a GCC
19893 builtin and then its argument prototype would still apply. */
19897 char __res_send ();
19898 /* The GNU C library defines this for functions which it implements
19899 to always fail with ENOSYS. Some functions are actually named
19900 something starting with __ and the normal name is an alias. */
19901 #if defined __stub___res_send || defined __stub_____res_send
19908 return __res_send ();
19913 rm -f conftest.$ac_objext conftest$ac_exeext
19914 if { (ac_try="$ac_link"
19915 case "(($ac_try" in
19916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19917 *) ac_try_echo=$ac_try;;
19919 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19920 (eval "$ac_link") 2>conftest.er1
19922 grep -v '^ *+' conftest.er1 >conftest.err
19924 cat conftest.err >&5
19925 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19926 (exit $ac_status); } && {
19927 test -z "$ac_c_werror_flag" ||
19928 test ! -s conftest.err
19929 } && test -s conftest$ac_exeext &&
19930 $as_test_x conftest$ac_exeext; then
19931 ac_cv_func___res_send=yes
19933 echo "$as_me: failed program was
:" >&5
19934 sed 's/^/| /' conftest.$ac_ext >&5
19936 ac_cv_func___res_send=no
19939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19940 conftest$ac_exeext conftest.$ac_ext
19942 { echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
19943 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19944 if test $ac_cv_func___res_send = yes; then
19947 { echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
19948 echo $ECHO_N "checking
for res_send
in -lresolv...
$ECHO_C" >&6; }
19949 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19950 echo $ECHO_N "(cached
) $ECHO_C" >&6
19952 ac_check_lib_save_LIBS=$LIBS
19953 LIBS="-lresolv $LIBS"
19954 cat >conftest.$ac_ext <<_ACEOF
19957 cat confdefs.h >>conftest.$ac_ext
19958 cat >>conftest.$ac_ext <<_ACEOF
19959 /* end confdefs.h. */
19961 /* Override any GCC internal prototype to avoid an error.
19962 Use char because int might match the return type of a GCC
19963 builtin and then its argument prototype would still apply. */
19971 return res_send ();
19976 rm -f conftest.$ac_objext conftest$ac_exeext
19977 if { (ac_try="$ac_link"
19978 case "(($ac_try" in
19979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19980 *) ac_try_echo=$ac_try;;
19982 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19983 (eval "$ac_link") 2>conftest.er1
19985 grep -v '^ *+' conftest.er1 >conftest.err
19987 cat conftest.err >&5
19988 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19989 (exit $ac_status); } && {
19990 test -z "$ac_c_werror_flag" ||
19991 test ! -s conftest.err
19992 } && test -s conftest$ac_exeext &&
19993 $as_test_x conftest$ac_exeext; then
19994 ac_cv_lib_resolv_res_send=yes
19996 echo "$as_me: failed program was
:" >&5
19997 sed 's/^/| /' conftest.$ac_ext >&5
19999 ac_cv_lib_resolv_res_send=no
20002 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20003 conftest$ac_exeext conftest.$ac_ext
20004 LIBS=$ac_check_lib_save_LIBS
20006 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
20007 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
20008 if test $ac_cv_lib_resolv_res_send = yes; then
20011 { echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
20012 echo $ECHO_N "checking
for __res_send
in -lresolv...
$ECHO_C" >&6; }
20013 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
20014 echo $ECHO_N "(cached
) $ECHO_C" >&6
20016 ac_check_lib_save_LIBS=$LIBS
20017 LIBS="-lresolv $LIBS"
20018 cat >conftest.$ac_ext <<_ACEOF
20021 cat confdefs.h >>conftest.$ac_ext
20022 cat >>conftest.$ac_ext <<_ACEOF
20023 /* end confdefs.h. */
20025 /* Override any GCC internal prototype to avoid an error.
20026 Use char because int might match the return type of a GCC
20027 builtin and then its argument prototype would still apply. */
20031 char __res_send ();
20035 return __res_send ();
20040 rm -f conftest.$ac_objext conftest$ac_exeext
20041 if { (ac_try="$ac_link"
20042 case "(($ac_try" in
20043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20044 *) ac_try_echo=$ac_try;;
20046 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20047 (eval "$ac_link") 2>conftest.er1
20049 grep -v '^ *+' conftest.er1 >conftest.err
20051 cat conftest.err >&5
20052 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20053 (exit $ac_status); } && {
20054 test -z "$ac_c_werror_flag" ||
20055 test ! -s conftest.err
20056 } && test -s conftest$ac_exeext &&
20057 $as_test_x conftest$ac_exeext; then
20058 ac_cv_lib_resolv___res_send=yes
20060 echo "$as_me: failed program was
:" >&5
20061 sed 's/^/| /' conftest.$ac_ext >&5
20063 ac_cv_lib_resolv___res_send=no
20066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20067 conftest$ac_exeext conftest.$ac_ext
20068 LIBS=$ac_check_lib_save_LIBS
20070 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
20071 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
20072 if test $ac_cv_lib_resolv___res_send = yes; then
20082 if test "$resolv" = yes ; then
20087 { echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
20088 echo $ECHO_N "checking
for hes_getmailhost...
$ECHO_C" >&6; }
20089 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
20090 echo $ECHO_N "(cached
) $ECHO_C" >&6
20092 cat >conftest.$ac_ext <<_ACEOF
20095 cat confdefs.h >>conftest.$ac_ext
20096 cat >>conftest.$ac_ext <<_ACEOF
20097 /* end confdefs.h. */
20098 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
20099 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20100 #define hes_getmailhost innocuous_hes_getmailhost
20102 /* System header to define __stub macros and hopefully few prototypes,
20103 which can conflict with char hes_getmailhost (); below.
20104 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20105 <limits.h> exists even on freestanding compilers. */
20108 # include <limits.h>
20110 # include <assert.h>
20113 #undef hes_getmailhost
20115 /* Override any GCC internal prototype to avoid an error.
20116 Use char because int might match the return type of a GCC
20117 builtin and then its argument prototype would still apply. */
20121 char hes_getmailhost ();
20122 /* The GNU C library defines this for functions which it implements
20123 to always fail with ENOSYS. Some functions are actually named
20124 something starting with __ and the normal name is an alias. */
20125 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
20132 return hes_getmailhost ();
20137 rm -f conftest.$ac_objext conftest$ac_exeext
20138 if { (ac_try="$ac_link"
20139 case "(($ac_try" in
20140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20141 *) ac_try_echo=$ac_try;;
20143 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20144 (eval "$ac_link") 2>conftest.er1
20146 grep -v '^ *+' conftest.er1 >conftest.err
20148 cat conftest.err >&5
20149 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20150 (exit $ac_status); } && {
20151 test -z "$ac_c_werror_flag" ||
20152 test ! -s conftest.err
20153 } && test -s conftest$ac_exeext &&
20154 $as_test_x conftest$ac_exeext; then
20155 ac_cv_func_hes_getmailhost=yes
20157 echo "$as_me: failed program was
:" >&5
20158 sed 's/^/| /' conftest.$ac_ext >&5
20160 ac_cv_func_hes_getmailhost=no
20163 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20164 conftest$ac_exeext conftest.$ac_ext
20166 { echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
20167 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20168 if test $ac_cv_func_hes_getmailhost = yes; then
20171 { echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
20172 echo $ECHO_N "checking
for hes_getmailhost
in -lhesiod...
$ECHO_C" >&6; }
20173 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20174 echo $ECHO_N "(cached
) $ECHO_C" >&6
20176 ac_check_lib_save_LIBS=$LIBS
20177 LIBS="-lhesiod $RESOLVLIB $LIBS"
20178 cat >conftest.$ac_ext <<_ACEOF
20181 cat confdefs.h >>conftest.$ac_ext
20182 cat >>conftest.$ac_ext <<_ACEOF
20183 /* end confdefs.h. */
20185 /* Override any GCC internal prototype to avoid an error.
20186 Use char because int might match the return type of a GCC
20187 builtin and then its argument prototype would still apply. */
20191 char hes_getmailhost ();
20195 return hes_getmailhost ();
20200 rm -f conftest.$ac_objext conftest$ac_exeext
20201 if { (ac_try="$ac_link"
20202 case "(($ac_try" in
20203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20204 *) ac_try_echo=$ac_try;;
20206 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20207 (eval "$ac_link") 2>conftest.er1
20209 grep -v '^ *+' conftest.er1 >conftest.err
20211 cat conftest.err >&5
20212 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20213 (exit $ac_status); } && {
20214 test -z "$ac_c_werror_flag" ||
20215 test ! -s conftest.err
20216 } && test -s conftest$ac_exeext &&
20217 $as_test_x conftest$ac_exeext; then
20218 ac_cv_lib_hesiod_hes_getmailhost=yes
20220 echo "$as_me: failed program was
:" >&5
20221 sed 's/^/| /' conftest.$ac_ext >&5
20223 ac_cv_lib_hesiod_hes_getmailhost=no
20226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20227 conftest$ac_exeext conftest.$ac_ext
20228 LIBS=$ac_check_lib_save_LIBS
20230 { echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20231 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20232 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20234 cat >>confdefs.h <<\_ACEOF
20235 #define HAVE_LIBHESIOD 1
20246 # Do we need libresolv (due to res_init or Hesiod)?
20247 if test "$resolv" = yes ; then
20249 cat >>confdefs.h <<\_ACEOF
20250 #define HAVE_LIBRESOLV 1
20255 # These tell us which Kerberos-related libraries to use.
20256 if test "${with_kerberos+set}" = set; then
20258 { echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
20259 echo $ECHO_N "checking
for com_err
in -lcom_err...
$ECHO_C" >&6; }
20260 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20261 echo $ECHO_N "(cached
) $ECHO_C" >&6
20263 ac_check_lib_save_LIBS=$LIBS
20264 LIBS="-lcom_err $LIBS"
20265 cat >conftest.$ac_ext <<_ACEOF
20268 cat confdefs.h >>conftest.$ac_ext
20269 cat >>conftest.$ac_ext <<_ACEOF
20270 /* end confdefs.h. */
20272 /* Override any GCC internal prototype to avoid an error.
20273 Use char because int might match the return type of a GCC
20274 builtin and then its argument prototype would still apply. */
20287 rm -f conftest.$ac_objext conftest$ac_exeext
20288 if { (ac_try="$ac_link"
20289 case "(($ac_try" in
20290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20291 *) ac_try_echo=$ac_try;;
20293 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20294 (eval "$ac_link") 2>conftest.er1
20296 grep -v '^ *+' conftest.er1 >conftest.err
20298 cat conftest.err >&5
20299 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20300 (exit $ac_status); } && {
20301 test -z "$ac_c_werror_flag" ||
20302 test ! -s conftest.err
20303 } && test -s conftest$ac_exeext &&
20304 $as_test_x conftest$ac_exeext; then
20305 ac_cv_lib_com_err_com_err=yes
20307 echo "$as_me: failed program was
:" >&5
20308 sed 's/^/| /' conftest.$ac_ext >&5
20310 ac_cv_lib_com_err_com_err=no
20313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20314 conftest$ac_exeext conftest.$ac_ext
20315 LIBS=$ac_check_lib_save_LIBS
20317 { echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
20318 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20319 if test $ac_cv_lib_com_err_com_err = yes; then
20320 cat >>confdefs.h <<_ACEOF
20321 #define HAVE_LIBCOM_ERR 1
20324 LIBS="-lcom_err $LIBS"
20329 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
20330 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lk5crypto...
$ECHO_C" >&6; }
20331 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20332 echo $ECHO_N "(cached
) $ECHO_C" >&6
20334 ac_check_lib_save_LIBS=$LIBS
20335 LIBS="-lk5crypto $LIBS"
20336 cat >conftest.$ac_ext <<_ACEOF
20339 cat confdefs.h >>conftest.$ac_ext
20340 cat >>conftest.$ac_ext <<_ACEOF
20341 /* end confdefs.h. */
20343 /* Override any GCC internal prototype to avoid an error.
20344 Use char because int might match the return type of a GCC
20345 builtin and then its argument prototype would still apply. */
20349 char mit_des_cbc_encrypt ();
20353 return mit_des_cbc_encrypt ();
20358 rm -f conftest.$ac_objext conftest$ac_exeext
20359 if { (ac_try="$ac_link"
20360 case "(($ac_try" in
20361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20362 *) ac_try_echo=$ac_try;;
20364 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20365 (eval "$ac_link") 2>conftest.er1
20367 grep -v '^ *+' conftest.er1 >conftest.err
20369 cat conftest.err >&5
20370 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20371 (exit $ac_status); } && {
20372 test -z "$ac_c_werror_flag" ||
20373 test ! -s conftest.err
20374 } && test -s conftest$ac_exeext &&
20375 $as_test_x conftest$ac_exeext; then
20376 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20378 echo "$as_me: failed program was
:" >&5
20379 sed 's/^/| /' conftest.$ac_ext >&5
20381 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20384 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20385 conftest$ac_exeext conftest.$ac_ext
20386 LIBS=$ac_check_lib_save_LIBS
20388 { echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20389 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20390 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20391 cat >>confdefs.h <<_ACEOF
20392 #define HAVE_LIBK5CRYPTO 1
20395 LIBS="-lk5crypto $LIBS"
20400 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
20401 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lcrypto...
$ECHO_C" >&6; }
20402 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20403 echo $ECHO_N "(cached
) $ECHO_C" >&6
20405 ac_check_lib_save_LIBS=$LIBS
20406 LIBS="-lcrypto $LIBS"
20407 cat >conftest.$ac_ext <<_ACEOF
20410 cat confdefs.h >>conftest.$ac_ext
20411 cat >>conftest.$ac_ext <<_ACEOF
20412 /* end confdefs.h. */
20414 /* Override any GCC internal prototype to avoid an error.
20415 Use char because int might match the return type of a GCC
20416 builtin and then its argument prototype would still apply. */
20420 char mit_des_cbc_encrypt ();
20424 return mit_des_cbc_encrypt ();
20429 rm -f conftest.$ac_objext conftest$ac_exeext
20430 if { (ac_try="$ac_link"
20431 case "(($ac_try" in
20432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20433 *) ac_try_echo=$ac_try;;
20435 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20436 (eval "$ac_link") 2>conftest.er1
20438 grep -v '^ *+' conftest.er1 >conftest.err
20440 cat conftest.err >&5
20441 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20442 (exit $ac_status); } && {
20443 test -z "$ac_c_werror_flag" ||
20444 test ! -s conftest.err
20445 } && test -s conftest$ac_exeext &&
20446 $as_test_x conftest$ac_exeext; then
20447 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20449 echo "$as_me: failed program was
:" >&5
20450 sed 's/^/| /' conftest.$ac_ext >&5
20452 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20456 conftest$ac_exeext conftest.$ac_ext
20457 LIBS=$ac_check_lib_save_LIBS
20459 { echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20460 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20461 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20462 cat >>confdefs.h <<_ACEOF
20463 #define HAVE_LIBCRYPTO 1
20466 LIBS="-lcrypto $LIBS"
20471 { echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
20472 echo $ECHO_N "checking
for krb5_init_context
in -lkrb5...
$ECHO_C" >&6; }
20473 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20474 echo $ECHO_N "(cached
) $ECHO_C" >&6
20476 ac_check_lib_save_LIBS=$LIBS
20477 LIBS="-lkrb5 $LIBS"
20478 cat >conftest.$ac_ext <<_ACEOF
20481 cat confdefs.h >>conftest.$ac_ext
20482 cat >>conftest.$ac_ext <<_ACEOF
20483 /* end confdefs.h. */
20485 /* Override any GCC internal prototype to avoid an error.
20486 Use char because int might match the return type of a GCC
20487 builtin and then its argument prototype would still apply. */
20491 char krb5_init_context ();
20495 return krb5_init_context ();
20500 rm -f conftest.$ac_objext conftest$ac_exeext
20501 if { (ac_try="$ac_link"
20502 case "(($ac_try" in
20503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20504 *) ac_try_echo=$ac_try;;
20506 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20507 (eval "$ac_link") 2>conftest.er1
20509 grep -v '^ *+' conftest.er1 >conftest.err
20511 cat conftest.err >&5
20512 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20513 (exit $ac_status); } && {
20514 test -z "$ac_c_werror_flag" ||
20515 test ! -s conftest.err
20516 } && test -s conftest$ac_exeext &&
20517 $as_test_x conftest$ac_exeext; then
20518 ac_cv_lib_krb5_krb5_init_context=yes
20520 echo "$as_me: failed program was
:" >&5
20521 sed 's/^/| /' conftest.$ac_ext >&5
20523 ac_cv_lib_krb5_krb5_init_context=no
20526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20527 conftest$ac_exeext conftest.$ac_ext
20528 LIBS=$ac_check_lib_save_LIBS
20530 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
20531 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20532 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20533 cat >>confdefs.h <<_ACEOF
20534 #define HAVE_LIBKRB5 1
20537 LIBS="-lkrb5 $LIBS"
20541 if test "${with_kerberos5+set}" != set; then
20543 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
20544 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes425...
$ECHO_C" >&6; }
20545 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20546 echo $ECHO_N "(cached
) $ECHO_C" >&6
20548 ac_check_lib_save_LIBS=$LIBS
20549 LIBS="-ldes425 $LIBS"
20550 cat >conftest.$ac_ext <<_ACEOF
20553 cat confdefs.h >>conftest.$ac_ext
20554 cat >>conftest.$ac_ext <<_ACEOF
20555 /* end confdefs.h. */
20557 /* Override any GCC internal prototype to avoid an error.
20558 Use char because int might match the return type of a GCC
20559 builtin and then its argument prototype would still apply. */
20563 char des_cbc_encrypt ();
20567 return des_cbc_encrypt ();
20572 rm -f conftest.$ac_objext conftest$ac_exeext
20573 if { (ac_try="$ac_link"
20574 case "(($ac_try" in
20575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20576 *) ac_try_echo=$ac_try;;
20578 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20579 (eval "$ac_link") 2>conftest.er1
20581 grep -v '^ *+' conftest.er1 >conftest.err
20583 cat conftest.err >&5
20584 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20585 (exit $ac_status); } && {
20586 test -z "$ac_c_werror_flag" ||
20587 test ! -s conftest.err
20588 } && test -s conftest$ac_exeext &&
20589 $as_test_x conftest$ac_exeext; then
20590 ac_cv_lib_des425_des_cbc_encrypt=yes
20592 echo "$as_me: failed program was
:" >&5
20593 sed 's/^/| /' conftest.$ac_ext >&5
20595 ac_cv_lib_des425_des_cbc_encrypt=no
20598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20599 conftest$ac_exeext conftest.$ac_ext
20600 LIBS=$ac_check_lib_save_LIBS
20602 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20603 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20604 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20605 cat >>confdefs.h <<_ACEOF
20606 #define HAVE_LIBDES425 1
20609 LIBS="-ldes425 $LIBS"
20613 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
20614 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes...
$ECHO_C" >&6; }
20615 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20616 echo $ECHO_N "(cached
) $ECHO_C" >&6
20618 ac_check_lib_save_LIBS=$LIBS
20620 cat >conftest.$ac_ext <<_ACEOF
20623 cat confdefs.h >>conftest.$ac_ext
20624 cat >>conftest.$ac_ext <<_ACEOF
20625 /* end confdefs.h. */
20627 /* Override any GCC internal prototype to avoid an error.
20628 Use char because int might match the return type of a GCC
20629 builtin and then its argument prototype would still apply. */
20633 char des_cbc_encrypt ();
20637 return des_cbc_encrypt ();
20642 rm -f conftest.$ac_objext conftest$ac_exeext
20643 if { (ac_try="$ac_link"
20644 case "(($ac_try" in
20645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20646 *) ac_try_echo=$ac_try;;
20648 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20649 (eval "$ac_link") 2>conftest.er1
20651 grep -v '^ *+' conftest.er1 >conftest.err
20653 cat conftest.err >&5
20654 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20655 (exit $ac_status); } && {
20656 test -z "$ac_c_werror_flag" ||
20657 test ! -s conftest.err
20658 } && test -s conftest$ac_exeext &&
20659 $as_test_x conftest$ac_exeext; then
20660 ac_cv_lib_des_des_cbc_encrypt=yes
20662 echo "$as_me: failed program was
:" >&5
20663 sed 's/^/| /' conftest.$ac_ext >&5
20665 ac_cv_lib_des_des_cbc_encrypt=no
20668 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20669 conftest$ac_exeext conftest.$ac_ext
20670 LIBS=$ac_check_lib_save_LIBS
20672 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
20673 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20674 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20675 cat >>confdefs.h <<_ACEOF
20676 #define HAVE_LIBDES 1
20686 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
20687 echo $ECHO_N "checking
for krb_get_cred
in -lkrb4...
$ECHO_C" >&6; }
20688 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20689 echo $ECHO_N "(cached
) $ECHO_C" >&6
20691 ac_check_lib_save_LIBS=$LIBS
20692 LIBS="-lkrb4 $LIBS"
20693 cat >conftest.$ac_ext <<_ACEOF
20696 cat confdefs.h >>conftest.$ac_ext
20697 cat >>conftest.$ac_ext <<_ACEOF
20698 /* end confdefs.h. */
20700 /* Override any GCC internal prototype to avoid an error.
20701 Use char because int might match the return type of a GCC
20702 builtin and then its argument prototype would still apply. */
20706 char krb_get_cred ();
20710 return krb_get_cred ();
20715 rm -f conftest.$ac_objext conftest$ac_exeext
20716 if { (ac_try="$ac_link"
20717 case "(($ac_try" in
20718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20719 *) ac_try_echo=$ac_try;;
20721 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20722 (eval "$ac_link") 2>conftest.er1
20724 grep -v '^ *+' conftest.er1 >conftest.err
20726 cat conftest.err >&5
20727 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20728 (exit $ac_status); } && {
20729 test -z "$ac_c_werror_flag" ||
20730 test ! -s conftest.err
20731 } && test -s conftest$ac_exeext &&
20732 $as_test_x conftest$ac_exeext; then
20733 ac_cv_lib_krb4_krb_get_cred=yes
20735 echo "$as_me: failed program was
:" >&5
20736 sed 's/^/| /' conftest.$ac_ext >&5
20738 ac_cv_lib_krb4_krb_get_cred=no
20741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20742 conftest$ac_exeext conftest.$ac_ext
20743 LIBS=$ac_check_lib_save_LIBS
20745 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
20746 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20747 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20748 cat >>confdefs.h <<_ACEOF
20749 #define HAVE_LIBKRB4 1
20752 LIBS="-lkrb4 $LIBS"
20756 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
20757 echo $ECHO_N "checking
for krb_get_cred
in -lkrb...
$ECHO_C" >&6; }
20758 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20759 echo $ECHO_N "(cached
) $ECHO_C" >&6
20761 ac_check_lib_save_LIBS=$LIBS
20763 cat >conftest.$ac_ext <<_ACEOF
20766 cat confdefs.h >>conftest.$ac_ext
20767 cat >>conftest.$ac_ext <<_ACEOF
20768 /* end confdefs.h. */
20770 /* Override any GCC internal prototype to avoid an error.
20771 Use char because int might match the return type of a GCC
20772 builtin and then its argument prototype would still apply. */
20776 char krb_get_cred ();
20780 return krb_get_cred ();
20785 rm -f conftest.$ac_objext conftest$ac_exeext
20786 if { (ac_try="$ac_link"
20787 case "(($ac_try" in
20788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20789 *) ac_try_echo=$ac_try;;
20791 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20792 (eval "$ac_link") 2>conftest.er1
20794 grep -v '^ *+' conftest.er1 >conftest.err
20796 cat conftest.err >&5
20797 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20798 (exit $ac_status); } && {
20799 test -z "$ac_c_werror_flag" ||
20800 test ! -s conftest.err
20801 } && test -s conftest$ac_exeext &&
20802 $as_test_x conftest$ac_exeext; then
20803 ac_cv_lib_krb_krb_get_cred=yes
20805 echo "$as_me: failed program was
:" >&5
20806 sed 's/^/| /' conftest.$ac_ext >&5
20808 ac_cv_lib_krb_krb_get_cred=no
20811 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20812 conftest$ac_exeext conftest.$ac_ext
20813 LIBS=$ac_check_lib_save_LIBS
20815 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
20816 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20817 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20818 cat >>confdefs.h <<_ACEOF
20819 #define HAVE_LIBKRB 1
20830 if test "${with_kerberos5+set}" = set; then
20832 for ac_header in krb5.h
20834 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20835 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20836 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20837 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20838 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20839 echo $ECHO_N "(cached
) $ECHO_C" >&6
20841 ac_res=`eval echo '${'$as_ac_Header'}'`
20842 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20843 echo "${ECHO_T}$ac_res" >&6; }
20845 # Is the header compilable?
20846 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20847 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20848 cat >conftest.$ac_ext <<_ACEOF
20851 cat confdefs.h >>conftest.$ac_ext
20852 cat >>conftest.$ac_ext <<_ACEOF
20853 /* end confdefs.h. */
20854 $ac_includes_default
20855 #include <$ac_header>
20857 rm -f conftest.$ac_objext
20858 if { (ac_try="$ac_compile"
20859 case "(($ac_try" in
20860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20861 *) ac_try_echo=$ac_try;;
20863 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20864 (eval "$ac_compile") 2>conftest.er1
20866 grep -v '^ *+' conftest.er1 >conftest.err
20868 cat conftest.err >&5
20869 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20870 (exit $ac_status); } && {
20871 test -z "$ac_c_werror_flag" ||
20872 test ! -s conftest.err
20873 } && test -s conftest.$ac_objext; then
20874 ac_header_compiler=yes
20876 echo "$as_me: failed program was
:" >&5
20877 sed 's/^/| /' conftest.$ac_ext >&5
20879 ac_header_compiler=no
20882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20883 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20884 echo "${ECHO_T}$ac_header_compiler" >&6; }
20886 # Is the header present?
20887 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20888 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20889 cat >conftest.$ac_ext <<_ACEOF
20892 cat confdefs.h >>conftest.$ac_ext
20893 cat >>conftest.$ac_ext <<_ACEOF
20894 /* end confdefs.h. */
20895 #include <$ac_header>
20897 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20898 case "(($ac_try" in
20899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20900 *) ac_try_echo=$ac_try;;
20902 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20903 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20905 grep -v '^ *+' conftest.er1 >conftest.err
20907 cat conftest.err >&5
20908 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20909 (exit $ac_status); } >/dev/null && {
20910 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20911 test ! -s conftest.err
20913 ac_header_preproc=yes
20915 echo "$as_me: failed program was
:" >&5
20916 sed 's/^/| /' conftest.$ac_ext >&5
20918 ac_header_preproc=no
20921 rm -f conftest.err conftest.$ac_ext
20922 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20923 echo "${ECHO_T}$ac_header_preproc" >&6; }
20925 # So? What about this header?
20926 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20928 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20929 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20930 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20931 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20932 ac_header_preproc=yes
20935 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20936 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20937 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20938 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20939 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20940 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20941 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20942 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20943 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20944 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20945 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20946 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20950 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20951 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20952 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20953 echo $ECHO_N "(cached
) $ECHO_C" >&6
20955 eval "$as_ac_Header=\
$ac_header_preproc"
20957 ac_res=`eval echo '${'$as_ac_Header'}'`
20958 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20959 echo "${ECHO_T}$ac_res" >&6; }
20962 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20963 cat >>confdefs.h <<_ACEOF
20964 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20973 for ac_header in des.h
20975 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20976 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20977 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20978 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20979 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20980 echo $ECHO_N "(cached
) $ECHO_C" >&6
20982 ac_res=`eval echo '${'$as_ac_Header'}'`
20983 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20984 echo "${ECHO_T}$ac_res" >&6; }
20986 # Is the header compilable?
20987 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20988 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20989 cat >conftest.$ac_ext <<_ACEOF
20992 cat confdefs.h >>conftest.$ac_ext
20993 cat >>conftest.$ac_ext <<_ACEOF
20994 /* end confdefs.h. */
20995 $ac_includes_default
20996 #include <$ac_header>
20998 rm -f conftest.$ac_objext
20999 if { (ac_try="$ac_compile"
21000 case "(($ac_try" in
21001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21002 *) ac_try_echo=$ac_try;;
21004 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21005 (eval "$ac_compile") 2>conftest.er1
21007 grep -v '^ *+' conftest.er1 >conftest.err
21009 cat conftest.err >&5
21010 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21011 (exit $ac_status); } && {
21012 test -z "$ac_c_werror_flag" ||
21013 test ! -s conftest.err
21014 } && test -s conftest.$ac_objext; then
21015 ac_header_compiler=yes
21017 echo "$as_me: failed program was
:" >&5
21018 sed 's/^/| /' conftest.$ac_ext >&5
21020 ac_header_compiler=no
21023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21024 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21025 echo "${ECHO_T}$ac_header_compiler" >&6; }
21027 # Is the header present?
21028 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21029 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21030 cat >conftest.$ac_ext <<_ACEOF
21033 cat confdefs.h >>conftest.$ac_ext
21034 cat >>conftest.$ac_ext <<_ACEOF
21035 /* end confdefs.h. */
21036 #include <$ac_header>
21038 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21039 case "(($ac_try" in
21040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21041 *) ac_try_echo=$ac_try;;
21043 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21044 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21046 grep -v '^ *+' conftest.er1 >conftest.err
21048 cat conftest.err >&5
21049 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21050 (exit $ac_status); } >/dev/null && {
21051 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21052 test ! -s conftest.err
21054 ac_header_preproc=yes
21056 echo "$as_me: failed program was
:" >&5
21057 sed 's/^/| /' conftest.$ac_ext >&5
21059 ac_header_preproc=no
21062 rm -f conftest.err conftest.$ac_ext
21063 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21064 echo "${ECHO_T}$ac_header_preproc" >&6; }
21066 # So? What about this header?
21067 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21069 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21070 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21071 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21072 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21073 ac_header_preproc=yes
21076 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21077 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21078 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21079 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21080 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21081 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21082 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21083 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21084 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21085 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21086 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21087 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21091 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21092 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21093 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21094 echo $ECHO_N "(cached
) $ECHO_C" >&6
21096 eval "$as_ac_Header=\
$ac_header_preproc"
21098 ac_res=`eval echo '${'$as_ac_Header'}'`
21099 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21100 echo "${ECHO_T}$ac_res" >&6; }
21103 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21104 cat >>confdefs.h <<_ACEOF
21105 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21110 for ac_header in kerberosIV/des.h
21112 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21113 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21114 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21115 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21116 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21117 echo $ECHO_N "(cached
) $ECHO_C" >&6
21119 ac_res=`eval echo '${'$as_ac_Header'}'`
21120 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21121 echo "${ECHO_T}$ac_res" >&6; }
21123 # Is the header compilable?
21124 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21125 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21126 cat >conftest.$ac_ext <<_ACEOF
21129 cat confdefs.h >>conftest.$ac_ext
21130 cat >>conftest.$ac_ext <<_ACEOF
21131 /* end confdefs.h. */
21132 $ac_includes_default
21133 #include <$ac_header>
21135 rm -f conftest.$ac_objext
21136 if { (ac_try="$ac_compile"
21137 case "(($ac_try" in
21138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21139 *) ac_try_echo=$ac_try;;
21141 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21142 (eval "$ac_compile") 2>conftest.er1
21144 grep -v '^ *+' conftest.er1 >conftest.err
21146 cat conftest.err >&5
21147 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21148 (exit $ac_status); } && {
21149 test -z "$ac_c_werror_flag" ||
21150 test ! -s conftest.err
21151 } && test -s conftest.$ac_objext; then
21152 ac_header_compiler=yes
21154 echo "$as_me: failed program was
:" >&5
21155 sed 's/^/| /' conftest.$ac_ext >&5
21157 ac_header_compiler=no
21160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21161 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21162 echo "${ECHO_T}$ac_header_compiler" >&6; }
21164 # Is the header present?
21165 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21166 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21167 cat >conftest.$ac_ext <<_ACEOF
21170 cat confdefs.h >>conftest.$ac_ext
21171 cat >>conftest.$ac_ext <<_ACEOF
21172 /* end confdefs.h. */
21173 #include <$ac_header>
21175 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21176 case "(($ac_try" in
21177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21178 *) ac_try_echo=$ac_try;;
21180 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21181 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21183 grep -v '^ *+' conftest.er1 >conftest.err
21185 cat conftest.err >&5
21186 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21187 (exit $ac_status); } >/dev/null && {
21188 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21189 test ! -s conftest.err
21191 ac_header_preproc=yes
21193 echo "$as_me: failed program was
:" >&5
21194 sed 's/^/| /' conftest.$ac_ext >&5
21196 ac_header_preproc=no
21199 rm -f conftest.err conftest.$ac_ext
21200 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21201 echo "${ECHO_T}$ac_header_preproc" >&6; }
21203 # So? What about this header?
21204 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21206 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21207 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21208 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21209 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21210 ac_header_preproc=yes
21213 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21214 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21215 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21216 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21217 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21218 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21219 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21220 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21221 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21222 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21223 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21224 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21228 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21229 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21230 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21231 echo $ECHO_N "(cached
) $ECHO_C" >&6
21233 eval "$as_ac_Header=\
$ac_header_preproc"
21235 ac_res=`eval echo '${'$as_ac_Header'}'`
21236 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21237 echo "${ECHO_T}$ac_res" >&6; }
21240 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21241 cat >>confdefs.h <<_ACEOF
21242 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21247 for ac_header in kerberos/des.h
21249 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21250 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21251 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21252 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21253 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21254 echo $ECHO_N "(cached
) $ECHO_C" >&6
21256 ac_res=`eval echo '${'$as_ac_Header'}'`
21257 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21258 echo "${ECHO_T}$ac_res" >&6; }
21260 # Is the header compilable?
21261 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21262 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21263 cat >conftest.$ac_ext <<_ACEOF
21266 cat confdefs.h >>conftest.$ac_ext
21267 cat >>conftest.$ac_ext <<_ACEOF
21268 /* end confdefs.h. */
21269 $ac_includes_default
21270 #include <$ac_header>
21272 rm -f conftest.$ac_objext
21273 if { (ac_try="$ac_compile"
21274 case "(($ac_try" in
21275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21276 *) ac_try_echo=$ac_try;;
21278 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21279 (eval "$ac_compile") 2>conftest.er1
21281 grep -v '^ *+' conftest.er1 >conftest.err
21283 cat conftest.err >&5
21284 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21285 (exit $ac_status); } && {
21286 test -z "$ac_c_werror_flag" ||
21287 test ! -s conftest.err
21288 } && test -s conftest.$ac_objext; then
21289 ac_header_compiler=yes
21291 echo "$as_me: failed program was
:" >&5
21292 sed 's/^/| /' conftest.$ac_ext >&5
21294 ac_header_compiler=no
21297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21298 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21299 echo "${ECHO_T}$ac_header_compiler" >&6; }
21301 # Is the header present?
21302 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21303 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21304 cat >conftest.$ac_ext <<_ACEOF
21307 cat confdefs.h >>conftest.$ac_ext
21308 cat >>conftest.$ac_ext <<_ACEOF
21309 /* end confdefs.h. */
21310 #include <$ac_header>
21312 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21313 case "(($ac_try" in
21314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21315 *) ac_try_echo=$ac_try;;
21317 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21318 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21320 grep -v '^ *+' conftest.er1 >conftest.err
21322 cat conftest.err >&5
21323 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21324 (exit $ac_status); } >/dev/null && {
21325 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21326 test ! -s conftest.err
21328 ac_header_preproc=yes
21330 echo "$as_me: failed program was
:" >&5
21331 sed 's/^/| /' conftest.$ac_ext >&5
21333 ac_header_preproc=no
21336 rm -f conftest.err conftest.$ac_ext
21337 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21338 echo "${ECHO_T}$ac_header_preproc" >&6; }
21340 # So? What about this header?
21341 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21343 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21344 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21345 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21346 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21347 ac_header_preproc=yes
21350 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21351 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21352 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21353 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21354 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21355 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21356 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21357 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21358 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21359 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21360 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21361 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21365 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21366 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21367 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21368 echo $ECHO_N "(cached
) $ECHO_C" >&6
21370 eval "$as_ac_Header=\
$ac_header_preproc"
21372 ac_res=`eval echo '${'$as_ac_Header'}'`
21373 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21374 echo "${ECHO_T}$ac_res" >&6; }
21377 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21378 cat >>confdefs.h <<_ACEOF
21379 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21395 for ac_header in krb.h
21397 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21398 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21399 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21400 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21401 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21402 echo $ECHO_N "(cached
) $ECHO_C" >&6
21404 ac_res=`eval echo '${'$as_ac_Header'}'`
21405 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21406 echo "${ECHO_T}$ac_res" >&6; }
21408 # Is the header compilable?
21409 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21410 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21411 cat >conftest.$ac_ext <<_ACEOF
21414 cat confdefs.h >>conftest.$ac_ext
21415 cat >>conftest.$ac_ext <<_ACEOF
21416 /* end confdefs.h. */
21417 $ac_includes_default
21418 #include <$ac_header>
21420 rm -f conftest.$ac_objext
21421 if { (ac_try="$ac_compile"
21422 case "(($ac_try" in
21423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21424 *) ac_try_echo=$ac_try;;
21426 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21427 (eval "$ac_compile") 2>conftest.er1
21429 grep -v '^ *+' conftest.er1 >conftest.err
21431 cat conftest.err >&5
21432 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21433 (exit $ac_status); } && {
21434 test -z "$ac_c_werror_flag" ||
21435 test ! -s conftest.err
21436 } && test -s conftest.$ac_objext; then
21437 ac_header_compiler=yes
21439 echo "$as_me: failed program was
:" >&5
21440 sed 's/^/| /' conftest.$ac_ext >&5
21442 ac_header_compiler=no
21445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21446 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21447 echo "${ECHO_T}$ac_header_compiler" >&6; }
21449 # Is the header present?
21450 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21451 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21452 cat >conftest.$ac_ext <<_ACEOF
21455 cat confdefs.h >>conftest.$ac_ext
21456 cat >>conftest.$ac_ext <<_ACEOF
21457 /* end confdefs.h. */
21458 #include <$ac_header>
21460 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21461 case "(($ac_try" in
21462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21463 *) ac_try_echo=$ac_try;;
21465 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21466 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21468 grep -v '^ *+' conftest.er1 >conftest.err
21470 cat conftest.err >&5
21471 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21472 (exit $ac_status); } >/dev/null && {
21473 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21474 test ! -s conftest.err
21476 ac_header_preproc=yes
21478 echo "$as_me: failed program was
:" >&5
21479 sed 's/^/| /' conftest.$ac_ext >&5
21481 ac_header_preproc=no
21484 rm -f conftest.err conftest.$ac_ext
21485 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21486 echo "${ECHO_T}$ac_header_preproc" >&6; }
21488 # So? What about this header?
21489 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21491 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21492 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21493 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21494 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21495 ac_header_preproc=yes
21498 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21499 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21500 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21501 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21502 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21503 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21504 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21505 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21506 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21507 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21508 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21509 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21513 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21514 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21515 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21516 echo $ECHO_N "(cached
) $ECHO_C" >&6
21518 eval "$as_ac_Header=\
$ac_header_preproc"
21520 ac_res=`eval echo '${'$as_ac_Header'}'`
21521 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21522 echo "${ECHO_T}$ac_res" >&6; }
21525 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21526 cat >>confdefs.h <<_ACEOF
21527 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21532 for ac_header in kerberosIV/krb.h
21534 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21535 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21536 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21537 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21538 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21539 echo $ECHO_N "(cached
) $ECHO_C" >&6
21541 ac_res=`eval echo '${'$as_ac_Header'}'`
21542 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21543 echo "${ECHO_T}$ac_res" >&6; }
21545 # Is the header compilable?
21546 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21547 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21548 cat >conftest.$ac_ext <<_ACEOF
21551 cat confdefs.h >>conftest.$ac_ext
21552 cat >>conftest.$ac_ext <<_ACEOF
21553 /* end confdefs.h. */
21554 $ac_includes_default
21555 #include <$ac_header>
21557 rm -f conftest.$ac_objext
21558 if { (ac_try="$ac_compile"
21559 case "(($ac_try" in
21560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21561 *) ac_try_echo=$ac_try;;
21563 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21564 (eval "$ac_compile") 2>conftest.er1
21566 grep -v '^ *+' conftest.er1 >conftest.err
21568 cat conftest.err >&5
21569 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21570 (exit $ac_status); } && {
21571 test -z "$ac_c_werror_flag" ||
21572 test ! -s conftest.err
21573 } && test -s conftest.$ac_objext; then
21574 ac_header_compiler=yes
21576 echo "$as_me: failed program was
:" >&5
21577 sed 's/^/| /' conftest.$ac_ext >&5
21579 ac_header_compiler=no
21582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21583 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21584 echo "${ECHO_T}$ac_header_compiler" >&6; }
21586 # Is the header present?
21587 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21588 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21589 cat >conftest.$ac_ext <<_ACEOF
21592 cat confdefs.h >>conftest.$ac_ext
21593 cat >>conftest.$ac_ext <<_ACEOF
21594 /* end confdefs.h. */
21595 #include <$ac_header>
21597 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21598 case "(($ac_try" in
21599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21600 *) ac_try_echo=$ac_try;;
21602 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21603 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21605 grep -v '^ *+' conftest.er1 >conftest.err
21607 cat conftest.err >&5
21608 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21609 (exit $ac_status); } >/dev/null && {
21610 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21611 test ! -s conftest.err
21613 ac_header_preproc=yes
21615 echo "$as_me: failed program was
:" >&5
21616 sed 's/^/| /' conftest.$ac_ext >&5
21618 ac_header_preproc=no
21621 rm -f conftest.err conftest.$ac_ext
21622 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21623 echo "${ECHO_T}$ac_header_preproc" >&6; }
21625 # So? What about this header?
21626 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21628 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21629 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21630 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21631 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21632 ac_header_preproc=yes
21635 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21636 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21637 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21638 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21639 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21640 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21641 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21642 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21643 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21644 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21645 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21646 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21650 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21651 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21652 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21653 echo $ECHO_N "(cached
) $ECHO_C" >&6
21655 eval "$as_ac_Header=\
$ac_header_preproc"
21657 ac_res=`eval echo '${'$as_ac_Header'}'`
21658 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21659 echo "${ECHO_T}$ac_res" >&6; }
21662 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21663 cat >>confdefs.h <<_ACEOF
21664 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21669 for ac_header in kerberos/krb.h
21671 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21672 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21673 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21674 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21675 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21676 echo $ECHO_N "(cached
) $ECHO_C" >&6
21678 ac_res=`eval echo '${'$as_ac_Header'}'`
21679 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21680 echo "${ECHO_T}$ac_res" >&6; }
21682 # Is the header compilable?
21683 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21684 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21685 cat >conftest.$ac_ext <<_ACEOF
21688 cat confdefs.h >>conftest.$ac_ext
21689 cat >>conftest.$ac_ext <<_ACEOF
21690 /* end confdefs.h. */
21691 $ac_includes_default
21692 #include <$ac_header>
21694 rm -f conftest.$ac_objext
21695 if { (ac_try="$ac_compile"
21696 case "(($ac_try" in
21697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21698 *) ac_try_echo=$ac_try;;
21700 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21701 (eval "$ac_compile") 2>conftest.er1
21703 grep -v '^ *+' conftest.er1 >conftest.err
21705 cat conftest.err >&5
21706 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21707 (exit $ac_status); } && {
21708 test -z "$ac_c_werror_flag" ||
21709 test ! -s conftest.err
21710 } && test -s conftest.$ac_objext; then
21711 ac_header_compiler=yes
21713 echo "$as_me: failed program was
:" >&5
21714 sed 's/^/| /' conftest.$ac_ext >&5
21716 ac_header_compiler=no
21719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21720 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21721 echo "${ECHO_T}$ac_header_compiler" >&6; }
21723 # Is the header present?
21724 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21725 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21726 cat >conftest.$ac_ext <<_ACEOF
21729 cat confdefs.h >>conftest.$ac_ext
21730 cat >>conftest.$ac_ext <<_ACEOF
21731 /* end confdefs.h. */
21732 #include <$ac_header>
21734 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21735 case "(($ac_try" in
21736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21737 *) ac_try_echo=$ac_try;;
21739 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21740 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21742 grep -v '^ *+' conftest.er1 >conftest.err
21744 cat conftest.err >&5
21745 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21746 (exit $ac_status); } >/dev/null && {
21747 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21748 test ! -s conftest.err
21750 ac_header_preproc=yes
21752 echo "$as_me: failed program was
:" >&5
21753 sed 's/^/| /' conftest.$ac_ext >&5
21755 ac_header_preproc=no
21758 rm -f conftest.err conftest.$ac_ext
21759 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21760 echo "${ECHO_T}$ac_header_preproc" >&6; }
21762 # So? What about this header?
21763 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21765 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21766 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21767 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21768 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21769 ac_header_preproc=yes
21772 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21773 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21774 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21775 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21776 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21777 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21778 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21779 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21780 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21781 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21782 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21783 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21787 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21788 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21789 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21790 echo $ECHO_N "(cached
) $ECHO_C" >&6
21792 eval "$as_ac_Header=\
$ac_header_preproc"
21794 ac_res=`eval echo '${'$as_ac_Header'}'`
21795 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21796 echo "${ECHO_T}$ac_res" >&6; }
21799 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21800 cat >>confdefs.h <<_ACEOF
21801 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21818 for ac_header in com_err.h
21820 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21821 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21822 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21823 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21824 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21825 echo $ECHO_N "(cached
) $ECHO_C" >&6
21827 ac_res=`eval echo '${'$as_ac_Header'}'`
21828 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21829 echo "${ECHO_T}$ac_res" >&6; }
21831 # Is the header compilable?
21832 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21833 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21834 cat >conftest.$ac_ext <<_ACEOF
21837 cat confdefs.h >>conftest.$ac_ext
21838 cat >>conftest.$ac_ext <<_ACEOF
21839 /* end confdefs.h. */
21840 $ac_includes_default
21841 #include <$ac_header>
21843 rm -f conftest.$ac_objext
21844 if { (ac_try="$ac_compile"
21845 case "(($ac_try" in
21846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21847 *) ac_try_echo=$ac_try;;
21849 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21850 (eval "$ac_compile") 2>conftest.er1
21852 grep -v '^ *+' conftest.er1 >conftest.err
21854 cat conftest.err >&5
21855 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21856 (exit $ac_status); } && {
21857 test -z "$ac_c_werror_flag" ||
21858 test ! -s conftest.err
21859 } && test -s conftest.$ac_objext; then
21860 ac_header_compiler=yes
21862 echo "$as_me: failed program was
:" >&5
21863 sed 's/^/| /' conftest.$ac_ext >&5
21865 ac_header_compiler=no
21868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21869 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21870 echo "${ECHO_T}$ac_header_compiler" >&6; }
21872 # Is the header present?
21873 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21874 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21875 cat >conftest.$ac_ext <<_ACEOF
21878 cat confdefs.h >>conftest.$ac_ext
21879 cat >>conftest.$ac_ext <<_ACEOF
21880 /* end confdefs.h. */
21881 #include <$ac_header>
21883 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21884 case "(($ac_try" in
21885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21886 *) ac_try_echo=$ac_try;;
21888 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21889 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21891 grep -v '^ *+' conftest.er1 >conftest.err
21893 cat conftest.err >&5
21894 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21895 (exit $ac_status); } >/dev/null && {
21896 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21897 test ! -s conftest.err
21899 ac_header_preproc=yes
21901 echo "$as_me: failed program was
:" >&5
21902 sed 's/^/| /' conftest.$ac_ext >&5
21904 ac_header_preproc=no
21907 rm -f conftest.err conftest.$ac_ext
21908 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21909 echo "${ECHO_T}$ac_header_preproc" >&6; }
21911 # So? What about this header?
21912 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21914 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21915 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21916 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21917 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21918 ac_header_preproc=yes
21921 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21922 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21923 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21924 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21925 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21926 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21927 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21928 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21929 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21930 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21931 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21932 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21936 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21937 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21938 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21939 echo $ECHO_N "(cached
) $ECHO_C" >&6
21941 eval "$as_ac_Header=\
$ac_header_preproc"
21943 ac_res=`eval echo '${'$as_ac_Header'}'`
21944 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21945 echo "${ECHO_T}$ac_res" >&6; }
21948 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21949 cat >>confdefs.h <<_ACEOF
21950 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21959 # Solaris requires -lintl if you want strerror (which calls dgettext)
21960 # to return localized messages.
21962 { echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
21963 echo $ECHO_N "checking
for dgettext
in -lintl...
$ECHO_C" >&6; }
21964 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21965 echo $ECHO_N "(cached
) $ECHO_C" >&6
21967 ac_check_lib_save_LIBS=$LIBS
21968 LIBS="-lintl $LIBS"
21969 cat >conftest.$ac_ext <<_ACEOF
21972 cat confdefs.h >>conftest.$ac_ext
21973 cat >>conftest.$ac_ext <<_ACEOF
21974 /* end confdefs.h. */
21976 /* Override any GCC internal prototype to avoid an error.
21977 Use char because int might match the return type of a GCC
21978 builtin and then its argument prototype would still apply. */
21986 return dgettext ();
21991 rm -f conftest.$ac_objext conftest$ac_exeext
21992 if { (ac_try="$ac_link"
21993 case "(($ac_try" in
21994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21995 *) ac_try_echo=$ac_try;;
21997 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21998 (eval "$ac_link") 2>conftest.er1
22000 grep -v '^ *+' conftest.er1 >conftest.err
22002 cat conftest.err >&5
22003 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22004 (exit $ac_status); } && {
22005 test -z "$ac_c_werror_flag" ||
22006 test ! -s conftest.err
22007 } && test -s conftest$ac_exeext &&
22008 $as_test_x conftest$ac_exeext; then
22009 ac_cv_lib_intl_dgettext=yes
22011 echo "$as_me: failed program was
:" >&5
22012 sed 's/^/| /' conftest.$ac_ext >&5
22014 ac_cv_lib_intl_dgettext=no
22017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22018 conftest$ac_exeext conftest.$ac_ext
22019 LIBS=$ac_check_lib_save_LIBS
22021 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
22022 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
22023 if test $ac_cv_lib_intl_dgettext = yes; then
22024 cat >>confdefs.h <<_ACEOF
22025 #define HAVE_LIBINTL 1
22028 LIBS="-lintl $LIBS"
22033 { echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
22034 echo $ECHO_N "checking whether localtime caches TZ...
$ECHO_C" >&6; }
22035 if test "${emacs_cv_localtime_cache+set}" = set; then
22036 echo $ECHO_N "(cached
) $ECHO_C" >&6
22038 if test x$ac_cv_func_tzset = xyes; then
22039 if test "$cross_compiling" = yes; then
22040 # If we have tzset, assume the worst when cross-compiling.
22041 emacs_cv_localtime_cache=yes
22043 cat >conftest.$ac_ext <<_ACEOF
22046 cat confdefs.h >>conftest.$ac_ext
22047 cat >>conftest.$ac_ext <<_ACEOF
22048 /* end confdefs.h. */
22050 extern char **environ;
22054 for (to = from = environ; (*to = *from); from++)
22055 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
22058 char TZ_GMT0[] = "TZ
=GMT0
";
22059 char TZ_PST8[] = "TZ
=PST8
";
22062 time_t now = time ((time_t *) 0);
22063 int hour_GMT0, hour_unset;
22064 if (putenv (TZ_GMT0) != 0)
22066 hour_GMT0 = localtime (&now)->tm_hour;
22068 hour_unset = localtime (&now)->tm_hour;
22069 if (putenv (TZ_PST8) != 0)
22071 if (localtime (&now)->tm_hour == hour_GMT0)
22074 if (localtime (&now)->tm_hour != hour_unset)
22079 rm -f conftest$ac_exeext
22080 if { (ac_try="$ac_link"
22081 case "(($ac_try" in
22082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22083 *) ac_try_echo=$ac_try;;
22085 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22086 (eval "$ac_link") 2>&5
22088 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22089 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22090 { (case "(($ac_try" in
22091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22092 *) ac_try_echo=$ac_try;;
22094 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22095 (eval "$ac_try") 2>&5
22097 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22098 (exit $ac_status); }; }; then
22099 emacs_cv_localtime_cache=no
22101 echo "$as_me: program exited with status
$ac_status" >&5
22102 echo "$as_me: failed program was
:" >&5
22103 sed 's/^/| /' conftest.$ac_ext >&5
22105 ( exit $ac_status )
22106 emacs_cv_localtime_cache=yes
22108 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22113 # If we lack tzset, report that localtime does not cache TZ,
22114 # since we can't invalidate the cache if we don't have tzset.
22115 emacs_cv_localtime_cache=no
22118 { echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
22119 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
22120 if test $emacs_cv_localtime_cache = yes; then
22122 cat >>confdefs.h <<\_ACEOF
22123 #define LOCALTIME_CACHE 1
22128 if test "x
$HAVE_TIMEVAL" = xyes; then
22130 for ac_func in gettimeofday
22132 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
22133 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
22134 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
22135 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
22136 echo $ECHO_N "(cached
) $ECHO_C" >&6
22138 cat >conftest.$ac_ext <<_ACEOF
22141 cat confdefs.h >>conftest.$ac_ext
22142 cat >>conftest.$ac_ext <<_ACEOF
22143 /* end confdefs.h. */
22144 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22145 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22146 #define $ac_func innocuous_$ac_func
22148 /* System header to define __stub macros and hopefully few prototypes,
22149 which can conflict with char $ac_func (); below.
22150 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22151 <limits.h> exists even on freestanding compilers. */
22154 # include <limits.h>
22156 # include <assert.h>
22161 /* Override any GCC internal prototype to avoid an error.
22162 Use char because int might match the return type of a GCC
22163 builtin and then its argument prototype would still apply. */
22168 /* The GNU C library defines this for functions which it implements
22169 to always fail with ENOSYS. Some functions are actually named
22170 something starting with __ and the normal name is an alias. */
22171 #if defined __stub_$ac_func || defined __stub___$ac_func
22178 return $ac_func ();
22183 rm -f conftest.$ac_objext conftest$ac_exeext
22184 if { (ac_try="$ac_link"
22185 case "(($ac_try" in
22186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22187 *) ac_try_echo=$ac_try;;
22189 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22190 (eval "$ac_link") 2>conftest.er1
22192 grep -v '^ *+' conftest.er1 >conftest.err
22194 cat conftest.err >&5
22195 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22196 (exit $ac_status); } && {
22197 test -z "$ac_c_werror_flag" ||
22198 test ! -s conftest.err
22199 } && test -s conftest$ac_exeext &&
22200 $as_test_x conftest$ac_exeext; then
22201 eval "$as_ac_var=yes"
22203 echo "$as_me: failed program was
:" >&5
22204 sed 's/^/| /' conftest.$ac_ext >&5
22206 eval "$as_ac_var=no
"
22209 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22210 conftest$ac_exeext conftest.$ac_ext
22212 ac_res=`eval echo '${'$as_ac_var'}'`
22213 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22214 echo "${ECHO_T}$ac_res" >&6; }
22215 if test `eval echo '${'$as_ac_var'}'` = yes; then
22216 cat >>confdefs.h <<_ACEOF
22217 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
22223 if test $ac_cv_func_gettimeofday = yes; then
22224 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
22225 echo $ECHO_N "checking whether gettimeofday can accept two arguments...
$ECHO_C" >&6; }
22226 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22227 echo $ECHO_N "(cached
) $ECHO_C" >&6
22229 cat >conftest.$ac_ext <<_ACEOF
22232 cat confdefs.h >>conftest.$ac_ext
22233 cat >>conftest.$ac_ext <<_ACEOF
22234 /* end confdefs.h. */
22236 #ifdef TIME_WITH_SYS_TIME
22237 #include <sys/time.h>
22240 #ifdef HAVE_SYS_TIME_H
22241 #include <sys/time.h>
22249 struct timeval time;
22250 gettimeofday (&time, 0);
22255 rm -f conftest.$ac_objext
22256 if { (ac_try="$ac_compile"
22257 case "(($ac_try" in
22258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22259 *) ac_try_echo=$ac_try;;
22261 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22262 (eval "$ac_compile") 2>conftest.er1
22264 grep -v '^ *+' conftest.er1 >conftest.err
22266 cat conftest.err >&5
22267 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22268 (exit $ac_status); } && {
22269 test -z "$ac_c_werror_flag" ||
22270 test ! -s conftest.err
22271 } && test -s conftest.$ac_objext; then
22272 emacs_cv_gettimeofday_two_arguments=yes
22274 echo "$as_me: failed program was
:" >&5
22275 sed 's/^/| /' conftest.$ac_ext >&5
22277 emacs_cv_gettimeofday_two_arguments=no
22280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22282 { echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
22283 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22284 if test $emacs_cv_gettimeofday_two_arguments = no; then
22286 cat >>confdefs.h <<\_ACEOF
22287 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22295 { echo "$as_me:$LINENO: checking
for socket
" >&5
22296 echo $ECHO_N "checking
for socket...
$ECHO_C" >&6; }
22297 if test "${ac_cv_func_socket+set}" = set; then
22298 echo $ECHO_N "(cached
) $ECHO_C" >&6
22300 cat >conftest.$ac_ext <<_ACEOF
22303 cat confdefs.h >>conftest.$ac_ext
22304 cat >>conftest.$ac_ext <<_ACEOF
22305 /* end confdefs.h. */
22306 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22307 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22308 #define socket innocuous_socket
22310 /* System header to define __stub macros and hopefully few prototypes,
22311 which can conflict with char socket (); below.
22312 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22313 <limits.h> exists even on freestanding compilers. */
22316 # include <limits.h>
22318 # include <assert.h>
22323 /* Override any GCC internal prototype to avoid an error.
22324 Use char because int might match the return type of a GCC
22325 builtin and then its argument prototype would still apply. */
22330 /* The GNU C library defines this for functions which it implements
22331 to always fail with ENOSYS. Some functions are actually named
22332 something starting with __ and the normal name is an alias. */
22333 #if defined __stub_socket || defined __stub___socket
22345 rm -f conftest.$ac_objext conftest$ac_exeext
22346 if { (ac_try="$ac_link"
22347 case "(($ac_try" in
22348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22349 *) ac_try_echo=$ac_try;;
22351 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22352 (eval "$ac_link") 2>conftest.er1
22354 grep -v '^ *+' conftest.er1 >conftest.err
22356 cat conftest.err >&5
22357 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22358 (exit $ac_status); } && {
22359 test -z "$ac_c_werror_flag" ||
22360 test ! -s conftest.err
22361 } && test -s conftest$ac_exeext &&
22362 $as_test_x conftest$ac_exeext; then
22363 ac_cv_func_socket=yes
22365 echo "$as_me: failed program was
:" >&5
22366 sed 's/^/| /' conftest.$ac_ext >&5
22368 ac_cv_func_socket=no
22371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22372 conftest$ac_exeext conftest.$ac_ext
22374 { echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
22375 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22376 if test $ac_cv_func_socket = yes; then
22382 if test $ok_so_far = yes; then
22383 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22384 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
22385 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
22386 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22387 echo $ECHO_N "(cached
) $ECHO_C" >&6
22389 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
22390 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22392 # Is the header compilable?
22393 { echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
22394 echo $ECHO_N "checking netinet
/in.h usability...
$ECHO_C" >&6; }
22395 cat >conftest.$ac_ext <<_ACEOF
22398 cat confdefs.h >>conftest.$ac_ext
22399 cat >>conftest.$ac_ext <<_ACEOF
22400 /* end confdefs.h. */
22401 $ac_includes_default
22402 #include <netinet/in.h>
22404 rm -f conftest.$ac_objext
22405 if { (ac_try="$ac_compile"
22406 case "(($ac_try" in
22407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22408 *) ac_try_echo=$ac_try;;
22410 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22411 (eval "$ac_compile") 2>conftest.er1
22413 grep -v '^ *+' conftest.er1 >conftest.err
22415 cat conftest.err >&5
22416 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22417 (exit $ac_status); } && {
22418 test -z "$ac_c_werror_flag" ||
22419 test ! -s conftest.err
22420 } && test -s conftest.$ac_objext; then
22421 ac_header_compiler=yes
22423 echo "$as_me: failed program was
:" >&5
22424 sed 's/^/| /' conftest.$ac_ext >&5
22426 ac_header_compiler=no
22429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22430 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22431 echo "${ECHO_T}$ac_header_compiler" >&6; }
22433 # Is the header present?
22434 { echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
22435 echo $ECHO_N "checking netinet
/in.h presence...
$ECHO_C" >&6; }
22436 cat >conftest.$ac_ext <<_ACEOF
22439 cat confdefs.h >>conftest.$ac_ext
22440 cat >>conftest.$ac_ext <<_ACEOF
22441 /* end confdefs.h. */
22442 #include <netinet/in.h>
22444 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22445 case "(($ac_try" in
22446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22447 *) ac_try_echo=$ac_try;;
22449 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22450 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22452 grep -v '^ *+' conftest.er1 >conftest.err
22454 cat conftest.err >&5
22455 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22456 (exit $ac_status); } >/dev/null && {
22457 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22458 test ! -s conftest.err
22460 ac_header_preproc=yes
22462 echo "$as_me: failed program was
:" >&5
22463 sed 's/^/| /' conftest.$ac_ext >&5
22465 ac_header_preproc=no
22468 rm -f conftest.err conftest.$ac_ext
22469 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22470 echo "${ECHO_T}$ac_header_preproc" >&6; }
22472 # So? What about this header?
22473 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22475 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22476 echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22477 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
22478 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
22479 ac_header_preproc=yes
22482 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
22483 echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
22484 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
22485 echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
22486 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
22487 echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
22488 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22489 echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22490 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
22491 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
22492 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
22493 echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
22497 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
22498 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
22499 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22500 echo $ECHO_N "(cached
) $ECHO_C" >&6
22502 ac_cv_header_netinet_in_h=$ac_header_preproc
22504 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
22505 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22508 if test $ac_cv_header_netinet_in_h = yes; then
22516 if test $ok_so_far = yes; then
22517 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22518 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22519 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22520 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22521 echo $ECHO_N "(cached
) $ECHO_C" >&6
22523 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22524 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22526 # Is the header compilable?
22527 { echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
22528 echo $ECHO_N "checking arpa
/inet.h usability...
$ECHO_C" >&6; }
22529 cat >conftest.$ac_ext <<_ACEOF
22532 cat confdefs.h >>conftest.$ac_ext
22533 cat >>conftest.$ac_ext <<_ACEOF
22534 /* end confdefs.h. */
22535 $ac_includes_default
22536 #include <arpa/inet.h>
22538 rm -f conftest.$ac_objext
22539 if { (ac_try="$ac_compile"
22540 case "(($ac_try" in
22541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22542 *) ac_try_echo=$ac_try;;
22544 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22545 (eval "$ac_compile") 2>conftest.er1
22547 grep -v '^ *+' conftest.er1 >conftest.err
22549 cat conftest.err >&5
22550 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22551 (exit $ac_status); } && {
22552 test -z "$ac_c_werror_flag" ||
22553 test ! -s conftest.err
22554 } && test -s conftest.$ac_objext; then
22555 ac_header_compiler=yes
22557 echo "$as_me: failed program was
:" >&5
22558 sed 's/^/| /' conftest.$ac_ext >&5
22560 ac_header_compiler=no
22563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22564 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22565 echo "${ECHO_T}$ac_header_compiler" >&6; }
22567 # Is the header present?
22568 { echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
22569 echo $ECHO_N "checking arpa
/inet.h presence...
$ECHO_C" >&6; }
22570 cat >conftest.$ac_ext <<_ACEOF
22573 cat confdefs.h >>conftest.$ac_ext
22574 cat >>conftest.$ac_ext <<_ACEOF
22575 /* end confdefs.h. */
22576 #include <arpa/inet.h>
22578 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22579 case "(($ac_try" in
22580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22581 *) ac_try_echo=$ac_try;;
22583 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22584 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22586 grep -v '^ *+' conftest.er1 >conftest.err
22588 cat conftest.err >&5
22589 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22590 (exit $ac_status); } >/dev/null && {
22591 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22592 test ! -s conftest.err
22594 ac_header_preproc=yes
22596 echo "$as_me: failed program was
:" >&5
22597 sed 's/^/| /' conftest.$ac_ext >&5
22599 ac_header_preproc=no
22602 rm -f conftest.err conftest.$ac_ext
22603 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22604 echo "${ECHO_T}$ac_header_preproc" >&6; }
22606 # So? What about this header?
22607 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22609 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22610 echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22611 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
22612 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
22613 ac_header_preproc=yes
22616 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
22617 echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
22618 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
22619 echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
22620 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
22621 echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
22622 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22623 echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22624 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
22625 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
22626 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
22627 echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
22631 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22632 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22633 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22634 echo $ECHO_N "(cached
) $ECHO_C" >&6
22636 ac_cv_header_arpa_inet_h=$ac_header_preproc
22638 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22639 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22642 if test $ac_cv_header_arpa_inet_h = yes; then
22650 if test $ok_so_far = yes; then
22652 cat >>confdefs.h <<\_ACEOF
22653 #define HAVE_INET_SOCKETS 1
22659 for ac_header in sys/ioctl.h
22661 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22662 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22663 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22664 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22665 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22666 echo $ECHO_N "(cached
) $ECHO_C" >&6
22668 ac_res=`eval echo '${'$as_ac_Header'}'`
22669 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22670 echo "${ECHO_T}$ac_res" >&6; }
22672 # Is the header compilable?
22673 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22674 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22675 cat >conftest.$ac_ext <<_ACEOF
22678 cat confdefs.h >>conftest.$ac_ext
22679 cat >>conftest.$ac_ext <<_ACEOF
22680 /* end confdefs.h. */
22681 $ac_includes_default
22682 #include <$ac_header>
22684 rm -f conftest.$ac_objext
22685 if { (ac_try="$ac_compile"
22686 case "(($ac_try" in
22687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22688 *) ac_try_echo=$ac_try;;
22690 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22691 (eval "$ac_compile") 2>conftest.er1
22693 grep -v '^ *+' conftest.er1 >conftest.err
22695 cat conftest.err >&5
22696 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22697 (exit $ac_status); } && {
22698 test -z "$ac_c_werror_flag" ||
22699 test ! -s conftest.err
22700 } && test -s conftest.$ac_objext; then
22701 ac_header_compiler=yes
22703 echo "$as_me: failed program was
:" >&5
22704 sed 's/^/| /' conftest.$ac_ext >&5
22706 ac_header_compiler=no
22709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22710 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22711 echo "${ECHO_T}$ac_header_compiler" >&6; }
22713 # Is the header present?
22714 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22715 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22716 cat >conftest.$ac_ext <<_ACEOF
22719 cat confdefs.h >>conftest.$ac_ext
22720 cat >>conftest.$ac_ext <<_ACEOF
22721 /* end confdefs.h. */
22722 #include <$ac_header>
22724 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22725 case "(($ac_try" in
22726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22727 *) ac_try_echo=$ac_try;;
22729 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22730 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22732 grep -v '^ *+' conftest.er1 >conftest.err
22734 cat conftest.err >&5
22735 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22736 (exit $ac_status); } >/dev/null && {
22737 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22738 test ! -s conftest.err
22740 ac_header_preproc=yes
22742 echo "$as_me: failed program was
:" >&5
22743 sed 's/^/| /' conftest.$ac_ext >&5
22745 ac_header_preproc=no
22748 rm -f conftest.err conftest.$ac_ext
22749 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22750 echo "${ECHO_T}$ac_header_preproc" >&6; }
22752 # So? What about this header?
22753 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22755 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22756 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22757 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22758 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22759 ac_header_preproc=yes
22762 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22763 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22764 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22765 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22766 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22767 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22768 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22769 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22770 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22771 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22772 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22773 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22777 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22778 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22779 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22780 echo $ECHO_N "(cached
) $ECHO_C" >&6
22782 eval "$as_ac_Header=\
$ac_header_preproc"
22784 ac_res=`eval echo '${'$as_ac_Header'}'`
22785 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22786 echo "${ECHO_T}$ac_res" >&6; }
22789 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22790 cat >>confdefs.h <<_ACEOF
22791 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22799 if test -f /usr/lpp/X11/bin/smt.exp; then
22801 cat >>confdefs.h <<\_ACEOF
22802 #define HAVE_AIX_SMT_EXP 1
22807 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
22808 echo $ECHO_N "checking whether system supports dynamic ptys...
$ECHO_C" >&6; }
22809 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22810 { echo "$as_me:$LINENO: result
: yes" >&5
22811 echo "${ECHO_T}yes" >&6; }
22813 cat >>confdefs.h <<\_ACEOF
22814 #define HAVE_DEV_PTMX 1
22818 { echo "$as_me:$LINENO: result
: no
" >&5
22819 echo "${ECHO_T}no
" >&6; }
22822 { echo "$as_me:$LINENO: checking
for pid_t
" >&5
22823 echo $ECHO_N "checking
for pid_t...
$ECHO_C" >&6; }
22824 if test "${ac_cv_type_pid_t+set}" = set; then
22825 echo $ECHO_N "(cached
) $ECHO_C" >&6
22827 cat >conftest.$ac_ext <<_ACEOF
22830 cat confdefs.h >>conftest.$ac_ext
22831 cat >>conftest.$ac_ext <<_ACEOF
22832 /* end confdefs.h. */
22833 $ac_includes_default
22834 typedef pid_t ac__type_new_;
22838 if ((ac__type_new_ *) 0)
22840 if (sizeof (ac__type_new_))
22846 rm -f conftest.$ac_objext
22847 if { (ac_try="$ac_compile"
22848 case "(($ac_try" in
22849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22850 *) ac_try_echo=$ac_try;;
22852 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22853 (eval "$ac_compile") 2>conftest.er1
22855 grep -v '^ *+' conftest.er1 >conftest.err
22857 cat conftest.err >&5
22858 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22859 (exit $ac_status); } && {
22860 test -z "$ac_c_werror_flag" ||
22861 test ! -s conftest.err
22862 } && test -s conftest.$ac_objext; then
22863 ac_cv_type_pid_t=yes
22865 echo "$as_me: failed program was
:" >&5
22866 sed 's/^/| /' conftest.$ac_ext >&5
22868 ac_cv_type_pid_t=no
22871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22873 { echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
22874 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22875 if test $ac_cv_type_pid_t = yes; then
22879 cat >>confdefs.h <<_ACEOF
22886 for ac_header in vfork.h
22888 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22889 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22890 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22891 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22892 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22893 echo $ECHO_N "(cached
) $ECHO_C" >&6
22895 ac_res=`eval echo '${'$as_ac_Header'}'`
22896 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22897 echo "${ECHO_T}$ac_res" >&6; }
22899 # Is the header compilable?
22900 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22901 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22902 cat >conftest.$ac_ext <<_ACEOF
22905 cat confdefs.h >>conftest.$ac_ext
22906 cat >>conftest.$ac_ext <<_ACEOF
22907 /* end confdefs.h. */
22908 $ac_includes_default
22909 #include <$ac_header>
22911 rm -f conftest.$ac_objext
22912 if { (ac_try="$ac_compile"
22913 case "(($ac_try" in
22914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22915 *) ac_try_echo=$ac_try;;
22917 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22918 (eval "$ac_compile") 2>conftest.er1
22920 grep -v '^ *+' conftest.er1 >conftest.err
22922 cat conftest.err >&5
22923 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22924 (exit $ac_status); } && {
22925 test -z "$ac_c_werror_flag" ||
22926 test ! -s conftest.err
22927 } && test -s conftest.$ac_objext; then
22928 ac_header_compiler=yes
22930 echo "$as_me: failed program was
:" >&5
22931 sed 's/^/| /' conftest.$ac_ext >&5
22933 ac_header_compiler=no
22936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22937 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22938 echo "${ECHO_T}$ac_header_compiler" >&6; }
22940 # Is the header present?
22941 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22942 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22943 cat >conftest.$ac_ext <<_ACEOF
22946 cat confdefs.h >>conftest.$ac_ext
22947 cat >>conftest.$ac_ext <<_ACEOF
22948 /* end confdefs.h. */
22949 #include <$ac_header>
22951 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22952 case "(($ac_try" in
22953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22954 *) ac_try_echo=$ac_try;;
22956 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22957 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22959 grep -v '^ *+' conftest.er1 >conftest.err
22961 cat conftest.err >&5
22962 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22963 (exit $ac_status); } >/dev/null && {
22964 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22965 test ! -s conftest.err
22967 ac_header_preproc=yes
22969 echo "$as_me: failed program was
:" >&5
22970 sed 's/^/| /' conftest.$ac_ext >&5
22972 ac_header_preproc=no
22975 rm -f conftest.err conftest.$ac_ext
22976 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22977 echo "${ECHO_T}$ac_header_preproc" >&6; }
22979 # So? What about this header?
22980 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22982 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22983 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22984 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22985 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22986 ac_header_preproc=yes
22989 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22990 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22991 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22992 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22993 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22994 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22995 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22996 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22997 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22998 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22999 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23000 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23004 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
23005 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
23006 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23007 echo $ECHO_N "(cached
) $ECHO_C" >&6
23009 eval "$as_ac_Header=\
$ac_header_preproc"
23011 ac_res=`eval echo '${'$as_ac_Header'}'`
23012 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23013 echo "${ECHO_T}$ac_res" >&6; }
23016 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23017 cat >>confdefs.h <<_ACEOF
23018 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23027 for ac_func in fork vfork
23029 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
23030 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
23031 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
23032 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
23033 echo $ECHO_N "(cached
) $ECHO_C" >&6
23035 cat >conftest.$ac_ext <<_ACEOF
23038 cat confdefs.h >>conftest.$ac_ext
23039 cat >>conftest.$ac_ext <<_ACEOF
23040 /* end confdefs.h. */
23041 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23042 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23043 #define $ac_func innocuous_$ac_func
23045 /* System header to define __stub macros and hopefully few prototypes,
23046 which can conflict with char $ac_func (); below.
23047 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23048 <limits.h> exists even on freestanding compilers. */
23051 # include <limits.h>
23053 # include <assert.h>
23058 /* Override any GCC internal prototype to avoid an error.
23059 Use char because int might match the return type of a GCC
23060 builtin and then its argument prototype would still apply. */
23065 /* The GNU C library defines this for functions which it implements
23066 to always fail with ENOSYS. Some functions are actually named
23067 something starting with __ and the normal name is an alias. */
23068 #if defined __stub_$ac_func || defined __stub___$ac_func
23075 return $ac_func ();
23080 rm -f conftest.$ac_objext conftest$ac_exeext
23081 if { (ac_try="$ac_link"
23082 case "(($ac_try" in
23083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23084 *) ac_try_echo=$ac_try;;
23086 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23087 (eval "$ac_link") 2>conftest.er1
23089 grep -v '^ *+' conftest.er1 >conftest.err
23091 cat conftest.err >&5
23092 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23093 (exit $ac_status); } && {
23094 test -z "$ac_c_werror_flag" ||
23095 test ! -s conftest.err
23096 } && test -s conftest$ac_exeext &&
23097 $as_test_x conftest$ac_exeext; then
23098 eval "$as_ac_var=yes"
23100 echo "$as_me: failed program was
:" >&5
23101 sed 's/^/| /' conftest.$ac_ext >&5
23103 eval "$as_ac_var=no
"
23106 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23107 conftest$ac_exeext conftest.$ac_ext
23109 ac_res=`eval echo '${'$as_ac_var'}'`
23110 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23111 echo "${ECHO_T}$ac_res" >&6; }
23112 if test `eval echo '${'$as_ac_var'}'` = yes; then
23113 cat >>confdefs.h <<_ACEOF
23114 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
23120 if test "x
$ac_cv_func_fork" = xyes; then
23121 { echo "$as_me:$LINENO: checking
for working fork
" >&5
23122 echo $ECHO_N "checking
for working fork...
$ECHO_C" >&6; }
23123 if test "${ac_cv_func_fork_works+set}" = set; then
23124 echo $ECHO_N "(cached
) $ECHO_C" >&6
23126 if test "$cross_compiling" = yes; then
23127 ac_cv_func_fork_works=cross
23129 cat >conftest.$ac_ext <<_ACEOF
23132 cat confdefs.h >>conftest.$ac_ext
23133 cat >>conftest.$ac_ext <<_ACEOF
23134 /* end confdefs.h. */
23135 $ac_includes_default
23140 /* By Ruediger Kuhlmann. */
23141 return fork () < 0;
23147 rm -f conftest$ac_exeext
23148 if { (ac_try="$ac_link"
23149 case "(($ac_try" in
23150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23151 *) ac_try_echo=$ac_try;;
23153 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23154 (eval "$ac_link") 2>&5
23156 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23157 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23158 { (case "(($ac_try" in
23159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23160 *) ac_try_echo=$ac_try;;
23162 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23163 (eval "$ac_try") 2>&5
23165 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23166 (exit $ac_status); }; }; then
23167 ac_cv_func_fork_works=yes
23169 echo "$as_me: program exited with status
$ac_status" >&5
23170 echo "$as_me: failed program was
:" >&5
23171 sed 's/^/| /' conftest.$ac_ext >&5
23173 ( exit $ac_status )
23174 ac_cv_func_fork_works=no
23176 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23181 { echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
23182 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23185 ac_cv_func_fork_works=$ac_cv_func_fork
23187 if test "x
$ac_cv_func_fork_works" = xcross; then
23189 *-*-amigaos* | *-*-msdosdjgpp*)
23190 # Override, as these systems have only a dummy fork() stub
23191 ac_cv_func_fork_works=no
23194 ac_cv_func_fork_works=yes
23197 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
23198 echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
23200 ac_cv_func_vfork_works=$ac_cv_func_vfork
23201 if test "x
$ac_cv_func_vfork" = xyes; then
23202 { echo "$as_me:$LINENO: checking
for working vfork
" >&5
23203 echo $ECHO_N "checking
for working vfork...
$ECHO_C" >&6; }
23204 if test "${ac_cv_func_vfork_works+set}" = set; then
23205 echo $ECHO_N "(cached
) $ECHO_C" >&6
23207 if test "$cross_compiling" = yes; then
23208 ac_cv_func_vfork_works=cross
23210 cat >conftest.$ac_ext <<_ACEOF
23213 cat confdefs.h >>conftest.$ac_ext
23214 cat >>conftest.$ac_ext <<_ACEOF
23215 /* end confdefs.h. */
23216 /* Thanks to Paul Eggert for this test. */
23217 $ac_includes_default
23218 #include <sys/wait.h>
23219 #ifdef HAVE_VFORK_H
23220 # include <vfork.h>
23222 /* On some sparc systems, changes by the child to local and incoming
23223 argument registers are propagated back to the parent. The compiler
23224 is told about this with #include <vfork.h>, but some compilers
23225 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23226 static variable whose address is put into a register that is
23227 clobbered by the vfork. */
23230 sparc_address_test (int arg)
23232 sparc_address_test (arg) int arg;
23235 static pid_t child;
23253 pid_t parent = getpid ();
23256 sparc_address_test (0);
23261 /* Here is another test for sparc vfork register problems. This
23262 test uses lots of local variables, at least as many local
23263 variables as main has allocated so far including compiler
23264 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23265 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23266 reuse the register of parent for one of the local variables,
23267 since it will think that parent can't possibly be used any more
23268 in this routine. Assigning to the local variable will thus
23269 munge parent in the parent process. */
23271 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23272 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23273 /* Convince the compiler that p..p7 are live; otherwise, it might
23274 use the same hardware register for all 8 local variables. */
23275 if (p != p1 || p != p2 || p != p3 || p != p4
23276 || p != p5 || p != p6 || p != p7)
23279 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23280 from child file descriptors. If the child closes a descriptor
23281 before it execs or exits, this munges the parent's descriptor
23282 as well. Test for this by closing stdout in the child. */
23283 _exit(close(fileno(stdout)) != 0);
23288 while (wait(&status) != child)
23291 /* Was there some problem with vforking? */
23294 /* Did the child fail? (This shouldn't happen.) */
23297 /* Did the vfork/compiler bug occur? */
23298 || parent != getpid()
23300 /* Did the file descriptor bug occur? */
23301 || fstat(fileno(stdout), &st) != 0
23306 rm -f conftest$ac_exeext
23307 if { (ac_try="$ac_link"
23308 case "(($ac_try" in
23309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23310 *) ac_try_echo=$ac_try;;
23312 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23313 (eval "$ac_link") 2>&5
23315 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23316 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23317 { (case "(($ac_try" in
23318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23319 *) ac_try_echo=$ac_try;;
23321 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23322 (eval "$ac_try") 2>&5
23324 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23325 (exit $ac_status); }; }; then
23326 ac_cv_func_vfork_works=yes
23328 echo "$as_me: program exited with status
$ac_status" >&5
23329 echo "$as_me: failed program was
:" >&5
23330 sed 's/^/| /' conftest.$ac_ext >&5
23332 ( exit $ac_status )
23333 ac_cv_func_vfork_works=no
23335 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23340 { echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
23341 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23344 if test "x
$ac_cv_func_fork_works" = xcross; then
23345 ac_cv_func_vfork_works=$ac_cv_func_vfork
23346 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
23347 echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
23350 if test "x
$ac_cv_func_vfork_works" = xyes; then
23352 cat >>confdefs.h <<\_ACEOF
23353 #define HAVE_WORKING_VFORK 1
23358 cat >>confdefs.h <<\_ACEOF
23363 if test "x
$ac_cv_func_fork_works" = xyes; then
23365 cat >>confdefs.h <<\_ACEOF
23366 #define HAVE_WORKING_FORK 1
23372 { echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
23373 echo $ECHO_N "checking
for nl_langinfo and CODESET...
$ECHO_C" >&6; }
23374 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23375 echo $ECHO_N "(cached
) $ECHO_C" >&6
23377 cat >conftest.$ac_ext <<_ACEOF
23380 cat confdefs.h >>conftest.$ac_ext
23381 cat >>conftest.$ac_ext <<_ACEOF
23382 /* end confdefs.h. */
23383 #include <langinfo.h>
23387 char* cs = nl_langinfo(CODESET);
23392 rm -f conftest.$ac_objext conftest$ac_exeext
23393 if { (ac_try="$ac_link"
23394 case "(($ac_try" in
23395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23396 *) ac_try_echo=$ac_try;;
23398 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23399 (eval "$ac_link") 2>conftest.er1
23401 grep -v '^ *+' conftest.er1 >conftest.err
23403 cat conftest.err >&5
23404 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23405 (exit $ac_status); } && {
23406 test -z "$ac_c_werror_flag" ||
23407 test ! -s conftest.err
23408 } && test -s conftest$ac_exeext &&
23409 $as_test_x conftest$ac_exeext; then
23410 emacs_cv_langinfo_codeset=yes
23412 echo "$as_me: failed program was
:" >&5
23413 sed 's/^/| /' conftest.$ac_ext >&5
23415 emacs_cv_langinfo_codeset=no
23418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23419 conftest$ac_exeext conftest.$ac_ext
23422 { echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
23423 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23424 if test $emacs_cv_langinfo_codeset = yes; then
23426 cat >>confdefs.h <<\_ACEOF
23427 #define HAVE_LANGINFO_CODESET 1
23432 { echo "$as_me:$LINENO: checking
for size_t
" >&5
23433 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
23434 if test "${ac_cv_type_size_t+set}" = set; then
23435 echo $ECHO_N "(cached
) $ECHO_C" >&6
23437 cat >conftest.$ac_ext <<_ACEOF
23440 cat confdefs.h >>conftest.$ac_ext
23441 cat >>conftest.$ac_ext <<_ACEOF
23442 /* end confdefs.h. */
23443 $ac_includes_default
23444 typedef size_t ac__type_new_;
23448 if ((ac__type_new_ *) 0)
23450 if (sizeof (ac__type_new_))
23456 rm -f conftest.$ac_objext
23457 if { (ac_try="$ac_compile"
23458 case "(($ac_try" in
23459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23460 *) ac_try_echo=$ac_try;;
23462 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23463 (eval "$ac_compile") 2>conftest.er1
23465 grep -v '^ *+' conftest.er1 >conftest.err
23467 cat conftest.err >&5
23468 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23469 (exit $ac_status); } && {
23470 test -z "$ac_c_werror_flag" ||
23471 test ! -s conftest.err
23472 } && test -s conftest.$ac_objext; then
23473 ac_cv_type_size_t=yes
23475 echo "$as_me: failed program was
:" >&5
23476 sed 's/^/| /' conftest.$ac_ext >&5
23478 ac_cv_type_size_t=no
23481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23483 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
23484 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23485 if test $ac_cv_type_size_t = yes; then
23487 cat >>confdefs.h <<_ACEOF
23488 #define HAVE_SIZE_T 1
23495 { echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
23496 echo $ECHO_N "checking
for mbstate_t...
$ECHO_C" >&6; }
23497 if test "${ac_cv_type_mbstate_t+set}" = set; then
23498 echo $ECHO_N "(cached
) $ECHO_C" >&6
23500 cat >conftest.$ac_ext <<_ACEOF
23503 cat confdefs.h >>conftest.$ac_ext
23504 cat >>conftest.$ac_ext <<_ACEOF
23505 /* end confdefs.h. */
23506 $ac_includes_default
23507 # include <wchar.h>
23511 mbstate_t x; return sizeof x;
23516 rm -f conftest.$ac_objext
23517 if { (ac_try="$ac_compile"
23518 case "(($ac_try" in
23519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23520 *) ac_try_echo=$ac_try;;
23522 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23523 (eval "$ac_compile") 2>conftest.er1
23525 grep -v '^ *+' conftest.er1 >conftest.err
23527 cat conftest.err >&5
23528 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23529 (exit $ac_status); } && {
23530 test -z "$ac_c_werror_flag" ||
23531 test ! -s conftest.err
23532 } && test -s conftest.$ac_objext; then
23533 ac_cv_type_mbstate_t=yes
23535 echo "$as_me: failed program was
:" >&5
23536 sed 's/^/| /' conftest.$ac_ext >&5
23538 ac_cv_type_mbstate_t=no
23541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23543 { echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
23544 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23545 if test $ac_cv_type_mbstate_t = yes; then
23547 cat >>confdefs.h <<\_ACEOF
23548 #define HAVE_MBSTATE_T 1
23553 cat >>confdefs.h <<\_ACEOF
23554 #define mbstate_t int
23559 { echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
23560 echo $ECHO_N "checking
for C restrict keyword...
$ECHO_C" >&6; }
23561 if test "${emacs_cv_c_restrict+set}" = set; then
23562 echo $ECHO_N "(cached
) $ECHO_C" >&6
23564 cat >conftest.$ac_ext <<_ACEOF
23567 cat confdefs.h >>conftest.$ac_ext
23568 cat >>conftest.$ac_ext <<_ACEOF
23569 /* end confdefs.h. */
23570 void fred (int *restrict x);
23579 rm -f conftest.$ac_objext
23580 if { (ac_try="$ac_compile"
23581 case "(($ac_try" in
23582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23583 *) ac_try_echo=$ac_try;;
23585 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23586 (eval "$ac_compile") 2>conftest.er1
23588 grep -v '^ *+' conftest.er1 >conftest.err
23590 cat conftest.err >&5
23591 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23592 (exit $ac_status); } && {
23593 test -z "$ac_c_werror_flag" ||
23594 test ! -s conftest.err
23595 } && test -s conftest.$ac_objext; then
23596 emacs_cv_c_restrict=yes
23598 echo "$as_me: failed program was
:" >&5
23599 sed 's/^/| /' conftest.$ac_ext >&5
23601 cat >conftest.$ac_ext <<_ACEOF
23604 cat confdefs.h >>conftest.$ac_ext
23605 cat >>conftest.$ac_ext <<_ACEOF
23606 /* end confdefs.h. */
23607 void fred (int *__restrict x);
23616 rm -f conftest.$ac_objext
23617 if { (ac_try="$ac_compile"
23618 case "(($ac_try" in
23619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23620 *) ac_try_echo=$ac_try;;
23622 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23623 (eval "$ac_compile") 2>conftest.er1
23625 grep -v '^ *+' conftest.er1 >conftest.err
23627 cat conftest.err >&5
23628 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23629 (exit $ac_status); } && {
23630 test -z "$ac_c_werror_flag" ||
23631 test ! -s conftest.err
23632 } && test -s conftest.$ac_objext; then
23633 emacs_cv_c_restrict=__restrict
23635 echo "$as_me: failed program was
:" >&5
23636 sed 's/^/| /' conftest.$ac_ext >&5
23638 emacs_cv_c_restrict=no
23641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23646 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
23647 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23648 case "$emacs_cv_c_restrict" in
23649 yes) emacs_restrict=restrict;;
23650 no) emacs_restrict="";;
23651 *) emacs_restrict="$emacs_cv_c_restrict";;
23653 if test "$emacs_restrict" != __restrict; then
23655 cat >>confdefs.h <<_ACEOF
23656 #define __restrict $emacs_restrict
23661 { echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
23662 echo $ECHO_N "checking
for C restricted array declarations...
$ECHO_C" >&6; }
23663 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23664 echo $ECHO_N "(cached
) $ECHO_C" >&6
23666 cat >conftest.$ac_ext <<_ACEOF
23669 cat confdefs.h >>conftest.$ac_ext
23670 cat >>conftest.$ac_ext <<_ACEOF
23671 /* end confdefs.h. */
23672 void fred (int x[__restrict]);
23681 rm -f conftest.$ac_objext
23682 if { (ac_try="$ac_compile"
23683 case "(($ac_try" in
23684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23685 *) ac_try_echo=$ac_try;;
23687 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23688 (eval "$ac_compile") 2>conftest.er1
23690 grep -v '^ *+' conftest.er1 >conftest.err
23692 cat conftest.err >&5
23693 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23694 (exit $ac_status); } && {
23695 test -z "$ac_c_werror_flag" ||
23696 test ! -s conftest.err
23697 } && test -s conftest.$ac_objext; then
23698 emacs_cv_c_restrict_arr=yes
23700 echo "$as_me: failed program was
:" >&5
23701 sed 's/^/| /' conftest.$ac_ext >&5
23703 emacs_cv_c_restrict_arr=no
23706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23708 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
23709 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23710 if test "$emacs_cv_c_restrict_arr" = yes; then
23712 cat >>confdefs.h <<\_ACEOF
23713 #define __restrict_arr __restrict
23720 # Set up the CFLAGS for real compilation, so we can substitute it.
23721 CFLAGS="$REAL_CFLAGS"
23722 CPPFLAGS="$REAL_CPPFLAGS"
23724 #### Find out which version of Emacs this is.
23725 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23726 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
23727 if test x"${version}" = x; then
23728 { { echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&5
23729 echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&2;}
23730 { (exit 1); exit 1; }; }
23733 ### Specify what sort of things we'll be editing into Makefile and config.h.
23734 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23770 cat >>confdefs.h <<_ACEOF
23771 #define EMACS_CONFIGURATION "${canonical}"
23775 cat >>confdefs.h <<_ACEOF
23776 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23780 cat >>confdefs.h <<_ACEOF
23781 #define config_machfile "${machfile}"
23785 cat >>confdefs.h <<_ACEOF
23786 #define config_opsysfile "${opsysfile}"
23790 cat >>confdefs.h <<_ACEOF
23791 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23795 cat >>confdefs.h <<_ACEOF
23796 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23800 cat >>confdefs.h <<_ACEOF
23801 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23805 cat >>confdefs.h <<_ACEOF
23806 #define UNEXEC_SRC ${UNEXEC_SRC}
23810 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23812 cat >>confdefs.h <<\_ACEOF
23813 #define HAVE_X_WINDOWS 1
23817 if test "${USE_X_TOOLKIT}" != "none
" ; then
23819 cat >>confdefs.h <<\_ACEOF
23820 #define USE_X_TOOLKIT 1
23824 if test "${HAVE_X11}" = "yes" ; then
23826 cat >>confdefs.h <<\_ACEOF
23831 if test "${HAVE_MENUS}" = "yes" ; then
23833 cat >>confdefs.h <<\_ACEOF
23834 #define HAVE_MENUS 1
23838 if test "${GNU_MALLOC}" = "yes" ; then
23840 cat >>confdefs.h <<\_ACEOF
23841 #define GNU_MALLOC 1
23845 if test "${REL_ALLOC}" = "yes" ; then
23847 cat >>confdefs.h <<\_ACEOF
23848 #define REL_ALLOC 1
23858 #### Report on what we decided to do.
23859 #### Report GTK as a toolkit, even if it doesn't use Xt.
23860 #### It makes printing result more understandable as using GTK sets
23861 #### toolkit_scroll_bars to yes by default.
23862 if test "${HAVE_GTK}" = "yes"; then
23867 Configured
for \
`${canonical}'.
23869 Where should the build process find the source code? ${srcdir}
23870 What operating system and machine description files should Emacs use?
23871 \`${opsysfile}' and \`${machfile}'
23872 What compiler should emacs be built with?
${CC} ${CFLAGS}
23873 Should Emacs use the GNU version of malloc?
${GNU_MALLOC}${GNU_MALLOC_reason}
23874 Should Emacs use a relocating allocator
for buffers?
${REL_ALLOC}
23875 Should Emacs use mmap
(2) for buffer allocation?
$use_mmap_for_buffers
23876 What window system should Emacs use?
${window_system}
23877 What toolkit should Emacs use?
${USE_X_TOOLKIT}"
23879 if test -n "${x_includes}"; then
23880 echo " Where
do we
find X Windows header files?
${x_includes}"
23882 echo " Where
do we
find X Windows header files? Standard
dirs"
23884 if test -n "${x_libraries}"; then
23885 echo " Where
do we
find X Windows libraries?
${x_libraries}"
23887 echo " Where
do we
find X Windows libraries? Standard
dirs"
23890 echo " Does Emacs use
-lXaw3d?
${HAVE_XAW3D}"
23891 echo " Does Emacs use
-lXpm?
${HAVE_XPM}"
23892 echo " Does Emacs use
-ljpeg?
${HAVE_JPEG}"
23893 echo " Does Emacs use
-ltiff?
${HAVE_TIFF}"
23894 echo " Does Emacs use a gif library?
${HAVE_GIF} $ac_gif_lib_name"
23895 echo " Does Emacs use
-lpng?
${HAVE_PNG}"
23896 echo " Does Emacs use
-lrsvg-2?
${HAVE_RSVG}"
23897 echo " Does Emacs use
-lgpm?
${HAVE_GPM}"
23898 echo " Does Emacs use
-ldbus?
${HAVE_DBUS}"
23899 echo " Does Emacs use a font backend?
${USE_FONT_BACKEND}"
23901 if test "${USE_FONT_BACKEND}" = "yes"; then
23902 echo " Does Emacs use
-lfreetype?
${HAVE_FREETYPE}"
23903 echo " Does Emacs use
-lm17n-flt?
${HAVE_M17N_FLT}"
23904 echo " Does Emacs use
-lotf?
${HAVE_LIBOTF}"
23905 echo " Does Emacs use
-lxft?
${HAVE_XFT}"
23907 echo " Does Emacs use X toolkit scroll bars?
${USE_TOOLKIT_SCROLL_BARS}"
23910 if test $USE_XASSERTS = yes; then
23911 echo " Compiling with asserts turned on.
"
23912 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23916 if test "$USE_X_TOOLKIT" = GTK; then
23917 case "$canonical" in
23919 echo "There are known problems with Emacs and Gtk
+ on cygwin
, so you
23920 will probably get a crash on startup. If this happens
, please use another
23921 toolkit
for Emacs. See etc
/PROBLEMS
for more information.
"
23927 if test "$HAVE_CARBON" = "yes"; then
23929 echo "Warning
: The Mac Carbon port is currently unsupported and has
23930 known problems. It is not recommended
for use by non-developers.
23931 Read the emacs-devel archives
for more information.
"
23935 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux
"; then
23936 echo "D-Bus integration has been tested
for GNU
/Linux only.
"
23941 # Remove any trailing slashes in these variables.
23942 test "${prefix}" != NONE &&
23943 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23944 test "${exec_prefix}" != NONE &&
23945 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23947 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23948 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23949 ## from Makefile.c can correctly provide the arg `-traditional' to the
23952 cat >conftest.$ac_ext <<_ACEOF
23955 cat confdefs.h >>conftest.$ac_ext
23956 cat >>conftest.$ac_ext <<_ACEOF
23957 /* end confdefs.h. */
23960 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
23961 $EGREP "yes..
yes" >/dev/null 2>&1; then
23962 CPP_NEED_TRADITIONAL=no
23964 CPP_NEED_TRADITIONAL=yes
23969 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
"
23971 ac_config_commands="$ac_config_commands default
"
23973 cat >confcache <<\_ACEOF
23974 # This file is a shell script that caches the results of configure
23975 # tests run on this system so they can be shared between configure
23976 # scripts and configure runs, see configure's option --config-cache.
23977 # It is not useful on other systems. If it contains results you don't
23978 # want to keep, you may remove or edit it.
23980 # config.status only pays attention to the cache file if you give it
23981 # the --recheck option to rerun configure.
23983 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23984 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23985 # following values.
23989 # The following way of writing the cache mishandles newlines in values,
23990 # but we know of no workaround that is simple, portable, and efficient.
23991 # So, we kill variables containing newlines.
23992 # Ultrix sh set writes to stderr and can't be redirected directly,
23993 # and sets the high bit in the cache file unless we assign to the vars.
23995 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23996 eval ac_val=\$$ac_var
24000 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
24001 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
24004 _ | IFS | as_nl) ;; #(
24005 *) $as_unset $ac_var ;;
24011 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24012 *${as_nl}ac_space=\ *)
24013 # `set' does not quote correctly, so add quotes (double-quote
24014 # substitution turns \\\\ into \\, and sed turns \\ into \).
24017 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
24020 # `set' quotes correctly as required by POSIX, so do not add quotes.
24021 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
24030 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24032 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24034 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24035 if test -w "$cache_file"; then
24036 test "x
$cache_file" != "x
/dev
/null
" &&
24037 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
24038 echo "$as_me: updating cache
$cache_file" >&6;}
24039 cat confcache >$cache_file
24041 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
24042 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
24047 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
24048 # Let make expand exec_prefix.
24049 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
24051 DEFS=-DHAVE_CONFIG_H
24055 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
24056 # 1. Remove the extension, and $U if already installed.
24057 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24058 ac_i=`echo "$ac_i" | sed "$ac_script"`
24059 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24060 # will be set to the directory where LIBOBJS objects are built.
24061 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
24062 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
24064 LIBOBJS=$ac_libobjs
24066 LTLIBOBJS=$ac_ltlibobjs
24070 : ${CONFIG_STATUS=./config.status}
24071 ac_clean_files_save=$ac_clean_files
24072 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24073 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
24074 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
24075 cat >$CONFIG_STATUS <<_ACEOF
24077 # Generated by $as_me.
24078 # Run this file to recreate the current configuration.
24079 # Compiler output produced by configure, useful for debugging
24080 # configure, is in config.log if it exists.
24083 ac_cs_recheck=false
24085 SHELL=\${CONFIG_SHELL-$SHELL}
24088 cat >>$CONFIG_STATUS <<\_ACEOF
24089 ## --------------------- ##
24090 ## M4sh Initialization. ##
24091 ## --------------------- ##
24093 # Be more Bourne compatible
24094 DUALCASE=1; export DUALCASE # for MKS sh
24095 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24098 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24099 # is contrary to our usage. Disable this feature.
24100 alias -g '${1+"$@"}'='"$@
"'
24101 setopt NO_GLOB_SUBST
24103 case `(set -o) 2>/dev/null` in
24104 *posix*) set -o posix ;;
24113 # Avoid depending upon Character Ranges.
24114 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24115 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24116 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24117 as_cr_digits='0123456789'
24118 as_cr_alnum=$as_cr_Letters$as_cr_digits
24120 # The user is always right.
24121 if test "${PATH_SEPARATOR+set}" != set; then
24122 echo "#! /bin/sh" >conf$$.sh
24123 echo "exit 0" >>conf$$.sh
24125 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
24133 # Support unset when possible.
24134 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
24142 # We need space, tab and new line, in precisely that order. Quoting is
24143 # there to prevent editors from complaining about space-tab.
24144 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24145 # splitting by setting IFS to empty value.)
24150 # Find who we are. Look in the path if we contain no directory separator.
24152 *[\\/]* ) as_myself
=$0 ;;
24153 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24154 for as_dir
in $PATH
24157 test -z "$as_dir" && as_dir
=.
24158 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
24164 # We did not find ourselves, most probably we were run as `sh COMMAND'
24165 # in which case we are not to be found in the path.
24166 if test "x$as_myself" = x
; then
24169 if test ! -f "$as_myself"; then
24170 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24171 { (exit 1); exit 1; }
24174 # Work around bugs in pre-3.0 UWIN ksh.
24175 for as_var
in ENV MAIL MAILPATH
24176 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24184 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24185 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24186 LC_TELEPHONE LC_TIME
24188 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24189 eval $as_var=C
; export $as_var
24191 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24195 # Required to use basename.
24196 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24197 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24203 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24204 as_basename
=basename
24210 # Name of the executable.
24211 as_me
=`$as_basename -- "$0" ||
24212 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24213 X"$0" : 'X\(//\)$' \| \
24214 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24216 sed '/^.*\/\([^/][^/]*\)\/*$/{
24235 as_lineno_1
=$LINENO
24236 as_lineno_2
=$LINENO
24237 test "x$as_lineno_1" != "x$as_lineno_2" &&
24238 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
24240 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24241 # uniformly replaced by the line number. The first 'sed' inserts a
24242 # line-number line after each line using $LINENO; the second 'sed'
24243 # does the real work. The second script uses 'N' to pair each
24244 # line-number line with the line containing $LINENO, and appends
24245 # trailing '-' during substitution so that $LINENO is not a special
24246 # case at line end.
24247 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24248 # scripts with optimization help from Paolo Bonzini. Blame Lee
24249 # E. McMahon (1931-1989) for sed's syntax. :-)
24261 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24264 ' >$as_me.lineno
&&
24265 chmod +x
"$as_me.lineno" ||
24266 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24267 { (exit 1); exit 1; }; }
24269 # Don't try to exec as it changes $[0], causing all sort of problems
24270 # (the dirname of $[0] is not the place where we might find the
24271 # original and so on. Autoconf is especially sensitive to this).
24272 .
"./$as_me.lineno"
24273 # Exit status is that of the last command.
24278 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
24284 ECHO_C
= ECHO_N
= ECHO_T
=
24285 case `echo -n x` in
24287 case `echo 'x\c'` in
24288 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
24295 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24296 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24302 rm -f conf$$ conf$$.exe conf$$.
file
24303 if test -d conf$$.dir
; then
24304 rm -f conf$$.dir
/conf$$.
file
24310 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
24312 # ... but there are two gotchas:
24313 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24314 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24315 # In both cases, we have to default to `cp -p'.
24316 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
24318 elif ln conf$$.
file conf$$
2>/dev
/null
; then
24323 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
24324 rmdir conf$$.dir
2>/dev
/null
24326 if mkdir
-p .
2>/dev
/null
; then
24329 test -d .
/-p && rmdir .
/-p
24333 if test -x / >/dev
/null
2>&1; then
24334 as_test_x
='test -x'
24336 if ls -dL / >/dev
/null
2>&1; then
24343 if test -d "$1"; then
24349 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24350 ???[sx]*):;;*)false;;esac;fi
24354 as_executable_p
=$as_test_x
24356 # Sed expression to map a string onto a valid CPP name.
24357 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24359 # Sed expression to map a string onto a valid variable name.
24360 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24365 # Save the log message, to keep $[0] and so on meaningful, and to
24366 # report actual input values of CONFIG_FILES etc. instead of their
24367 # values after options handling.
24369 This file was extended by emacs $as_me 23.0.50, which was
24370 generated by GNU Autoconf 2.61. Invocation command line was
24372 CONFIG_FILES = $CONFIG_FILES
24373 CONFIG_HEADERS = $CONFIG_HEADERS
24374 CONFIG_LINKS = $CONFIG_LINKS
24375 CONFIG_COMMANDS = $CONFIG_COMMANDS
24378 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24383 cat >>$CONFIG_STATUS <<_ACEOF
24384 # Files that config.status was made for.
24385 config_files="$ac_config_files"
24386 config_headers="$ac_config_headers"
24387 config_commands="$ac_config_commands"
24391 cat >>$CONFIG_STATUS <<\_ACEOF
24393 \`$as_me' instantiates files from templates according to the
24394 current configuration.
24396 Usage: $0 [OPTIONS] [FILE]...
24398 -h, --help print this help, then exit
24399 -V, --version print version number and configuration settings, then exit
24400 -q, --quiet do not print progress messages
24401 -d, --debug don't remove temporary files
24402 --recheck update $as_me by reconfiguring in the same conditions
24403 --file=FILE[:TEMPLATE]
24404 instantiate the configuration file FILE
24405 --header=FILE[:TEMPLATE]
24406 instantiate the configuration header FILE
24408 Configuration files:
24411 Configuration headers:
24414 Configuration commands:
24417 Report bugs to <bug-autoconf@gnu.org>."
24420 cat >>$CONFIG_STATUS <<_ACEOF
24422 emacs config.status 23.0.50
24423 configured by $0, generated by GNU Autoconf 2.61,
24424 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24426 Copyright (C) 2006 Free Software Foundation, Inc.
24427 This config.status script is free software; the Free Software Foundation
24428 gives unlimited permission to copy, distribute and modify it."
24435 cat >>$CONFIG_STATUS <<\_ACEOF
24436 # If no file are specified by the user, then we need to provide default
24437 # value. By we need to know if files were specified by the user.
24443 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
24444 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
24455 # Handling of the options.
24456 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
24458 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
24459 echo "$ac_cs_version"; exit ;;
24460 --debug |
--debu |
--deb |
--de |
--d |
-d )
24462 --file |
--fil |
--fi |
--f )
24464 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
24465 ac_need_defaults
=false
;;
24466 --header |
--heade |
--head |
--hea )
24468 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
24469 ac_need_defaults
=false
;;
24471 # Conflict between --help and --header
24472 { echo "$as_me: error: ambiguous option: $1
24473 Try \`$0 --help' for more information." >&2
24474 { (exit 1); exit 1; }; };;
24475 --help |
--hel |
-h )
24476 echo "$ac_cs_usage"; exit ;;
24477 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
24478 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
24481 # This is an error.
24482 -*) { echo "$as_me: error: unrecognized option: $1
24483 Try \`$0 --help' for more information." >&2
24484 { (exit 1); exit 1; }; } ;;
24486 *) ac_config_targets
="$ac_config_targets $1"
24487 ac_need_defaults
=false
;;
24493 ac_configure_extra_args
=
24495 if $ac_cs_silent; then
24497 ac_configure_extra_args
="$ac_configure_extra_args --silent"
24501 cat >>$CONFIG_STATUS <<_ACEOF
24502 if \$ac_cs_recheck; then
24503 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24504 CONFIG_SHELL=$SHELL
24505 export CONFIG_SHELL
24506 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24510 cat >>$CONFIG_STATUS <<\_ACEOF
24514 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24515 ## Running $as_me. ##
24521 cat >>$CONFIG_STATUS <<_ACEOF
24525 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
24529 cat >>$CONFIG_STATUS <<\_ACEOF
24531 # Handling of arguments.
24532 for ac_config_target
in $ac_config_targets
24534 case $ac_config_target in
24535 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24536 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
24537 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24538 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
24539 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
24540 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
24541 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
24542 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
24543 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24544 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
24545 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
24546 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
24547 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
24549 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24550 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24551 { (exit 1); exit 1; }; };;
24556 # If the user did not use the arguments to specify the items to instantiate,
24557 # then the envvar interface is used. Set only those that are not.
24558 # We use the long form for the default assignment because of an extremely
24559 # bizarre bug on SunOS 4.1.3.
24560 if $ac_need_defaults; then
24561 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
24562 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
24563 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
24566 # Have a temporary directory for convenience. Make it in the build tree
24567 # simply because there is no reason against having it here, and in addition,
24568 # creating and moving files from /tmp can sometimes cause problems.
24569 # Hook for its removal unless debugging.
24570 # Note that there is a small window in which the directory will not be cleaned:
24571 # after its creation but before its name has been assigned to `$tmp'.
24575 trap 'exit_status=$?
24576 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24578 trap '{ (exit 1); exit 1; }' 1 2 13 15
24580 # Create a (secure) tmp directory for tmp files.
24583 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24584 test -n "$tmp" && test -d "$tmp"
24587 tmp
=.
/conf$$
-$RANDOM
24588 (umask 077 && mkdir
"$tmp")
24591 echo "$me: cannot create a temporary directory in ." >&2
24592 { (exit 1); exit 1; }
24596 # Set up the sed scripts for CONFIG_FILES section.
24599 # No need to generate the scripts if there are no CONFIG_FILES.
24600 # This happens for instance when ./config.status config.h
24601 if test -n "$CONFIG_FILES"; then
24608 for ac_last_try
in false false false false false
:; do
24609 cat >conf$
$subs.
sed <<_ACEOF
24610 SHELL!$SHELL$ac_delim
24611 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24612 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24613 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24614 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24615 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24616 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24617 exec_prefix!$exec_prefix$ac_delim
24618 prefix!$prefix$ac_delim
24619 program_transform_name!$program_transform_name$ac_delim
24620 bindir!$bindir$ac_delim
24621 sbindir!$sbindir$ac_delim
24622 libexecdir!$libexecdir$ac_delim
24623 datarootdir!$datarootdir$ac_delim
24624 datadir!$datadir$ac_delim
24625 sysconfdir!$sysconfdir$ac_delim
24626 sharedstatedir!$sharedstatedir$ac_delim
24627 localstatedir!$localstatedir$ac_delim
24628 includedir!$includedir$ac_delim
24629 oldincludedir!$oldincludedir$ac_delim
24630 docdir!$docdir$ac_delim
24631 infodir!$infodir$ac_delim
24632 htmldir!$htmldir$ac_delim
24633 dvidir!$dvidir$ac_delim
24634 pdfdir!$pdfdir$ac_delim
24635 psdir!$psdir$ac_delim
24636 libdir!$libdir$ac_delim
24637 localedir!$localedir$ac_delim
24638 mandir!$mandir$ac_delim
24639 DEFS!$DEFS$ac_delim
24640 ECHO_C!$ECHO_C$ac_delim
24641 ECHO_N!$ECHO_N$ac_delim
24642 ECHO_T!$ECHO_T$ac_delim
24643 LIBS!$LIBS$ac_delim
24644 build_alias!$build_alias$ac_delim
24645 host_alias!$host_alias$ac_delim
24646 target_alias!$target_alias$ac_delim
24647 MAINT!$MAINT$ac_delim
24648 build!$build$ac_delim
24649 build_cpu!$build_cpu$ac_delim
24650 build_vendor!$build_vendor$ac_delim
24651 build_os!$build_os$ac_delim
24652 host!$host$ac_delim
24653 host_cpu!$host_cpu$ac_delim
24654 host_vendor!$host_vendor$ac_delim
24655 host_os!$host_os$ac_delim
24657 CFLAGS!$CFLAGS$ac_delim
24658 LDFLAGS!$LDFLAGS$ac_delim
24659 CPPFLAGS!$CPPFLAGS$ac_delim
24660 ac_ct_CC!$ac_ct_CC$ac_delim
24661 EXEEXT!$EXEEXT$ac_delim
24662 OBJEXT!$OBJEXT$ac_delim
24664 GREP!$GREP$ac_delim
24665 EGREP!$EGREP$ac_delim
24666 LN_S!$LN_S$ac_delim
24667 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24668 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24669 INSTALL_DATA!$INSTALL_DATA$ac_delim
24670 RANLIB!$RANLIB$ac_delim
24671 INSTALL_INFO!$INSTALL_INFO$ac_delim
24672 GZIP_PROG!$GZIP_PROG$ac_delim
24673 MAKEINFO!$MAKEINFO$ac_delim
24674 LIBSOUND!$LIBSOUND$ac_delim
24675 PKG_CONFIG!$PKG_CONFIG$ac_delim
24676 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24677 ALSA_LIBS!$ALSA_LIBS$ac_delim
24678 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24679 SET_MAKE!$SET_MAKE$ac_delim
24680 XMKMF!$XMKMF$ac_delim
24681 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
24682 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
24683 RSVG_LIBS!$RSVG_LIBS$ac_delim
24684 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24685 GTK_LIBS!$GTK_LIBS$ac_delim
24686 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
24687 DBUS_LIBS!$DBUS_LIBS$ac_delim
24688 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24689 XFT_LIBS!$XFT_LIBS$ac_delim
24690 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
24691 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
24692 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
24693 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
24694 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
24695 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
24696 M17N_FLT_CFLAGS!$M17N_FLT_CFLAGS$ac_delim
24697 M17N_FLT_LIBS!$M17N_FLT_LIBS$ac_delim
24698 ALLOCA!$ALLOCA$ac_delim
24699 liblockfile!$liblockfile$ac_delim
24700 LIBOBJS!$LIBOBJS$ac_delim
24701 NEED_SETGID!$NEED_SETGID$ac_delim
24702 KMEM_GROUP!$KMEM_GROUP$ac_delim
24703 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24704 GETOPT_H!$GETOPT_H$ac_delim
24705 GETOPTOBJS!$GETOPTOBJS$ac_delim
24706 version!$version$ac_delim
24709 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24711 elif $ac_last_try; then
24712 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24713 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24714 { (exit 1); exit 1; }; }
24716 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24720 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24721 if test -n "$ac_eof"; then
24722 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24723 ac_eof
=`expr $ac_eof + 1`
24726 cat >>$CONFIG_STATUS <<_ACEOF
24727 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24728 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24731 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24732 s/^/s,@/; s/!/@,|#_!!_#|/
24735 s/'"$ac_delim"'$/,g/; t
24737 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24738 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24739 rm -f conf$
$subs.
sed
24740 cat >>$CONFIG_STATUS <<_ACEOF
24746 for ac_last_try
in false false false false false
:; do
24747 cat >conf$
$subs.
sed <<_ACEOF
24748 configuration!$configuration$ac_delim
24749 canonical!$canonical$ac_delim
24750 srcdir!$srcdir$ac_delim
24751 lispdir!$lispdir$ac_delim
24752 locallisppath!$locallisppath$ac_delim
24753 lisppath!$lisppath$ac_delim
24754 x_default_search_path!$x_default_search_path$ac_delim
24755 etcdir!$etcdir$ac_delim
24756 archlibdir!$archlibdir$ac_delim
24757 bitmapdir!$bitmapdir$ac_delim
24758 gamedir!$gamedir$ac_delim
24759 gameuser!$gameuser$ac_delim
24760 c_switch_system!$c_switch_system$ac_delim
24761 c_switch_machine!$c_switch_machine$ac_delim
24762 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
24763 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
24764 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
24765 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
24766 machfile!$machfile$ac_delim
24767 opsysfile!$opsysfile$ac_delim
24768 carbon_appdir!$carbon_appdir$ac_delim
24769 LTLIBOBJS!$LTLIBOBJS$ac_delim
24772 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 22; then
24774 elif $ac_last_try; then
24775 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24776 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24777 { (exit 1); exit 1; }; }
24779 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24783 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24784 if test -n "$ac_eof"; then
24785 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24786 ac_eof
=`expr $ac_eof + 1`
24789 cat >>$CONFIG_STATUS <<_ACEOF
24790 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24791 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24794 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24795 s/^/s,@/; s/!/@,|#_!!_#|/
24798 s/'"$ac_delim"'$/,g/; t
24800 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24801 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24802 rm -f conf$
$subs.
sed
24803 cat >>$CONFIG_STATUS <<_ACEOF
24810 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24811 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24812 # trailing colons and then remove the whole line if VPATH becomes empty
24813 # (actually we leave an empty line to preserve line numbers).
24814 if test "x$srcdir" = x.
; then
24815 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
24816 s/:*\$(srcdir):*/:/
24817 s/:*\${srcdir}:*/:/
24819 s/^\([^=]*=[ ]*\):*/\1/
24825 cat >>$CONFIG_STATUS <<\_ACEOF
24826 fi # test -n "$CONFIG_FILES"
24829 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
24832 :[FHLC
]) ac_mode
=$ac_tag; continue;;
24834 case $ac_mode$ac_tag in
24836 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24837 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24838 { (exit 1); exit 1; }; };;
24839 :[FH
]-) ac_tag
=-:-;;
24840 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
24857 -) ac_f
="$tmp/stdin";;
24858 *) # Look for the file first in the build tree, then in the source tree
24859 # (if the path is not absolute). The absolute path cannot be DOS-style,
24860 # because $ac_f cannot contain `:'.
24864 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
24866 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24867 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24868 { (exit 1); exit 1; }; };;
24870 ac_file_inputs
="$ac_file_inputs $ac_f"
24873 # Let's still pretend it is `configure' which instantiates (i.e., don't
24874 # use $as_me), people would be surprised to read:
24875 # /* config.h. Generated by config.status. */
24876 configure_input
="Generated from "`IFS=:
24877 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24878 if test x
"$ac_file" != x-
; then
24879 configure_input
="$ac_file. $configure_input"
24880 { echo "$as_me:$LINENO: creating $ac_file" >&5
24881 echo "$as_me: creating $ac_file" >&6;}
24885 *:-:* |
*:-) cat >"$tmp/stdin";;
24890 ac_dir
=`$as_dirname -- "$ac_file" ||
24891 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24892 X"$ac_file" : 'X\(//\)[^/]' \| \
24893 X"$ac_file" : 'X\(//\)$' \| \
24894 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24896 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24900 /^X\(\/\/\)[^/].*/{
24915 -*) as_dir
=.
/$as_dir;;
24917 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
24921 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24922 *) as_qdir
=$as_dir;;
24924 as_dirs
="'$as_qdir' $as_dirs"
24925 as_dir
=`$as_dirname -- "$as_dir" ||
24926 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24927 X"$as_dir" : 'X\(//\)[^/]' \| \
24928 X"$as_dir" : 'X\(//\)$' \| \
24929 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24931 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24935 /^X\(\/\/\)[^/].*/{
24948 test -d "$as_dir" && break
24950 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
24951 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24952 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24953 { (exit 1); exit 1; }; }; }
24957 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24959 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24960 # A ".." for each directory in $ac_dir_suffix.
24961 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24962 case $ac_top_builddir_sub in
24963 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24964 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
24967 ac_abs_top_builddir
=$ac_pwd
24968 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
24969 # for backward compatibility:
24970 ac_top_builddir
=$ac_top_build_prefix
24973 .
) # We are building in place.
24975 ac_top_srcdir
=$ac_top_builddir_sub
24976 ac_abs_top_srcdir
=$ac_pwd ;;
24977 [\\/]* | ?
:[\\/]* ) # Absolute name.
24978 ac_srcdir
=$srcdir$ac_dir_suffix;
24979 ac_top_srcdir
=$srcdir
24980 ac_abs_top_srcdir
=$srcdir ;;
24981 *) # Relative name.
24982 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
24983 ac_top_srcdir
=$ac_top_build_prefix$srcdir
24984 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
24986 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
24996 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
24997 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
25001 cat >>$CONFIG_STATUS <<\_ACEOF
25002 # If the template does not know about datarootdir, expand it.
25003 # FIXME: This hack should be removed a few years after 2.60.
25004 ac_datarootdir_hack
=; ac_datarootdir_seen
=
25006 case `sed -n '/datarootdir/ {
25015 ' $ac_file_inputs` in
25016 *datarootdir
*) ac_datarootdir_seen
=yes;;
25017 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
25018 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25019 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25021 cat >>$CONFIG_STATUS <<_ACEOF
25022 ac_datarootdir_hack='
25023 s&@datadir@&$datadir&g
25024 s&@docdir@&$docdir&g
25025 s&@infodir@&$infodir&g
25026 s&@localedir@&$localedir&g
25027 s&@mandir@&$mandir&g
25028 s&\\\${datarootdir}&$datarootdir&g' ;;
25032 # Neutralize VPATH when `$srcdir' = `.'.
25033 # Shell code in configure.ac might set extrasub.
25034 # FIXME: do we really want to maintain this feature?
25035 cat >>$CONFIG_STATUS <<_ACEOF
25039 cat >>$CONFIG_STATUS <<\_ACEOF
25041 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
25042 s
&@configure_input@
&$configure_input&;t t
25043 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
25044 s
&@srcdir@
&$ac_srcdir&;t t
25045 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
25046 s
&@top_srcdir@
&$ac_top_srcdir&;t t
25047 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
25048 s
&@builddir@
&$ac_builddir&;t t
25049 s
&@abs_builddir@
&$ac_abs_builddir&;t t
25050 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
25051 s
&@INSTALL@
&$ac_INSTALL&;t t
25052 $ac_datarootdir_hack
25053 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
25055 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25056 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
25057 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
25058 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
25059 which seems to be undefined. Please make sure it is defined." >&5
25060 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
25061 which seems to be undefined. Please make sure it is defined." >&2;}
25065 -) cat "$tmp/out"; rm -f "$tmp/out";;
25066 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25075 # Transform confdefs.h into a sed script `conftest.defines', that
25076 # substitutes the proper values into config.h.in to produce config.h.
25077 rm -f conftest.defines conftest.
tail
25078 # First, append a space to every undef/define line, to ease matching.
25079 echo 's/$/ /' >conftest.defines
25080 # Then, protect against being on the right side of a sed subst, or in
25081 # an unquoted here document, in config.status. If some macros were
25082 # called several times there might be several #defines for the same
25083 # symbol, which is useless. But do not sort them, since the last
25084 # AC_DEFINE must be honored.
25085 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
25086 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25087 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25088 # PARAMS is the parameter list in the macro definition--in most cases, it's
25089 # just an empty string.
25090 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25091 ac_dB
='\\)[ (].*,\\1define\\2'
25099 s/^[ ]*#[ ]*define[ ][ ]*//
25104 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25105 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25106 ' >>conftest.defines
25108 # Remove the space that was appended to ease matching.
25109 # Then replace #undef with comments. This is necessary, for
25110 # example, in the case of _POSIX_SOURCE, which is predefined and required
25111 # on some systems where configure will not decide to define it.
25112 # (The regexp can be short, since the line contains either #define or #undef.)
25114 s,^[ #]*u.*,/* & */,' >>conftest.defines
25116 # Break up conftest.defines:
25117 ac_max_sed_lines
=50
25119 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25120 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25121 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25123 ac_in
='$ac_file_inputs'
25124 ac_out
='"$tmp/out1"'
25125 ac_nxt
='"$tmp/out2"'
25129 # Write a here document:
25130 cat >>$CONFIG_STATUS <<_ACEOF
25131 # First, check the format of the line:
25132 cat >"\$tmp/defines.sed" <<\\CEOF
25133 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25134 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25138 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
25140 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25141 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
25142 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
25143 grep . conftest.
tail >/dev
/null ||
break
25144 rm -f conftest.defines
25145 mv conftest.
tail conftest.defines
25147 rm -f conftest.defines conftest.
tail
25149 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25150 cat >>$CONFIG_STATUS <<\_ACEOF
25151 if test x
"$ac_file" != x-
; then
25152 echo "/* $configure_input */" >"$tmp/config.h"
25153 cat "$ac_result" >>"$tmp/config.h"
25154 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
25155 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25156 echo "$as_me: $ac_file is unchanged" >&6;}
25159 mv "$tmp/config.h" $ac_file
25162 echo "/* $configure_input */"
25168 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25169 echo "$as_me: executing $ac_file commands" >&6;}
25174 case $ac_file$ac_mode in
25177 ### Make the necessary directories, if they don't exist.
25178 for dir
in etc lisp
; do
25179 test -d ${dir} || mkdir
${dir}
25182 # Build src/Makefile from ${srcdir}/src/Makefile.c
25183 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25184 # This must be done after src/config.h is built, since we rely on that file.
25186 # Now get this: Some word that is part of the ${srcdir} directory name
25187 # or the ${configuration} value might, just might, happen to be an
25188 # identifier like `sun4' or `i386' or something, and be predefined by
25189 # the C preprocessor to some helpful value like 1, or maybe the empty
25190 # string. Needless to say consequent macro substitutions are less
25191 # than conducive to the makefile finding the correct directory.
25192 undefs
="`echo $top_srcdir $configuration $canonical |
25193 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
25194 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
25197 echo creating src
/epaths.h
25198 ${MAKE-make} epaths-force
25200 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25201 # `..' to `. .' unless invoked with -traditional
25203 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
25204 CPPFLAGS
="$CPPFLAGS -traditional"
25207 echo creating lib-src
/Makefile
25209 rm -f junk.c junk1.c junk2.c
25210 sed -e '/start of cpp stuff/q' \
25211 < Makefile.c
> junk1.c
25212 sed -e '1,/start of cpp stuff/d'\
25213 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25214 < Makefile.c
> junk.c
25215 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
25216 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25217 cat junk1.c junk2.c
> Makefile.new
25218 rm -f junk.c junk1.c junk2.c
25219 chmod 444 Makefile.new
25220 mv -f Makefile.new Makefile
25223 echo creating src
/Makefile
25225 rm -f junk.c junk1.c junk2.c
25226 sed -e '/start of cpp stuff/q' \
25227 < Makefile.c
> junk1.c
25228 sed -e '1,/start of cpp stuff/d'\
25229 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25230 < Makefile.c
> junk.c
25231 if test -f ${srcdir}/admin
/unidata
/UnicodeData.txt
; then
25232 echo creating
${srcdir}/admin
/unidata
/Makefile
25233 cp ${srcdir}/admin
/unidata
/Makefile.
in ${srcdir}/admin
/unidata
/Makefile
25234 CPPFLAGS
="$CPPFLAGS -DHAVE_UNIDATA"
25236 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
25237 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25238 cat junk1.c junk2.c
> Makefile.new
25239 rm -f junk.c junk1.c junk2.c
25240 chmod 444 Makefile.new
25241 mv -f Makefile.new Makefile
25244 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
25245 echo creating src
/.gdbinit
25246 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
25249 # This is how we know whether to re-run configure in certain cases.
25250 touch src
/config.stamp
25258 { (exit 0); exit 0; }
25260 chmod +x
$CONFIG_STATUS
25261 ac_clean_files
=$ac_clean_files_save
25264 # configure is writing to config.log, and then calls config.status.
25265 # config.status does its own redirection, appending to config.log.
25266 # Unfortunately, on DOS this fails, as config.log is still kept open
25267 # by configure, so config.status won't be able to write to it; its
25268 # output is simply discarded. So we exec the FD to /dev/null,
25269 # effectively closing config.log, so it can be properly (re)opened and
25270 # appended to by config.status. When coming back to configure, we
25271 # need to make the FD available again.
25272 if test "$no_create" != yes; then
25274 ac_config_status_args
=
25275 test "$silent" = yes &&
25276 ac_config_status_args
="$ac_config_status_args --quiet"
25278 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
25280 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25281 # would make configure fail if this is the last instruction.
25282 $ac_cs_success ||
{ (exit 1); exit 1; }