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
714 x_default_search_path
731 ac_precious_vars
='build_alias
743 # Initialize some variables set by options.
745 ac_init_version
=false
746 # The variables have the same names as the options, with
747 # dashes changed to underlines.
755 program_transform_name
=s
,x
,x
,
763 # Installation directory options.
764 # These are left unexpanded so users can "make install exec_prefix=/foo"
765 # and all the variables that are supposed to be based on exec_prefix
766 # by default will actually change.
767 # Use braces instead of parens because sh, perl, etc. also accept them.
768 # (The list follows the same order as the GNU Coding Standards.)
769 bindir
='${exec_prefix}/bin'
770 sbindir
='${exec_prefix}/sbin'
771 libexecdir
='${exec_prefix}/libexec'
772 datarootdir
='${prefix}/share'
773 datadir
='${datarootdir}'
774 sysconfdir
='${prefix}/etc'
775 sharedstatedir
='${prefix}/com'
776 localstatedir
='${prefix}/var'
777 includedir
='${prefix}/include'
778 oldincludedir
='/usr/include'
779 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
780 infodir
='${datarootdir}/info'
785 libdir
='${exec_prefix}/lib'
786 localedir
='${datarootdir}/locale'
787 mandir
='${datarootdir}/man'
793 # If the previous option needs an argument, assign it.
794 if test -n "$ac_prev"; then
795 eval $ac_prev=\
$ac_option
801 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
805 # Accept the important Cygnus configure options, so we can diagnose typos.
807 case $ac_dashdash$ac_option in
811 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
813 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
816 -build |
--build |
--buil |
--bui |
--bu)
817 ac_prev
=build_alias
;;
818 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
819 build_alias
=$ac_optarg ;;
821 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
822 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
823 ac_prev
=cache_file
;;
824 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
825 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
826 cache_file
=$ac_optarg ;;
829 cache_file
=config.cache
;;
831 -datadir |
--datadir |
--datadi |
--datad)
833 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
834 datadir
=$ac_optarg ;;
836 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
837 |
--dataroo |
--dataro |
--datar)
838 ac_prev
=datarootdir
;;
839 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
840 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
841 datarootdir
=$ac_optarg ;;
843 -disable-* |
--disable-*)
844 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
845 # Reject names that are not valid shell variable names.
846 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
847 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
848 { (exit 1); exit 1; }; }
849 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
850 eval enable_
$ac_feature=no
;;
852 -docdir |
--docdir |
--docdi |
--doc |
--do)
854 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
857 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
859 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
862 -enable-* |
--enable-*)
863 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
864 # Reject names that are not valid shell variable names.
865 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
866 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
867 { (exit 1); exit 1; }; }
868 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
869 eval enable_
$ac_feature=\
$ac_optarg ;;
871 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
872 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
873 |
--exec |
--exe |
--ex)
874 ac_prev
=exec_prefix
;;
875 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
876 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
877 |
--exec=* |
--exe=* |
--ex=*)
878 exec_prefix
=$ac_optarg ;;
880 -gas |
--gas |
--ga |
--g)
881 # Obsolete; use --with-gas.
884 -help |
--help |
--hel |
--he |
-h)
886 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
887 ac_init_help
=recursive
;;
888 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
889 ac_init_help
=short
;;
891 -host |
--host |
--hos |
--ho)
892 ac_prev
=host_alias
;;
893 -host=* |
--host=* |
--hos=* |
--ho=*)
894 host_alias
=$ac_optarg ;;
896 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
898 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
900 htmldir
=$ac_optarg ;;
902 -includedir |
--includedir |
--includedi |
--included |
--include \
903 |
--includ |
--inclu |
--incl |
--inc)
904 ac_prev
=includedir
;;
905 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
906 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
907 includedir
=$ac_optarg ;;
909 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
911 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
912 infodir
=$ac_optarg ;;
914 -libdir |
--libdir |
--libdi |
--libd)
916 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
919 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
920 |
--libexe |
--libex |
--libe)
921 ac_prev
=libexecdir
;;
922 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
923 |
--libexe=* |
--libex=* |
--libe=*)
924 libexecdir
=$ac_optarg ;;
926 -localedir |
--localedir |
--localedi |
--localed |
--locale)
928 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
929 localedir
=$ac_optarg ;;
931 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
932 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
933 ac_prev
=localstatedir
;;
934 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
935 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
936 localstatedir
=$ac_optarg ;;
938 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
940 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
944 # Obsolete; use --without-fp.
947 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
948 |
--no-cr |
--no-c |
-n)
951 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
952 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
955 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
956 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
957 |
--oldin |
--oldi |
--old |
--ol |
--o)
958 ac_prev
=oldincludedir
;;
959 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
960 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
961 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
962 oldincludedir
=$ac_optarg ;;
964 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
966 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
969 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
970 |
--program-pre |
--program-pr |
--program-p)
971 ac_prev
=program_prefix
;;
972 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
973 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
974 program_prefix
=$ac_optarg ;;
976 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
977 |
--program-suf |
--program-su |
--program-s)
978 ac_prev
=program_suffix
;;
979 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
980 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
981 program_suffix
=$ac_optarg ;;
983 -program-transform-name |
--program-transform-name \
984 |
--program-transform-nam |
--program-transform-na \
985 |
--program-transform-n |
--program-transform- \
986 |
--program-transform |
--program-transfor \
987 |
--program-transfo |
--program-transf \
988 |
--program-trans |
--program-tran \
989 |
--progr-tra |
--program-tr |
--program-t)
990 ac_prev
=program_transform_name
;;
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 program_transform_name
=$ac_optarg ;;
1000 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1002 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1003 pdfdir
=$ac_optarg ;;
1005 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1007 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1010 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1011 |
-silent |
--silent |
--silen |
--sile |
--sil)
1014 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1016 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1018 sbindir
=$ac_optarg ;;
1020 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1021 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1022 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1024 ac_prev
=sharedstatedir
;;
1025 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1026 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1027 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1029 sharedstatedir
=$ac_optarg ;;
1031 -site |
--site |
--sit)
1033 -site=* |
--site=* |
--sit=*)
1036 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1038 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1039 srcdir
=$ac_optarg ;;
1041 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1042 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1043 ac_prev
=sysconfdir
;;
1044 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1045 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1046 sysconfdir
=$ac_optarg ;;
1048 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1049 ac_prev
=target_alias
;;
1050 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1051 target_alias
=$ac_optarg ;;
1053 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1056 -version |
--version |
--versio |
--versi |
--vers |
-V)
1057 ac_init_version
=: ;;
1060 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1061 # Reject names that are not valid shell variable names.
1062 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1063 { echo "$as_me: error: invalid package name: $ac_package" >&2
1064 { (exit 1); exit 1; }; }
1065 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1066 eval with_
$ac_package=\
$ac_optarg ;;
1068 -without-* |
--without-*)
1069 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1070 # Reject names that are not valid shell variable names.
1071 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1072 { echo "$as_me: error: invalid package name: $ac_package" >&2
1073 { (exit 1); exit 1; }; }
1074 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1075 eval with_
$ac_package=no
;;
1078 # Obsolete; use --with-x.
1081 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1082 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1083 ac_prev
=x_includes
;;
1084 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1085 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1086 x_includes
=$ac_optarg ;;
1088 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1089 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1090 ac_prev
=x_libraries
;;
1091 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1092 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1093 x_libraries
=$ac_optarg ;;
1095 -*) { echo "$as_me: error: unrecognized option: $ac_option
1096 Try \`$0 --help' for more information." >&2
1097 { (exit 1); exit 1; }; }
1101 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1102 # Reject names that are not valid shell variable names.
1103 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1104 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1105 { (exit 1); exit 1; }; }
1106 eval $ac_envvar=\
$ac_optarg
1107 export $ac_envvar ;;
1110 # FIXME: should be removed in autoconf 3.0.
1111 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1112 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1113 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1114 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1120 if test -n "$ac_prev"; then
1121 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1122 { echo "$as_me: error: missing argument to $ac_option" >&2
1123 { (exit 1); exit 1; }; }
1126 # Be sure to have absolute directory names.
1127 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1128 datadir sysconfdir sharedstatedir localstatedir includedir \
1129 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1130 libdir localedir mandir
1132 eval ac_val
=\$
$ac_var
1134 [\\/$
]* | ?
:[\\/]* ) continue;;
1135 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1137 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1138 { (exit 1); exit 1; }; }
1141 # There might be people who depend on the old broken behavior: `$host'
1142 # used to hold the argument of --host etc.
1143 # FIXME: To remove some day.
1146 target
=$target_alias
1148 # FIXME: To remove some day.
1149 if test "x$host_alias" != x
; then
1150 if test "x$build_alias" = x
; then
1151 cross_compiling
=maybe
1152 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1153 If a cross compiler is detected then cross compile mode will be used." >&2
1154 elif test "x$build_alias" != "x$host_alias"; then
1160 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1162 test "$silent" = yes && exec 6>/dev
/null
1165 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1166 ac_ls_di
=`ls -di .` &&
1167 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1168 { echo "$as_me: error: Working directory cannot be determined" >&2
1169 { (exit 1); exit 1; }; }
1170 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1171 { echo "$as_me: error: pwd does not report name of working directory" >&2
1172 { (exit 1); exit 1; }; }
1175 # Find the source files, if location was not specified.
1176 if test -z "$srcdir"; then
1177 ac_srcdir_defaulted
=yes
1178 # Try the directory containing this script, then the parent directory.
1179 ac_confdir
=`$as_dirname -- "$0" ||
1180 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1181 X"$0" : 'X\(//\)[^/]' \| \
1182 X"$0" : 'X\(//\)$' \| \
1183 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1185 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1203 if test ! -r "$srcdir/$ac_unique_file"; then
1207 ac_srcdir_defaulted
=no
1209 if test ! -r "$srcdir/$ac_unique_file"; then
1210 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1211 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1212 { (exit 1); exit 1; }; }
1214 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1216 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1217 { (exit 1); exit 1; }; }
1219 # When building in place, set srcdir=.
1220 if test "$ac_abs_confdir" = "$ac_pwd"; then
1223 # Remove unnecessary trailing slashes from srcdir.
1224 # Double slashes in file names in object file debugging info
1225 # mess up M-x gdb in Emacs.
1227 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1229 for ac_var
in $ac_precious_vars; do
1230 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1231 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1232 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1233 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1237 # Report the --help message.
1239 if test "$ac_init_help" = "long"; then
1240 # Omit some internal or obsolete options to make the list less imposing.
1241 # This message is too long to be a string in the A/UX 3.1 sh.
1243 \`configure' configures emacs 23.0.50 to adapt to many kinds of systems.
1245 Usage: $0 [OPTION]... [VAR=VALUE]...
1247 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1248 VAR=VALUE. See below for descriptions of some of the useful variables.
1250 Defaults for the options are specified in brackets.
1253 -h, --help display this help and exit
1254 --help=short display options specific to this package
1255 --help=recursive display the short help of all the included packages
1256 -V, --version display version information and exit
1257 -q, --quiet, --silent do not print \`checking...' messages
1258 --cache-file=FILE cache test results in FILE [disabled]
1259 -C, --config-cache alias for \`--cache-file=config.cache'
1260 -n, --no-create do not create output files
1261 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1263 Installation directories:
1264 --prefix=PREFIX install architecture-independent files in PREFIX
1265 [$ac_default_prefix]
1266 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1269 By default, \`make install' will install all the files in
1270 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1271 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1272 for instance \`--prefix=\$HOME'.
1274 For better control, use the options below.
1276 Fine tuning of the installation directories:
1277 --bindir=DIR user executables [EPREFIX/bin]
1278 --sbindir=DIR system admin executables [EPREFIX/sbin]
1279 --libexecdir=DIR program executables [EPREFIX/libexec]
1280 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1281 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1282 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1283 --libdir=DIR object code libraries [EPREFIX/lib]
1284 --includedir=DIR C header files [PREFIX/include]
1285 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1286 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1287 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1288 --infodir=DIR info documentation [DATAROOTDIR/info]
1289 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1290 --mandir=DIR man documentation [DATAROOTDIR/man]
1291 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1292 --htmldir=DIR html documentation [DOCDIR]
1293 --dvidir=DIR dvi documentation [DOCDIR]
1294 --pdfdir=DIR pdf documentation [DOCDIR]
1295 --psdir=DIR ps documentation [DOCDIR]
1301 --program-prefix=PREFIX prepend PREFIX to installed program names
1302 --program-suffix=SUFFIX append SUFFIX to installed program names
1303 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1306 --x-includes=DIR X include files are
in DIR
1307 --x-libraries=DIR X library files are
in DIR
1310 --build=BUILD configure
for building on BUILD
[guessed
]
1311 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1315 if test -n "$ac_init_help"; then
1316 case $ac_init_help in
1317 short | recursive
) echo "Configuration of emacs 23.0.50:";;
1322 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1323 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1324 --enable-carbon-app[=DIR
]
1325 specify
install directory
for Emacs.app on Mac OS X
1327 --enable-asserts compile code with asserts enabled
1328 --enable-maintainer-mode
1329 enable make rules and dependencies not useful
(and
1330 sometimes confusing
) to the casual installer
1331 --enable-locallisppath=PATH
1332 directories Emacs should search
for lisp files
1333 specific to this site
1334 --disable-largefile omit support
for large files
1337 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1338 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1339 --without-gcc don
't use GCC to compile Emacs if GCC is found
1340 --without-pop don't support POP
mail retrieval with movemail
1341 --with-kerberos support Kerberos-authenticated POP
1342 --with-kerberos5 support Kerberos version
5 authenticated POP
1343 --with-hesiod support Hesiod to get the POP server
host
1344 --without-sound don
't compile with sound support
1345 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes, lucid, athena,
1347 --with-xpm use -lXpm for displaying XPM images
1348 --with-jpeg use -ljpeg for displaying JPEG images
1349 --with-tiff use -ltiff for displaying TIFF images
1350 --with-gif use -lgif (or -lungif) for displaying GIF images
1351 --with-png use -lpng for displaying PNG images
1352 --with-gpm use -lgpm for mouse support on a GNU/Linux console
1353 --with-rsvg use -lrsvg-2 for displaying SVG images
1354 --with-gtk use GTK (same as --with-x-toolkit=gtk)
1355 --with-pkg-config-prog Path to pkg-config for finding GTK and librsvg
1356 --without-toolkit-scroll-bars
1357 don't use Motif or Xaw3d scroll bars
1358 --without-xaw3d don
't use Xaw3d
1359 --without-xim don't use X11 XIM
1360 --without-carbon don
't use Carbon GUI on Mac OS X
1361 --with-dbus use D-Bus
1362 --with-x use the X Window System
1364 Some influential environment variables:
1365 CC C compiler command
1366 CFLAGS C compiler flags
1367 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1368 nonstandard directory <lib dir>
1369 LIBS libraries to pass to the linker, e.g. -l<library>
1370 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1371 you have headers in a nonstandard directory <include dir>
1373 XMKMF Path to xmkmf, Makefile generator for X Window System
1375 Use these variables to override the choices made by `configure' or to
help
1376 it to
find libraries and programs with nonstandard names
/locations.
1382 if test "$ac_init_help" = "recursive"; then
1383 # If there are subdirs, report their specific --help.
1384 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1385 test -d "$ac_dir" ||
continue
1389 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1391 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1392 # A ".." for each directory in $ac_dir_suffix.
1393 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1394 case $ac_top_builddir_sub in
1395 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1396 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1399 ac_abs_top_builddir
=$ac_pwd
1400 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1401 # for backward compatibility:
1402 ac_top_builddir
=$ac_top_build_prefix
1405 .
) # We are building in place.
1407 ac_top_srcdir
=$ac_top_builddir_sub
1408 ac_abs_top_srcdir
=$ac_pwd ;;
1409 [\\/]* | ?
:[\\/]* ) # Absolute name.
1410 ac_srcdir
=$srcdir$ac_dir_suffix;
1411 ac_top_srcdir
=$srcdir
1412 ac_abs_top_srcdir
=$srcdir ;;
1414 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1415 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1416 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1418 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1420 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1421 # Check for guested configure.
1422 if test -f "$ac_srcdir/configure.gnu"; then
1424 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1425 elif test -f "$ac_srcdir/configure"; then
1427 $SHELL "$ac_srcdir/configure" --help=recursive
1429 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1431 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1435 test -n "$ac_init_help" && exit $ac_status
1436 if $ac_init_version; then
1438 emacs configure
23.0.50
1439 generated by GNU Autoconf
2.61
1441 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1442 2002, 2003, 2004, 2005, 2006 Free Software Foundation
, Inc.
1443 This configure
script is free software
; the Free Software Foundation
1444 gives unlimited permission to copy
, distribute and modify it.
1448 cat >config.log
<<_ACEOF
1449 This file contains any messages produced by compilers while
1450 running configure, to aid debugging if configure makes a mistake.
1452 It was created by emacs $as_me 23.0.50, which was
1453 generated by GNU Autoconf 2.61. Invocation command line was
1465 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1466 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1467 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1468 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1469 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1471 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1472 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1474 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1475 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1476 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1477 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1478 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1479 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1480 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1484 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1488 test -z "$as_dir" && as_dir
=.
1489 echo "PATH: $as_dir"
1505 # Keep a trace of the command line.
1506 # Strip out --no-create and --no-recursion so they do not pile up.
1507 # Strip out --silent because we don't want to record it for future runs.
1508 # Also quote any args containing shell meta-characters.
1509 # Make two passes to allow for proper duplicate-argument suppression.
1513 ac_must_keep_next
=false
1519 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1520 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1521 |
-silent |
--silent |
--silen |
--sile |
--sil)
1524 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1527 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1529 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1530 if test $ac_must_keep_next = true
; then
1531 ac_must_keep_next
=false
# Got value, back to normal.
1534 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1535 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1536 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1537 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1538 case "$ac_configure_args0 " in
1539 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1542 -* ) ac_must_keep_next
=true
;;
1545 ac_configure_args
="$ac_configure_args '$ac_arg'"
1550 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1551 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1553 # When interrupted or exit'd, cleanup temporary files, and complete
1554 # config.log. We remove comments because anyway the quotes in there
1555 # would cause problems or look ugly.
1556 # WARNING: Use '\'' to represent an apostrophe within the trap.
1557 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1558 trap 'exit_status=$?
1559 # Save into config.log some information that might help in debugging.
1564 ## ---------------- ##
1565 ## Cache variables. ##
1566 ## ---------------- ##
1569 # The following way of writing the cache mishandles newlines in values,
1571 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1572 eval ac_val=\$$ac_var
1576 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1577 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1580 _ | IFS | as_nl) ;; #(
1581 *) $as_unset $ac_var ;;
1586 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1587 *${as_nl}ac_space=\ *)
1589 "s/'\''/'\''\\\\'\'''\''/g;
1590 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1593 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1601 ## ----------------- ##
1602 ## Output variables. ##
1603 ## ----------------- ##
1606 for ac_var in $ac_subst_vars
1608 eval ac_val=\$$ac_var
1610 *\'\''*) ac_val
=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1612 echo "$ac_var='\''$ac_val'\''"
1616 if test -n "$ac_subst_files"; then
1618 ## ------------------- ##
1619 ## File substitutions. ##
1620 ## ------------------- ##
1623 for ac_var
in $ac_subst_files
1625 eval ac_val
=\$
$ac_var
1627 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1629 echo "$ac_var='\''$ac_val'\''"
1634 if test -s confdefs.h; then
1644 test "$ac_signal" != 0 &&
1645 echo "$as_me: caught signal $ac_signal"
1646 echo "$as_me: exit $exit_status"
1648 rm -f core *.core core.conftest.* &&
1649 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1652 for ac_signal
in 1 2 13 15; do
1653 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1657 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1658 rm -f -r conftest
* confdefs.h
1660 # Predefined preprocessor variables.
1662 cat >>confdefs.h
<<_ACEOF
1663 #define PACKAGE_NAME "$PACKAGE_NAME"
1667 cat >>confdefs.h
<<_ACEOF
1668 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1672 cat >>confdefs.h
<<_ACEOF
1673 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1677 cat >>confdefs.h
<<_ACEOF
1678 #define PACKAGE_STRING "$PACKAGE_STRING"
1682 cat >>confdefs.h
<<_ACEOF
1683 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1687 # Let the site file select an alternate cache file if it wants to.
1688 # Prefer explicitly selected file to automatically selected ones.
1689 if test -n "$CONFIG_SITE"; then
1690 set x
"$CONFIG_SITE"
1691 elif test "x$prefix" != xNONE
; then
1692 set x
"$prefix/share/config.site" "$prefix/etc/config.site"
1694 set x
"$ac_default_prefix/share/config.site" \
1695 "$ac_default_prefix/etc/config.site"
1700 if test -r "$ac_site_file"; then
1701 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1702 echo "$as_me: loading site script $ac_site_file" >&6;}
1703 sed 's/^/| /' "$ac_site_file" >&5
1708 if test -r "$cache_file"; then
1709 # Some versions of bash will fail to source /dev/null (special
1710 # files actually), so we avoid doing that.
1711 if test -f "$cache_file"; then
1712 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1713 echo "$as_me: loading cache $cache_file" >&6;}
1715 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
1716 *) .
"./$cache_file";;
1720 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1721 echo "$as_me: creating cache $cache_file" >&6;}
1725 ac_header_list
="$ac_header_list sys/time.h"
1726 ac_header_list
="$ac_header_list unistd.h"
1727 ac_func_list
="$ac_func_list alarm"
1728 # Check that the precious variables saved in the cache have kept the same
1730 ac_cache_corrupted
=false
1731 for ac_var
in $ac_precious_vars; do
1732 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1733 eval ac_new_set
=\
$ac_env_${ac_var}_set
1734 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
1735 eval ac_new_val
=\
$ac_env_${ac_var}_value
1736 case $ac_old_set,$ac_new_set in
1738 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1739 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1740 ac_cache_corrupted
=: ;;
1742 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1743 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1744 ac_cache_corrupted
=: ;;
1747 if test "x$ac_old_val" != "x$ac_new_val"; then
1748 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1749 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1750 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1751 echo "$as_me: former value: $ac_old_val" >&2;}
1752 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1753 echo "$as_me: current value: $ac_new_val" >&2;}
1754 ac_cache_corrupted
=:
1757 # Pass precious variables to config.status.
1758 if test "$ac_new_set" = set; then
1760 *\'*) ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1761 *) ac_arg
=$ac_var=$ac_new_val ;;
1763 case " $ac_configure_args " in
1764 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1765 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1769 if $ac_cache_corrupted; then
1770 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1771 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1772 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1773 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1774 { (exit 1); exit 1; }; }
1802 ac_cpp
='$CPP $CPPFLAGS'
1803 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1804 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1805 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1808 ac_config_headers
="$ac_config_headers src/config.h:src/config.in"
1812 test "$program_prefix" != NONE
&&
1813 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
1814 # Use a double $ so make ignores it.
1815 test "$program_suffix" != NONE
&&
1816 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
1817 # Double any \ or $. echo might interpret backslashes.
1818 # By default was `s,x,x', remove it if useless.
1819 cat <<\_ACEOF
>conftest.
sed
1820 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1822 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1826 lispdir
='${datadir}/emacs/${version}/lisp'
1827 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
1828 '${datadir}/emacs/site-lisp'
1829 lisppath
='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1830 etcdir
='${datadir}/emacs/${version}/etc'
1831 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
1832 docdir
='${datadir}/emacs/${version}/etc'
1833 gamedir
='${localstatedir}/games/emacs'
1839 # Check whether --with-gcc was given.
1840 if test "${with_gcc+set}" = set; then
1846 # Check whether --with-pop was given.
1847 if test "${with_pop+set}" = set; then
1848 withval
=$with_pop; if test "$withval" = yes; then
1849 cat >>confdefs.h
<<\_ACEOF
1850 #define MAIL_USE_POP 1
1856 cat >>confdefs.h
<<\_ACEOF
1857 #define MAIL_USE_POP 1
1865 # Check whether --with-kerberos was given.
1866 if test "${with_kerberos+set}" = set; then
1867 withval
=$with_kerberos; if test "$withval" = yes; then
1868 cat >>confdefs.h
<<\_ACEOF
1878 # Check whether --with-kerberos5 was given.
1879 if test "${with_kerberos5+set}" = set; then
1880 withval
=$with_kerberos5; if test "${with_kerberos5+set}" = set; then
1881 if test "${with_kerberos+set}" != set; then
1883 cat >>confdefs.h
<<\_ACEOF
1889 cat >>confdefs.h
<<\_ACEOF
1898 # Check whether --with-hesiod was given.
1899 if test "${with_hesiod+set}" = set; then
1900 withval
=$with_hesiod; if test "$withval" = yes; then
1902 cat >>confdefs.h
<<\_ACEOF
1911 # Check whether --with-sound was given.
1912 if test "${with_sound+set}" = set; then
1913 withval
=$with_sound;
1918 # Check whether --with-x-toolkit was given.
1919 if test "${with_x_toolkit+set}" = set; then
1920 withval
=$with_x_toolkit; case "${withval}" in
1921 y | ye |
yes ) val
=gtk
;;
1923 l | lu | luc | luci | lucid
) val
=lucid
;;
1924 a |
at | ath | athe | athen | athena
) val
=athena
;;
1925 m | mo | mot | moti | motif
) val
=motif
;;
1926 g | gt | gtk
) val
=gtk
;;
1928 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
1929 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1930 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
1931 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
1932 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1933 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
1934 { (exit 1); exit 1; }; }
1943 # Check whether --with-xpm was given.
1944 if test "${with_xpm+set}" = set; then
1949 # Check whether --with-jpeg was given.
1950 if test "${with_jpeg+set}" = set; then
1955 # Check whether --with-tiff was given.
1956 if test "${with_tiff+set}" = set; then
1961 # Check whether --with-gif was given.
1962 if test "${with_gif+set}" = set; then
1967 # Check whether --with-png was given.
1968 if test "${with_png+set}" = set; then
1973 # Check whether --with-gpm was given.
1974 if test "${with_gpm+set}" = set; then
1979 # Check whether --with-rsvg was given.
1980 if test "${with_rsvg+set}" = set; then
1985 # Check whether --with-gtk was given.
1986 if test "${with_gtk+set}" = set; then
1991 # Check whether --with-pkg-config-prog was given.
1992 if test "${with_pkg_config_prog+set}" = set; then
1993 withval
=$with_pkg_config_prog;
1997 # Check whether --with-toolkit-scroll-bars was given.
1998 if test "${with_toolkit_scroll_bars+set}" = set; then
1999 withval
=$with_toolkit_scroll_bars;
2003 # Check whether --with-xaw3d was given.
2004 if test "${with_xaw3d+set}" = set; then
2005 withval
=$with_xaw3d;
2009 # Check whether --with-xim was given.
2010 if test "${with_xim+set}" = set; then
2015 # Check whether --with-carbon was given.
2016 if test "${with_carbon+set}" = set; then
2017 withval
=$with_carbon;
2021 # Check whether --with-dbus was given.
2022 if test "${with_dbus+set}" = set; then
2027 # Check whether --enable-carbon-app was given.
2028 if test "${enable_carbon_app+set}" = set; then
2029 enableval
=$enable_carbon_app; carbon_appdir_x
=${enableval}
2033 # Check whether --enable-asserts was given.
2034 if test "${enable_asserts+set}" = set; then
2035 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
2041 # Check whether --enable-maintainer-mode was given.
2042 if test "${enable_maintainer_mode+set}" = set; then
2043 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2045 USE_MAINTAINER_MODE
=no
2048 if test $USE_MAINTAINER_MODE = yes; then
2055 # Check whether --enable-locallisppath was given.
2056 if test "${enable_locallisppath+set}" = set; then
2057 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
2059 elif test "${enableval}" != "yes"; then
2060 locallisppath
=${enableval}
2065 #### Make srcdir absolute, if it isn't already. It's important to
2066 #### avoid running the path through pwd unnecessarily, since pwd can
2067 #### give you automounter prefixes, which can go away. We do all this
2068 #### so Emacs can find its files when run uninstalled.
2069 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2074 ## We may be able to use the $PWD environment variable to make this
2075 ## absolute. But sometimes PWD is inaccurate.
2076 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2077 ## but that tested only for a well-formed and valid PWD,
2078 ## it did not object when PWD was well-formed and valid but just wrong.
2079 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2083 srcdir
="`(cd ${srcdir}; pwd)`"
2086 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2089 #### Check if the source directory already has a configured system in it.
2090 if test `pwd` != `(cd ${srcdir} && pwd)` \
2091 && test -f "${srcdir}/src/config.h" ; then
2092 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2093 as a build directory right now; it has been configured in its own
2094 right. To configure in another directory as well, you MUST
2095 use GNU make. If you do not have GNU make, then you must
2096 now do \`make distclean' in ${srcdir},
2097 and then run $0 again." >&5
2098 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2099 as a build directory right now; it has been configured in its own
2100 right. To configure in another directory as well, you MUST
2101 use GNU make. If you do not have GNU make, then you must
2102 now do \`make distclean' in ${srcdir},
2103 and then run $0 again." >&2;}
2106 #### Given the configuration name, set machfile and opsysfile to the
2107 #### names of the m/*.h and s/*.h files we should use.
2109 ### Canonicalize the configuration name.
2112 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2113 if test -f "$ac_dir/install-sh"; then
2115 ac_install_sh
="$ac_aux_dir/install-sh -c"
2117 elif test -f "$ac_dir/install.sh"; then
2119 ac_install_sh
="$ac_aux_dir/install.sh -c"
2121 elif test -f "$ac_dir/shtool"; then
2123 ac_install_sh
="$ac_aux_dir/shtool install -c"
2127 if test -z "$ac_aux_dir"; then
2128 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2129 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2130 { (exit 1); exit 1; }; }
2133 # These three variables are undocumented and unsupported,
2134 # and are intended to be withdrawn in a future Autoconf release.
2135 # They can cause serious problems if a builder's source tree is in a directory
2136 # whose full name contains unusual characters.
2137 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2138 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2139 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2142 # Make sure we can run config.sub.
2143 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2144 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2145 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2146 { (exit 1); exit 1; }; }
2148 { echo "$as_me:$LINENO: checking build system type" >&5
2149 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2150 if test "${ac_cv_build+set}" = set; then
2151 echo $ECHO_N "(cached) $ECHO_C" >&6
2153 ac_build_alias
=$build_alias
2154 test "x$ac_build_alias" = x
&&
2155 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2156 test "x$ac_build_alias" = x
&&
2157 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2158 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2159 { (exit 1); exit 1; }; }
2160 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2161 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2162 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2163 { (exit 1); exit 1; }; }
2166 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2167 echo "${ECHO_T}$ac_cv_build" >&6; }
2168 case $ac_cv_build in
2170 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2171 echo "$as_me: error: invalid value of canonical build" >&2;}
2172 { (exit 1); exit 1; }; };;
2175 ac_save_IFS
=$IFS; IFS
='-'
2181 # Remember, the first character of IFS is used to create $*,
2182 # except with old shells:
2185 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2188 { echo "$as_me:$LINENO: checking host system type" >&5
2189 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2190 if test "${ac_cv_host+set}" = set; then
2191 echo $ECHO_N "(cached) $ECHO_C" >&6
2193 if test "x$host_alias" = x
; then
2194 ac_cv_host
=$ac_cv_build
2196 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2197 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2198 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2199 { (exit 1); exit 1; }; }
2203 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2204 echo "${ECHO_T}$ac_cv_host" >&6; }
2207 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2208 echo "$as_me: error: invalid value of canonical host" >&2;}
2209 { (exit 1); exit 1; }; };;
2212 ac_save_IFS
=$IFS; IFS
='-'
2218 # Remember, the first character of IFS is used to create $*,
2219 # except with old shells:
2222 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2226 configuration
=${host_alias-${build_alias-$host}}
2230 ### If you add support for a new configuration, add code to this
2231 ### switch statement to recognize your configuration name and select
2232 ### the appropriate operating system and machine description files.
2234 ### You would hope that you could choose an m/*.h file pretty much
2235 ### based on the machine portion of the configuration name, and an s-
2236 ### file based on the operating system portion. However, it turns out
2237 ### that each m/*.h file is pretty manufacturer-specific - for
2238 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
2239 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
2240 ### machines. So we basically have to have a special case for each
2241 ### configuration name.
2243 ### As far as handling version numbers on operating systems is
2244 ### concerned, make sure things will fail in a fixable way. If
2245 ### /etc/MACHINES doesn't say anything about version numbers, be
2246 ### prepared to handle anything reasonably. If version numbers
2247 ### matter, be sure /etc/MACHINES says something about it.
2249 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2250 ### "System V Release 4"; he writes, "The old convention encouraged
2251 ### confusion between `system' and `release' levels'."
2253 machine
='' opsys
='' unported
=no
2254 case "${canonical}" in
2259 case "${canonical}" in
2260 alpha
*-*-freebsd*) machine
=alpha
;;
2261 ia64-
*-freebsd*) machine
=ia64
;;
2262 sparc64-
*-freebsd*) machine
=sparc
;;
2263 powerpc-
*-freebsd*) machine
=macppc
;;
2264 i
[3456]86-*-freebsd*) machine
=intel386
;;
2265 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2269 ## FreeBSD kernel + glibc based userland
2272 case "${canonical}" in
2273 alpha
*-*-kfreebsd*) machine
=alpha
;;
2274 ia64-
*-kfreebsd*) machine
=ia64
;;
2275 sparc64-
*-kfreebsd*) machine
=sparc
;;
2276 powerpc-
*-kfreebsd*) machine
=macppc
;;
2277 i
[3456]86-*-kfreebsd*) machine
=intel386
;;
2278 amd64-
*-kfreebsd*|x86_64-
*-kfreebsd*) machine
=amdx86-64
;;
2285 if test -f /usr
/lib
/crti.o
; then
2287 cat >>confdefs.h
<<\_ACEOF
2293 case "${canonical}" in
2294 alpha
*-*-netbsd*) machine
=alpha
;;
2295 i
[3456]86-*-netbsd*) machine
=intel386
;;
2297 # This is somewhat bogus.
2298 machine
=hp9000s300
;;
2299 mips-
*-netbsd*) machine
=pmax
;;
2300 mipsel-
*-netbsd*) machine
=pmax
;;
2301 mipseb-
*-netbsd*) machine
=pmax
;;
2302 ns32k-
*-netbsd*) machine
=ns32000
;;
2303 powerpc-
*-netbsd*) machine
=macppc
;;
2304 sparc
*-*-netbsd*) machine
=sparc
;;
2305 vax-
*-netbsd*) machine
=vax
;;
2306 arm-
*-netbsd*) machine
=arm
;;
2307 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2308 hppa-
*-netbsd*) machine
=hp800
;;
2309 shle-
*-netbsd*) machine
=sh3el
;;
2316 case "${canonical}" in
2317 alpha
*-*-openbsd*) machine
=alpha
;;
2318 arm-
*-openbsd*) machine
=arm
;;
2319 hppa-
*-openbsd*) machine
=hp9000s300
;;
2320 i386-
*-openbsd*) machine
=intel386
;;
2321 m68k-
*-openbsd*) machine
=hp9000s300
;;
2322 m88k-
*-openbsd*) machine
=aviion
;;
2323 mips64-
*-openbsd*) machine
=mips64
;;
2324 powerpc-
*-openbsd*) machine
=macppc
;;
2325 sh-
*-openbsd*) machine
=sh3el
;;
2326 sparc
*-*-openbsd*) machine
=sparc
;;
2327 vax-
*-openbsd*) machine
=vax
;;
2328 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2335 case "${canonical}" in
2336 i
[3456]86-*-lynxos*) machine
=intel386
;;
2337 powerpc-
*-lynxos*) machine
=powerpc
;;
2342 arm-acorn-riscix1.1
* )
2343 machine
=acorn opsys
=riscix1-1
2345 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
2346 ## This name is riscix12 instead of riscix1.2
2347 ## to avoid a file name conflict on MSDOS.
2348 machine
=acorn opsys
=riscix12
2354 case "${canonical}" in
2355 i
[345]86-*-bsdi*) machine
=intel386
;;
2356 sparc-
*-bsdi*) machine
=sparc
;;
2357 powerpc-
*-bsdi*) machine
=macppc
;;
2359 case "${canonical}" in
2360 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
2361 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
2362 *-*-bsdi2* ) opsys
=bsdos2-1
;;
2363 *-*-bsdi3* ) opsys
=bsdos3
;;
2364 *-*-bsdi[45]* ) opsys
=bsdos4
;;
2369 ## Strictly speaking, we need the version of the alliant operating
2370 ## system to choose the right machine file, but currently the
2371 ## configuration name doesn't tell us enough to choose the right
2372 ## one; we need to give alliants their own operating system name to
2373 ## do this right. When someone cares, they can help us.
2375 machine
=alliant4 opsys
=bsd4-2
2378 machine
=alliant-2800 opsys
=bsd4-3
2381 ## Alpha (DEC) machines.
2383 machine
=alpha opsys
=osf1
2384 # This is needed to find X11R6.1 libraries for certain tests.
2385 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2386 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2387 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2388 # due to non-traditional preprocessing with the current compiler
2389 # defaults. OSF 4 can also have that compiler version, and there
2390 # seems always to have been a usable /usr/bin/cpp.
2391 NON_GNU_CPP
=/usr
/bin
/cpp
2392 case "${canonical}" in
2393 alpha
*-dec-osf[5-9]*)
2398 alpha
*-*-linux-gnu* )
2399 machine
=alpha opsys
=gnu-linux
2403 machine
=arm opsys
=gnu-linux
2408 machine
=altos opsys
=usg5-2
2413 machine
=amdahl opsys
=usg5-2-2
2416 ## Apollo, Domain/OS
2418 machine
=apollo opsys
=bsd4-3
2421 ## Apple Darwin / Mac OS X
2423 case "${canonical}" in
2424 i
[3456]86-* ) machine
=intel386
;;
2425 powerpc-
* ) machine
=powermac
;;
2429 # Define CPP as follows to make autoconf work correctly.
2430 CPP
="${CC-cc} -E -no-cpp-precomp"
2431 # Use fink packages if available.
2432 if test -d /sw
/include
&& test -d /sw
/lib
; then
2433 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2434 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2435 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2439 ## AT&T 3b2, 3b5, 3b15, 3b20
2441 machine
=att3b opsys
=usg5-2-2
2444 ## AT&T 3b1 - The Mighty Unix PC!
2446 machine
=7300 opsys
=usg5-2-2
2451 machine
=ibmrs6000 opsys
=aix3-2
2456 machine
=dpx2 opsys
=usg5-3
2461 machine
=sps7 opsys
=usg5-2
2464 ## CCI 5/32, 6/32 -- see "Tahoe".
2467 ## I don't know what configuration name to use for this; config.sub
2468 ## doesn't seem to know anything about it. Hey, Celerity users, get
2469 ## in touch with us!
2470 celerity-celerity-bsd
* )
2471 machine
=celerity opsys
=bsd4-2
2475 ## What operating systems does this chip run that Emacs has been
2479 ## We'll use the catch-all code at the bottom to guess the
2480 ## operating system.
2484 mips-compaq-nonstopux
* )
2485 machine
=nonstopux opsys
=nonstopux
2489 *-convex-bsd* |
*-convex-convexos* )
2490 machine
=convex opsys
=bsd4-3
2491 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2492 NON_GNU_CPP
="cc -E -P"
2496 i
[3456]86-cubix-sysv* )
2497 machine
=intel386 opsys
=usg5-3
2501 cydra
*-cydrome-sysv* )
2502 machine
=cydra5 opsys
=usg5-3
2505 ## Data General AViiON Machines
2506 ## DG changed naming conventions with the release of 5.4.4.10, they
2507 ## dropped the initial 5.4 but left the intervening R. Because of the
2508 ## R this shouldn't conflict with older versions of the OS (which I
2509 ## think were named like dgux4.*). In addition, DG new AViiONs series
2510 ## uses either Motorola M88k or Intel Pentium CPUs.
2511 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
2512 machine
=aviion opsys
=dgux4
2514 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
2515 ## This name is dgux5-4-3 instead of dgux5-4r3
2516 ## to avoid a file name conflict on MSDOS.
2517 machine
=aviion opsys
=dgux5-4-3
2519 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
2520 machine
=aviion opsys
=dgux5-4r2
2523 machine
=aviion opsys
=dgux
2526 ## Data General AViiON Intel (x86) Machines
2527 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2528 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2529 i
[345]86-dg-dguxR4* )
2530 machine
=aviion-intel opsys
=dgux4
2534 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
2535 machine
=pmax opsys
=bsd4-2
2537 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
2538 machine
=pmax opsys
=bsd4-3
2541 machine
=pmax opsys
=ultrix4-3
2544 machine
=pmax opsys
=osf1
2546 mips-dec-mach_bsd4.3
* )
2547 machine
=pmax opsys
=mach-bsd4-3
2550 ## Motorola Delta machines
2551 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
2552 machine
=delta opsys
=usg5-3
2553 if test -z "`type gnucc | grep 'not found'`"
2555 if test -s /etc
/167config
2556 then CC
="gnucc -m68040"
2557 else CC
="gnucc -m68881"
2560 if test -z "`type gcc | grep 'not found'`"
2566 m88k-motorola-sysv4
* )
2567 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2568 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2569 # I hope there are not other 4.0 versions for this machine
2570 # which really need usg5-4 instead.
2571 machine
=delta88k opsys
=usg5-4-2
2573 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
2574 machine
=delta88k opsys
=usg5-3
2579 machine
=dual opsys
=usg5-2
2581 m68
*-dual-uniplus* )
2582 machine
=dual opsys
=unipl5-2
2587 machine
=elxsi opsys
=usg5-2
2592 machine
=ns16000 opsys
=umax
2595 ## The GEC 63 - apparently, this port isn't really finished yet.
2596 # I'm sure we finished off the last of the machines, though. -- fx
2598 ## Gould Power Node and NP1
2600 machine
=gould opsys
=bsd4-2
2603 machine
=gould opsys
=bsd4-3
2606 machine
=gould-np1 opsys
=bsd4-3
2609 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2610 ## as far as Emacs is concerned).
2612 # Build needs to be different on 7.0 and later releases
2613 case "`uname -r`" in
2614 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
2615 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
2617 NON_GNU_CPP
="/lib/cpp"
2619 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2621 machine
=nh3000 opsys
=cxux
2623 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2624 powerpc-harris-powerunix
)
2625 machine
=nh6000 opsys
=powerunix
2626 NON_GNU_CPP
="cc -Xo -E -P"
2628 ## SR2001/SR2201 running HI-UX/MPP
2629 hppa1.1
-hitachi-hiuxmpp* )
2630 machine
=sr2k opsys
=hiuxmpp
2632 hppa1.1
-hitachi-hiuxwe2* )
2633 machine
=sr2k opsys
=hiuxwe2
2636 xps
*-honeywell-sysv* )
2637 machine
=xps100 opsys
=usg5-2
2640 ## HP 9000 series 200 or 300
2642 machine
=hp9000s300 opsys
=bsd4-3
2644 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2646 case "`uname -r`" in
2647 ## Someone's system reports A.B8.05 for this.
2648 ## I wonder what other possibilities there are.
2649 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2650 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2651 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2652 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2653 *) machine
=hp9000s300 opsys
=hpux
;;
2657 ## HP 9000 series 700 and 800, running HP/UX
2659 machine
=hp800 opsys
=hpux
2662 machine
=hp800 opsys
=hpux8
2664 hppa
*-hp-hpux9shr* )
2665 machine
=hp800 opsys
=hpux9shr
2668 machine
=hp800 opsys
=hpux9
2670 hppa
*-hp-hpux10.2
* )
2671 machine
=hp800 opsys
=hpux10-20
2674 machine
=hp800 opsys
=hpux10
2676 hppa
*-hp-hpux1[1-9]* )
2677 machine
=hp800 opsys
=hpux11
2678 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2681 hppa
*-*-linux-gnu* )
2682 machine
=hp800 opsys
=gnu-linux
2685 ## HP 9000 series 700 and 800, running HP/UX
2687 ## Cross-compilation? Nah!
2688 case "`uname -r`" in
2689 ## Someone's system reports A.B8.05 for this.
2690 ## I wonder what other possibilities there are.
2691 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2692 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2693 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2694 *) machine
=hp800 opsys
=hpux10
;;
2698 machine
=hp800 opsys
=nextstep
2703 machine
=orion opsys
=bsd4-2
2705 clipper-orion-bsd
* )
2706 machine
=orion105 opsys
=bsd4-2
2710 i
[3456]86-ibm-aix1.1
* )
2711 machine
=ibmps2-aix opsys
=usg5-2-2
2713 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2714 machine
=ibmps2-aix opsys
=usg5-3
2717 machine
=ibm370aix opsys
=usg5-3
2720 machine
=ibms390 opsys
=gnu-linux
2722 s390x-
*-linux-gnu* )
2723 machine
=ibms390x opsys
=gnu-linux
2725 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2726 machine
=ibmrs6000 opsys
=aix3-1
2728 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2729 machine
=ibmrs6000 opsys
=aix3-2-5
2731 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2732 machine
=ibmrs6000 opsys
=aix4-1
2734 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2735 machine
=ibmrs6000 opsys
=aix4-2
2737 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
2738 machine
=ibmrs6000 opsys
=aix4-2
2740 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2741 machine
=ibmrs6000 opsys
=aix4-2
2743 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2744 machine
=ibmrs6000 opsys
=aix4
2746 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2747 machine
=ibmrs6000 opsys
=aix4-1
2749 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2750 machine
=ibmrs6000 opsys
=aix3-2
2753 machine
=ibmrt opsys
=bsd4-3
2756 machine
=ibmrt opsys
=bsd4-2
2759 machine
=ibmrt opsys
=bsd4-3
2762 machine
=ibmrt opsys
=bsd4-2
2765 machine
=ibmrt opsys
=bsd4-3
2768 machine
=ibmrt opsys
=bsd4-3
2771 machine
=ibmrt-aix opsys
=usg5-2-2
2774 ## Integrated Solutions `Optimum V'
2776 machine
=isi-ov opsys
=bsd4-2
2779 machine
=isi-ov opsys
=bsd4-3
2782 ## Intel 386 machines where we do care about the manufacturer
2783 i
[3456]86-intsys-sysv* )
2784 machine
=is386 opsys
=usg5-2-2
2788 i
[3456]86-prime-sysv* )
2789 machine
=i386 opsys
=usg5-3
2792 ## Sequent Symmetry running Dynix
2793 i
[3456]86-sequent-bsd* )
2794 machine
=symmetry opsys
=bsd4-3
2797 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2798 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2799 machine
=sequent-ptx opsys
=ptx4
2800 NON_GNU_CPP
=/lib
/cpp
2803 ## Sequent Symmetry running DYNIX/ptx
2804 ## Use the old cpp rather than the newer ANSI one.
2805 i
[3456]86-sequent-ptx* )
2806 machine
=sequent-ptx opsys
=ptx
2807 NON_GNU_CPP
="/lib/cpp"
2810 ## ncr machine running svr4.3.
2811 i
[3456]86-ncr-sysv4.3
)
2812 machine
=ncr386 opsys
=usg5-4-3
2815 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2816 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2817 i
[3456]86-ncr-sysv* )
2818 machine
=ncr386 opsys
=usg5-4-2
2821 ## Intel Paragon OSF/1
2823 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2828 machine
=i860 opsys
=usg5-4
2829 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2830 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2833 ## Macintosh PowerPC
2834 powerpc
*-*-linux-gnu* )
2835 machine
=macppc opsys
=gnu-linux
2838 ## Masscomp machines
2839 m68
*-masscomp-rtu* )
2840 machine
=masscomp opsys
=rtu
2843 ## Megatest machines
2844 m68
*-megatest-bsd* )
2845 machine
=mega68 opsys
=bsd4-2
2848 ## Workstations sold by MIPS
2849 ## This is not necessarily all workstations using the MIPS processor -
2850 ## Irises are produced by SGI, and DECstations by DEC.
2852 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2853 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2854 ## it gives for choosing between the alternatives seems to be "Use
2855 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2856 ## the BSD world." I'll assume that these are instructions for
2857 ## handling two odd situations, and that every other situation
2858 ## should use mips.h and usg5-2-2, they being listed first.
2861 ## Fall through to the general code at the bottom to decide on the OS.
2863 mips-mips-riscos4
* )
2864 machine
=mips4 opsys
=bsd4-3
2865 NON_GNU_CC
="cc -systype bsd43"
2866 NON_GNU_CPP
="cc -systype bsd43 -E"
2868 mips-mips-riscos5
* )
2869 machine
=mips4 opsys
=riscos5
2870 NON_GNU_CC
="cc -systype bsd43"
2871 NON_GNU_CPP
="cc -systype bsd43 -E"
2874 machine
=mips opsys
=bsd4-3
2877 machine
=mips opsys
=usg5-2-2
2881 m68
*-next-* | m68k-
*-nextstep* )
2882 machine
=m68k opsys
=nextstep
2885 ## The complete machine from National Semiconductor
2887 machine
=ns32000 opsys
=usg5-2
2891 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2892 machine
=tower32 opsys
=usg5-2-2
2894 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2895 machine
=tower32v3 opsys
=usg5-3
2900 machine
=ews4800 opsys
=ux4800
2903 ## Nixdorf Targon 31
2904 m68
*-nixdorf-sysv* )
2905 machine
=targon31 opsys
=usg5-2-2
2910 machine
=nu opsys
=usg5-2
2915 machine
=plexus opsys
=usg5-2
2919 ## I don't really have any idea what sort of processor the Pyramid has,
2920 ## so I'm assuming it is its own architecture.
2921 pyramid-pyramid-bsd
* )
2922 machine
=pyramid opsys
=bsd4-2
2926 ns32k-sequent-bsd4.2
* )
2927 machine
=sequent opsys
=bsd4-2
2929 ns32k-sequent-bsd4.3
* )
2930 machine
=sequent opsys
=bsd4-3
2934 mips-siemens-sysv
* | mips-sni-sysv
*)
2935 machine
=mips-siemens opsys
=usg5-4
2936 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2937 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2940 ## Silicon Graphics machines
2941 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2943 machine
=irist opsys
=iris3-5
2945 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2946 machine
=irist opsys
=iris3-6
2950 machine
=iris4d opsys
=irix3-3
2953 machine
=iris4d opsys
=irix4-0
2956 machine
=iris4d opsys
=irix6-5
2957 # Without defining _LANGUAGE_C, things get masked out in the headers
2958 # so that, for instance, grepping for `free' in stdlib.h fails and
2959 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2960 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2961 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2964 machine
=iris4d opsys
=irix6-0
2965 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2966 # but presumably it does no harm.
2967 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2968 # -32 probably isn't necessary in later v.6s -- anyone know which?
2969 NON_GCC_TEST_OPTIONS
=-32
2971 mips-sgi-irix5.
[01]* )
2972 machine
=iris4d opsys
=irix5-0
2974 mips-sgi-irix5
* | mips-sgi-irix
* )
2975 machine
=iris4d opsys
=irix5-2
2980 machine
=news opsys
=bsd4-2
2983 machine
=news opsys
=bsd4-3
2985 m68
*-sony-newsos3* | m68
*-sony-news3*)
2986 machine
=news opsys
=bsd4-3
2988 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2989 machine
=news-risc opsys
=bsd4-3
2991 mips-sony-newsos6
* )
2992 machine
=news-r6 opsys
=newsos6
2995 machine
=news-risc opsys
=newsos5
3000 machine
=stride opsys
=usg5-2
3004 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
3005 machine
=sparc opsys
=gnu-linux
3008 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
3009 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
3010 | rs6000-
*-solaris2*)
3011 case "${canonical}" in
3012 m68
*-sunos1* ) machine
=sun1
;;
3013 m68
*-sunos2* ) machine
=sun2
;;
3014 m68
* ) machine
=sun3
;;
3015 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
3016 i
[3456]86-*-* ) machine
=intel386
;;
3017 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
3018 powerpcle
* ) machine
=powerpcle
;;
3019 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
3020 sparc
* ) machine
=sparc
;;
3023 case "${canonical}" in
3024 ## The Sun386 didn't get past 4.0.
3025 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
3026 *-sunos4.0
* ) opsys
=sunos4-0
;;
3027 *-sunos4.1.
[3-9]*noshare
)
3028 ## This name is sunos413 instead of sunos4-1-3
3029 ## to avoid a file name conflict on MSDOS.
3031 NON_GNU_CPP
=/usr
/lib
/cpp
3032 NON_GCC_TEST_OPTIONS
=-Bstatic
3033 GCC_TEST_OPTIONS
=-static
3035 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
3037 NON_GNU_CPP
=/usr
/lib
/cpp
3039 *-sunos4* |
*-sunos )
3041 NON_GCC_TEST_OPTIONS
=-Bstatic
3042 GCC_TEST_OPTIONS
=-static
3044 *-sunos5.3
* |
*-solaris2.3
* )
3046 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3048 *-sunos5.4
* |
*-solaris2.4
* )
3050 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3053 *-sunos5.5
* |
*-solaris2.5
* )
3055 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3058 *-sunos5.6
* |
*-solaris2.6
* )
3060 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3063 *-sunos5* |
*-solaris* )
3065 emacs_check_sunpro_c
=yes
3066 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3070 ## Watch out for a compiler that we know will not work.
3071 case "${canonical}" in
3072 *-solaris* |
*-sunos5* )
3073 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
3074 ## /usr/ucb/cc doesn't work;
3075 ## we should find some other compiler that does work.
3083 machine
=sparc opsys
=nextstep
3087 m68
*-tadpole-sysv* )
3088 machine
=tad68k opsys
=usg5-3
3092 tahoe-tahoe-bsd4.2
* )
3093 machine
=tahoe opsys
=bsd4-2
3095 tahoe-tahoe-bsd4.3
* )
3096 machine
=tahoe opsys
=bsd4-3
3099 ## Tandem Integrity S2
3101 machine
=tandem-s2 opsys
=usg5-3
3105 m88k-tektronix-sysv3
* )
3106 machine
=tekxd88 opsys
=usg5-3
3109 ## Tektronix 16000 box (6130?)
3110 ns16k-tektronix-bsd
* )
3111 machine
=ns16000 opsys
=bsd4-2
3114 ## src/m/tek4300.h hints that this is a m68k machine.
3115 m68
*-tektronix-bsd* )
3116 machine
=tek4300 opsys
=bsd4-3
3120 ## We seem to have lost the machine-description file titan.h!
3122 machine
=titan opsys
=usg5-3
3125 ## Ustation E30 (SS5E)
3126 m68
*-unisys-uniplus* )
3127 machine
=ustation opsystem
=unipl5-2
3133 case "${canonical}" in
3134 *-bsd4.1
* ) opsys
=bsd4-1
;;
3135 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
3136 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
3137 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
3138 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
3139 *-vms* ) opsys
=vms
;;
3145 ns16k-whitechapel-
* )
3147 ## We don't know what sort of OS runs on these; we'll let the
3148 ## operating system guessing code below try.
3153 machine
=wicat opsys
=usg5-2
3158 machine
=ia64 opsys
=gnu-linux
3161 ## Intel 386 machines where we don't care about the manufacturer
3164 case "${canonical}" in
3165 *-cygwin ) opsys
=cygwin
;;
3166 *-darwin* ) opsys
=darwin
3167 CPP
="${CC-cc} -E -no-cpp-precomp"
3169 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
3170 *-isc2.2
* ) opsys
=isc2-2
;;
3171 *-isc4.0
* ) opsys
=isc4-0
;;
3172 *-isc4.
* ) opsys
=isc4-1
3173 GCC_TEST_OPTIONS
=-posix
3174 NON_GCC_TEST_OPTIONS
=-Xp
3176 *-isc* ) opsys
=isc3-0
;;
3177 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
3178 *-esix* ) opsys
=esix
;;
3179 *-xenix* ) opsys
=xenix
;;
3180 *-linux-gnu* ) opsys
=gnu-linux
;;
3181 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
3182 *-sco3.2v5
* ) opsys
=sco5
3183 NON_GNU_CPP
=/lib
/cpp
3184 # Prevent -belf from being passed to $CPP.
3185 # /lib/cpp does not accept it.
3186 OVERRIDE_CPPFLAGS
=" "
3188 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3189 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3190 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3191 *-386bsd* ) opsys
=386bsd
;;
3192 *-nextstep* ) opsys
=nextstep
;;
3193 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3197 ## m68k Linux-based GNU system
3199 machine
=m68k opsys
=gnu-linux
3202 ## Mips Linux-based GNU system
3203 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
3204 machine
=mips opsys
=gnu-linux
3208 sparc-fujitsu-sysv4
* )
3209 machine
=sparc opsys
=uxpds
3210 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3215 f301-fujitsu-uxpv4.1
)
3216 machine
=f301 opsys
=uxpv
3219 ## AMD x86-64 Linux-based GNU system
3220 x86_64-
*-linux-gnu* )
3221 machine
=amdx86-64 opsys
=gnu-linux
3224 ## Tensilica Xtensa Linux-based GNU system
3225 xtensa-
*-linux-gnu* )
3226 machine
=xtensa opsys
=gnu-linux
3234 ### If the code above didn't choose an operating system, just choose
3235 ### an operating system based on the configuration name. You really
3236 ### only want to use this when you have no idea what the right
3237 ### operating system is; if you know what operating systems a machine
3238 ### runs, it's cleaner to make it explicit in the case statement
3240 if test x
"${opsys}" = x
; then
3241 case "${canonical}" in
3242 *-gnu* ) opsys
=gnu
;;
3243 *-bsd4.
[01] ) opsys
=bsd4-1
;;
3244 *-bsd4.2
) opsys
=bsd4-2
;;
3245 *-bsd4.3
) opsys
=bsd4-3
;;
3246 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
3247 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
3248 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
3249 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
3250 *-sysv4.2uw
* ) opsys
=unixware
;;
3251 *-sysv5uw* ) opsys
=unixware
;;
3252 *-sysv5OpenUNIX* ) opsys
=unixware
;;
3253 *-sysv4.1
* |
*-sysvr4.1
* )
3254 NON_GNU_CPP
=/usr
/lib
/cpp
3256 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
3257 if [ x
$NON_GNU_CPP = x
]; then
3258 if [ -f /usr
/ccs
/lib
/cpp
]; then
3259 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3261 NON_GNU_CPP
=/lib
/cpp
3265 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
3274 if test $unported = yes; then
3275 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3276 Check \`etc/MACHINES' for recognized configuration names." >&5
3277 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3278 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3279 { (exit 1); exit 1; }; }
3282 machfile
="m/${machine}.h"
3283 opsysfile
="s/${opsys}.h"
3286 #### Choose a compiler.
3287 test -n "$CC" && cc_specified
=yes
3289 # Save the value of CFLAGS that the user specified.
3290 SPECIFIED_CFLAGS
="$CFLAGS"
3293 "yes" ) CC
="gcc" GCC
=yes ;;
3294 "no" ) : ${CC=cc} ;;
3298 ac_cpp
='$CPP $CPPFLAGS'
3299 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3300 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3301 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3302 if test -n "$ac_tool_prefix"; then
3303 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3304 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3305 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3307 if test "${ac_cv_prog_CC+set}" = set; then
3308 echo $ECHO_N "(cached) $ECHO_C" >&6
3310 if test -n "$CC"; then
3311 ac_cv_prog_CC
="$CC" # Let the user override the test.
3313 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3317 test -z "$as_dir" && as_dir
=.
3318 for ac_exec_ext
in '' $ac_executable_extensions; do
3319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3320 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3331 if test -n "$CC"; then
3332 { echo "$as_me:$LINENO: result: $CC" >&5
3333 echo "${ECHO_T}$CC" >&6; }
3335 { echo "$as_me:$LINENO: result: no" >&5
3336 echo "${ECHO_T}no" >&6; }
3341 if test -z "$ac_cv_prog_CC"; then
3343 # Extract the first word of "gcc", so it can be a program name with args.
3344 set dummy gcc
; ac_word
=$2
3345 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3347 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3348 echo $ECHO_N "(cached) $ECHO_C" >&6
3350 if test -n "$ac_ct_CC"; then
3351 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3353 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3357 test -z "$as_dir" && as_dir
=.
3358 for ac_exec_ext
in '' $ac_executable_extensions; do
3359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3360 ac_cv_prog_ac_ct_CC
="gcc"
3361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3370 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3371 if test -n "$ac_ct_CC"; then
3372 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3373 echo "${ECHO_T}$ac_ct_CC" >&6; }
3375 { echo "$as_me:$LINENO: result: no" >&5
3376 echo "${ECHO_T}no" >&6; }
3379 if test "x$ac_ct_CC" = x
; then
3382 case $cross_compiling:$ac_tool_warned in
3384 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3385 whose name does not start with the host triplet. If you think this
3386 configuration is useful to you, please write to autoconf@gnu.org." >&5
3387 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3388 whose name does not start with the host triplet. If you think this
3389 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3390 ac_tool_warned
=yes ;;
3398 if test -z "$CC"; then
3399 if test -n "$ac_tool_prefix"; then
3400 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3401 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3402 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3404 if test "${ac_cv_prog_CC+set}" = set; then
3405 echo $ECHO_N "(cached) $ECHO_C" >&6
3407 if test -n "$CC"; then
3408 ac_cv_prog_CC
="$CC" # Let the user override the test.
3410 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3414 test -z "$as_dir" && as_dir
=.
3415 for ac_exec_ext
in '' $ac_executable_extensions; do
3416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3417 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3428 if test -n "$CC"; then
3429 { echo "$as_me:$LINENO: result: $CC" >&5
3430 echo "${ECHO_T}$CC" >&6; }
3432 { echo "$as_me:$LINENO: result: no" >&5
3433 echo "${ECHO_T}no" >&6; }
3439 if test -z "$CC"; then
3440 # Extract the first word of "cc", so it can be a program name with args.
3441 set dummy cc
; ac_word
=$2
3442 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3444 if test "${ac_cv_prog_CC+set}" = set; then
3445 echo $ECHO_N "(cached) $ECHO_C" >&6
3447 if test -n "$CC"; then
3448 ac_cv_prog_CC
="$CC" # Let the user override the test.
3451 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3455 test -z "$as_dir" && as_dir
=.
3456 for ac_exec_ext
in '' $ac_executable_extensions; do
3457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3458 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3459 ac_prog_rejected
=yes
3463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3470 if test $ac_prog_rejected = yes; then
3471 # We found a bogon in the path, so make sure we never use it.
3472 set dummy
$ac_cv_prog_CC
3474 if test $# != 0; then
3475 # We chose a different compiler from the bogus one.
3476 # However, it has the same basename, so the bogon will be chosen
3477 # first if we set CC to just the basename; use the full file name.
3479 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3485 if test -n "$CC"; then
3486 { echo "$as_me:$LINENO: result: $CC" >&5
3487 echo "${ECHO_T}$CC" >&6; }
3489 { echo "$as_me:$LINENO: result: no" >&5
3490 echo "${ECHO_T}no" >&6; }
3495 if test -z "$CC"; then
3496 if test -n "$ac_tool_prefix"; then
3497 for ac_prog
in cl.exe
3499 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3500 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3501 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3503 if test "${ac_cv_prog_CC+set}" = set; then
3504 echo $ECHO_N "(cached) $ECHO_C" >&6
3506 if test -n "$CC"; then
3507 ac_cv_prog_CC
="$CC" # Let the user override the test.
3509 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3513 test -z "$as_dir" && as_dir
=.
3514 for ac_exec_ext
in '' $ac_executable_extensions; do
3515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3516 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3527 if test -n "$CC"; then
3528 { echo "$as_me:$LINENO: result: $CC" >&5
3529 echo "${ECHO_T}$CC" >&6; }
3531 { echo "$as_me:$LINENO: result: no" >&5
3532 echo "${ECHO_T}no" >&6; }
3536 test -n "$CC" && break
3539 if test -z "$CC"; then
3541 for ac_prog
in cl.exe
3543 # Extract the first word of "$ac_prog", so it can be a program name with args.
3544 set dummy
$ac_prog; ac_word
=$2
3545 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3547 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3548 echo $ECHO_N "(cached) $ECHO_C" >&6
3550 if test -n "$ac_ct_CC"; then
3551 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3553 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3557 test -z "$as_dir" && as_dir
=.
3558 for ac_exec_ext
in '' $ac_executable_extensions; do
3559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3560 ac_cv_prog_ac_ct_CC
="$ac_prog"
3561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3570 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3571 if test -n "$ac_ct_CC"; then
3572 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3573 echo "${ECHO_T}$ac_ct_CC" >&6; }
3575 { echo "$as_me:$LINENO: result: no" >&5
3576 echo "${ECHO_T}no" >&6; }
3580 test -n "$ac_ct_CC" && break
3583 if test "x$ac_ct_CC" = x
; then
3586 case $cross_compiling:$ac_tool_warned in
3588 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3589 whose name does not start with the host triplet. If you think this
3590 configuration is useful to you, please write to autoconf@gnu.org." >&5
3591 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3592 whose name does not start with the host triplet. If you think this
3593 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3594 ac_tool_warned
=yes ;;
3603 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3604 See \`config.log' for more details." >&5
3605 echo "$as_me: error: no acceptable C compiler found in \$PATH
3606 See \`config.log' for more details." >&2;}
3607 { (exit 1); exit 1; }; }
3609 # Provide some information about the compiler.
3610 echo "$as_me:$LINENO: checking for C compiler version" >&5
3611 ac_compiler
=`set X $ac_compile; echo $2`
3612 { (ac_try
="$ac_compiler --version >&5"
3614 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3615 *) ac_try_echo=$ac_try;;
3617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3618 (eval "$ac_compiler --version >&5") 2>&5
3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621 (exit $ac_status); }
3622 { (ac_try="$ac_compiler -v >&5"
3624 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3625 *) ac_try_echo
=$ac_try;;
3627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3628 (eval "$ac_compiler -v >&5") 2>&5
3630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631 (exit $ac_status); }
3632 { (ac_try
="$ac_compiler -V >&5"
3634 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3635 *) ac_try_echo=$ac_try;;
3637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3638 (eval "$ac_compiler -V >&5") 2>&5
3640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641 (exit $ac_status); }
3643 cat >conftest.$ac_ext <<_ACEOF
3646 cat confdefs.h >>conftest.$ac_ext
3647 cat >>conftest.$ac_ext <<_ACEOF
3648 /* end confdefs.h. */
3658 ac_clean_files_save=$ac_clean_files
3659 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3660 # Try to create an executable without -o first, disregard a.out.
3661 # It will help us diagnose broken compilers, and finding out an intuition
3663 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3664 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3665 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3667 # List of possible output files, starting from the most likely.
3668 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
3669 # only as a last resort. b.out is created by i960 compilers.
3670 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
3672 # The IRIX 6 linker writes into existing files which may not be
3673 # executable, retaining their permissions. Remove them first so a
3674 # subsequent execution test works.
3676 for ac_file in $ac_files
3679 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3680 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3685 if { (ac_try="$ac_link_default"
3687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3688 *) ac_try_echo=$ac_try;;
3690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3691 (eval "$ac_link_default") 2>&5
3693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694 (exit $ac_status); }; then
3695 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3696 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3697 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3698 # so that the user can short-circuit this test for compilers unknown to
3700 for ac_file
in $ac_files ''
3702 test -f "$ac_file" ||
continue
3704 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
3707 # We found the default executable, but exeext='' is most
3711 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3713 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3715 # We set ac_cv_exeext here because the later test for it is not
3716 # safe: cross compilers may not add the suffix if given an `-o'
3717 # argument, so we may need to know it at that point already.
3718 # Even if this section looks crufty: it has the advantage of
3725 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3731 { echo "$as_me:$LINENO: result: $ac_file" >&5
3732 echo "${ECHO_T}$ac_file" >&6; }
3733 if test -z "$ac_file"; then
3734 echo "$as_me: failed program was:" >&5
3735 sed 's/^/| /' conftest.
$ac_ext >&5
3737 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3738 See \`config.log' for more details." >&5
3739 echo "$as_me: error: C compiler cannot create executables
3740 See \`config.log' for more details." >&2;}
3741 { (exit 77); exit 77; }; }
3744 ac_exeext
=$ac_cv_exeext
3746 # Check that the compiler produces executables we can run. If not, either
3747 # the compiler is broken, or we cross compile.
3748 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3749 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3750 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3751 # If not cross compiling, check that we can run a simple program.
3752 if test "$cross_compiling" != yes; then
3753 if { ac_try
='./$ac_file'
3754 { (case "(($ac_try" in
3755 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3756 *) ac_try_echo=$ac_try;;
3758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3759 (eval "$ac_try") 2>&5
3761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762 (exit $ac_status); }; }; then
3765 if test "$cross_compiling" = maybe; then
3768 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3769 If you meant to cross compile, use \`--host'.
3770 See \`config.log' for more details.
" >&5
3771 echo "$as_me: error
: cannot run C compiled programs.
3772 If you meant to cross compile
, use \
`--host'.
3773 See \`config.log
' for more details." >&2;}
3774 { (exit 1); exit 1; }; }
3778 { echo "$as_me:$LINENO: result: yes" >&5
3779 echo "${ECHO_T}yes" >&6; }
3781 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3782 ac_clean_files=$ac_clean_files_save
3783 # Check that the compiler produces executables we can run. If not, either
3784 # the compiler is broken, or we cross compile.
3785 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3786 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3787 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3788 echo "${ECHO_T}$cross_compiling" >&6; }
3790 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3791 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3792 if { (ac_try="$ac_link"
3794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3795 *) ac_try_echo=$ac_try;;
3797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3798 (eval "$ac_link") 2>&5
3800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801 (exit $ac_status); }; then
3802 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3803 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3804 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3806 for ac_file
in conftest.exe conftest conftest.
*; do
3807 test -f "$ac_file" ||
continue
3809 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
3810 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3816 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3817 See \`config.log' for more details." >&5
3818 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3819 See \`config.log' for more details." >&2;}
3820 { (exit 1); exit 1; }; }
3823 rm -f conftest
$ac_cv_exeext
3824 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3825 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3827 rm -f conftest.
$ac_ext
3828 EXEEXT
=$ac_cv_exeext
3830 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3831 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3832 if test "${ac_cv_objext+set}" = set; then
3833 echo $ECHO_N "(cached) $ECHO_C" >&6
3835 cat >conftest.
$ac_ext <<_ACEOF
3838 cat confdefs.h
>>conftest.
$ac_ext
3839 cat >>conftest.
$ac_ext <<_ACEOF
3840 /* end confdefs.h. */
3850 rm -f conftest.o conftest.obj
3851 if { (ac_try
="$ac_compile"
3853 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3854 *) ac_try_echo=$ac_try;;
3856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3857 (eval "$ac_compile") 2>&5
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); }; then
3861 for ac_file in conftest.o conftest.obj conftest.*; do
3862 test -f "$ac_file" || continue;
3864 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3865 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3870 echo "$as_me: failed program was:" >&5
3871 sed 's/^/| /' conftest.$ac_ext >&5
3873 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3874 See \`config.log
' for more details." >&5
3875 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3876 See \`config.log' for more details.
" >&2;}
3877 { (exit 1); exit 1; }; }
3880 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3882 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3883 echo "${ECHO_T}$ac_cv_objext" >&6; }
3884 OBJEXT=$ac_cv_objext
3886 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3887 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3888 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3889 echo $ECHO_N "(cached
) $ECHO_C" >&6
3891 cat >conftest.$ac_ext <<_ACEOF
3894 cat confdefs.h >>conftest.$ac_ext
3895 cat >>conftest.$ac_ext <<_ACEOF
3896 /* end confdefs.h. */
3909 rm -f conftest.$ac_objext
3910 if { (ac_try="$ac_compile"
3912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3913 *) ac_try_echo=$ac_try;;
3915 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3916 (eval "$ac_compile") 2>conftest.er1
3918 grep -v '^ *+' conftest.er1 >conftest.err
3920 cat conftest.err >&5
3921 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3922 (exit $ac_status); } && {
3923 test -z "$ac_c_werror_flag" ||
3924 test ! -s conftest.err
3925 } && test -s conftest.$ac_objext; then
3928 echo "$as_me: failed program was
:" >&5
3929 sed 's/^/| /' conftest.$ac_ext >&5
3934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3935 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3938 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3939 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3940 GCC=`test $ac_compiler_gnu = yes && echo yes`
3941 ac_test_CFLAGS=${CFLAGS+set}
3942 ac_save_CFLAGS=$CFLAGS
3943 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3944 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3945 if test "${ac_cv_prog_cc_g+set}" = set; then
3946 echo $ECHO_N "(cached
) $ECHO_C" >&6
3948 ac_save_c_werror_flag=$ac_c_werror_flag
3949 ac_c_werror_flag=yes
3952 cat >conftest.$ac_ext <<_ACEOF
3955 cat confdefs.h >>conftest.$ac_ext
3956 cat >>conftest.$ac_ext <<_ACEOF
3957 /* end confdefs.h. */
3967 rm -f conftest.$ac_objext
3968 if { (ac_try="$ac_compile"
3970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3971 *) ac_try_echo=$ac_try;;
3973 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3974 (eval "$ac_compile") 2>conftest.er1
3976 grep -v '^ *+' conftest.er1 >conftest.err
3978 cat conftest.err >&5
3979 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3980 (exit $ac_status); } && {
3981 test -z "$ac_c_werror_flag" ||
3982 test ! -s conftest.err
3983 } && test -s conftest.$ac_objext; then
3986 echo "$as_me: failed program was
:" >&5
3987 sed 's/^/| /' conftest.$ac_ext >&5
3990 cat >conftest.$ac_ext <<_ACEOF
3993 cat confdefs.h >>conftest.$ac_ext
3994 cat >>conftest.$ac_ext <<_ACEOF
3995 /* end confdefs.h. */
4005 rm -f conftest.$ac_objext
4006 if { (ac_try="$ac_compile"
4008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4009 *) ac_try_echo=$ac_try;;
4011 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4012 (eval "$ac_compile") 2>conftest.er1
4014 grep -v '^ *+' conftest.er1 >conftest.err
4016 cat conftest.err >&5
4017 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4018 (exit $ac_status); } && {
4019 test -z "$ac_c_werror_flag" ||
4020 test ! -s conftest.err
4021 } && test -s conftest.$ac_objext; then
4024 echo "$as_me: failed program was
:" >&5
4025 sed 's/^/| /' conftest.$ac_ext >&5
4027 ac_c_werror_flag=$ac_save_c_werror_flag
4029 cat >conftest.$ac_ext <<_ACEOF
4032 cat confdefs.h >>conftest.$ac_ext
4033 cat >>conftest.$ac_ext <<_ACEOF
4034 /* end confdefs.h. */
4044 rm -f conftest.$ac_objext
4045 if { (ac_try="$ac_compile"
4047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4048 *) ac_try_echo=$ac_try;;
4050 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4051 (eval "$ac_compile") 2>conftest.er1
4053 grep -v '^ *+' conftest.er1 >conftest.err
4055 cat conftest.err >&5
4056 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4057 (exit $ac_status); } && {
4058 test -z "$ac_c_werror_flag" ||
4059 test ! -s conftest.err
4060 } && test -s conftest.$ac_objext; then
4063 echo "$as_me: failed program was
:" >&5
4064 sed 's/^/| /' conftest.$ac_ext >&5
4069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4076 ac_c_werror_flag=$ac_save_c_werror_flag
4078 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
4079 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4080 if test "$ac_test_CFLAGS" = set; then
4081 CFLAGS=$ac_save_CFLAGS
4082 elif test $ac_cv_prog_cc_g = yes; then
4083 if test "$GCC" = yes; then
4089 if test "$GCC" = yes; then
4095 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
4096 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
4097 if test "${ac_cv_prog_cc_c89+set}" = set; then
4098 echo $ECHO_N "(cached
) $ECHO_C" >&6
4100 ac_cv_prog_cc_c89=no
4102 cat >conftest.$ac_ext <<_ACEOF
4105 cat confdefs.h >>conftest.$ac_ext
4106 cat >>conftest.$ac_ext <<_ACEOF
4107 /* end confdefs.h. */
4110 #include <sys/types.h>
4111 #include <sys/stat.h>
4112 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4113 struct buf { int x; };
4114 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4115 static char *e (p, i)
4121 static char *f (char * (*g) (char **, int), char **p, ...)
4126 s = g (p, va_arg (v,int));
4131 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4132 function prototypes and stuff, but not '\xHH' hex character constants.
4133 These don't provoke an error unfortunately, instead are silently treated
4134 as 'x'. The following induces an error, until -std is added to get
4135 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4136 array size at least. It's necessary to write '\x00'==0 to get something
4137 that's true only with -std. */
4138 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4140 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4141 inside strings and character constants. */
4143 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4145 int test (int i, double x);
4146 struct s1 {int (*f) (int a);};
4147 struct s2 {int (*f) (double a);};
4148 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4154 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4159 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4160 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4162 CC="$ac_save_CC $ac_arg"
4163 rm -f conftest.$ac_objext
4164 if { (ac_try="$ac_compile"
4166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4167 *) ac_try_echo=$ac_try;;
4169 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4170 (eval "$ac_compile") 2>conftest.er1
4172 grep -v '^ *+' conftest.er1 >conftest.err
4174 cat conftest.err >&5
4175 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4176 (exit $ac_status); } && {
4177 test -z "$ac_c_werror_flag" ||
4178 test ! -s conftest.err
4179 } && test -s conftest.$ac_objext; then
4180 ac_cv_prog_cc_c89=$ac_arg
4182 echo "$as_me: failed program was
:" >&5
4183 sed 's/^/| /' conftest.$ac_ext >&5
4188 rm -f core conftest.err conftest.$ac_objext
4189 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
4191 rm -f conftest.$ac_ext
4196 case "x
$ac_cv_prog_cc_c89" in
4198 { echo "$as_me:$LINENO: result
: none needed
" >&5
4199 echo "${ECHO_T}none needed
" >&6; } ;;
4201 { echo "$as_me:$LINENO: result
: unsupported
" >&5
4202 echo "${ECHO_T}unsupported
" >&6; } ;;
4204 CC="$CC $ac_cv_prog_cc_c89"
4205 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
4206 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4211 ac_cpp='$CPP $CPPFLAGS'
4212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4217 # On Suns, sometimes $CPP names a directory.
4218 if test -n "$CPP" && test -d "$CPP"; then
4222 ## If not using gcc, and on Solaris, and no CPP specified, see if
4223 ## using a Sun compiler, which needs -Xs to prevent whitespace.
4224 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
4225 test x"$CPP" = x; then
4226 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler
" >&5
4227 echo $ECHO_N "checking whether we are using a Sun C compiler...
$ECHO_C" >&6; }
4229 if test "${emacs_cv_sunpro_c+set}" = set; then
4230 echo $ECHO_N "(cached
) $ECHO_C" >&6
4232 cat >conftest.$ac_ext <<_ACEOF
4235 cat confdefs.h >>conftest.$ac_ext
4236 cat >>conftest.$ac_ext <<_ACEOF
4237 /* end confdefs.h. */
4250 rm -f conftest.$ac_objext conftest$ac_exeext
4251 if { (ac_try="$ac_link"
4253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4254 *) ac_try_echo=$ac_try;;
4256 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4257 (eval "$ac_link") 2>conftest.er1
4259 grep -v '^ *+' conftest.er1 >conftest.err
4261 cat conftest.err >&5
4262 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4263 (exit $ac_status); } && {
4264 test -z "$ac_c_werror_flag" ||
4265 test ! -s conftest.err
4266 } && test -s conftest$ac_exeext &&
4267 $as_test_x conftest$ac_exeext; then
4268 emacs_cv_sunpro_c=yes
4270 echo "$as_me: failed program was
:" >&5
4271 sed 's/^/| /' conftest.$ac_ext >&5
4273 emacs_cv_sunpro_c=no
4276 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4277 conftest$ac_exeext conftest.$ac_ext
4280 { echo "$as_me:$LINENO: result
: $emacs_cv_sunpro_c" >&5
4281 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
4283 if test x"$emacs_cv_sunpro_c" = xyes; then
4284 NON_GNU_CPP="$CC -E -Xs"
4288 #### Some systems specify a CPP to use unless we are using GCC.
4289 #### Now that we know whether we are using GCC, we can decide whether
4290 #### to use that one.
4291 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
4296 #### Some systems specify a CC to use unless we are using GCC.
4297 #### Now that we know whether we are using GCC, we can decide whether
4298 #### to use that one.
4299 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
4300 test x$cc_specified != xyes
4305 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
4307 CC="$CC $GCC_TEST_OPTIONS"
4310 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
4312 CC="$CC $NON_GCC_TEST_OPTIONS"
4316 ac_cpp='$CPP $CPPFLAGS'
4317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4320 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
4321 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
4322 # On Suns, sometimes $CPP names a directory.
4323 if test -n "$CPP" && test -d "$CPP"; then
4326 if test -z "$CPP"; then
4327 if test "${ac_cv_prog_CPP+set}" = set; then
4328 echo $ECHO_N "(cached
) $ECHO_C" >&6
4330 # Double quotes because CPP needs to be expanded
4331 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
4334 for ac_c_preproc_warn_flag in '' yes
4336 # Use a header file that comes with gcc, so configuring glibc
4337 # with a fresh cross-compiler works.
4338 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4339 # <limits.h> exists even on freestanding compilers.
4340 # On the NeXT, cc -E runs the code through the compiler's parser,
4341 # not just through cpp. "Syntax error
" is here to catch this case.
4342 cat >conftest.$ac_ext <<_ACEOF
4345 cat confdefs.h >>conftest.$ac_ext
4346 cat >>conftest.$ac_ext <<_ACEOF
4347 /* end confdefs.h. */
4349 # include <limits.h>
4351 # include <assert.h>
4355 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4358 *) ac_try_echo=$ac_try;;
4360 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4361 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4363 grep -v '^ *+' conftest.er1 >conftest.err
4365 cat conftest.err >&5
4366 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4367 (exit $ac_status); } >/dev/null && {
4368 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4369 test ! -s conftest.err
4373 echo "$as_me: failed program was
:" >&5
4374 sed 's/^/| /' conftest.$ac_ext >&5
4376 # Broken: fails on valid input.
4380 rm -f conftest.err conftest.$ac_ext
4382 # OK, works on sane cases. Now check whether nonexistent headers
4383 # can be detected and how.
4384 cat >conftest.$ac_ext <<_ACEOF
4387 cat confdefs.h >>conftest.$ac_ext
4388 cat >>conftest.$ac_ext <<_ACEOF
4389 /* end confdefs.h. */
4390 #include <ac_nonexistent.h>
4392 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4395 *) ac_try_echo=$ac_try;;
4397 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4398 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4400 grep -v '^ *+' conftest.er1 >conftest.err
4402 cat conftest.err >&5
4403 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4404 (exit $ac_status); } >/dev/null && {
4405 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4406 test ! -s conftest.err
4408 # Broken: success on invalid input.
4411 echo "$as_me: failed program was
:" >&5
4412 sed 's/^/| /' conftest.$ac_ext >&5
4414 # Passes both tests.
4419 rm -f conftest.err conftest.$ac_ext
4422 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4423 rm -f conftest.err conftest.$ac_ext
4424 if $ac_preproc_ok; then
4436 { echo "$as_me:$LINENO: result
: $CPP" >&5
4437 echo "${ECHO_T}$CPP" >&6; }
4439 for ac_c_preproc_warn_flag in '' yes
4441 # Use a header file that comes with gcc, so configuring glibc
4442 # with a fresh cross-compiler works.
4443 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4444 # <limits.h> exists even on freestanding compilers.
4445 # On the NeXT, cc -E runs the code through the compiler's parser,
4446 # not just through cpp. "Syntax error
" is here to catch this case.
4447 cat >conftest.$ac_ext <<_ACEOF
4450 cat confdefs.h >>conftest.$ac_ext
4451 cat >>conftest.$ac_ext <<_ACEOF
4452 /* end confdefs.h. */
4454 # include <limits.h>
4456 # include <assert.h>
4460 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4463 *) ac_try_echo=$ac_try;;
4465 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4466 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4468 grep -v '^ *+' conftest.er1 >conftest.err
4470 cat conftest.err >&5
4471 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4472 (exit $ac_status); } >/dev/null && {
4473 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4474 test ! -s conftest.err
4478 echo "$as_me: failed program was
:" >&5
4479 sed 's/^/| /' conftest.$ac_ext >&5
4481 # Broken: fails on valid input.
4485 rm -f conftest.err conftest.$ac_ext
4487 # OK, works on sane cases. Now check whether nonexistent headers
4488 # can be detected and how.
4489 cat >conftest.$ac_ext <<_ACEOF
4492 cat confdefs.h >>conftest.$ac_ext
4493 cat >>conftest.$ac_ext <<_ACEOF
4494 /* end confdefs.h. */
4495 #include <ac_nonexistent.h>
4497 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4500 *) ac_try_echo=$ac_try;;
4502 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4503 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4505 grep -v '^ *+' conftest.er1 >conftest.err
4507 cat conftest.err >&5
4508 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4509 (exit $ac_status); } >/dev/null && {
4510 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4511 test ! -s conftest.err
4513 # Broken: success on invalid input.
4516 echo "$as_me: failed program was
:" >&5
4517 sed 's/^/| /' conftest.$ac_ext >&5
4519 # Passes both tests.
4524 rm -f conftest.err conftest.$ac_ext
4527 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4528 rm -f conftest.err conftest.$ac_ext
4529 if $ac_preproc_ok; then
4532 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4533 See \
`config.log' for more details." >&5
4534 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4535 See \`config.log
' for more details." >&2;}
4536 { (exit 1); exit 1; }; }
4540 ac_cpp='$CPP $CPPFLAGS'
4541 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4542 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4543 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4546 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4547 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4548 if test "${ac_cv_path_GREP+set}" = set; then
4549 echo $ECHO_N "(cached) $ECHO_C" >&6
4551 # Extract the first word of "grep ggrep" to use in msg output
4552 if test -z "$GREP"; then
4553 set dummy grep ggrep; ac_prog_name=$2
4554 if test "${ac_cv_path_GREP+set}" = set; then
4555 echo $ECHO_N "(cached) $ECHO_C" >&6
4557 ac_path_GREP_found=false
4558 # Loop through the user's path and
test for each of PROGNAME-LIST
4559 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4560 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4563 test -z "$as_dir" && as_dir
=.
4564 for ac_prog
in grep ggrep
; do
4565 for ac_exec_ext
in '' $ac_executable_extensions; do
4566 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4567 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4568 # Check for GNU ac_path_GREP and select it if it is found.
4569 # Check for GNU $ac_path_GREP
4570 case `"$ac_path_GREP" --version 2>&1` in
4572 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4575 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4578 cat "conftest.in" "conftest.in" >"conftest.tmp"
4579 mv "conftest.tmp" "conftest.in"
4580 cp "conftest.in" "conftest.nl"
4581 echo 'GREP' >> "conftest.nl"
4582 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4583 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4584 ac_count
=`expr $ac_count + 1`
4585 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4586 # Best one so far, save it but keep looking for a better one
4587 ac_cv_path_GREP
="$ac_path_GREP"
4588 ac_path_GREP_max
=$ac_count
4590 # 10*(2^10) chars as input seems more than enough
4591 test $ac_count -gt 10 && break
4593 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4597 $ac_path_GREP_found && break 3
4607 GREP
="$ac_cv_path_GREP"
4608 if test -z "$GREP"; then
4609 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4610 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4611 { (exit 1); exit 1; }; }
4615 ac_cv_path_GREP
=$GREP
4620 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4621 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4622 GREP
="$ac_cv_path_GREP"
4625 { echo "$as_me:$LINENO: checking for egrep" >&5
4626 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4627 if test "${ac_cv_path_EGREP+set}" = set; then
4628 echo $ECHO_N "(cached) $ECHO_C" >&6
4630 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4631 then ac_cv_path_EGREP
="$GREP -E"
4633 # Extract the first word of "egrep" to use in msg output
4634 if test -z "$EGREP"; then
4635 set dummy
egrep; ac_prog_name
=$2
4636 if test "${ac_cv_path_EGREP+set}" = set; then
4637 echo $ECHO_N "(cached) $ECHO_C" >&6
4639 ac_path_EGREP_found
=false
4640 # Loop through the user's path and test for each of PROGNAME-LIST
4641 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4642 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4645 test -z "$as_dir" && as_dir
=.
4646 for ac_prog
in egrep; do
4647 for ac_exec_ext
in '' $ac_executable_extensions; do
4648 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4649 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4650 # Check for GNU ac_path_EGREP and select it if it is found.
4651 # Check for GNU $ac_path_EGREP
4652 case `"$ac_path_EGREP" --version 2>&1` in
4654 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4657 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4660 cat "conftest.in" "conftest.in" >"conftest.tmp"
4661 mv "conftest.tmp" "conftest.in"
4662 cp "conftest.in" "conftest.nl"
4663 echo 'EGREP' >> "conftest.nl"
4664 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4665 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4666 ac_count
=`expr $ac_count + 1`
4667 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4668 # Best one so far, save it but keep looking for a better one
4669 ac_cv_path_EGREP
="$ac_path_EGREP"
4670 ac_path_EGREP_max
=$ac_count
4672 # 10*(2^10) chars as input seems more than enough
4673 test $ac_count -gt 10 && break
4675 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4679 $ac_path_EGREP_found && break 3
4689 EGREP
="$ac_cv_path_EGREP"
4690 if test -z "$EGREP"; then
4691 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4692 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4693 { (exit 1); exit 1; }; }
4697 ac_cv_path_EGREP
=$EGREP
4703 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4704 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4705 EGREP
="$ac_cv_path_EGREP"
4709 { echo "$as_me:$LINENO: checking for AIX" >&5
4710 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4711 cat >conftest.
$ac_ext <<_ACEOF
4714 cat confdefs.h
>>conftest.
$ac_ext
4715 cat >>conftest.
$ac_ext <<_ACEOF
4716 /* end confdefs.h. */
4722 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4723 $EGREP "yes" >/dev
/null
2>&1; then
4724 { echo "$as_me:$LINENO: result: yes" >&5
4725 echo "${ECHO_T}yes" >&6; }
4726 cat >>confdefs.h
<<\_ACEOF
4727 #define _ALL_SOURCE 1
4731 { echo "$as_me:$LINENO: result: no" >&5
4732 echo "${ECHO_T}no" >&6; }
4738 cat >>confdefs.h
<<\_ACEOF
4739 #define _GNU_SOURCE 1
4744 ### Use -Wno-pointer-sign if the compiler supports it
4745 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4746 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4747 SAVE_CFLAGS
="$CFLAGS"
4748 CFLAGS
="$CFLAGS -Wno-pointer-sign"
4749 cat >conftest.
$ac_ext <<_ACEOF
4752 cat confdefs.h
>>conftest.
$ac_ext
4753 cat >>conftest.
$ac_ext <<_ACEOF
4754 /* end confdefs.h. */
4764 rm -f conftest.
$ac_objext
4765 if { (ac_try
="$ac_compile"
4767 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4768 *) ac_try_echo=$ac_try;;
4770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4771 (eval "$ac_compile") 2>conftest.er1
4773 grep -v '^ *+' conftest.er1 >conftest.err
4775 cat conftest.err >&5
4776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777 (exit $ac_status); } && {
4778 test -z "$ac_c_werror_flag" ||
4779 test ! -s conftest.err
4780 } && test -s conftest.$ac_objext; then
4783 echo "$as_me: failed program was:" >&5
4784 sed 's/^/| /' conftest.$ac_ext >&5
4789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4790 if test $has_option = yes; then
4791 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4793 { echo "$as_me:$LINENO: result: $has_option" >&5
4794 echo "${ECHO_T}$has_option" >&6; }
4795 CFLAGS="$SAVE_CFLAGS"
4799 #### Some other nice autoconf tests.
4801 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4802 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4804 if test "$LN_S" = "ln -s"; then
4805 { echo "$as_me:$LINENO: result: yes" >&5
4806 echo "${ECHO_T}yes" >&6; }
4808 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4809 echo "${ECHO_T}no, using $LN_S" >&6; }
4813 ac_cpp='$CPP $CPPFLAGS'
4814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4817 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4818 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4819 # On Suns, sometimes $CPP names a directory.
4820 if test -n "$CPP" && test -d "$CPP"; then
4823 if test -z "$CPP"; then
4824 if test "${ac_cv_prog_CPP+set}" = set; then
4825 echo $ECHO_N "(cached) $ECHO_C" >&6
4827 # Double quotes because CPP needs to be expanded
4828 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4831 for ac_c_preproc_warn_flag in '' yes
4833 # Use a header file that comes with gcc, so configuring glibc
4834 # with a fresh cross-compiler works.
4835 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4836 # <limits.h> exists even on freestanding compilers.
4837 # On the NeXT, cc -E runs the code through the compiler's parser,
4838 # not just through cpp. "Syntax error" is here to catch this case.
4839 cat >conftest.$ac_ext <<_ACEOF
4842 cat confdefs.h >>conftest.$ac_ext
4843 cat >>conftest.$ac_ext <<_ACEOF
4844 /* end confdefs.h. */
4846 # include <limits.h>
4848 # include <assert.h>
4852 if { (ac_try="$ac_cpp conftest.$ac_ext"
4854 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4855 *) ac_try_echo
=$ac_try;;
4857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4858 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4860 grep -v '^ *+' conftest.er1
>conftest.err
4862 cat conftest.err
>&5
4863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864 (exit $ac_status); } >/dev
/null
&& {
4865 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4866 test ! -s conftest.err
4870 echo "$as_me: failed program was:" >&5
4871 sed 's/^/| /' conftest.
$ac_ext >&5
4873 # Broken: fails on valid input.
4877 rm -f conftest.err conftest.
$ac_ext
4879 # OK, works on sane cases. Now check whether nonexistent headers
4880 # can be detected and how.
4881 cat >conftest.
$ac_ext <<_ACEOF
4884 cat confdefs.h
>>conftest.
$ac_ext
4885 cat >>conftest.
$ac_ext <<_ACEOF
4886 /* end confdefs.h. */
4887 #include <ac_nonexistent.h>
4889 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4891 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4892 *) ac_try_echo=$ac_try;;
4894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4895 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4897 grep -v '^ *+' conftest.er1 >conftest.err
4899 cat conftest.err >&5
4900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4901 (exit $ac_status); } >/dev/null && {
4902 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4903 test ! -s conftest.err
4905 # Broken: success on invalid input.
4908 echo "$as_me: failed program was:" >&5
4909 sed 's/^/| /' conftest.$ac_ext >&5
4911 # Passes both tests.
4916 rm -f conftest.err conftest.$ac_ext
4919 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4920 rm -f conftest.err conftest.
$ac_ext
4921 if $ac_preproc_ok; then
4933 { echo "$as_me:$LINENO: result: $CPP" >&5
4934 echo "${ECHO_T}$CPP" >&6; }
4936 for ac_c_preproc_warn_flag
in '' yes
4938 # Use a header file that comes with gcc, so configuring glibc
4939 # with a fresh cross-compiler works.
4940 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4941 # <limits.h> exists even on freestanding compilers.
4942 # On the NeXT, cc -E runs the code through the compiler's parser,
4943 # not just through cpp. "Syntax error" is here to catch this case.
4944 cat >conftest.
$ac_ext <<_ACEOF
4947 cat confdefs.h
>>conftest.
$ac_ext
4948 cat >>conftest.
$ac_ext <<_ACEOF
4949 /* end confdefs.h. */
4951 # include <limits.h>
4953 # include <assert.h>
4957 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4959 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4960 *) ac_try_echo=$ac_try;;
4962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4963 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4965 grep -v '^ *+' conftest.er1 >conftest.err
4967 cat conftest.err >&5
4968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969 (exit $ac_status); } >/dev/null && {
4970 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4971 test ! -s conftest.err
4975 echo "$as_me: failed program was:" >&5
4976 sed 's/^/| /' conftest.$ac_ext >&5
4978 # Broken: fails on valid input.
4982 rm -f conftest.err conftest.$ac_ext
4984 # OK, works on sane cases. Now check whether nonexistent headers
4985 # can be detected and how.
4986 cat >conftest.$ac_ext <<_ACEOF
4989 cat confdefs.h >>conftest.$ac_ext
4990 cat >>conftest.$ac_ext <<_ACEOF
4991 /* end confdefs.h. */
4992 #include <ac_nonexistent.h>
4994 if { (ac_try="$ac_cpp conftest.$ac_ext"
4996 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4997 *) ac_try_echo
=$ac_try;;
4999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5000 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5002 grep -v '^ *+' conftest.er1
>conftest.err
5004 cat conftest.err
>&5
5005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006 (exit $ac_status); } >/dev
/null
&& {
5007 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5008 test ! -s conftest.err
5010 # Broken: success on invalid input.
5013 echo "$as_me: failed program was:" >&5
5014 sed 's/^/| /' conftest.
$ac_ext >&5
5016 # Passes both tests.
5021 rm -f conftest.err conftest.
$ac_ext
5024 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5025 rm -f conftest.err conftest.
$ac_ext
5026 if $ac_preproc_ok; then
5029 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5030 See \`config.log' for more details." >&5
5031 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5032 See \`config.log' for more details." >&2;}
5033 { (exit 1); exit 1; }; }
5037 ac_cpp
='$CPP $CPPFLAGS'
5038 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5039 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5040 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5042 # Find a good install program. We prefer a C program (faster),
5043 # so one script is as good as another. But avoid the broken or
5044 # incompatible versions:
5045 # SysV /etc/install, /usr/sbin/install
5046 # SunOS /usr/etc/install
5047 # IRIX /sbin/install
5049 # AmigaOS /C/install, which installs bootblocks on floppy discs
5050 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5051 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5052 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5053 # OS/2's system install, which has a completely different semantic
5054 # ./install, which can be erroneously created by make from ./install.sh.
5055 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5056 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5057 if test -z "$INSTALL"; then
5058 if test "${ac_cv_path_install+set}" = set; then
5059 echo $ECHO_N "(cached) $ECHO_C" >&6
5061 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5065 test -z "$as_dir" && as_dir
=.
5066 # Account for people who put trailing slashes in PATH elements.
5068 .
/ | .
// |
/cC
/* | \
5069 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
5070 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
5073 # OSF1 and SCO ODT 3.0 have their own names for install.
5074 # Don't use installbsd from OSF since it installs stuff as root
5076 for ac_prog
in ginstall scoinst
install; do
5077 for ac_exec_ext
in '' $ac_executable_extensions; do
5078 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5079 if test $ac_prog = install &&
5080 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5081 # AIX install. It has an incompatible calling convention.
5083 elif test $ac_prog = install &&
5084 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5085 # program-specific install script used by HP pwplus--don't use.
5088 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5101 if test "${ac_cv_path_install+set}" = set; then
5102 INSTALL
=$ac_cv_path_install
5104 # As a last resort, use the slow shell script. Don't cache a
5105 # value for INSTALL within a source directory, because that will
5106 # break other packages using the cache if that directory is
5107 # removed, or if the value is a relative name.
5108 INSTALL
=$ac_install_sh
5111 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5112 echo "${ECHO_T}$INSTALL" >&6; }
5114 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5115 # It thinks the first close brace ends the variable substitution.
5116 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5118 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5120 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5122 if test "x$RANLIB" = x
; then
5123 if test -n "$ac_tool_prefix"; then
5124 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5125 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5126 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5128 if test "${ac_cv_prog_RANLIB+set}" = set; then
5129 echo $ECHO_N "(cached) $ECHO_C" >&6
5131 if test -n "$RANLIB"; then
5132 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5134 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5138 test -z "$as_dir" && as_dir
=.
5139 for ac_exec_ext
in '' $ac_executable_extensions; do
5140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5141 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5151 RANLIB
=$ac_cv_prog_RANLIB
5152 if test -n "$RANLIB"; then
5153 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5154 echo "${ECHO_T}$RANLIB" >&6; }
5156 { echo "$as_me:$LINENO: result: no" >&5
5157 echo "${ECHO_T}no" >&6; }
5162 if test -z "$ac_cv_prog_RANLIB"; then
5163 ac_ct_RANLIB
=$RANLIB
5164 # Extract the first word of "ranlib", so it can be a program name with args.
5165 set dummy ranlib
; ac_word
=$2
5166 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5168 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5169 echo $ECHO_N "(cached) $ECHO_C" >&6
5171 if test -n "$ac_ct_RANLIB"; then
5172 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5174 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5178 test -z "$as_dir" && as_dir
=.
5179 for ac_exec_ext
in '' $ac_executable_extensions; do
5180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5181 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5191 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5192 if test -n "$ac_ct_RANLIB"; then
5193 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5194 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5196 { echo "$as_me:$LINENO: result: no" >&5
5197 echo "${ECHO_T}no" >&6; }
5200 if test "x$ac_ct_RANLIB" = x
; then
5203 case $cross_compiling:$ac_tool_warned in
5205 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5206 whose name does not start with the host triplet. If you think this
5207 configuration is useful to you, please write to autoconf@gnu.org." >&5
5208 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5209 whose name does not start with the host triplet. If you think this
5210 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5211 ac_tool_warned
=yes ;;
5213 RANLIB
=$ac_ct_RANLIB
5216 RANLIB
="$ac_cv_prog_RANLIB"
5220 # Extract the first word of "install-info", so it can be a program name with args.
5221 set dummy install-info
; ac_word
=$2
5222 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5224 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5225 echo $ECHO_N "(cached) $ECHO_C" >&6
5227 case $INSTALL_INFO in
5229 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5232 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5236 test -z "$as_dir" && as_dir
=.
5237 for ac_exec_ext
in '' $ac_executable_extensions; do
5238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5239 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5250 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5251 if test -n "$INSTALL_INFO"; then
5252 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5253 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5255 { echo "$as_me:$LINENO: result: no" >&5
5256 echo "${ECHO_T}no" >&6; }
5260 # Extract the first word of "install-info", so it can be a program name with args.
5261 set dummy install-info
; ac_word
=$2
5262 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5264 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5265 echo $ECHO_N "(cached) $ECHO_C" >&6
5267 case $INSTALL_INFO in
5269 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5272 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5273 for as_dir
in /usr
/sbin
5276 test -z "$as_dir" && as_dir
=.
5277 for ac_exec_ext
in '' $ac_executable_extensions; do
5278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5279 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5290 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5291 if test -n "$INSTALL_INFO"; then
5292 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5293 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5295 { echo "$as_me:$LINENO: result: no" >&5
5296 echo "${ECHO_T}no" >&6; }
5300 # Extract the first word of "install-info", so it can be a program name with args.
5301 set dummy install-info
; ac_word
=$2
5302 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5304 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5305 echo $ECHO_N "(cached) $ECHO_C" >&6
5307 case $INSTALL_INFO in
5309 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5312 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5316 test -z "$as_dir" && as_dir
=.
5317 for ac_exec_ext
in '' $ac_executable_extensions; do
5318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5319 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5327 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5331 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5332 if test -n "$INSTALL_INFO"; then
5333 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5334 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5336 { echo "$as_me:$LINENO: result: no" >&5
5337 echo "${ECHO_T}no" >&6; }
5341 # Extract the first word of "gzip", so it can be a program name with args.
5342 set dummy
gzip; ac_word
=$2
5343 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5345 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5346 echo $ECHO_N "(cached) $ECHO_C" >&6
5350 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5353 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5357 test -z "$as_dir" && as_dir
=.
5358 for ac_exec_ext
in '' $ac_executable_extensions; do
5359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5360 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5371 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5372 if test -n "$GZIP_PROG"; then
5373 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5374 echo "${ECHO_T}$GZIP_PROG" >&6; }
5376 { echo "$as_me:$LINENO: result: no" >&5
5377 echo "${ECHO_T}no" >&6; }
5383 ## Need makeinfo >= 4.6 (?) to build the manuals.
5384 # Extract the first word of "makeinfo", so it can be a program name with args.
5385 set dummy makeinfo
; ac_word
=$2
5386 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5388 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5389 echo $ECHO_N "(cached) $ECHO_C" >&6
5393 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
5396 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5400 test -z "$as_dir" && as_dir
=.
5401 for ac_exec_ext
in '' $ac_executable_extensions; do
5402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5403 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
5404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5411 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
5415 MAKEINFO
=$ac_cv_path_MAKEINFO
5416 if test -n "$MAKEINFO"; then
5417 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5418 echo "${ECHO_T}$MAKEINFO" >&6; }
5420 { echo "$as_me:$LINENO: result: no" >&5
5421 echo "${ECHO_T}no" >&6; }
5425 if test "$MAKEINFO" != "no" && \
5426 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
5430 if test "$MAKEINFO" = "no"; then
5431 { { echo "$as_me:$LINENO: error: makeinfo >= 4.6 is required " >&5
5432 echo "$as_me: error: makeinfo >= 4.6 is required " >&2;}
5433 { (exit 1); exit 1; }; }
5438 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5440 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5443 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5445 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5449 late_LDFLAGS
=$LDFLAGS
5450 if test "$GCC" = yes; then
5451 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5453 LDFLAGS
="$LDFLAGS -znocombreloc"
5456 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5457 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5458 cat >conftest.
$ac_ext <<_ACEOF
5461 rm -f conftest.
$ac_objext conftest
$ac_exeext
5462 if { (ac_try
="$ac_link"
5464 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5465 *) ac_try_echo=$ac_try;;
5467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5468 (eval "$ac_link") 2>conftest.er1
5470 grep -v '^ *+' conftest.er1 >conftest.err
5472 cat conftest.err >&5
5473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474 (exit $ac_status); } && {
5475 test -z "$ac_c_werror_flag" ||
5476 test ! -s conftest.err
5477 } && test -s conftest$ac_exeext &&
5478 $as_test_x conftest$ac_exeext; then
5479 { echo "$as_me:$LINENO: result: yes" >&5
5480 echo "${ECHO_T}yes" >&6; }
5482 echo "$as_me: failed program was:" >&5
5483 sed 's/^/| /' conftest.$ac_ext >&5
5485 LDFLAGS=$late_LDFLAGS
5486 { echo "$as_me:$LINENO: result: no" >&5
5487 echo "${ECHO_T}no" >&6; }
5490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5491 conftest$ac_exeext conftest.$ac_ext
5493 #### Extract some information from the operating system and machine files.
5495 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5496 - which libraries the lib-src programs will want, and
5497 - whether the GNU malloc routines are usable..." >&5
5498 echo "$as_me: checking the machine- and system-dependent files to find out
5499 - which libraries the lib-src programs will want, and
5500 - whether the GNU malloc routines are usable..." >&6;}
5502 ### First figure out CFLAGS (which we use for running the compiler here)
5503 ### and REAL_CFLAGS (which we use for real compilation).
5504 ### The two are the same except on a few systems, where they are made
5505 ### different to work around various lossages. For example,
5506 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5507 ### as implying static linking.
5509 ### If the CFLAGS env var is specified, we use that value
5510 ### instead of the default.
5512 ### It's not important that this name contain the PID; you can't run
5513 ### two configures in the same directory and have anything work
5515 tempcname="conftest.c"
5518 #include "'${srcdir}'/src/'${opsysfile}'"
5519 #include "'${srcdir}'/src/'${machfile}'"
5520 #ifndef LIBS_MACHINE
5521 #define LIBS_MACHINE
5526 #ifndef C_SWITCH_SYSTEM
5527 #define C_SWITCH_SYSTEM
5529 #ifndef C_SWITCH_MACHINE
5530 #define C_SWITCH_MACHINE
5532 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5533 configure___ c_switch_system=C_SWITCH_SYSTEM
5534 configure___ c_switch_machine=C_SWITCH_MACHINE
5537 #define LIB_X11_LIB -lX11
5540 #ifndef LIBX11_MACHINE
5541 #define LIBX11_MACHINE
5544 #ifndef LIBX11_SYSTEM
5545 #define LIBX11_SYSTEM
5547 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5550 configure___ unexec=UNEXEC
5552 configure___ unexec=unexec.o
5555 #ifdef SYSTEM_MALLOC
5556 configure___ system_malloc=yes
5558 configure___ system_malloc=no
5561 #ifdef USE_MMAP_FOR_BUFFERS
5562 configure___ use_mmap_for_buffers=yes
5564 configure___ use_mmap_for_buffers=no
5567 #ifndef C_DEBUG_SWITCH
5568 #define C_DEBUG_SWITCH -g
5571 #ifndef C_OPTIMIZE_SWITCH
5573 #define C_OPTIMIZE_SWITCH -O2
5575 #define C_OPTIMIZE_SWITCH -O
5579 #ifndef C_WARNINGS_SWITCH
5580 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5583 #ifndef LD_SWITCH_MACHINE
5584 #define LD_SWITCH_MACHINE
5587 #ifndef LD_SWITCH_SYSTEM
5588 #define LD_SWITCH_SYSTEM
5591 #ifndef LD_SWITCH_X_SITE_AUX
5592 #define LD_SWITCH_X_SITE_AUX
5595 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5596 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5598 #ifdef THIS_IS_CONFIGURE
5600 /* Get the CFLAGS for tests in configure. */
5602 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5604 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5607 #else /* not THIS_IS_CONFIGURE */
5609 /* Get the CFLAGS for real compilation. */
5611 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5613 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5616 #endif /* not THIS_IS_CONFIGURE */
5619 # The value of CPP is a quoted variable reference, so we need to do this
5620 # to get its actual value...
5621 CPP=`eval "echo $CPP"`
5622 eval `${CPP} -Isrc ${tempcname} \
5623 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5624 if test "x$SPECIFIED_CFLAGS" = x; then
5625 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5626 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5628 REAL_CFLAGS="$CFLAGS"
5632 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5634 ### Make sure subsequent tests use flags consistent with the build flags.
5636 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5637 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5639 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5644 # Check whether --enable-largefile was given.
5645 if test "${enable_largefile+set}" = set; then
5646 enableval=$enable_largefile;
5649 if test "$enable_largefile" != no; then
5651 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5652 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5653 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5654 echo $ECHO_N "(cached) $ECHO_C" >&6
5656 ac_cv_sys_largefile_CC=no
5657 if test "$GCC" != yes; then
5660 # IRIX 6.2 and later do not support large files by default,
5661 # so use the C compiler's -n32 option if that helps.
5662 cat >conftest.$ac_ext <<_ACEOF
5665 cat confdefs.h >>conftest.$ac_ext
5666 cat >>conftest.$ac_ext <<_ACEOF
5667 /* end confdefs.h. */
5668 #include <sys/types.h>
5669 /* Check that off_t can represent 2**63 - 1 correctly.
5670 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5671 since some C++ compilers masquerading as C compilers
5672 incorrectly reject 9223372036854775807. */
5673 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5674 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5675 && LARGE_OFF_T % 2147483647 == 1)
5685 rm -f conftest.$ac_objext
5686 if { (ac_try="$ac_compile"
5688 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5689 *) ac_try_echo
=$ac_try;;
5691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5692 (eval "$ac_compile") 2>conftest.er1
5694 grep -v '^ *+' conftest.er1
>conftest.err
5696 cat conftest.err
>&5
5697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698 (exit $ac_status); } && {
5699 test -z "$ac_c_werror_flag" ||
5700 test ! -s conftest.err
5701 } && test -s conftest.
$ac_objext; then
5704 echo "$as_me: failed program was:" >&5
5705 sed 's/^/| /' conftest.
$ac_ext >&5
5710 rm -f core conftest.err conftest.
$ac_objext
5712 rm -f conftest.
$ac_objext
5713 if { (ac_try
="$ac_compile"
5715 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5716 *) ac_try_echo=$ac_try;;
5718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5719 (eval "$ac_compile") 2>conftest.er1
5721 grep -v '^ *+' conftest.er1 >conftest.err
5723 cat conftest.err >&5
5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); } && {
5726 test -z "$ac_c_werror_flag" ||
5727 test ! -s conftest.err
5728 } && test -s conftest.$ac_objext; then
5729 ac_cv_sys_largefile_CC=' -n32'; break
5731 echo "$as_me: failed program was:" >&5
5732 sed 's/^/| /' conftest.$ac_ext >&5
5737 rm -f core conftest.err conftest.$ac_objext
5741 rm -f conftest.$ac_ext
5744 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5745 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5746 if test "$ac_cv_sys_largefile_CC" != no; then
5747 CC=$CC$ac_cv_sys_largefile_CC
5750 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5751 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5752 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5753 echo $ECHO_N "(cached) $ECHO_C" >&6
5756 cat >conftest.$ac_ext <<_ACEOF
5759 cat confdefs.h >>conftest.$ac_ext
5760 cat >>conftest.$ac_ext <<_ACEOF
5761 /* end confdefs.h. */
5762 #include <sys/types.h>
5763 /* Check that off_t can represent 2**63 - 1 correctly.
5764 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5765 since some C++ compilers masquerading as C compilers
5766 incorrectly reject 9223372036854775807. */
5767 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5768 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5769 && LARGE_OFF_T % 2147483647 == 1)
5779 rm -f conftest.$ac_objext
5780 if { (ac_try="$ac_compile"
5782 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5783 *) ac_try_echo
=$ac_try;;
5785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5786 (eval "$ac_compile") 2>conftest.er1
5788 grep -v '^ *+' conftest.er1
>conftest.err
5790 cat conftest.err
>&5
5791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792 (exit $ac_status); } && {
5793 test -z "$ac_c_werror_flag" ||
5794 test ! -s conftest.err
5795 } && test -s conftest.
$ac_objext; then
5796 ac_cv_sys_file_offset_bits
=no
; break
5798 echo "$as_me: failed program was:" >&5
5799 sed 's/^/| /' conftest.
$ac_ext >&5
5804 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5805 cat >conftest.
$ac_ext <<_ACEOF
5808 cat confdefs.h
>>conftest.
$ac_ext
5809 cat >>conftest.
$ac_ext <<_ACEOF
5810 /* end confdefs.h. */
5811 #define _FILE_OFFSET_BITS 64
5812 #include <sys/types.h>
5813 /* Check that off_t can represent 2**63 - 1 correctly.
5814 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5815 since some C++ compilers masquerading as C compilers
5816 incorrectly reject 9223372036854775807. */
5817 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5818 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5819 && LARGE_OFF_T % 2147483647 == 1)
5829 rm -f conftest.
$ac_objext
5830 if { (ac_try
="$ac_compile"
5832 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5833 *) ac_try_echo=$ac_try;;
5835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5836 (eval "$ac_compile") 2>conftest.er1
5838 grep -v '^ *+' conftest.er1 >conftest.err
5840 cat conftest.err >&5
5841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842 (exit $ac_status); } && {
5843 test -z "$ac_c_werror_flag" ||
5844 test ! -s conftest.err
5845 } && test -s conftest.$ac_objext; then
5846 ac_cv_sys_file_offset_bits=64; break
5848 echo "$as_me: failed program was:" >&5
5849 sed 's/^/| /' conftest.$ac_ext >&5
5854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5855 ac_cv_sys_file_offset_bits=unknown
5859 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5860 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5861 case $ac_cv_sys_file_offset_bits in #(
5864 cat >>confdefs.h <<_ACEOF
5865 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5870 if test $ac_cv_sys_file_offset_bits = unknown; then
5871 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5872 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5873 if test "${ac_cv_sys_large_files+set}" = set; then
5874 echo $ECHO_N "(cached) $ECHO_C" >&6
5877 cat >conftest.$ac_ext <<_ACEOF
5880 cat confdefs.h >>conftest.$ac_ext
5881 cat >>conftest.$ac_ext <<_ACEOF
5882 /* end confdefs.h. */
5883 #include <sys/types.h>
5884 /* Check that off_t can represent 2**63 - 1 correctly.
5885 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5886 since some C++ compilers masquerading as C compilers
5887 incorrectly reject 9223372036854775807. */
5888 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5889 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5890 && LARGE_OFF_T % 2147483647 == 1)
5900 rm -f conftest.$ac_objext
5901 if { (ac_try="$ac_compile"
5903 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5904 *) ac_try_echo
=$ac_try;;
5906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5907 (eval "$ac_compile") 2>conftest.er1
5909 grep -v '^ *+' conftest.er1
>conftest.err
5911 cat conftest.err
>&5
5912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913 (exit $ac_status); } && {
5914 test -z "$ac_c_werror_flag" ||
5915 test ! -s conftest.err
5916 } && test -s conftest.
$ac_objext; then
5917 ac_cv_sys_large_files
=no
; break
5919 echo "$as_me: failed program was:" >&5
5920 sed 's/^/| /' conftest.
$ac_ext >&5
5925 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5926 cat >conftest.
$ac_ext <<_ACEOF
5929 cat confdefs.h
>>conftest.
$ac_ext
5930 cat >>conftest.
$ac_ext <<_ACEOF
5931 /* end confdefs.h. */
5932 #define _LARGE_FILES 1
5933 #include <sys/types.h>
5934 /* Check that off_t can represent 2**63 - 1 correctly.
5935 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5936 since some C++ compilers masquerading as C compilers
5937 incorrectly reject 9223372036854775807. */
5938 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5939 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5940 && LARGE_OFF_T % 2147483647 == 1)
5950 rm -f conftest.
$ac_objext
5951 if { (ac_try
="$ac_compile"
5953 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5954 *) ac_try_echo=$ac_try;;
5956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5957 (eval "$ac_compile") 2>conftest.er1
5959 grep -v '^ *+' conftest.er1 >conftest.err
5961 cat conftest.err >&5
5962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963 (exit $ac_status); } && {
5964 test -z "$ac_c_werror_flag" ||
5965 test ! -s conftest.err
5966 } && test -s conftest.$ac_objext; then
5967 ac_cv_sys_large_files=1; break
5969 echo "$as_me: failed program was:" >&5
5970 sed 's/^/| /' conftest.$ac_ext >&5
5975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5976 ac_cv_sys_large_files=unknown
5980 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5981 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5982 case $ac_cv_sys_large_files in #(
5985 cat >>confdefs.h <<_ACEOF
5986 #define _LARGE_FILES $ac_cv_sys_large_files
5996 ### The standard library on x86-64 GNU/Linux distributions can
5997 ### be located in either /usr/lib64 or /usr/lib.
5998 case "${canonical}" in
5999 x86_64-*-linux-gnu* )
6000 if test -d /usr/lib64; then
6002 cat >>confdefs.h <<\_ACEOF
6003 #define HAVE_X86_64_LIB64_DIR 1
6012 if test "${with_sound}" != "no"; then
6013 # Sound support for GNU/Linux and the free BSDs.
6014 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6015 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6016 if test "${ac_cv_header_stdc+set}" = set; then
6017 echo $ECHO_N "(cached) $ECHO_C" >&6
6019 cat >conftest.$ac_ext <<_ACEOF
6022 cat confdefs.h >>conftest.$ac_ext
6023 cat >>conftest.$ac_ext <<_ACEOF
6024 /* end confdefs.h. */
6038 rm -f conftest.$ac_objext
6039 if { (ac_try="$ac_compile"
6041 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6042 *) ac_try_echo
=$ac_try;;
6044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6045 (eval "$ac_compile") 2>conftest.er1
6047 grep -v '^ *+' conftest.er1
>conftest.err
6049 cat conftest.err
>&5
6050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051 (exit $ac_status); } && {
6052 test -z "$ac_c_werror_flag" ||
6053 test ! -s conftest.err
6054 } && test -s conftest.
$ac_objext; then
6055 ac_cv_header_stdc
=yes
6057 echo "$as_me: failed program was:" >&5
6058 sed 's/^/| /' conftest.
$ac_ext >&5
6060 ac_cv_header_stdc
=no
6063 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6065 if test $ac_cv_header_stdc = yes; then
6066 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6067 cat >conftest.
$ac_ext <<_ACEOF
6070 cat confdefs.h
>>conftest.
$ac_ext
6071 cat >>conftest.
$ac_ext <<_ACEOF
6072 /* end confdefs.h. */
6076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6077 $EGREP "memchr" >/dev
/null
2>&1; then
6080 ac_cv_header_stdc
=no
6086 if test $ac_cv_header_stdc = yes; then
6087 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6088 cat >conftest.
$ac_ext <<_ACEOF
6091 cat confdefs.h
>>conftest.
$ac_ext
6092 cat >>conftest.
$ac_ext <<_ACEOF
6093 /* end confdefs.h. */
6097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6098 $EGREP "free" >/dev
/null
2>&1; then
6101 ac_cv_header_stdc
=no
6107 if test $ac_cv_header_stdc = yes; then
6108 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6109 if test "$cross_compiling" = yes; then
6112 cat >conftest.
$ac_ext <<_ACEOF
6115 cat confdefs.h
>>conftest.
$ac_ext
6116 cat >>conftest.
$ac_ext <<_ACEOF
6117 /* end confdefs.h. */
6120 #if ((' ' & 0x0FF) == 0x020)
6121 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6122 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6124 # define ISLOWER(c) \
6125 (('a' <= (c) && (c) <= 'i') \
6126 || ('j' <= (c) && (c) <= 'r') \
6127 || ('s' <= (c) && (c) <= 'z'))
6128 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6131 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6136 for (i = 0; i < 256; i++)
6137 if (XOR (islower (i), ISLOWER (i))
6138 || toupper (i) != TOUPPER (i))
6143 rm -f conftest
$ac_exeext
6144 if { (ac_try
="$ac_link"
6146 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6147 *) ac_try_echo=$ac_try;;
6149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6150 (eval "$ac_link") 2>&5
6152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6154 { (case "(($ac_try" in
6155 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6156 *) ac_try_echo
=$ac_try;;
6158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6159 (eval "$ac_try") 2>&5
6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); }; }; then
6165 echo "$as_me: program exited with status $ac_status" >&5
6166 echo "$as_me: failed program was:" >&5
6167 sed 's/^/| /' conftest.
$ac_ext >&5
6170 ac_cv_header_stdc
=no
6172 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6178 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6179 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6180 if test $ac_cv_header_stdc = yes; then
6182 cat >>confdefs.h
<<\_ACEOF
6183 #define STDC_HEADERS 1
6188 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6198 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6199 inttypes.h stdint.h unistd.h
6201 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6202 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6203 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6204 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6205 echo $ECHO_N "(cached) $ECHO_C" >&6
6207 cat >conftest.
$ac_ext <<_ACEOF
6210 cat confdefs.h
>>conftest.
$ac_ext
6211 cat >>conftest.
$ac_ext <<_ACEOF
6212 /* end confdefs.h. */
6213 $ac_includes_default
6215 #include <$ac_header>
6217 rm -f conftest.
$ac_objext
6218 if { (ac_try
="$ac_compile"
6220 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6221 *) ac_try_echo=$ac_try;;
6223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6224 (eval "$ac_compile") 2>conftest.er1
6226 grep -v '^ *+' conftest.er1 >conftest.err
6228 cat conftest.err >&5
6229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230 (exit $ac_status); } && {
6231 test -z "$ac_c_werror_flag" ||
6232 test ! -s conftest.err
6233 } && test -s conftest.$ac_objext; then
6234 eval "$as_ac_Header=yes"
6236 echo "$as_me: failed program was:" >&5
6237 sed 's/^/| /' conftest.$ac_ext >&5
6239 eval "$as_ac_Header=no"
6242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6244 ac_res=`eval echo '${'$as_ac_Header'}'`
6245 { echo "$as_me:$LINENO: result: $ac_res" >&5
6246 echo "${ECHO_T}$ac_res" >&6; }
6247 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6248 cat >>confdefs.h <<_ACEOF
6249 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6260 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6262 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6263 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6264 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6265 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6267 echo $ECHO_N "(cached) $ECHO_C" >&6
6269 ac_res=`eval echo '${'$as_ac_Header'}'`
6270 { echo "$as_me:$LINENO: result: $ac_res" >&5
6271 echo "${ECHO_T}$ac_res" >&6; }
6273 # Is the header compilable?
6274 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6275 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6276 cat >conftest.$ac_ext <<_ACEOF
6279 cat confdefs.h >>conftest.$ac_ext
6280 cat >>conftest.$ac_ext <<_ACEOF
6281 /* end confdefs.h. */
6282 $ac_includes_default
6283 #include <$ac_header>
6285 rm -f conftest.$ac_objext
6286 if { (ac_try="$ac_compile"
6288 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6289 *) ac_try_echo
=$ac_try;;
6291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6292 (eval "$ac_compile") 2>conftest.er1
6294 grep -v '^ *+' conftest.er1
>conftest.err
6296 cat conftest.err
>&5
6297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298 (exit $ac_status); } && {
6299 test -z "$ac_c_werror_flag" ||
6300 test ! -s conftest.err
6301 } && test -s conftest.
$ac_objext; then
6302 ac_header_compiler
=yes
6304 echo "$as_me: failed program was:" >&5
6305 sed 's/^/| /' conftest.
$ac_ext >&5
6307 ac_header_compiler
=no
6310 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6311 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6312 echo "${ECHO_T}$ac_header_compiler" >&6; }
6314 # Is the header present?
6315 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6316 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6317 cat >conftest.
$ac_ext <<_ACEOF
6320 cat confdefs.h
>>conftest.
$ac_ext
6321 cat >>conftest.
$ac_ext <<_ACEOF
6322 /* end confdefs.h. */
6323 #include <$ac_header>
6325 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6327 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6328 *) ac_try_echo=$ac_try;;
6330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6331 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6333 grep -v '^ *+' conftest.er1 >conftest.err
6335 cat conftest.err >&5
6336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337 (exit $ac_status); } >/dev/null && {
6338 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6339 test ! -s conftest.err
6341 ac_header_preproc=yes
6343 echo "$as_me: failed program was:" >&5
6344 sed 's/^/| /' conftest.$ac_ext >&5
6346 ac_header_preproc=no
6349 rm -f conftest.err conftest.$ac_ext
6350 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6351 echo "${ECHO_T}$ac_header_preproc" >&6; }
6353 # So? What about this header?
6354 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6356 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6357 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6358 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6359 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6360 ac_header_preproc=yes
6363 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6364 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6365 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6366 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6367 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6368 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6369 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6370 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6371 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6372 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6373 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6374 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6378 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6379 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6380 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6381 echo $ECHO_N "(cached) $ECHO_C" >&6
6383 eval "$as_ac_Header=\$ac_header_preproc"
6385 ac_res=`eval echo '${'$as_ac_Header'}'`
6386 { echo "$as_me:$LINENO: result: $ac_res" >&5
6387 echo "${ECHO_T}$ac_res" >&6; }
6390 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6391 cat >>confdefs.h <<_ACEOF
6392 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6399 # Emulation library used on NetBSD.
6400 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6401 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6402 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6403 echo $ECHO_N "(cached) $ECHO_C" >&6
6405 ac_check_lib_save_LIBS=$LIBS
6406 LIBS="-lossaudio $LIBS"
6407 cat >conftest.$ac_ext <<_ACEOF
6410 cat confdefs.h >>conftest.$ac_ext
6411 cat >>conftest.$ac_ext <<_ACEOF
6412 /* end confdefs.h. */
6414 /* Override any GCC internal prototype to avoid an error.
6415 Use char because int might match the return type of a GCC
6416 builtin and then its argument prototype would still apply. */
6424 return _oss_ioctl ();
6429 rm -f conftest.$ac_objext conftest$ac_exeext
6430 if { (ac_try="$ac_link"
6432 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6433 *) ac_try_echo
=$ac_try;;
6435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6436 (eval "$ac_link") 2>conftest.er1
6438 grep -v '^ *+' conftest.er1
>conftest.err
6440 cat conftest.err
>&5
6441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6442 (exit $ac_status); } && {
6443 test -z "$ac_c_werror_flag" ||
6444 test ! -s conftest.err
6445 } && test -s conftest
$ac_exeext &&
6446 $as_test_x conftest
$ac_exeext; then
6447 ac_cv_lib_ossaudio__oss_ioctl
=yes
6449 echo "$as_me: failed program was:" >&5
6450 sed 's/^/| /' conftest.
$ac_ext >&5
6452 ac_cv_lib_ossaudio__oss_ioctl
=no
6455 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6456 conftest
$ac_exeext conftest.
$ac_ext
6457 LIBS
=$ac_check_lib_save_LIBS
6459 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6460 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6461 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6470 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6471 if test "X${with_pkg_config_prog}" != X
; then
6472 PKG_CONFIG
="${with_pkg_config_prog}"
6477 if test -z "$PKG_CONFIG"; then
6478 # Extract the first word of "pkg-config", so it can be a program name with args.
6479 set dummy pkg-config
; ac_word
=$2
6480 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6482 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6483 echo $ECHO_N "(cached) $ECHO_C" >&6
6487 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6490 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6494 test -z "$as_dir" && as_dir
=.
6495 for ac_exec_ext
in '' $ac_executable_extensions; do
6496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6497 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6505 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6509 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6510 if test -n "$PKG_CONFIG"; then
6511 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6512 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6514 { echo "$as_me:$LINENO: result: no" >&5
6515 echo "${ECHO_T}no" >&6; }
6521 if test "$PKG_CONFIG" = "no" ; then
6524 PKG_CONFIG_MIN_VERSION
=0.9.0
6525 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6526 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6527 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6529 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6530 { echo "$as_me:$LINENO: result: yes" >&5
6531 echo "${ECHO_T}yes" >&6; }
6534 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6535 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6536 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6537 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6538 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6540 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6541 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6542 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6543 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6544 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6546 { echo "$as_me:$LINENO: result: no" >&5
6547 echo "${ECHO_T}no" >&6; }
6550 ## If we have a custom action on failure, don't print errors, but
6551 ## do set a variable so people can do so.
6552 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6559 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6560 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6564 if test $succeeded = yes; then
6570 if test $HAVE_ALSA = yes; then
6571 SAVE_CFLAGS
="$CFLAGS"
6572 SAVE_LDFLAGS
="$LDFLAGS"
6573 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6574 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6575 cat >conftest.
$ac_ext <<_ACEOF
6578 cat confdefs.h
>>conftest.
$ac_ext
6579 cat >>conftest.
$ac_ext <<_ACEOF
6580 /* end confdefs.h. */
6581 #include <asoundlib.h>
6585 snd_lib_error_set_handler (0);
6590 rm -f conftest.
$ac_objext
6591 if { (ac_try
="$ac_compile"
6593 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6594 *) ac_try_echo=$ac_try;;
6596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6597 (eval "$ac_compile") 2>conftest.er1
6599 grep -v '^ *+' conftest.er1 >conftest.err
6601 cat conftest.err >&5
6602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603 (exit $ac_status); } && {
6604 test -z "$ac_c_werror_flag" ||
6605 test ! -s conftest.err
6606 } && test -s conftest.$ac_objext; then
6607 emacs_alsa_normal=yes
6609 echo "$as_me: failed program was:" >&5
6610 sed 's/^/| /' conftest.$ac_ext >&5
6612 emacs_alsa_normal=no
6615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6616 if test "$emacs_alsa_normal" != yes; then
6617 cat >conftest.$ac_ext <<_ACEOF
6620 cat confdefs.h >>conftest.$ac_ext
6621 cat >>conftest.$ac_ext <<_ACEOF
6622 /* end confdefs.h. */
6623 #include <alsa/asoundlib.h>
6627 snd_lib_error_set_handler (0);
6632 rm -f conftest.$ac_objext
6633 if { (ac_try="$ac_compile"
6635 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6636 *) ac_try_echo
=$ac_try;;
6638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6639 (eval "$ac_compile") 2>conftest.er1
6641 grep -v '^ *+' conftest.er1
>conftest.err
6643 cat conftest.err
>&5
6644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6645 (exit $ac_status); } && {
6646 test -z "$ac_c_werror_flag" ||
6647 test ! -s conftest.err
6648 } && test -s conftest.
$ac_objext; then
6649 emacs_alsa_subdir
=yes
6651 echo "$as_me: failed program was:" >&5
6652 sed 's/^/| /' conftest.
$ac_ext >&5
6654 emacs_alsa_subdir
=no
6657 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6658 if test "$emacs_alsa_subdir" != yes; then
6659 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6660 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6661 { (exit 1); exit 1; }; }
6663 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6666 CFLAGS
="$SAVE_CFLAGS"
6667 LDFLAGS
="$SAVE_LDFLAGS"
6668 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6669 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6671 cat >>confdefs.h
<<\_ACEOF
6704 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6705 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6706 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6707 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6710 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6711 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6712 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6714 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6715 echo $ECHO_N "(cached) $ECHO_C" >&6
6717 ac_res
=`eval echo '${'$as_ac_Header'}'`
6718 { echo "$as_me:$LINENO: result: $ac_res" >&5
6719 echo "${ECHO_T}$ac_res" >&6; }
6721 # Is the header compilable?
6722 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6723 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6724 cat >conftest.
$ac_ext <<_ACEOF
6727 cat confdefs.h
>>conftest.
$ac_ext
6728 cat >>conftest.
$ac_ext <<_ACEOF
6729 /* end confdefs.h. */
6730 $ac_includes_default
6731 #include <$ac_header>
6733 rm -f conftest.
$ac_objext
6734 if { (ac_try
="$ac_compile"
6736 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6737 *) ac_try_echo=$ac_try;;
6739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6740 (eval "$ac_compile") 2>conftest.er1
6742 grep -v '^ *+' conftest.er1 >conftest.err
6744 cat conftest.err >&5
6745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746 (exit $ac_status); } && {
6747 test -z "$ac_c_werror_flag" ||
6748 test ! -s conftest.err
6749 } && test -s conftest.$ac_objext; then
6750 ac_header_compiler=yes
6752 echo "$as_me: failed program was:" >&5
6753 sed 's/^/| /' conftest.$ac_ext >&5
6755 ac_header_compiler=no
6758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6759 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6760 echo "${ECHO_T}$ac_header_compiler" >&6; }
6762 # Is the header present?
6763 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6764 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6765 cat >conftest.$ac_ext <<_ACEOF
6768 cat confdefs.h >>conftest.$ac_ext
6769 cat >>conftest.$ac_ext <<_ACEOF
6770 /* end confdefs.h. */
6771 #include <$ac_header>
6773 if { (ac_try="$ac_cpp conftest.$ac_ext"
6775 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6776 *) ac_try_echo
=$ac_try;;
6778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6779 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6781 grep -v '^ *+' conftest.er1
>conftest.err
6783 cat conftest.err
>&5
6784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6785 (exit $ac_status); } >/dev
/null
&& {
6786 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6787 test ! -s conftest.err
6789 ac_header_preproc
=yes
6791 echo "$as_me: failed program was:" >&5
6792 sed 's/^/| /' conftest.
$ac_ext >&5
6794 ac_header_preproc
=no
6797 rm -f conftest.err conftest.
$ac_ext
6798 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6799 echo "${ECHO_T}$ac_header_preproc" >&6; }
6801 # So? What about this header?
6802 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6804 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6805 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6806 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6807 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6808 ac_header_preproc
=yes
6811 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6812 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6813 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6814 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6815 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6816 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6817 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6818 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6819 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6820 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6821 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6822 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6826 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6827 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6828 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6829 echo $ECHO_N "(cached) $ECHO_C" >&6
6831 eval "$as_ac_Header=\$ac_header_preproc"
6833 ac_res
=`eval echo '${'$as_ac_Header'}'`
6834 { echo "$as_me:$LINENO: result: $ac_res" >&5
6835 echo "${ECHO_T}$ac_res" >&6; }
6838 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6839 cat >>confdefs.h
<<_ACEOF
6840 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6848 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6849 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6850 cat >conftest.
$ac_ext <<_ACEOF
6853 cat confdefs.h
>>conftest.
$ac_ext
6854 cat >>conftest.
$ac_ext <<_ACEOF
6855 /* end confdefs.h. */
6856 #include <sys/personality.h>
6860 personality (PER_LINUX32)
6865 rm -f conftest.
$ac_objext
6866 if { (ac_try
="$ac_compile"
6868 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6869 *) ac_try_echo=$ac_try;;
6871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6872 (eval "$ac_compile") 2>conftest.er1
6874 grep -v '^ *+' conftest.er1 >conftest.err
6876 cat conftest.err >&5
6877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6878 (exit $ac_status); } && {
6879 test -z "$ac_c_werror_flag" ||
6880 test ! -s conftest.err
6881 } && test -s conftest.$ac_objext; then
6882 emacs_cv_personality_linux32=yes
6884 echo "$as_me: failed program was:" >&5
6885 sed 's/^/| /' conftest.$ac_ext >&5
6887 emacs_cv_personality_linux32=no
6890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6891 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6892 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6894 if test $emacs_cv_personality_linux32 = yes; then
6896 cat >>confdefs.h <<\_ACEOF
6897 #define HAVE_PERSONALITY_LINUX32 1
6903 for ac_header in term.h
6905 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6906 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6907 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6908 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6909 echo $ECHO_N "(cached) $ECHO_C" >&6
6911 cat >conftest.$ac_ext <<_ACEOF
6914 cat confdefs.h >>conftest.$ac_ext
6915 cat >>conftest.$ac_ext <<_ACEOF
6916 /* end confdefs.h. */
6917 #include <$ac_header>
6919 if { (ac_try="$ac_cpp conftest.$ac_ext"
6921 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6922 *) ac_try_echo
=$ac_try;;
6924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6925 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6927 grep -v '^ *+' conftest.er1
>conftest.err
6929 cat conftest.err
>&5
6930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6931 (exit $ac_status); } >/dev
/null
&& {
6932 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6933 test ! -s conftest.err
6935 eval "$as_ac_Header=yes"
6937 echo "$as_me: failed program was:" >&5
6938 sed 's/^/| /' conftest.
$ac_ext >&5
6940 eval "$as_ac_Header=no"
6943 rm -f conftest.err conftest.
$ac_ext
6945 ac_res
=`eval echo '${'$as_ac_Header'}'`
6946 { echo "$as_me:$LINENO: result: $ac_res" >&5
6947 echo "${ECHO_T}$ac_res" >&6; }
6948 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6949 cat >>confdefs.h
<<_ACEOF
6950 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6957 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6958 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6959 if test "${ac_cv_header_stdc+set}" = set; then
6960 echo $ECHO_N "(cached) $ECHO_C" >&6
6962 cat >conftest.
$ac_ext <<_ACEOF
6965 cat confdefs.h
>>conftest.
$ac_ext
6966 cat >>conftest.
$ac_ext <<_ACEOF
6967 /* end confdefs.h. */
6981 rm -f conftest.
$ac_objext
6982 if { (ac_try
="$ac_compile"
6984 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6985 *) ac_try_echo=$ac_try;;
6987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6988 (eval "$ac_compile") 2>conftest.er1
6990 grep -v '^ *+' conftest.er1 >conftest.err
6992 cat conftest.err >&5
6993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6994 (exit $ac_status); } && {
6995 test -z "$ac_c_werror_flag" ||
6996 test ! -s conftest.err
6997 } && test -s conftest.$ac_objext; then
6998 ac_cv_header_stdc=yes
7000 echo "$as_me: failed program was:" >&5
7001 sed 's/^/| /' conftest.$ac_ext >&5
7003 ac_cv_header_stdc=no
7006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7008 if test $ac_cv_header_stdc = yes; then
7009 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7010 cat >conftest.$ac_ext <<_ACEOF
7013 cat confdefs.h >>conftest.$ac_ext
7014 cat >>conftest.$ac_ext <<_ACEOF
7015 /* end confdefs.h. */
7019 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7020 $EGREP "memchr" >/dev/null 2>&1; then
7023 ac_cv_header_stdc=no
7029 if test $ac_cv_header_stdc = yes; then
7030 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7031 cat >conftest.$ac_ext <<_ACEOF
7034 cat confdefs.h >>conftest.$ac_ext
7035 cat >>conftest.$ac_ext <<_ACEOF
7036 /* end confdefs.h. */
7040 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7041 $EGREP "free" >/dev/null 2>&1; then
7044 ac_cv_header_stdc=no
7050 if test $ac_cv_header_stdc = yes; then
7051 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7052 if test "$cross_compiling" = yes; then
7055 cat >conftest.$ac_ext <<_ACEOF
7058 cat confdefs.h >>conftest.$ac_ext
7059 cat >>conftest.$ac_ext <<_ACEOF
7060 /* end confdefs.h. */
7063 #if ((' ' & 0x0FF) == 0x020)
7064 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7065 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7067 # define ISLOWER(c) \
7068 (('a' <= (c) && (c) <= 'i') \
7069 || ('j' <= (c) && (c) <= 'r') \
7070 || ('s' <= (c) && (c) <= 'z'))
7071 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7074 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7079 for (i = 0; i < 256; i++)
7080 if (XOR (islower (i), ISLOWER (i))
7081 || toupper (i) != TOUPPER (i))
7086 rm -f conftest$ac_exeext
7087 if { (ac_try="$ac_link"
7089 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7090 *) ac_try_echo
=$ac_try;;
7092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7093 (eval "$ac_link") 2>&5
7095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7096 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7097 { (case "(($ac_try" in
7098 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7099 *) ac_try_echo=$ac_try;;
7101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7102 (eval "$ac_try") 2>&5
7104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7105 (exit $ac_status); }; }; then
7108 echo "$as_me: program exited with status $ac_status" >&5
7109 echo "$as_me: failed program was:" >&5
7110 sed 's/^/| /' conftest.$ac_ext >&5
7113 ac_cv_header_stdc=no
7115 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7121 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7122 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7123 if test $ac_cv_header_stdc = yes; then
7125 cat >>confdefs.h <<\_ACEOF
7126 #define STDC_HEADERS 1
7131 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7132 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
7133 if test "${ac_cv_header_time+set}" = set; then
7134 echo $ECHO_N "(cached) $ECHO_C" >&6
7136 cat >conftest.$ac_ext <<_ACEOF
7139 cat confdefs.h >>conftest.$ac_ext
7140 cat >>conftest.$ac_ext <<_ACEOF
7141 /* end confdefs.h. */
7142 #include <sys/types.h>
7143 #include <sys/time.h>
7149 if ((struct tm *) 0)
7155 rm -f conftest.$ac_objext
7156 if { (ac_try="$ac_compile"
7158 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7159 *) ac_try_echo
=$ac_try;;
7161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7162 (eval "$ac_compile") 2>conftest.er1
7164 grep -v '^ *+' conftest.er1
>conftest.err
7166 cat conftest.err
>&5
7167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7168 (exit $ac_status); } && {
7169 test -z "$ac_c_werror_flag" ||
7170 test ! -s conftest.err
7171 } && test -s conftest.
$ac_objext; then
7172 ac_cv_header_time
=yes
7174 echo "$as_me: failed program was:" >&5
7175 sed 's/^/| /' conftest.
$ac_ext >&5
7177 ac_cv_header_time
=no
7180 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7182 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7183 echo "${ECHO_T}$ac_cv_header_time" >&6; }
7184 if test $ac_cv_header_time = yes; then
7186 cat >>confdefs.h
<<\_ACEOF
7187 #define TIME_WITH_SYS_TIME 1
7192 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7193 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
7194 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7195 echo $ECHO_N "(cached) $ECHO_C" >&6
7197 cat >conftest.
$ac_ext <<_ACEOF
7200 cat confdefs.h
>>conftest.
$ac_ext
7201 cat >>conftest.
$ac_ext <<_ACEOF
7202 /* end confdefs.h. */
7203 $ac_includes_default
7215 rm -f conftest.
$ac_objext
7216 if { (ac_try
="$ac_compile"
7218 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7219 *) ac_try_echo=$ac_try;;
7221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7222 (eval "$ac_compile") 2>conftest.er1
7224 grep -v '^ *+' conftest.er1 >conftest.err
7226 cat conftest.err >&5
7227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228 (exit $ac_status); } && {
7229 test -z "$ac_c_werror_flag" ||
7230 test ! -s conftest.err
7231 } && test -s conftest.$ac_objext; then
7232 ac_cv_have_decl_sys_siglist=yes
7234 echo "$as_me: failed program was:" >&5
7235 sed 's/^/| /' conftest.$ac_ext >&5
7237 ac_cv_have_decl_sys_siglist=no
7240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7242 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7243 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7244 if test $ac_cv_have_decl_sys_siglist = yes; then
7246 cat >>confdefs.h <<_ACEOF
7247 #define HAVE_DECL_SYS_SIGLIST 1
7252 cat >>confdefs.h <<_ACEOF
7253 #define HAVE_DECL_SYS_SIGLIST 0
7260 if test $ac_cv_have_decl_sys_siglist != yes; then
7261 # For Tru64, at least:
7262 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7263 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7264 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7265 echo $ECHO_N "(cached) $ECHO_C" >&6
7267 cat >conftest.$ac_ext <<_ACEOF
7270 cat confdefs.h >>conftest.$ac_ext
7271 cat >>conftest.$ac_ext <<_ACEOF
7272 /* end confdefs.h. */
7273 $ac_includes_default
7277 #ifndef __sys_siglist
7278 (void) __sys_siglist;
7285 rm -f conftest.$ac_objext
7286 if { (ac_try="$ac_compile"
7288 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7289 *) ac_try_echo
=$ac_try;;
7291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7292 (eval "$ac_compile") 2>conftest.er1
7294 grep -v '^ *+' conftest.er1
>conftest.err
7296 cat conftest.err
>&5
7297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7298 (exit $ac_status); } && {
7299 test -z "$ac_c_werror_flag" ||
7300 test ! -s conftest.err
7301 } && test -s conftest.
$ac_objext; then
7302 ac_cv_have_decl___sys_siglist
=yes
7304 echo "$as_me: failed program was:" >&5
7305 sed 's/^/| /' conftest.
$ac_ext >&5
7307 ac_cv_have_decl___sys_siglist
=no
7310 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7312 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7313 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7314 if test $ac_cv_have_decl___sys_siglist = yes; then
7316 cat >>confdefs.h
<<_ACEOF
7317 #define HAVE_DECL___SYS_SIGLIST 1
7322 cat >>confdefs.h
<<_ACEOF
7323 #define HAVE_DECL___SYS_SIGLIST 0
7330 if test $ac_cv_have_decl___sys_siglist = yes; then
7332 cat >>confdefs.h
<<\_ACEOF
7333 #define sys_siglist __sys_siglist
7338 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7339 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7340 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7341 echo $ECHO_N "(cached) $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 <sys/types.h>
7350 #include <sys/wait.h>
7352 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7355 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7363 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7368 rm -f conftest.
$ac_objext
7369 if { (ac_try
="$ac_compile"
7371 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7372 *) ac_try_echo=$ac_try;;
7374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7375 (eval "$ac_compile") 2>conftest.er1
7377 grep -v '^ *+' conftest.er1 >conftest.err
7379 cat conftest.err >&5
7380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7381 (exit $ac_status); } && {
7382 test -z "$ac_c_werror_flag" ||
7383 test ! -s conftest.err
7384 } && test -s conftest.$ac_objext; then
7385 ac_cv_header_sys_wait_h=yes
7387 echo "$as_me: failed program was:" >&5
7388 sed 's/^/| /' conftest.$ac_ext >&5
7390 ac_cv_header_sys_wait_h=no
7393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7395 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7396 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7397 if test $ac_cv_header_sys_wait_h = yes; then
7399 cat >>confdefs.h <<\_ACEOF
7400 #define HAVE_SYS_WAIT_H 1
7406 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7407 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7408 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7409 echo $ECHO_N "(cached) $ECHO_C" >&6
7411 cat >conftest.$ac_ext <<_ACEOF
7414 cat confdefs.h >>conftest.$ac_ext
7415 cat >>conftest.$ac_ext <<_ACEOF
7416 /* end confdefs.h. */
7417 #ifdef TIME_WITH_SYS_TIME
7418 #include <sys/time.h>
7421 #ifdef HAVE_SYS_TIME_H
7422 #include <sys/time.h>
7433 static struct utimbuf x; x.actime = x.modtime;
7438 rm -f conftest.$ac_objext
7439 if { (ac_try="$ac_compile"
7441 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7442 *) ac_try_echo
=$ac_try;;
7444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7445 (eval "$ac_compile") 2>conftest.er1
7447 grep -v '^ *+' conftest.er1
>conftest.err
7449 cat conftest.err
>&5
7450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7451 (exit $ac_status); } && {
7452 test -z "$ac_c_werror_flag" ||
7453 test ! -s conftest.err
7454 } && test -s conftest.
$ac_objext; then
7455 emacs_cv_struct_utimbuf
=yes
7457 echo "$as_me: failed program was:" >&5
7458 sed 's/^/| /' conftest.
$ac_ext >&5
7460 emacs_cv_struct_utimbuf
=no
7463 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7465 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7466 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7467 if test $emacs_cv_struct_utimbuf = yes; then
7469 cat >>confdefs.h
<<\_ACEOF
7470 #define HAVE_STRUCT_UTIMBUF 1
7475 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7476 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7477 if test "${ac_cv_type_signal+set}" = set; then
7478 echo $ECHO_N "(cached) $ECHO_C" >&6
7480 cat >conftest.
$ac_ext <<_ACEOF
7483 cat confdefs.h
>>conftest.
$ac_ext
7484 cat >>conftest.
$ac_ext <<_ACEOF
7485 /* end confdefs.h. */
7486 #include <sys/types.h>
7492 return *(signal (0, 0)) (0) == 1;
7497 rm -f conftest.
$ac_objext
7498 if { (ac_try
="$ac_compile"
7500 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7501 *) ac_try_echo=$ac_try;;
7503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7504 (eval "$ac_compile") 2>conftest.er1
7506 grep -v '^ *+' conftest.er1 >conftest.err
7508 cat conftest.err >&5
7509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7510 (exit $ac_status); } && {
7511 test -z "$ac_c_werror_flag" ||
7512 test ! -s conftest.err
7513 } && test -s conftest.$ac_objext; then
7514 ac_cv_type_signal=int
7516 echo "$as_me: failed program was:" >&5
7517 sed 's/^/| /' conftest.$ac_ext >&5
7519 ac_cv_type_signal=void
7522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7524 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7525 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7527 cat >>confdefs.h <<_ACEOF
7528 #define RETSIGTYPE $ac_cv_type_signal
7533 { echo "$as_me:$LINENO: checking for speed_t" >&5
7534 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7535 if test "${emacs_cv_speed_t+set}" = set; then
7536 echo $ECHO_N "(cached) $ECHO_C" >&6
7538 cat >conftest.$ac_ext <<_ACEOF
7541 cat confdefs.h >>conftest.$ac_ext
7542 cat >>conftest.$ac_ext <<_ACEOF
7543 /* end confdefs.h. */
7544 #include <termios.h>
7553 rm -f conftest.$ac_objext
7554 if { (ac_try="$ac_compile"
7556 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7557 *) ac_try_echo
=$ac_try;;
7559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7560 (eval "$ac_compile") 2>conftest.er1
7562 grep -v '^ *+' conftest.er1
>conftest.err
7564 cat conftest.err
>&5
7565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7566 (exit $ac_status); } && {
7567 test -z "$ac_c_werror_flag" ||
7568 test ! -s conftest.err
7569 } && test -s conftest.
$ac_objext; then
7570 emacs_cv_speed_t
=yes
7572 echo "$as_me: failed program was:" >&5
7573 sed 's/^/| /' conftest.
$ac_ext >&5
7578 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7580 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7581 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7582 if test $emacs_cv_speed_t = yes; then
7584 cat >>confdefs.h
<<\_ACEOF
7585 #define HAVE_SPEED_T 1
7590 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7591 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7592 if test "${emacs_cv_struct_timeval+set}" = set; then
7593 echo $ECHO_N "(cached) $ECHO_C" >&6
7595 cat >conftest.
$ac_ext <<_ACEOF
7598 cat confdefs.h
>>conftest.
$ac_ext
7599 cat >>conftest.
$ac_ext <<_ACEOF
7600 /* end confdefs.h. */
7601 #ifdef TIME_WITH_SYS_TIME
7602 #include <sys/time.h>
7605 #ifdef HAVE_SYS_TIME_H
7606 #include <sys/time.h>
7614 static struct timeval x; x.tv_sec = x.tv_usec;
7619 rm -f conftest.
$ac_objext
7620 if { (ac_try
="$ac_compile"
7622 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7623 *) ac_try_echo=$ac_try;;
7625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7626 (eval "$ac_compile") 2>conftest.er1
7628 grep -v '^ *+' conftest.er1 >conftest.err
7630 cat conftest.err >&5
7631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632 (exit $ac_status); } && {
7633 test -z "$ac_c_werror_flag" ||
7634 test ! -s conftest.err
7635 } && test -s conftest.$ac_objext; then
7636 emacs_cv_struct_timeval=yes
7638 echo "$as_me: failed program was:" >&5
7639 sed 's/^/| /' conftest.$ac_ext >&5
7641 emacs_cv_struct_timeval=no
7644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7646 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7647 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7648 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7649 if test $emacs_cv_struct_timeval = yes; then
7651 cat >>confdefs.h <<\_ACEOF
7652 #define HAVE_TIMEVAL 1
7657 { echo "$as_me:$LINENO: checking for struct exception" >&5
7658 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7659 if test "${emacs_cv_struct_exception+set}" = set; then
7660 echo $ECHO_N "(cached) $ECHO_C" >&6
7662 cat >conftest.$ac_ext <<_ACEOF
7665 cat confdefs.h >>conftest.$ac_ext
7666 cat >>conftest.$ac_ext <<_ACEOF
7667 /* end confdefs.h. */
7672 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7677 rm -f conftest.$ac_objext
7678 if { (ac_try="$ac_compile"
7680 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7681 *) ac_try_echo
=$ac_try;;
7683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7684 (eval "$ac_compile") 2>conftest.er1
7686 grep -v '^ *+' conftest.er1
>conftest.err
7688 cat conftest.err
>&5
7689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7690 (exit $ac_status); } && {
7691 test -z "$ac_c_werror_flag" ||
7692 test ! -s conftest.err
7693 } && test -s conftest.
$ac_objext; then
7694 emacs_cv_struct_exception
=yes
7696 echo "$as_me: failed program was:" >&5
7697 sed 's/^/| /' conftest.
$ac_ext >&5
7699 emacs_cv_struct_exception
=no
7702 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7704 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7705 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7706 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7707 if test $emacs_cv_struct_exception != yes; then
7709 cat >>confdefs.h
<<\_ACEOF
7710 #define NO_MATHERR 1
7716 for ac_header
in sys
/socket.h
7718 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7719 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7720 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7721 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7722 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7723 echo $ECHO_N "(cached) $ECHO_C" >&6
7725 ac_res
=`eval echo '${'$as_ac_Header'}'`
7726 { echo "$as_me:$LINENO: result: $ac_res" >&5
7727 echo "${ECHO_T}$ac_res" >&6; }
7729 # Is the header compilable?
7730 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7731 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7732 cat >conftest.
$ac_ext <<_ACEOF
7735 cat confdefs.h
>>conftest.
$ac_ext
7736 cat >>conftest.
$ac_ext <<_ACEOF
7737 /* end confdefs.h. */
7738 $ac_includes_default
7739 #include <$ac_header>
7741 rm -f conftest.
$ac_objext
7742 if { (ac_try
="$ac_compile"
7744 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7745 *) ac_try_echo=$ac_try;;
7747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7748 (eval "$ac_compile") 2>conftest.er1
7750 grep -v '^ *+' conftest.er1 >conftest.err
7752 cat conftest.err >&5
7753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7754 (exit $ac_status); } && {
7755 test -z "$ac_c_werror_flag" ||
7756 test ! -s conftest.err
7757 } && test -s conftest.$ac_objext; then
7758 ac_header_compiler=yes
7760 echo "$as_me: failed program was:" >&5
7761 sed 's/^/| /' conftest.$ac_ext >&5
7763 ac_header_compiler=no
7766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7767 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7768 echo "${ECHO_T}$ac_header_compiler" >&6; }
7770 # Is the header present?
7771 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7772 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7773 cat >conftest.$ac_ext <<_ACEOF
7776 cat confdefs.h >>conftest.$ac_ext
7777 cat >>conftest.$ac_ext <<_ACEOF
7778 /* end confdefs.h. */
7779 #include <$ac_header>
7781 if { (ac_try="$ac_cpp conftest.$ac_ext"
7783 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7784 *) ac_try_echo
=$ac_try;;
7786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7787 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7789 grep -v '^ *+' conftest.er1
>conftest.err
7791 cat conftest.err
>&5
7792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793 (exit $ac_status); } >/dev
/null
&& {
7794 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7795 test ! -s conftest.err
7797 ac_header_preproc
=yes
7799 echo "$as_me: failed program was:" >&5
7800 sed 's/^/| /' conftest.
$ac_ext >&5
7802 ac_header_preproc
=no
7805 rm -f conftest.err conftest.
$ac_ext
7806 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7807 echo "${ECHO_T}$ac_header_preproc" >&6; }
7809 # So? What about this header?
7810 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7812 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7813 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7814 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7815 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7816 ac_header_preproc
=yes
7819 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7820 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7821 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7822 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7823 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7824 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7825 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7826 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7827 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7828 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7829 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7830 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7834 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7835 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7836 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7837 echo $ECHO_N "(cached) $ECHO_C" >&6
7839 eval "$as_ac_Header=\$ac_header_preproc"
7841 ac_res
=`eval echo '${'$as_ac_Header'}'`
7842 { echo "$as_me:$LINENO: result: $ac_res" >&5
7843 echo "${ECHO_T}$ac_res" >&6; }
7846 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7847 cat >>confdefs.h
<<_ACEOF
7848 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7856 for ac_header
in net
/if.h
7858 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7859 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7860 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7861 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7862 echo $ECHO_N "(cached) $ECHO_C" >&6
7864 cat >conftest.
$ac_ext <<_ACEOF
7867 cat confdefs.h
>>conftest.
$ac_ext
7868 cat >>conftest.
$ac_ext <<_ACEOF
7869 /* end confdefs.h. */
7870 $ac_includes_default
7871 #if HAVE_SYS_SOCKET_H
7872 #include <sys/socket.h>
7875 #include <$ac_header>
7877 rm -f conftest.
$ac_objext
7878 if { (ac_try
="$ac_compile"
7880 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7881 *) ac_try_echo=$ac_try;;
7883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7884 (eval "$ac_compile") 2>conftest.er1
7886 grep -v '^ *+' conftest.er1 >conftest.err
7888 cat conftest.err >&5
7889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7890 (exit $ac_status); } && {
7891 test -z "$ac_c_werror_flag" ||
7892 test ! -s conftest.err
7893 } && test -s conftest.$ac_objext; then
7894 eval "$as_ac_Header=yes"
7896 echo "$as_me: failed program was:" >&5
7897 sed 's/^/| /' conftest.$ac_ext >&5
7899 eval "$as_ac_Header=no"
7902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7904 ac_res=`eval echo '${'$as_ac_Header'}'`
7905 { echo "$as_me:$LINENO: result: $ac_res" >&5
7906 echo "${ECHO_T}$ac_res" >&6; }
7907 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7908 cat >>confdefs.h <<_ACEOF
7909 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7917 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7918 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7919 if test "${ac_cv_struct_tm+set}" = set; then
7920 echo $ECHO_N "(cached) $ECHO_C" >&6
7922 cat >conftest.$ac_ext <<_ACEOF
7925 cat confdefs.h >>conftest.$ac_ext
7926 cat >>conftest.$ac_ext <<_ACEOF
7927 /* end confdefs.h. */
7928 #include <sys/types.h>
7935 int *p = &tm.tm_sec;
7941 rm -f conftest.$ac_objext
7942 if { (ac_try="$ac_compile"
7944 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7945 *) ac_try_echo
=$ac_try;;
7947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7948 (eval "$ac_compile") 2>conftest.er1
7950 grep -v '^ *+' conftest.er1
>conftest.err
7952 cat conftest.err
>&5
7953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954 (exit $ac_status); } && {
7955 test -z "$ac_c_werror_flag" ||
7956 test ! -s conftest.err
7957 } && test -s conftest.
$ac_objext; then
7958 ac_cv_struct_tm
=time.h
7960 echo "$as_me: failed program was:" >&5
7961 sed 's/^/| /' conftest.
$ac_ext >&5
7963 ac_cv_struct_tm
=sys
/time.h
7966 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7968 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7969 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7970 if test $ac_cv_struct_tm = sys
/time.h
; then
7972 cat >>confdefs.h
<<\_ACEOF
7973 #define TM_IN_SYS_TIME 1
7978 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7979 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7980 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7981 echo $ECHO_N "(cached) $ECHO_C" >&6
7983 cat >conftest.
$ac_ext <<_ACEOF
7986 cat confdefs.h
>>conftest.
$ac_ext
7987 cat >>conftest.
$ac_ext <<_ACEOF
7988 /* end confdefs.h. */
7989 #include <sys/types.h>
7990 #include <$ac_cv_struct_tm>
7996 static struct tm ac_aggr;
7997 if (ac_aggr.tm_zone)
8003 rm -f conftest.
$ac_objext
8004 if { (ac_try
="$ac_compile"
8006 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8007 *) ac_try_echo=$ac_try;;
8009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8010 (eval "$ac_compile") 2>conftest.er1
8012 grep -v '^ *+' conftest.er1 >conftest.err
8014 cat conftest.err >&5
8015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016 (exit $ac_status); } && {
8017 test -z "$ac_c_werror_flag" ||
8018 test ! -s conftest.err
8019 } && test -s conftest.$ac_objext; then
8020 ac_cv_member_struct_tm_tm_zone=yes
8022 echo "$as_me: failed program was:" >&5
8023 sed 's/^/| /' conftest.$ac_ext >&5
8025 cat >conftest.$ac_ext <<_ACEOF
8028 cat confdefs.h >>conftest.$ac_ext
8029 cat >>conftest.$ac_ext <<_ACEOF
8030 /* end confdefs.h. */
8031 #include <sys/types.h>
8032 #include <$ac_cv_struct_tm>
8038 static struct tm ac_aggr;
8039 if (sizeof ac_aggr.tm_zone)
8045 rm -f conftest.$ac_objext
8046 if { (ac_try="$ac_compile"
8048 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8049 *) ac_try_echo
=$ac_try;;
8051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8052 (eval "$ac_compile") 2>conftest.er1
8054 grep -v '^ *+' conftest.er1
>conftest.err
8056 cat conftest.err
>&5
8057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058 (exit $ac_status); } && {
8059 test -z "$ac_c_werror_flag" ||
8060 test ! -s conftest.err
8061 } && test -s conftest.
$ac_objext; then
8062 ac_cv_member_struct_tm_tm_zone
=yes
8064 echo "$as_me: failed program was:" >&5
8065 sed 's/^/| /' conftest.
$ac_ext >&5
8067 ac_cv_member_struct_tm_tm_zone
=no
8070 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8073 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8075 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8076 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
8077 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8079 cat >>confdefs.h
<<_ACEOF
8080 #define HAVE_STRUCT_TM_TM_ZONE 1
8086 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8088 cat >>confdefs.h
<<\_ACEOF
8089 #define HAVE_TM_ZONE 1
8093 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8094 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
8095 if test "${ac_cv_have_decl_tzname+set}" = set; then
8096 echo $ECHO_N "(cached) $ECHO_C" >&6
8098 cat >conftest.
$ac_ext <<_ACEOF
8101 cat confdefs.h
>>conftest.
$ac_ext
8102 cat >>conftest.
$ac_ext <<_ACEOF
8103 /* end confdefs.h. */
8117 rm -f conftest.
$ac_objext
8118 if { (ac_try
="$ac_compile"
8120 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8121 *) ac_try_echo=$ac_try;;
8123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8124 (eval "$ac_compile") 2>conftest.er1
8126 grep -v '^ *+' conftest.er1 >conftest.err
8128 cat conftest.err >&5
8129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130 (exit $ac_status); } && {
8131 test -z "$ac_c_werror_flag" ||
8132 test ! -s conftest.err
8133 } && test -s conftest.$ac_objext; then
8134 ac_cv_have_decl_tzname=yes
8136 echo "$as_me: failed program was:" >&5
8137 sed 's/^/| /' conftest.$ac_ext >&5
8139 ac_cv_have_decl_tzname=no
8142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8144 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8145 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
8146 if test $ac_cv_have_decl_tzname = yes; then
8148 cat >>confdefs.h <<_ACEOF
8149 #define HAVE_DECL_TZNAME 1
8154 cat >>confdefs.h <<_ACEOF
8155 #define HAVE_DECL_TZNAME 0
8162 { echo "$as_me:$LINENO: checking for tzname" >&5
8163 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
8164 if test "${ac_cv_var_tzname+set}" = set; then
8165 echo $ECHO_N "(cached) $ECHO_C" >&6
8167 cat >conftest.$ac_ext <<_ACEOF
8170 cat confdefs.h >>conftest.$ac_ext
8171 cat >>conftest.$ac_ext <<_ACEOF
8172 /* end confdefs.h. */
8174 #if !HAVE_DECL_TZNAME
8175 extern char *tzname[];
8181 return tzname[0][0];
8186 rm -f conftest.$ac_objext conftest$ac_exeext
8187 if { (ac_try="$ac_link"
8189 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8190 *) ac_try_echo
=$ac_try;;
8192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8193 (eval "$ac_link") 2>conftest.er1
8195 grep -v '^ *+' conftest.er1
>conftest.err
8197 cat conftest.err
>&5
8198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8199 (exit $ac_status); } && {
8200 test -z "$ac_c_werror_flag" ||
8201 test ! -s conftest.err
8202 } && test -s conftest
$ac_exeext &&
8203 $as_test_x conftest
$ac_exeext; then
8204 ac_cv_var_tzname
=yes
8206 echo "$as_me: failed program was:" >&5
8207 sed 's/^/| /' conftest.
$ac_ext >&5
8212 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8213 conftest
$ac_exeext conftest.
$ac_ext
8215 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8216 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
8217 if test $ac_cv_var_tzname = yes; then
8219 cat >>confdefs.h
<<\_ACEOF
8220 #define HAVE_TZNAME 1
8226 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8227 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
8228 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8229 echo $ECHO_N "(cached) $ECHO_C" >&6
8231 cat >conftest.
$ac_ext <<_ACEOF
8234 cat confdefs.h
>>conftest.
$ac_ext
8235 cat >>conftest.
$ac_ext <<_ACEOF
8236 /* end confdefs.h. */
8242 static struct tm ac_aggr;
8243 if (ac_aggr.tm_gmtoff)
8249 rm -f conftest.
$ac_objext
8250 if { (ac_try
="$ac_compile"
8252 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8253 *) ac_try_echo=$ac_try;;
8255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8256 (eval "$ac_compile") 2>conftest.er1
8258 grep -v '^ *+' conftest.er1 >conftest.err
8260 cat conftest.err >&5
8261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262 (exit $ac_status); } && {
8263 test -z "$ac_c_werror_flag" ||
8264 test ! -s conftest.err
8265 } && test -s conftest.$ac_objext; then
8266 ac_cv_member_struct_tm_tm_gmtoff=yes
8268 echo "$as_me: failed program was:" >&5
8269 sed 's/^/| /' conftest.$ac_ext >&5
8271 cat >conftest.$ac_ext <<_ACEOF
8274 cat confdefs.h >>conftest.$ac_ext
8275 cat >>conftest.$ac_ext <<_ACEOF
8276 /* end confdefs.h. */
8282 static struct tm ac_aggr;
8283 if (sizeof ac_aggr.tm_gmtoff)
8289 rm -f conftest.$ac_objext
8290 if { (ac_try="$ac_compile"
8292 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8293 *) ac_try_echo
=$ac_try;;
8295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8296 (eval "$ac_compile") 2>conftest.er1
8298 grep -v '^ *+' conftest.er1
>conftest.err
8300 cat conftest.err
>&5
8301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302 (exit $ac_status); } && {
8303 test -z "$ac_c_werror_flag" ||
8304 test ! -s conftest.err
8305 } && test -s conftest.
$ac_objext; then
8306 ac_cv_member_struct_tm_tm_gmtoff
=yes
8308 echo "$as_me: failed program was:" >&5
8309 sed 's/^/| /' conftest.
$ac_ext >&5
8311 ac_cv_member_struct_tm_tm_gmtoff
=no
8314 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8317 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8319 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8320 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8321 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8323 cat >>confdefs.h
<<\_ACEOF
8324 #define HAVE_TM_GMTOFF 1
8329 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8330 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8331 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8332 echo $ECHO_N "(cached) $ECHO_C" >&6
8334 cat >conftest.
$ac_ext <<_ACEOF
8337 cat confdefs.h
>>conftest.
$ac_ext
8338 cat >>conftest.
$ac_ext <<_ACEOF
8339 /* end confdefs.h. */
8340 $ac_includes_default
8341 #if HAVE_SYS_SOCKET_H
8342 #include <sys/socket.h>
8351 static struct ifreq ac_aggr;
8352 if (ac_aggr.ifr_flags)
8358 rm -f conftest.
$ac_objext
8359 if { (ac_try
="$ac_compile"
8361 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8362 *) ac_try_echo=$ac_try;;
8364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8365 (eval "$ac_compile") 2>conftest.er1
8367 grep -v '^ *+' conftest.er1 >conftest.err
8369 cat conftest.err >&5
8370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371 (exit $ac_status); } && {
8372 test -z "$ac_c_werror_flag" ||
8373 test ! -s conftest.err
8374 } && test -s conftest.$ac_objext; then
8375 ac_cv_member_struct_ifreq_ifr_flags=yes
8377 echo "$as_me: failed program was:" >&5
8378 sed 's/^/| /' conftest.$ac_ext >&5
8380 cat >conftest.$ac_ext <<_ACEOF
8383 cat confdefs.h >>conftest.$ac_ext
8384 cat >>conftest.$ac_ext <<_ACEOF
8385 /* end confdefs.h. */
8386 $ac_includes_default
8387 #if HAVE_SYS_SOCKET_H
8388 #include <sys/socket.h>
8397 static struct ifreq ac_aggr;
8398 if (sizeof ac_aggr.ifr_flags)
8404 rm -f conftest.$ac_objext
8405 if { (ac_try="$ac_compile"
8407 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8408 *) ac_try_echo
=$ac_try;;
8410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8411 (eval "$ac_compile") 2>conftest.er1
8413 grep -v '^ *+' conftest.er1
>conftest.err
8415 cat conftest.err
>&5
8416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417 (exit $ac_status); } && {
8418 test -z "$ac_c_werror_flag" ||
8419 test ! -s conftest.err
8420 } && test -s conftest.
$ac_objext; then
8421 ac_cv_member_struct_ifreq_ifr_flags
=yes
8423 echo "$as_me: failed program was:" >&5
8424 sed 's/^/| /' conftest.
$ac_ext >&5
8426 ac_cv_member_struct_ifreq_ifr_flags
=no
8429 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8432 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8434 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8435 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8436 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8438 cat >>confdefs.h
<<_ACEOF
8439 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8444 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8445 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8446 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8447 echo $ECHO_N "(cached) $ECHO_C" >&6
8449 cat >conftest.
$ac_ext <<_ACEOF
8452 cat confdefs.h
>>conftest.
$ac_ext
8453 cat >>conftest.
$ac_ext <<_ACEOF
8454 /* end confdefs.h. */
8455 $ac_includes_default
8456 #if HAVE_SYS_SOCKET_H
8457 #include <sys/socket.h>
8466 static struct ifreq ac_aggr;
8467 if (ac_aggr.ifr_hwaddr)
8473 rm -f conftest.
$ac_objext
8474 if { (ac_try
="$ac_compile"
8476 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8477 *) ac_try_echo=$ac_try;;
8479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8480 (eval "$ac_compile") 2>conftest.er1
8482 grep -v '^ *+' conftest.er1 >conftest.err
8484 cat conftest.err >&5
8485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8486 (exit $ac_status); } && {
8487 test -z "$ac_c_werror_flag" ||
8488 test ! -s conftest.err
8489 } && test -s conftest.$ac_objext; then
8490 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8492 echo "$as_me: failed program was:" >&5
8493 sed 's/^/| /' conftest.$ac_ext >&5
8495 cat >conftest.$ac_ext <<_ACEOF
8498 cat confdefs.h >>conftest.$ac_ext
8499 cat >>conftest.$ac_ext <<_ACEOF
8500 /* end confdefs.h. */
8501 $ac_includes_default
8502 #if HAVE_SYS_SOCKET_H
8503 #include <sys/socket.h>
8512 static struct ifreq ac_aggr;
8513 if (sizeof ac_aggr.ifr_hwaddr)
8519 rm -f conftest.$ac_objext
8520 if { (ac_try="$ac_compile"
8522 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8523 *) ac_try_echo
=$ac_try;;
8525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8526 (eval "$ac_compile") 2>conftest.er1
8528 grep -v '^ *+' conftest.er1
>conftest.err
8530 cat conftest.err
>&5
8531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532 (exit $ac_status); } && {
8533 test -z "$ac_c_werror_flag" ||
8534 test ! -s conftest.err
8535 } && test -s conftest.
$ac_objext; then
8536 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8538 echo "$as_me: failed program was:" >&5
8539 sed 's/^/| /' conftest.
$ac_ext >&5
8541 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8544 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8547 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8549 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8550 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8551 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8553 cat >>confdefs.h
<<_ACEOF
8554 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8559 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8560 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8561 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8562 echo $ECHO_N "(cached) $ECHO_C" >&6
8564 cat >conftest.
$ac_ext <<_ACEOF
8567 cat confdefs.h
>>conftest.
$ac_ext
8568 cat >>conftest.
$ac_ext <<_ACEOF
8569 /* end confdefs.h. */
8570 $ac_includes_default
8571 #if HAVE_SYS_SOCKET_H
8572 #include <sys/socket.h>
8581 static struct ifreq ac_aggr;
8582 if (ac_aggr.ifr_netmask)
8588 rm -f conftest.
$ac_objext
8589 if { (ac_try
="$ac_compile"
8591 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8592 *) ac_try_echo=$ac_try;;
8594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8595 (eval "$ac_compile") 2>conftest.er1
8597 grep -v '^ *+' conftest.er1 >conftest.err
8599 cat conftest.err >&5
8600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8601 (exit $ac_status); } && {
8602 test -z "$ac_c_werror_flag" ||
8603 test ! -s conftest.err
8604 } && test -s conftest.$ac_objext; then
8605 ac_cv_member_struct_ifreq_ifr_netmask=yes
8607 echo "$as_me: failed program was:" >&5
8608 sed 's/^/| /' conftest.$ac_ext >&5
8610 cat >conftest.$ac_ext <<_ACEOF
8613 cat confdefs.h >>conftest.$ac_ext
8614 cat >>conftest.$ac_ext <<_ACEOF
8615 /* end confdefs.h. */
8616 $ac_includes_default
8617 #if HAVE_SYS_SOCKET_H
8618 #include <sys/socket.h>
8627 static struct ifreq ac_aggr;
8628 if (sizeof ac_aggr.ifr_netmask)
8634 rm -f conftest.$ac_objext
8635 if { (ac_try="$ac_compile"
8637 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8638 *) ac_try_echo
=$ac_try;;
8640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8641 (eval "$ac_compile") 2>conftest.er1
8643 grep -v '^ *+' conftest.er1
>conftest.err
8645 cat conftest.err
>&5
8646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647 (exit $ac_status); } && {
8648 test -z "$ac_c_werror_flag" ||
8649 test ! -s conftest.err
8650 } && test -s conftest.
$ac_objext; then
8651 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8653 echo "$as_me: failed program was:" >&5
8654 sed 's/^/| /' conftest.
$ac_ext >&5
8656 ac_cv_member_struct_ifreq_ifr_netmask
=no
8659 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8662 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8664 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8665 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8666 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8668 cat >>confdefs.h
<<_ACEOF
8669 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8674 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8675 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8676 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8677 echo $ECHO_N "(cached) $ECHO_C" >&6
8679 cat >conftest.
$ac_ext <<_ACEOF
8682 cat confdefs.h
>>conftest.
$ac_ext
8683 cat >>conftest.
$ac_ext <<_ACEOF
8684 /* end confdefs.h. */
8685 $ac_includes_default
8686 #if HAVE_SYS_SOCKET_H
8687 #include <sys/socket.h>
8696 static struct ifreq ac_aggr;
8697 if (ac_aggr.ifr_broadaddr)
8703 rm -f conftest.
$ac_objext
8704 if { (ac_try
="$ac_compile"
8706 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8707 *) ac_try_echo=$ac_try;;
8709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8710 (eval "$ac_compile") 2>conftest.er1
8712 grep -v '^ *+' conftest.er1 >conftest.err
8714 cat conftest.err >&5
8715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716 (exit $ac_status); } && {
8717 test -z "$ac_c_werror_flag" ||
8718 test ! -s conftest.err
8719 } && test -s conftest.$ac_objext; then
8720 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8722 echo "$as_me: failed program was:" >&5
8723 sed 's/^/| /' conftest.$ac_ext >&5
8725 cat >conftest.$ac_ext <<_ACEOF
8728 cat confdefs.h >>conftest.$ac_ext
8729 cat >>conftest.$ac_ext <<_ACEOF
8730 /* end confdefs.h. */
8731 $ac_includes_default
8732 #if HAVE_SYS_SOCKET_H
8733 #include <sys/socket.h>
8742 static struct ifreq ac_aggr;
8743 if (sizeof ac_aggr.ifr_broadaddr)
8749 rm -f conftest.$ac_objext
8750 if { (ac_try="$ac_compile"
8752 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8753 *) ac_try_echo
=$ac_try;;
8755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8756 (eval "$ac_compile") 2>conftest.er1
8758 grep -v '^ *+' conftest.er1
>conftest.err
8760 cat conftest.err
>&5
8761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762 (exit $ac_status); } && {
8763 test -z "$ac_c_werror_flag" ||
8764 test ! -s conftest.err
8765 } && test -s conftest.
$ac_objext; then
8766 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
8768 echo "$as_me: failed program was:" >&5
8769 sed 's/^/| /' conftest.
$ac_ext >&5
8771 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
8774 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8777 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8779 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8780 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8781 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8783 cat >>confdefs.h
<<_ACEOF
8784 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8789 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8790 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8791 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8792 echo $ECHO_N "(cached) $ECHO_C" >&6
8794 cat >conftest.
$ac_ext <<_ACEOF
8797 cat confdefs.h
>>conftest.
$ac_ext
8798 cat >>conftest.
$ac_ext <<_ACEOF
8799 /* end confdefs.h. */
8800 $ac_includes_default
8801 #if HAVE_SYS_SOCKET_H
8802 #include <sys/socket.h>
8811 static struct ifreq ac_aggr;
8812 if (ac_aggr.ifr_addr)
8818 rm -f conftest.
$ac_objext
8819 if { (ac_try
="$ac_compile"
8821 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8822 *) ac_try_echo=$ac_try;;
8824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8825 (eval "$ac_compile") 2>conftest.er1
8827 grep -v '^ *+' conftest.er1 >conftest.err
8829 cat conftest.err >&5
8830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831 (exit $ac_status); } && {
8832 test -z "$ac_c_werror_flag" ||
8833 test ! -s conftest.err
8834 } && test -s conftest.$ac_objext; then
8835 ac_cv_member_struct_ifreq_ifr_addr=yes
8837 echo "$as_me: failed program was:" >&5
8838 sed 's/^/| /' conftest.$ac_ext >&5
8840 cat >conftest.$ac_ext <<_ACEOF
8843 cat confdefs.h >>conftest.$ac_ext
8844 cat >>conftest.$ac_ext <<_ACEOF
8845 /* end confdefs.h. */
8846 $ac_includes_default
8847 #if HAVE_SYS_SOCKET_H
8848 #include <sys/socket.h>
8857 static struct ifreq ac_aggr;
8858 if (sizeof ac_aggr.ifr_addr)
8864 rm -f conftest.$ac_objext
8865 if { (ac_try="$ac_compile"
8867 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8868 *) ac_try_echo
=$ac_try;;
8870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8871 (eval "$ac_compile") 2>conftest.er1
8873 grep -v '^ *+' conftest.er1
>conftest.err
8875 cat conftest.err
>&5
8876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8877 (exit $ac_status); } && {
8878 test -z "$ac_c_werror_flag" ||
8879 test ! -s conftest.err
8880 } && test -s conftest.
$ac_objext; then
8881 ac_cv_member_struct_ifreq_ifr_addr
=yes
8883 echo "$as_me: failed program was:" >&5
8884 sed 's/^/| /' conftest.
$ac_ext >&5
8886 ac_cv_member_struct_ifreq_ifr_addr
=no
8889 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8892 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8894 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8895 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8896 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8898 cat >>confdefs.h
<<_ACEOF
8899 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8907 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8908 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8909 if test "$ac_cv_prog_cc_c89" != no
; then
8910 { echo "$as_me:$LINENO: result: yes" >&5
8911 echo "${ECHO_T}yes" >&6; }
8913 cat >>confdefs.h
<<\_ACEOF
8914 #define PROTOTYPES 1
8918 cat >>confdefs.h
<<\_ACEOF
8919 #define __PROTOTYPES 1
8923 { echo "$as_me:$LINENO: result: no" >&5
8924 echo "${ECHO_T}no" >&6; }
8927 { echo "$as_me:$LINENO: checking for working volatile" >&5
8928 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8929 if test "${ac_cv_c_volatile+set}" = set; then
8930 echo $ECHO_N "(cached) $ECHO_C" >&6
8932 cat >conftest.
$ac_ext <<_ACEOF
8935 cat confdefs.h
>>conftest.
$ac_ext
8936 cat >>conftest.
$ac_ext <<_ACEOF
8937 /* end confdefs.h. */
8944 int * volatile y = (int *) 0;
8950 rm -f conftest.
$ac_objext
8951 if { (ac_try
="$ac_compile"
8953 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8954 *) ac_try_echo=$ac_try;;
8956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8957 (eval "$ac_compile") 2>conftest.er1
8959 grep -v '^ *+' conftest.er1 >conftest.err
8961 cat conftest.err >&5
8962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8963 (exit $ac_status); } && {
8964 test -z "$ac_c_werror_flag" ||
8965 test ! -s conftest.err
8966 } && test -s conftest.$ac_objext; then
8967 ac_cv_c_volatile=yes
8969 echo "$as_me: failed program was:" >&5
8970 sed 's/^/| /' conftest.$ac_ext >&5
8975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8977 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8978 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8979 if test $ac_cv_c_volatile = no; then
8981 cat >>confdefs.h <<\_ACEOF
8987 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8988 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8989 if test "${ac_cv_c_const+set}" = set; then
8990 echo $ECHO_N "(cached) $ECHO_C" >&6
8992 cat >conftest.$ac_ext <<_ACEOF
8995 cat confdefs.h >>conftest.$ac_ext
8996 cat >>conftest.$ac_ext <<_ACEOF
8997 /* end confdefs.h. */
9002 /* FIXME: Include the comments suggested by Paul. */
9004 /* Ultrix mips cc rejects this. */
9005 typedef int charset[2];
9007 /* SunOS 4.1.1 cc rejects this. */
9008 char const *const *pcpcc;
9010 /* NEC SVR4.0.2 mips cc rejects this. */
9011 struct point {int x, y;};
9012 static struct point const zero = {0,0};
9013 /* AIX XL C 1.02.0.0 rejects this.
9014 It does not let you subtract one const X* pointer from another in
9015 an arm of an if-expression whose if-part is not a constant
9017 const char *g = "string";
9018 pcpcc = &g + (g ? g-g : 0);
9019 /* HPUX 7.0 cc rejects these. */
9021 ppc = (char**) pcpcc;
9022 pcpcc = (char const *const *) ppc;
9023 { /* SCO 3.2v4 cc rejects this. */
9025 char const *s = 0 ? (char *) 0 : (char const *) 0;
9030 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9032 const int *foo = &x[0];
9035 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9036 typedef const int *iptr;
9040 { /* AIX XL C 1.02.0.0 rejects this saying
9041 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9042 struct s { int j; const int *ap[3]; };
9043 struct s *b; b->j = 5;
9045 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9049 return !cs[0] && !zero.x;
9056 rm -f conftest.$ac_objext
9057 if { (ac_try="$ac_compile"
9059 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9060 *) ac_try_echo
=$ac_try;;
9062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9063 (eval "$ac_compile") 2>conftest.er1
9065 grep -v '^ *+' conftest.er1
>conftest.err
9067 cat conftest.err
>&5
9068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069 (exit $ac_status); } && {
9070 test -z "$ac_c_werror_flag" ||
9071 test ! -s conftest.err
9072 } && test -s conftest.
$ac_objext; then
9075 echo "$as_me: failed program was:" >&5
9076 sed 's/^/| /' conftest.
$ac_ext >&5
9081 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9083 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9084 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9085 if test $ac_cv_c_const = no
; then
9087 cat >>confdefs.h
<<\_ACEOF
9093 { echo "$as_me:$LINENO: checking for void * support" >&5
9094 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
9095 if test "${emacs_cv_void_star+set}" = set; then
9096 echo $ECHO_N "(cached) $ECHO_C" >&6
9098 cat >conftest.
$ac_ext <<_ACEOF
9101 cat confdefs.h
>>conftest.
$ac_ext
9102 cat >>conftest.
$ac_ext <<_ACEOF
9103 /* end confdefs.h. */
9113 rm -f conftest.
$ac_objext
9114 if { (ac_try
="$ac_compile"
9116 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9117 *) ac_try_echo=$ac_try;;
9119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9120 (eval "$ac_compile") 2>conftest.er1
9122 grep -v '^ *+' conftest.er1 >conftest.err
9124 cat conftest.err >&5
9125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126 (exit $ac_status); } && {
9127 test -z "$ac_c_werror_flag" ||
9128 test ! -s conftest.err
9129 } && test -s conftest.$ac_objext; then
9130 emacs_cv_void_star=yes
9132 echo "$as_me: failed program was:" >&5
9133 sed 's/^/| /' conftest.$ac_ext >&5
9135 emacs_cv_void_star=no
9138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9140 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9141 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
9142 if test $emacs_cv_void_star = yes; then
9143 cat >>confdefs.h <<\_ACEOF
9144 #define POINTER_TYPE void
9148 cat >>confdefs.h <<\_ACEOF
9149 #define POINTER_TYPE char
9158 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9159 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
9160 set x ${MAKE-make}; ac_make=`echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9161 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9162 echo $ECHO_N "(cached) $ECHO_C" >&6
9164 cat >conftest.make <<\_ACEOF
9167 @echo '@@@%%%=$(MAKE)=@@@%%%'
9169 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9170 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
9172 eval ac_cv_prog_make_${ac_make}_set=yes;;
9174 eval ac_cv_prog_make_${ac_make}_set=no;;
9178 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9179 { echo "$as_me:$LINENO: result: yes" >&5
9180 echo "${ECHO_T}yes" >&6; }
9183 { echo "$as_me:$LINENO: result: no" >&5
9184 echo "${ECHO_T}no" >&6; }
9185 SET_MAKE="MAKE=${MAKE-make}"
9189 { echo "$as_me:$LINENO: checking for long file names" >&5
9190 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
9191 if test "${ac_cv_sys_long_file_names+set}" = set; then
9192 echo $ECHO_N "(cached) $ECHO_C" >&6
9194 ac_cv_sys_long_file_names=yes
9195 # Test for long file names in all the places we know might matter:
9196 # . the current directory, where building will happen
9197 # $prefix/lib where we will be installing things
9198 # $exec_prefix/lib likewise
9199 # $TMPDIR if set, where it might want to write temporary files
9200 # /tmp where it might want to write temporary files
9203 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9204 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9205 # in the usual case where exec_prefix is '${prefix}'.
9207 . | /* | ?:[\\/]*) ;; #(
9210 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9211 ac_xdir=$ac_dir/cf$$
9212 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9213 ac_tf1=$ac_xdir/conftest9012345
9214 ac_tf2=$ac_xdir/conftest9012346
9215 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9216 ac_cv_sys_long_file_names=no
9217 rm -f -r "$ac_xdir" 2>/dev/null
9218 test $ac_cv_sys_long_file_names = no && break
9221 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9222 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9223 if test $ac_cv_sys_long_file_names = yes; then
9225 cat >>confdefs.h <<\_ACEOF
9226 #define HAVE_LONG_FILE_NAMES 1
9232 #### Choose a window system.
9234 { echo "$as_me:$LINENO: checking for X" >&5
9235 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9238 # Check whether --with-x was given.
9239 if test "${with_x+set}" = set; then
9243 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9244 if test "x$with_x" = xno; then
9245 # The user explicitly disabled X.
9248 case $x_includes,$x_libraries in #(
9249 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9250 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9251 { (exit 1); exit 1; }; };; #(
9252 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9253 echo $ECHO_N "(cached) $ECHO_C" >&6
9255 # One or both of the vars are not set, and there is no cached value.
9256 ac_x_includes=no ac_x_libraries=no
9257 rm -f -r conftest.dir
9258 if mkdir conftest.dir; then
9260 cat >Imakefile <<'_ACEOF'
9262 @echo incroot='${INCROOT}'
9264 @echo usrlibdir='${USRLIBDIR}'
9266 @echo libdir='${LIBDIR}'
9268 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9269 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9270 for ac_var in incroot usrlibdir libdir; do
9271 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
9273 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9274 for ac_extension in a so sl; do
9275 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9276 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9277 ac_im_usrlibdir=$ac_im_libdir; break
9280 # Screen out bogus values from the imake configuration. They are
9281 # bogus both because they are the default anyway, and because
9282 # using them would break gcc on systems where it needs fixed includes.
9283 case $ac_im_incroot in
9284 /usr/include) ac_x_includes= ;;
9285 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9287 case $ac_im_usrlibdir in
9289 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9293 rm -f -r conftest.dir
9296 # Standard set of common directories for X headers.
9297 # Check X11 before X11Rn because it is often a symlink to the current release.
9309 /usr/local/X11/include
9310 /usr/local/X11R6/include
9311 /usr/local/X11R5/include
9312 /usr/local/X11R4/include
9314 /usr/local/include/X11
9315 /usr/local/include/X11R6
9316 /usr/local/include/X11R5
9317 /usr/local/include/X11R4
9321 /usr/XFree86/include/X11
9325 /usr/unsupported/include
9327 /usr/local/x11r5/include
9328 /usr/lpp/Xamples/include
9330 /usr/openwin/include
9331 /usr/openwin/share/include'
9333 if test "$ac_x_includes" = no; then
9334 # Guess where to find include files, by looking for Xlib.h.
9335 # First, try using that file with no special directory specified.
9336 cat >conftest.$ac_ext <<_ACEOF
9339 cat confdefs.h >>conftest.$ac_ext
9340 cat >>conftest.$ac_ext <<_ACEOF
9341 /* end confdefs.h. */
9342 #include <X11/Xlib.h>
9344 if { (ac_try="$ac_cpp conftest.$ac_ext"
9346 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9347 *) ac_try_echo
=$ac_try;;
9349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9350 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9352 grep -v '^ *+' conftest.er1
>conftest.err
9354 cat conftest.err
>&5
9355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356 (exit $ac_status); } >/dev
/null
&& {
9357 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9358 test ! -s conftest.err
9360 # We can compile using X headers with no special include directory.
9363 echo "$as_me: failed program was:" >&5
9364 sed 's/^/| /' conftest.
$ac_ext >&5
9366 for ac_dir
in $ac_x_header_dirs; do
9367 if test -r "$ac_dir/X11/Xlib.h"; then
9368 ac_x_includes
=$ac_dir
9374 rm -f conftest.err conftest.
$ac_ext
9375 fi # $ac_x_includes = no
9377 if test "$ac_x_libraries" = no
; then
9378 # Check for the libraries.
9379 # See if we find them without any special options.
9380 # Don't add to $LIBS permanently.
9383 cat >conftest.
$ac_ext <<_ACEOF
9386 cat confdefs.h
>>conftest.
$ac_ext
9387 cat >>conftest.
$ac_ext <<_ACEOF
9388 /* end confdefs.h. */
9389 #include <X11/Xlib.h>
9398 rm -f conftest.
$ac_objext conftest
$ac_exeext
9399 if { (ac_try
="$ac_link"
9401 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9402 *) ac_try_echo=$ac_try;;
9404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9405 (eval "$ac_link") 2>conftest.er1
9407 grep -v '^ *+' conftest.er1 >conftest.err
9409 cat conftest.err >&5
9410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9411 (exit $ac_status); } && {
9412 test -z "$ac_c_werror_flag" ||
9413 test ! -s conftest.err
9414 } && test -s conftest$ac_exeext &&
9415 $as_test_x conftest$ac_exeext; then
9417 # We can link X programs with no special library path.
9420 echo "$as_me: failed program was:" >&5
9421 sed 's/^/| /' conftest.$ac_ext >&5
9424 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
9426 # Don't even attempt the hair of trying to link an X program!
9427 for ac_extension in a so sl; do
9428 if test -r "$ac_dir/libX11.$ac_extension"; then
9429 ac_x_libraries=$ac_dir
9436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9437 conftest$ac_exeext conftest.$ac_ext
9438 fi # $ac_x_libraries = no
9440 case $ac_x_includes,$ac_x_libraries in #(
9442 # Didn't find X, or a directory has "'" in its name.
9443 ac_cv_have_x="have_x=no";; #(
9445 # Record where we found X for the cache.
9446 ac_cv_have_x="have_x=yes\
9447 ac_x_includes='$ac_x_includes'\
9448 ac_x_libraries='$ac_x_libraries'"
9454 eval "$ac_cv_have_x"
9457 if test "$have_x" != yes; then
9458 { echo "$as_me:$LINENO: result: $have_x" >&5
9459 echo "${ECHO_T}$have_x" >&6; }
9462 # If each of the values was on the command line, it overrides each guess.
9463 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9464 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9465 # Update the cache value to reflect the command line values.
9466 ac_cv_have_x="have_x=yes\
9467 ac_x_includes='$x_includes'\
9468 ac_x_libraries='$x_libraries'"
9469 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9470 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9473 if test "$no_x" = yes; then
9479 if test "${x_libraries}" != NONE; then
9480 if test -n "${x_libraries}"; then
9481 LD_SWITCH_X_SITE=-L`echo ${x_libraries} |
sed -e "s/:/ -L/g"`
9482 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} |
sed -e "s/:/ -R/g"`
9484 x_default_search_path=""
9485 x_search_path=${x_libraries}
9486 if test -z "${x_search_path}"; then
9487 x_search_path=/usr/lib
9489 for x_library in `echo ${x_search_path}: | \
9490 sed -e "s/:/ /g" -e p
-e "s:/lib[^ /]* :/share :g"`; do
9492 ${x_library}/X11/%L/%T/%N%C%S:\
9493 ${x_library}/X11/%l/%T/%N%C%S:\
9494 ${x_library}/X11/%T/%N%C%S:\
9495 ${x_library}/X11/%L/%T/%N%S:\
9496 ${x_library}/X11/%l/%T/%N%S:\
9497 ${x_library}/X11/%T/%N%S"
9498 if test x"${x_default_search_path}" = x; then
9499 x_default_search_path=${x_search_path}
9501 x_default_search_path="${x_search_path}:${x_default_search_path}"
9505 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9506 C_SWITCH_X_SITE=-I`echo ${x_includes} |
sed -e "s/:/ -I/g"`
9509 if test x"${x_includes}" = x; then
9510 bitmapdir=/usr/include/X11/bitmaps
9512 # accumulate include directories that have X11 bitmap subdirectories
9514 for bmd in `echo ${x_includes} |
sed -e "s/:/ /g"`; do
9515 if test -d "${bmd}/X11/bitmaps"; then
9516 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9518 if test -d "${bmd}/bitmaps"; then
9519 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9522 if test ${bmd_acc} != "dummyval"; then
9523 bitmapdir=`echo ${bmd_acc} |
sed -e "s/^dummyval://"`
9528 if test "${with_carbon}" != no; then
9529 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9530 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9531 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9532 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9533 echo $ECHO_N "(cached) $ECHO_C" >&6
9535 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9536 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9538 # Is the header compilable?
9539 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9540 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9541 cat >conftest.$ac_ext <<_ACEOF
9544 cat confdefs.h >>conftest.$ac_ext
9545 cat >>conftest.$ac_ext <<_ACEOF
9546 /* end confdefs.h. */
9547 $ac_includes_default
9548 #include <Carbon/Carbon.h>
9550 rm -f conftest.$ac_objext
9551 if { (ac_try="$ac_compile"
9553 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9554 *) ac_try_echo
=$ac_try;;
9556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9557 (eval "$ac_compile") 2>conftest.er1
9559 grep -v '^ *+' conftest.er1
>conftest.err
9561 cat conftest.err
>&5
9562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9563 (exit $ac_status); } && {
9564 test -z "$ac_c_werror_flag" ||
9565 test ! -s conftest.err
9566 } && test -s conftest.
$ac_objext; then
9567 ac_header_compiler
=yes
9569 echo "$as_me: failed program was:" >&5
9570 sed 's/^/| /' conftest.
$ac_ext >&5
9572 ac_header_compiler
=no
9575 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9576 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9577 echo "${ECHO_T}$ac_header_compiler" >&6; }
9579 # Is the header present?
9580 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9581 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9582 cat >conftest.
$ac_ext <<_ACEOF
9585 cat confdefs.h
>>conftest.
$ac_ext
9586 cat >>conftest.
$ac_ext <<_ACEOF
9587 /* end confdefs.h. */
9588 #include <Carbon/Carbon.h>
9590 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9592 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9593 *) ac_try_echo=$ac_try;;
9595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9596 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9598 grep -v '^ *+' conftest.er1 >conftest.err
9600 cat conftest.err >&5
9601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602 (exit $ac_status); } >/dev/null && {
9603 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9604 test ! -s conftest.err
9606 ac_header_preproc=yes
9608 echo "$as_me: failed program was:" >&5
9609 sed 's/^/| /' conftest.$ac_ext >&5
9611 ac_header_preproc=no
9614 rm -f conftest.err conftest.$ac_ext
9615 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9616 echo "${ECHO_T}$ac_header_preproc" >&6; }
9618 # So? What about this header?
9619 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9621 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9622 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9623 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9624 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9625 ac_header_preproc=yes
9628 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9629 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9630 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9631 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9632 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9633 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9634 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9635 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9636 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9637 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9638 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9639 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9643 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9644 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9645 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9646 echo $ECHO_N "(cached) $ECHO_C" >&6
9648 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9650 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9651 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9654 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9660 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9661 if test "${with_carbon+set}" != set \
9662 && test "${carbon_appdir_x+set}" != set; then
9663 for var in with_x with_x_toolkit with_gtk with_xim \
9664 with_xpm with_jpeg with_tiff with_gif with_png; do
9665 if eval test \"\${$var+set}\" = set; then
9672 if test "${HAVE_CARBON}" = yes; then
9676 case "${window_system}" in
9680 case "${with_x_toolkit}" in
9681 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9682 motif ) USE_X_TOOLKIT=MOTIF ;;
9684 USE_X_TOOLKIT=none ;;
9685 no ) USE_X_TOOLKIT=none ;;
9687 if test x"$with_gtk" = xyes; then
9702 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9703 # Extract the first word of "X", so it can be a program name with args.
9704 set dummy X; ac_word=$2
9705 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9707 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9708 echo $ECHO_N "(cached) $ECHO_C" >&6
9710 if test -n "$HAVE_XSERVER"; then
9711 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9717 test -z "$as_dir" && as_dir=.
9718 for ac_exec_ext in '' $ac_executable_extensions; do
9719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9720 ac_cv_prog_HAVE_XSERVER="true"
9721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9728 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9731 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9732 if test -n "$HAVE_XSERVER"; then
9733 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9734 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9736 { echo "$as_me:$LINENO: result: no" >&5
9737 echo "${ECHO_T}no" >&6; }
9741 if test "$HAVE_XSERVER" = true ||
9742 test -n "$DISPLAY" ||
9743 test "`echo /usr
/lib
/libX11.
*`" != "/usr/lib/libX11.*"; then
9744 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9745 were found. You should install the relevant development files for X
9746 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9747 sure you have development files for image handling, i.e.
9748 tiff, gif, jpeg, png and xpm.
9749 If you are sure you want Emacs compiled without X window support, pass
9752 echo "$as_me: error: You seem to be running X, but no X development libraries
9753 were found. You should install the relevant development files for X
9754 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9755 sure you have development files for image handling, i.e.
9756 tiff, gif, jpeg, png and xpm.
9757 If you are sure you want Emacs compiled without X window support, pass
9759 to configure." >&2;}
9760 { (exit 1); exit 1; }; }
9764 ### If we're using X11, we should use the X menu package.
9767 yes ) HAVE_MENUS=yes ;;
9770 if test "${opsys}" = "hpux9"; then
9771 case "${x_libraries}" in
9773 opsysfile="s/hpux9-x11r4.h"
9778 if test "${opsys}" = "hpux9shr"; then
9779 case "${x_libraries}" in
9781 opsysfile="s/hpux9shxr4.h"
9786 ### Compute the unexec source name from the object name.
9787 UNEXEC_SRC="`echo ${unexec} |
sed 's/\.o/.c/'`"
9789 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9790 # Assume not, until told otherwise.
9793 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9794 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9795 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9796 echo $ECHO_N "(cached) $ECHO_C" >&6
9798 cat >conftest.$ac_ext <<_ACEOF
9801 cat confdefs.h >>conftest.$ac_ext
9802 cat >>conftest.$ac_ext <<_ACEOF
9803 /* end confdefs.h. */
9804 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9805 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9806 #define malloc_get_state innocuous_malloc_get_state
9808 /* System header to define __stub macros and hopefully few prototypes,
9809 which can conflict with char malloc_get_state (); below.
9810 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9811 <limits.h> exists even on freestanding compilers. */
9814 # include <limits.h>
9816 # include <assert.h>
9819 #undef malloc_get_state
9821 /* Override any GCC internal prototype to avoid an error.
9822 Use char because int might match the return type of a GCC
9823 builtin and then its argument prototype would still apply. */
9827 char malloc_get_state ();
9828 /* The GNU C library defines this for functions which it implements
9829 to always fail with ENOSYS. Some functions are actually named
9830 something starting with __ and the normal name is an alias. */
9831 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9838 return malloc_get_state ();
9843 rm -f conftest.$ac_objext conftest$ac_exeext
9844 if { (ac_try="$ac_link"
9846 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9847 *) ac_try_echo
=$ac_try;;
9849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9850 (eval "$ac_link") 2>conftest.er1
9852 grep -v '^ *+' conftest.er1
>conftest.err
9854 cat conftest.err
>&5
9855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856 (exit $ac_status); } && {
9857 test -z "$ac_c_werror_flag" ||
9858 test ! -s conftest.err
9859 } && test -s conftest
$ac_exeext &&
9860 $as_test_x conftest
$ac_exeext; then
9861 ac_cv_func_malloc_get_state
=yes
9863 echo "$as_me: failed program was:" >&5
9864 sed 's/^/| /' conftest.
$ac_ext >&5
9866 ac_cv_func_malloc_get_state
=no
9869 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9870 conftest
$ac_exeext conftest.
$ac_ext
9872 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9873 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9874 if test $ac_cv_func_malloc_get_state = yes; then
9880 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9881 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9882 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9883 echo $ECHO_N "(cached) $ECHO_C" >&6
9885 cat >conftest.
$ac_ext <<_ACEOF
9888 cat confdefs.h
>>conftest.
$ac_ext
9889 cat >>conftest.
$ac_ext <<_ACEOF
9890 /* end confdefs.h. */
9891 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9892 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9893 #define malloc_set_state innocuous_malloc_set_state
9895 /* System header to define __stub macros and hopefully few prototypes,
9896 which can conflict with char malloc_set_state (); below.
9897 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9898 <limits.h> exists even on freestanding compilers. */
9901 # include <limits.h>
9903 # include <assert.h>
9906 #undef malloc_set_state
9908 /* Override any GCC internal prototype to avoid an error.
9909 Use char because int might match the return type of a GCC
9910 builtin and then its argument prototype would still apply. */
9914 char malloc_set_state ();
9915 /* The GNU C library defines this for functions which it implements
9916 to always fail with ENOSYS. Some functions are actually named
9917 something starting with __ and the normal name is an alias. */
9918 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9925 return malloc_set_state ();
9930 rm -f conftest.
$ac_objext conftest
$ac_exeext
9931 if { (ac_try
="$ac_link"
9933 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9934 *) ac_try_echo=$ac_try;;
9936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9937 (eval "$ac_link") 2>conftest.er1
9939 grep -v '^ *+' conftest.er1 >conftest.err
9941 cat conftest.err >&5
9942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9943 (exit $ac_status); } && {
9944 test -z "$ac_c_werror_flag" ||
9945 test ! -s conftest.err
9946 } && test -s conftest$ac_exeext &&
9947 $as_test_x conftest$ac_exeext; then
9948 ac_cv_func_malloc_set_state=yes
9950 echo "$as_me: failed program was:" >&5
9951 sed 's/^/| /' conftest.$ac_ext >&5
9953 ac_cv_func_malloc_set_state=no
9956 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9957 conftest$ac_exeext conftest.$ac_ext
9959 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9960 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9961 if test $ac_cv_func_malloc_set_state = yes; then
9967 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9968 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9969 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9970 echo $ECHO_N "(cached) $ECHO_C" >&6
9972 cat >conftest.$ac_ext <<_ACEOF
9975 cat confdefs.h >>conftest.$ac_ext
9976 cat >>conftest.$ac_ext <<_ACEOF
9977 /* end confdefs.h. */
9978 extern void (* __after_morecore_hook)();
9982 __after_morecore_hook = 0
9987 rm -f conftest.$ac_objext conftest$ac_exeext
9988 if { (ac_try="$ac_link"
9990 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9991 *) ac_try_echo
=$ac_try;;
9993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9994 (eval "$ac_link") 2>conftest.er1
9996 grep -v '^ *+' conftest.er1
>conftest.err
9998 cat conftest.err
>&5
9999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000 (exit $ac_status); } && {
10001 test -z "$ac_c_werror_flag" ||
10002 test ! -s conftest.err
10003 } && test -s conftest
$ac_exeext &&
10004 $as_test_x conftest
$ac_exeext; then
10005 emacs_cv_var___after_morecore_hook
=yes
10007 echo "$as_me: failed program was:" >&5
10008 sed 's/^/| /' conftest.
$ac_ext >&5
10010 emacs_cv_var___after_morecore_hook
=no
10013 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10014 conftest
$ac_exeext conftest.
$ac_ext
10016 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
10017 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
10018 if test $emacs_cv_var___after_morecore_hook = no
; then
10021 if test "${system_malloc}" = "yes"; then
10023 GNU_MALLOC_reason
="
10024 (The GNU allocators don't work with this system configuration.)"
10026 if test "$doug_lea_malloc" = "yes" ; then
10027 if test "$GNU_MALLOC" = yes ; then
10028 GNU_MALLOC_reason
="
10029 (Using Doug Lea's new malloc from the GNU C Library.)"
10032 cat >>confdefs.h
<<\_ACEOF
10033 #define DOUG_LEA_MALLOC 1
10038 if test x
"${REL_ALLOC}" = x
; then
10039 REL_ALLOC
=${GNU_MALLOC}
10045 for ac_header
in stdlib.h unistd.h
10047 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10048 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10049 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10050 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10051 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10052 echo $ECHO_N "(cached) $ECHO_C" >&6
10054 ac_res
=`eval echo '${'$as_ac_Header'}'`
10055 { echo "$as_me:$LINENO: result: $ac_res" >&5
10056 echo "${ECHO_T}$ac_res" >&6; }
10058 # Is the header compilable?
10059 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10060 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10061 cat >conftest.
$ac_ext <<_ACEOF
10064 cat confdefs.h
>>conftest.
$ac_ext
10065 cat >>conftest.
$ac_ext <<_ACEOF
10066 /* end confdefs.h. */
10067 $ac_includes_default
10068 #include <$ac_header>
10070 rm -f conftest.
$ac_objext
10071 if { (ac_try
="$ac_compile"
10072 case "(($ac_try" in
10073 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10074 *) ac_try_echo=$ac_try;;
10076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10077 (eval "$ac_compile") 2>conftest.er1
10079 grep -v '^ *+' conftest.er1 >conftest.err
10081 cat conftest.err >&5
10082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10083 (exit $ac_status); } && {
10084 test -z "$ac_c_werror_flag" ||
10085 test ! -s conftest.err
10086 } && test -s conftest.$ac_objext; then
10087 ac_header_compiler=yes
10089 echo "$as_me: failed program was:" >&5
10090 sed 's/^/| /' conftest.$ac_ext >&5
10092 ac_header_compiler=no
10095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10096 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10097 echo "${ECHO_T}$ac_header_compiler" >&6; }
10099 # Is the header present?
10100 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10101 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10102 cat >conftest.$ac_ext <<_ACEOF
10105 cat confdefs.h >>conftest.$ac_ext
10106 cat >>conftest.$ac_ext <<_ACEOF
10107 /* end confdefs.h. */
10108 #include <$ac_header>
10110 if { (ac_try="$ac_cpp conftest.$ac_ext"
10111 case "(($ac_try" in
10112 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10113 *) ac_try_echo
=$ac_try;;
10115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10116 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10118 grep -v '^ *+' conftest.er1
>conftest.err
10120 cat conftest.err
>&5
10121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122 (exit $ac_status); } >/dev
/null
&& {
10123 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10124 test ! -s conftest.err
10126 ac_header_preproc
=yes
10128 echo "$as_me: failed program was:" >&5
10129 sed 's/^/| /' conftest.
$ac_ext >&5
10131 ac_header_preproc
=no
10134 rm -f conftest.err conftest.
$ac_ext
10135 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10136 echo "${ECHO_T}$ac_header_preproc" >&6; }
10138 # So? What about this header?
10139 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10141 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10142 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10143 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10144 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10145 ac_header_preproc
=yes
10148 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10149 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10150 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10151 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10152 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10153 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10154 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10155 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10156 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10157 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10158 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10159 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10163 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10164 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10165 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10166 echo $ECHO_N "(cached) $ECHO_C" >&6
10168 eval "$as_ac_Header=\$ac_header_preproc"
10170 ac_res
=`eval echo '${'$as_ac_Header'}'`
10171 { echo "$as_me:$LINENO: result: $ac_res" >&5
10172 echo "${ECHO_T}$ac_res" >&6; }
10175 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10176 cat >>confdefs.h
<<_ACEOF
10177 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10185 for ac_func
in getpagesize
10187 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10188 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10189 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10190 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10191 echo $ECHO_N "(cached) $ECHO_C" >&6
10193 cat >conftest.
$ac_ext <<_ACEOF
10196 cat confdefs.h
>>conftest.
$ac_ext
10197 cat >>conftest.
$ac_ext <<_ACEOF
10198 /* end confdefs.h. */
10199 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10200 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10201 #define $ac_func innocuous_$ac_func
10203 /* System header to define __stub macros and hopefully few prototypes,
10204 which can conflict with char $ac_func (); below.
10205 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10206 <limits.h> exists even on freestanding compilers. */
10209 # include <limits.h>
10211 # include <assert.h>
10216 /* Override any GCC internal prototype to avoid an error.
10217 Use char because int might match the return type of a GCC
10218 builtin and then its argument prototype would still apply. */
10223 /* The GNU C library defines this for functions which it implements
10224 to always fail with ENOSYS. Some functions are actually named
10225 something starting with __ and the normal name is an alias. */
10226 #if defined __stub_$ac_func || defined __stub___$ac_func
10233 return $ac_func ();
10238 rm -f conftest.
$ac_objext conftest
$ac_exeext
10239 if { (ac_try
="$ac_link"
10240 case "(($ac_try" in
10241 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10242 *) ac_try_echo=$ac_try;;
10244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10245 (eval "$ac_link") 2>conftest.er1
10247 grep -v '^ *+' conftest.er1 >conftest.err
10249 cat conftest.err >&5
10250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10251 (exit $ac_status); } && {
10252 test -z "$ac_c_werror_flag" ||
10253 test ! -s conftest.err
10254 } && test -s conftest$ac_exeext &&
10255 $as_test_x conftest$ac_exeext; then
10256 eval "$as_ac_var=yes"
10258 echo "$as_me: failed program was:" >&5
10259 sed 's/^/| /' conftest.$ac_ext >&5
10261 eval "$as_ac_var=no"
10264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10265 conftest$ac_exeext conftest.$ac_ext
10267 ac_res=`eval echo '${'$as_ac_var'}'`
10268 { echo "$as_me:$LINENO: result: $ac_res" >&5
10269 echo "${ECHO_T}$ac_res" >&6; }
10270 if test `eval echo '${'$as_ac_var'}'` = yes; then
10271 cat >>confdefs.h <<_ACEOF
10272 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10278 { echo "$as_me:$LINENO: checking for working mmap" >&5
10279 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10280 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10281 echo $ECHO_N "(cached) $ECHO_C" >&6
10283 if test "$cross_compiling" = yes; then
10284 ac_cv_func_mmap_fixed_mapped=no
10286 cat >conftest.$ac_ext <<_ACEOF
10289 cat confdefs.h >>conftest.$ac_ext
10290 cat >>conftest.$ac_ext <<_ACEOF
10291 /* end confdefs.h. */
10292 $ac_includes_default
10293 /* malloc might have been renamed as rpl_malloc. */
10296 /* Thanks to Mike Haertel and Jim Avera for this test.
10297 Here is a matrix of mmap possibilities:
10298 mmap private not fixed
10299 mmap private fixed at somewhere currently unmapped
10300 mmap private fixed at somewhere already mapped
10301 mmap shared not fixed
10302 mmap shared fixed at somewhere currently unmapped
10303 mmap shared fixed at somewhere already mapped
10304 For private mappings, we should verify that changes cannot be read()
10305 back from the file, nor mmap's back from the file at a different
10306 address. (There have been systems where private was not correctly
10307 implemented like the infamous i386 svr4.0, and systems where the
10308 VM page cache was not coherent with the file system buffer cache
10309 like early versions of FreeBSD and possibly contemporary NetBSD.)
10310 For shared mappings, we should conversely verify that changes get
10311 propagated back to all the places they're supposed to be.
10313 Grep wants private fixed already mapped.
10314 The main things grep needs to know about mmap are:
10315 * does it exist and is it safe to write into the mmap'd area
10316 * how to use it (BSD variants) */
10319 #include <sys/mman.h>
10321 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10325 /* This mess was copied from the GNU getpagesize.h. */
10326 #ifndef HAVE_GETPAGESIZE
10327 /* Assume that all systems that can run configure have sys/param.h. */
10328 # ifndef HAVE_SYS_PARAM_H
10329 # define HAVE_SYS_PARAM_H 1
10332 # ifdef _SC_PAGESIZE
10333 # define getpagesize() sysconf(_SC_PAGESIZE)
10334 # else /* no _SC_PAGESIZE */
10335 # ifdef HAVE_SYS_PARAM_H
10336 # include <sys/param.h>
10337 # ifdef EXEC_PAGESIZE
10338 # define getpagesize() EXEC_PAGESIZE
10339 # else /* no EXEC_PAGESIZE */
10341 # define getpagesize() NBPG * CLSIZE
10344 # endif /* no CLSIZE */
10345 # else /* no NBPG */
10347 # define getpagesize() NBPC
10348 # else /* no NBPC */
10350 # define getpagesize() PAGESIZE
10351 # endif /* PAGESIZE */
10352 # endif /* no NBPC */
10353 # endif /* no NBPG */
10354 # endif /* no EXEC_PAGESIZE */
10355 # else /* no HAVE_SYS_PARAM_H */
10356 # define getpagesize() 8192 /* punt totally */
10357 # endif /* no HAVE_SYS_PARAM_H */
10358 # endif /* no _SC_PAGESIZE */
10360 #endif /* no HAVE_GETPAGESIZE */
10365 char *data, *data2, *data3;
10369 pagesize = getpagesize ();
10371 /* First, make a file with some known garbage in it. */
10372 data = (char *) malloc (pagesize);
10375 for (i = 0; i < pagesize; ++i)
10376 *(data + i) = rand ();
10378 fd = creat ("conftest.mmap", 0600);
10381 if (write (fd, data, pagesize) != pagesize)
10385 /* Next, try to mmap the file at a fixed address which already has
10386 something else allocated at it. If we can, also make sure that
10387 we see the same garbage. */
10388 fd = open ("conftest.mmap", O_RDWR);
10391 data2 = (char *) malloc (2 * pagesize);
10394 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10395 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10396 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10398 for (i = 0; i < pagesize; ++i)
10399 if (*(data + i) != *(data2 + i))
10402 /* Finally, make sure that changes to the mapped area do not
10403 percolate back to the file as seen by read(). (This is a bug on
10404 some variants of i386 svr4.0.) */
10405 for (i = 0; i < pagesize; ++i)
10406 *(data2 + i) = *(data2 + i) + 1;
10407 data3 = (char *) malloc (pagesize);
10410 if (read (fd, data3, pagesize) != pagesize)
10412 for (i = 0; i < pagesize; ++i)
10413 if (*(data + i) != *(data3 + i))
10419 rm -f conftest$ac_exeext
10420 if { (ac_try="$ac_link"
10421 case "(($ac_try" in
10422 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10423 *) ac_try_echo
=$ac_try;;
10425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10426 (eval "$ac_link") 2>&5
10428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10429 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10430 { (case "(($ac_try" in
10431 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10432 *) ac_try_echo=$ac_try;;
10434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10435 (eval "$ac_try") 2>&5
10437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10438 (exit $ac_status); }; }; then
10439 ac_cv_func_mmap_fixed_mapped=yes
10441 echo "$as_me: program exited with status $ac_status" >&5
10442 echo "$as_me: failed program was:" >&5
10443 sed 's/^/| /' conftest.$ac_ext >&5
10445 ( exit $ac_status )
10446 ac_cv_func_mmap_fixed_mapped=no
10448 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10453 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10454 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10455 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10457 cat >>confdefs.h <<\_ACEOF
10458 #define HAVE_MMAP 1
10462 rm -f conftest.mmap
10464 if test $use_mmap_for_buffers = yes; then
10468 LIBS="$libsrc_libs $LIBS"
10471 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10472 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10473 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10474 echo $ECHO_N "(cached) $ECHO_C" >&6
10476 ac_check_lib_save_LIBS=$LIBS
10477 LIBS="-ldnet $LIBS"
10478 cat >conftest.$ac_ext <<_ACEOF
10481 cat confdefs.h >>conftest.$ac_ext
10482 cat >>conftest.$ac_ext <<_ACEOF
10483 /* end confdefs.h. */
10485 /* Override any GCC internal prototype to avoid an error.
10486 Use char because int might match the return type of a GCC
10487 builtin and then its argument prototype would still apply. */
10495 return dnet_ntoa ();
10500 rm -f conftest.$ac_objext conftest$ac_exeext
10501 if { (ac_try="$ac_link"
10502 case "(($ac_try" in
10503 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10504 *) ac_try_echo
=$ac_try;;
10506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10507 (eval "$ac_link") 2>conftest.er1
10509 grep -v '^ *+' conftest.er1
>conftest.err
10511 cat conftest.err
>&5
10512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10513 (exit $ac_status); } && {
10514 test -z "$ac_c_werror_flag" ||
10515 test ! -s conftest.err
10516 } && test -s conftest
$ac_exeext &&
10517 $as_test_x conftest
$ac_exeext; then
10518 ac_cv_lib_dnet_dnet_ntoa
=yes
10520 echo "$as_me: failed program was:" >&5
10521 sed 's/^/| /' conftest.
$ac_ext >&5
10523 ac_cv_lib_dnet_dnet_ntoa
=no
10526 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10527 conftest
$ac_exeext conftest.
$ac_ext
10528 LIBS
=$ac_check_lib_save_LIBS
10530 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10531 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10532 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10533 cat >>confdefs.h
<<_ACEOF
10534 #define HAVE_LIBDNET 1
10537 LIBS
="-ldnet $LIBS"
10542 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10543 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10544 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10545 echo $ECHO_N "(cached) $ECHO_C" >&6
10547 ac_check_lib_save_LIBS
=$LIBS
10548 LIBS
="-lXbsd $LIBS"
10549 cat >conftest.
$ac_ext <<_ACEOF
10552 cat confdefs.h
>>conftest.
$ac_ext
10553 cat >>conftest.
$ac_ext <<_ACEOF
10554 /* end confdefs.h. */
10565 rm -f conftest.
$ac_objext conftest
$ac_exeext
10566 if { (ac_try
="$ac_link"
10567 case "(($ac_try" in
10568 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10569 *) ac_try_echo=$ac_try;;
10571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10572 (eval "$ac_link") 2>conftest.er1
10574 grep -v '^ *+' conftest.er1 >conftest.err
10576 cat conftest.err >&5
10577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10578 (exit $ac_status); } && {
10579 test -z "$ac_c_werror_flag" ||
10580 test ! -s conftest.err
10581 } && test -s conftest$ac_exeext &&
10582 $as_test_x conftest$ac_exeext; then
10583 ac_cv_lib_Xbsd_main=yes
10585 echo "$as_me: failed program was:" >&5
10586 sed 's/^/| /' conftest.$ac_ext >&5
10588 ac_cv_lib_Xbsd_main=no
10591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10592 conftest$ac_exeext conftest.$ac_ext
10593 LIBS=$ac_check_lib_save_LIBS
10595 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10596 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10597 if test $ac_cv_lib_Xbsd_main = yes; then
10598 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10603 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10604 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10605 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10606 echo $ECHO_N "(cached) $ECHO_C" >&6
10608 ac_check_lib_save_LIBS=$LIBS
10609 LIBS="-lpthreads $LIBS"
10610 cat >conftest.$ac_ext <<_ACEOF
10613 cat confdefs.h >>conftest.$ac_ext
10614 cat >>conftest.$ac_ext <<_ACEOF
10615 /* end confdefs.h. */
10617 /* Override any GCC internal prototype to avoid an error.
10618 Use char because int might match the return type of a GCC
10619 builtin and then its argument prototype would still apply. */
10627 return cma_open ();
10632 rm -f conftest.$ac_objext conftest$ac_exeext
10633 if { (ac_try="$ac_link"
10634 case "(($ac_try" in
10635 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10636 *) ac_try_echo
=$ac_try;;
10638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10639 (eval "$ac_link") 2>conftest.er1
10641 grep -v '^ *+' conftest.er1
>conftest.err
10643 cat conftest.err
>&5
10644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10645 (exit $ac_status); } && {
10646 test -z "$ac_c_werror_flag" ||
10647 test ! -s conftest.err
10648 } && test -s conftest
$ac_exeext &&
10649 $as_test_x conftest
$ac_exeext; then
10650 ac_cv_lib_pthreads_cma_open
=yes
10652 echo "$as_me: failed program was:" >&5
10653 sed 's/^/| /' conftest.
$ac_ext >&5
10655 ac_cv_lib_pthreads_cma_open
=no
10658 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10659 conftest
$ac_exeext conftest.
$ac_ext
10660 LIBS
=$ac_check_lib_save_LIBS
10662 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10663 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10664 if test $ac_cv_lib_pthreads_cma_open = yes; then
10665 cat >>confdefs.h
<<_ACEOF
10666 #define HAVE_LIBPTHREADS 1
10669 LIBS
="-lpthreads $LIBS"
10674 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10675 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10676 if test -d /usr
/X386
/include
; then
10678 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10682 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10683 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10688 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10689 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10690 if test "${gdb_cv_bigtoc+set}" = set; then
10691 echo $ECHO_N "(cached) $ECHO_C" >&6
10695 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10696 *) gdb_cv_bigtoc
=-bbigtoc ;;
10699 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10700 cat >conftest.
$ac_ext <<_ACEOF
10703 cat confdefs.h
>>conftest.
$ac_ext
10704 cat >>conftest.
$ac_ext <<_ACEOF
10705 /* end confdefs.h. */
10715 rm -f conftest.
$ac_objext conftest
$ac_exeext
10716 if { (ac_try
="$ac_link"
10717 case "(($ac_try" in
10718 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10719 *) ac_try_echo=$ac_try;;
10721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10722 (eval "$ac_link") 2>conftest.er1
10724 grep -v '^ *+' conftest.er1 >conftest.err
10726 cat conftest.err >&5
10727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10728 (exit $ac_status); } && {
10729 test -z "$ac_c_werror_flag" ||
10730 test ! -s conftest.err
10731 } && test -s conftest$ac_exeext &&
10732 $as_test_x conftest$ac_exeext; then
10735 echo "$as_me: failed program was:" >&5
10736 sed 's/^/| /' conftest.$ac_ext >&5
10741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10742 conftest$ac_exeext conftest.$ac_ext
10745 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10746 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10750 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10751 # used for the tests that follow. We set them back to REAL_CFLAGS and
10752 # REAL_CPPFLAGS later on.
10754 REAL_CPPFLAGS="$CPPFLAGS"
10756 if test "${HAVE_X11}" = "yes"; then
10757 DEFS="$C_SWITCH_X_SITE $DEFS"
10758 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10760 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10761 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10763 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10764 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10765 # but it's more convenient here to set LD_RUN_PATH
10766 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10767 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10768 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10772 if test "${opsys}" = "gnu-linux"; then
10773 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10774 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10775 cat >conftest.$ac_ext <<_ACEOF
10778 cat confdefs.h >>conftest.$ac_ext
10779 cat >>conftest.$ac_ext <<_ACEOF
10780 /* end confdefs.h. */
10785 XOpenDisplay ("foo");
10790 rm -f conftest.$ac_objext conftest$ac_exeext
10791 if { (ac_try="$ac_link"
10792 case "(($ac_try" in
10793 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10794 *) ac_try_echo
=$ac_try;;
10796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10797 (eval "$ac_link") 2>conftest.er1
10799 grep -v '^ *+' conftest.er1
>conftest.err
10801 cat conftest.err
>&5
10802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10803 (exit $ac_status); } && {
10804 test -z "$ac_c_werror_flag" ||
10805 test ! -s conftest.err
10806 } && test -s conftest
$ac_exeext &&
10807 $as_test_x conftest
$ac_exeext; then
10808 xlinux_first_failure
=no
10810 echo "$as_me: failed program was:" >&5
10811 sed 's/^/| /' conftest.
$ac_ext >&5
10813 xlinux_first_failure
=yes
10816 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10817 conftest
$ac_exeext conftest.
$ac_ext
10818 if test "${xlinux_first_failure}" = "yes"; then
10819 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10820 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10821 OLD_CPPFLAGS
="$CPPFLAGS"
10823 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10824 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10825 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10826 LIBS
="$LIBS -b i486-linuxaout"
10827 cat >conftest.
$ac_ext <<_ACEOF
10830 cat confdefs.h
>>conftest.
$ac_ext
10831 cat >>conftest.
$ac_ext <<_ACEOF
10832 /* end confdefs.h. */
10837 XOpenDisplay ("foo");
10842 rm -f conftest.
$ac_objext conftest
$ac_exeext
10843 if { (ac_try
="$ac_link"
10844 case "(($ac_try" in
10845 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10846 *) ac_try_echo=$ac_try;;
10848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10849 (eval "$ac_link") 2>conftest.er1
10851 grep -v '^ *+' conftest.er1 >conftest.err
10853 cat conftest.err >&5
10854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10855 (exit $ac_status); } && {
10856 test -z "$ac_c_werror_flag" ||
10857 test ! -s conftest.err
10858 } && test -s conftest$ac_exeext &&
10859 $as_test_x conftest$ac_exeext; then
10860 xlinux_second_failure=no
10862 echo "$as_me: failed program was:" >&5
10863 sed 's/^/| /' conftest.$ac_ext >&5
10865 xlinux_second_failure=yes
10868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10869 conftest$ac_exeext conftest.$ac_ext
10870 if test "${xlinux_second_failure}" = "yes"; then
10871 # If we get the same failure with -b, there is no use adding -b.
10872 # So take it out. This plays safe.
10873 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10874 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10875 CPPFLAGS="$OLD_CPPFLAGS"
10877 { echo "$as_me:$LINENO: result: no" >&5
10878 echo "${ECHO_T}no" >&6; }
10880 { echo "$as_me:$LINENO: result: yes" >&5
10881 echo "${ECHO_T}yes" >&6; }
10884 { echo "$as_me:$LINENO: result: no" >&5
10885 echo "${ECHO_T}no" >&6; }
10889 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10890 # header files included from there.
10891 { echo "$as_me:$LINENO: checking for Xkb" >&5
10892 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10893 cat >conftest.$ac_ext <<_ACEOF
10896 cat confdefs.h >>conftest.$ac_ext
10897 cat >>conftest.$ac_ext <<_ACEOF
10898 /* end confdefs.h. */
10899 #include <X11/Xlib.h>
10900 #include <X11/XKBlib.h>
10904 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10909 rm -f conftest.$ac_objext conftest$ac_exeext
10910 if { (ac_try="$ac_link"
10911 case "(($ac_try" in
10912 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10913 *) ac_try_echo
=$ac_try;;
10915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10916 (eval "$ac_link") 2>conftest.er1
10918 grep -v '^ *+' conftest.er1
>conftest.err
10920 cat conftest.err
>&5
10921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922 (exit $ac_status); } && {
10923 test -z "$ac_c_werror_flag" ||
10924 test ! -s conftest.err
10925 } && test -s conftest
$ac_exeext &&
10926 $as_test_x conftest
$ac_exeext; then
10929 echo "$as_me: failed program was:" >&5
10930 sed 's/^/| /' conftest.
$ac_ext >&5
10935 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10936 conftest
$ac_exeext conftest.
$ac_ext
10937 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10938 echo "${ECHO_T}$emacs_xkb" >&6; }
10939 if test $emacs_xkb = yes; then
10941 cat >>confdefs.h
<<\_ACEOF
10942 #define HAVE_XKBGETKEYBOARD 1
10951 for ac_func
in XrmSetDatabase XScreenResourceString \
10952 XScreenNumberOfScreen XSetWMProtocols
10954 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10955 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10956 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10957 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10958 echo $ECHO_N "(cached) $ECHO_C" >&6
10960 cat >conftest.
$ac_ext <<_ACEOF
10963 cat confdefs.h
>>conftest.
$ac_ext
10964 cat >>conftest.
$ac_ext <<_ACEOF
10965 /* end confdefs.h. */
10966 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10967 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10968 #define $ac_func innocuous_$ac_func
10970 /* System header to define __stub macros and hopefully few prototypes,
10971 which can conflict with char $ac_func (); below.
10972 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10973 <limits.h> exists even on freestanding compilers. */
10976 # include <limits.h>
10978 # include <assert.h>
10983 /* Override any GCC internal prototype to avoid an error.
10984 Use char because int might match the return type of a GCC
10985 builtin and then its argument prototype would still apply. */
10990 /* The GNU C library defines this for functions which it implements
10991 to always fail with ENOSYS. Some functions are actually named
10992 something starting with __ and the normal name is an alias. */
10993 #if defined __stub_$ac_func || defined __stub___$ac_func
11000 return $ac_func ();
11005 rm -f conftest.
$ac_objext conftest
$ac_exeext
11006 if { (ac_try
="$ac_link"
11007 case "(($ac_try" in
11008 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11009 *) ac_try_echo=$ac_try;;
11011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11012 (eval "$ac_link") 2>conftest.er1
11014 grep -v '^ *+' conftest.er1 >conftest.err
11016 cat conftest.err >&5
11017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018 (exit $ac_status); } && {
11019 test -z "$ac_c_werror_flag" ||
11020 test ! -s conftest.err
11021 } && test -s conftest$ac_exeext &&
11022 $as_test_x conftest$ac_exeext; then
11023 eval "$as_ac_var=yes"
11025 echo "$as_me: failed program was:" >&5
11026 sed 's/^/| /' conftest.$ac_ext >&5
11028 eval "$as_ac_var=no"
11031 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11032 conftest$ac_exeext conftest.$ac_ext
11034 ac_res=`eval echo '${'$as_ac_var'}'`
11035 { echo "$as_me:$LINENO: result: $ac_res" >&5
11036 echo "${ECHO_T}$ac_res" >&6; }
11037 if test `eval echo '${'$as_ac_var'}'` = yes; then
11038 cat >>confdefs.h <<_ACEOF
11039 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11047 if test "${window_system}" = "x11"; then
11048 { echo "$as_me:$LINENO: checking X11 version 6" >&5
11049 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
11050 if test "${emacs_cv_x11_version_6+set}" = set; then
11051 echo $ECHO_N "(cached) $ECHO_C" >&6
11053 cat >conftest.$ac_ext <<_ACEOF
11056 cat confdefs.h >>conftest.$ac_ext
11057 cat >>conftest.$ac_ext <<_ACEOF
11058 /* end confdefs.h. */
11059 #include <X11/Xlib.h>
11063 #if XlibSpecificationRelease < 6
11071 rm -f conftest.$ac_objext conftest$ac_exeext
11072 if { (ac_try="$ac_link"
11073 case "(($ac_try" in
11074 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11075 *) ac_try_echo
=$ac_try;;
11077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11078 (eval "$ac_link") 2>conftest.er1
11080 grep -v '^ *+' conftest.er1
>conftest.err
11082 cat conftest.err
>&5
11083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11084 (exit $ac_status); } && {
11085 test -z "$ac_c_werror_flag" ||
11086 test ! -s conftest.err
11087 } && test -s conftest
$ac_exeext &&
11088 $as_test_x conftest
$ac_exeext; then
11089 emacs_cv_x11_version_6
=yes
11091 echo "$as_me: failed program was:" >&5
11092 sed 's/^/| /' conftest.
$ac_ext >&5
11094 emacs_cv_x11_version_6
=no
11097 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11098 conftest
$ac_exeext conftest.
$ac_ext
11101 if test $emacs_cv_x11_version_6 = yes; then
11102 { echo "$as_me:$LINENO: result: 6 or newer" >&5
11103 echo "${ECHO_T}6 or newer" >&6; }
11105 cat >>confdefs.h
<<\_ACEOF
11106 #define HAVE_X11R6 1
11110 { echo "$as_me:$LINENO: result: before 6" >&5
11111 echo "${ECHO_T}before 6" >&6; }
11116 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11118 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_CARBON}" = "yes"; then
11119 if test "${with_rsvg}" != "no"; then
11120 if test "X${with_pkg_config_prog}" != X
; then
11121 PKG_CONFIG
="${with_pkg_config_prog}"
11124 RSVG_REQUIRED
=2.0.0
11125 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
11130 if test -z "$PKG_CONFIG"; then
11131 # Extract the first word of "pkg-config", so it can be a program name with args.
11132 set dummy pkg-config
; ac_word
=$2
11133 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11135 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11136 echo $ECHO_N "(cached) $ECHO_C" >&6
11138 case $PKG_CONFIG in
11140 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11143 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11144 for as_dir
in $PATH
11147 test -z "$as_dir" && as_dir
=.
11148 for ac_exec_ext
in '' $ac_executable_extensions; do
11149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11150 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11158 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11162 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11163 if test -n "$PKG_CONFIG"; then
11164 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11165 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11167 { echo "$as_me:$LINENO: result: no" >&5
11168 echo "${ECHO_T}no" >&6; }
11174 if test "$PKG_CONFIG" = "no" ; then
11177 PKG_CONFIG_MIN_VERSION
=0.9.0
11178 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11179 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
11180 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
11182 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11183 { echo "$as_me:$LINENO: result: yes" >&5
11184 echo "${ECHO_T}yes" >&6; }
11187 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
11188 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
11189 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11190 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
11191 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
11193 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
11194 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
11195 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11196 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
11197 echo "${ECHO_T}$RSVG_LIBS" >&6; }
11199 { echo "$as_me:$LINENO: result: no" >&5
11200 echo "${ECHO_T}no" >&6; }
11203 ## If we have a custom action on failure, don't print errors, but
11204 ## do set a variable so people can do so.
11205 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11212 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11213 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11217 if test $succeeded = yes; then
11226 if test ".${RSVG_CFLAGS}" != "."; then
11229 cat >>confdefs.h
<<\_ACEOF
11230 #define HAVE_RSVG 1
11233 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
11234 LIBS
="$RSVG_LIBS $LIBS"
11241 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
11244 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "gtk" || \
11245 test "$USE_X_TOOLKIT" = "maybe"; then
11246 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
11247 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
11248 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
11249 { (exit 1); exit 1; }; };
11253 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11255 if test "X${with_pkg_config_prog}" != X
; then
11256 PKG_CONFIG
="${with_pkg_config_prog}"
11261 if test -z "$PKG_CONFIG"; then
11262 # Extract the first word of "pkg-config", so it can be a program name with args.
11263 set dummy pkg-config
; ac_word
=$2
11264 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11266 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11267 echo $ECHO_N "(cached) $ECHO_C" >&6
11269 case $PKG_CONFIG in
11271 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11274 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11275 for as_dir
in $PATH
11278 test -z "$as_dir" && as_dir
=.
11279 for ac_exec_ext
in '' $ac_executable_extensions; do
11280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11281 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11289 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11293 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11294 if test -n "$PKG_CONFIG"; then
11295 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11296 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11298 { echo "$as_me:$LINENO: result: no" >&5
11299 echo "${ECHO_T}no" >&6; }
11305 if test "$PKG_CONFIG" = "no" ; then
11308 PKG_CONFIG_MIN_VERSION
=0.9.0
11309 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11310 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11311 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
11313 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11314 { echo "$as_me:$LINENO: result: yes" >&5
11315 echo "${ECHO_T}yes" >&6; }
11318 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11319 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
11320 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11321 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11322 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11324 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11325 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11326 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11327 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11328 echo "${ECHO_T}$GTK_LIBS" >&6; }
11330 { echo "$as_me:$LINENO: result: no" >&5
11331 echo "${ECHO_T}no" >&6; }
11334 ## If we have a custom action on failure, don't print errors, but
11335 ## do set a variable so people can do so.
11336 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11343 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11344 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11348 if test $succeeded = yes; then
11354 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11355 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11356 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11357 { (exit 1); exit 1; }; }
11362 if test x
"$pkg_check_gtk" = xyes
; then
11366 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
11367 CFLAGS
="$CFLAGS $GTK_CFLAGS"
11368 LIBS
="$GTK_LIBS $LIBS"
11371 for ac_func
in gtk_main
11373 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11374 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11375 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11376 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11377 echo $ECHO_N "(cached) $ECHO_C" >&6
11379 cat >conftest.
$ac_ext <<_ACEOF
11382 cat confdefs.h
>>conftest.
$ac_ext
11383 cat >>conftest.
$ac_ext <<_ACEOF
11384 /* end confdefs.h. */
11385 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11386 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11387 #define $ac_func innocuous_$ac_func
11389 /* System header to define __stub macros and hopefully few prototypes,
11390 which can conflict with char $ac_func (); below.
11391 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11392 <limits.h> exists even on freestanding compilers. */
11395 # include <limits.h>
11397 # include <assert.h>
11402 /* Override any GCC internal prototype to avoid an error.
11403 Use char because int might match the return type of a GCC
11404 builtin and then its argument prototype would still apply. */
11409 /* The GNU C library defines this for functions which it implements
11410 to always fail with ENOSYS. Some functions are actually named
11411 something starting with __ and the normal name is an alias. */
11412 #if defined __stub_$ac_func || defined __stub___$ac_func
11419 return $ac_func ();
11424 rm -f conftest.
$ac_objext conftest
$ac_exeext
11425 if { (ac_try
="$ac_link"
11426 case "(($ac_try" in
11427 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11428 *) ac_try_echo=$ac_try;;
11430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11431 (eval "$ac_link") 2>conftest.er1
11433 grep -v '^ *+' conftest.er1 >conftest.err
11435 cat conftest.err >&5
11436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437 (exit $ac_status); } && {
11438 test -z "$ac_c_werror_flag" ||
11439 test ! -s conftest.err
11440 } && test -s conftest$ac_exeext &&
11441 $as_test_x conftest$ac_exeext; then
11442 eval "$as_ac_var=yes"
11444 echo "$as_me: failed program was:" >&5
11445 sed 's/^/| /' conftest.$ac_ext >&5
11447 eval "$as_ac_var=no"
11450 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11451 conftest$ac_exeext conftest.$ac_ext
11453 ac_res=`eval echo '${'$as_ac_var'}'`
11454 { echo "$as_me:$LINENO: result: $ac_res" >&5
11455 echo "${ECHO_T}$ac_res" >&6; }
11456 if test `eval echo '${'$as_ac_var'}'` = yes; then
11457 cat >>confdefs.h <<_ACEOF
11458 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11464 if test "${GTK_COMPILES}" != "yes"; then
11465 if test "$USE_X_TOOLKIT" != "maybe"; then
11466 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11467 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11468 { (exit 1); exit 1; }; };
11473 cat >>confdefs.h <<\_ACEOF
11483 if test "${HAVE_GTK}" = "yes"; then
11485 if test "$with_toolkit_scroll_bars" != no; then
11486 with_toolkit_scroll_bars=yes
11489 HAVE_GTK_MULTIDISPLAY=no
11491 for ac_func in gdk_display_open
11493 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11494 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11495 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11496 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11497 echo $ECHO_N "(cached) $ECHO_C" >&6
11499 cat >conftest.$ac_ext <<_ACEOF
11502 cat confdefs.h >>conftest.$ac_ext
11503 cat >>conftest.$ac_ext <<_ACEOF
11504 /* end confdefs.h. */
11505 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11506 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11507 #define $ac_func innocuous_$ac_func
11509 /* System header to define __stub macros and hopefully few prototypes,
11510 which can conflict with char $ac_func (); below.
11511 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11512 <limits.h> exists even on freestanding compilers. */
11515 # include <limits.h>
11517 # include <assert.h>
11522 /* Override any GCC internal prototype to avoid an error.
11523 Use char because int might match the return type of a GCC
11524 builtin and then its argument prototype would still apply. */
11529 /* The GNU C library defines this for functions which it implements
11530 to always fail with ENOSYS. Some functions are actually named
11531 something starting with __ and the normal name is an alias. */
11532 #if defined __stub_$ac_func || defined __stub___$ac_func
11539 return $ac_func ();
11544 rm -f conftest.$ac_objext conftest$ac_exeext
11545 if { (ac_try="$ac_link"
11546 case "(($ac_try" in
11547 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11548 *) ac_try_echo
=$ac_try;;
11550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11551 (eval "$ac_link") 2>conftest.er1
11553 grep -v '^ *+' conftest.er1
>conftest.err
11555 cat conftest.err
>&5
11556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11557 (exit $ac_status); } && {
11558 test -z "$ac_c_werror_flag" ||
11559 test ! -s conftest.err
11560 } && test -s conftest
$ac_exeext &&
11561 $as_test_x conftest
$ac_exeext; then
11562 eval "$as_ac_var=yes"
11564 echo "$as_me: failed program was:" >&5
11565 sed 's/^/| /' conftest.
$ac_ext >&5
11567 eval "$as_ac_var=no"
11570 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11571 conftest
$ac_exeext conftest.
$ac_ext
11573 ac_res
=`eval echo '${'$as_ac_var'}'`
11574 { echo "$as_me:$LINENO: result: $ac_res" >&5
11575 echo "${ECHO_T}$ac_res" >&6; }
11576 if test `eval echo '${'$as_ac_var'}'` = yes; then
11577 cat >>confdefs.h
<<_ACEOF
11578 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11580 HAVE_GTK_MULTIDISPLAY
=yes
11584 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11586 cat >>confdefs.h
<<\_ACEOF
11587 #define HAVE_GTK_MULTIDISPLAY 1
11592 HAVE_GTK_FILE_SELECTION
=no
11594 for ac_func
in gtk_file_selection_new
11596 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11597 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11598 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11599 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11600 echo $ECHO_N "(cached) $ECHO_C" >&6
11602 cat >conftest.
$ac_ext <<_ACEOF
11605 cat confdefs.h
>>conftest.
$ac_ext
11606 cat >>conftest.
$ac_ext <<_ACEOF
11607 /* end confdefs.h. */
11608 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11609 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11610 #define $ac_func innocuous_$ac_func
11612 /* System header to define __stub macros and hopefully few prototypes,
11613 which can conflict with char $ac_func (); below.
11614 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11615 <limits.h> exists even on freestanding compilers. */
11618 # include <limits.h>
11620 # include <assert.h>
11625 /* Override any GCC internal prototype to avoid an error.
11626 Use char because int might match the return type of a GCC
11627 builtin and then its argument prototype would still apply. */
11632 /* The GNU C library defines this for functions which it implements
11633 to always fail with ENOSYS. Some functions are actually named
11634 something starting with __ and the normal name is an alias. */
11635 #if defined __stub_$ac_func || defined __stub___$ac_func
11642 return $ac_func ();
11647 rm -f conftest.
$ac_objext conftest
$ac_exeext
11648 if { (ac_try
="$ac_link"
11649 case "(($ac_try" in
11650 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11651 *) ac_try_echo=$ac_try;;
11653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11654 (eval "$ac_link") 2>conftest.er1
11656 grep -v '^ *+' conftest.er1 >conftest.err
11658 cat conftest.err >&5
11659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660 (exit $ac_status); } && {
11661 test -z "$ac_c_werror_flag" ||
11662 test ! -s conftest.err
11663 } && test -s conftest$ac_exeext &&
11664 $as_test_x conftest$ac_exeext; then
11665 eval "$as_ac_var=yes"
11667 echo "$as_me: failed program was:" >&5
11668 sed 's/^/| /' conftest.$ac_ext >&5
11670 eval "$as_ac_var=no"
11673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11674 conftest$ac_exeext conftest.$ac_ext
11676 ac_res=`eval echo '${'$as_ac_var'}'`
11677 { echo "$as_me:$LINENO: result: $ac_res" >&5
11678 echo "${ECHO_T}$ac_res" >&6; }
11679 if test `eval echo '${'$as_ac_var'}'` = yes; then
11680 cat >>confdefs.h <<_ACEOF
11681 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11683 HAVE_GTK_FILE_SELECTION=yes
11688 HAVE_GTK_FILE_CHOOSER=no
11690 for ac_func in gtk_file_chooser_dialog_new
11692 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11693 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11694 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11695 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11696 echo $ECHO_N "(cached) $ECHO_C" >&6
11698 cat >conftest.$ac_ext <<_ACEOF
11701 cat confdefs.h >>conftest.$ac_ext
11702 cat >>conftest.$ac_ext <<_ACEOF
11703 /* end confdefs.h. */
11704 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11705 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11706 #define $ac_func innocuous_$ac_func
11708 /* System header to define __stub macros and hopefully few prototypes,
11709 which can conflict with char $ac_func (); below.
11710 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11711 <limits.h> exists even on freestanding compilers. */
11714 # include <limits.h>
11716 # include <assert.h>
11721 /* Override any GCC internal prototype to avoid an error.
11722 Use char because int might match the return type of a GCC
11723 builtin and then its argument prototype would still apply. */
11728 /* The GNU C library defines this for functions which it implements
11729 to always fail with ENOSYS. Some functions are actually named
11730 something starting with __ and the normal name is an alias. */
11731 #if defined __stub_$ac_func || defined __stub___$ac_func
11738 return $ac_func ();
11743 rm -f conftest.$ac_objext conftest$ac_exeext
11744 if { (ac_try="$ac_link"
11745 case "(($ac_try" in
11746 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11747 *) ac_try_echo
=$ac_try;;
11749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11750 (eval "$ac_link") 2>conftest.er1
11752 grep -v '^ *+' conftest.er1
>conftest.err
11754 cat conftest.err
>&5
11755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11756 (exit $ac_status); } && {
11757 test -z "$ac_c_werror_flag" ||
11758 test ! -s conftest.err
11759 } && test -s conftest
$ac_exeext &&
11760 $as_test_x conftest
$ac_exeext; then
11761 eval "$as_ac_var=yes"
11763 echo "$as_me: failed program was:" >&5
11764 sed 's/^/| /' conftest.
$ac_ext >&5
11766 eval "$as_ac_var=no"
11769 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11770 conftest
$ac_exeext conftest.
$ac_ext
11772 ac_res
=`eval echo '${'$as_ac_var'}'`
11773 { echo "$as_me:$LINENO: result: $ac_res" >&5
11774 echo "${ECHO_T}$ac_res" >&6; }
11775 if test `eval echo '${'$as_ac_var'}'` = yes; then
11776 cat >>confdefs.h
<<_ACEOF
11777 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11779 HAVE_GTK_FILE_CHOOSER
=yes
11784 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11785 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11787 cat >>confdefs.h
<<\_ACEOF
11788 #define HAVE_GTK_FILE_BOTH 1
11793 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11794 HAVE_GTK_AND_PTHREAD
=no
11796 for ac_header
in pthread.h
11798 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11799 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11800 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11801 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11802 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11803 echo $ECHO_N "(cached) $ECHO_C" >&6
11805 ac_res
=`eval echo '${'$as_ac_Header'}'`
11806 { echo "$as_me:$LINENO: result: $ac_res" >&5
11807 echo "${ECHO_T}$ac_res" >&6; }
11809 # Is the header compilable?
11810 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11811 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11812 cat >conftest.
$ac_ext <<_ACEOF
11815 cat confdefs.h
>>conftest.
$ac_ext
11816 cat >>conftest.
$ac_ext <<_ACEOF
11817 /* end confdefs.h. */
11818 $ac_includes_default
11819 #include <$ac_header>
11821 rm -f conftest.
$ac_objext
11822 if { (ac_try
="$ac_compile"
11823 case "(($ac_try" in
11824 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11825 *) ac_try_echo=$ac_try;;
11827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11828 (eval "$ac_compile") 2>conftest.er1
11830 grep -v '^ *+' conftest.er1 >conftest.err
11832 cat conftest.err >&5
11833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834 (exit $ac_status); } && {
11835 test -z "$ac_c_werror_flag" ||
11836 test ! -s conftest.err
11837 } && test -s conftest.$ac_objext; then
11838 ac_header_compiler=yes
11840 echo "$as_me: failed program was:" >&5
11841 sed 's/^/| /' conftest.$ac_ext >&5
11843 ac_header_compiler=no
11846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11847 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11848 echo "${ECHO_T}$ac_header_compiler" >&6; }
11850 # Is the header present?
11851 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11852 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11853 cat >conftest.$ac_ext <<_ACEOF
11856 cat confdefs.h >>conftest.$ac_ext
11857 cat >>conftest.$ac_ext <<_ACEOF
11858 /* end confdefs.h. */
11859 #include <$ac_header>
11861 if { (ac_try="$ac_cpp conftest.$ac_ext"
11862 case "(($ac_try" in
11863 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11864 *) ac_try_echo
=$ac_try;;
11866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11867 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11869 grep -v '^ *+' conftest.er1
>conftest.err
11871 cat conftest.err
>&5
11872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11873 (exit $ac_status); } >/dev
/null
&& {
11874 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11875 test ! -s conftest.err
11877 ac_header_preproc
=yes
11879 echo "$as_me: failed program was:" >&5
11880 sed 's/^/| /' conftest.
$ac_ext >&5
11882 ac_header_preproc
=no
11885 rm -f conftest.err conftest.
$ac_ext
11886 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11887 echo "${ECHO_T}$ac_header_preproc" >&6; }
11889 # So? What about this header?
11890 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11892 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11893 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11894 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11895 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11896 ac_header_preproc
=yes
11899 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11900 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11901 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11902 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11903 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11904 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11905 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11906 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11907 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11908 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11909 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11910 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11914 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11916 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11917 echo $ECHO_N "(cached) $ECHO_C" >&6
11919 eval "$as_ac_Header=\$ac_header_preproc"
11921 ac_res
=`eval echo '${'$as_ac_Header'}'`
11922 { echo "$as_me:$LINENO: result: $ac_res" >&5
11923 echo "${ECHO_T}$ac_res" >&6; }
11926 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11927 cat >>confdefs.h
<<_ACEOF
11928 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11935 if test "$ac_cv_header_pthread_h"; then
11936 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11937 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11938 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11939 echo $ECHO_N "(cached) $ECHO_C" >&6
11941 ac_check_lib_save_LIBS
=$LIBS
11942 LIBS
="-lpthread $LIBS"
11943 cat >conftest.
$ac_ext <<_ACEOF
11946 cat confdefs.h
>>conftest.
$ac_ext
11947 cat >>conftest.
$ac_ext <<_ACEOF
11948 /* end confdefs.h. */
11950 /* Override any GCC internal prototype to avoid an error.
11951 Use char because int might match the return type of a GCC
11952 builtin and then its argument prototype would still apply. */
11956 char pthread_self ();
11960 return pthread_self ();
11965 rm -f conftest.
$ac_objext conftest
$ac_exeext
11966 if { (ac_try
="$ac_link"
11967 case "(($ac_try" in
11968 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11969 *) ac_try_echo=$ac_try;;
11971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11972 (eval "$ac_link") 2>conftest.er1
11974 grep -v '^ *+' conftest.er1 >conftest.err
11976 cat conftest.err >&5
11977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978 (exit $ac_status); } && {
11979 test -z "$ac_c_werror_flag" ||
11980 test ! -s conftest.err
11981 } && test -s conftest$ac_exeext &&
11982 $as_test_x conftest$ac_exeext; then
11983 ac_cv_lib_pthread_pthread_self=yes
11985 echo "$as_me: failed program was:" >&5
11986 sed 's/^/| /' conftest.$ac_ext >&5
11988 ac_cv_lib_pthread_pthread_self=no
11991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11992 conftest$ac_exeext conftest.$ac_ext
11993 LIBS=$ac_check_lib_save_LIBS
11995 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11996 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11997 if test $ac_cv_lib_pthread_pthread_self = yes; then
11998 HAVE_GTK_AND_PTHREAD=yes
12002 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
12003 case "${canonical}" in
12005 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
12008 cat >>confdefs.h <<\_ACEOF
12009 #define HAVE_GTK_AND_PTHREAD 1
12017 if test "${with_dbus}" = "yes"; then
12021 if test -z "$PKG_CONFIG"; then
12022 # Extract the first word of "pkg-config", so it can be a program name with args.
12023 set dummy pkg-config; ac_word=$2
12024 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12026 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12027 echo $ECHO_N "(cached) $ECHO_C" >&6
12029 case $PKG_CONFIG in
12031 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12035 for as_dir in $PATH
12038 test -z "$as_dir" && as_dir=.
12039 for ac_exec_ext in '' $ac_executable_extensions; do
12040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12041 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12049 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12053 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12054 if test -n "$PKG_CONFIG"; then
12055 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12056 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12058 { echo "$as_me:$LINENO: result: no" >&5
12059 echo "${ECHO_T}no" >&6; }
12065 if test "$PKG_CONFIG" = "no" ; then
12068 PKG_CONFIG_MIN_VERSION=0.9.0
12069 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12070 { echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
12071 echo $ECHO_N "checking for dbus-1 >= 1.0... $ECHO_C" >&6; }
12073 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
12074 { echo "$as_me:$LINENO: result: yes" >&5
12075 echo "${ECHO_T}yes" >&6; }
12078 { echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
12079 echo $ECHO_N "checking DBUS_CFLAGS... $ECHO_C" >&6; }
12080 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
12081 { echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
12082 echo "${ECHO_T}$DBUS_CFLAGS" >&6; }
12084 { echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
12085 echo $ECHO_N "checking DBUS_LIBS... $ECHO_C" >&6; }
12086 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
12087 { echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
12088 echo "${ECHO_T}$DBUS_LIBS" >&6; }
12090 { echo "$as_me:$LINENO: result: no" >&5
12091 echo "${ECHO_T}no" >&6; }
12094 ## If we have a custom action on failure, don't print errors, but
12095 ## do set a variable so people can do so.
12096 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
12103 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12104 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12108 if test $succeeded = yes; then
12114 if test "$HAVE_DBUS" = yes; then
12116 cat >>confdefs.h <<\_ACEOF
12117 #define HAVE_DBUS 1
12123 ### Link with -lXft if available to work around a bug.
12125 if test "${HAVE_GTK}" = "yes"; then
12126 if test "X${with_pkg_config_prog}" != X; then
12127 PKG_CONFIG="${with_pkg_config_prog}"
12133 if test -z "$PKG_CONFIG"; then
12134 # Extract the first word of "pkg-config", so it can be a program name with args.
12135 set dummy pkg-config; ac_word=$2
12136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12138 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12139 echo $ECHO_N "(cached) $ECHO_C" >&6
12141 case $PKG_CONFIG in
12143 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12147 for as_dir in $PATH
12150 test -z "$as_dir" && as_dir=.
12151 for ac_exec_ext in '' $ac_executable_extensions; do
12152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12153 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12161 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12165 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12166 if test -n "$PKG_CONFIG"; then
12167 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12168 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12170 { echo "$as_me:$LINENO: result: no" >&5
12171 echo "${ECHO_T}no" >&6; }
12177 if test "$PKG_CONFIG" = "no" ; then
12180 PKG_CONFIG_MIN_VERSION=0.9.0
12181 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12182 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12183 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12185 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12186 { echo "$as_me:$LINENO: result: yes" >&5
12187 echo "${ECHO_T}yes" >&6; }
12190 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12191 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12192 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|
sed -e 's,///*,/,g'`
12193 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12194 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12196 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12197 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12198 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|
sed -e 's,///*,/,g'`
12199 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12200 echo "${ECHO_T}$XFT_LIBS" >&6; }
12202 { echo "$as_me:$LINENO: result: no" >&5
12203 echo "${ECHO_T}no" >&6; }
12206 ## If we have a custom action on failure, don't print errors, but
12207 ## do set a variable so people can do so.
12208 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12215 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12216 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12220 if test $succeeded = yes; then
12226 if test "$HAVE_XFT" != no; then
12227 OLD_CFLAGS="$CPPFLAGS"
12228 OLD_CPPFLAGS="$CFLAGS"
12230 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12231 CFLAGS="$CFLAGS $XFT_CFLAGS"
12232 LIBS="$XFT_LIBS $LIBS"
12233 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12234 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12235 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12236 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12237 echo $ECHO_N "(cached) $ECHO_C" >&6
12239 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12240 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12242 # Is the header compilable?
12243 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12244 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12245 cat >conftest.$ac_ext <<_ACEOF
12248 cat confdefs.h >>conftest.$ac_ext
12249 cat >>conftest.$ac_ext <<_ACEOF
12250 /* end confdefs.h. */
12251 $ac_includes_default
12252 #include <X11/Xft/Xft.h>
12254 rm -f conftest.$ac_objext
12255 if { (ac_try="$ac_compile"
12256 case "(($ac_try" in
12257 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12258 *) ac_try_echo
=$ac_try;;
12260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12261 (eval "$ac_compile") 2>conftest.er1
12263 grep -v '^ *+' conftest.er1
>conftest.err
12265 cat conftest.err
>&5
12266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267 (exit $ac_status); } && {
12268 test -z "$ac_c_werror_flag" ||
12269 test ! -s conftest.err
12270 } && test -s conftest.
$ac_objext; then
12271 ac_header_compiler
=yes
12273 echo "$as_me: failed program was:" >&5
12274 sed 's/^/| /' conftest.
$ac_ext >&5
12276 ac_header_compiler
=no
12279 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12280 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12281 echo "${ECHO_T}$ac_header_compiler" >&6; }
12283 # Is the header present?
12284 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12285 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12286 cat >conftest.
$ac_ext <<_ACEOF
12289 cat confdefs.h
>>conftest.
$ac_ext
12290 cat >>conftest.
$ac_ext <<_ACEOF
12291 /* end confdefs.h. */
12292 #include <X11/Xft/Xft.h>
12294 if { (ac_try
="$ac_cpp conftest.$ac_ext"
12295 case "(($ac_try" in
12296 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12297 *) ac_try_echo=$ac_try;;
12299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12300 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12302 grep -v '^ *+' conftest.er1 >conftest.err
12304 cat conftest.err >&5
12305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306 (exit $ac_status); } >/dev/null && {
12307 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12308 test ! -s conftest.err
12310 ac_header_preproc=yes
12312 echo "$as_me: failed program was:" >&5
12313 sed 's/^/| /' conftest.$ac_ext >&5
12315 ac_header_preproc=no
12318 rm -f conftest.err conftest.$ac_ext
12319 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12320 echo "${ECHO_T}$ac_header_preproc" >&6; }
12322 # So? What about this header?
12323 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12325 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12326 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12327 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12328 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12329 ac_header_preproc=yes
12332 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12333 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12334 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12335 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12336 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12337 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12338 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12339 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12340 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12341 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12342 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12343 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12347 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12348 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12349 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12350 echo $ECHO_N "(cached) $ECHO_C" >&6
12352 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
12354 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12355 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12358 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12359 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12360 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12361 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12362 echo $ECHO_N "(cached) $ECHO_C" >&6
12364 ac_check_lib_save_LIBS=$LIBS
12365 LIBS="-lXft $XFT_LIBS $LIBS"
12366 cat >conftest.$ac_ext <<_ACEOF
12369 cat confdefs.h >>conftest.$ac_ext
12370 cat >>conftest.$ac_ext <<_ACEOF
12371 /* end confdefs.h. */
12373 /* Override any GCC internal prototype to avoid an error.
12374 Use char because int might match the return type of a GCC
12375 builtin and then its argument prototype would still apply. */
12379 char XftFontOpen ();
12383 return XftFontOpen ();
12388 rm -f conftest.$ac_objext conftest$ac_exeext
12389 if { (ac_try="$ac_link"
12390 case "(($ac_try" in
12391 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12392 *) ac_try_echo
=$ac_try;;
12394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12395 (eval "$ac_link") 2>conftest.er1
12397 grep -v '^ *+' conftest.er1
>conftest.err
12399 cat conftest.err
>&5
12400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12401 (exit $ac_status); } && {
12402 test -z "$ac_c_werror_flag" ||
12403 test ! -s conftest.err
12404 } && test -s conftest
$ac_exeext &&
12405 $as_test_x conftest
$ac_exeext; then
12406 ac_cv_lib_Xft_XftFontOpen
=yes
12408 echo "$as_me: failed program was:" >&5
12409 sed 's/^/| /' conftest.
$ac_ext >&5
12411 ac_cv_lib_Xft_XftFontOpen
=no
12414 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12415 conftest
$ac_exeext conftest.
$ac_ext
12416 LIBS
=$ac_check_lib_save_LIBS
12418 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12419 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12420 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12428 if test "${HAVE_XFT}" = "yes"; then
12430 cat >>confdefs.h
<<\_ACEOF
12435 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
12437 CFLAGS
="$OLD_CPPFLAGS"
12438 CFLAGS
="$OLD_CFLAGS"
12445 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
12446 if test "$with_xaw3d" != no
; then
12447 { echo "$as_me:$LINENO: checking for xaw3d" >&5
12448 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
12449 if test "${emacs_cv_xaw3d+set}" = set; then
12450 echo $ECHO_N "(cached) $ECHO_C" >&6
12452 cat >conftest.
$ac_ext <<_ACEOF
12455 cat confdefs.h
>>conftest.
$ac_ext
12456 cat >>conftest.
$ac_ext <<_ACEOF
12457 /* end confdefs.h. */
12459 #include <X11/Intrinsic.h>
12460 #include <X11/Xaw3d/Simple.h>
12469 rm -f conftest.
$ac_objext conftest
$ac_exeext
12470 if { (ac_try
="$ac_link"
12471 case "(($ac_try" in
12472 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12473 *) ac_try_echo=$ac_try;;
12475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12476 (eval "$ac_link") 2>conftest.er1
12478 grep -v '^ *+' conftest.er1 >conftest.err
12480 cat conftest.err >&5
12481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12482 (exit $ac_status); } && {
12483 test -z "$ac_c_werror_flag" ||
12484 test ! -s conftest.err
12485 } && test -s conftest$ac_exeext &&
12486 $as_test_x conftest$ac_exeext; then
12489 echo "$as_me: failed program was:" >&5
12490 sed 's/^/| /' conftest.$ac_ext >&5
12495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12496 conftest$ac_exeext conftest.$ac_ext
12502 if test $emacs_cv_xaw3d = yes; then
12503 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12504 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12505 USE_X_TOOLKIT=LUCID
12508 cat >>confdefs.h <<\_ACEOF
12509 #define HAVE_XAW3D 1
12513 { echo "$as_me:$LINENO: result: no" >&5
12514 echo "${ECHO_T}no" >&6; }
12515 { echo "$as_me:$LINENO: checking for libXaw" >&5
12516 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
12517 if test "${emacs_cv_xaw+set}" = set; then
12518 echo $ECHO_N "(cached) $ECHO_C" >&6
12520 cat >conftest.$ac_ext <<_ACEOF
12523 cat confdefs.h >>conftest.$ac_ext
12524 cat >>conftest.$ac_ext <<_ACEOF
12525 /* end confdefs.h. */
12527 #include <X11/Intrinsic.h>
12528 #include <X11/Xaw/Simple.h>
12537 rm -f conftest.$ac_objext conftest$ac_exeext
12538 if { (ac_try="$ac_link"
12539 case "(($ac_try" in
12540 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12541 *) ac_try_echo
=$ac_try;;
12543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12544 (eval "$ac_link") 2>conftest.er1
12546 grep -v '^ *+' conftest.er1
>conftest.err
12548 cat conftest.err
>&5
12549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550 (exit $ac_status); } && {
12551 test -z "$ac_c_werror_flag" ||
12552 test ! -s conftest.err
12553 } && test -s conftest
$ac_exeext &&
12554 $as_test_x conftest
$ac_exeext; then
12557 echo "$as_me: failed program was:" >&5
12558 sed 's/^/| /' conftest.
$ac_ext >&5
12563 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12564 conftest
$ac_exeext conftest.
$ac_ext
12567 if test $emacs_cv_xaw = yes; then
12568 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12569 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12570 USE_X_TOOLKIT
=LUCID
12571 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
12572 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12573 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12574 { (exit 1); exit 1; }; }
12576 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
12577 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
12583 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
12585 if test "${USE_X_TOOLKIT}" != "none"; then
12586 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12587 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
12588 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12589 echo $ECHO_N "(cached) $ECHO_C" >&6
12591 cat >conftest.
$ac_ext <<_ACEOF
12594 cat confdefs.h
>>conftest.
$ac_ext
12595 cat >>conftest.
$ac_ext <<_ACEOF
12596 /* end confdefs.h. */
12597 #include <X11/Intrinsic.h>
12601 #if XtSpecificationRelease < 6
12609 rm -f conftest.
$ac_objext conftest
$ac_exeext
12610 if { (ac_try
="$ac_link"
12611 case "(($ac_try" in
12612 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12613 *) ac_try_echo=$ac_try;;
12615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12616 (eval "$ac_link") 2>conftest.er1
12618 grep -v '^ *+' conftest.er1 >conftest.err
12620 cat conftest.err >&5
12621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622 (exit $ac_status); } && {
12623 test -z "$ac_c_werror_flag" ||
12624 test ! -s conftest.err
12625 } && test -s conftest$ac_exeext &&
12626 $as_test_x conftest$ac_exeext; then
12627 emacs_cv_x11_toolkit_version_6=yes
12629 echo "$as_me: failed program was:" >&5
12630 sed 's/^/| /' conftest.$ac_ext >&5
12632 emacs_cv_x11_toolkit_version_6=no
12635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12636 conftest$ac_exeext conftest.$ac_ext
12639 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12640 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12641 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12642 echo "${ECHO_T}6 or newer" >&6; }
12644 cat >>confdefs.h <<\_ACEOF
12645 #define HAVE_X11XTR6 1
12649 { echo "$as_me:$LINENO: result: before 6" >&5
12650 echo "${ECHO_T}before 6" >&6; }
12654 if test x$HAVE_X11XTR6 = xyes; then
12655 LIBS="-lXt -lSM -lICE $LIBS"
12660 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12661 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12662 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12663 echo $ECHO_N "(cached) $ECHO_C" >&6
12665 ac_check_lib_save_LIBS=$LIBS
12667 cat >conftest.$ac_ext <<_ACEOF
12670 cat confdefs.h >>conftest.$ac_ext
12671 cat >>conftest.$ac_ext <<_ACEOF
12672 /* end confdefs.h. */
12674 /* Override any GCC internal prototype to avoid an error.
12675 Use char because int might match the return type of a GCC
12676 builtin and then its argument prototype would still apply. */
12680 char XmuConvertStandardSelection ();
12684 return XmuConvertStandardSelection ();
12689 rm -f conftest.$ac_objext conftest$ac_exeext
12690 if { (ac_try="$ac_link"
12691 case "(($ac_try" in
12692 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12693 *) ac_try_echo
=$ac_try;;
12695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12696 (eval "$ac_link") 2>conftest.er1
12698 grep -v '^ *+' conftest.er1
>conftest.err
12700 cat conftest.err
>&5
12701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12702 (exit $ac_status); } && {
12703 test -z "$ac_c_werror_flag" ||
12704 test ! -s conftest.err
12705 } && test -s conftest
$ac_exeext &&
12706 $as_test_x conftest
$ac_exeext; then
12707 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
12709 echo "$as_me: failed program was:" >&5
12710 sed 's/^/| /' conftest.
$ac_ext >&5
12712 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
12715 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12716 conftest
$ac_exeext conftest.
$ac_ext
12717 LIBS
=$ac_check_lib_save_LIBS
12719 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12720 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12721 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12722 cat >>confdefs.h
<<_ACEOF
12723 #define HAVE_LIBXMU 1
12730 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
12733 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12734 if test "${HAVE_X11}" = "yes"; then
12735 if test "${USE_X_TOOLKIT}" != "none"; then
12737 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12738 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12739 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12740 echo $ECHO_N "(cached) $ECHO_C" >&6
12742 ac_check_lib_save_LIBS
=$LIBS
12743 LIBS
="-lXext $LIBS"
12744 cat >conftest.
$ac_ext <<_ACEOF
12747 cat confdefs.h
>>conftest.
$ac_ext
12748 cat >>conftest.
$ac_ext <<_ACEOF
12749 /* end confdefs.h. */
12751 /* Override any GCC internal prototype to avoid an error.
12752 Use char because int might match the return type of a GCC
12753 builtin and then its argument prototype would still apply. */
12757 char XShapeQueryExtension ();
12761 return XShapeQueryExtension ();
12766 rm -f conftest.
$ac_objext conftest
$ac_exeext
12767 if { (ac_try
="$ac_link"
12768 case "(($ac_try" in
12769 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12770 *) ac_try_echo=$ac_try;;
12772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12773 (eval "$ac_link") 2>conftest.er1
12775 grep -v '^ *+' conftest.er1 >conftest.err
12777 cat conftest.err >&5
12778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12779 (exit $ac_status); } && {
12780 test -z "$ac_c_werror_flag" ||
12781 test ! -s conftest.err
12782 } && test -s conftest$ac_exeext &&
12783 $as_test_x conftest$ac_exeext; then
12784 ac_cv_lib_Xext_XShapeQueryExtension=yes
12786 echo "$as_me: failed program was:" >&5
12787 sed 's/^/| /' conftest.$ac_ext >&5
12789 ac_cv_lib_Xext_XShapeQueryExtension=no
12792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12793 conftest$ac_exeext conftest.$ac_ext
12794 LIBS=$ac_check_lib_save_LIBS
12796 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12797 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12798 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12799 cat >>confdefs.h <<_ACEOF
12800 #define HAVE_LIBXEXT 1
12803 LIBS="-lXext $LIBS"
12810 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12811 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12812 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12813 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12814 echo $ECHO_N "(cached) $ECHO_C" >&6
12816 cat >conftest.$ac_ext <<_ACEOF
12819 cat confdefs.h >>conftest.$ac_ext
12820 cat >>conftest.$ac_ext <<_ACEOF
12821 /* end confdefs.h. */
12826 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12829 Motif version prior to 2.1.
12835 rm -f conftest.$ac_objext
12836 if { (ac_try="$ac_compile"
12837 case "(($ac_try" in
12838 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12839 *) ac_try_echo
=$ac_try;;
12841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12842 (eval "$ac_compile") 2>conftest.er1
12844 grep -v '^ *+' conftest.er1
>conftest.err
12846 cat conftest.err
>&5
12847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12848 (exit $ac_status); } && {
12849 test -z "$ac_c_werror_flag" ||
12850 test ! -s conftest.err
12851 } && test -s conftest.
$ac_objext; then
12852 emacs_cv_motif_version_2_1
=yes
12854 echo "$as_me: failed program was:" >&5
12855 sed 's/^/| /' conftest.
$ac_ext >&5
12857 emacs_cv_motif_version_2_1
=no
12860 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12862 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12863 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12864 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
12865 if test $emacs_cv_motif_version_2_1 = yes; then
12868 cat >>confdefs.h
<<\_ACEOF
12869 #define HAVE_MOTIF_2_1 1
12872 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12873 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12874 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12875 echo $ECHO_N "(cached) $ECHO_C" >&6
12877 ac_check_lib_save_LIBS
=$LIBS
12879 cat >conftest.
$ac_ext <<_ACEOF
12882 cat confdefs.h
>>conftest.
$ac_ext
12883 cat >>conftest.
$ac_ext <<_ACEOF
12884 /* end confdefs.h. */
12886 /* Override any GCC internal prototype to avoid an error.
12887 Use char because int might match the return type of a GCC
12888 builtin and then its argument prototype would still apply. */
12892 char XpCreateContext ();
12896 return XpCreateContext ();
12901 rm -f conftest.
$ac_objext conftest
$ac_exeext
12902 if { (ac_try
="$ac_link"
12903 case "(($ac_try" in
12904 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12905 *) ac_try_echo=$ac_try;;
12907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12908 (eval "$ac_link") 2>conftest.er1
12910 grep -v '^ *+' conftest.er1 >conftest.err
12912 cat conftest.err >&5
12913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914 (exit $ac_status); } && {
12915 test -z "$ac_c_werror_flag" ||
12916 test ! -s conftest.err
12917 } && test -s conftest$ac_exeext &&
12918 $as_test_x conftest$ac_exeext; then
12919 ac_cv_lib_Xp_XpCreateContext=yes
12921 echo "$as_me: failed program was:" >&5
12922 sed 's/^/| /' conftest.$ac_ext >&5
12924 ac_cv_lib_Xp_XpCreateContext=no
12927 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12928 conftest$ac_exeext conftest.$ac_ext
12929 LIBS=$ac_check_lib_save_LIBS
12931 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12932 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12933 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12937 if test ${HAVE_LIBXP} = yes; then
12939 cat >>confdefs.h <<\_ACEOF
12940 #define HAVE_LIBXP 1
12945 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12946 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12947 if test "${emacs_cv_lesstif+set}" = set; then
12948 echo $ECHO_N "(cached) $ECHO_C" >&6
12950 # We put this in CFLAGS temporarily to precede other -I options
12951 # that might be in CFLAGS temporarily.
12952 # We put this in CPPFLAGS where it precedes the other -I options.
12953 OLD_CPPFLAGS=$CPPFLAGS
12955 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12956 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12957 cat >conftest.$ac_ext <<_ACEOF
12960 cat confdefs.h >>conftest.$ac_ext
12961 cat >>conftest.$ac_ext <<_ACEOF
12962 /* end confdefs.h. */
12963 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12972 rm -f conftest.$ac_objext
12973 if { (ac_try="$ac_compile"
12974 case "(($ac_try" in
12975 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12976 *) ac_try_echo
=$ac_try;;
12978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12979 (eval "$ac_compile") 2>conftest.er1
12981 grep -v '^ *+' conftest.er1
>conftest.err
12983 cat conftest.err
>&5
12984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12985 (exit $ac_status); } && {
12986 test -z "$ac_c_werror_flag" ||
12987 test ! -s conftest.err
12988 } && test -s conftest.
$ac_objext; then
12989 emacs_cv_lesstif
=yes
12991 echo "$as_me: failed program was:" >&5
12992 sed 's/^/| /' conftest.
$ac_ext >&5
12994 emacs_cv_lesstif
=no
12997 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12999 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
13000 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
13001 if test $emacs_cv_lesstif = yes; then
13002 # Make sure this -I option remains in CPPFLAGS after it is set
13003 # back to REAL_CPPFLAGS.
13004 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
13005 # have those other -I options anyway. Ultimately, having this
13006 # directory ultimately in CPPFLAGS will be enough.
13007 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
13008 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
13011 CPPFLAGS
=$OLD_CPPFLAGS
13018 USE_TOOLKIT_SCROLL_BARS
=no
13019 if test "${with_toolkit_scroll_bars}" != "no"; then
13020 if test "${USE_X_TOOLKIT}" != "none"; then
13021 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13022 cat >>confdefs.h
<<\_ACEOF
13023 #define USE_TOOLKIT_SCROLL_BARS 1
13027 USE_TOOLKIT_SCROLL_BARS
=yes
13028 elif test "${HAVE_XAW3D}" = "yes"; then
13029 cat >>confdefs.h
<<\_ACEOF
13030 #define USE_TOOLKIT_SCROLL_BARS 1
13033 USE_TOOLKIT_SCROLL_BARS
=yes
13035 elif test "${HAVE_GTK}" = "yes"; then
13036 cat >>confdefs.h
<<\_ACEOF
13037 #define USE_TOOLKIT_SCROLL_BARS 1
13040 USE_TOOLKIT_SCROLL_BARS
=yes
13041 elif test "${HAVE_CARBON}" = "yes"; then
13042 cat >>confdefs.h
<<\_ACEOF
13043 #define USE_TOOLKIT_SCROLL_BARS 1
13046 USE_TOOLKIT_SCROLL_BARS
=yes
13050 cat >conftest.
$ac_ext <<_ACEOF
13053 cat confdefs.h
>>conftest.
$ac_ext
13054 cat >>conftest.
$ac_ext <<_ACEOF
13055 /* end confdefs.h. */
13057 #include <X11/Xlib.h>
13058 #include <X11/Xresource.h>
13067 rm -f conftest.
$ac_objext
13068 if { (ac_try
="$ac_compile"
13069 case "(($ac_try" in
13070 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13071 *) ac_try_echo=$ac_try;;
13073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13074 (eval "$ac_compile") 2>conftest.er1
13076 grep -v '^ *+' conftest.er1 >conftest.err
13078 cat conftest.err >&5
13079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13080 (exit $ac_status); } && {
13081 test -z "$ac_c_werror_flag" ||
13082 test ! -s conftest.err
13083 } && test -s conftest.$ac_objext; then
13086 cat >>confdefs.h <<\_ACEOF
13091 echo "$as_me: failed program was:" >&5
13092 sed 's/^/| /' conftest.$ac_ext >&5
13097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13100 if test "${with_xim}" != "no"; then
13102 cat >>confdefs.h <<\_ACEOF
13109 if test "${HAVE_XIM}" != "no"; then
13110 late_CFLAGS=$CFLAGS
13111 if test "$GCC" = yes; then
13112 CFLAGS="$CFLAGS --pedantic-errors"
13114 cat >conftest.$ac_ext <<_ACEOF
13117 cat confdefs.h >>conftest.$ac_ext
13118 cat >>conftest.$ac_ext <<_ACEOF
13119 /* end confdefs.h. */
13121 #include <X11/Xlib.h>
13122 #include <X11/Xresource.h>
13131 XPointer *client_data;
13133 /* If we're not using GCC, it's probably not XFree86, and this is
13134 probably right, but we can't use something like --pedantic-errors. */
13135 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
13136 char*, XIMProc, XPointer*);
13138 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
13144 rm -f conftest.$ac_objext
13145 if { (ac_try="$ac_compile"
13146 case "(($ac_try" in
13147 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13148 *) ac_try_echo
=$ac_try;;
13150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13151 (eval "$ac_compile") 2>conftest.er1
13153 grep -v '^ *+' conftest.er1
>conftest.err
13155 cat conftest.err
>&5
13156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13157 (exit $ac_status); } && {
13158 test -z "$ac_c_werror_flag" ||
13159 test ! -s conftest.err
13160 } && test -s conftest.
$ac_objext; then
13161 emacs_cv_arg6_star
=yes
13163 echo "$as_me: failed program was:" >&5
13164 sed 's/^/| /' conftest.
$ac_ext >&5
13169 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13171 if test "$emacs_cv_arg6_star" = yes; then
13172 cat >>confdefs.h
<<\_ACEOF
13173 #define XRegisterIMInstantiateCallback_arg6 XPointer*
13177 cat >>confdefs.h
<<\_ACEOF
13178 #define XRegisterIMInstantiateCallback_arg6 XPointer
13182 CFLAGS
=$late_CFLAGS
13185 ### Use -lXpm if available, unless `--with-xpm=no'.
13187 if test "${HAVE_X11}" = "yes"; then
13188 if test "${with_xpm}" != "no"; then
13189 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13190 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13191 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13192 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13193 echo $ECHO_N "(cached) $ECHO_C" >&6
13195 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13196 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13198 # Is the header compilable?
13199 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13200 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13201 cat >conftest.
$ac_ext <<_ACEOF
13204 cat confdefs.h
>>conftest.
$ac_ext
13205 cat >>conftest.
$ac_ext <<_ACEOF
13206 /* end confdefs.h. */
13207 $ac_includes_default
13208 #include <X11/xpm.h>
13210 rm -f conftest.
$ac_objext
13211 if { (ac_try
="$ac_compile"
13212 case "(($ac_try" in
13213 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13214 *) ac_try_echo=$ac_try;;
13216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13217 (eval "$ac_compile") 2>conftest.er1
13219 grep -v '^ *+' conftest.er1 >conftest.err
13221 cat conftest.err >&5
13222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13223 (exit $ac_status); } && {
13224 test -z "$ac_c_werror_flag" ||
13225 test ! -s conftest.err
13226 } && test -s conftest.$ac_objext; then
13227 ac_header_compiler=yes
13229 echo "$as_me: failed program was:" >&5
13230 sed 's/^/| /' conftest.$ac_ext >&5
13232 ac_header_compiler=no
13235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13236 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13237 echo "${ECHO_T}$ac_header_compiler" >&6; }
13239 # Is the header present?
13240 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13241 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13242 cat >conftest.$ac_ext <<_ACEOF
13245 cat confdefs.h >>conftest.$ac_ext
13246 cat >>conftest.$ac_ext <<_ACEOF
13247 /* end confdefs.h. */
13248 #include <X11/xpm.h>
13250 if { (ac_try="$ac_cpp conftest.$ac_ext"
13251 case "(($ac_try" in
13252 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13253 *) ac_try_echo
=$ac_try;;
13255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13256 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13258 grep -v '^ *+' conftest.er1
>conftest.err
13260 cat conftest.err
>&5
13261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13262 (exit $ac_status); } >/dev
/null
&& {
13263 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13264 test ! -s conftest.err
13266 ac_header_preproc
=yes
13268 echo "$as_me: failed program was:" >&5
13269 sed 's/^/| /' conftest.
$ac_ext >&5
13271 ac_header_preproc
=no
13274 rm -f conftest.err conftest.
$ac_ext
13275 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13276 echo "${ECHO_T}$ac_header_preproc" >&6; }
13278 # So? What about this header?
13279 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13281 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13282 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13283 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13284 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13285 ac_header_preproc
=yes
13288 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13289 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13290 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13291 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13292 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13293 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13294 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13295 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13296 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13297 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13298 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13299 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13303 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13304 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13305 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13306 echo $ECHO_N "(cached) $ECHO_C" >&6
13308 ac_cv_header_X11_xpm_h
=$ac_header_preproc
13310 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13311 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13314 if test $ac_cv_header_X11_xpm_h = yes; then
13315 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13316 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13317 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13318 echo $ECHO_N "(cached) $ECHO_C" >&6
13320 ac_check_lib_save_LIBS
=$LIBS
13321 LIBS
="-lXpm -lX11 $LIBS"
13322 cat >conftest.
$ac_ext <<_ACEOF
13325 cat confdefs.h
>>conftest.
$ac_ext
13326 cat >>conftest.
$ac_ext <<_ACEOF
13327 /* end confdefs.h. */
13329 /* Override any GCC internal prototype to avoid an error.
13330 Use char because int might match the return type of a GCC
13331 builtin and then its argument prototype would still apply. */
13335 char XpmReadFileToPixmap ();
13339 return XpmReadFileToPixmap ();
13344 rm -f conftest.
$ac_objext conftest
$ac_exeext
13345 if { (ac_try
="$ac_link"
13346 case "(($ac_try" in
13347 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13348 *) ac_try_echo=$ac_try;;
13350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13351 (eval "$ac_link") 2>conftest.er1
13353 grep -v '^ *+' conftest.er1 >conftest.err
13355 cat conftest.err >&5
13356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13357 (exit $ac_status); } && {
13358 test -z "$ac_c_werror_flag" ||
13359 test ! -s conftest.err
13360 } && test -s conftest$ac_exeext &&
13361 $as_test_x conftest$ac_exeext; then
13362 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13364 echo "$as_me: failed program was:" >&5
13365 sed 's/^/| /' conftest.$ac_ext >&5
13367 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13371 conftest$ac_exeext conftest.$ac_ext
13372 LIBS=$ac_check_lib_save_LIBS
13374 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13375 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13376 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13383 if test "${HAVE_XPM}" = "yes"; then
13384 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13385 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13386 cat >conftest.$ac_ext <<_ACEOF
13389 cat confdefs.h >>conftest.$ac_ext
13390 cat >>conftest.$ac_ext <<_ACEOF
13391 /* end confdefs.h. */
13392 #include "X11/xpm.h"
13393 #ifndef XpmReturnAllocPixels
13394 no_return_alloc_pixels
13398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13399 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13407 if test "${HAVE_XPM}" = "yes"; then
13408 { echo "$as_me:$LINENO: result: yes" >&5
13409 echo "${ECHO_T}yes" >&6; }
13411 { echo "$as_me:$LINENO: result: no" >&5
13412 echo "${ECHO_T}no" >&6; }
13417 if test "${HAVE_XPM}" = "yes"; then
13419 cat >>confdefs.h <<\_ACEOF
13426 ### Use -ljpeg if available, unless `--with-jpeg=no
'.
13428 if test "${HAVE_X11}" = "yes"; then
13429 if test "${with_jpeg}" != "no"; then
13430 if test "${ac_cv_header_jerror_h+set}" = set; then
13431 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13432 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13433 if test "${ac_cv_header_jerror_h+set}" = set; then
13434 echo $ECHO_N "(cached) $ECHO_C" >&6
13436 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13437 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13439 # Is the header compilable?
13440 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13441 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13442 cat >conftest.$ac_ext <<_ACEOF
13445 cat confdefs.h >>conftest.$ac_ext
13446 cat >>conftest.$ac_ext <<_ACEOF
13447 /* end confdefs.h. */
13448 $ac_includes_default
13449 #include <jerror.h>
13451 rm -f conftest.$ac_objext
13452 if { (ac_try="$ac_compile"
13453 case "(($ac_try" in
13454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13455 *) ac_try_echo=$ac_try;;
13457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13458 (eval "$ac_compile") 2>conftest.er1
13460 grep -v '^
*+' conftest.er1 >conftest.err
13462 cat conftest.err >&5
13463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13464 (exit $ac_status); } && {
13465 test -z "$ac_c_werror_flag" ||
13466 test ! -s conftest.err
13467 } && test -s conftest.$ac_objext; then
13468 ac_header_compiler=yes
13470 echo "$as_me: failed program was:" >&5
13471 sed 's
/^
/|
/' conftest.$ac_ext >&5
13473 ac_header_compiler=no
13476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13477 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13478 echo "${ECHO_T}$ac_header_compiler" >&6; }
13480 # Is the header present?
13481 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13482 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13483 cat >conftest.$ac_ext <<_ACEOF
13486 cat confdefs.h >>conftest.$ac_ext
13487 cat >>conftest.$ac_ext <<_ACEOF
13488 /* end confdefs.h. */
13489 #include <jerror.h>
13491 if { (ac_try="$ac_cpp conftest.$ac_ext"
13492 case "(($ac_try" in
13493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13494 *) ac_try_echo=$ac_try;;
13496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13497 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13499 grep -v '^
*+' conftest.er1 >conftest.err
13501 cat conftest.err >&5
13502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13503 (exit $ac_status); } >/dev/null && {
13504 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13505 test ! -s conftest.err
13507 ac_header_preproc=yes
13509 echo "$as_me: failed program was:" >&5
13510 sed 's
/^
/|
/' conftest.$ac_ext >&5
13512 ac_header_preproc=no
13515 rm -f conftest.err conftest.$ac_ext
13516 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13517 echo "${ECHO_T}$ac_header_preproc" >&6; }
13519 # So? What about this header?
13520 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13522 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13523 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13524 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result
" >&5
13525 echo "$as_me: WARNING
: jerror.h
: proceeding with the compiler
's result" >&2;}
13526 ac_header_preproc=yes
13529 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13530 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13531 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13532 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13533 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13534 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13535 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13536 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13537 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result
" >&5
13538 echo "$as_me: WARNING
: jerror.h
: proceeding with the preprocessor
's result" >&2;}
13539 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13540 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13544 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13545 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13546 if test "${ac_cv_header_jerror_h+set}" = set; then
13547 echo $ECHO_N "(cached) $ECHO_C" >&6
13549 ac_cv_header_jerror_h=$ac_header_preproc
13551 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13552 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13555 if test $ac_cv_header_jerror_h = yes; then
13556 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13557 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13558 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13559 echo $ECHO_N "(cached) $ECHO_C" >&6
13561 ac_check_lib_save_LIBS=$LIBS
13562 LIBS="-ljpeg $LIBS"
13563 cat >conftest.$ac_ext <<_ACEOF
13566 cat confdefs.h >>conftest.$ac_ext
13567 cat >>conftest.$ac_ext <<_ACEOF
13568 /* end confdefs.h. */
13570 /* Override any GCC internal prototype to avoid an error.
13571 Use char because int might match the return type of a GCC
13572 builtin and then its argument prototype would still apply. */
13576 char jpeg_destroy_compress ();
13580 return jpeg_destroy_compress ();
13585 rm -f conftest.$ac_objext conftest$ac_exeext
13586 if { (ac_try="$ac_link"
13587 case "(($ac_try" in
13588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13589 *) ac_try_echo=$ac_try;;
13591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13592 (eval "$ac_link") 2>conftest.er1
13594 grep -v '^
*+' conftest.er1 >conftest.err
13596 cat conftest.err >&5
13597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13598 (exit $ac_status); } && {
13599 test -z "$ac_c_werror_flag" ||
13600 test ! -s conftest.err
13601 } && test -s conftest$ac_exeext &&
13602 $as_test_x conftest$ac_exeext; then
13603 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13605 echo "$as_me: failed program was:" >&5
13606 sed 's
/^
/|
/' conftest.$ac_ext >&5
13608 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13612 conftest$ac_exeext conftest.$ac_ext
13613 LIBS=$ac_check_lib_save_LIBS
13615 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13616 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13617 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13627 if test "${HAVE_JPEG}" = "yes"; then
13628 cat >>confdefs.h <<\_ACEOF
13629 #define HAVE_JPEG 1
13632 cat >conftest.$ac_ext <<_ACEOF
13635 cat confdefs.h >>conftest.$ac_ext
13636 cat >>conftest.$ac_ext <<_ACEOF
13637 /* end confdefs.h. */
13638 #include <jpeglib.h>
13639 version=JPEG_LIB_VERSION
13642 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13643 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13644 cat >>confdefs.h <<\_ACEOF
13645 #define HAVE_JPEG 1
13649 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13650 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13658 ### Use -lpng if available, unless `--with-png=no'.
13660 if test "${HAVE_X11}" = "yes"; then
13661 if test "${with_png}" != "no"; then
13662 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13663 # in /usr/include/libpng.
13666 for ac_header
in png.h libpng
/png.h
13668 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13669 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13670 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13671 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13672 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13673 echo $ECHO_N "(cached) $ECHO_C" >&6
13675 ac_res
=`eval echo '${'$as_ac_Header'}'`
13676 { echo "$as_me:$LINENO: result: $ac_res" >&5
13677 echo "${ECHO_T}$ac_res" >&6; }
13679 # Is the header compilable?
13680 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13681 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13682 cat >conftest.
$ac_ext <<_ACEOF
13685 cat confdefs.h
>>conftest.
$ac_ext
13686 cat >>conftest.
$ac_ext <<_ACEOF
13687 /* end confdefs.h. */
13688 $ac_includes_default
13689 #include <$ac_header>
13691 rm -f conftest.
$ac_objext
13692 if { (ac_try
="$ac_compile"
13693 case "(($ac_try" in
13694 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13695 *) ac_try_echo=$ac_try;;
13697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13698 (eval "$ac_compile") 2>conftest.er1
13700 grep -v '^ *+' conftest.er1 >conftest.err
13702 cat conftest.err >&5
13703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13704 (exit $ac_status); } && {
13705 test -z "$ac_c_werror_flag" ||
13706 test ! -s conftest.err
13707 } && test -s conftest.$ac_objext; then
13708 ac_header_compiler=yes
13710 echo "$as_me: failed program was:" >&5
13711 sed 's/^/| /' conftest.$ac_ext >&5
13713 ac_header_compiler=no
13716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13717 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13718 echo "${ECHO_T}$ac_header_compiler" >&6; }
13720 # Is the header present?
13721 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13722 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13723 cat >conftest.$ac_ext <<_ACEOF
13726 cat confdefs.h >>conftest.$ac_ext
13727 cat >>conftest.$ac_ext <<_ACEOF
13728 /* end confdefs.h. */
13729 #include <$ac_header>
13731 if { (ac_try="$ac_cpp conftest.$ac_ext"
13732 case "(($ac_try" in
13733 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13734 *) ac_try_echo
=$ac_try;;
13736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13737 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13739 grep -v '^ *+' conftest.er1
>conftest.err
13741 cat conftest.err
>&5
13742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743 (exit $ac_status); } >/dev
/null
&& {
13744 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13745 test ! -s conftest.err
13747 ac_header_preproc
=yes
13749 echo "$as_me: failed program was:" >&5
13750 sed 's/^/| /' conftest.
$ac_ext >&5
13752 ac_header_preproc
=no
13755 rm -f conftest.err conftest.
$ac_ext
13756 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13757 echo "${ECHO_T}$ac_header_preproc" >&6; }
13759 # So? What about this header?
13760 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13762 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13763 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13764 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13765 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13766 ac_header_preproc
=yes
13769 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13770 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13771 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13772 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13773 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13774 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13775 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13776 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13777 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13778 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13779 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13780 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13784 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13786 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13787 echo $ECHO_N "(cached) $ECHO_C" >&6
13789 eval "$as_ac_Header=\$ac_header_preproc"
13791 ac_res
=`eval echo '${'$as_ac_Header'}'`
13792 { echo "$as_me:$LINENO: result: $ac_res" >&5
13793 echo "${ECHO_T}$ac_res" >&6; }
13796 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13797 cat >>confdefs.h
<<_ACEOF
13798 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13805 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
13806 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13807 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13808 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13809 echo $ECHO_N "(cached) $ECHO_C" >&6
13811 ac_check_lib_save_LIBS
=$LIBS
13812 LIBS
="-lpng -lz -lm $LIBS"
13813 cat >conftest.
$ac_ext <<_ACEOF
13816 cat confdefs.h
>>conftest.
$ac_ext
13817 cat >>conftest.
$ac_ext <<_ACEOF
13818 /* end confdefs.h. */
13820 /* Override any GCC internal prototype to avoid an error.
13821 Use char because int might match the return type of a GCC
13822 builtin and then its argument prototype would still apply. */
13826 char png_get_channels ();
13830 return png_get_channels ();
13835 rm -f conftest.
$ac_objext conftest
$ac_exeext
13836 if { (ac_try
="$ac_link"
13837 case "(($ac_try" in
13838 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13839 *) ac_try_echo=$ac_try;;
13841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13842 (eval "$ac_link") 2>conftest.er1
13844 grep -v '^ *+' conftest.er1 >conftest.err
13846 cat conftest.err >&5
13847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13848 (exit $ac_status); } && {
13849 test -z "$ac_c_werror_flag" ||
13850 test ! -s conftest.err
13851 } && test -s conftest$ac_exeext &&
13852 $as_test_x conftest$ac_exeext; then
13853 ac_cv_lib_png_png_get_channels=yes
13855 echo "$as_me: failed program was:" >&5
13856 sed 's/^/| /' conftest.$ac_ext >&5
13858 ac_cv_lib_png_png_get_channels=no
13861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13862 conftest$ac_exeext conftest.$ac_ext
13863 LIBS=$ac_check_lib_save_LIBS
13865 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13866 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13867 if test $ac_cv_lib_png_png_get_channels = yes; then
13874 if test "${HAVE_PNG}" = "yes"; then
13876 cat >>confdefs.h <<\_ACEOF
13883 ### Use -ltiff if available, unless `--with-tiff=no
'.
13885 if test "${HAVE_X11}" = "yes"; then
13886 if test "${with_tiff}" != "no"; then
13887 if test "${ac_cv_header_tiffio_h+set}" = set; then
13888 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13889 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13890 if test "${ac_cv_header_tiffio_h+set}" = set; then
13891 echo $ECHO_N "(cached) $ECHO_C" >&6
13893 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13894 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13896 # Is the header compilable?
13897 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13898 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13899 cat >conftest.$ac_ext <<_ACEOF
13902 cat confdefs.h >>conftest.$ac_ext
13903 cat >>conftest.$ac_ext <<_ACEOF
13904 /* end confdefs.h. */
13905 $ac_includes_default
13906 #include <tiffio.h>
13908 rm -f conftest.$ac_objext
13909 if { (ac_try="$ac_compile"
13910 case "(($ac_try" in
13911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13912 *) ac_try_echo=$ac_try;;
13914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13915 (eval "$ac_compile") 2>conftest.er1
13917 grep -v '^
*+' conftest.er1 >conftest.err
13919 cat conftest.err >&5
13920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13921 (exit $ac_status); } && {
13922 test -z "$ac_c_werror_flag" ||
13923 test ! -s conftest.err
13924 } && test -s conftest.$ac_objext; then
13925 ac_header_compiler=yes
13927 echo "$as_me: failed program was:" >&5
13928 sed 's
/^
/|
/' conftest.$ac_ext >&5
13930 ac_header_compiler=no
13933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13934 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13935 echo "${ECHO_T}$ac_header_compiler" >&6; }
13937 # Is the header present?
13938 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13939 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13940 cat >conftest.$ac_ext <<_ACEOF
13943 cat confdefs.h >>conftest.$ac_ext
13944 cat >>conftest.$ac_ext <<_ACEOF
13945 /* end confdefs.h. */
13946 #include <tiffio.h>
13948 if { (ac_try="$ac_cpp conftest.$ac_ext"
13949 case "(($ac_try" in
13950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13951 *) ac_try_echo=$ac_try;;
13953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13954 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13956 grep -v '^
*+' conftest.er1 >conftest.err
13958 cat conftest.err >&5
13959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13960 (exit $ac_status); } >/dev/null && {
13961 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13962 test ! -s conftest.err
13964 ac_header_preproc=yes
13966 echo "$as_me: failed program was:" >&5
13967 sed 's
/^
/|
/' conftest.$ac_ext >&5
13969 ac_header_preproc=no
13972 rm -f conftest.err conftest.$ac_ext
13973 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13974 echo "${ECHO_T}$ac_header_preproc" >&6; }
13976 # So? What about this header?
13977 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13979 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13980 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13981 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result
" >&5
13982 echo "$as_me: WARNING
: tiffio.h
: proceeding with the compiler
's result" >&2;}
13983 ac_header_preproc=yes
13986 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13987 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13988 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13989 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13990 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13991 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13992 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13993 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13994 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result
" >&5
13995 echo "$as_me: WARNING
: tiffio.h
: proceeding with the preprocessor
's result" >&2;}
13996 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13997 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
14001 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14002 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14003 if test "${ac_cv_header_tiffio_h+set}" = set; then
14004 echo $ECHO_N "(cached) $ECHO_C" >&6
14006 ac_cv_header_tiffio_h=$ac_header_preproc
14008 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14009 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14012 if test $ac_cv_header_tiffio_h = yes; then
14014 # At least one tiff package requires the jpeg library.
14015 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14016 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
14017 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
14018 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14019 echo $ECHO_N "(cached) $ECHO_C" >&6
14021 ac_check_lib_save_LIBS=$LIBS
14022 LIBS="-ltiff $tifflibs $LIBS"
14023 cat >conftest.$ac_ext <<_ACEOF
14026 cat confdefs.h >>conftest.$ac_ext
14027 cat >>conftest.$ac_ext <<_ACEOF
14028 /* end confdefs.h. */
14030 /* Override any GCC internal prototype to avoid an error.
14031 Use char because int might match the return type of a GCC
14032 builtin and then its argument prototype would still apply. */
14036 char TIFFGetVersion ();
14040 return TIFFGetVersion ();
14045 rm -f conftest.$ac_objext conftest$ac_exeext
14046 if { (ac_try="$ac_link"
14047 case "(($ac_try" in
14048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14049 *) ac_try_echo=$ac_try;;
14051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14052 (eval "$ac_link") 2>conftest.er1
14054 grep -v '^
*+' conftest.er1 >conftest.err
14056 cat conftest.err >&5
14057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14058 (exit $ac_status); } && {
14059 test -z "$ac_c_werror_flag" ||
14060 test ! -s conftest.err
14061 } && test -s conftest$ac_exeext &&
14062 $as_test_x conftest$ac_exeext; then
14063 ac_cv_lib_tiff_TIFFGetVersion=yes
14065 echo "$as_me: failed program was:" >&5
14066 sed 's
/^
/|
/' conftest.$ac_ext >&5
14068 ac_cv_lib_tiff_TIFFGetVersion=no
14071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14072 conftest$ac_exeext conftest.$ac_ext
14073 LIBS=$ac_check_lib_save_LIBS
14075 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14076 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14077 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14086 if test "${HAVE_TIFF}" = "yes"; then
14088 cat >>confdefs.h <<\_ACEOF
14089 #define HAVE_TIFF 1
14095 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14097 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14098 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14099 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14100 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14101 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14102 echo $ECHO_N "(cached) $ECHO_C" >&6
14104 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14105 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14107 # Is the header compilable?
14108 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14109 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14110 cat >conftest.
$ac_ext <<_ACEOF
14113 cat confdefs.h
>>conftest.
$ac_ext
14114 cat >>conftest.
$ac_ext <<_ACEOF
14115 /* end confdefs.h. */
14116 $ac_includes_default
14117 #include <gif_lib.h>
14119 rm -f conftest.
$ac_objext
14120 if { (ac_try
="$ac_compile"
14121 case "(($ac_try" in
14122 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14123 *) ac_try_echo=$ac_try;;
14125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14126 (eval "$ac_compile") 2>conftest.er1
14128 grep -v '^ *+' conftest.er1 >conftest.err
14130 cat conftest.err >&5
14131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14132 (exit $ac_status); } && {
14133 test -z "$ac_c_werror_flag" ||
14134 test ! -s conftest.err
14135 } && test -s conftest.$ac_objext; then
14136 ac_header_compiler=yes
14138 echo "$as_me: failed program was:" >&5
14139 sed 's/^/| /' conftest.$ac_ext >&5
14141 ac_header_compiler=no
14144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14145 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14146 echo "${ECHO_T}$ac_header_compiler" >&6; }
14148 # Is the header present?
14149 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14150 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14151 cat >conftest.$ac_ext <<_ACEOF
14154 cat confdefs.h >>conftest.$ac_ext
14155 cat >>conftest.$ac_ext <<_ACEOF
14156 /* end confdefs.h. */
14157 #include <gif_lib.h>
14159 if { (ac_try="$ac_cpp conftest.$ac_ext"
14160 case "(($ac_try" in
14161 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14162 *) ac_try_echo
=$ac_try;;
14164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14165 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14167 grep -v '^ *+' conftest.er1
>conftest.err
14169 cat conftest.err
>&5
14170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14171 (exit $ac_status); } >/dev
/null
&& {
14172 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14173 test ! -s conftest.err
14175 ac_header_preproc
=yes
14177 echo "$as_me: failed program was:" >&5
14178 sed 's/^/| /' conftest.
$ac_ext >&5
14180 ac_header_preproc
=no
14183 rm -f conftest.err conftest.
$ac_ext
14184 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14185 echo "${ECHO_T}$ac_header_preproc" >&6; }
14187 # So? What about this header?
14188 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14190 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14191 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14192 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14193 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14194 ac_header_preproc
=yes
14197 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14198 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14199 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14200 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14201 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14202 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14203 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14204 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14205 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14206 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14207 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14208 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14212 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14213 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14214 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14215 echo $ECHO_N "(cached) $ECHO_C" >&6
14217 ac_cv_header_gif_lib_h
=$ac_header_preproc
14219 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14220 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14223 if test $ac_cv_header_gif_lib_h = yes; then
14224 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14225 # Earlier versions can crash Emacs.
14226 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14227 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
14228 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14229 echo $ECHO_N "(cached) $ECHO_C" >&6
14231 ac_check_lib_save_LIBS
=$LIBS
14233 cat >conftest.
$ac_ext <<_ACEOF
14236 cat confdefs.h
>>conftest.
$ac_ext
14237 cat >>conftest.
$ac_ext <<_ACEOF
14238 /* end confdefs.h. */
14240 /* Override any GCC internal prototype to avoid an error.
14241 Use char because int might match the return type of a GCC
14242 builtin and then its argument prototype would still apply. */
14246 char EGifPutExtensionLast ();
14250 return EGifPutExtensionLast ();
14255 rm -f conftest.
$ac_objext conftest
$ac_exeext
14256 if { (ac_try
="$ac_link"
14257 case "(($ac_try" in
14258 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14259 *) ac_try_echo=$ac_try;;
14261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14262 (eval "$ac_link") 2>conftest.er1
14264 grep -v '^ *+' conftest.er1 >conftest.err
14266 cat conftest.err >&5
14267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14268 (exit $ac_status); } && {
14269 test -z "$ac_c_werror_flag" ||
14270 test ! -s conftest.err
14271 } && test -s conftest$ac_exeext &&
14272 $as_test_x conftest$ac_exeext; then
14273 ac_cv_lib_gif_EGifPutExtensionLast=yes
14275 echo "$as_me: failed program was:" >&5
14276 sed 's/^/| /' conftest.$ac_ext >&5
14278 ac_cv_lib_gif_EGifPutExtensionLast=no
14281 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14282 conftest$ac_exeext conftest.$ac_ext
14283 LIBS=$ac_check_lib_save_LIBS
14285 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14286 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14287 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14297 if test "$HAVE_GIF" = yes; then
14298 ac_gif_lib_name="-lgif"
14301 # If gif_lib.h but no libgif, try libungif.
14302 if test x"$try_libungif" = xyes; then
14303 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14304 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14305 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14306 echo $ECHO_N "(cached) $ECHO_C" >&6
14308 ac_check_lib_save_LIBS=$LIBS
14309 LIBS="-lungif $LIBS"
14310 cat >conftest.$ac_ext <<_ACEOF
14313 cat confdefs.h >>conftest.$ac_ext
14314 cat >>conftest.$ac_ext <<_ACEOF
14315 /* end confdefs.h. */
14317 /* Override any GCC internal prototype to avoid an error.
14318 Use char because int might match the return type of a GCC
14319 builtin and then its argument prototype would still apply. */
14323 char EGifPutExtensionLast ();
14327 return EGifPutExtensionLast ();
14332 rm -f conftest.$ac_objext conftest$ac_exeext
14333 if { (ac_try="$ac_link"
14334 case "(($ac_try" in
14335 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14336 *) ac_try_echo
=$ac_try;;
14338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14339 (eval "$ac_link") 2>conftest.er1
14341 grep -v '^ *+' conftest.er1
>conftest.err
14343 cat conftest.err
>&5
14344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14345 (exit $ac_status); } && {
14346 test -z "$ac_c_werror_flag" ||
14347 test ! -s conftest.err
14348 } && test -s conftest
$ac_exeext &&
14349 $as_test_x conftest
$ac_exeext; then
14350 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
14352 echo "$as_me: failed program was:" >&5
14353 sed 's/^/| /' conftest.
$ac_ext >&5
14355 ac_cv_lib_ungif_EGifPutExtensionLast
=no
14358 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14359 conftest
$ac_exeext conftest.
$ac_ext
14360 LIBS
=$ac_check_lib_save_LIBS
14362 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14363 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14364 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14369 if test "$HAVE_GIF" = yes; then
14371 cat >>confdefs.h
<<\_ACEOF
14372 #define LIBGIF -lungif
14375 ac_gif_lib_name
="-lungif"
14379 if test "${HAVE_GIF}" = "yes"; then
14381 cat >>confdefs.h
<<\_ACEOF
14388 if test "${HAVE_X11}" = "yes"; then
14391 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14392 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
14393 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14394 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
14395 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14396 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
14397 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14398 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
14399 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14400 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
14402 if test "X${MISSING}" != X
; then
14403 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
14405 Maybe some development libraries/packages are missing?
14406 If you don't want to link with them give
14408 as options to configure" >&5
14409 echo "$as_me: error: The following required libraries were not found:
14411 Maybe some development libraries/packages are missing?
14412 If you don't want to link with them give
14414 as options to configure" >&2;}
14415 { (exit 1); exit 1; }; }
14419 ### Use -lgpm if available, unless `--with-gpm=no'.
14421 if test "${with_gpm}" != "no"; then
14422 if test "${ac_cv_header_gpm_h+set}" = set; then
14423 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14424 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14425 if test "${ac_cv_header_gpm_h+set}" = set; then
14426 echo $ECHO_N "(cached) $ECHO_C" >&6
14428 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14429 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14431 # Is the header compilable?
14432 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14433 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14434 cat >conftest.
$ac_ext <<_ACEOF
14437 cat confdefs.h
>>conftest.
$ac_ext
14438 cat >>conftest.
$ac_ext <<_ACEOF
14439 /* end confdefs.h. */
14440 $ac_includes_default
14443 rm -f conftest.
$ac_objext
14444 if { (ac_try
="$ac_compile"
14445 case "(($ac_try" in
14446 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14447 *) ac_try_echo=$ac_try;;
14449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14450 (eval "$ac_compile") 2>conftest.er1
14452 grep -v '^ *+' conftest.er1 >conftest.err
14454 cat conftest.err >&5
14455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14456 (exit $ac_status); } && {
14457 test -z "$ac_c_werror_flag" ||
14458 test ! -s conftest.err
14459 } && test -s conftest.$ac_objext; then
14460 ac_header_compiler=yes
14462 echo "$as_me: failed program was:" >&5
14463 sed 's/^/| /' conftest.$ac_ext >&5
14465 ac_header_compiler=no
14468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14469 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14470 echo "${ECHO_T}$ac_header_compiler" >&6; }
14472 # Is the header present?
14473 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14474 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14475 cat >conftest.$ac_ext <<_ACEOF
14478 cat confdefs.h >>conftest.$ac_ext
14479 cat >>conftest.$ac_ext <<_ACEOF
14480 /* end confdefs.h. */
14483 if { (ac_try="$ac_cpp conftest.$ac_ext"
14484 case "(($ac_try" in
14485 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14486 *) ac_try_echo
=$ac_try;;
14488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14489 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14491 grep -v '^ *+' conftest.er1
>conftest.err
14493 cat conftest.err
>&5
14494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14495 (exit $ac_status); } >/dev
/null
&& {
14496 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14497 test ! -s conftest.err
14499 ac_header_preproc
=yes
14501 echo "$as_me: failed program was:" >&5
14502 sed 's/^/| /' conftest.
$ac_ext >&5
14504 ac_header_preproc
=no
14507 rm -f conftest.err conftest.
$ac_ext
14508 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14509 echo "${ECHO_T}$ac_header_preproc" >&6; }
14511 # So? What about this header?
14512 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14514 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14515 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14516 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14517 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14518 ac_header_preproc
=yes
14521 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14522 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14523 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14524 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14525 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14526 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14527 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14528 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14529 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14530 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14531 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14532 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14536 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14537 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14538 if test "${ac_cv_header_gpm_h+set}" = set; then
14539 echo $ECHO_N "(cached) $ECHO_C" >&6
14541 ac_cv_header_gpm_h
=$ac_header_preproc
14543 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14544 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14547 if test $ac_cv_header_gpm_h = yes; then
14548 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14549 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14550 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14551 echo $ECHO_N "(cached) $ECHO_C" >&6
14553 ac_check_lib_save_LIBS
=$LIBS
14555 cat >conftest.
$ac_ext <<_ACEOF
14558 cat confdefs.h
>>conftest.
$ac_ext
14559 cat >>conftest.
$ac_ext <<_ACEOF
14560 /* end confdefs.h. */
14562 /* Override any GCC internal prototype to avoid an error.
14563 Use char because int might match the return type of a GCC
14564 builtin and then its argument prototype would still apply. */
14572 return Gpm_Open ();
14577 rm -f conftest.
$ac_objext conftest
$ac_exeext
14578 if { (ac_try
="$ac_link"
14579 case "(($ac_try" in
14580 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14581 *) ac_try_echo=$ac_try;;
14583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14584 (eval "$ac_link") 2>conftest.er1
14586 grep -v '^ *+' conftest.er1 >conftest.err
14588 cat conftest.err >&5
14589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14590 (exit $ac_status); } && {
14591 test -z "$ac_c_werror_flag" ||
14592 test ! -s conftest.err
14593 } && test -s conftest$ac_exeext &&
14594 $as_test_x conftest$ac_exeext; then
14595 ac_cv_lib_gpm_Gpm_Open=yes
14597 echo "$as_me: failed program was:" >&5
14598 sed 's/^/| /' conftest.$ac_ext >&5
14600 ac_cv_lib_gpm_Gpm_Open=no
14603 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14604 conftest$ac_exeext conftest.$ac_ext
14605 LIBS=$ac_check_lib_save_LIBS
14607 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14608 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14609 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14618 if test "${HAVE_GPM}" = "yes"; then
14620 cat >>confdefs.h <<\_ACEOF
14626 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14627 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14628 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14629 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14630 echo $ECHO_N "(cached) $ECHO_C" >&6
14632 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14633 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14635 # Is the header compilable?
14636 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14637 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14638 cat >conftest.$ac_ext <<_ACEOF
14641 cat confdefs.h >>conftest.$ac_ext
14642 cat >>conftest.$ac_ext <<_ACEOF
14643 /* end confdefs.h. */
14644 $ac_includes_default
14645 #include <malloc/malloc.h>
14647 rm -f conftest.$ac_objext
14648 if { (ac_try="$ac_compile"
14649 case "(($ac_try" in
14650 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14651 *) ac_try_echo
=$ac_try;;
14653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14654 (eval "$ac_compile") 2>conftest.er1
14656 grep -v '^ *+' conftest.er1
>conftest.err
14658 cat conftest.err
>&5
14659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14660 (exit $ac_status); } && {
14661 test -z "$ac_c_werror_flag" ||
14662 test ! -s conftest.err
14663 } && test -s conftest.
$ac_objext; then
14664 ac_header_compiler
=yes
14666 echo "$as_me: failed program was:" >&5
14667 sed 's/^/| /' conftest.
$ac_ext >&5
14669 ac_header_compiler
=no
14672 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14673 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14674 echo "${ECHO_T}$ac_header_compiler" >&6; }
14676 # Is the header present?
14677 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14678 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14679 cat >conftest.
$ac_ext <<_ACEOF
14682 cat confdefs.h
>>conftest.
$ac_ext
14683 cat >>conftest.
$ac_ext <<_ACEOF
14684 /* end confdefs.h. */
14685 #include <malloc/malloc.h>
14687 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14688 case "(($ac_try" in
14689 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14690 *) ac_try_echo=$ac_try;;
14692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14693 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14695 grep -v '^ *+' conftest.er1 >conftest.err
14697 cat conftest.err >&5
14698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14699 (exit $ac_status); } >/dev/null && {
14700 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14701 test ! -s conftest.err
14703 ac_header_preproc=yes
14705 echo "$as_me: failed program was:" >&5
14706 sed 's/^/| /' conftest.$ac_ext >&5
14708 ac_header_preproc=no
14711 rm -f conftest.err conftest.$ac_ext
14712 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14713 echo "${ECHO_T}$ac_header_preproc" >&6; }
14715 # So? What about this header?
14716 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14718 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14719 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14720 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14721 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14722 ac_header_preproc=yes
14725 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14726 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14727 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14728 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14729 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14730 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14731 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14732 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14733 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14734 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14735 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14736 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14740 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14741 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14742 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14743 echo $ECHO_N "(cached) $ECHO_C" >&6
14745 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14747 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14748 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14751 if test $ac_cv_header_malloc_malloc_h = yes; then
14753 cat >>confdefs.h <<\_ACEOF
14754 #define HAVE_MALLOC_MALLOC_H 1
14761 ### Use Mac OS X Carbon API to implement GUI.
14762 if test "${HAVE_CARBON}" = "yes"; then
14764 cat >>confdefs.h <<\_ACEOF
14765 #define HAVE_CARBON 1
14768 ## Specify the install directory
14770 if test "${carbon_appdir_x}" != ""; then
14771 case ${carbon_appdir_x} in
14772 y | ye | yes) carbon_appdir=/Applications ;;
14773 * ) carbon_appdir=${carbon_appdir_x} ;;
14776 # We also have mouse menus.
14780 ### Use session management (-lSM -lICE) if available
14782 if test "${HAVE_X11}" = "yes"; then
14783 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14784 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14785 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14786 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14787 echo $ECHO_N "(cached) $ECHO_C" >&6
14789 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14790 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14792 # Is the header compilable?
14793 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14794 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14795 cat >conftest.$ac_ext <<_ACEOF
14798 cat confdefs.h >>conftest.$ac_ext
14799 cat >>conftest.$ac_ext <<_ACEOF
14800 /* end confdefs.h. */
14801 $ac_includes_default
14802 #include <X11/SM/SMlib.h>
14804 rm -f conftest.$ac_objext
14805 if { (ac_try="$ac_compile"
14806 case "(($ac_try" in
14807 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14808 *) ac_try_echo
=$ac_try;;
14810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14811 (eval "$ac_compile") 2>conftest.er1
14813 grep -v '^ *+' conftest.er1
>conftest.err
14815 cat conftest.err
>&5
14816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14817 (exit $ac_status); } && {
14818 test -z "$ac_c_werror_flag" ||
14819 test ! -s conftest.err
14820 } && test -s conftest.
$ac_objext; then
14821 ac_header_compiler
=yes
14823 echo "$as_me: failed program was:" >&5
14824 sed 's/^/| /' conftest.
$ac_ext >&5
14826 ac_header_compiler
=no
14829 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14830 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14831 echo "${ECHO_T}$ac_header_compiler" >&6; }
14833 # Is the header present?
14834 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14835 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14836 cat >conftest.
$ac_ext <<_ACEOF
14839 cat confdefs.h
>>conftest.
$ac_ext
14840 cat >>conftest.
$ac_ext <<_ACEOF
14841 /* end confdefs.h. */
14842 #include <X11/SM/SMlib.h>
14844 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14845 case "(($ac_try" in
14846 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14847 *) ac_try_echo=$ac_try;;
14849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14850 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14852 grep -v '^ *+' conftest.er1 >conftest.err
14854 cat conftest.err >&5
14855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14856 (exit $ac_status); } >/dev/null && {
14857 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14858 test ! -s conftest.err
14860 ac_header_preproc=yes
14862 echo "$as_me: failed program was:" >&5
14863 sed 's/^/| /' conftest.$ac_ext >&5
14865 ac_header_preproc=no
14868 rm -f conftest.err conftest.$ac_ext
14869 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14870 echo "${ECHO_T}$ac_header_preproc" >&6; }
14872 # So? What about this header?
14873 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14875 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14876 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14877 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14878 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14879 ac_header_preproc=yes
14882 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14883 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14884 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14885 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14886 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14887 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14888 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14889 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14890 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14891 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14892 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14893 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14897 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14898 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14899 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14900 echo $ECHO_N "(cached) $ECHO_C" >&6
14902 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14904 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14905 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14908 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14909 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14910 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14911 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14912 echo $ECHO_N "(cached) $ECHO_C" >&6
14914 ac_check_lib_save_LIBS=$LIBS
14915 LIBS="-lSM -lICE $LIBS"
14916 cat >conftest.$ac_ext <<_ACEOF
14919 cat confdefs.h >>conftest.$ac_ext
14920 cat >>conftest.$ac_ext <<_ACEOF
14921 /* end confdefs.h. */
14923 /* Override any GCC internal prototype to avoid an error.
14924 Use char because int might match the return type of a GCC
14925 builtin and then its argument prototype would still apply. */
14929 char SmcOpenConnection ();
14933 return SmcOpenConnection ();
14938 rm -f conftest.$ac_objext conftest$ac_exeext
14939 if { (ac_try="$ac_link"
14940 case "(($ac_try" in
14941 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14942 *) ac_try_echo
=$ac_try;;
14944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14945 (eval "$ac_link") 2>conftest.er1
14947 grep -v '^ *+' conftest.er1
>conftest.err
14949 cat conftest.err
>&5
14950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14951 (exit $ac_status); } && {
14952 test -z "$ac_c_werror_flag" ||
14953 test ! -s conftest.err
14954 } && test -s conftest
$ac_exeext &&
14955 $as_test_x conftest
$ac_exeext; then
14956 ac_cv_lib_SM_SmcOpenConnection
=yes
14958 echo "$as_me: failed program was:" >&5
14959 sed 's/^/| /' conftest.
$ac_ext >&5
14961 ac_cv_lib_SM_SmcOpenConnection
=no
14964 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14965 conftest
$ac_exeext conftest.
$ac_ext
14966 LIBS
=$ac_check_lib_save_LIBS
14968 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14969 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14970 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14978 if test "${HAVE_X_SM}" = "yes"; then
14980 cat >>confdefs.h
<<\_ACEOF
14981 #define HAVE_X_SM 1
14986 *) LIBS
="-lSM -lICE $LIBS" ;;
14991 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14992 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14993 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14994 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14995 echo $ECHO_N "(cached) $ECHO_C" >&6
14997 cat >conftest.
$ac_ext <<_ACEOF
15000 cat confdefs.h
>>conftest.
$ac_ext
15001 cat >>conftest.
$ac_ext <<_ACEOF
15002 /* end confdefs.h. */
15012 rm -f conftest.
$ac_objext conftest
$ac_exeext
15013 if { (ac_try
="$ac_link"
15014 case "(($ac_try" in
15015 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15016 *) ac_try_echo=$ac_try;;
15018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15019 (eval "$ac_link") 2>conftest.er1
15021 grep -v '^ *+' conftest.er1 >conftest.err
15023 cat conftest.err >&5
15024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025 (exit $ac_status); } && {
15026 test -z "$ac_c_werror_flag" ||
15027 test ! -s conftest.err
15028 } && test -s conftest$ac_exeext &&
15029 $as_test_x conftest$ac_exeext; then
15030 emacs_cv_netdb_declares_h_errno=yes
15032 echo "$as_me: failed program was:" >&5
15033 sed 's/^/| /' conftest.$ac_ext >&5
15035 emacs_cv_netdb_declares_h_errno=no
15038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15039 conftest$ac_exeext conftest.$ac_ext
15041 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15042 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
15043 if test $emacs_cv_netdb_declares_h_errno = yes; then
15045 cat >>confdefs.h <<\_ACEOF
15046 #define HAVE_H_ERRNO 1
15051 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15052 # for constant arguments. Useless!
15053 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
15054 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
15055 if test "${ac_cv_working_alloca_h+set}" = set; then
15056 echo $ECHO_N "(cached) $ECHO_C" >&6
15058 cat >conftest.$ac_ext <<_ACEOF
15061 cat confdefs.h >>conftest.$ac_ext
15062 cat >>conftest.$ac_ext <<_ACEOF
15063 /* end confdefs.h. */
15064 #include <alloca.h>
15068 char *p = (char *) alloca (2 * sizeof (int));
15074 rm -f conftest.$ac_objext conftest$ac_exeext
15075 if { (ac_try="$ac_link"
15076 case "(($ac_try" in
15077 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15078 *) ac_try_echo
=$ac_try;;
15080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15081 (eval "$ac_link") 2>conftest.er1
15083 grep -v '^ *+' conftest.er1
>conftest.err
15085 cat conftest.err
>&5
15086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15087 (exit $ac_status); } && {
15088 test -z "$ac_c_werror_flag" ||
15089 test ! -s conftest.err
15090 } && test -s conftest
$ac_exeext &&
15091 $as_test_x conftest
$ac_exeext; then
15092 ac_cv_working_alloca_h
=yes
15094 echo "$as_me: failed program was:" >&5
15095 sed 's/^/| /' conftest.
$ac_ext >&5
15097 ac_cv_working_alloca_h
=no
15100 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15101 conftest
$ac_exeext conftest.
$ac_ext
15103 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15104 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15105 if test $ac_cv_working_alloca_h = yes; then
15107 cat >>confdefs.h
<<\_ACEOF
15108 #define HAVE_ALLOCA_H 1
15113 { echo "$as_me:$LINENO: checking for alloca" >&5
15114 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15115 if test "${ac_cv_func_alloca_works+set}" = set; then
15116 echo $ECHO_N "(cached) $ECHO_C" >&6
15118 cat >conftest.
$ac_ext <<_ACEOF
15121 cat confdefs.h
>>conftest.
$ac_ext
15122 cat >>conftest.
$ac_ext <<_ACEOF
15123 /* end confdefs.h. */
15125 # define alloca __builtin_alloca
15128 # include <malloc.h>
15129 # define alloca _alloca
15131 # ifdef HAVE_ALLOCA_H
15132 # include <alloca.h>
15137 # ifndef alloca /* predefined by HP cc +Olibcalls */
15148 char *p = (char *) alloca (1);
15154 rm -f conftest.
$ac_objext conftest
$ac_exeext
15155 if { (ac_try
="$ac_link"
15156 case "(($ac_try" in
15157 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15158 *) ac_try_echo=$ac_try;;
15160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15161 (eval "$ac_link") 2>conftest.er1
15163 grep -v '^ *+' conftest.er1 >conftest.err
15165 cat conftest.err >&5
15166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167 (exit $ac_status); } && {
15168 test -z "$ac_c_werror_flag" ||
15169 test ! -s conftest.err
15170 } && test -s conftest$ac_exeext &&
15171 $as_test_x conftest$ac_exeext; then
15172 ac_cv_func_alloca_works=yes
15174 echo "$as_me: failed program was:" >&5
15175 sed 's/^/| /' conftest.$ac_ext >&5
15177 ac_cv_func_alloca_works=no
15180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15181 conftest$ac_exeext conftest.$ac_ext
15183 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15184 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15186 if test $ac_cv_func_alloca_works = yes; then
15188 cat >>confdefs.h <<\_ACEOF
15189 #define HAVE_ALLOCA 1
15193 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15194 # that cause trouble. Some versions do not even contain alloca or
15195 # contain a buggy version. If you still want to use their alloca,
15196 # use ar to extract alloca.o from them instead of compiling alloca.c.
15198 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15200 cat >>confdefs.h <<\_ACEOF
15205 { echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
15206 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks...
$ECHO_C" >&6; }
15207 if test "${ac_cv_os_cray+set}" = set; then
15208 echo $ECHO_N "(cached
) $ECHO_C" >&6
15210 cat >conftest.$ac_ext <<_ACEOF
15213 cat confdefs.h >>conftest.$ac_ext
15214 cat >>conftest.$ac_ext <<_ACEOF
15215 /* end confdefs.h. */
15216 #if defined CRAY && ! defined CRAY2
15223 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
15224 $EGREP "webecray
" >/dev/null 2>&1; then
15232 { echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
15233 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15234 if test $ac_cv_os_cray = yes; then
15235 for ac_func in _getb67 GETB67 getb67; do
15236 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15237 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15238 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15239 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15240 echo $ECHO_N "(cached
) $ECHO_C" >&6
15242 cat >conftest.$ac_ext <<_ACEOF
15245 cat confdefs.h >>conftest.$ac_ext
15246 cat >>conftest.$ac_ext <<_ACEOF
15247 /* end confdefs.h. */
15248 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15249 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15250 #define $ac_func innocuous_$ac_func
15252 /* System header to define __stub macros and hopefully few prototypes,
15253 which can conflict with char $ac_func (); below.
15254 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15255 <limits.h> exists even on freestanding compilers. */
15258 # include <limits.h>
15260 # include <assert.h>
15265 /* Override any GCC internal prototype to avoid an error.
15266 Use char because int might match the return type of a GCC
15267 builtin and then its argument prototype would still apply. */
15272 /* The GNU C library defines this for functions which it implements
15273 to always fail with ENOSYS. Some functions are actually named
15274 something starting with __ and the normal name is an alias. */
15275 #if defined __stub_$ac_func || defined __stub___$ac_func
15282 return $ac_func ();
15287 rm -f conftest.$ac_objext conftest$ac_exeext
15288 if { (ac_try="$ac_link"
15289 case "(($ac_try" in
15290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15291 *) ac_try_echo=$ac_try;;
15293 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15294 (eval "$ac_link") 2>conftest.er1
15296 grep -v '^ *+' conftest.er1 >conftest.err
15298 cat conftest.err >&5
15299 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15300 (exit $ac_status); } && {
15301 test -z "$ac_c_werror_flag" ||
15302 test ! -s conftest.err
15303 } && test -s conftest$ac_exeext &&
15304 $as_test_x conftest$ac_exeext; then
15305 eval "$as_ac_var=yes"
15307 echo "$as_me: failed program was
:" >&5
15308 sed 's/^/| /' conftest.$ac_ext >&5
15310 eval "$as_ac_var=no
"
15313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15314 conftest$ac_exeext conftest.$ac_ext
15316 ac_res=`eval echo '${'$as_ac_var'}'`
15317 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15318 echo "${ECHO_T}$ac_res" >&6; }
15319 if test `eval echo '${'$as_ac_var'}'` = yes; then
15321 cat >>confdefs.h <<_ACEOF
15322 #define CRAY_STACKSEG_END $ac_func
15331 { echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
15332 echo $ECHO_N "checking stack direction
for C alloca...
$ECHO_C" >&6; }
15333 if test "${ac_cv_c_stack_direction+set}" = set; then
15334 echo $ECHO_N "(cached
) $ECHO_C" >&6
15336 if test "$cross_compiling" = yes; then
15337 ac_cv_c_stack_direction=0
15339 cat >conftest.$ac_ext <<_ACEOF
15342 cat confdefs.h >>conftest.$ac_ext
15343 cat >>conftest.$ac_ext <<_ACEOF
15344 /* end confdefs.h. */
15345 $ac_includes_default
15347 find_stack_direction ()
15349 static char *addr = 0;
15354 return find_stack_direction ();
15357 return (&dummy > addr) ? 1 : -1;
15363 return find_stack_direction () < 0;
15366 rm -f conftest$ac_exeext
15367 if { (ac_try="$ac_link"
15368 case "(($ac_try" in
15369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15370 *) ac_try_echo=$ac_try;;
15372 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15373 (eval "$ac_link") 2>&5
15375 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15376 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15377 { (case "(($ac_try" in
15378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15379 *) ac_try_echo=$ac_try;;
15381 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15382 (eval "$ac_try") 2>&5
15384 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15385 (exit $ac_status); }; }; then
15386 ac_cv_c_stack_direction=1
15388 echo "$as_me: program exited with status
$ac_status" >&5
15389 echo "$as_me: failed program was
:" >&5
15390 sed 's/^/| /' conftest.$ac_ext >&5
15392 ( exit $ac_status )
15393 ac_cv_c_stack_direction=-1
15395 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15400 { echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
15401 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15403 cat >>confdefs.h <<_ACEOF
15404 #define STACK_DIRECTION $ac_cv_c_stack_direction
15411 if test x"$ac_cv_func_alloca_works" != xyes; then
15412 { { echo "$as_me:$LINENO: error
: a system implementation of alloca is required
" >&5
15413 echo "$as_me: error
: a system implementation of alloca is required
" >&2;}
15414 { (exit 1); exit 1; }; }
15417 # fmod, logb, and frexp are found in -lm on most systems.
15418 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15420 { echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
15421 echo $ECHO_N "checking
for sqrt
in -lm...
$ECHO_C" >&6; }
15422 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15423 echo $ECHO_N "(cached
) $ECHO_C" >&6
15425 ac_check_lib_save_LIBS=$LIBS
15427 cat >conftest.$ac_ext <<_ACEOF
15430 cat confdefs.h >>conftest.$ac_ext
15431 cat >>conftest.$ac_ext <<_ACEOF
15432 /* end confdefs.h. */
15434 /* Override any GCC internal prototype to avoid an error.
15435 Use char because int might match the return type of a GCC
15436 builtin and then its argument prototype would still apply. */
15449 rm -f conftest.$ac_objext conftest$ac_exeext
15450 if { (ac_try="$ac_link"
15451 case "(($ac_try" in
15452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15453 *) ac_try_echo=$ac_try;;
15455 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15456 (eval "$ac_link") 2>conftest.er1
15458 grep -v '^ *+' conftest.er1 >conftest.err
15460 cat conftest.err >&5
15461 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15462 (exit $ac_status); } && {
15463 test -z "$ac_c_werror_flag" ||
15464 test ! -s conftest.err
15465 } && test -s conftest$ac_exeext &&
15466 $as_test_x conftest$ac_exeext; then
15467 ac_cv_lib_m_sqrt=yes
15469 echo "$as_me: failed program was
:" >&5
15470 sed 's/^/| /' conftest.$ac_ext >&5
15472 ac_cv_lib_m_sqrt=no
15475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15476 conftest$ac_exeext conftest.$ac_ext
15477 LIBS=$ac_check_lib_save_LIBS
15479 { echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
15480 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15481 if test $ac_cv_lib_m_sqrt = yes; then
15482 cat >>confdefs.h <<_ACEOF
15483 #define HAVE_LIBM 1
15491 # Check for mail-locking functions in a "mail" library. Probably this should
15492 # have the same check as for liblockfile below.
15494 { echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
15495 echo $ECHO_N "checking
for maillock
in -lmail...
$ECHO_C" >&6; }
15496 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15497 echo $ECHO_N "(cached
) $ECHO_C" >&6
15499 ac_check_lib_save_LIBS=$LIBS
15500 LIBS="-lmail $LIBS"
15501 cat >conftest.$ac_ext <<_ACEOF
15504 cat confdefs.h >>conftest.$ac_ext
15505 cat >>conftest.$ac_ext <<_ACEOF
15506 /* end confdefs.h. */
15508 /* Override any GCC internal prototype to avoid an error.
15509 Use char because int might match the return type of a GCC
15510 builtin and then its argument prototype would still apply. */
15518 return maillock ();
15523 rm -f conftest.$ac_objext conftest$ac_exeext
15524 if { (ac_try="$ac_link"
15525 case "(($ac_try" in
15526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15527 *) ac_try_echo=$ac_try;;
15529 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15530 (eval "$ac_link") 2>conftest.er1
15532 grep -v '^ *+' conftest.er1 >conftest.err
15534 cat conftest.err >&5
15535 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15536 (exit $ac_status); } && {
15537 test -z "$ac_c_werror_flag" ||
15538 test ! -s conftest.err
15539 } && test -s conftest$ac_exeext &&
15540 $as_test_x conftest$ac_exeext; then
15541 ac_cv_lib_mail_maillock=yes
15543 echo "$as_me: failed program was
:" >&5
15544 sed 's/^/| /' conftest.$ac_ext >&5
15546 ac_cv_lib_mail_maillock=no
15549 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15550 conftest$ac_exeext conftest.$ac_ext
15551 LIBS=$ac_check_lib_save_LIBS
15553 { echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
15554 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15555 if test $ac_cv_lib_mail_maillock = yes; then
15556 cat >>confdefs.h <<_ACEOF
15557 #define HAVE_LIBMAIL 1
15560 LIBS="-lmail $LIBS"
15565 { echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
15566 echo $ECHO_N "checking
for maillock
in -llockfile...
$ECHO_C" >&6; }
15567 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15568 echo $ECHO_N "(cached
) $ECHO_C" >&6
15570 ac_check_lib_save_LIBS=$LIBS
15571 LIBS="-llockfile $LIBS"
15572 cat >conftest.$ac_ext <<_ACEOF
15575 cat confdefs.h >>conftest.$ac_ext
15576 cat >>conftest.$ac_ext <<_ACEOF
15577 /* end confdefs.h. */
15579 /* Override any GCC internal prototype to avoid an error.
15580 Use char because int might match the return type of a GCC
15581 builtin and then its argument prototype would still apply. */
15589 return maillock ();
15594 rm -f conftest.$ac_objext conftest$ac_exeext
15595 if { (ac_try="$ac_link"
15596 case "(($ac_try" in
15597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15598 *) ac_try_echo=$ac_try;;
15600 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15601 (eval "$ac_link") 2>conftest.er1
15603 grep -v '^ *+' conftest.er1 >conftest.err
15605 cat conftest.err >&5
15606 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15607 (exit $ac_status); } && {
15608 test -z "$ac_c_werror_flag" ||
15609 test ! -s conftest.err
15610 } && test -s conftest$ac_exeext &&
15611 $as_test_x conftest$ac_exeext; then
15612 ac_cv_lib_lockfile_maillock=yes
15614 echo "$as_me: failed program was
:" >&5
15615 sed 's/^/| /' conftest.$ac_ext >&5
15617 ac_cv_lib_lockfile_maillock=no
15620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15621 conftest$ac_exeext conftest.$ac_ext
15622 LIBS=$ac_check_lib_save_LIBS
15624 { echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
15625 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15626 if test $ac_cv_lib_lockfile_maillock = yes; then
15627 cat >>confdefs.h <<_ACEOF
15628 #define HAVE_LIBLOCKFILE 1
15631 LIBS="-llockfile $LIBS"
15635 # If we have the shared liblockfile, assume we must use it for mail
15636 # locking (e.g. Debian). If we couldn't link against liblockfile
15637 # (no liblockfile.a installed), ensure that we don't need to.
15638 if test "$ac_cv_lib_lockfile_maillock" = no; then
15639 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
15640 set dummy liblockfile.so; ac_word=$2
15641 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
15642 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
15643 if test "${ac_cv_prog_liblockfile+set}" = set; then
15644 echo $ECHO_N "(cached
) $ECHO_C" >&6
15646 if test -n "$liblockfile"; then
15647 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15650 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
15651 for as_dir in $as_dummy
15654 test -z "$as_dir" && as_dir=.
15655 for ac_exec_ext in '' $ac_executable_extensions; do
15656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15657 ac_cv_prog_liblockfile="yes"
15658 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15665 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
15668 liblockfile=$ac_cv_prog_liblockfile
15669 if test -n "$liblockfile"; then
15670 { echo "$as_me:$LINENO: result
: $liblockfile" >&5
15671 echo "${ECHO_T}$liblockfile" >&6; }
15673 { echo "$as_me:$LINENO: result
: no
" >&5
15674 echo "${ECHO_T}no
" >&6; }
15678 if test $ac_cv_prog_liblockfile = yes; then
15679 { { echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
15680 This probably means that movemail could lose mail.
15681 There may be a \`development' package to
install containing liblockfile.
" >&5
15682 echo "$as_me: error
: Shared liblockfile found but can
't link against it.
15683 This probably means that movemail could lose mail.
15684 There may be a \`development' package to
install containing liblockfile.
" >&2;}
15685 { (exit 1); exit 1; }; }
15690 for ac_func in touchlock
15692 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15693 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15694 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15695 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15696 echo $ECHO_N "(cached
) $ECHO_C" >&6
15698 cat >conftest.$ac_ext <<_ACEOF
15701 cat confdefs.h >>conftest.$ac_ext
15702 cat >>conftest.$ac_ext <<_ACEOF
15703 /* end confdefs.h. */
15704 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15705 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15706 #define $ac_func innocuous_$ac_func
15708 /* System header to define __stub macros and hopefully few prototypes,
15709 which can conflict with char $ac_func (); below.
15710 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15711 <limits.h> exists even on freestanding compilers. */
15714 # include <limits.h>
15716 # include <assert.h>
15721 /* Override any GCC internal prototype to avoid an error.
15722 Use char because int might match the return type of a GCC
15723 builtin and then its argument prototype would still apply. */
15728 /* The GNU C library defines this for functions which it implements
15729 to always fail with ENOSYS. Some functions are actually named
15730 something starting with __ and the normal name is an alias. */
15731 #if defined __stub_$ac_func || defined __stub___$ac_func
15738 return $ac_func ();
15743 rm -f conftest.$ac_objext conftest$ac_exeext
15744 if { (ac_try="$ac_link"
15745 case "(($ac_try" in
15746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15747 *) ac_try_echo=$ac_try;;
15749 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15750 (eval "$ac_link") 2>conftest.er1
15752 grep -v '^ *+' conftest.er1 >conftest.err
15754 cat conftest.err >&5
15755 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15756 (exit $ac_status); } && {
15757 test -z "$ac_c_werror_flag" ||
15758 test ! -s conftest.err
15759 } && test -s conftest$ac_exeext &&
15760 $as_test_x conftest$ac_exeext; then
15761 eval "$as_ac_var=yes"
15763 echo "$as_me: failed program was
:" >&5
15764 sed 's/^/| /' conftest.$ac_ext >&5
15766 eval "$as_ac_var=no
"
15769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15770 conftest$ac_exeext conftest.$ac_ext
15772 ac_res=`eval echo '${'$as_ac_var'}'`
15773 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15774 echo "${ECHO_T}$ac_res" >&6; }
15775 if test `eval echo '${'$as_ac_var'}'` = yes; then
15776 cat >>confdefs.h <<_ACEOF
15777 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15784 for ac_header in maillock.h
15786 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15787 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15788 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15789 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15790 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15791 echo $ECHO_N "(cached
) $ECHO_C" >&6
15793 ac_res=`eval echo '${'$as_ac_Header'}'`
15794 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15795 echo "${ECHO_T}$ac_res" >&6; }
15797 # Is the header compilable?
15798 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15799 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15800 cat >conftest.$ac_ext <<_ACEOF
15803 cat confdefs.h >>conftest.$ac_ext
15804 cat >>conftest.$ac_ext <<_ACEOF
15805 /* end confdefs.h. */
15806 $ac_includes_default
15807 #include <$ac_header>
15809 rm -f conftest.$ac_objext
15810 if { (ac_try="$ac_compile"
15811 case "(($ac_try" in
15812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15813 *) ac_try_echo=$ac_try;;
15815 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15816 (eval "$ac_compile") 2>conftest.er1
15818 grep -v '^ *+' conftest.er1 >conftest.err
15820 cat conftest.err >&5
15821 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15822 (exit $ac_status); } && {
15823 test -z "$ac_c_werror_flag" ||
15824 test ! -s conftest.err
15825 } && test -s conftest.$ac_objext; then
15826 ac_header_compiler=yes
15828 echo "$as_me: failed program was
:" >&5
15829 sed 's/^/| /' conftest.$ac_ext >&5
15831 ac_header_compiler=no
15834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15835 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15836 echo "${ECHO_T}$ac_header_compiler" >&6; }
15838 # Is the header present?
15839 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15840 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15841 cat >conftest.$ac_ext <<_ACEOF
15844 cat confdefs.h >>conftest.$ac_ext
15845 cat >>conftest.$ac_ext <<_ACEOF
15846 /* end confdefs.h. */
15847 #include <$ac_header>
15849 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15850 case "(($ac_try" in
15851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15852 *) ac_try_echo=$ac_try;;
15854 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15855 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15857 grep -v '^ *+' conftest.er1 >conftest.err
15859 cat conftest.err >&5
15860 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15861 (exit $ac_status); } >/dev/null && {
15862 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15863 test ! -s conftest.err
15865 ac_header_preproc=yes
15867 echo "$as_me: failed program was
:" >&5
15868 sed 's/^/| /' conftest.$ac_ext >&5
15870 ac_header_preproc=no
15873 rm -f conftest.err conftest.$ac_ext
15874 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15875 echo "${ECHO_T}$ac_header_preproc" >&6; }
15877 # So? What about this header?
15878 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15880 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15881 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15882 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15883 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15884 ac_header_preproc=yes
15887 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15888 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15889 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15890 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15891 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15892 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15893 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15894 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15895 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15896 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15897 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15898 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15902 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15903 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15904 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15905 echo $ECHO_N "(cached
) $ECHO_C" >&6
15907 eval "$as_ac_Header=\
$ac_header_preproc"
15909 ac_res=`eval echo '${'$as_ac_Header'}'`
15910 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15911 echo "${ECHO_T}$ac_res" >&6; }
15914 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15915 cat >>confdefs.h <<_ACEOF
15916 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15992 for ac_func in gethostname getdomainname dup2 \
15993 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15994 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
15995 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15996 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15997 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15998 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15999 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
16000 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
16002 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16003 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16004 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16005 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16006 echo $ECHO_N "(cached
) $ECHO_C" >&6
16008 cat >conftest.$ac_ext <<_ACEOF
16011 cat confdefs.h >>conftest.$ac_ext
16012 cat >>conftest.$ac_ext <<_ACEOF
16013 /* end confdefs.h. */
16014 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16015 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16016 #define $ac_func innocuous_$ac_func
16018 /* System header to define __stub macros and hopefully few prototypes,
16019 which can conflict with char $ac_func (); below.
16020 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16021 <limits.h> exists even on freestanding compilers. */
16024 # include <limits.h>
16026 # include <assert.h>
16031 /* Override any GCC internal prototype to avoid an error.
16032 Use char because int might match the return type of a GCC
16033 builtin and then its argument prototype would still apply. */
16038 /* The GNU C library defines this for functions which it implements
16039 to always fail with ENOSYS. Some functions are actually named
16040 something starting with __ and the normal name is an alias. */
16041 #if defined __stub_$ac_func || defined __stub___$ac_func
16048 return $ac_func ();
16053 rm -f conftest.$ac_objext conftest$ac_exeext
16054 if { (ac_try="$ac_link"
16055 case "(($ac_try" in
16056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16057 *) ac_try_echo=$ac_try;;
16059 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16060 (eval "$ac_link") 2>conftest.er1
16062 grep -v '^ *+' conftest.er1 >conftest.err
16064 cat conftest.err >&5
16065 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16066 (exit $ac_status); } && {
16067 test -z "$ac_c_werror_flag" ||
16068 test ! -s conftest.err
16069 } && test -s conftest$ac_exeext &&
16070 $as_test_x conftest$ac_exeext; then
16071 eval "$as_ac_var=yes"
16073 echo "$as_me: failed program was
:" >&5
16074 sed 's/^/| /' conftest.$ac_ext >&5
16076 eval "$as_ac_var=no
"
16079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16080 conftest$ac_exeext conftest.$ac_ext
16082 ac_res=`eval echo '${'$as_ac_var'}'`
16083 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16084 echo "${ECHO_T}$ac_res" >&6; }
16085 if test `eval echo '${'$as_ac_var'}'` = yes; then
16086 cat >>confdefs.h <<_ACEOF
16087 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16095 for ac_header in sys/un.h
16097 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16098 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16099 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16100 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16101 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16102 echo $ECHO_N "(cached
) $ECHO_C" >&6
16104 ac_res=`eval echo '${'$as_ac_Header'}'`
16105 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16106 echo "${ECHO_T}$ac_res" >&6; }
16108 # Is the header compilable?
16109 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16110 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16111 cat >conftest.$ac_ext <<_ACEOF
16114 cat confdefs.h >>conftest.$ac_ext
16115 cat >>conftest.$ac_ext <<_ACEOF
16116 /* end confdefs.h. */
16117 $ac_includes_default
16118 #include <$ac_header>
16120 rm -f conftest.$ac_objext
16121 if { (ac_try="$ac_compile"
16122 case "(($ac_try" in
16123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16124 *) ac_try_echo=$ac_try;;
16126 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16127 (eval "$ac_compile") 2>conftest.er1
16129 grep -v '^ *+' conftest.er1 >conftest.err
16131 cat conftest.err >&5
16132 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16133 (exit $ac_status); } && {
16134 test -z "$ac_c_werror_flag" ||
16135 test ! -s conftest.err
16136 } && test -s conftest.$ac_objext; then
16137 ac_header_compiler=yes
16139 echo "$as_me: failed program was
:" >&5
16140 sed 's/^/| /' conftest.$ac_ext >&5
16142 ac_header_compiler=no
16145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16146 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16147 echo "${ECHO_T}$ac_header_compiler" >&6; }
16149 # Is the header present?
16150 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16151 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16152 cat >conftest.$ac_ext <<_ACEOF
16155 cat confdefs.h >>conftest.$ac_ext
16156 cat >>conftest.$ac_ext <<_ACEOF
16157 /* end confdefs.h. */
16158 #include <$ac_header>
16160 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16161 case "(($ac_try" in
16162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16163 *) ac_try_echo=$ac_try;;
16165 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16166 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16168 grep -v '^ *+' conftest.er1 >conftest.err
16170 cat conftest.err >&5
16171 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16172 (exit $ac_status); } >/dev/null && {
16173 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16174 test ! -s conftest.err
16176 ac_header_preproc=yes
16178 echo "$as_me: failed program was
:" >&5
16179 sed 's/^/| /' conftest.$ac_ext >&5
16181 ac_header_preproc=no
16184 rm -f conftest.err conftest.$ac_ext
16185 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16186 echo "${ECHO_T}$ac_header_preproc" >&6; }
16188 # So? What about this header?
16189 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16191 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16192 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16193 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16194 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16195 ac_header_preproc=yes
16198 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16199 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16200 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16201 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16202 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16203 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16204 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16205 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16206 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16207 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16208 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16209 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16213 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16214 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16215 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16216 echo $ECHO_N "(cached
) $ECHO_C" >&6
16218 eval "$as_ac_Header=\
$ac_header_preproc"
16220 ac_res=`eval echo '${'$as_ac_Header'}'`
16221 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16222 echo "${ECHO_T}$ac_res" >&6; }
16225 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16226 cat >>confdefs.h <<_ACEOF
16227 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16239 for ac_header in $ac_header_list
16241 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16242 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16243 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16244 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16245 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16246 echo $ECHO_N "(cached
) $ECHO_C" >&6
16248 ac_res=`eval echo '${'$as_ac_Header'}'`
16249 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16250 echo "${ECHO_T}$ac_res" >&6; }
16252 # Is the header compilable?
16253 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16254 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16255 cat >conftest.$ac_ext <<_ACEOF
16258 cat confdefs.h >>conftest.$ac_ext
16259 cat >>conftest.$ac_ext <<_ACEOF
16260 /* end confdefs.h. */
16261 $ac_includes_default
16262 #include <$ac_header>
16264 rm -f conftest.$ac_objext
16265 if { (ac_try="$ac_compile"
16266 case "(($ac_try" in
16267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16268 *) ac_try_echo=$ac_try;;
16270 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16271 (eval "$ac_compile") 2>conftest.er1
16273 grep -v '^ *+' conftest.er1 >conftest.err
16275 cat conftest.err >&5
16276 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16277 (exit $ac_status); } && {
16278 test -z "$ac_c_werror_flag" ||
16279 test ! -s conftest.err
16280 } && test -s conftest.$ac_objext; then
16281 ac_header_compiler=yes
16283 echo "$as_me: failed program was
:" >&5
16284 sed 's/^/| /' conftest.$ac_ext >&5
16286 ac_header_compiler=no
16289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16290 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16291 echo "${ECHO_T}$ac_header_compiler" >&6; }
16293 # Is the header present?
16294 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16295 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16296 cat >conftest.$ac_ext <<_ACEOF
16299 cat confdefs.h >>conftest.$ac_ext
16300 cat >>conftest.$ac_ext <<_ACEOF
16301 /* end confdefs.h. */
16302 #include <$ac_header>
16304 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16305 case "(($ac_try" in
16306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16307 *) ac_try_echo=$ac_try;;
16309 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16310 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16312 grep -v '^ *+' conftest.er1 >conftest.err
16314 cat conftest.err >&5
16315 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16316 (exit $ac_status); } >/dev/null && {
16317 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16318 test ! -s conftest.err
16320 ac_header_preproc=yes
16322 echo "$as_me: failed program was
:" >&5
16323 sed 's/^/| /' conftest.$ac_ext >&5
16325 ac_header_preproc=no
16328 rm -f conftest.err conftest.$ac_ext
16329 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16330 echo "${ECHO_T}$ac_header_preproc" >&6; }
16332 # So? What about this header?
16333 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16335 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16336 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16337 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16338 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16339 ac_header_preproc=yes
16342 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16343 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16344 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16345 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16346 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16347 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16348 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16349 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16350 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16351 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16352 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16353 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16357 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16358 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16359 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16360 echo $ECHO_N "(cached
) $ECHO_C" >&6
16362 eval "$as_ac_Header=\
$ac_header_preproc"
16364 ac_res=`eval echo '${'$as_ac_Header'}'`
16365 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16366 echo "${ECHO_T}$ac_res" >&6; }
16369 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16370 cat >>confdefs.h <<_ACEOF
16371 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16386 for ac_func in $ac_func_list
16388 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16389 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16390 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16391 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16392 echo $ECHO_N "(cached
) $ECHO_C" >&6
16394 cat >conftest.$ac_ext <<_ACEOF
16397 cat confdefs.h >>conftest.$ac_ext
16398 cat >>conftest.$ac_ext <<_ACEOF
16399 /* end confdefs.h. */
16400 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16401 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16402 #define $ac_func innocuous_$ac_func
16404 /* System header to define __stub macros and hopefully few prototypes,
16405 which can conflict with char $ac_func (); below.
16406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16407 <limits.h> exists even on freestanding compilers. */
16410 # include <limits.h>
16412 # include <assert.h>
16417 /* Override any GCC internal prototype to avoid an error.
16418 Use char because int might match the return type of a GCC
16419 builtin and then its argument prototype would still apply. */
16424 /* The GNU C library defines this for functions which it implements
16425 to always fail with ENOSYS. Some functions are actually named
16426 something starting with __ and the normal name is an alias. */
16427 #if defined __stub_$ac_func || defined __stub___$ac_func
16434 return $ac_func ();
16439 rm -f conftest.$ac_objext conftest$ac_exeext
16440 if { (ac_try="$ac_link"
16441 case "(($ac_try" in
16442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16443 *) ac_try_echo=$ac_try;;
16445 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16446 (eval "$ac_link") 2>conftest.er1
16448 grep -v '^ *+' conftest.er1 >conftest.err
16450 cat conftest.err >&5
16451 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16452 (exit $ac_status); } && {
16453 test -z "$ac_c_werror_flag" ||
16454 test ! -s conftest.err
16455 } && test -s conftest$ac_exeext &&
16456 $as_test_x conftest$ac_exeext; then
16457 eval "$as_ac_var=yes"
16459 echo "$as_me: failed program was
:" >&5
16460 sed 's/^/| /' conftest.$ac_ext >&5
16462 eval "$as_ac_var=no
"
16465 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16466 conftest$ac_exeext conftest.$ac_ext
16468 ac_res=`eval echo '${'$as_ac_var'}'`
16469 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16470 echo "${ECHO_T}$ac_res" >&6; }
16471 if test `eval echo '${'$as_ac_var'}'` = yes; then
16472 cat >>confdefs.h <<_ACEOF
16473 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16495 { echo "$as_me:$LINENO: checking
for working mktime
" >&5
16496 echo $ECHO_N "checking
for working mktime...
$ECHO_C" >&6; }
16497 if test "${ac_cv_func_working_mktime+set}" = set; then
16498 echo $ECHO_N "(cached
) $ECHO_C" >&6
16500 if test "$cross_compiling" = yes; then
16501 ac_cv_func_working_mktime=no
16503 cat >conftest.$ac_ext <<_ACEOF
16506 cat confdefs.h >>conftest.$ac_ext
16507 cat >>conftest.$ac_ext <<_ACEOF
16508 /* end confdefs.h. */
16509 /* Test program from Paul Eggert and Tony Leneis. */
16510 #ifdef TIME_WITH_SYS_TIME
16511 # include <sys/time.h>
16514 # ifdef HAVE_SYS_TIME_H
16515 # include <sys/time.h>
16521 #include <stdlib.h>
16523 #ifdef HAVE_UNISTD_H
16524 # include <unistd.h>
16528 # define alarm(X) /* empty */
16531 /* Work around redefinition to rpl_putenv by other config tests. */
16534 static time_t time_t_max;
16535 static time_t time_t_min;
16537 /* Values we'll use to set the TZ environment variable. */
16538 static char *tz_strings[] = {
16539 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
16540 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
16542 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16544 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16545 Based on a problem report from Andreas Jaeger. */
16547 spring_forward_gap ()
16549 /* glibc (up to about 1998-10-07) failed this test. */
16552 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16553 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16554 on systems that don't support the Olson extension, or don't have the
16555 full zoneinfo tables installed. */
16556 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16565 return mktime (&tm) != (time_t) -1;
16573 return ! (lt = localtime (&now)) || mktime (lt) == now;
16580 return (mktime_test1 (now)
16581 && mktime_test1 ((time_t) (time_t_max - now))
16582 && mktime_test1 ((time_t) (time_t_min + now)));
16588 /* Based on code from Ariel Faigon. */
16598 return tm.tm_mon == 2 && tm.tm_mday == 31;
16607 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16608 now = mktime (&tm);
16609 if (now != (time_t) -1)
16611 struct tm *lt = localtime (&now);
16613 && lt->tm_year == tm.tm_year
16614 && lt->tm_mon == tm.tm_mon
16615 && lt->tm_mday == tm.tm_mday
16616 && lt->tm_hour == tm.tm_hour
16617 && lt->tm_min == tm.tm_min
16618 && lt->tm_sec == tm.tm_sec
16619 && lt->tm_yday == tm.tm_yday
16620 && lt->tm_wday == tm.tm_wday
16621 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16622 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16631 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16632 ignoring leap seconds. */
16633 unsigned long int answer = 2527315200UL;
16637 tm.tm_year = 2050 - 1900;
16640 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16643 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16644 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16645 on systems that don't support the Olson extension, or don't have the
16646 full zoneinfo tables installed. */
16647 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16651 /* Check that the result is either a failure, or close enough
16652 to the correct answer that we can assume the discrepancy is
16653 due to leap seconds. */
16654 return (t == (time_t) -1
16655 || (0 < t && answer - 120 <= t && t <= answer + 120));
16664 /* This test makes some buggy mktime implementations loop.
16665 Give up after 60 seconds; a mktime slower than that
16666 isn't worth using anyway. */
16669 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16672 if ((time_t) -1 < 0)
16673 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16675 delta = time_t_max / 997; /* a suitable prime number */
16676 for (i = 0; i < N_STRINGS; i++)
16679 putenv (tz_strings[i]);
16681 for (t = 0; t <= time_t_max - delta; t += delta)
16682 if (! mktime_test (t))
16684 if (! (mktime_test ((time_t) 1)
16685 && mktime_test ((time_t) (60 * 60))
16686 && mktime_test ((time_t) (60 * 60 * 24))))
16689 for (j = 1; 0 < j; j *= 2)
16690 if (! bigtime_test (j))
16692 if (! bigtime_test (j - 1))
16695 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16698 rm -f conftest$ac_exeext
16699 if { (ac_try="$ac_link"
16700 case "(($ac_try" in
16701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16702 *) ac_try_echo=$ac_try;;
16704 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16705 (eval "$ac_link") 2>&5
16707 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16708 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16709 { (case "(($ac_try" in
16710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16711 *) ac_try_echo=$ac_try;;
16713 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16714 (eval "$ac_try") 2>&5
16716 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16717 (exit $ac_status); }; }; then
16718 ac_cv_func_working_mktime=yes
16720 echo "$as_me: program exited with status
$ac_status" >&5
16721 echo "$as_me: failed program was
:" >&5
16722 sed 's/^/| /' conftest.$ac_ext >&5
16724 ( exit $ac_status )
16725 ac_cv_func_working_mktime=no
16727 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16732 { echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
16733 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16734 if test $ac_cv_func_working_mktime = no; then
16735 case " $LIBOBJS " in
16736 *" mktime.
$ac_objext "* ) ;;
16737 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
16743 if test "$ac_cv_func_working_mktime" = no; then
16745 cat >>confdefs.h <<\_ACEOF
16746 #define BROKEN_MKTIME 1
16751 ac_have_func=no # yes means we've found a way to get the load average.
16753 # Make sure getloadavg.c is where it belongs, at configure-time.
16754 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
16755 { { echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
16756 echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
16757 { (exit 1); exit 1; }; }
16761 # Check for getloadavg, but be sure not to touch the cache variable.
16762 ({ echo "$as_me:$LINENO: checking
for getloadavg
" >&5
16763 echo $ECHO_N "checking
for getloadavg...
$ECHO_C" >&6; }
16764 if test "${ac_cv_func_getloadavg+set}" = set; then
16765 echo $ECHO_N "(cached
) $ECHO_C" >&6
16767 cat >conftest.$ac_ext <<_ACEOF
16770 cat confdefs.h >>conftest.$ac_ext
16771 cat >>conftest.$ac_ext <<_ACEOF
16772 /* end confdefs.h. */
16773 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16774 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16775 #define getloadavg innocuous_getloadavg
16777 /* System header to define __stub macros and hopefully few prototypes,
16778 which can conflict with char getloadavg (); below.
16779 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16780 <limits.h> exists even on freestanding compilers. */
16783 # include <limits.h>
16785 # include <assert.h>
16790 /* Override any GCC internal prototype to avoid an error.
16791 Use char because int might match the return type of a GCC
16792 builtin and then its argument prototype would still apply. */
16796 char getloadavg ();
16797 /* The GNU C library defines this for functions which it implements
16798 to always fail with ENOSYS. Some functions are actually named
16799 something starting with __ and the normal name is an alias. */
16800 #if defined __stub_getloadavg || defined __stub___getloadavg
16807 return getloadavg ();
16812 rm -f conftest.$ac_objext conftest$ac_exeext
16813 if { (ac_try="$ac_link"
16814 case "(($ac_try" in
16815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16816 *) ac_try_echo=$ac_try;;
16818 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16819 (eval "$ac_link") 2>conftest.er1
16821 grep -v '^ *+' conftest.er1 >conftest.err
16823 cat conftest.err >&5
16824 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16825 (exit $ac_status); } && {
16826 test -z "$ac_c_werror_flag" ||
16827 test ! -s conftest.err
16828 } && test -s conftest$ac_exeext &&
16829 $as_test_x conftest$ac_exeext; then
16830 ac_cv_func_getloadavg=yes
16832 echo "$as_me: failed program was
:" >&5
16833 sed 's/^/| /' conftest.$ac_ext >&5
16835 ac_cv_func_getloadavg=no
16838 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16839 conftest$ac_exeext conftest.$ac_ext
16841 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
16842 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16843 if test $ac_cv_func_getloadavg = yes; then
16848 ) && ac_have_func=yes
16850 # On HPUX9, an unprivileged user can get load averages through this function.
16852 for ac_func in pstat_getdynamic
16854 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16855 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16856 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16857 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16858 echo $ECHO_N "(cached
) $ECHO_C" >&6
16860 cat >conftest.$ac_ext <<_ACEOF
16863 cat confdefs.h >>conftest.$ac_ext
16864 cat >>conftest.$ac_ext <<_ACEOF
16865 /* end confdefs.h. */
16866 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16867 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16868 #define $ac_func innocuous_$ac_func
16870 /* System header to define __stub macros and hopefully few prototypes,
16871 which can conflict with char $ac_func (); below.
16872 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16873 <limits.h> exists even on freestanding compilers. */
16876 # include <limits.h>
16878 # include <assert.h>
16883 /* Override any GCC internal prototype to avoid an error.
16884 Use char because int might match the return type of a GCC
16885 builtin and then its argument prototype would still apply. */
16890 /* The GNU C library defines this for functions which it implements
16891 to always fail with ENOSYS. Some functions are actually named
16892 something starting with __ and the normal name is an alias. */
16893 #if defined __stub_$ac_func || defined __stub___$ac_func
16900 return $ac_func ();
16905 rm -f conftest.$ac_objext conftest$ac_exeext
16906 if { (ac_try="$ac_link"
16907 case "(($ac_try" in
16908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16909 *) ac_try_echo=$ac_try;;
16911 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16912 (eval "$ac_link") 2>conftest.er1
16914 grep -v '^ *+' conftest.er1 >conftest.err
16916 cat conftest.err >&5
16917 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16918 (exit $ac_status); } && {
16919 test -z "$ac_c_werror_flag" ||
16920 test ! -s conftest.err
16921 } && test -s conftest$ac_exeext &&
16922 $as_test_x conftest$ac_exeext; then
16923 eval "$as_ac_var=yes"
16925 echo "$as_me: failed program was
:" >&5
16926 sed 's/^/| /' conftest.$ac_ext >&5
16928 eval "$as_ac_var=no
"
16931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16932 conftest$ac_exeext conftest.$ac_ext
16934 ac_res=`eval echo '${'$as_ac_var'}'`
16935 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16936 echo "${ECHO_T}$ac_res" >&6; }
16937 if test `eval echo '${'$as_ac_var'}'` = yes; then
16938 cat >>confdefs.h <<_ACEOF
16939 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16946 # Solaris has libkstat which does not require root.
16948 { echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
16949 echo $ECHO_N "checking
for kstat_open
in -lkstat...
$ECHO_C" >&6; }
16950 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16951 echo $ECHO_N "(cached
) $ECHO_C" >&6
16953 ac_check_lib_save_LIBS=$LIBS
16954 LIBS="-lkstat $LIBS"
16955 cat >conftest.$ac_ext <<_ACEOF
16958 cat confdefs.h >>conftest.$ac_ext
16959 cat >>conftest.$ac_ext <<_ACEOF
16960 /* end confdefs.h. */
16962 /* Override any GCC internal prototype to avoid an error.
16963 Use char because int might match the return type of a GCC
16964 builtin and then its argument prototype would still apply. */
16968 char kstat_open ();
16972 return kstat_open ();
16977 rm -f conftest.$ac_objext conftest$ac_exeext
16978 if { (ac_try="$ac_link"
16979 case "(($ac_try" in
16980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16981 *) ac_try_echo=$ac_try;;
16983 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16984 (eval "$ac_link") 2>conftest.er1
16986 grep -v '^ *+' conftest.er1 >conftest.err
16988 cat conftest.err >&5
16989 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16990 (exit $ac_status); } && {
16991 test -z "$ac_c_werror_flag" ||
16992 test ! -s conftest.err
16993 } && test -s conftest$ac_exeext &&
16994 $as_test_x conftest$ac_exeext; then
16995 ac_cv_lib_kstat_kstat_open=yes
16997 echo "$as_me: failed program was
:" >&5
16998 sed 's/^/| /' conftest.$ac_ext >&5
17000 ac_cv_lib_kstat_kstat_open=no
17003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17004 conftest$ac_exeext conftest.$ac_ext
17005 LIBS=$ac_check_lib_save_LIBS
17007 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
17008 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
17009 if test $ac_cv_lib_kstat_kstat_open = yes; then
17010 cat >>confdefs.h <<_ACEOF
17011 #define HAVE_LIBKSTAT 1
17014 LIBS="-lkstat $LIBS"
17018 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
17020 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17021 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17022 # to get the right answer into the cache.
17023 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17024 if test $ac_have_func = no; then
17025 { echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
17026 echo $ECHO_N "checking
for elf_begin
in -lelf...
$ECHO_C" >&6; }
17027 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17028 echo $ECHO_N "(cached
) $ECHO_C" >&6
17030 ac_check_lib_save_LIBS=$LIBS
17032 cat >conftest.$ac_ext <<_ACEOF
17035 cat confdefs.h >>conftest.$ac_ext
17036 cat >>conftest.$ac_ext <<_ACEOF
17037 /* end confdefs.h. */
17039 /* Override any GCC internal prototype to avoid an error.
17040 Use char because int might match the return type of a GCC
17041 builtin and then its argument prototype would still apply. */
17049 return elf_begin ();
17054 rm -f conftest.$ac_objext conftest$ac_exeext
17055 if { (ac_try="$ac_link"
17056 case "(($ac_try" in
17057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17058 *) ac_try_echo=$ac_try;;
17060 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17061 (eval "$ac_link") 2>conftest.er1
17063 grep -v '^ *+' conftest.er1 >conftest.err
17065 cat conftest.err >&5
17066 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17067 (exit $ac_status); } && {
17068 test -z "$ac_c_werror_flag" ||
17069 test ! -s conftest.err
17070 } && test -s conftest$ac_exeext &&
17071 $as_test_x conftest$ac_exeext; then
17072 ac_cv_lib_elf_elf_begin=yes
17074 echo "$as_me: failed program was
:" >&5
17075 sed 's/^/| /' conftest.$ac_ext >&5
17077 ac_cv_lib_elf_elf_begin=no
17080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17081 conftest$ac_exeext conftest.$ac_ext
17082 LIBS=$ac_check_lib_save_LIBS
17084 { echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
17085 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17086 if test $ac_cv_lib_elf_elf_begin = yes; then
17091 if test $ac_have_func = no; then
17092 { echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
17093 echo $ECHO_N "checking
for kvm_open
in -lkvm...
$ECHO_C" >&6; }
17094 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17095 echo $ECHO_N "(cached
) $ECHO_C" >&6
17097 ac_check_lib_save_LIBS=$LIBS
17099 cat >conftest.$ac_ext <<_ACEOF
17102 cat confdefs.h >>conftest.$ac_ext
17103 cat >>conftest.$ac_ext <<_ACEOF
17104 /* end confdefs.h. */
17106 /* Override any GCC internal prototype to avoid an error.
17107 Use char because int might match the return type of a GCC
17108 builtin and then its argument prototype would still apply. */
17116 return kvm_open ();
17121 rm -f conftest.$ac_objext conftest$ac_exeext
17122 if { (ac_try="$ac_link"
17123 case "(($ac_try" in
17124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17125 *) ac_try_echo=$ac_try;;
17127 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17128 (eval "$ac_link") 2>conftest.er1
17130 grep -v '^ *+' conftest.er1 >conftest.err
17132 cat conftest.err >&5
17133 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17134 (exit $ac_status); } && {
17135 test -z "$ac_c_werror_flag" ||
17136 test ! -s conftest.err
17137 } && test -s conftest$ac_exeext &&
17138 $as_test_x conftest$ac_exeext; then
17139 ac_cv_lib_kvm_kvm_open=yes
17141 echo "$as_me: failed program was
:" >&5
17142 sed 's/^/| /' conftest.$ac_ext >&5
17144 ac_cv_lib_kvm_kvm_open=no
17147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17148 conftest$ac_exeext conftest.$ac_ext
17149 LIBS=$ac_check_lib_save_LIBS
17151 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
17152 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17153 if test $ac_cv_lib_kvm_kvm_open = yes; then
17157 # Check for the 4.4BSD definition of getloadavg.
17158 { echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
17159 echo $ECHO_N "checking
for getloadavg
in -lutil...
$ECHO_C" >&6; }
17160 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17161 echo $ECHO_N "(cached
) $ECHO_C" >&6
17163 ac_check_lib_save_LIBS=$LIBS
17164 LIBS="-lutil $LIBS"
17165 cat >conftest.$ac_ext <<_ACEOF
17168 cat confdefs.h >>conftest.$ac_ext
17169 cat >>conftest.$ac_ext <<_ACEOF
17170 /* end confdefs.h. */
17172 /* Override any GCC internal prototype to avoid an error.
17173 Use char because int might match the return type of a GCC
17174 builtin and then its argument prototype would still apply. */
17178 char getloadavg ();
17182 return getloadavg ();
17187 rm -f conftest.$ac_objext conftest$ac_exeext
17188 if { (ac_try="$ac_link"
17189 case "(($ac_try" in
17190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17191 *) ac_try_echo=$ac_try;;
17193 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17194 (eval "$ac_link") 2>conftest.er1
17196 grep -v '^ *+' conftest.er1 >conftest.err
17198 cat conftest.err >&5
17199 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17200 (exit $ac_status); } && {
17201 test -z "$ac_c_werror_flag" ||
17202 test ! -s conftest.err
17203 } && test -s conftest$ac_exeext &&
17204 $as_test_x conftest$ac_exeext; then
17205 ac_cv_lib_util_getloadavg=yes
17207 echo "$as_me: failed program was
:" >&5
17208 sed 's/^/| /' conftest.$ac_ext >&5
17210 ac_cv_lib_util_getloadavg=no
17213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17214 conftest$ac_exeext conftest.$ac_ext
17215 LIBS=$ac_check_lib_save_LIBS
17217 { echo "$as_me:$LINENO: result
: $ac_cv_lib_util_getloadavg" >&5
17218 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17219 if test $ac_cv_lib_util_getloadavg = yes; then
17220 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17225 if test $ac_have_func = no; then
17226 # There is a commonly available library for RS/6000 AIX.
17227 # Since it is not a standard part of AIX, it might be installed locally.
17228 ac_getloadavg_LIBS=$LIBS
17229 LIBS="-L/usr
/local
/lib
$LIBS"
17230 { echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
17231 echo $ECHO_N "checking
for getloadavg
in -lgetloadavg...
$ECHO_C" >&6; }
17232 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17233 echo $ECHO_N "(cached
) $ECHO_C" >&6
17235 ac_check_lib_save_LIBS=$LIBS
17236 LIBS="-lgetloadavg $LIBS"
17237 cat >conftest.$ac_ext <<_ACEOF
17240 cat confdefs.h >>conftest.$ac_ext
17241 cat >>conftest.$ac_ext <<_ACEOF
17242 /* end confdefs.h. */
17244 /* Override any GCC internal prototype to avoid an error.
17245 Use char because int might match the return type of a GCC
17246 builtin and then its argument prototype would still apply. */
17250 char getloadavg ();
17254 return getloadavg ();
17259 rm -f conftest.$ac_objext conftest$ac_exeext
17260 if { (ac_try="$ac_link"
17261 case "(($ac_try" in
17262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17263 *) ac_try_echo=$ac_try;;
17265 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17266 (eval "$ac_link") 2>conftest.er1
17268 grep -v '^ *+' conftest.er1 >conftest.err
17270 cat conftest.err >&5
17271 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17272 (exit $ac_status); } && {
17273 test -z "$ac_c_werror_flag" ||
17274 test ! -s conftest.err
17275 } && test -s conftest$ac_exeext &&
17276 $as_test_x conftest$ac_exeext; then
17277 ac_cv_lib_getloadavg_getloadavg=yes
17279 echo "$as_me: failed program was
:" >&5
17280 sed 's/^/| /' conftest.$ac_ext >&5
17282 ac_cv_lib_getloadavg_getloadavg=no
17285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17286 conftest$ac_exeext conftest.$ac_ext
17287 LIBS=$ac_check_lib_save_LIBS
17289 { echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
17290 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17291 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17292 LIBS="-lgetloadavg $LIBS"
17294 LIBS=$ac_getloadavg_LIBS
17299 # Make sure it is really in the library, if we think we found it,
17300 # otherwise set up the replacement function.
17302 for ac_func in getloadavg
17304 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17305 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17306 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17307 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17308 echo $ECHO_N "(cached
) $ECHO_C" >&6
17310 cat >conftest.$ac_ext <<_ACEOF
17313 cat confdefs.h >>conftest.$ac_ext
17314 cat >>conftest.$ac_ext <<_ACEOF
17315 /* end confdefs.h. */
17316 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17317 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17318 #define $ac_func innocuous_$ac_func
17320 /* System header to define __stub macros and hopefully few prototypes,
17321 which can conflict with char $ac_func (); below.
17322 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17323 <limits.h> exists even on freestanding compilers. */
17326 # include <limits.h>
17328 # include <assert.h>
17333 /* Override any GCC internal prototype to avoid an error.
17334 Use char because int might match the return type of a GCC
17335 builtin and then its argument prototype would still apply. */
17340 /* The GNU C library defines this for functions which it implements
17341 to always fail with ENOSYS. Some functions are actually named
17342 something starting with __ and the normal name is an alias. */
17343 #if defined __stub_$ac_func || defined __stub___$ac_func
17350 return $ac_func ();
17355 rm -f conftest.$ac_objext conftest$ac_exeext
17356 if { (ac_try="$ac_link"
17357 case "(($ac_try" in
17358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17359 *) ac_try_echo=$ac_try;;
17361 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17362 (eval "$ac_link") 2>conftest.er1
17364 grep -v '^ *+' conftest.er1 >conftest.err
17366 cat conftest.err >&5
17367 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17368 (exit $ac_status); } && {
17369 test -z "$ac_c_werror_flag" ||
17370 test ! -s conftest.err
17371 } && test -s conftest$ac_exeext &&
17372 $as_test_x conftest$ac_exeext; then
17373 eval "$as_ac_var=yes"
17375 echo "$as_me: failed program was
:" >&5
17376 sed 's/^/| /' conftest.$ac_ext >&5
17378 eval "$as_ac_var=no
"
17381 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17382 conftest$ac_exeext conftest.$ac_ext
17384 ac_res=`eval echo '${'$as_ac_var'}'`
17385 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17386 echo "${ECHO_T}$ac_res" >&6; }
17387 if test `eval echo '${'$as_ac_var'}'` = yes; then
17388 cat >>confdefs.h <<_ACEOF
17389 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17393 case " $LIBOBJS " in
17394 *" getloadavg.
$ac_objext "* ) ;;
17395 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
17400 cat >>confdefs.h <<\_ACEOF
17401 #define C_GETLOADAVG 1
17404 # Figure out what our getloadavg.c needs.
17406 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17407 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17408 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17409 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17410 echo $ECHO_N "(cached
) $ECHO_C" >&6
17412 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17413 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17415 # Is the header compilable?
17416 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
17417 echo $ECHO_N "checking sys
/dg_sys_info.h usability...
$ECHO_C" >&6; }
17418 cat >conftest.$ac_ext <<_ACEOF
17421 cat confdefs.h >>conftest.$ac_ext
17422 cat >>conftest.$ac_ext <<_ACEOF
17423 /* end confdefs.h. */
17424 $ac_includes_default
17425 #include <sys/dg_sys_info.h>
17427 rm -f conftest.$ac_objext
17428 if { (ac_try="$ac_compile"
17429 case "(($ac_try" in
17430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17431 *) ac_try_echo=$ac_try;;
17433 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17434 (eval "$ac_compile") 2>conftest.er1
17436 grep -v '^ *+' conftest.er1 >conftest.err
17438 cat conftest.err >&5
17439 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17440 (exit $ac_status); } && {
17441 test -z "$ac_c_werror_flag" ||
17442 test ! -s conftest.err
17443 } && test -s conftest.$ac_objext; then
17444 ac_header_compiler=yes
17446 echo "$as_me: failed program was
:" >&5
17447 sed 's/^/| /' conftest.$ac_ext >&5
17449 ac_header_compiler=no
17452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17453 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17454 echo "${ECHO_T}$ac_header_compiler" >&6; }
17456 # Is the header present?
17457 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
17458 echo $ECHO_N "checking sys
/dg_sys_info.h presence...
$ECHO_C" >&6; }
17459 cat >conftest.$ac_ext <<_ACEOF
17462 cat confdefs.h >>conftest.$ac_ext
17463 cat >>conftest.$ac_ext <<_ACEOF
17464 /* end confdefs.h. */
17465 #include <sys/dg_sys_info.h>
17467 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17468 case "(($ac_try" in
17469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17470 *) ac_try_echo=$ac_try;;
17472 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17473 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17475 grep -v '^ *+' conftest.er1 >conftest.err
17477 cat conftest.err >&5
17478 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17479 (exit $ac_status); } >/dev/null && {
17480 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17481 test ! -s conftest.err
17483 ac_header_preproc=yes
17485 echo "$as_me: failed program was
:" >&5
17486 sed 's/^/| /' conftest.$ac_ext >&5
17488 ac_header_preproc=no
17491 rm -f conftest.err conftest.$ac_ext
17492 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17493 echo "${ECHO_T}$ac_header_preproc" >&6; }
17495 # So? What about this header?
17496 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17498 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17499 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17500 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
17501 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
17502 ac_header_preproc=yes
17505 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
17506 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
17507 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
17508 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
17509 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
17510 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
17511 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17512 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17513 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
17514 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
17515 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
17516 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
17520 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17521 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17522 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17523 echo $ECHO_N "(cached
) $ECHO_C" >&6
17525 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17527 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17528 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17531 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17534 cat >>confdefs.h <<\_ACEOF
17539 { echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
17540 echo $ECHO_N "checking
for dg_sys_info
in -ldgc...
$ECHO_C" >&6; }
17541 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17542 echo $ECHO_N "(cached
) $ECHO_C" >&6
17544 ac_check_lib_save_LIBS=$LIBS
17546 cat >conftest.$ac_ext <<_ACEOF
17549 cat confdefs.h >>conftest.$ac_ext
17550 cat >>conftest.$ac_ext <<_ACEOF
17551 /* end confdefs.h. */
17553 /* Override any GCC internal prototype to avoid an error.
17554 Use char because int might match the return type of a GCC
17555 builtin and then its argument prototype would still apply. */
17559 char dg_sys_info ();
17563 return dg_sys_info ();
17568 rm -f conftest.$ac_objext conftest$ac_exeext
17569 if { (ac_try="$ac_link"
17570 case "(($ac_try" in
17571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17572 *) ac_try_echo=$ac_try;;
17574 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17575 (eval "$ac_link") 2>conftest.er1
17577 grep -v '^ *+' conftest.er1 >conftest.err
17579 cat conftest.err >&5
17580 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17581 (exit $ac_status); } && {
17582 test -z "$ac_c_werror_flag" ||
17583 test ! -s conftest.err
17584 } && test -s conftest$ac_exeext &&
17585 $as_test_x conftest$ac_exeext; then
17586 ac_cv_lib_dgc_dg_sys_info=yes
17588 echo "$as_me: failed program was
:" >&5
17589 sed 's/^/| /' conftest.$ac_ext >&5
17591 ac_cv_lib_dgc_dg_sys_info=no
17594 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17595 conftest$ac_exeext conftest.$ac_ext
17596 LIBS=$ac_check_lib_save_LIBS
17598 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
17599 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17600 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17601 cat >>confdefs.h <<_ACEOF
17602 #define HAVE_LIBDGC 1
17613 if test "${ac_cv_header_locale_h+set}" = set; then
17614 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17615 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17616 if test "${ac_cv_header_locale_h+set}" = set; then
17617 echo $ECHO_N "(cached
) $ECHO_C" >&6
17619 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17620 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17622 # Is the header compilable?
17623 { echo "$as_me:$LINENO: checking locale.h usability
" >&5
17624 echo $ECHO_N "checking locale.h usability...
$ECHO_C" >&6; }
17625 cat >conftest.$ac_ext <<_ACEOF
17628 cat confdefs.h >>conftest.$ac_ext
17629 cat >>conftest.$ac_ext <<_ACEOF
17630 /* end confdefs.h. */
17631 $ac_includes_default
17632 #include <locale.h>
17634 rm -f conftest.$ac_objext
17635 if { (ac_try="$ac_compile"
17636 case "(($ac_try" in
17637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17638 *) ac_try_echo=$ac_try;;
17640 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17641 (eval "$ac_compile") 2>conftest.er1
17643 grep -v '^ *+' conftest.er1 >conftest.err
17645 cat conftest.err >&5
17646 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17647 (exit $ac_status); } && {
17648 test -z "$ac_c_werror_flag" ||
17649 test ! -s conftest.err
17650 } && test -s conftest.$ac_objext; then
17651 ac_header_compiler=yes
17653 echo "$as_me: failed program was
:" >&5
17654 sed 's/^/| /' conftest.$ac_ext >&5
17656 ac_header_compiler=no
17659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17660 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17661 echo "${ECHO_T}$ac_header_compiler" >&6; }
17663 # Is the header present?
17664 { echo "$as_me:$LINENO: checking locale.h presence
" >&5
17665 echo $ECHO_N "checking locale.h presence...
$ECHO_C" >&6; }
17666 cat >conftest.$ac_ext <<_ACEOF
17669 cat confdefs.h >>conftest.$ac_ext
17670 cat >>conftest.$ac_ext <<_ACEOF
17671 /* end confdefs.h. */
17672 #include <locale.h>
17674 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17675 case "(($ac_try" in
17676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17677 *) ac_try_echo=$ac_try;;
17679 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17680 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17682 grep -v '^ *+' conftest.er1 >conftest.err
17684 cat conftest.err >&5
17685 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17686 (exit $ac_status); } >/dev/null && {
17687 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17688 test ! -s conftest.err
17690 ac_header_preproc=yes
17692 echo "$as_me: failed program was
:" >&5
17693 sed 's/^/| /' conftest.$ac_ext >&5
17695 ac_header_preproc=no
17698 rm -f conftest.err conftest.$ac_ext
17699 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17700 echo "${ECHO_T}$ac_header_preproc" >&6; }
17702 # So? What about this header?
17703 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17705 { echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17706 echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17707 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
17708 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
17709 ac_header_preproc=yes
17712 { echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
17713 echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
17714 { echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
17715 echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
17716 { echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
17717 echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
17718 { echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17719 echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17720 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
17721 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
17722 { echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
17723 echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
17727 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17728 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17729 if test "${ac_cv_header_locale_h+set}" = set; then
17730 echo $ECHO_N "(cached
) $ECHO_C" >&6
17732 ac_cv_header_locale_h=$ac_header_preproc
17734 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17735 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17741 for ac_func in setlocale
17743 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17744 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17745 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17746 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17747 echo $ECHO_N "(cached
) $ECHO_C" >&6
17749 cat >conftest.$ac_ext <<_ACEOF
17752 cat confdefs.h >>conftest.$ac_ext
17753 cat >>conftest.$ac_ext <<_ACEOF
17754 /* end confdefs.h. */
17755 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17756 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17757 #define $ac_func innocuous_$ac_func
17759 /* System header to define __stub macros and hopefully few prototypes,
17760 which can conflict with char $ac_func (); below.
17761 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17762 <limits.h> exists even on freestanding compilers. */
17765 # include <limits.h>
17767 # include <assert.h>
17772 /* Override any GCC internal prototype to avoid an error.
17773 Use char because int might match the return type of a GCC
17774 builtin and then its argument prototype would still apply. */
17779 /* The GNU C library defines this for functions which it implements
17780 to always fail with ENOSYS. Some functions are actually named
17781 something starting with __ and the normal name is an alias. */
17782 #if defined __stub_$ac_func || defined __stub___$ac_func
17789 return $ac_func ();
17794 rm -f conftest.$ac_objext conftest$ac_exeext
17795 if { (ac_try="$ac_link"
17796 case "(($ac_try" in
17797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17798 *) ac_try_echo=$ac_try;;
17800 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17801 (eval "$ac_link") 2>conftest.er1
17803 grep -v '^ *+' conftest.er1 >conftest.err
17805 cat conftest.err >&5
17806 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17807 (exit $ac_status); } && {
17808 test -z "$ac_c_werror_flag" ||
17809 test ! -s conftest.err
17810 } && test -s conftest$ac_exeext &&
17811 $as_test_x conftest$ac_exeext; then
17812 eval "$as_ac_var=yes"
17814 echo "$as_me: failed program was
:" >&5
17815 sed 's/^/| /' conftest.$ac_ext >&5
17817 eval "$as_ac_var=no
"
17820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17821 conftest$ac_exeext conftest.$ac_ext
17823 ac_res=`eval echo '${'$as_ac_var'}'`
17824 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17825 echo "${ECHO_T}$ac_res" >&6; }
17826 if test `eval echo '${'$as_ac_var'}'` = yes; then
17827 cat >>confdefs.h <<_ACEOF
17828 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17835 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17836 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17837 # Irix 4.0.5F has the header but not the library.
17838 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17841 cat >>confdefs.h <<\_ACEOF
17847 if test $ac_have_func = no; then
17848 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17849 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17850 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17851 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17852 echo $ECHO_N "(cached
) $ECHO_C" >&6
17854 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17855 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17857 # Is the header compilable?
17858 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
17859 echo $ECHO_N "checking inq_stats
/cpustats.h usability...
$ECHO_C" >&6; }
17860 cat >conftest.$ac_ext <<_ACEOF
17863 cat confdefs.h >>conftest.$ac_ext
17864 cat >>conftest.$ac_ext <<_ACEOF
17865 /* end confdefs.h. */
17866 $ac_includes_default
17867 #include <inq_stats/cpustats.h>
17869 rm -f conftest.$ac_objext
17870 if { (ac_try="$ac_compile"
17871 case "(($ac_try" in
17872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17873 *) ac_try_echo=$ac_try;;
17875 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17876 (eval "$ac_compile") 2>conftest.er1
17878 grep -v '^ *+' conftest.er1 >conftest.err
17880 cat conftest.err >&5
17881 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17882 (exit $ac_status); } && {
17883 test -z "$ac_c_werror_flag" ||
17884 test ! -s conftest.err
17885 } && test -s conftest.$ac_objext; then
17886 ac_header_compiler=yes
17888 echo "$as_me: failed program was
:" >&5
17889 sed 's/^/| /' conftest.$ac_ext >&5
17891 ac_header_compiler=no
17894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17895 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17896 echo "${ECHO_T}$ac_header_compiler" >&6; }
17898 # Is the header present?
17899 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
17900 echo $ECHO_N "checking inq_stats
/cpustats.h presence...
$ECHO_C" >&6; }
17901 cat >conftest.$ac_ext <<_ACEOF
17904 cat confdefs.h >>conftest.$ac_ext
17905 cat >>conftest.$ac_ext <<_ACEOF
17906 /* end confdefs.h. */
17907 #include <inq_stats/cpustats.h>
17909 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17910 case "(($ac_try" in
17911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17912 *) ac_try_echo=$ac_try;;
17914 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17915 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17917 grep -v '^ *+' conftest.er1 >conftest.err
17919 cat conftest.err >&5
17920 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17921 (exit $ac_status); } >/dev/null && {
17922 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17923 test ! -s conftest.err
17925 ac_header_preproc=yes
17927 echo "$as_me: failed program was
:" >&5
17928 sed 's/^/| /' conftest.$ac_ext >&5
17930 ac_header_preproc=no
17933 rm -f conftest.err conftest.$ac_ext
17934 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17935 echo "${ECHO_T}$ac_header_preproc" >&6; }
17937 # So? What about this header?
17938 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17940 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17941 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17942 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
17943 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
17944 ac_header_preproc=yes
17947 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
17948 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
17949 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
17950 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
17951 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
17952 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
17953 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17954 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17955 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
17956 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
17957 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
17958 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
17962 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17963 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17964 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17965 echo $ECHO_N "(cached
) $ECHO_C" >&6
17967 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17969 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17970 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17973 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17976 cat >>confdefs.h <<\_ACEOF
17981 cat >>confdefs.h <<\_ACEOF
17990 if test $ac_have_func = no; then
17991 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17992 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
17993 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
17994 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17995 echo $ECHO_N "(cached
) $ECHO_C" >&6
17997 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
17998 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18000 # Is the header compilable?
18001 { echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
18002 echo $ECHO_N "checking sys
/cpustats.h usability...
$ECHO_C" >&6; }
18003 cat >conftest.$ac_ext <<_ACEOF
18006 cat confdefs.h >>conftest.$ac_ext
18007 cat >>conftest.$ac_ext <<_ACEOF
18008 /* end confdefs.h. */
18009 $ac_includes_default
18010 #include <sys/cpustats.h>
18012 rm -f conftest.$ac_objext
18013 if { (ac_try="$ac_compile"
18014 case "(($ac_try" in
18015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18016 *) ac_try_echo=$ac_try;;
18018 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18019 (eval "$ac_compile") 2>conftest.er1
18021 grep -v '^ *+' conftest.er1 >conftest.err
18023 cat conftest.err >&5
18024 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18025 (exit $ac_status); } && {
18026 test -z "$ac_c_werror_flag" ||
18027 test ! -s conftest.err
18028 } && test -s conftest.$ac_objext; then
18029 ac_header_compiler=yes
18031 echo "$as_me: failed program was
:" >&5
18032 sed 's/^/| /' conftest.$ac_ext >&5
18034 ac_header_compiler=no
18037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18038 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18039 echo "${ECHO_T}$ac_header_compiler" >&6; }
18041 # Is the header present?
18042 { echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
18043 echo $ECHO_N "checking sys
/cpustats.h presence...
$ECHO_C" >&6; }
18044 cat >conftest.$ac_ext <<_ACEOF
18047 cat confdefs.h >>conftest.$ac_ext
18048 cat >>conftest.$ac_ext <<_ACEOF
18049 /* end confdefs.h. */
18050 #include <sys/cpustats.h>
18052 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18053 case "(($ac_try" in
18054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18055 *) ac_try_echo=$ac_try;;
18057 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18058 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18060 grep -v '^ *+' conftest.er1 >conftest.err
18062 cat conftest.err >&5
18063 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18064 (exit $ac_status); } >/dev/null && {
18065 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18066 test ! -s conftest.err
18068 ac_header_preproc=yes
18070 echo "$as_me: failed program was
:" >&5
18071 sed 's/^/| /' conftest.$ac_ext >&5
18073 ac_header_preproc=no
18076 rm -f conftest.err conftest.$ac_ext
18077 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18078 echo "${ECHO_T}$ac_header_preproc" >&6; }
18080 # So? What about this header?
18081 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18083 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
18084 echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18085 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
18086 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
18087 ac_header_preproc=yes
18090 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
18091 echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
18092 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
18093 echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
18094 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
18095 echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
18096 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
18097 echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
18098 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
18099 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
18100 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
18101 echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
18105 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
18106 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
18107 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18108 echo $ECHO_N "(cached
) $ECHO_C" >&6
18110 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18112 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
18113 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18116 if test $ac_cv_header_sys_cpustats_h = yes; then
18117 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18126 if test $ac_have_func = no; then
18128 for ac_header in mach/mach.h
18130 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18131 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18132 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18133 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18134 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18135 echo $ECHO_N "(cached
) $ECHO_C" >&6
18137 ac_res=`eval echo '${'$as_ac_Header'}'`
18138 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18139 echo "${ECHO_T}$ac_res" >&6; }
18141 # Is the header compilable?
18142 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18143 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18144 cat >conftest.$ac_ext <<_ACEOF
18147 cat confdefs.h >>conftest.$ac_ext
18148 cat >>conftest.$ac_ext <<_ACEOF
18149 /* end confdefs.h. */
18150 $ac_includes_default
18151 #include <$ac_header>
18153 rm -f conftest.$ac_objext
18154 if { (ac_try="$ac_compile"
18155 case "(($ac_try" in
18156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18157 *) ac_try_echo=$ac_try;;
18159 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18160 (eval "$ac_compile") 2>conftest.er1
18162 grep -v '^ *+' conftest.er1 >conftest.err
18164 cat conftest.err >&5
18165 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18166 (exit $ac_status); } && {
18167 test -z "$ac_c_werror_flag" ||
18168 test ! -s conftest.err
18169 } && test -s conftest.$ac_objext; then
18170 ac_header_compiler=yes
18172 echo "$as_me: failed program was
:" >&5
18173 sed 's/^/| /' conftest.$ac_ext >&5
18175 ac_header_compiler=no
18178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18179 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18180 echo "${ECHO_T}$ac_header_compiler" >&6; }
18182 # Is the header present?
18183 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18184 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18185 cat >conftest.$ac_ext <<_ACEOF
18188 cat confdefs.h >>conftest.$ac_ext
18189 cat >>conftest.$ac_ext <<_ACEOF
18190 /* end confdefs.h. */
18191 #include <$ac_header>
18193 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18194 case "(($ac_try" in
18195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18196 *) ac_try_echo=$ac_try;;
18198 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18199 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18201 grep -v '^ *+' conftest.er1 >conftest.err
18203 cat conftest.err >&5
18204 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18205 (exit $ac_status); } >/dev/null && {
18206 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18207 test ! -s conftest.err
18209 ac_header_preproc=yes
18211 echo "$as_me: failed program was
:" >&5
18212 sed 's/^/| /' conftest.$ac_ext >&5
18214 ac_header_preproc=no
18217 rm -f conftest.err conftest.$ac_ext
18218 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18219 echo "${ECHO_T}$ac_header_preproc" >&6; }
18221 # So? What about this header?
18222 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18224 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18225 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18226 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18227 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18228 ac_header_preproc=yes
18231 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18232 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18233 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18234 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18235 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18236 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18237 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18238 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18239 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18240 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18241 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18242 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18246 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18247 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18248 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18249 echo $ECHO_N "(cached
) $ECHO_C" >&6
18251 eval "$as_ac_Header=\
$ac_header_preproc"
18253 ac_res=`eval echo '${'$as_ac_Header'}'`
18254 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18255 echo "${ECHO_T}$ac_res" >&6; }
18258 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18259 cat >>confdefs.h <<_ACEOF
18260 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18270 for ac_header in nlist.h
18272 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18273 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18274 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18275 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18276 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18277 echo $ECHO_N "(cached
) $ECHO_C" >&6
18279 ac_res=`eval echo '${'$as_ac_Header'}'`
18280 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18281 echo "${ECHO_T}$ac_res" >&6; }
18283 # Is the header compilable?
18284 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18285 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18286 cat >conftest.$ac_ext <<_ACEOF
18289 cat confdefs.h >>conftest.$ac_ext
18290 cat >>conftest.$ac_ext <<_ACEOF
18291 /* end confdefs.h. */
18292 $ac_includes_default
18293 #include <$ac_header>
18295 rm -f conftest.$ac_objext
18296 if { (ac_try="$ac_compile"
18297 case "(($ac_try" in
18298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18299 *) ac_try_echo=$ac_try;;
18301 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18302 (eval "$ac_compile") 2>conftest.er1
18304 grep -v '^ *+' conftest.er1 >conftest.err
18306 cat conftest.err >&5
18307 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18308 (exit $ac_status); } && {
18309 test -z "$ac_c_werror_flag" ||
18310 test ! -s conftest.err
18311 } && test -s conftest.$ac_objext; then
18312 ac_header_compiler=yes
18314 echo "$as_me: failed program was
:" >&5
18315 sed 's/^/| /' conftest.$ac_ext >&5
18317 ac_header_compiler=no
18320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18321 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18322 echo "${ECHO_T}$ac_header_compiler" >&6; }
18324 # Is the header present?
18325 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18326 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18327 cat >conftest.$ac_ext <<_ACEOF
18330 cat confdefs.h >>conftest.$ac_ext
18331 cat >>conftest.$ac_ext <<_ACEOF
18332 /* end confdefs.h. */
18333 #include <$ac_header>
18335 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18336 case "(($ac_try" in
18337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18338 *) ac_try_echo=$ac_try;;
18340 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18341 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18343 grep -v '^ *+' conftest.er1 >conftest.err
18345 cat conftest.err >&5
18346 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18347 (exit $ac_status); } >/dev/null && {
18348 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18349 test ! -s conftest.err
18351 ac_header_preproc=yes
18353 echo "$as_me: failed program was
:" >&5
18354 sed 's/^/| /' conftest.$ac_ext >&5
18356 ac_header_preproc=no
18359 rm -f conftest.err conftest.$ac_ext
18360 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18361 echo "${ECHO_T}$ac_header_preproc" >&6; }
18363 # So? What about this header?
18364 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18366 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18367 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18368 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18369 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18370 ac_header_preproc=yes
18373 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18374 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18375 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18376 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18377 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18378 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18379 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18380 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18381 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18382 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18383 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18384 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18388 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18389 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18390 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18391 echo $ECHO_N "(cached
) $ECHO_C" >&6
18393 eval "$as_ac_Header=\
$ac_header_preproc"
18395 ac_res=`eval echo '${'$as_ac_Header'}'`
18396 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18397 echo "${ECHO_T}$ac_res" >&6; }
18400 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18401 cat >>confdefs.h <<_ACEOF
18402 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18404 { echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
18405 echo $ECHO_N "checking
for struct nlist.n_un.n_name...
$ECHO_C" >&6; }
18406 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18407 echo $ECHO_N "(cached
) $ECHO_C" >&6
18409 cat >conftest.$ac_ext <<_ACEOF
18412 cat confdefs.h >>conftest.$ac_ext
18413 cat >>conftest.$ac_ext <<_ACEOF
18414 /* end confdefs.h. */
18420 static struct nlist ac_aggr;
18421 if (ac_aggr.n_un.n_name)
18427 rm -f conftest.$ac_objext
18428 if { (ac_try="$ac_compile"
18429 case "(($ac_try" in
18430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18431 *) ac_try_echo=$ac_try;;
18433 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18434 (eval "$ac_compile") 2>conftest.er1
18436 grep -v '^ *+' conftest.er1 >conftest.err
18438 cat conftest.err >&5
18439 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18440 (exit $ac_status); } && {
18441 test -z "$ac_c_werror_flag" ||
18442 test ! -s conftest.err
18443 } && test -s conftest.$ac_objext; then
18444 ac_cv_member_struct_nlist_n_un_n_name=yes
18446 echo "$as_me: failed program was
:" >&5
18447 sed 's/^/| /' conftest.$ac_ext >&5
18449 cat >conftest.$ac_ext <<_ACEOF
18452 cat confdefs.h >>conftest.$ac_ext
18453 cat >>conftest.$ac_ext <<_ACEOF
18454 /* end confdefs.h. */
18460 static struct nlist ac_aggr;
18461 if (sizeof ac_aggr.n_un.n_name)
18467 rm -f conftest.$ac_objext
18468 if { (ac_try="$ac_compile"
18469 case "(($ac_try" in
18470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18471 *) ac_try_echo=$ac_try;;
18473 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18474 (eval "$ac_compile") 2>conftest.er1
18476 grep -v '^ *+' conftest.er1 >conftest.err
18478 cat conftest.err >&5
18479 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18480 (exit $ac_status); } && {
18481 test -z "$ac_c_werror_flag" ||
18482 test ! -s conftest.err
18483 } && test -s conftest.$ac_objext; then
18484 ac_cv_member_struct_nlist_n_un_n_name=yes
18486 echo "$as_me: failed program was
:" >&5
18487 sed 's/^/| /' conftest.$ac_ext >&5
18489 ac_cv_member_struct_nlist_n_un_n_name=no
18492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18497 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18498 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18499 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18501 cat >>confdefs.h <<_ACEOF
18502 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18506 cat >>confdefs.h <<\_ACEOF
18507 #define NLIST_NAME_UNION 1
18521 # Some definitions of getloadavg require that the program be installed setgid.
18522 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
18523 echo $ECHO_N "checking whether getloadavg requires setgid...
$ECHO_C" >&6; }
18524 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18525 echo $ECHO_N "(cached
) $ECHO_C" >&6
18527 cat >conftest.$ac_ext <<_ACEOF
18530 cat confdefs.h >>conftest.$ac_ext
18531 cat >>conftest.$ac_ext <<_ACEOF
18532 /* end confdefs.h. */
18533 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
18534 #ifdef LDAV_PRIVILEGED
18535 Yowza Am I SETGID yet
18538 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
18539 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
18540 ac_cv_func_getloadavg_setgid=yes
18542 ac_cv_func_getloadavg_setgid=no
18547 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
18548 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18549 if test $ac_cv_func_getloadavg_setgid = yes; then
18552 cat >>confdefs.h <<\_ACEOF
18553 #define GETLOADAVG_PRIVILEGED 1
18560 if test $ac_cv_func_getloadavg_setgid = yes; then
18561 { echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
18562 echo $ECHO_N "checking group of
/dev
/kmem...
$ECHO_C" >&6; }
18563 if test "${ac_cv_group_kmem+set}" = set; then
18564 echo $ECHO_N "(cached
) $ECHO_C" >&6
18566 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18567 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18568 # If we got an error (system does not support symlinks), try without -L.
18569 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18570 ac_cv_group_kmem=`echo $ac_ls_output \
18571 | sed -ne 's/[ ][ ]*/ /g;
18572 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18576 { echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
18577 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18578 KMEM_GROUP=$ac_cv_group_kmem
18580 if test "x
$ac_save_LIBS" = x; then
18581 GETLOADAVG_LIBS=$LIBS
18583 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s
!$ac_save_LIBS!!"`
18589 { echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
18590 echo $ECHO_N "checking
for _LARGEFILE_SOURCE value needed
for large files...
$ECHO_C" >&6; }
18591 if test "${ac_cv_sys_largefile_source+set}" = set; then
18592 echo $ECHO_N "(cached
) $ECHO_C" >&6
18595 cat >conftest.$ac_ext <<_ACEOF
18598 cat confdefs.h >>conftest.$ac_ext
18599 cat >>conftest.$ac_ext <<_ACEOF
18600 /* end confdefs.h. */
18605 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18610 rm -f conftest.$ac_objext conftest$ac_exeext
18611 if { (ac_try="$ac_link"
18612 case "(($ac_try" in
18613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18614 *) ac_try_echo=$ac_try;;
18616 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18617 (eval "$ac_link") 2>conftest.er1
18619 grep -v '^ *+' conftest.er1 >conftest.err
18621 cat conftest.err >&5
18622 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18623 (exit $ac_status); } && {
18624 test -z "$ac_c_werror_flag" ||
18625 test ! -s conftest.err
18626 } && test -s conftest$ac_exeext &&
18627 $as_test_x conftest$ac_exeext; then
18628 ac_cv_sys_largefile_source=no; break
18630 echo "$as_me: failed program was
:" >&5
18631 sed 's/^/| /' conftest.$ac_ext >&5
18636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18637 conftest$ac_exeext conftest.$ac_ext
18638 cat >conftest.$ac_ext <<_ACEOF
18641 cat confdefs.h >>conftest.$ac_ext
18642 cat >>conftest.$ac_ext <<_ACEOF
18643 /* end confdefs.h. */
18644 #define _LARGEFILE_SOURCE 1
18649 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18654 rm -f conftest.$ac_objext conftest$ac_exeext
18655 if { (ac_try="$ac_link"
18656 case "(($ac_try" in
18657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18658 *) ac_try_echo=$ac_try;;
18660 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18661 (eval "$ac_link") 2>conftest.er1
18663 grep -v '^ *+' conftest.er1 >conftest.err
18665 cat conftest.err >&5
18666 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18667 (exit $ac_status); } && {
18668 test -z "$ac_c_werror_flag" ||
18669 test ! -s conftest.err
18670 } && test -s conftest$ac_exeext &&
18671 $as_test_x conftest$ac_exeext; then
18672 ac_cv_sys_largefile_source=1; break
18674 echo "$as_me: failed program was
:" >&5
18675 sed 's/^/| /' conftest.$ac_ext >&5
18680 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18681 conftest$ac_exeext conftest.$ac_ext
18682 ac_cv_sys_largefile_source=unknown
18686 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
18687 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18688 case $ac_cv_sys_largefile_source in #(
18691 cat >>confdefs.h <<_ACEOF
18692 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18698 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18699 # in glibc 2.1.3, but that breaks too many other things.
18700 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18701 if test $ac_cv_sys_largefile_source != unknown; then
18703 cat >>confdefs.h <<\_ACEOF
18704 #define HAVE_FSEEKO 1
18710 # Configure getopt.
18711 # getopt.m4 serial 10
18713 # The getopt module assume you want GNU getopt, with getopt_long etc,
18714 # rather than vanilla POSIX getopt. This means your your code should
18715 # always include <getopt.h> for the getopt prototypes.
18727 # Prerequisites of lib/getopt*.
18734 for ac_header in getopt.h
18736 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18737 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18738 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18739 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18740 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18741 echo $ECHO_N "(cached
) $ECHO_C" >&6
18743 ac_res=`eval echo '${'$as_ac_Header'}'`
18744 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18745 echo "${ECHO_T}$ac_res" >&6; }
18747 # Is the header compilable?
18748 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18749 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18750 cat >conftest.$ac_ext <<_ACEOF
18753 cat confdefs.h >>conftest.$ac_ext
18754 cat >>conftest.$ac_ext <<_ACEOF
18755 /* end confdefs.h. */
18756 $ac_includes_default
18757 #include <$ac_header>
18759 rm -f conftest.$ac_objext
18760 if { (ac_try="$ac_compile"
18761 case "(($ac_try" in
18762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18763 *) ac_try_echo=$ac_try;;
18765 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18766 (eval "$ac_compile") 2>conftest.er1
18768 grep -v '^ *+' conftest.er1 >conftest.err
18770 cat conftest.err >&5
18771 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18772 (exit $ac_status); } && {
18773 test -z "$ac_c_werror_flag" ||
18774 test ! -s conftest.err
18775 } && test -s conftest.$ac_objext; then
18776 ac_header_compiler=yes
18778 echo "$as_me: failed program was
:" >&5
18779 sed 's/^/| /' conftest.$ac_ext >&5
18781 ac_header_compiler=no
18784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18785 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18786 echo "${ECHO_T}$ac_header_compiler" >&6; }
18788 # Is the header present?
18789 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18790 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18791 cat >conftest.$ac_ext <<_ACEOF
18794 cat confdefs.h >>conftest.$ac_ext
18795 cat >>conftest.$ac_ext <<_ACEOF
18796 /* end confdefs.h. */
18797 #include <$ac_header>
18799 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18800 case "(($ac_try" in
18801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18802 *) ac_try_echo=$ac_try;;
18804 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18805 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18807 grep -v '^ *+' conftest.er1 >conftest.err
18809 cat conftest.err >&5
18810 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18811 (exit $ac_status); } >/dev/null && {
18812 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18813 test ! -s conftest.err
18815 ac_header_preproc=yes
18817 echo "$as_me: failed program was
:" >&5
18818 sed 's/^/| /' conftest.$ac_ext >&5
18820 ac_header_preproc=no
18823 rm -f conftest.err conftest.$ac_ext
18824 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18825 echo "${ECHO_T}$ac_header_preproc" >&6; }
18827 # So? What about this header?
18828 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18830 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18831 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18832 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18833 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18834 ac_header_preproc=yes
18837 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18838 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18839 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18840 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18841 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18842 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18843 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18844 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18845 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18846 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18847 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18848 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18852 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18853 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18854 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18855 echo $ECHO_N "(cached
) $ECHO_C" >&6
18857 eval "$as_ac_Header=\
$ac_header_preproc"
18859 ac_res=`eval echo '${'$as_ac_Header'}'`
18860 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18861 echo "${ECHO_T}$ac_res" >&6; }
18864 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18865 cat >>confdefs.h <<_ACEOF
18866 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18875 if test -z "$GETOPT_H"; then
18877 for ac_func in getopt_long_only
18879 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18880 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18881 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18882 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18883 echo $ECHO_N "(cached
) $ECHO_C" >&6
18885 cat >conftest.$ac_ext <<_ACEOF
18888 cat confdefs.h >>conftest.$ac_ext
18889 cat >>conftest.$ac_ext <<_ACEOF
18890 /* end confdefs.h. */
18891 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18892 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18893 #define $ac_func innocuous_$ac_func
18895 /* System header to define __stub macros and hopefully few prototypes,
18896 which can conflict with char $ac_func (); below.
18897 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18898 <limits.h> exists even on freestanding compilers. */
18901 # include <limits.h>
18903 # include <assert.h>
18908 /* Override any GCC internal prototype to avoid an error.
18909 Use char because int might match the return type of a GCC
18910 builtin and then its argument prototype would still apply. */
18915 /* The GNU C library defines this for functions which it implements
18916 to always fail with ENOSYS. Some functions are actually named
18917 something starting with __ and the normal name is an alias. */
18918 #if defined __stub_$ac_func || defined __stub___$ac_func
18925 return $ac_func ();
18930 rm -f conftest.$ac_objext conftest$ac_exeext
18931 if { (ac_try="$ac_link"
18932 case "(($ac_try" in
18933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18934 *) ac_try_echo=$ac_try;;
18936 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18937 (eval "$ac_link") 2>conftest.er1
18939 grep -v '^ *+' conftest.er1 >conftest.err
18941 cat conftest.err >&5
18942 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18943 (exit $ac_status); } && {
18944 test -z "$ac_c_werror_flag" ||
18945 test ! -s conftest.err
18946 } && test -s conftest$ac_exeext &&
18947 $as_test_x conftest$ac_exeext; then
18948 eval "$as_ac_var=yes"
18950 echo "$as_me: failed program was
:" >&5
18951 sed 's/^/| /' conftest.$ac_ext >&5
18953 eval "$as_ac_var=no
"
18956 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18957 conftest$ac_exeext conftest.$ac_ext
18959 ac_res=`eval echo '${'$as_ac_var'}'`
18960 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18961 echo "${ECHO_T}$ac_res" >&6; }
18962 if test `eval echo '${'$as_ac_var'}'` = yes; then
18963 cat >>confdefs.h <<_ACEOF
18964 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18974 if test -z "$GETOPT_H"; then
18975 { echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
18976 echo $ECHO_N "checking whether optreset is declared...
$ECHO_C" >&6; }
18977 if test "${ac_cv_have_decl_optreset+set}" = set; then
18978 echo $ECHO_N "(cached
) $ECHO_C" >&6
18980 cat >conftest.$ac_ext <<_ACEOF
18983 cat confdefs.h >>conftest.$ac_ext
18984 cat >>conftest.$ac_ext <<_ACEOF
18985 /* end confdefs.h. */
18986 #include <getopt.h>
18999 rm -f conftest.$ac_objext
19000 if { (ac_try="$ac_compile"
19001 case "(($ac_try" in
19002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19003 *) ac_try_echo=$ac_try;;
19005 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19006 (eval "$ac_compile") 2>conftest.er1
19008 grep -v '^ *+' conftest.er1 >conftest.err
19010 cat conftest.err >&5
19011 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19012 (exit $ac_status); } && {
19013 test -z "$ac_c_werror_flag" ||
19014 test ! -s conftest.err
19015 } && test -s conftest.$ac_objext; then
19016 ac_cv_have_decl_optreset=yes
19018 echo "$as_me: failed program was
:" >&5
19019 sed 's/^/| /' conftest.$ac_ext >&5
19021 ac_cv_have_decl_optreset=no
19024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19026 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
19027 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
19028 if test $ac_cv_have_decl_optreset = yes; then
19034 if test -z "$GETOPT_H"; then
19035 { echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
19036 echo $ECHO_N "checking
for working GNU getopt
function...
$ECHO_C" >&6; }
19037 if test "${gl_cv_func_gnu_getopt+set}" = set; then
19038 echo $ECHO_N "(cached
) $ECHO_C" >&6
19040 if test "$cross_compiling" = yes; then
19041 { echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
19042 echo $ECHO_N "checking whether getopt_clip is declared...
$ECHO_C" >&6; }
19043 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
19044 echo $ECHO_N "(cached
) $ECHO_C" >&6
19046 cat >conftest.$ac_ext <<_ACEOF
19049 cat confdefs.h >>conftest.$ac_ext
19050 cat >>conftest.$ac_ext <<_ACEOF
19051 /* end confdefs.h. */
19052 #include <getopt.h>
19057 #ifndef getopt_clip
19058 (void) getopt_clip;
19065 rm -f conftest.$ac_objext
19066 if { (ac_try="$ac_compile"
19067 case "(($ac_try" in
19068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19069 *) ac_try_echo=$ac_try;;
19071 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19072 (eval "$ac_compile") 2>conftest.er1
19074 grep -v '^ *+' conftest.er1 >conftest.err
19076 cat conftest.err >&5
19077 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19078 (exit $ac_status); } && {
19079 test -z "$ac_c_werror_flag" ||
19080 test ! -s conftest.err
19081 } && test -s conftest.$ac_objext; then
19082 ac_cv_have_decl_getopt_clip=yes
19084 echo "$as_me: failed program was
:" >&5
19085 sed 's/^/| /' conftest.$ac_ext >&5
19087 ac_cv_have_decl_getopt_clip=no
19090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19092 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
19093 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19094 if test $ac_cv_have_decl_getopt_clip = yes; then
19095 gl_cv_func_gnu_getopt=no
19097 gl_cv_func_gnu_getopt=yes
19101 cat >conftest.$ac_ext <<_ACEOF
19104 cat confdefs.h >>conftest.$ac_ext
19105 cat >>conftest.$ac_ext <<_ACEOF
19106 /* end confdefs.h. */
19107 #include <getopt.h>
19113 myargv[0] = "conftest
";
19116 return getopt (2, myargv, "+a
") != '?';
19122 rm -f conftest$ac_exeext
19123 if { (ac_try="$ac_link"
19124 case "(($ac_try" in
19125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19126 *) ac_try_echo=$ac_try;;
19128 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19129 (eval "$ac_link") 2>&5
19131 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19132 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19133 { (case "(($ac_try" in
19134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19135 *) ac_try_echo=$ac_try;;
19137 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19138 (eval "$ac_try") 2>&5
19140 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19141 (exit $ac_status); }; }; then
19142 gl_cv_func_gnu_getopt=yes
19144 echo "$as_me: program exited with status
$ac_status" >&5
19145 echo "$as_me: failed program was
:" >&5
19146 sed 's/^/| /' conftest.$ac_ext >&5
19148 ( exit $ac_status )
19149 gl_cv_func_gnu_getopt=no
19151 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19156 { echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
19157 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19158 if test "$gl_cv_func_gnu_getopt" = "no
"; then
19165 if test -n "$GETOPT_H"; then
19170 cat >>confdefs.h <<\_ACEOF
19171 #define __GETOPT_PREFIX rpl_
19177 GETOPTOBJS='getopt.o getopt1.o'
19184 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
19185 echo $ECHO_N "checking whether getpgrp requires zero arguments...
$ECHO_C" >&6; }
19186 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19187 echo $ECHO_N "(cached
) $ECHO_C" >&6
19189 # Use it with a single arg.
19190 cat >conftest.$ac_ext <<_ACEOF
19193 cat confdefs.h >>conftest.$ac_ext
19194 cat >>conftest.$ac_ext <<_ACEOF
19195 /* end confdefs.h. */
19196 $ac_includes_default
19205 rm -f conftest.$ac_objext
19206 if { (ac_try="$ac_compile"
19207 case "(($ac_try" in
19208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19209 *) ac_try_echo=$ac_try;;
19211 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19212 (eval "$ac_compile") 2>conftest.er1
19214 grep -v '^ *+' conftest.er1 >conftest.err
19216 cat conftest.err >&5
19217 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19218 (exit $ac_status); } && {
19219 test -z "$ac_c_werror_flag" ||
19220 test ! -s conftest.err
19221 } && test -s conftest.$ac_objext; then
19222 ac_cv_func_getpgrp_void=no
19224 echo "$as_me: failed program was
:" >&5
19225 sed 's/^/| /' conftest.$ac_ext >&5
19227 ac_cv_func_getpgrp_void=yes
19230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19233 { echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
19234 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19235 if test $ac_cv_func_getpgrp_void = yes; then
19237 cat >>confdefs.h <<\_ACEOF
19238 #define GETPGRP_VOID 1
19245 for ac_func in strftime
19247 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19248 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19249 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19250 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19251 echo $ECHO_N "(cached
) $ECHO_C" >&6
19253 cat >conftest.$ac_ext <<_ACEOF
19256 cat confdefs.h >>conftest.$ac_ext
19257 cat >>conftest.$ac_ext <<_ACEOF
19258 /* end confdefs.h. */
19259 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19260 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19261 #define $ac_func innocuous_$ac_func
19263 /* System header to define __stub macros and hopefully few prototypes,
19264 which can conflict with char $ac_func (); below.
19265 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19266 <limits.h> exists even on freestanding compilers. */
19269 # include <limits.h>
19271 # include <assert.h>
19276 /* Override any GCC internal prototype to avoid an error.
19277 Use char because int might match the return type of a GCC
19278 builtin and then its argument prototype would still apply. */
19283 /* The GNU C library defines this for functions which it implements
19284 to always fail with ENOSYS. Some functions are actually named
19285 something starting with __ and the normal name is an alias. */
19286 #if defined __stub_$ac_func || defined __stub___$ac_func
19293 return $ac_func ();
19298 rm -f conftest.$ac_objext conftest$ac_exeext
19299 if { (ac_try="$ac_link"
19300 case "(($ac_try" in
19301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19302 *) ac_try_echo=$ac_try;;
19304 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19305 (eval "$ac_link") 2>conftest.er1
19307 grep -v '^ *+' conftest.er1 >conftest.err
19309 cat conftest.err >&5
19310 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19311 (exit $ac_status); } && {
19312 test -z "$ac_c_werror_flag" ||
19313 test ! -s conftest.err
19314 } && test -s conftest$ac_exeext &&
19315 $as_test_x conftest$ac_exeext; then
19316 eval "$as_ac_var=yes"
19318 echo "$as_me: failed program was
:" >&5
19319 sed 's/^/| /' conftest.$ac_ext >&5
19321 eval "$as_ac_var=no
"
19324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19325 conftest$ac_exeext conftest.$ac_ext
19327 ac_res=`eval echo '${'$as_ac_var'}'`
19328 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19329 echo "${ECHO_T}$ac_res" >&6; }
19330 if test `eval echo '${'$as_ac_var'}'` = yes; then
19331 cat >>confdefs.h <<_ACEOF
19332 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19336 # strftime is in -lintl on SCO UNIX.
19337 { echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
19338 echo $ECHO_N "checking
for strftime
in -lintl...
$ECHO_C" >&6; }
19339 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19340 echo $ECHO_N "(cached
) $ECHO_C" >&6
19342 ac_check_lib_save_LIBS=$LIBS
19343 LIBS="-lintl $LIBS"
19344 cat >conftest.$ac_ext <<_ACEOF
19347 cat confdefs.h >>conftest.$ac_ext
19348 cat >>conftest.$ac_ext <<_ACEOF
19349 /* end confdefs.h. */
19351 /* Override any GCC internal prototype to avoid an error.
19352 Use char because int might match the return type of a GCC
19353 builtin and then its argument prototype would still apply. */
19361 return strftime ();
19366 rm -f conftest.$ac_objext conftest$ac_exeext
19367 if { (ac_try="$ac_link"
19368 case "(($ac_try" in
19369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19370 *) ac_try_echo=$ac_try;;
19372 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19373 (eval "$ac_link") 2>conftest.er1
19375 grep -v '^ *+' conftest.er1 >conftest.err
19377 cat conftest.err >&5
19378 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19379 (exit $ac_status); } && {
19380 test -z "$ac_c_werror_flag" ||
19381 test ! -s conftest.err
19382 } && test -s conftest$ac_exeext &&
19383 $as_test_x conftest$ac_exeext; then
19384 ac_cv_lib_intl_strftime=yes
19386 echo "$as_me: failed program was
:" >&5
19387 sed 's/^/| /' conftest.$ac_ext >&5
19389 ac_cv_lib_intl_strftime=no
19392 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19393 conftest$ac_exeext conftest.$ac_ext
19394 LIBS=$ac_check_lib_save_LIBS
19396 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
19397 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19398 if test $ac_cv_lib_intl_strftime = yes; then
19399 cat >>confdefs.h <<\_ACEOF
19400 #define HAVE_STRFTIME 1
19403 LIBS="-lintl $LIBS"
19412 for ac_func in grantpt
19414 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19415 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19416 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19417 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19418 echo $ECHO_N "(cached
) $ECHO_C" >&6
19420 cat >conftest.$ac_ext <<_ACEOF
19423 cat confdefs.h >>conftest.$ac_ext
19424 cat >>conftest.$ac_ext <<_ACEOF
19425 /* end confdefs.h. */
19426 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19427 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19428 #define $ac_func innocuous_$ac_func
19430 /* System header to define __stub macros and hopefully few prototypes,
19431 which can conflict with char $ac_func (); below.
19432 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19433 <limits.h> exists even on freestanding compilers. */
19436 # include <limits.h>
19438 # include <assert.h>
19443 /* Override any GCC internal prototype to avoid an error.
19444 Use char because int might match the return type of a GCC
19445 builtin and then its argument prototype would still apply. */
19450 /* The GNU C library defines this for functions which it implements
19451 to always fail with ENOSYS. Some functions are actually named
19452 something starting with __ and the normal name is an alias. */
19453 #if defined __stub_$ac_func || defined __stub___$ac_func
19460 return $ac_func ();
19465 rm -f conftest.$ac_objext conftest$ac_exeext
19466 if { (ac_try="$ac_link"
19467 case "(($ac_try" in
19468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19469 *) ac_try_echo=$ac_try;;
19471 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19472 (eval "$ac_link") 2>conftest.er1
19474 grep -v '^ *+' conftest.er1 >conftest.err
19476 cat conftest.err >&5
19477 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19478 (exit $ac_status); } && {
19479 test -z "$ac_c_werror_flag" ||
19480 test ! -s conftest.err
19481 } && test -s conftest$ac_exeext &&
19482 $as_test_x conftest$ac_exeext; then
19483 eval "$as_ac_var=yes"
19485 echo "$as_me: failed program was
:" >&5
19486 sed 's/^/| /' conftest.$ac_ext >&5
19488 eval "$as_ac_var=no
"
19491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19492 conftest$ac_exeext conftest.$ac_ext
19494 ac_res=`eval echo '${'$as_ac_var'}'`
19495 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19496 echo "${ECHO_T}$ac_res" >&6; }
19497 if test `eval echo '${'$as_ac_var'}'` = yes; then
19498 cat >>confdefs.h <<_ACEOF
19499 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19506 # PTY-related GNU extensions.
19508 for ac_func in getpt
19510 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19511 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19512 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19513 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19514 echo $ECHO_N "(cached
) $ECHO_C" >&6
19516 cat >conftest.$ac_ext <<_ACEOF
19519 cat confdefs.h >>conftest.$ac_ext
19520 cat >>conftest.$ac_ext <<_ACEOF
19521 /* end confdefs.h. */
19522 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19523 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19524 #define $ac_func innocuous_$ac_func
19526 /* System header to define __stub macros and hopefully few prototypes,
19527 which can conflict with char $ac_func (); below.
19528 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19529 <limits.h> exists even on freestanding compilers. */
19532 # include <limits.h>
19534 # include <assert.h>
19539 /* Override any GCC internal prototype to avoid an error.
19540 Use char because int might match the return type of a GCC
19541 builtin and then its argument prototype would still apply. */
19546 /* The GNU C library defines this for functions which it implements
19547 to always fail with ENOSYS. Some functions are actually named
19548 something starting with __ and the normal name is an alias. */
19549 #if defined __stub_$ac_func || defined __stub___$ac_func
19556 return $ac_func ();
19561 rm -f conftest.$ac_objext conftest$ac_exeext
19562 if { (ac_try="$ac_link"
19563 case "(($ac_try" in
19564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19565 *) ac_try_echo=$ac_try;;
19567 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19568 (eval "$ac_link") 2>conftest.er1
19570 grep -v '^ *+' conftest.er1 >conftest.err
19572 cat conftest.err >&5
19573 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19574 (exit $ac_status); } && {
19575 test -z "$ac_c_werror_flag" ||
19576 test ! -s conftest.err
19577 } && test -s conftest$ac_exeext &&
19578 $as_test_x conftest$ac_exeext; then
19579 eval "$as_ac_var=yes"
19581 echo "$as_me: failed program was
:" >&5
19582 sed 's/^/| /' conftest.$ac_ext >&5
19584 eval "$as_ac_var=no
"
19587 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19588 conftest$ac_exeext conftest.$ac_ext
19590 ac_res=`eval echo '${'$as_ac_var'}'`
19591 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19592 echo "${ECHO_T}$ac_res" >&6; }
19593 if test `eval echo '${'$as_ac_var'}'` = yes; then
19594 cat >>confdefs.h <<_ACEOF
19595 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19602 # Check this now, so that we will NOT find the above functions in ncurses.
19603 # That is because we have not set up to link ncurses in lib-src.
19604 # It's better to believe a function is not available
19605 # than to expect to find it in ncurses.
19607 { echo "$as_me:$LINENO: checking
for tparm
in -lncurses" >&5
19608 echo $ECHO_N "checking
for tparm
in -lncurses...
$ECHO_C" >&6; }
19609 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19610 echo $ECHO_N "(cached
) $ECHO_C" >&6
19612 ac_check_lib_save_LIBS=$LIBS
19613 LIBS="-lncurses $LIBS"
19614 cat >conftest.$ac_ext <<_ACEOF
19617 cat confdefs.h >>conftest.$ac_ext
19618 cat >>conftest.$ac_ext <<_ACEOF
19619 /* end confdefs.h. */
19621 /* Override any GCC internal prototype to avoid an error.
19622 Use char because int might match the return type of a GCC
19623 builtin and then its argument prototype would still apply. */
19636 rm -f conftest.$ac_objext conftest$ac_exeext
19637 if { (ac_try="$ac_link"
19638 case "(($ac_try" in
19639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19640 *) ac_try_echo=$ac_try;;
19642 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19643 (eval "$ac_link") 2>conftest.er1
19645 grep -v '^ *+' conftest.er1 >conftest.err
19647 cat conftest.err >&5
19648 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19649 (exit $ac_status); } && {
19650 test -z "$ac_c_werror_flag" ||
19651 test ! -s conftest.err
19652 } && test -s conftest$ac_exeext &&
19653 $as_test_x conftest$ac_exeext; then
19654 ac_cv_lib_ncurses_tparm=yes
19656 echo "$as_me: failed program was
:" >&5
19657 sed 's/^/| /' conftest.$ac_ext >&5
19659 ac_cv_lib_ncurses_tparm=no
19662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19663 conftest$ac_exeext conftest.$ac_ext
19664 LIBS=$ac_check_lib_save_LIBS
19666 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ncurses_tparm" >&5
19667 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19668 if test $ac_cv_lib_ncurses_tparm = yes; then
19669 cat >>confdefs.h <<_ACEOF
19670 #define HAVE_LIBNCURSES 1
19673 LIBS="-lncurses $LIBS"
19678 # Do we have res_init, for detecting changes in /etc/resolv.conf?
19681 cat >conftest.$ac_ext <<_ACEOF
19684 cat confdefs.h >>conftest.$ac_ext
19685 cat >>conftest.$ac_ext <<_ACEOF
19686 /* end confdefs.h. */
19687 #include <netinet/in.h>
19688 #include <arpa/nameser.h>
19689 #include <resolv.h>
19698 rm -f conftest.$ac_objext conftest$ac_exeext
19699 if { (ac_try="$ac_link"
19700 case "(($ac_try" in
19701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19702 *) ac_try_echo=$ac_try;;
19704 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19705 (eval "$ac_link") 2>conftest.er1
19707 grep -v '^ *+' conftest.er1 >conftest.err
19709 cat conftest.err >&5
19710 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19711 (exit $ac_status); } && {
19712 test -z "$ac_c_werror_flag" ||
19713 test ! -s conftest.err
19714 } && test -s conftest$ac_exeext &&
19715 $as_test_x conftest$ac_exeext; then
19718 echo "$as_me: failed program was
:" >&5
19719 sed 's/^/| /' conftest.$ac_ext >&5
19724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19725 conftest$ac_exeext conftest.$ac_ext
19726 if test "$have_res_init" = no; then
19728 LIBS="$LIBS -lresolv"
19729 { echo "$as_me:$LINENO: checking
for res_init with
-lresolv" >&5
19730 echo $ECHO_N "checking
for res_init with
-lresolv...
$ECHO_C" >&6; }
19731 cat >conftest.$ac_ext <<_ACEOF
19734 cat confdefs.h >>conftest.$ac_ext
19735 cat >>conftest.$ac_ext <<_ACEOF
19736 /* end confdefs.h. */
19737 #include <netinet/in.h>
19738 #include <arpa/nameser.h>
19739 #include <resolv.h>
19748 rm -f conftest.$ac_objext conftest$ac_exeext
19749 if { (ac_try="$ac_link"
19750 case "(($ac_try" in
19751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19752 *) ac_try_echo=$ac_try;;
19754 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19755 (eval "$ac_link") 2>conftest.er1
19757 grep -v '^ *+' conftest.er1 >conftest.err
19759 cat conftest.err >&5
19760 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19761 (exit $ac_status); } && {
19762 test -z "$ac_c_werror_flag" ||
19763 test ! -s conftest.err
19764 } && test -s conftest$ac_exeext &&
19765 $as_test_x conftest$ac_exeext; then
19768 echo "$as_me: failed program was
:" >&5
19769 sed 's/^/| /' conftest.$ac_ext >&5
19774 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19775 conftest$ac_exeext conftest.$ac_ext
19776 { echo "$as_me:$LINENO: result
: $have_res_init" >&5
19777 echo "${ECHO_T}$have_res_init" >&6; }
19778 if test "$have_res_init" = yes ; then
19784 if test "$have_res_init" = yes; then
19786 cat >>confdefs.h <<\_ACEOF
19787 #define HAVE_RES_INIT 1
19792 # Do we need the Hesiod library to provide the support routines?
19793 if test "$with_hesiod" = yes ; then
19794 # Don't set $LIBS here -- see comments above.
19795 { echo "$as_me:$LINENO: checking
for res_send
" >&5
19796 echo $ECHO_N "checking
for res_send...
$ECHO_C" >&6; }
19797 if test "${ac_cv_func_res_send+set}" = set; then
19798 echo $ECHO_N "(cached
) $ECHO_C" >&6
19800 cat >conftest.$ac_ext <<_ACEOF
19803 cat confdefs.h >>conftest.$ac_ext
19804 cat >>conftest.$ac_ext <<_ACEOF
19805 /* end confdefs.h. */
19806 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19807 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19808 #define res_send innocuous_res_send
19810 /* System header to define __stub macros and hopefully few prototypes,
19811 which can conflict with char res_send (); below.
19812 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19813 <limits.h> exists even on freestanding compilers. */
19816 # include <limits.h>
19818 # include <assert.h>
19823 /* Override any GCC internal prototype to avoid an error.
19824 Use char because int might match the return type of a GCC
19825 builtin and then its argument prototype would still apply. */
19830 /* The GNU C library defines this for functions which it implements
19831 to always fail with ENOSYS. Some functions are actually named
19832 something starting with __ and the normal name is an alias. */
19833 #if defined __stub_res_send || defined __stub___res_send
19840 return res_send ();
19845 rm -f conftest.$ac_objext conftest$ac_exeext
19846 if { (ac_try="$ac_link"
19847 case "(($ac_try" in
19848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19849 *) ac_try_echo=$ac_try;;
19851 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19852 (eval "$ac_link") 2>conftest.er1
19854 grep -v '^ *+' conftest.er1 >conftest.err
19856 cat conftest.err >&5
19857 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19858 (exit $ac_status); } && {
19859 test -z "$ac_c_werror_flag" ||
19860 test ! -s conftest.err
19861 } && test -s conftest$ac_exeext &&
19862 $as_test_x conftest$ac_exeext; then
19863 ac_cv_func_res_send=yes
19865 echo "$as_me: failed program was
:" >&5
19866 sed 's/^/| /' conftest.$ac_ext >&5
19868 ac_cv_func_res_send=no
19871 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19872 conftest$ac_exeext conftest.$ac_ext
19874 { echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
19875 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19876 if test $ac_cv_func_res_send = yes; then
19879 { echo "$as_me:$LINENO: checking
for __res_send
" >&5
19880 echo $ECHO_N "checking
for __res_send...
$ECHO_C" >&6; }
19881 if test "${ac_cv_func___res_send+set}" = set; then
19882 echo $ECHO_N "(cached
) $ECHO_C" >&6
19884 cat >conftest.$ac_ext <<_ACEOF
19887 cat confdefs.h >>conftest.$ac_ext
19888 cat >>conftest.$ac_ext <<_ACEOF
19889 /* end confdefs.h. */
19890 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19891 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19892 #define __res_send innocuous___res_send
19894 /* System header to define __stub macros and hopefully few prototypes,
19895 which can conflict with char __res_send (); below.
19896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19897 <limits.h> exists even on freestanding compilers. */
19900 # include <limits.h>
19902 # include <assert.h>
19907 /* Override any GCC internal prototype to avoid an error.
19908 Use char because int might match the return type of a GCC
19909 builtin and then its argument prototype would still apply. */
19913 char __res_send ();
19914 /* The GNU C library defines this for functions which it implements
19915 to always fail with ENOSYS. Some functions are actually named
19916 something starting with __ and the normal name is an alias. */
19917 #if defined __stub___res_send || defined __stub_____res_send
19924 return __res_send ();
19929 rm -f conftest.$ac_objext conftest$ac_exeext
19930 if { (ac_try="$ac_link"
19931 case "(($ac_try" in
19932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19933 *) ac_try_echo=$ac_try;;
19935 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19936 (eval "$ac_link") 2>conftest.er1
19938 grep -v '^ *+' conftest.er1 >conftest.err
19940 cat conftest.err >&5
19941 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19942 (exit $ac_status); } && {
19943 test -z "$ac_c_werror_flag" ||
19944 test ! -s conftest.err
19945 } && test -s conftest$ac_exeext &&
19946 $as_test_x conftest$ac_exeext; then
19947 ac_cv_func___res_send=yes
19949 echo "$as_me: failed program was
:" >&5
19950 sed 's/^/| /' conftest.$ac_ext >&5
19952 ac_cv_func___res_send=no
19955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19956 conftest$ac_exeext conftest.$ac_ext
19958 { echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
19959 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19960 if test $ac_cv_func___res_send = yes; then
19963 { echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
19964 echo $ECHO_N "checking
for res_send
in -lresolv...
$ECHO_C" >&6; }
19965 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19966 echo $ECHO_N "(cached
) $ECHO_C" >&6
19968 ac_check_lib_save_LIBS=$LIBS
19969 LIBS="-lresolv $LIBS"
19970 cat >conftest.$ac_ext <<_ACEOF
19973 cat confdefs.h >>conftest.$ac_ext
19974 cat >>conftest.$ac_ext <<_ACEOF
19975 /* end confdefs.h. */
19977 /* Override any GCC internal prototype to avoid an error.
19978 Use char because int might match the return type of a GCC
19979 builtin and then its argument prototype would still apply. */
19987 return res_send ();
19992 rm -f conftest.$ac_objext conftest$ac_exeext
19993 if { (ac_try="$ac_link"
19994 case "(($ac_try" in
19995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19996 *) ac_try_echo=$ac_try;;
19998 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19999 (eval "$ac_link") 2>conftest.er1
20001 grep -v '^ *+' conftest.er1 >conftest.err
20003 cat conftest.err >&5
20004 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20005 (exit $ac_status); } && {
20006 test -z "$ac_c_werror_flag" ||
20007 test ! -s conftest.err
20008 } && test -s conftest$ac_exeext &&
20009 $as_test_x conftest$ac_exeext; then
20010 ac_cv_lib_resolv_res_send=yes
20012 echo "$as_me: failed program was
:" >&5
20013 sed 's/^/| /' conftest.$ac_ext >&5
20015 ac_cv_lib_resolv_res_send=no
20018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20019 conftest$ac_exeext conftest.$ac_ext
20020 LIBS=$ac_check_lib_save_LIBS
20022 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
20023 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
20024 if test $ac_cv_lib_resolv_res_send = yes; then
20027 { echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
20028 echo $ECHO_N "checking
for __res_send
in -lresolv...
$ECHO_C" >&6; }
20029 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
20030 echo $ECHO_N "(cached
) $ECHO_C" >&6
20032 ac_check_lib_save_LIBS=$LIBS
20033 LIBS="-lresolv $LIBS"
20034 cat >conftest.$ac_ext <<_ACEOF
20037 cat confdefs.h >>conftest.$ac_ext
20038 cat >>conftest.$ac_ext <<_ACEOF
20039 /* end confdefs.h. */
20041 /* Override any GCC internal prototype to avoid an error.
20042 Use char because int might match the return type of a GCC
20043 builtin and then its argument prototype would still apply. */
20047 char __res_send ();
20051 return __res_send ();
20056 rm -f conftest.$ac_objext conftest$ac_exeext
20057 if { (ac_try="$ac_link"
20058 case "(($ac_try" in
20059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20060 *) ac_try_echo=$ac_try;;
20062 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20063 (eval "$ac_link") 2>conftest.er1
20065 grep -v '^ *+' conftest.er1 >conftest.err
20067 cat conftest.err >&5
20068 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20069 (exit $ac_status); } && {
20070 test -z "$ac_c_werror_flag" ||
20071 test ! -s conftest.err
20072 } && test -s conftest$ac_exeext &&
20073 $as_test_x conftest$ac_exeext; then
20074 ac_cv_lib_resolv___res_send=yes
20076 echo "$as_me: failed program was
:" >&5
20077 sed 's/^/| /' conftest.$ac_ext >&5
20079 ac_cv_lib_resolv___res_send=no
20082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20083 conftest$ac_exeext conftest.$ac_ext
20084 LIBS=$ac_check_lib_save_LIBS
20086 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
20087 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
20088 if test $ac_cv_lib_resolv___res_send = yes; then
20098 if test "$resolv" = yes ; then
20103 { echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
20104 echo $ECHO_N "checking
for hes_getmailhost...
$ECHO_C" >&6; }
20105 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
20106 echo $ECHO_N "(cached
) $ECHO_C" >&6
20108 cat >conftest.$ac_ext <<_ACEOF
20111 cat confdefs.h >>conftest.$ac_ext
20112 cat >>conftest.$ac_ext <<_ACEOF
20113 /* end confdefs.h. */
20114 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
20115 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20116 #define hes_getmailhost innocuous_hes_getmailhost
20118 /* System header to define __stub macros and hopefully few prototypes,
20119 which can conflict with char hes_getmailhost (); below.
20120 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20121 <limits.h> exists even on freestanding compilers. */
20124 # include <limits.h>
20126 # include <assert.h>
20129 #undef hes_getmailhost
20131 /* Override any GCC internal prototype to avoid an error.
20132 Use char because int might match the return type of a GCC
20133 builtin and then its argument prototype would still apply. */
20137 char hes_getmailhost ();
20138 /* The GNU C library defines this for functions which it implements
20139 to always fail with ENOSYS. Some functions are actually named
20140 something starting with __ and the normal name is an alias. */
20141 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
20148 return hes_getmailhost ();
20153 rm -f conftest.$ac_objext conftest$ac_exeext
20154 if { (ac_try="$ac_link"
20155 case "(($ac_try" in
20156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20157 *) ac_try_echo=$ac_try;;
20159 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20160 (eval "$ac_link") 2>conftest.er1
20162 grep -v '^ *+' conftest.er1 >conftest.err
20164 cat conftest.err >&5
20165 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20166 (exit $ac_status); } && {
20167 test -z "$ac_c_werror_flag" ||
20168 test ! -s conftest.err
20169 } && test -s conftest$ac_exeext &&
20170 $as_test_x conftest$ac_exeext; then
20171 ac_cv_func_hes_getmailhost=yes
20173 echo "$as_me: failed program was
:" >&5
20174 sed 's/^/| /' conftest.$ac_ext >&5
20176 ac_cv_func_hes_getmailhost=no
20179 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20180 conftest$ac_exeext conftest.$ac_ext
20182 { echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
20183 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20184 if test $ac_cv_func_hes_getmailhost = yes; then
20187 { echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
20188 echo $ECHO_N "checking
for hes_getmailhost
in -lhesiod...
$ECHO_C" >&6; }
20189 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20190 echo $ECHO_N "(cached
) $ECHO_C" >&6
20192 ac_check_lib_save_LIBS=$LIBS
20193 LIBS="-lhesiod $RESOLVLIB $LIBS"
20194 cat >conftest.$ac_ext <<_ACEOF
20197 cat confdefs.h >>conftest.$ac_ext
20198 cat >>conftest.$ac_ext <<_ACEOF
20199 /* end confdefs.h. */
20201 /* Override any GCC internal prototype to avoid an error.
20202 Use char because int might match the return type of a GCC
20203 builtin and then its argument prototype would still apply. */
20207 char hes_getmailhost ();
20211 return hes_getmailhost ();
20216 rm -f conftest.$ac_objext conftest$ac_exeext
20217 if { (ac_try="$ac_link"
20218 case "(($ac_try" in
20219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20220 *) ac_try_echo=$ac_try;;
20222 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20223 (eval "$ac_link") 2>conftest.er1
20225 grep -v '^ *+' conftest.er1 >conftest.err
20227 cat conftest.err >&5
20228 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20229 (exit $ac_status); } && {
20230 test -z "$ac_c_werror_flag" ||
20231 test ! -s conftest.err
20232 } && test -s conftest$ac_exeext &&
20233 $as_test_x conftest$ac_exeext; then
20234 ac_cv_lib_hesiod_hes_getmailhost=yes
20236 echo "$as_me: failed program was
:" >&5
20237 sed 's/^/| /' conftest.$ac_ext >&5
20239 ac_cv_lib_hesiod_hes_getmailhost=no
20242 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20243 conftest$ac_exeext conftest.$ac_ext
20244 LIBS=$ac_check_lib_save_LIBS
20246 { echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20247 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20248 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20250 cat >>confdefs.h <<\_ACEOF
20251 #define HAVE_LIBHESIOD 1
20262 # Do we need libresolv (due to res_init or Hesiod)?
20263 if test "$resolv" = yes ; then
20265 cat >>confdefs.h <<\_ACEOF
20266 #define HAVE_LIBRESOLV 1
20271 # These tell us which Kerberos-related libraries to use.
20272 if test "${with_kerberos+set}" = set; then
20274 { echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
20275 echo $ECHO_N "checking
for com_err
in -lcom_err...
$ECHO_C" >&6; }
20276 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20277 echo $ECHO_N "(cached
) $ECHO_C" >&6
20279 ac_check_lib_save_LIBS=$LIBS
20280 LIBS="-lcom_err $LIBS"
20281 cat >conftest.$ac_ext <<_ACEOF
20284 cat confdefs.h >>conftest.$ac_ext
20285 cat >>conftest.$ac_ext <<_ACEOF
20286 /* end confdefs.h. */
20288 /* Override any GCC internal prototype to avoid an error.
20289 Use char because int might match the return type of a GCC
20290 builtin and then its argument prototype would still apply. */
20303 rm -f conftest.$ac_objext conftest$ac_exeext
20304 if { (ac_try="$ac_link"
20305 case "(($ac_try" in
20306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20307 *) ac_try_echo=$ac_try;;
20309 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20310 (eval "$ac_link") 2>conftest.er1
20312 grep -v '^ *+' conftest.er1 >conftest.err
20314 cat conftest.err >&5
20315 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20316 (exit $ac_status); } && {
20317 test -z "$ac_c_werror_flag" ||
20318 test ! -s conftest.err
20319 } && test -s conftest$ac_exeext &&
20320 $as_test_x conftest$ac_exeext; then
20321 ac_cv_lib_com_err_com_err=yes
20323 echo "$as_me: failed program was
:" >&5
20324 sed 's/^/| /' conftest.$ac_ext >&5
20326 ac_cv_lib_com_err_com_err=no
20329 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20330 conftest$ac_exeext conftest.$ac_ext
20331 LIBS=$ac_check_lib_save_LIBS
20333 { echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
20334 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20335 if test $ac_cv_lib_com_err_com_err = yes; then
20336 cat >>confdefs.h <<_ACEOF
20337 #define HAVE_LIBCOM_ERR 1
20340 LIBS="-lcom_err $LIBS"
20345 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
20346 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lk5crypto...
$ECHO_C" >&6; }
20347 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20348 echo $ECHO_N "(cached
) $ECHO_C" >&6
20350 ac_check_lib_save_LIBS=$LIBS
20351 LIBS="-lk5crypto $LIBS"
20352 cat >conftest.$ac_ext <<_ACEOF
20355 cat confdefs.h >>conftest.$ac_ext
20356 cat >>conftest.$ac_ext <<_ACEOF
20357 /* end confdefs.h. */
20359 /* Override any GCC internal prototype to avoid an error.
20360 Use char because int might match the return type of a GCC
20361 builtin and then its argument prototype would still apply. */
20365 char mit_des_cbc_encrypt ();
20369 return mit_des_cbc_encrypt ();
20374 rm -f conftest.$ac_objext conftest$ac_exeext
20375 if { (ac_try="$ac_link"
20376 case "(($ac_try" in
20377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20378 *) ac_try_echo=$ac_try;;
20380 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20381 (eval "$ac_link") 2>conftest.er1
20383 grep -v '^ *+' conftest.er1 >conftest.err
20385 cat conftest.err >&5
20386 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20387 (exit $ac_status); } && {
20388 test -z "$ac_c_werror_flag" ||
20389 test ! -s conftest.err
20390 } && test -s conftest$ac_exeext &&
20391 $as_test_x conftest$ac_exeext; then
20392 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20394 echo "$as_me: failed program was
:" >&5
20395 sed 's/^/| /' conftest.$ac_ext >&5
20397 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20400 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20401 conftest$ac_exeext conftest.$ac_ext
20402 LIBS=$ac_check_lib_save_LIBS
20404 { echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20405 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20406 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20407 cat >>confdefs.h <<_ACEOF
20408 #define HAVE_LIBK5CRYPTO 1
20411 LIBS="-lk5crypto $LIBS"
20416 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
20417 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lcrypto...
$ECHO_C" >&6; }
20418 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20419 echo $ECHO_N "(cached
) $ECHO_C" >&6
20421 ac_check_lib_save_LIBS=$LIBS
20422 LIBS="-lcrypto $LIBS"
20423 cat >conftest.$ac_ext <<_ACEOF
20426 cat confdefs.h >>conftest.$ac_ext
20427 cat >>conftest.$ac_ext <<_ACEOF
20428 /* end confdefs.h. */
20430 /* Override any GCC internal prototype to avoid an error.
20431 Use char because int might match the return type of a GCC
20432 builtin and then its argument prototype would still apply. */
20436 char mit_des_cbc_encrypt ();
20440 return mit_des_cbc_encrypt ();
20445 rm -f conftest.$ac_objext conftest$ac_exeext
20446 if { (ac_try="$ac_link"
20447 case "(($ac_try" in
20448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20449 *) ac_try_echo=$ac_try;;
20451 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20452 (eval "$ac_link") 2>conftest.er1
20454 grep -v '^ *+' conftest.er1 >conftest.err
20456 cat conftest.err >&5
20457 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20458 (exit $ac_status); } && {
20459 test -z "$ac_c_werror_flag" ||
20460 test ! -s conftest.err
20461 } && test -s conftest$ac_exeext &&
20462 $as_test_x conftest$ac_exeext; then
20463 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20465 echo "$as_me: failed program was
:" >&5
20466 sed 's/^/| /' conftest.$ac_ext >&5
20468 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20472 conftest$ac_exeext conftest.$ac_ext
20473 LIBS=$ac_check_lib_save_LIBS
20475 { echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20476 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20477 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20478 cat >>confdefs.h <<_ACEOF
20479 #define HAVE_LIBCRYPTO 1
20482 LIBS="-lcrypto $LIBS"
20487 { echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
20488 echo $ECHO_N "checking
for krb5_init_context
in -lkrb5...
$ECHO_C" >&6; }
20489 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20490 echo $ECHO_N "(cached
) $ECHO_C" >&6
20492 ac_check_lib_save_LIBS=$LIBS
20493 LIBS="-lkrb5 $LIBS"
20494 cat >conftest.$ac_ext <<_ACEOF
20497 cat confdefs.h >>conftest.$ac_ext
20498 cat >>conftest.$ac_ext <<_ACEOF
20499 /* end confdefs.h. */
20501 /* Override any GCC internal prototype to avoid an error.
20502 Use char because int might match the return type of a GCC
20503 builtin and then its argument prototype would still apply. */
20507 char krb5_init_context ();
20511 return krb5_init_context ();
20516 rm -f conftest.$ac_objext conftest$ac_exeext
20517 if { (ac_try="$ac_link"
20518 case "(($ac_try" in
20519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20520 *) ac_try_echo=$ac_try;;
20522 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20523 (eval "$ac_link") 2>conftest.er1
20525 grep -v '^ *+' conftest.er1 >conftest.err
20527 cat conftest.err >&5
20528 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20529 (exit $ac_status); } && {
20530 test -z "$ac_c_werror_flag" ||
20531 test ! -s conftest.err
20532 } && test -s conftest$ac_exeext &&
20533 $as_test_x conftest$ac_exeext; then
20534 ac_cv_lib_krb5_krb5_init_context=yes
20536 echo "$as_me: failed program was
:" >&5
20537 sed 's/^/| /' conftest.$ac_ext >&5
20539 ac_cv_lib_krb5_krb5_init_context=no
20542 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20543 conftest$ac_exeext conftest.$ac_ext
20544 LIBS=$ac_check_lib_save_LIBS
20546 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
20547 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20548 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20549 cat >>confdefs.h <<_ACEOF
20550 #define HAVE_LIBKRB5 1
20553 LIBS="-lkrb5 $LIBS"
20557 if test "${with_kerberos5+set}" != set; then
20559 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
20560 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes425...
$ECHO_C" >&6; }
20561 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20562 echo $ECHO_N "(cached
) $ECHO_C" >&6
20564 ac_check_lib_save_LIBS=$LIBS
20565 LIBS="-ldes425 $LIBS"
20566 cat >conftest.$ac_ext <<_ACEOF
20569 cat confdefs.h >>conftest.$ac_ext
20570 cat >>conftest.$ac_ext <<_ACEOF
20571 /* end confdefs.h. */
20573 /* Override any GCC internal prototype to avoid an error.
20574 Use char because int might match the return type of a GCC
20575 builtin and then its argument prototype would still apply. */
20579 char des_cbc_encrypt ();
20583 return des_cbc_encrypt ();
20588 rm -f conftest.$ac_objext conftest$ac_exeext
20589 if { (ac_try="$ac_link"
20590 case "(($ac_try" in
20591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20592 *) ac_try_echo=$ac_try;;
20594 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20595 (eval "$ac_link") 2>conftest.er1
20597 grep -v '^ *+' conftest.er1 >conftest.err
20599 cat conftest.err >&5
20600 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20601 (exit $ac_status); } && {
20602 test -z "$ac_c_werror_flag" ||
20603 test ! -s conftest.err
20604 } && test -s conftest$ac_exeext &&
20605 $as_test_x conftest$ac_exeext; then
20606 ac_cv_lib_des425_des_cbc_encrypt=yes
20608 echo "$as_me: failed program was
:" >&5
20609 sed 's/^/| /' conftest.$ac_ext >&5
20611 ac_cv_lib_des425_des_cbc_encrypt=no
20614 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20615 conftest$ac_exeext conftest.$ac_ext
20616 LIBS=$ac_check_lib_save_LIBS
20618 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20619 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20620 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20621 cat >>confdefs.h <<_ACEOF
20622 #define HAVE_LIBDES425 1
20625 LIBS="-ldes425 $LIBS"
20629 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
20630 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes...
$ECHO_C" >&6; }
20631 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20632 echo $ECHO_N "(cached
) $ECHO_C" >&6
20634 ac_check_lib_save_LIBS=$LIBS
20636 cat >conftest.$ac_ext <<_ACEOF
20639 cat confdefs.h >>conftest.$ac_ext
20640 cat >>conftest.$ac_ext <<_ACEOF
20641 /* end confdefs.h. */
20643 /* Override any GCC internal prototype to avoid an error.
20644 Use char because int might match the return type of a GCC
20645 builtin and then its argument prototype would still apply. */
20649 char des_cbc_encrypt ();
20653 return des_cbc_encrypt ();
20658 rm -f conftest.$ac_objext conftest$ac_exeext
20659 if { (ac_try="$ac_link"
20660 case "(($ac_try" in
20661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20662 *) ac_try_echo=$ac_try;;
20664 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20665 (eval "$ac_link") 2>conftest.er1
20667 grep -v '^ *+' conftest.er1 >conftest.err
20669 cat conftest.err >&5
20670 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20671 (exit $ac_status); } && {
20672 test -z "$ac_c_werror_flag" ||
20673 test ! -s conftest.err
20674 } && test -s conftest$ac_exeext &&
20675 $as_test_x conftest$ac_exeext; then
20676 ac_cv_lib_des_des_cbc_encrypt=yes
20678 echo "$as_me: failed program was
:" >&5
20679 sed 's/^/| /' conftest.$ac_ext >&5
20681 ac_cv_lib_des_des_cbc_encrypt=no
20684 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20685 conftest$ac_exeext conftest.$ac_ext
20686 LIBS=$ac_check_lib_save_LIBS
20688 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
20689 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20690 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20691 cat >>confdefs.h <<_ACEOF
20692 #define HAVE_LIBDES 1
20702 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
20703 echo $ECHO_N "checking
for krb_get_cred
in -lkrb4...
$ECHO_C" >&6; }
20704 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20705 echo $ECHO_N "(cached
) $ECHO_C" >&6
20707 ac_check_lib_save_LIBS=$LIBS
20708 LIBS="-lkrb4 $LIBS"
20709 cat >conftest.$ac_ext <<_ACEOF
20712 cat confdefs.h >>conftest.$ac_ext
20713 cat >>conftest.$ac_ext <<_ACEOF
20714 /* end confdefs.h. */
20716 /* Override any GCC internal prototype to avoid an error.
20717 Use char because int might match the return type of a GCC
20718 builtin and then its argument prototype would still apply. */
20722 char krb_get_cred ();
20726 return krb_get_cred ();
20731 rm -f conftest.$ac_objext conftest$ac_exeext
20732 if { (ac_try="$ac_link"
20733 case "(($ac_try" in
20734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20735 *) ac_try_echo=$ac_try;;
20737 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20738 (eval "$ac_link") 2>conftest.er1
20740 grep -v '^ *+' conftest.er1 >conftest.err
20742 cat conftest.err >&5
20743 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20744 (exit $ac_status); } && {
20745 test -z "$ac_c_werror_flag" ||
20746 test ! -s conftest.err
20747 } && test -s conftest$ac_exeext &&
20748 $as_test_x conftest$ac_exeext; then
20749 ac_cv_lib_krb4_krb_get_cred=yes
20751 echo "$as_me: failed program was
:" >&5
20752 sed 's/^/| /' conftest.$ac_ext >&5
20754 ac_cv_lib_krb4_krb_get_cred=no
20757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20758 conftest$ac_exeext conftest.$ac_ext
20759 LIBS=$ac_check_lib_save_LIBS
20761 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
20762 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20763 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20764 cat >>confdefs.h <<_ACEOF
20765 #define HAVE_LIBKRB4 1
20768 LIBS="-lkrb4 $LIBS"
20772 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
20773 echo $ECHO_N "checking
for krb_get_cred
in -lkrb...
$ECHO_C" >&6; }
20774 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20775 echo $ECHO_N "(cached
) $ECHO_C" >&6
20777 ac_check_lib_save_LIBS=$LIBS
20779 cat >conftest.$ac_ext <<_ACEOF
20782 cat confdefs.h >>conftest.$ac_ext
20783 cat >>conftest.$ac_ext <<_ACEOF
20784 /* end confdefs.h. */
20786 /* Override any GCC internal prototype to avoid an error.
20787 Use char because int might match the return type of a GCC
20788 builtin and then its argument prototype would still apply. */
20792 char krb_get_cred ();
20796 return krb_get_cred ();
20801 rm -f conftest.$ac_objext conftest$ac_exeext
20802 if { (ac_try="$ac_link"
20803 case "(($ac_try" in
20804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20805 *) ac_try_echo=$ac_try;;
20807 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20808 (eval "$ac_link") 2>conftest.er1
20810 grep -v '^ *+' conftest.er1 >conftest.err
20812 cat conftest.err >&5
20813 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20814 (exit $ac_status); } && {
20815 test -z "$ac_c_werror_flag" ||
20816 test ! -s conftest.err
20817 } && test -s conftest$ac_exeext &&
20818 $as_test_x conftest$ac_exeext; then
20819 ac_cv_lib_krb_krb_get_cred=yes
20821 echo "$as_me: failed program was
:" >&5
20822 sed 's/^/| /' conftest.$ac_ext >&5
20824 ac_cv_lib_krb_krb_get_cred=no
20827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20828 conftest$ac_exeext conftest.$ac_ext
20829 LIBS=$ac_check_lib_save_LIBS
20831 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
20832 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20833 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20834 cat >>confdefs.h <<_ACEOF
20835 #define HAVE_LIBKRB 1
20846 if test "${with_kerberos5+set}" = set; then
20848 for ac_header in krb5.h
20850 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20851 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20852 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20853 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20854 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20855 echo $ECHO_N "(cached
) $ECHO_C" >&6
20857 ac_res=`eval echo '${'$as_ac_Header'}'`
20858 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20859 echo "${ECHO_T}$ac_res" >&6; }
20861 # Is the header compilable?
20862 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20863 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20864 cat >conftest.$ac_ext <<_ACEOF
20867 cat confdefs.h >>conftest.$ac_ext
20868 cat >>conftest.$ac_ext <<_ACEOF
20869 /* end confdefs.h. */
20870 $ac_includes_default
20871 #include <$ac_header>
20873 rm -f conftest.$ac_objext
20874 if { (ac_try="$ac_compile"
20875 case "(($ac_try" in
20876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20877 *) ac_try_echo=$ac_try;;
20879 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20880 (eval "$ac_compile") 2>conftest.er1
20882 grep -v '^ *+' conftest.er1 >conftest.err
20884 cat conftest.err >&5
20885 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20886 (exit $ac_status); } && {
20887 test -z "$ac_c_werror_flag" ||
20888 test ! -s conftest.err
20889 } && test -s conftest.$ac_objext; then
20890 ac_header_compiler=yes
20892 echo "$as_me: failed program was
:" >&5
20893 sed 's/^/| /' conftest.$ac_ext >&5
20895 ac_header_compiler=no
20898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20899 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20900 echo "${ECHO_T}$ac_header_compiler" >&6; }
20902 # Is the header present?
20903 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20904 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20905 cat >conftest.$ac_ext <<_ACEOF
20908 cat confdefs.h >>conftest.$ac_ext
20909 cat >>conftest.$ac_ext <<_ACEOF
20910 /* end confdefs.h. */
20911 #include <$ac_header>
20913 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20914 case "(($ac_try" in
20915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20916 *) ac_try_echo=$ac_try;;
20918 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20919 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20921 grep -v '^ *+' conftest.er1 >conftest.err
20923 cat conftest.err >&5
20924 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20925 (exit $ac_status); } >/dev/null && {
20926 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20927 test ! -s conftest.err
20929 ac_header_preproc=yes
20931 echo "$as_me: failed program was
:" >&5
20932 sed 's/^/| /' conftest.$ac_ext >&5
20934 ac_header_preproc=no
20937 rm -f conftest.err conftest.$ac_ext
20938 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20939 echo "${ECHO_T}$ac_header_preproc" >&6; }
20941 # So? What about this header?
20942 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20944 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20945 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20946 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20947 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20948 ac_header_preproc=yes
20951 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20952 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20953 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20954 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20955 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20956 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20957 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20958 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20959 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20960 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20961 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20962 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20966 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20967 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20968 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20969 echo $ECHO_N "(cached
) $ECHO_C" >&6
20971 eval "$as_ac_Header=\
$ac_header_preproc"
20973 ac_res=`eval echo '${'$as_ac_Header'}'`
20974 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20975 echo "${ECHO_T}$ac_res" >&6; }
20978 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20979 cat >>confdefs.h <<_ACEOF
20980 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20989 for ac_header in des.h
20991 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20992 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20993 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20994 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20995 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20996 echo $ECHO_N "(cached
) $ECHO_C" >&6
20998 ac_res=`eval echo '${'$as_ac_Header'}'`
20999 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21000 echo "${ECHO_T}$ac_res" >&6; }
21002 # Is the header compilable?
21003 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21004 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21005 cat >conftest.$ac_ext <<_ACEOF
21008 cat confdefs.h >>conftest.$ac_ext
21009 cat >>conftest.$ac_ext <<_ACEOF
21010 /* end confdefs.h. */
21011 $ac_includes_default
21012 #include <$ac_header>
21014 rm -f conftest.$ac_objext
21015 if { (ac_try="$ac_compile"
21016 case "(($ac_try" in
21017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21018 *) ac_try_echo=$ac_try;;
21020 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21021 (eval "$ac_compile") 2>conftest.er1
21023 grep -v '^ *+' conftest.er1 >conftest.err
21025 cat conftest.err >&5
21026 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21027 (exit $ac_status); } && {
21028 test -z "$ac_c_werror_flag" ||
21029 test ! -s conftest.err
21030 } && test -s conftest.$ac_objext; then
21031 ac_header_compiler=yes
21033 echo "$as_me: failed program was
:" >&5
21034 sed 's/^/| /' conftest.$ac_ext >&5
21036 ac_header_compiler=no
21039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21040 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21041 echo "${ECHO_T}$ac_header_compiler" >&6; }
21043 # Is the header present?
21044 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21045 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21046 cat >conftest.$ac_ext <<_ACEOF
21049 cat confdefs.h >>conftest.$ac_ext
21050 cat >>conftest.$ac_ext <<_ACEOF
21051 /* end confdefs.h. */
21052 #include <$ac_header>
21054 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21055 case "(($ac_try" in
21056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21057 *) ac_try_echo=$ac_try;;
21059 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21060 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21062 grep -v '^ *+' conftest.er1 >conftest.err
21064 cat conftest.err >&5
21065 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21066 (exit $ac_status); } >/dev/null && {
21067 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21068 test ! -s conftest.err
21070 ac_header_preproc=yes
21072 echo "$as_me: failed program was
:" >&5
21073 sed 's/^/| /' conftest.$ac_ext >&5
21075 ac_header_preproc=no
21078 rm -f conftest.err conftest.$ac_ext
21079 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21080 echo "${ECHO_T}$ac_header_preproc" >&6; }
21082 # So? What about this header?
21083 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21085 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21086 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21087 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21088 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21089 ac_header_preproc=yes
21092 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21093 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21094 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21095 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21096 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21097 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21098 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21099 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21100 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21101 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21102 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21103 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21107 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21108 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21109 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21110 echo $ECHO_N "(cached
) $ECHO_C" >&6
21112 eval "$as_ac_Header=\
$ac_header_preproc"
21114 ac_res=`eval echo '${'$as_ac_Header'}'`
21115 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21116 echo "${ECHO_T}$ac_res" >&6; }
21119 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21120 cat >>confdefs.h <<_ACEOF
21121 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21126 for ac_header in kerberosIV/des.h
21128 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21129 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21130 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21131 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21132 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21133 echo $ECHO_N "(cached
) $ECHO_C" >&6
21135 ac_res=`eval echo '${'$as_ac_Header'}'`
21136 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21137 echo "${ECHO_T}$ac_res" >&6; }
21139 # Is the header compilable?
21140 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21141 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21142 cat >conftest.$ac_ext <<_ACEOF
21145 cat confdefs.h >>conftest.$ac_ext
21146 cat >>conftest.$ac_ext <<_ACEOF
21147 /* end confdefs.h. */
21148 $ac_includes_default
21149 #include <$ac_header>
21151 rm -f conftest.$ac_objext
21152 if { (ac_try="$ac_compile"
21153 case "(($ac_try" in
21154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21155 *) ac_try_echo=$ac_try;;
21157 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21158 (eval "$ac_compile") 2>conftest.er1
21160 grep -v '^ *+' conftest.er1 >conftest.err
21162 cat conftest.err >&5
21163 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21164 (exit $ac_status); } && {
21165 test -z "$ac_c_werror_flag" ||
21166 test ! -s conftest.err
21167 } && test -s conftest.$ac_objext; then
21168 ac_header_compiler=yes
21170 echo "$as_me: failed program was
:" >&5
21171 sed 's/^/| /' conftest.$ac_ext >&5
21173 ac_header_compiler=no
21176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21177 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21178 echo "${ECHO_T}$ac_header_compiler" >&6; }
21180 # Is the header present?
21181 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21182 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21183 cat >conftest.$ac_ext <<_ACEOF
21186 cat confdefs.h >>conftest.$ac_ext
21187 cat >>conftest.$ac_ext <<_ACEOF
21188 /* end confdefs.h. */
21189 #include <$ac_header>
21191 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21192 case "(($ac_try" in
21193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21194 *) ac_try_echo=$ac_try;;
21196 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21197 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21199 grep -v '^ *+' conftest.er1 >conftest.err
21201 cat conftest.err >&5
21202 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21203 (exit $ac_status); } >/dev/null && {
21204 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21205 test ! -s conftest.err
21207 ac_header_preproc=yes
21209 echo "$as_me: failed program was
:" >&5
21210 sed 's/^/| /' conftest.$ac_ext >&5
21212 ac_header_preproc=no
21215 rm -f conftest.err conftest.$ac_ext
21216 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21217 echo "${ECHO_T}$ac_header_preproc" >&6; }
21219 # So? What about this header?
21220 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21222 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21223 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21224 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21225 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21226 ac_header_preproc=yes
21229 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21230 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21231 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21232 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21233 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21234 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21235 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21236 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21237 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21238 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21239 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21240 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21244 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21245 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21246 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21247 echo $ECHO_N "(cached
) $ECHO_C" >&6
21249 eval "$as_ac_Header=\
$ac_header_preproc"
21251 ac_res=`eval echo '${'$as_ac_Header'}'`
21252 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21253 echo "${ECHO_T}$ac_res" >&6; }
21256 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21257 cat >>confdefs.h <<_ACEOF
21258 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21263 for ac_header in kerberos/des.h
21265 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21266 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21267 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21268 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21269 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21270 echo $ECHO_N "(cached
) $ECHO_C" >&6
21272 ac_res=`eval echo '${'$as_ac_Header'}'`
21273 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21274 echo "${ECHO_T}$ac_res" >&6; }
21276 # Is the header compilable?
21277 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21278 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21279 cat >conftest.$ac_ext <<_ACEOF
21282 cat confdefs.h >>conftest.$ac_ext
21283 cat >>conftest.$ac_ext <<_ACEOF
21284 /* end confdefs.h. */
21285 $ac_includes_default
21286 #include <$ac_header>
21288 rm -f conftest.$ac_objext
21289 if { (ac_try="$ac_compile"
21290 case "(($ac_try" in
21291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21292 *) ac_try_echo=$ac_try;;
21294 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21295 (eval "$ac_compile") 2>conftest.er1
21297 grep -v '^ *+' conftest.er1 >conftest.err
21299 cat conftest.err >&5
21300 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21301 (exit $ac_status); } && {
21302 test -z "$ac_c_werror_flag" ||
21303 test ! -s conftest.err
21304 } && test -s conftest.$ac_objext; then
21305 ac_header_compiler=yes
21307 echo "$as_me: failed program was
:" >&5
21308 sed 's/^/| /' conftest.$ac_ext >&5
21310 ac_header_compiler=no
21313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21314 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21315 echo "${ECHO_T}$ac_header_compiler" >&6; }
21317 # Is the header present?
21318 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21319 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21320 cat >conftest.$ac_ext <<_ACEOF
21323 cat confdefs.h >>conftest.$ac_ext
21324 cat >>conftest.$ac_ext <<_ACEOF
21325 /* end confdefs.h. */
21326 #include <$ac_header>
21328 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21329 case "(($ac_try" in
21330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21331 *) ac_try_echo=$ac_try;;
21333 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21334 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21336 grep -v '^ *+' conftest.er1 >conftest.err
21338 cat conftest.err >&5
21339 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21340 (exit $ac_status); } >/dev/null && {
21341 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21342 test ! -s conftest.err
21344 ac_header_preproc=yes
21346 echo "$as_me: failed program was
:" >&5
21347 sed 's/^/| /' conftest.$ac_ext >&5
21349 ac_header_preproc=no
21352 rm -f conftest.err conftest.$ac_ext
21353 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21354 echo "${ECHO_T}$ac_header_preproc" >&6; }
21356 # So? What about this header?
21357 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21359 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21360 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21361 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21362 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21363 ac_header_preproc=yes
21366 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21367 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21368 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21369 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21370 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21371 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21372 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21373 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21374 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21375 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21376 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21377 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21381 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21382 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21383 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21384 echo $ECHO_N "(cached
) $ECHO_C" >&6
21386 eval "$as_ac_Header=\
$ac_header_preproc"
21388 ac_res=`eval echo '${'$as_ac_Header'}'`
21389 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21390 echo "${ECHO_T}$ac_res" >&6; }
21393 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21394 cat >>confdefs.h <<_ACEOF
21395 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21411 for ac_header in krb.h
21413 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21414 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21415 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21416 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21417 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21418 echo $ECHO_N "(cached
) $ECHO_C" >&6
21420 ac_res=`eval echo '${'$as_ac_Header'}'`
21421 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21422 echo "${ECHO_T}$ac_res" >&6; }
21424 # Is the header compilable?
21425 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21426 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21427 cat >conftest.$ac_ext <<_ACEOF
21430 cat confdefs.h >>conftest.$ac_ext
21431 cat >>conftest.$ac_ext <<_ACEOF
21432 /* end confdefs.h. */
21433 $ac_includes_default
21434 #include <$ac_header>
21436 rm -f conftest.$ac_objext
21437 if { (ac_try="$ac_compile"
21438 case "(($ac_try" in
21439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21440 *) ac_try_echo=$ac_try;;
21442 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21443 (eval "$ac_compile") 2>conftest.er1
21445 grep -v '^ *+' conftest.er1 >conftest.err
21447 cat conftest.err >&5
21448 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21449 (exit $ac_status); } && {
21450 test -z "$ac_c_werror_flag" ||
21451 test ! -s conftest.err
21452 } && test -s conftest.$ac_objext; then
21453 ac_header_compiler=yes
21455 echo "$as_me: failed program was
:" >&5
21456 sed 's/^/| /' conftest.$ac_ext >&5
21458 ac_header_compiler=no
21461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21462 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21463 echo "${ECHO_T}$ac_header_compiler" >&6; }
21465 # Is the header present?
21466 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21467 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21468 cat >conftest.$ac_ext <<_ACEOF
21471 cat confdefs.h >>conftest.$ac_ext
21472 cat >>conftest.$ac_ext <<_ACEOF
21473 /* end confdefs.h. */
21474 #include <$ac_header>
21476 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21477 case "(($ac_try" in
21478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21479 *) ac_try_echo=$ac_try;;
21481 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21482 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21484 grep -v '^ *+' conftest.er1 >conftest.err
21486 cat conftest.err >&5
21487 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21488 (exit $ac_status); } >/dev/null && {
21489 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21490 test ! -s conftest.err
21492 ac_header_preproc=yes
21494 echo "$as_me: failed program was
:" >&5
21495 sed 's/^/| /' conftest.$ac_ext >&5
21497 ac_header_preproc=no
21500 rm -f conftest.err conftest.$ac_ext
21501 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21502 echo "${ECHO_T}$ac_header_preproc" >&6; }
21504 # So? What about this header?
21505 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21507 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21508 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21509 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21510 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21511 ac_header_preproc=yes
21514 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21515 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21516 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21517 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21518 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21519 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21520 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21521 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21522 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21523 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21524 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21525 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21529 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21530 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21531 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21532 echo $ECHO_N "(cached
) $ECHO_C" >&6
21534 eval "$as_ac_Header=\
$ac_header_preproc"
21536 ac_res=`eval echo '${'$as_ac_Header'}'`
21537 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21538 echo "${ECHO_T}$ac_res" >&6; }
21541 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21542 cat >>confdefs.h <<_ACEOF
21543 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21548 for ac_header in kerberosIV/krb.h
21550 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21551 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21552 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21553 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21554 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21555 echo $ECHO_N "(cached
) $ECHO_C" >&6
21557 ac_res=`eval echo '${'$as_ac_Header'}'`
21558 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21559 echo "${ECHO_T}$ac_res" >&6; }
21561 # Is the header compilable?
21562 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21563 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21564 cat >conftest.$ac_ext <<_ACEOF
21567 cat confdefs.h >>conftest.$ac_ext
21568 cat >>conftest.$ac_ext <<_ACEOF
21569 /* end confdefs.h. */
21570 $ac_includes_default
21571 #include <$ac_header>
21573 rm -f conftest.$ac_objext
21574 if { (ac_try="$ac_compile"
21575 case "(($ac_try" in
21576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21577 *) ac_try_echo=$ac_try;;
21579 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21580 (eval "$ac_compile") 2>conftest.er1
21582 grep -v '^ *+' conftest.er1 >conftest.err
21584 cat conftest.err >&5
21585 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21586 (exit $ac_status); } && {
21587 test -z "$ac_c_werror_flag" ||
21588 test ! -s conftest.err
21589 } && test -s conftest.$ac_objext; then
21590 ac_header_compiler=yes
21592 echo "$as_me: failed program was
:" >&5
21593 sed 's/^/| /' conftest.$ac_ext >&5
21595 ac_header_compiler=no
21598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21599 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21600 echo "${ECHO_T}$ac_header_compiler" >&6; }
21602 # Is the header present?
21603 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21604 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21605 cat >conftest.$ac_ext <<_ACEOF
21608 cat confdefs.h >>conftest.$ac_ext
21609 cat >>conftest.$ac_ext <<_ACEOF
21610 /* end confdefs.h. */
21611 #include <$ac_header>
21613 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21614 case "(($ac_try" in
21615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21616 *) ac_try_echo=$ac_try;;
21618 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21619 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21621 grep -v '^ *+' conftest.er1 >conftest.err
21623 cat conftest.err >&5
21624 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21625 (exit $ac_status); } >/dev/null && {
21626 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21627 test ! -s conftest.err
21629 ac_header_preproc=yes
21631 echo "$as_me: failed program was
:" >&5
21632 sed 's/^/| /' conftest.$ac_ext >&5
21634 ac_header_preproc=no
21637 rm -f conftest.err conftest.$ac_ext
21638 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21639 echo "${ECHO_T}$ac_header_preproc" >&6; }
21641 # So? What about this header?
21642 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21644 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21645 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21646 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21647 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21648 ac_header_preproc=yes
21651 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21652 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21653 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21654 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21655 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21656 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21657 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21658 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21659 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21660 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21661 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21662 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21666 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21667 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21668 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21669 echo $ECHO_N "(cached
) $ECHO_C" >&6
21671 eval "$as_ac_Header=\
$ac_header_preproc"
21673 ac_res=`eval echo '${'$as_ac_Header'}'`
21674 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21675 echo "${ECHO_T}$ac_res" >&6; }
21678 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21679 cat >>confdefs.h <<_ACEOF
21680 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21685 for ac_header in kerberos/krb.h
21687 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21688 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21689 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21690 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21691 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21692 echo $ECHO_N "(cached
) $ECHO_C" >&6
21694 ac_res=`eval echo '${'$as_ac_Header'}'`
21695 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21696 echo "${ECHO_T}$ac_res" >&6; }
21698 # Is the header compilable?
21699 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21700 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21701 cat >conftest.$ac_ext <<_ACEOF
21704 cat confdefs.h >>conftest.$ac_ext
21705 cat >>conftest.$ac_ext <<_ACEOF
21706 /* end confdefs.h. */
21707 $ac_includes_default
21708 #include <$ac_header>
21710 rm -f conftest.$ac_objext
21711 if { (ac_try="$ac_compile"
21712 case "(($ac_try" in
21713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21714 *) ac_try_echo=$ac_try;;
21716 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21717 (eval "$ac_compile") 2>conftest.er1
21719 grep -v '^ *+' conftest.er1 >conftest.err
21721 cat conftest.err >&5
21722 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21723 (exit $ac_status); } && {
21724 test -z "$ac_c_werror_flag" ||
21725 test ! -s conftest.err
21726 } && test -s conftest.$ac_objext; then
21727 ac_header_compiler=yes
21729 echo "$as_me: failed program was
:" >&5
21730 sed 's/^/| /' conftest.$ac_ext >&5
21732 ac_header_compiler=no
21735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21736 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21737 echo "${ECHO_T}$ac_header_compiler" >&6; }
21739 # Is the header present?
21740 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21741 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21742 cat >conftest.$ac_ext <<_ACEOF
21745 cat confdefs.h >>conftest.$ac_ext
21746 cat >>conftest.$ac_ext <<_ACEOF
21747 /* end confdefs.h. */
21748 #include <$ac_header>
21750 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21751 case "(($ac_try" in
21752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21753 *) ac_try_echo=$ac_try;;
21755 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21756 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21758 grep -v '^ *+' conftest.er1 >conftest.err
21760 cat conftest.err >&5
21761 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21762 (exit $ac_status); } >/dev/null && {
21763 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21764 test ! -s conftest.err
21766 ac_header_preproc=yes
21768 echo "$as_me: failed program was
:" >&5
21769 sed 's/^/| /' conftest.$ac_ext >&5
21771 ac_header_preproc=no
21774 rm -f conftest.err conftest.$ac_ext
21775 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21776 echo "${ECHO_T}$ac_header_preproc" >&6; }
21778 # So? What about this header?
21779 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21781 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21782 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21783 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21784 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21785 ac_header_preproc=yes
21788 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21789 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21790 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21791 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21792 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21793 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21794 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21795 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21796 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21797 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21798 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21799 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21803 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21804 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21805 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21806 echo $ECHO_N "(cached
) $ECHO_C" >&6
21808 eval "$as_ac_Header=\
$ac_header_preproc"
21810 ac_res=`eval echo '${'$as_ac_Header'}'`
21811 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21812 echo "${ECHO_T}$ac_res" >&6; }
21815 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21816 cat >>confdefs.h <<_ACEOF
21817 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21834 for ac_header in com_err.h
21836 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21837 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21838 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21839 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21840 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21841 echo $ECHO_N "(cached
) $ECHO_C" >&6
21843 ac_res=`eval echo '${'$as_ac_Header'}'`
21844 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21845 echo "${ECHO_T}$ac_res" >&6; }
21847 # Is the header compilable?
21848 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21849 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21850 cat >conftest.$ac_ext <<_ACEOF
21853 cat confdefs.h >>conftest.$ac_ext
21854 cat >>conftest.$ac_ext <<_ACEOF
21855 /* end confdefs.h. */
21856 $ac_includes_default
21857 #include <$ac_header>
21859 rm -f conftest.$ac_objext
21860 if { (ac_try="$ac_compile"
21861 case "(($ac_try" in
21862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21863 *) ac_try_echo=$ac_try;;
21865 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21866 (eval "$ac_compile") 2>conftest.er1
21868 grep -v '^ *+' conftest.er1 >conftest.err
21870 cat conftest.err >&5
21871 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21872 (exit $ac_status); } && {
21873 test -z "$ac_c_werror_flag" ||
21874 test ! -s conftest.err
21875 } && test -s conftest.$ac_objext; then
21876 ac_header_compiler=yes
21878 echo "$as_me: failed program was
:" >&5
21879 sed 's/^/| /' conftest.$ac_ext >&5
21881 ac_header_compiler=no
21884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21885 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21886 echo "${ECHO_T}$ac_header_compiler" >&6; }
21888 # Is the header present?
21889 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21890 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21891 cat >conftest.$ac_ext <<_ACEOF
21894 cat confdefs.h >>conftest.$ac_ext
21895 cat >>conftest.$ac_ext <<_ACEOF
21896 /* end confdefs.h. */
21897 #include <$ac_header>
21899 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21900 case "(($ac_try" in
21901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21902 *) ac_try_echo=$ac_try;;
21904 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21905 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21907 grep -v '^ *+' conftest.er1 >conftest.err
21909 cat conftest.err >&5
21910 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21911 (exit $ac_status); } >/dev/null && {
21912 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21913 test ! -s conftest.err
21915 ac_header_preproc=yes
21917 echo "$as_me: failed program was
:" >&5
21918 sed 's/^/| /' conftest.$ac_ext >&5
21920 ac_header_preproc=no
21923 rm -f conftest.err conftest.$ac_ext
21924 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21925 echo "${ECHO_T}$ac_header_preproc" >&6; }
21927 # So? What about this header?
21928 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21930 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21931 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21932 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21933 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21934 ac_header_preproc=yes
21937 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21938 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21939 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21940 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21941 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21942 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21943 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21944 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21945 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21946 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21947 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21948 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21952 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21953 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21954 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21955 echo $ECHO_N "(cached
) $ECHO_C" >&6
21957 eval "$as_ac_Header=\
$ac_header_preproc"
21959 ac_res=`eval echo '${'$as_ac_Header'}'`
21960 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21961 echo "${ECHO_T}$ac_res" >&6; }
21964 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21965 cat >>confdefs.h <<_ACEOF
21966 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21975 # Solaris requires -lintl if you want strerror (which calls dgettext)
21976 # to return localized messages.
21978 { echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
21979 echo $ECHO_N "checking
for dgettext
in -lintl...
$ECHO_C" >&6; }
21980 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21981 echo $ECHO_N "(cached
) $ECHO_C" >&6
21983 ac_check_lib_save_LIBS=$LIBS
21984 LIBS="-lintl $LIBS"
21985 cat >conftest.$ac_ext <<_ACEOF
21988 cat confdefs.h >>conftest.$ac_ext
21989 cat >>conftest.$ac_ext <<_ACEOF
21990 /* end confdefs.h. */
21992 /* Override any GCC internal prototype to avoid an error.
21993 Use char because int might match the return type of a GCC
21994 builtin and then its argument prototype would still apply. */
22002 return dgettext ();
22007 rm -f conftest.$ac_objext conftest$ac_exeext
22008 if { (ac_try="$ac_link"
22009 case "(($ac_try" in
22010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22011 *) ac_try_echo=$ac_try;;
22013 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22014 (eval "$ac_link") 2>conftest.er1
22016 grep -v '^ *+' conftest.er1 >conftest.err
22018 cat conftest.err >&5
22019 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22020 (exit $ac_status); } && {
22021 test -z "$ac_c_werror_flag" ||
22022 test ! -s conftest.err
22023 } && test -s conftest$ac_exeext &&
22024 $as_test_x conftest$ac_exeext; then
22025 ac_cv_lib_intl_dgettext=yes
22027 echo "$as_me: failed program was
:" >&5
22028 sed 's/^/| /' conftest.$ac_ext >&5
22030 ac_cv_lib_intl_dgettext=no
22033 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22034 conftest$ac_exeext conftest.$ac_ext
22035 LIBS=$ac_check_lib_save_LIBS
22037 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
22038 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
22039 if test $ac_cv_lib_intl_dgettext = yes; then
22040 cat >>confdefs.h <<_ACEOF
22041 #define HAVE_LIBINTL 1
22044 LIBS="-lintl $LIBS"
22049 { echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
22050 echo $ECHO_N "checking whether localtime caches TZ...
$ECHO_C" >&6; }
22051 if test "${emacs_cv_localtime_cache+set}" = set; then
22052 echo $ECHO_N "(cached
) $ECHO_C" >&6
22054 if test x$ac_cv_func_tzset = xyes; then
22055 if test "$cross_compiling" = yes; then
22056 # If we have tzset, assume the worst when cross-compiling.
22057 emacs_cv_localtime_cache=yes
22059 cat >conftest.$ac_ext <<_ACEOF
22062 cat confdefs.h >>conftest.$ac_ext
22063 cat >>conftest.$ac_ext <<_ACEOF
22064 /* end confdefs.h. */
22066 extern char **environ;
22070 for (to = from = environ; (*to = *from); from++)
22071 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
22074 char TZ_GMT0[] = "TZ
=GMT0
";
22075 char TZ_PST8[] = "TZ
=PST8
";
22078 time_t now = time ((time_t *) 0);
22079 int hour_GMT0, hour_unset;
22080 if (putenv (TZ_GMT0) != 0)
22082 hour_GMT0 = localtime (&now)->tm_hour;
22084 hour_unset = localtime (&now)->tm_hour;
22085 if (putenv (TZ_PST8) != 0)
22087 if (localtime (&now)->tm_hour == hour_GMT0)
22090 if (localtime (&now)->tm_hour != hour_unset)
22095 rm -f conftest$ac_exeext
22096 if { (ac_try="$ac_link"
22097 case "(($ac_try" in
22098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22099 *) ac_try_echo=$ac_try;;
22101 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22102 (eval "$ac_link") 2>&5
22104 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22105 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22106 { (case "(($ac_try" in
22107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22108 *) ac_try_echo=$ac_try;;
22110 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22111 (eval "$ac_try") 2>&5
22113 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22114 (exit $ac_status); }; }; then
22115 emacs_cv_localtime_cache=no
22117 echo "$as_me: program exited with status
$ac_status" >&5
22118 echo "$as_me: failed program was
:" >&5
22119 sed 's/^/| /' conftest.$ac_ext >&5
22121 ( exit $ac_status )
22122 emacs_cv_localtime_cache=yes
22124 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22129 # If we lack tzset, report that localtime does not cache TZ,
22130 # since we can't invalidate the cache if we don't have tzset.
22131 emacs_cv_localtime_cache=no
22134 { echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
22135 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
22136 if test $emacs_cv_localtime_cache = yes; then
22138 cat >>confdefs.h <<\_ACEOF
22139 #define LOCALTIME_CACHE 1
22144 if test "x
$HAVE_TIMEVAL" = xyes; then
22146 for ac_func in gettimeofday
22148 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
22149 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
22150 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
22151 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
22152 echo $ECHO_N "(cached
) $ECHO_C" >&6
22154 cat >conftest.$ac_ext <<_ACEOF
22157 cat confdefs.h >>conftest.$ac_ext
22158 cat >>conftest.$ac_ext <<_ACEOF
22159 /* end confdefs.h. */
22160 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22161 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22162 #define $ac_func innocuous_$ac_func
22164 /* System header to define __stub macros and hopefully few prototypes,
22165 which can conflict with char $ac_func (); below.
22166 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22167 <limits.h> exists even on freestanding compilers. */
22170 # include <limits.h>
22172 # include <assert.h>
22177 /* Override any GCC internal prototype to avoid an error.
22178 Use char because int might match the return type of a GCC
22179 builtin and then its argument prototype would still apply. */
22184 /* The GNU C library defines this for functions which it implements
22185 to always fail with ENOSYS. Some functions are actually named
22186 something starting with __ and the normal name is an alias. */
22187 #if defined __stub_$ac_func || defined __stub___$ac_func
22194 return $ac_func ();
22199 rm -f conftest.$ac_objext conftest$ac_exeext
22200 if { (ac_try="$ac_link"
22201 case "(($ac_try" in
22202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22203 *) ac_try_echo=$ac_try;;
22205 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22206 (eval "$ac_link") 2>conftest.er1
22208 grep -v '^ *+' conftest.er1 >conftest.err
22210 cat conftest.err >&5
22211 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22212 (exit $ac_status); } && {
22213 test -z "$ac_c_werror_flag" ||
22214 test ! -s conftest.err
22215 } && test -s conftest$ac_exeext &&
22216 $as_test_x conftest$ac_exeext; then
22217 eval "$as_ac_var=yes"
22219 echo "$as_me: failed program was
:" >&5
22220 sed 's/^/| /' conftest.$ac_ext >&5
22222 eval "$as_ac_var=no
"
22225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22226 conftest$ac_exeext conftest.$ac_ext
22228 ac_res=`eval echo '${'$as_ac_var'}'`
22229 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22230 echo "${ECHO_T}$ac_res" >&6; }
22231 if test `eval echo '${'$as_ac_var'}'` = yes; then
22232 cat >>confdefs.h <<_ACEOF
22233 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
22239 if test $ac_cv_func_gettimeofday = yes; then
22240 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
22241 echo $ECHO_N "checking whether gettimeofday can accept two arguments...
$ECHO_C" >&6; }
22242 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22243 echo $ECHO_N "(cached
) $ECHO_C" >&6
22245 cat >conftest.$ac_ext <<_ACEOF
22248 cat confdefs.h >>conftest.$ac_ext
22249 cat >>conftest.$ac_ext <<_ACEOF
22250 /* end confdefs.h. */
22252 #ifdef TIME_WITH_SYS_TIME
22253 #include <sys/time.h>
22256 #ifdef HAVE_SYS_TIME_H
22257 #include <sys/time.h>
22265 struct timeval time;
22266 gettimeofday (&time, 0);
22271 rm -f conftest.$ac_objext
22272 if { (ac_try="$ac_compile"
22273 case "(($ac_try" in
22274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22275 *) ac_try_echo=$ac_try;;
22277 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22278 (eval "$ac_compile") 2>conftest.er1
22280 grep -v '^ *+' conftest.er1 >conftest.err
22282 cat conftest.err >&5
22283 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22284 (exit $ac_status); } && {
22285 test -z "$ac_c_werror_flag" ||
22286 test ! -s conftest.err
22287 } && test -s conftest.$ac_objext; then
22288 emacs_cv_gettimeofday_two_arguments=yes
22290 echo "$as_me: failed program was
:" >&5
22291 sed 's/^/| /' conftest.$ac_ext >&5
22293 emacs_cv_gettimeofday_two_arguments=no
22296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22298 { echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
22299 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22300 if test $emacs_cv_gettimeofday_two_arguments = no; then
22302 cat >>confdefs.h <<\_ACEOF
22303 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22311 { echo "$as_me:$LINENO: checking
for socket
" >&5
22312 echo $ECHO_N "checking
for socket...
$ECHO_C" >&6; }
22313 if test "${ac_cv_func_socket+set}" = set; then
22314 echo $ECHO_N "(cached
) $ECHO_C" >&6
22316 cat >conftest.$ac_ext <<_ACEOF
22319 cat confdefs.h >>conftest.$ac_ext
22320 cat >>conftest.$ac_ext <<_ACEOF
22321 /* end confdefs.h. */
22322 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22323 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22324 #define socket innocuous_socket
22326 /* System header to define __stub macros and hopefully few prototypes,
22327 which can conflict with char socket (); below.
22328 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22329 <limits.h> exists even on freestanding compilers. */
22332 # include <limits.h>
22334 # include <assert.h>
22339 /* Override any GCC internal prototype to avoid an error.
22340 Use char because int might match the return type of a GCC
22341 builtin and then its argument prototype would still apply. */
22346 /* The GNU C library defines this for functions which it implements
22347 to always fail with ENOSYS. Some functions are actually named
22348 something starting with __ and the normal name is an alias. */
22349 #if defined __stub_socket || defined __stub___socket
22361 rm -f conftest.$ac_objext conftest$ac_exeext
22362 if { (ac_try="$ac_link"
22363 case "(($ac_try" in
22364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22365 *) ac_try_echo=$ac_try;;
22367 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22368 (eval "$ac_link") 2>conftest.er1
22370 grep -v '^ *+' conftest.er1 >conftest.err
22372 cat conftest.err >&5
22373 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22374 (exit $ac_status); } && {
22375 test -z "$ac_c_werror_flag" ||
22376 test ! -s conftest.err
22377 } && test -s conftest$ac_exeext &&
22378 $as_test_x conftest$ac_exeext; then
22379 ac_cv_func_socket=yes
22381 echo "$as_me: failed program was
:" >&5
22382 sed 's/^/| /' conftest.$ac_ext >&5
22384 ac_cv_func_socket=no
22387 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22388 conftest$ac_exeext conftest.$ac_ext
22390 { echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
22391 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22392 if test $ac_cv_func_socket = yes; then
22398 if test $ok_so_far = yes; then
22399 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22400 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
22401 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
22402 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22403 echo $ECHO_N "(cached
) $ECHO_C" >&6
22405 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
22406 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22408 # Is the header compilable?
22409 { echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
22410 echo $ECHO_N "checking netinet
/in.h usability...
$ECHO_C" >&6; }
22411 cat >conftest.$ac_ext <<_ACEOF
22414 cat confdefs.h >>conftest.$ac_ext
22415 cat >>conftest.$ac_ext <<_ACEOF
22416 /* end confdefs.h. */
22417 $ac_includes_default
22418 #include <netinet/in.h>
22420 rm -f conftest.$ac_objext
22421 if { (ac_try="$ac_compile"
22422 case "(($ac_try" in
22423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22424 *) ac_try_echo=$ac_try;;
22426 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22427 (eval "$ac_compile") 2>conftest.er1
22429 grep -v '^ *+' conftest.er1 >conftest.err
22431 cat conftest.err >&5
22432 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22433 (exit $ac_status); } && {
22434 test -z "$ac_c_werror_flag" ||
22435 test ! -s conftest.err
22436 } && test -s conftest.$ac_objext; then
22437 ac_header_compiler=yes
22439 echo "$as_me: failed program was
:" >&5
22440 sed 's/^/| /' conftest.$ac_ext >&5
22442 ac_header_compiler=no
22445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22446 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22447 echo "${ECHO_T}$ac_header_compiler" >&6; }
22449 # Is the header present?
22450 { echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
22451 echo $ECHO_N "checking netinet
/in.h presence...
$ECHO_C" >&6; }
22452 cat >conftest.$ac_ext <<_ACEOF
22455 cat confdefs.h >>conftest.$ac_ext
22456 cat >>conftest.$ac_ext <<_ACEOF
22457 /* end confdefs.h. */
22458 #include <netinet/in.h>
22460 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22461 case "(($ac_try" in
22462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22463 *) ac_try_echo=$ac_try;;
22465 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22466 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22468 grep -v '^ *+' conftest.er1 >conftest.err
22470 cat conftest.err >&5
22471 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22472 (exit $ac_status); } >/dev/null && {
22473 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22474 test ! -s conftest.err
22476 ac_header_preproc=yes
22478 echo "$as_me: failed program was
:" >&5
22479 sed 's/^/| /' conftest.$ac_ext >&5
22481 ac_header_preproc=no
22484 rm -f conftest.err conftest.$ac_ext
22485 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22486 echo "${ECHO_T}$ac_header_preproc" >&6; }
22488 # So? What about this header?
22489 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22491 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22492 echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22493 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
22494 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
22495 ac_header_preproc=yes
22498 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
22499 echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
22500 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
22501 echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
22502 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
22503 echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
22504 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22505 echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22506 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
22507 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
22508 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
22509 echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
22513 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
22514 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
22515 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22516 echo $ECHO_N "(cached
) $ECHO_C" >&6
22518 ac_cv_header_netinet_in_h=$ac_header_preproc
22520 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
22521 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22524 if test $ac_cv_header_netinet_in_h = yes; then
22532 if test $ok_so_far = yes; then
22533 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22534 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22535 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22536 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22537 echo $ECHO_N "(cached
) $ECHO_C" >&6
22539 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22540 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22542 # Is the header compilable?
22543 { echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
22544 echo $ECHO_N "checking arpa
/inet.h usability...
$ECHO_C" >&6; }
22545 cat >conftest.$ac_ext <<_ACEOF
22548 cat confdefs.h >>conftest.$ac_ext
22549 cat >>conftest.$ac_ext <<_ACEOF
22550 /* end confdefs.h. */
22551 $ac_includes_default
22552 #include <arpa/inet.h>
22554 rm -f conftest.$ac_objext
22555 if { (ac_try="$ac_compile"
22556 case "(($ac_try" in
22557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22558 *) ac_try_echo=$ac_try;;
22560 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22561 (eval "$ac_compile") 2>conftest.er1
22563 grep -v '^ *+' conftest.er1 >conftest.err
22565 cat conftest.err >&5
22566 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22567 (exit $ac_status); } && {
22568 test -z "$ac_c_werror_flag" ||
22569 test ! -s conftest.err
22570 } && test -s conftest.$ac_objext; then
22571 ac_header_compiler=yes
22573 echo "$as_me: failed program was
:" >&5
22574 sed 's/^/| /' conftest.$ac_ext >&5
22576 ac_header_compiler=no
22579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22580 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22581 echo "${ECHO_T}$ac_header_compiler" >&6; }
22583 # Is the header present?
22584 { echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
22585 echo $ECHO_N "checking arpa
/inet.h presence...
$ECHO_C" >&6; }
22586 cat >conftest.$ac_ext <<_ACEOF
22589 cat confdefs.h >>conftest.$ac_ext
22590 cat >>conftest.$ac_ext <<_ACEOF
22591 /* end confdefs.h. */
22592 #include <arpa/inet.h>
22594 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22595 case "(($ac_try" in
22596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22597 *) ac_try_echo=$ac_try;;
22599 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22600 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22602 grep -v '^ *+' conftest.er1 >conftest.err
22604 cat conftest.err >&5
22605 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22606 (exit $ac_status); } >/dev/null && {
22607 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22608 test ! -s conftest.err
22610 ac_header_preproc=yes
22612 echo "$as_me: failed program was
:" >&5
22613 sed 's/^/| /' conftest.$ac_ext >&5
22615 ac_header_preproc=no
22618 rm -f conftest.err conftest.$ac_ext
22619 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22620 echo "${ECHO_T}$ac_header_preproc" >&6; }
22622 # So? What about this header?
22623 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22625 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22626 echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22627 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
22628 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
22629 ac_header_preproc=yes
22632 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
22633 echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
22634 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
22635 echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
22636 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
22637 echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
22638 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22639 echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22640 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
22641 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
22642 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
22643 echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
22647 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22648 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22649 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22650 echo $ECHO_N "(cached
) $ECHO_C" >&6
22652 ac_cv_header_arpa_inet_h=$ac_header_preproc
22654 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22655 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22658 if test $ac_cv_header_arpa_inet_h = yes; then
22666 if test $ok_so_far = yes; then
22668 cat >>confdefs.h <<\_ACEOF
22669 #define HAVE_INET_SOCKETS 1
22675 for ac_header in sys/ioctl.h
22677 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22678 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22679 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22680 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22681 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22682 echo $ECHO_N "(cached
) $ECHO_C" >&6
22684 ac_res=`eval echo '${'$as_ac_Header'}'`
22685 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22686 echo "${ECHO_T}$ac_res" >&6; }
22688 # Is the header compilable?
22689 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22690 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22691 cat >conftest.$ac_ext <<_ACEOF
22694 cat confdefs.h >>conftest.$ac_ext
22695 cat >>conftest.$ac_ext <<_ACEOF
22696 /* end confdefs.h. */
22697 $ac_includes_default
22698 #include <$ac_header>
22700 rm -f conftest.$ac_objext
22701 if { (ac_try="$ac_compile"
22702 case "(($ac_try" in
22703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22704 *) ac_try_echo=$ac_try;;
22706 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22707 (eval "$ac_compile") 2>conftest.er1
22709 grep -v '^ *+' conftest.er1 >conftest.err
22711 cat conftest.err >&5
22712 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22713 (exit $ac_status); } && {
22714 test -z "$ac_c_werror_flag" ||
22715 test ! -s conftest.err
22716 } && test -s conftest.$ac_objext; then
22717 ac_header_compiler=yes
22719 echo "$as_me: failed program was
:" >&5
22720 sed 's/^/| /' conftest.$ac_ext >&5
22722 ac_header_compiler=no
22725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22726 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22727 echo "${ECHO_T}$ac_header_compiler" >&6; }
22729 # Is the header present?
22730 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22731 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22732 cat >conftest.$ac_ext <<_ACEOF
22735 cat confdefs.h >>conftest.$ac_ext
22736 cat >>conftest.$ac_ext <<_ACEOF
22737 /* end confdefs.h. */
22738 #include <$ac_header>
22740 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22741 case "(($ac_try" in
22742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22743 *) ac_try_echo=$ac_try;;
22745 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22746 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22748 grep -v '^ *+' conftest.er1 >conftest.err
22750 cat conftest.err >&5
22751 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22752 (exit $ac_status); } >/dev/null && {
22753 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22754 test ! -s conftest.err
22756 ac_header_preproc=yes
22758 echo "$as_me: failed program was
:" >&5
22759 sed 's/^/| /' conftest.$ac_ext >&5
22761 ac_header_preproc=no
22764 rm -f conftest.err conftest.$ac_ext
22765 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22766 echo "${ECHO_T}$ac_header_preproc" >&6; }
22768 # So? What about this header?
22769 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22771 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22772 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22773 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22774 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22775 ac_header_preproc=yes
22778 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22779 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22780 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22781 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22782 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22783 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22784 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22785 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22786 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22787 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22788 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22789 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22793 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22794 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22795 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22796 echo $ECHO_N "(cached
) $ECHO_C" >&6
22798 eval "$as_ac_Header=\
$ac_header_preproc"
22800 ac_res=`eval echo '${'$as_ac_Header'}'`
22801 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22802 echo "${ECHO_T}$ac_res" >&6; }
22805 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22806 cat >>confdefs.h <<_ACEOF
22807 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22815 if test -f /usr/lpp/X11/bin/smt.exp; then
22817 cat >>confdefs.h <<\_ACEOF
22818 #define HAVE_AIX_SMT_EXP 1
22823 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
22824 echo $ECHO_N "checking whether system supports dynamic ptys...
$ECHO_C" >&6; }
22825 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22826 { echo "$as_me:$LINENO: result
: yes" >&5
22827 echo "${ECHO_T}yes" >&6; }
22829 cat >>confdefs.h <<\_ACEOF
22830 #define HAVE_DEV_PTMX 1
22834 { echo "$as_me:$LINENO: result
: no
" >&5
22835 echo "${ECHO_T}no
" >&6; }
22838 { echo "$as_me:$LINENO: checking
for pid_t
" >&5
22839 echo $ECHO_N "checking
for pid_t...
$ECHO_C" >&6; }
22840 if test "${ac_cv_type_pid_t+set}" = set; then
22841 echo $ECHO_N "(cached
) $ECHO_C" >&6
22843 cat >conftest.$ac_ext <<_ACEOF
22846 cat confdefs.h >>conftest.$ac_ext
22847 cat >>conftest.$ac_ext <<_ACEOF
22848 /* end confdefs.h. */
22849 $ac_includes_default
22850 typedef pid_t ac__type_new_;
22854 if ((ac__type_new_ *) 0)
22856 if (sizeof (ac__type_new_))
22862 rm -f conftest.$ac_objext
22863 if { (ac_try="$ac_compile"
22864 case "(($ac_try" in
22865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22866 *) ac_try_echo=$ac_try;;
22868 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22869 (eval "$ac_compile") 2>conftest.er1
22871 grep -v '^ *+' conftest.er1 >conftest.err
22873 cat conftest.err >&5
22874 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22875 (exit $ac_status); } && {
22876 test -z "$ac_c_werror_flag" ||
22877 test ! -s conftest.err
22878 } && test -s conftest.$ac_objext; then
22879 ac_cv_type_pid_t=yes
22881 echo "$as_me: failed program was
:" >&5
22882 sed 's/^/| /' conftest.$ac_ext >&5
22884 ac_cv_type_pid_t=no
22887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22889 { echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
22890 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22891 if test $ac_cv_type_pid_t = yes; then
22895 cat >>confdefs.h <<_ACEOF
22902 for ac_header in vfork.h
22904 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22905 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22906 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22907 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22908 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22909 echo $ECHO_N "(cached
) $ECHO_C" >&6
22911 ac_res=`eval echo '${'$as_ac_Header'}'`
22912 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22913 echo "${ECHO_T}$ac_res" >&6; }
22915 # Is the header compilable?
22916 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22917 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22918 cat >conftest.$ac_ext <<_ACEOF
22921 cat confdefs.h >>conftest.$ac_ext
22922 cat >>conftest.$ac_ext <<_ACEOF
22923 /* end confdefs.h. */
22924 $ac_includes_default
22925 #include <$ac_header>
22927 rm -f conftest.$ac_objext
22928 if { (ac_try="$ac_compile"
22929 case "(($ac_try" in
22930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22931 *) ac_try_echo=$ac_try;;
22933 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22934 (eval "$ac_compile") 2>conftest.er1
22936 grep -v '^ *+' conftest.er1 >conftest.err
22938 cat conftest.err >&5
22939 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22940 (exit $ac_status); } && {
22941 test -z "$ac_c_werror_flag" ||
22942 test ! -s conftest.err
22943 } && test -s conftest.$ac_objext; then
22944 ac_header_compiler=yes
22946 echo "$as_me: failed program was
:" >&5
22947 sed 's/^/| /' conftest.$ac_ext >&5
22949 ac_header_compiler=no
22952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22953 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22954 echo "${ECHO_T}$ac_header_compiler" >&6; }
22956 # Is the header present?
22957 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22958 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22959 cat >conftest.$ac_ext <<_ACEOF
22962 cat confdefs.h >>conftest.$ac_ext
22963 cat >>conftest.$ac_ext <<_ACEOF
22964 /* end confdefs.h. */
22965 #include <$ac_header>
22967 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22968 case "(($ac_try" in
22969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22970 *) ac_try_echo=$ac_try;;
22972 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22973 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22975 grep -v '^ *+' conftest.er1 >conftest.err
22977 cat conftest.err >&5
22978 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22979 (exit $ac_status); } >/dev/null && {
22980 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22981 test ! -s conftest.err
22983 ac_header_preproc=yes
22985 echo "$as_me: failed program was
:" >&5
22986 sed 's/^/| /' conftest.$ac_ext >&5
22988 ac_header_preproc=no
22991 rm -f conftest.err conftest.$ac_ext
22992 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22993 echo "${ECHO_T}$ac_header_preproc" >&6; }
22995 # So? What about this header?
22996 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22998 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22999 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23000 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23001 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23002 ac_header_preproc=yes
23005 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23006 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23007 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23008 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23009 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23010 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23011 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23012 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23013 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23014 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23015 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23016 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23020 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
23021 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
23022 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23023 echo $ECHO_N "(cached
) $ECHO_C" >&6
23025 eval "$as_ac_Header=\
$ac_header_preproc"
23027 ac_res=`eval echo '${'$as_ac_Header'}'`
23028 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23029 echo "${ECHO_T}$ac_res" >&6; }
23032 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23033 cat >>confdefs.h <<_ACEOF
23034 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23043 for ac_func in fork vfork
23045 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
23046 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
23047 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
23048 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
23049 echo $ECHO_N "(cached
) $ECHO_C" >&6
23051 cat >conftest.$ac_ext <<_ACEOF
23054 cat confdefs.h >>conftest.$ac_ext
23055 cat >>conftest.$ac_ext <<_ACEOF
23056 /* end confdefs.h. */
23057 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23059 #define $ac_func innocuous_$ac_func
23061 /* System header to define __stub macros and hopefully few prototypes,
23062 which can conflict with char $ac_func (); below.
23063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23064 <limits.h> exists even on freestanding compilers. */
23067 # include <limits.h>
23069 # include <assert.h>
23074 /* Override any GCC internal prototype to avoid an error.
23075 Use char because int might match the return type of a GCC
23076 builtin and then its argument prototype would still apply. */
23081 /* The GNU C library defines this for functions which it implements
23082 to always fail with ENOSYS. Some functions are actually named
23083 something starting with __ and the normal name is an alias. */
23084 #if defined __stub_$ac_func || defined __stub___$ac_func
23091 return $ac_func ();
23096 rm -f conftest.$ac_objext conftest$ac_exeext
23097 if { (ac_try="$ac_link"
23098 case "(($ac_try" in
23099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23100 *) ac_try_echo=$ac_try;;
23102 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23103 (eval "$ac_link") 2>conftest.er1
23105 grep -v '^ *+' conftest.er1 >conftest.err
23107 cat conftest.err >&5
23108 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23109 (exit $ac_status); } && {
23110 test -z "$ac_c_werror_flag" ||
23111 test ! -s conftest.err
23112 } && test -s conftest$ac_exeext &&
23113 $as_test_x conftest$ac_exeext; then
23114 eval "$as_ac_var=yes"
23116 echo "$as_me: failed program was
:" >&5
23117 sed 's/^/| /' conftest.$ac_ext >&5
23119 eval "$as_ac_var=no
"
23122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23123 conftest$ac_exeext conftest.$ac_ext
23125 ac_res=`eval echo '${'$as_ac_var'}'`
23126 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23127 echo "${ECHO_T}$ac_res" >&6; }
23128 if test `eval echo '${'$as_ac_var'}'` = yes; then
23129 cat >>confdefs.h <<_ACEOF
23130 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
23136 if test "x
$ac_cv_func_fork" = xyes; then
23137 { echo "$as_me:$LINENO: checking
for working fork
" >&5
23138 echo $ECHO_N "checking
for working fork...
$ECHO_C" >&6; }
23139 if test "${ac_cv_func_fork_works+set}" = set; then
23140 echo $ECHO_N "(cached
) $ECHO_C" >&6
23142 if test "$cross_compiling" = yes; then
23143 ac_cv_func_fork_works=cross
23145 cat >conftest.$ac_ext <<_ACEOF
23148 cat confdefs.h >>conftest.$ac_ext
23149 cat >>conftest.$ac_ext <<_ACEOF
23150 /* end confdefs.h. */
23151 $ac_includes_default
23156 /* By Ruediger Kuhlmann. */
23157 return fork () < 0;
23163 rm -f conftest$ac_exeext
23164 if { (ac_try="$ac_link"
23165 case "(($ac_try" in
23166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23167 *) ac_try_echo=$ac_try;;
23169 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23170 (eval "$ac_link") 2>&5
23172 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23173 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23174 { (case "(($ac_try" in
23175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23176 *) ac_try_echo=$ac_try;;
23178 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23179 (eval "$ac_try") 2>&5
23181 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23182 (exit $ac_status); }; }; then
23183 ac_cv_func_fork_works=yes
23185 echo "$as_me: program exited with status
$ac_status" >&5
23186 echo "$as_me: failed program was
:" >&5
23187 sed 's/^/| /' conftest.$ac_ext >&5
23189 ( exit $ac_status )
23190 ac_cv_func_fork_works=no
23192 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23197 { echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
23198 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23201 ac_cv_func_fork_works=$ac_cv_func_fork
23203 if test "x
$ac_cv_func_fork_works" = xcross; then
23205 *-*-amigaos* | *-*-msdosdjgpp*)
23206 # Override, as these systems have only a dummy fork() stub
23207 ac_cv_func_fork_works=no
23210 ac_cv_func_fork_works=yes
23213 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
23214 echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
23216 ac_cv_func_vfork_works=$ac_cv_func_vfork
23217 if test "x
$ac_cv_func_vfork" = xyes; then
23218 { echo "$as_me:$LINENO: checking
for working vfork
" >&5
23219 echo $ECHO_N "checking
for working vfork...
$ECHO_C" >&6; }
23220 if test "${ac_cv_func_vfork_works+set}" = set; then
23221 echo $ECHO_N "(cached
) $ECHO_C" >&6
23223 if test "$cross_compiling" = yes; then
23224 ac_cv_func_vfork_works=cross
23226 cat >conftest.$ac_ext <<_ACEOF
23229 cat confdefs.h >>conftest.$ac_ext
23230 cat >>conftest.$ac_ext <<_ACEOF
23231 /* end confdefs.h. */
23232 /* Thanks to Paul Eggert for this test. */
23233 $ac_includes_default
23234 #include <sys/wait.h>
23235 #ifdef HAVE_VFORK_H
23236 # include <vfork.h>
23238 /* On some sparc systems, changes by the child to local and incoming
23239 argument registers are propagated back to the parent. The compiler
23240 is told about this with #include <vfork.h>, but some compilers
23241 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23242 static variable whose address is put into a register that is
23243 clobbered by the vfork. */
23246 sparc_address_test (int arg)
23248 sparc_address_test (arg) int arg;
23251 static pid_t child;
23269 pid_t parent = getpid ();
23272 sparc_address_test (0);
23277 /* Here is another test for sparc vfork register problems. This
23278 test uses lots of local variables, at least as many local
23279 variables as main has allocated so far including compiler
23280 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23281 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23282 reuse the register of parent for one of the local variables,
23283 since it will think that parent can't possibly be used any more
23284 in this routine. Assigning to the local variable will thus
23285 munge parent in the parent process. */
23287 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23288 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23289 /* Convince the compiler that p..p7 are live; otherwise, it might
23290 use the same hardware register for all 8 local variables. */
23291 if (p != p1 || p != p2 || p != p3 || p != p4
23292 || p != p5 || p != p6 || p != p7)
23295 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23296 from child file descriptors. If the child closes a descriptor
23297 before it execs or exits, this munges the parent's descriptor
23298 as well. Test for this by closing stdout in the child. */
23299 _exit(close(fileno(stdout)) != 0);
23304 while (wait(&status) != child)
23307 /* Was there some problem with vforking? */
23310 /* Did the child fail? (This shouldn't happen.) */
23313 /* Did the vfork/compiler bug occur? */
23314 || parent != getpid()
23316 /* Did the file descriptor bug occur? */
23317 || fstat(fileno(stdout), &st) != 0
23322 rm -f conftest$ac_exeext
23323 if { (ac_try="$ac_link"
23324 case "(($ac_try" in
23325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23326 *) ac_try_echo=$ac_try;;
23328 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23329 (eval "$ac_link") 2>&5
23331 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23332 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23333 { (case "(($ac_try" in
23334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23335 *) ac_try_echo=$ac_try;;
23337 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23338 (eval "$ac_try") 2>&5
23340 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23341 (exit $ac_status); }; }; then
23342 ac_cv_func_vfork_works=yes
23344 echo "$as_me: program exited with status
$ac_status" >&5
23345 echo "$as_me: failed program was
:" >&5
23346 sed 's/^/| /' conftest.$ac_ext >&5
23348 ( exit $ac_status )
23349 ac_cv_func_vfork_works=no
23351 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23356 { echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
23357 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23360 if test "x
$ac_cv_func_fork_works" = xcross; then
23361 ac_cv_func_vfork_works=$ac_cv_func_vfork
23362 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
23363 echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
23366 if test "x
$ac_cv_func_vfork_works" = xyes; then
23368 cat >>confdefs.h <<\_ACEOF
23369 #define HAVE_WORKING_VFORK 1
23374 cat >>confdefs.h <<\_ACEOF
23379 if test "x
$ac_cv_func_fork_works" = xyes; then
23381 cat >>confdefs.h <<\_ACEOF
23382 #define HAVE_WORKING_FORK 1
23388 { echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
23389 echo $ECHO_N "checking
for nl_langinfo and CODESET...
$ECHO_C" >&6; }
23390 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23391 echo $ECHO_N "(cached
) $ECHO_C" >&6
23393 cat >conftest.$ac_ext <<_ACEOF
23396 cat confdefs.h >>conftest.$ac_ext
23397 cat >>conftest.$ac_ext <<_ACEOF
23398 /* end confdefs.h. */
23399 #include <langinfo.h>
23403 char* cs = nl_langinfo(CODESET);
23408 rm -f conftest.$ac_objext conftest$ac_exeext
23409 if { (ac_try="$ac_link"
23410 case "(($ac_try" in
23411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23412 *) ac_try_echo=$ac_try;;
23414 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23415 (eval "$ac_link") 2>conftest.er1
23417 grep -v '^ *+' conftest.er1 >conftest.err
23419 cat conftest.err >&5
23420 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23421 (exit $ac_status); } && {
23422 test -z "$ac_c_werror_flag" ||
23423 test ! -s conftest.err
23424 } && test -s conftest$ac_exeext &&
23425 $as_test_x conftest$ac_exeext; then
23426 emacs_cv_langinfo_codeset=yes
23428 echo "$as_me: failed program was
:" >&5
23429 sed 's/^/| /' conftest.$ac_ext >&5
23431 emacs_cv_langinfo_codeset=no
23434 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23435 conftest$ac_exeext conftest.$ac_ext
23438 { echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
23439 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23440 if test $emacs_cv_langinfo_codeset = yes; then
23442 cat >>confdefs.h <<\_ACEOF
23443 #define HAVE_LANGINFO_CODESET 1
23448 { echo "$as_me:$LINENO: checking
for size_t
" >&5
23449 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
23450 if test "${ac_cv_type_size_t+set}" = set; then
23451 echo $ECHO_N "(cached
) $ECHO_C" >&6
23453 cat >conftest.$ac_ext <<_ACEOF
23456 cat confdefs.h >>conftest.$ac_ext
23457 cat >>conftest.$ac_ext <<_ACEOF
23458 /* end confdefs.h. */
23459 $ac_includes_default
23460 typedef size_t ac__type_new_;
23464 if ((ac__type_new_ *) 0)
23466 if (sizeof (ac__type_new_))
23472 rm -f conftest.$ac_objext
23473 if { (ac_try="$ac_compile"
23474 case "(($ac_try" in
23475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23476 *) ac_try_echo=$ac_try;;
23478 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23479 (eval "$ac_compile") 2>conftest.er1
23481 grep -v '^ *+' conftest.er1 >conftest.err
23483 cat conftest.err >&5
23484 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23485 (exit $ac_status); } && {
23486 test -z "$ac_c_werror_flag" ||
23487 test ! -s conftest.err
23488 } && test -s conftest.$ac_objext; then
23489 ac_cv_type_size_t=yes
23491 echo "$as_me: failed program was
:" >&5
23492 sed 's/^/| /' conftest.$ac_ext >&5
23494 ac_cv_type_size_t=no
23497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23499 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
23500 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23501 if test $ac_cv_type_size_t = yes; then
23503 cat >>confdefs.h <<_ACEOF
23504 #define HAVE_SIZE_T 1
23511 { echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
23512 echo $ECHO_N "checking
for mbstate_t...
$ECHO_C" >&6; }
23513 if test "${ac_cv_type_mbstate_t+set}" = set; then
23514 echo $ECHO_N "(cached
) $ECHO_C" >&6
23516 cat >conftest.$ac_ext <<_ACEOF
23519 cat confdefs.h >>conftest.$ac_ext
23520 cat >>conftest.$ac_ext <<_ACEOF
23521 /* end confdefs.h. */
23522 $ac_includes_default
23523 # include <wchar.h>
23527 mbstate_t x; return sizeof x;
23532 rm -f conftest.$ac_objext
23533 if { (ac_try="$ac_compile"
23534 case "(($ac_try" in
23535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23536 *) ac_try_echo=$ac_try;;
23538 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23539 (eval "$ac_compile") 2>conftest.er1
23541 grep -v '^ *+' conftest.er1 >conftest.err
23543 cat conftest.err >&5
23544 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23545 (exit $ac_status); } && {
23546 test -z "$ac_c_werror_flag" ||
23547 test ! -s conftest.err
23548 } && test -s conftest.$ac_objext; then
23549 ac_cv_type_mbstate_t=yes
23551 echo "$as_me: failed program was
:" >&5
23552 sed 's/^/| /' conftest.$ac_ext >&5
23554 ac_cv_type_mbstate_t=no
23557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23559 { echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
23560 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23561 if test $ac_cv_type_mbstate_t = yes; then
23563 cat >>confdefs.h <<\_ACEOF
23564 #define HAVE_MBSTATE_T 1
23569 cat >>confdefs.h <<\_ACEOF
23570 #define mbstate_t int
23575 { echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
23576 echo $ECHO_N "checking
for C restrict keyword...
$ECHO_C" >&6; }
23577 if test "${emacs_cv_c_restrict+set}" = set; then
23578 echo $ECHO_N "(cached
) $ECHO_C" >&6
23580 cat >conftest.$ac_ext <<_ACEOF
23583 cat confdefs.h >>conftest.$ac_ext
23584 cat >>conftest.$ac_ext <<_ACEOF
23585 /* end confdefs.h. */
23586 void fred (int *restrict x);
23595 rm -f conftest.$ac_objext
23596 if { (ac_try="$ac_compile"
23597 case "(($ac_try" in
23598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23599 *) ac_try_echo=$ac_try;;
23601 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23602 (eval "$ac_compile") 2>conftest.er1
23604 grep -v '^ *+' conftest.er1 >conftest.err
23606 cat conftest.err >&5
23607 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23608 (exit $ac_status); } && {
23609 test -z "$ac_c_werror_flag" ||
23610 test ! -s conftest.err
23611 } && test -s conftest.$ac_objext; then
23612 emacs_cv_c_restrict=yes
23614 echo "$as_me: failed program was
:" >&5
23615 sed 's/^/| /' conftest.$ac_ext >&5
23617 cat >conftest.$ac_ext <<_ACEOF
23620 cat confdefs.h >>conftest.$ac_ext
23621 cat >>conftest.$ac_ext <<_ACEOF
23622 /* end confdefs.h. */
23623 void fred (int *__restrict x);
23632 rm -f conftest.$ac_objext
23633 if { (ac_try="$ac_compile"
23634 case "(($ac_try" in
23635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23636 *) ac_try_echo=$ac_try;;
23638 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23639 (eval "$ac_compile") 2>conftest.er1
23641 grep -v '^ *+' conftest.er1 >conftest.err
23643 cat conftest.err >&5
23644 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23645 (exit $ac_status); } && {
23646 test -z "$ac_c_werror_flag" ||
23647 test ! -s conftest.err
23648 } && test -s conftest.$ac_objext; then
23649 emacs_cv_c_restrict=__restrict
23651 echo "$as_me: failed program was
:" >&5
23652 sed 's/^/| /' conftest.$ac_ext >&5
23654 emacs_cv_c_restrict=no
23657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23662 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
23663 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23664 case "$emacs_cv_c_restrict" in
23665 yes) emacs_restrict=restrict;;
23666 no) emacs_restrict="";;
23667 *) emacs_restrict="$emacs_cv_c_restrict";;
23669 if test "$emacs_restrict" != __restrict; then
23671 cat >>confdefs.h <<_ACEOF
23672 #define __restrict $emacs_restrict
23677 { echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
23678 echo $ECHO_N "checking
for C restricted array declarations...
$ECHO_C" >&6; }
23679 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23680 echo $ECHO_N "(cached
) $ECHO_C" >&6
23682 cat >conftest.$ac_ext <<_ACEOF
23685 cat confdefs.h >>conftest.$ac_ext
23686 cat >>conftest.$ac_ext <<_ACEOF
23687 /* end confdefs.h. */
23688 void fred (int x[__restrict]);
23697 rm -f conftest.$ac_objext
23698 if { (ac_try="$ac_compile"
23699 case "(($ac_try" in
23700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23701 *) ac_try_echo=$ac_try;;
23703 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23704 (eval "$ac_compile") 2>conftest.er1
23706 grep -v '^ *+' conftest.er1 >conftest.err
23708 cat conftest.err >&5
23709 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23710 (exit $ac_status); } && {
23711 test -z "$ac_c_werror_flag" ||
23712 test ! -s conftest.err
23713 } && test -s conftest.$ac_objext; then
23714 emacs_cv_c_restrict_arr=yes
23716 echo "$as_me: failed program was
:" >&5
23717 sed 's/^/| /' conftest.$ac_ext >&5
23719 emacs_cv_c_restrict_arr=no
23722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23724 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
23725 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23726 if test "$emacs_cv_c_restrict_arr" = yes; then
23728 cat >>confdefs.h <<\_ACEOF
23729 #define __restrict_arr __restrict
23736 # Set up the CFLAGS for real compilation, so we can substitute it.
23737 CFLAGS="$REAL_CFLAGS"
23738 CPPFLAGS="$REAL_CPPFLAGS"
23740 #### Find out which version of Emacs this is.
23741 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23742 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
23743 if test x"${version}" = x; then
23744 { { echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&5
23745 echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&2;}
23746 { (exit 1); exit 1; }; }
23749 ### Specify what sort of things we'll be editing into Makefile and config.h.
23750 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23786 cat >>confdefs.h <<_ACEOF
23787 #define EMACS_CONFIGURATION "${canonical}"
23791 cat >>confdefs.h <<_ACEOF
23792 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23796 cat >>confdefs.h <<_ACEOF
23797 #define config_machfile "${machfile}"
23801 cat >>confdefs.h <<_ACEOF
23802 #define config_opsysfile "${opsysfile}"
23806 cat >>confdefs.h <<_ACEOF
23807 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23811 cat >>confdefs.h <<_ACEOF
23812 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23816 cat >>confdefs.h <<_ACEOF
23817 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23821 cat >>confdefs.h <<_ACEOF
23822 #define UNEXEC_SRC ${UNEXEC_SRC}
23826 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23828 cat >>confdefs.h <<\_ACEOF
23829 #define HAVE_X_WINDOWS 1
23833 if test "${USE_X_TOOLKIT}" != "none
" ; then
23835 cat >>confdefs.h <<\_ACEOF
23836 #define USE_X_TOOLKIT 1
23840 if test "${HAVE_X11}" = "yes" ; then
23842 cat >>confdefs.h <<\_ACEOF
23847 if test "${HAVE_XFREE386}" = "yes" ; then
23849 cat >>confdefs.h <<\_ACEOF
23850 #define HAVE_XFREE386 1
23854 if test "${HAVE_MENUS}" = "yes" ; then
23856 cat >>confdefs.h <<\_ACEOF
23857 #define HAVE_MENUS 1
23861 if test "${GNU_MALLOC}" = "yes" ; then
23863 cat >>confdefs.h <<\_ACEOF
23864 #define GNU_MALLOC 1
23868 if test "${REL_ALLOC}" = "yes" ; then
23870 cat >>confdefs.h <<\_ACEOF
23871 #define REL_ALLOC 1
23881 #### Report on what we decided to do.
23882 #### Report GTK as a toolkit, even if it doesn't use Xt.
23883 #### It makes printing result more understandable as using GTK sets
23884 #### toolkit_scroll_bars to yes by default.
23885 if test "${HAVE_GTK}" = "yes"; then
23890 Configured
for \
`${canonical}'.
23892 Where should the build process find the source code? ${srcdir}
23893 What operating system and machine description files should Emacs use?
23894 \`${opsysfile}' and \`${machfile}'
23895 What compiler should emacs be built with?
${CC} ${CFLAGS}
23896 Should Emacs use the GNU version of malloc?
${GNU_MALLOC}${GNU_MALLOC_reason}
23897 Should Emacs use a relocating allocator
for buffers?
${REL_ALLOC}
23898 Should Emacs use mmap
(2) for buffer allocation?
$use_mmap_for_buffers
23899 What window system should Emacs use?
${window_system}
23900 What toolkit should Emacs use?
${USE_X_TOOLKIT}"
23902 if test -n "${x_includes}"; then
23903 echo " Where
do we
find X Windows header files?
${x_includes}"
23905 echo " Where
do we
find X Windows header files? Standard
dirs"
23907 if test -n "${x_libraries}"; then
23908 echo " Where
do we
find X Windows libraries?
${x_libraries}"
23910 echo " Where
do we
find X Windows libraries? Standard
dirs"
23913 echo " Does Emacs use
-lXaw3d?
${HAVE_XAW3D}"
23914 echo " Does Emacs use
-lXpm?
${HAVE_XPM}"
23915 echo " Does Emacs use
-ljpeg?
${HAVE_JPEG}"
23916 echo " Does Emacs use
-ltiff?
${HAVE_TIFF}"
23917 echo " Does Emacs use a gif library?
${HAVE_GIF} $ac_gif_lib_name"
23918 echo " Does Emacs use
-lpng?
${HAVE_PNG}"
23919 echo " Does Emacs use
-lrsvg-2?
${HAVE_RSVG}"
23920 echo " Does Emacs use
-lgpm?
${HAVE_GPM}"
23921 echo " Does Emacs use X toolkit scroll bars?
${USE_TOOLKIT_SCROLL_BARS}"
23924 if test $USE_XASSERTS = yes; then
23925 echo " Compiling with asserts turned on.
"
23926 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23930 if test "$USE_X_TOOLKIT" = GTK; then
23931 case "$canonical" in
23933 echo "There are known problems with Emacs and Gtk
+ on cygwin
, so you
23934 will probably get a crash on startup. If this happens
, please use another
23935 toolkit
for Emacs. See etc
/PROBLEMS
for more information.
"
23941 if test "$HAVE_CARBON" = "yes"; then
23943 echo "Warning
: The Mac Carbon port is currently unsupported and has
23944 known problems. It is not recommended
for use by non-developers.
23945 Read the emacs-devel archives
for more information.
"
23949 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux
"; then
23950 echo "D-Bus integration has been tested
for GNU
/Linux only.
"
23955 # Remove any trailing slashes in these variables.
23956 test "${prefix}" != NONE &&
23957 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23958 test "${exec_prefix}" != NONE &&
23959 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23961 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23962 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23963 ## from Makefile.c can correctly provide the arg `-traditional' to the
23966 cat >conftest.$ac_ext <<_ACEOF
23969 cat confdefs.h >>conftest.$ac_ext
23970 cat >>conftest.$ac_ext <<_ACEOF
23971 /* end confdefs.h. */
23974 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
23975 $EGREP "yes..
yes" >/dev/null 2>&1; then
23976 CPP_NEED_TRADITIONAL=no
23978 CPP_NEED_TRADITIONAL=yes
23983 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
"
23985 ac_config_commands="$ac_config_commands default
"
23987 cat >confcache <<\_ACEOF
23988 # This file is a shell script that caches the results of configure
23989 # tests run on this system so they can be shared between configure
23990 # scripts and configure runs, see configure's option --config-cache.
23991 # It is not useful on other systems. If it contains results you don't
23992 # want to keep, you may remove or edit it.
23994 # config.status only pays attention to the cache file if you give it
23995 # the --recheck option to rerun configure.
23997 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23998 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23999 # following values.
24003 # The following way of writing the cache mishandles newlines in values,
24004 # but we know of no workaround that is simple, portable, and efficient.
24005 # So, we kill variables containing newlines.
24006 # Ultrix sh set writes to stderr and can't be redirected directly,
24007 # and sets the high bit in the cache file unless we assign to the vars.
24009 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24010 eval ac_val=\$$ac_var
24014 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
24015 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
24018 _ | IFS | as_nl) ;; #(
24019 *) $as_unset $ac_var ;;
24025 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24026 *${as_nl}ac_space=\ *)
24027 # `set' does not quote correctly, so add quotes (double-quote
24028 # substitution turns \\\\ into \\, and sed turns \\ into \).
24031 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
24034 # `set' quotes correctly as required by POSIX, so do not add quotes.
24035 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
24044 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24046 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24048 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24049 if test -w "$cache_file"; then
24050 test "x
$cache_file" != "x
/dev
/null
" &&
24051 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
24052 echo "$as_me: updating cache
$cache_file" >&6;}
24053 cat confcache >$cache_file
24055 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
24056 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
24061 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
24062 # Let make expand exec_prefix.
24063 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
24065 DEFS=-DHAVE_CONFIG_H
24069 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
24070 # 1. Remove the extension, and $U if already installed.
24071 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24072 ac_i=`echo "$ac_i" | sed "$ac_script"`
24073 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24074 # will be set to the directory where LIBOBJS objects are built.
24075 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
24076 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
24078 LIBOBJS=$ac_libobjs
24080 LTLIBOBJS=$ac_ltlibobjs
24084 : ${CONFIG_STATUS=./config.status}
24085 ac_clean_files_save=$ac_clean_files
24086 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24087 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
24088 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
24089 cat >$CONFIG_STATUS <<_ACEOF
24091 # Generated by $as_me.
24092 # Run this file to recreate the current configuration.
24093 # Compiler output produced by configure, useful for debugging
24094 # configure, is in config.log if it exists.
24097 ac_cs_recheck=false
24099 SHELL=\${CONFIG_SHELL-$SHELL}
24102 cat >>$CONFIG_STATUS <<\_ACEOF
24103 ## --------------------- ##
24104 ## M4sh Initialization. ##
24105 ## --------------------- ##
24107 # Be more Bourne compatible
24108 DUALCASE=1; export DUALCASE # for MKS sh
24109 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24112 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24113 # is contrary to our usage. Disable this feature.
24114 alias -g '${1+"$@"}'='"$@
"'
24115 setopt NO_GLOB_SUBST
24117 case `(set -o) 2>/dev/null` in
24118 *posix*) set -o posix ;;
24127 # Avoid depending upon Character Ranges.
24128 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24129 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24130 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24131 as_cr_digits='0123456789'
24132 as_cr_alnum=$as_cr_Letters$as_cr_digits
24134 # The user is always right.
24135 if test "${PATH_SEPARATOR+set}" != set; then
24136 echo "#! /bin/sh" >conf$$.sh
24137 echo "exit 0" >>conf$$.sh
24139 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
24147 # Support unset when possible.
24148 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
24156 # We need space, tab and new line, in precisely that order. Quoting is
24157 # there to prevent editors from complaining about space-tab.
24158 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24159 # splitting by setting IFS to empty value.)
24164 # Find who we are. Look in the path if we contain no directory separator.
24166 *[\\/]* ) as_myself
=$0 ;;
24167 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24168 for as_dir
in $PATH
24171 test -z "$as_dir" && as_dir
=.
24172 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
24178 # We did not find ourselves, most probably we were run as `sh COMMAND'
24179 # in which case we are not to be found in the path.
24180 if test "x$as_myself" = x
; then
24183 if test ! -f "$as_myself"; then
24184 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24185 { (exit 1); exit 1; }
24188 # Work around bugs in pre-3.0 UWIN ksh.
24189 for as_var
in ENV MAIL MAILPATH
24190 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24198 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24199 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24200 LC_TELEPHONE LC_TIME
24202 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24203 eval $as_var=C
; export $as_var
24205 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24209 # Required to use basename.
24210 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24211 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24217 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24218 as_basename
=basename
24224 # Name of the executable.
24225 as_me
=`$as_basename -- "$0" ||
24226 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24227 X"$0" : 'X\(//\)$' \| \
24228 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24230 sed '/^.*\/\([^/][^/]*\)\/*$/{
24249 as_lineno_1
=$LINENO
24250 as_lineno_2
=$LINENO
24251 test "x$as_lineno_1" != "x$as_lineno_2" &&
24252 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
24254 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24255 # uniformly replaced by the line number. The first 'sed' inserts a
24256 # line-number line after each line using $LINENO; the second 'sed'
24257 # does the real work. The second script uses 'N' to pair each
24258 # line-number line with the line containing $LINENO, and appends
24259 # trailing '-' during substitution so that $LINENO is not a special
24260 # case at line end.
24261 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24262 # scripts with optimization help from Paolo Bonzini. Blame Lee
24263 # E. McMahon (1931-1989) for sed's syntax. :-)
24275 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24278 ' >$as_me.lineno
&&
24279 chmod +x
"$as_me.lineno" ||
24280 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24281 { (exit 1); exit 1; }; }
24283 # Don't try to exec as it changes $[0], causing all sort of problems
24284 # (the dirname of $[0] is not the place where we might find the
24285 # original and so on. Autoconf is especially sensitive to this).
24286 .
"./$as_me.lineno"
24287 # Exit status is that of the last command.
24292 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
24298 ECHO_C
= ECHO_N
= ECHO_T
=
24299 case `echo -n x` in
24301 case `echo 'x\c'` in
24302 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
24309 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24310 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24316 rm -f conf$$ conf$$.exe conf$$.
file
24317 if test -d conf$$.dir
; then
24318 rm -f conf$$.dir
/conf$$.
file
24324 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
24326 # ... but there are two gotchas:
24327 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24328 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24329 # In both cases, we have to default to `cp -p'.
24330 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
24332 elif ln conf$$.
file conf$$
2>/dev
/null
; then
24337 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
24338 rmdir conf$$.dir
2>/dev
/null
24340 if mkdir
-p .
2>/dev
/null
; then
24343 test -d .
/-p && rmdir .
/-p
24347 if test -x / >/dev
/null
2>&1; then
24348 as_test_x
='test -x'
24350 if ls -dL / >/dev
/null
2>&1; then
24357 if test -d "$1"; then
24363 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24364 ???[sx]*):;;*)false;;esac;fi
24368 as_executable_p
=$as_test_x
24370 # Sed expression to map a string onto a valid CPP name.
24371 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24373 # Sed expression to map a string onto a valid variable name.
24374 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24379 # Save the log message, to keep $[0] and so on meaningful, and to
24380 # report actual input values of CONFIG_FILES etc. instead of their
24381 # values after options handling.
24383 This file was extended by emacs $as_me 23.0.50, which was
24384 generated by GNU Autoconf 2.61. Invocation command line was
24386 CONFIG_FILES = $CONFIG_FILES
24387 CONFIG_HEADERS = $CONFIG_HEADERS
24388 CONFIG_LINKS = $CONFIG_LINKS
24389 CONFIG_COMMANDS = $CONFIG_COMMANDS
24392 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24397 cat >>$CONFIG_STATUS <<_ACEOF
24398 # Files that config.status was made for.
24399 config_files="$ac_config_files"
24400 config_headers="$ac_config_headers"
24401 config_commands="$ac_config_commands"
24405 cat >>$CONFIG_STATUS <<\_ACEOF
24407 \`$as_me' instantiates files from templates according to the
24408 current configuration.
24410 Usage: $0 [OPTIONS] [FILE]...
24412 -h, --help print this help, then exit
24413 -V, --version print version number and configuration settings, then exit
24414 -q, --quiet do not print progress messages
24415 -d, --debug don't remove temporary files
24416 --recheck update $as_me by reconfiguring in the same conditions
24417 --file=FILE[:TEMPLATE]
24418 instantiate the configuration file FILE
24419 --header=FILE[:TEMPLATE]
24420 instantiate the configuration header FILE
24422 Configuration files:
24425 Configuration headers:
24428 Configuration commands:
24431 Report bugs to <bug-autoconf@gnu.org>."
24434 cat >>$CONFIG_STATUS <<_ACEOF
24436 emacs config.status 23.0.50
24437 configured by $0, generated by GNU Autoconf 2.61,
24438 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24440 Copyright (C) 2006 Free Software Foundation, Inc.
24441 This config.status script is free software; the Free Software Foundation
24442 gives unlimited permission to copy, distribute and modify it."
24449 cat >>$CONFIG_STATUS <<\_ACEOF
24450 # If no file are specified by the user, then we need to provide default
24451 # value. By we need to know if files were specified by the user.
24457 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
24458 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
24469 # Handling of the options.
24470 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
24472 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
24473 echo "$ac_cs_version"; exit ;;
24474 --debug |
--debu |
--deb |
--de |
--d |
-d )
24476 --file |
--fil |
--fi |
--f )
24478 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
24479 ac_need_defaults
=false
;;
24480 --header |
--heade |
--head |
--hea )
24482 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
24483 ac_need_defaults
=false
;;
24485 # Conflict between --help and --header
24486 { echo "$as_me: error: ambiguous option: $1
24487 Try \`$0 --help' for more information." >&2
24488 { (exit 1); exit 1; }; };;
24489 --help |
--hel |
-h )
24490 echo "$ac_cs_usage"; exit ;;
24491 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
24492 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
24495 # This is an error.
24496 -*) { echo "$as_me: error: unrecognized option: $1
24497 Try \`$0 --help' for more information." >&2
24498 { (exit 1); exit 1; }; } ;;
24500 *) ac_config_targets
="$ac_config_targets $1"
24501 ac_need_defaults
=false
;;
24507 ac_configure_extra_args
=
24509 if $ac_cs_silent; then
24511 ac_configure_extra_args
="$ac_configure_extra_args --silent"
24515 cat >>$CONFIG_STATUS <<_ACEOF
24516 if \$ac_cs_recheck; then
24517 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24518 CONFIG_SHELL=$SHELL
24519 export CONFIG_SHELL
24520 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24524 cat >>$CONFIG_STATUS <<\_ACEOF
24528 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24529 ## Running $as_me. ##
24535 cat >>$CONFIG_STATUS <<_ACEOF
24539 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
24543 cat >>$CONFIG_STATUS <<\_ACEOF
24545 # Handling of arguments.
24546 for ac_config_target
in $ac_config_targets
24548 case $ac_config_target in
24549 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24550 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
24551 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24552 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
24553 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
24554 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
24555 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
24556 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
24557 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24558 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
24559 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
24560 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
24561 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
24563 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24564 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24565 { (exit 1); exit 1; }; };;
24570 # If the user did not use the arguments to specify the items to instantiate,
24571 # then the envvar interface is used. Set only those that are not.
24572 # We use the long form for the default assignment because of an extremely
24573 # bizarre bug on SunOS 4.1.3.
24574 if $ac_need_defaults; then
24575 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
24576 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
24577 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
24580 # Have a temporary directory for convenience. Make it in the build tree
24581 # simply because there is no reason against having it here, and in addition,
24582 # creating and moving files from /tmp can sometimes cause problems.
24583 # Hook for its removal unless debugging.
24584 # Note that there is a small window in which the directory will not be cleaned:
24585 # after its creation but before its name has been assigned to `$tmp'.
24589 trap 'exit_status=$?
24590 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24592 trap '{ (exit 1); exit 1; }' 1 2 13 15
24594 # Create a (secure) tmp directory for tmp files.
24597 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24598 test -n "$tmp" && test -d "$tmp"
24601 tmp
=.
/conf$$
-$RANDOM
24602 (umask 077 && mkdir
"$tmp")
24605 echo "$me: cannot create a temporary directory in ." >&2
24606 { (exit 1); exit 1; }
24610 # Set up the sed scripts for CONFIG_FILES section.
24613 # No need to generate the scripts if there are no CONFIG_FILES.
24614 # This happens for instance when ./config.status config.h
24615 if test -n "$CONFIG_FILES"; then
24622 for ac_last_try
in false false false false false
:; do
24623 cat >conf$
$subs.
sed <<_ACEOF
24624 SHELL!$SHELL$ac_delim
24625 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24626 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24627 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24628 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24629 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24630 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24631 exec_prefix!$exec_prefix$ac_delim
24632 prefix!$prefix$ac_delim
24633 program_transform_name!$program_transform_name$ac_delim
24634 bindir!$bindir$ac_delim
24635 sbindir!$sbindir$ac_delim
24636 libexecdir!$libexecdir$ac_delim
24637 datarootdir!$datarootdir$ac_delim
24638 datadir!$datadir$ac_delim
24639 sysconfdir!$sysconfdir$ac_delim
24640 sharedstatedir!$sharedstatedir$ac_delim
24641 localstatedir!$localstatedir$ac_delim
24642 includedir!$includedir$ac_delim
24643 oldincludedir!$oldincludedir$ac_delim
24644 docdir!$docdir$ac_delim
24645 infodir!$infodir$ac_delim
24646 htmldir!$htmldir$ac_delim
24647 dvidir!$dvidir$ac_delim
24648 pdfdir!$pdfdir$ac_delim
24649 psdir!$psdir$ac_delim
24650 libdir!$libdir$ac_delim
24651 localedir!$localedir$ac_delim
24652 mandir!$mandir$ac_delim
24653 DEFS!$DEFS$ac_delim
24654 ECHO_C!$ECHO_C$ac_delim
24655 ECHO_N!$ECHO_N$ac_delim
24656 ECHO_T!$ECHO_T$ac_delim
24657 LIBS!$LIBS$ac_delim
24658 build_alias!$build_alias$ac_delim
24659 host_alias!$host_alias$ac_delim
24660 target_alias!$target_alias$ac_delim
24661 MAINT!$MAINT$ac_delim
24662 build!$build$ac_delim
24663 build_cpu!$build_cpu$ac_delim
24664 build_vendor!$build_vendor$ac_delim
24665 build_os!$build_os$ac_delim
24666 host!$host$ac_delim
24667 host_cpu!$host_cpu$ac_delim
24668 host_vendor!$host_vendor$ac_delim
24669 host_os!$host_os$ac_delim
24671 CFLAGS!$CFLAGS$ac_delim
24672 LDFLAGS!$LDFLAGS$ac_delim
24673 CPPFLAGS!$CPPFLAGS$ac_delim
24674 ac_ct_CC!$ac_ct_CC$ac_delim
24675 EXEEXT!$EXEEXT$ac_delim
24676 OBJEXT!$OBJEXT$ac_delim
24678 GREP!$GREP$ac_delim
24679 EGREP!$EGREP$ac_delim
24680 LN_S!$LN_S$ac_delim
24681 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24682 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24683 INSTALL_DATA!$INSTALL_DATA$ac_delim
24684 RANLIB!$RANLIB$ac_delim
24685 INSTALL_INFO!$INSTALL_INFO$ac_delim
24686 GZIP_PROG!$GZIP_PROG$ac_delim
24687 MAKEINFO!$MAKEINFO$ac_delim
24688 LIBSOUND!$LIBSOUND$ac_delim
24689 PKG_CONFIG!$PKG_CONFIG$ac_delim
24690 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24691 ALSA_LIBS!$ALSA_LIBS$ac_delim
24692 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24693 SET_MAKE!$SET_MAKE$ac_delim
24694 XMKMF!$XMKMF$ac_delim
24695 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
24696 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
24697 RSVG_LIBS!$RSVG_LIBS$ac_delim
24698 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24699 GTK_LIBS!$GTK_LIBS$ac_delim
24700 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
24701 DBUS_LIBS!$DBUS_LIBS$ac_delim
24702 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24703 XFT_LIBS!$XFT_LIBS$ac_delim
24704 ALLOCA!$ALLOCA$ac_delim
24705 liblockfile!$liblockfile$ac_delim
24706 LIBOBJS!$LIBOBJS$ac_delim
24707 NEED_SETGID!$NEED_SETGID$ac_delim
24708 KMEM_GROUP!$KMEM_GROUP$ac_delim
24709 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24710 GETOPT_H!$GETOPT_H$ac_delim
24711 GETOPTOBJS!$GETOPTOBJS$ac_delim
24712 version!$version$ac_delim
24713 configuration!$configuration$ac_delim
24714 canonical!$canonical$ac_delim
24715 srcdir!$srcdir$ac_delim
24716 lispdir!$lispdir$ac_delim
24717 locallisppath!$locallisppath$ac_delim
24718 lisppath!$lisppath$ac_delim
24719 x_default_search_path!$x_default_search_path$ac_delim
24720 etcdir!$etcdir$ac_delim
24723 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24725 elif $ac_last_try; then
24726 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24727 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24728 { (exit 1); exit 1; }; }
24730 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24734 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24735 if test -n "$ac_eof"; then
24736 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24737 ac_eof
=`expr $ac_eof + 1`
24740 cat >>$CONFIG_STATUS <<_ACEOF
24741 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24742 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24745 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24746 s/^/s,@/; s/!/@,|#_!!_#|/
24749 s/'"$ac_delim"'$/,g/; t
24751 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24752 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24753 rm -f conf$
$subs.
sed
24754 cat >>$CONFIG_STATUS <<_ACEOF
24760 for ac_last_try
in false false false false false
:; do
24761 cat >conf$
$subs.
sed <<_ACEOF
24762 archlibdir!$archlibdir$ac_delim
24763 bitmapdir!$bitmapdir$ac_delim
24764 gamedir!$gamedir$ac_delim
24765 gameuser!$gameuser$ac_delim
24766 c_switch_system!$c_switch_system$ac_delim
24767 c_switch_machine!$c_switch_machine$ac_delim
24768 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
24769 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
24770 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
24771 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
24772 machfile!$machfile$ac_delim
24773 opsysfile!$opsysfile$ac_delim
24774 carbon_appdir!$carbon_appdir$ac_delim
24775 LTLIBOBJS!$LTLIBOBJS$ac_delim
24778 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 14; then
24780 elif $ac_last_try; then
24781 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24782 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24783 { (exit 1); exit 1; }; }
24785 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24789 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24790 if test -n "$ac_eof"; then
24791 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24792 ac_eof
=`expr $ac_eof + 1`
24795 cat >>$CONFIG_STATUS <<_ACEOF
24796 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24797 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24800 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24801 s/^/s,@/; s/!/@,|#_!!_#|/
24804 s/'"$ac_delim"'$/,g/; t
24806 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24807 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24808 rm -f conf$
$subs.
sed
24809 cat >>$CONFIG_STATUS <<_ACEOF
24816 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24817 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24818 # trailing colons and then remove the whole line if VPATH becomes empty
24819 # (actually we leave an empty line to preserve line numbers).
24820 if test "x$srcdir" = x.
; then
24821 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
24822 s/:*\$(srcdir):*/:/
24823 s/:*\${srcdir}:*/:/
24825 s/^\([^=]*=[ ]*\):*/\1/
24831 cat >>$CONFIG_STATUS <<\_ACEOF
24832 fi # test -n "$CONFIG_FILES"
24835 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
24838 :[FHLC
]) ac_mode
=$ac_tag; continue;;
24840 case $ac_mode$ac_tag in
24842 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24843 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24844 { (exit 1); exit 1; }; };;
24845 :[FH
]-) ac_tag
=-:-;;
24846 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
24863 -) ac_f
="$tmp/stdin";;
24864 *) # Look for the file first in the build tree, then in the source tree
24865 # (if the path is not absolute). The absolute path cannot be DOS-style,
24866 # because $ac_f cannot contain `:'.
24870 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
24872 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24873 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24874 { (exit 1); exit 1; }; };;
24876 ac_file_inputs
="$ac_file_inputs $ac_f"
24879 # Let's still pretend it is `configure' which instantiates (i.e., don't
24880 # use $as_me), people would be surprised to read:
24881 # /* config.h. Generated by config.status. */
24882 configure_input
="Generated from "`IFS=:
24883 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24884 if test x
"$ac_file" != x-
; then
24885 configure_input
="$ac_file. $configure_input"
24886 { echo "$as_me:$LINENO: creating $ac_file" >&5
24887 echo "$as_me: creating $ac_file" >&6;}
24891 *:-:* |
*:-) cat >"$tmp/stdin";;
24896 ac_dir
=`$as_dirname -- "$ac_file" ||
24897 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24898 X"$ac_file" : 'X\(//\)[^/]' \| \
24899 X"$ac_file" : 'X\(//\)$' \| \
24900 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24902 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24906 /^X\(\/\/\)[^/].*/{
24921 -*) as_dir
=.
/$as_dir;;
24923 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
24927 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24928 *) as_qdir
=$as_dir;;
24930 as_dirs
="'$as_qdir' $as_dirs"
24931 as_dir
=`$as_dirname -- "$as_dir" ||
24932 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24933 X"$as_dir" : 'X\(//\)[^/]' \| \
24934 X"$as_dir" : 'X\(//\)$' \| \
24935 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24937 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24941 /^X\(\/\/\)[^/].*/{
24954 test -d "$as_dir" && break
24956 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
24957 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24958 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24959 { (exit 1); exit 1; }; }; }
24963 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24965 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24966 # A ".." for each directory in $ac_dir_suffix.
24967 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24968 case $ac_top_builddir_sub in
24969 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24970 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
24973 ac_abs_top_builddir
=$ac_pwd
24974 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
24975 # for backward compatibility:
24976 ac_top_builddir
=$ac_top_build_prefix
24979 .
) # We are building in place.
24981 ac_top_srcdir
=$ac_top_builddir_sub
24982 ac_abs_top_srcdir
=$ac_pwd ;;
24983 [\\/]* | ?
:[\\/]* ) # Absolute name.
24984 ac_srcdir
=$srcdir$ac_dir_suffix;
24985 ac_top_srcdir
=$srcdir
24986 ac_abs_top_srcdir
=$srcdir ;;
24987 *) # Relative name.
24988 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
24989 ac_top_srcdir
=$ac_top_build_prefix$srcdir
24990 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
24992 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
25002 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
25003 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
25007 cat >>$CONFIG_STATUS <<\_ACEOF
25008 # If the template does not know about datarootdir, expand it.
25009 # FIXME: This hack should be removed a few years after 2.60.
25010 ac_datarootdir_hack
=; ac_datarootdir_seen
=
25012 case `sed -n '/datarootdir/ {
25021 ' $ac_file_inputs` in
25022 *datarootdir
*) ac_datarootdir_seen
=yes;;
25023 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
25024 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25025 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25027 cat >>$CONFIG_STATUS <<_ACEOF
25028 ac_datarootdir_hack='
25029 s&@datadir@&$datadir&g
25030 s&@docdir@&$docdir&g
25031 s&@infodir@&$infodir&g
25032 s&@localedir@&$localedir&g
25033 s&@mandir@&$mandir&g
25034 s&\\\${datarootdir}&$datarootdir&g' ;;
25038 # Neutralize VPATH when `$srcdir' = `.'.
25039 # Shell code in configure.ac might set extrasub.
25040 # FIXME: do we really want to maintain this feature?
25041 cat >>$CONFIG_STATUS <<_ACEOF
25045 cat >>$CONFIG_STATUS <<\_ACEOF
25047 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
25048 s
&@configure_input@
&$configure_input&;t t
25049 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
25050 s
&@srcdir@
&$ac_srcdir&;t t
25051 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
25052 s
&@top_srcdir@
&$ac_top_srcdir&;t t
25053 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
25054 s
&@builddir@
&$ac_builddir&;t t
25055 s
&@abs_builddir@
&$ac_abs_builddir&;t t
25056 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
25057 s
&@INSTALL@
&$ac_INSTALL&;t t
25058 $ac_datarootdir_hack
25059 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
25061 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25062 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
25063 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
25064 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
25065 which seems to be undefined. Please make sure it is defined." >&5
25066 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
25067 which seems to be undefined. Please make sure it is defined." >&2;}
25071 -) cat "$tmp/out"; rm -f "$tmp/out";;
25072 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25081 # Transform confdefs.h into a sed script `conftest.defines', that
25082 # substitutes the proper values into config.h.in to produce config.h.
25083 rm -f conftest.defines conftest.
tail
25084 # First, append a space to every undef/define line, to ease matching.
25085 echo 's/$/ /' >conftest.defines
25086 # Then, protect against being on the right side of a sed subst, or in
25087 # an unquoted here document, in config.status. If some macros were
25088 # called several times there might be several #defines for the same
25089 # symbol, which is useless. But do not sort them, since the last
25090 # AC_DEFINE must be honored.
25091 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
25092 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25093 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25094 # PARAMS is the parameter list in the macro definition--in most cases, it's
25095 # just an empty string.
25096 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25097 ac_dB
='\\)[ (].*,\\1define\\2'
25105 s/^[ ]*#[ ]*define[ ][ ]*//
25110 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25111 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25112 ' >>conftest.defines
25114 # Remove the space that was appended to ease matching.
25115 # Then replace #undef with comments. This is necessary, for
25116 # example, in the case of _POSIX_SOURCE, which is predefined and required
25117 # on some systems where configure will not decide to define it.
25118 # (The regexp can be short, since the line contains either #define or #undef.)
25120 s,^[ #]*u.*,/* & */,' >>conftest.defines
25122 # Break up conftest.defines:
25123 ac_max_sed_lines
=50
25125 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25126 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25127 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25129 ac_in
='$ac_file_inputs'
25130 ac_out
='"$tmp/out1"'
25131 ac_nxt
='"$tmp/out2"'
25135 # Write a here document:
25136 cat >>$CONFIG_STATUS <<_ACEOF
25137 # First, check the format of the line:
25138 cat >"\$tmp/defines.sed" <<\\CEOF
25139 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25140 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25144 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
25146 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25147 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
25148 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
25149 grep . conftest.
tail >/dev
/null ||
break
25150 rm -f conftest.defines
25151 mv conftest.
tail conftest.defines
25153 rm -f conftest.defines conftest.
tail
25155 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25156 cat >>$CONFIG_STATUS <<\_ACEOF
25157 if test x
"$ac_file" != x-
; then
25158 echo "/* $configure_input */" >"$tmp/config.h"
25159 cat "$ac_result" >>"$tmp/config.h"
25160 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
25161 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25162 echo "$as_me: $ac_file is unchanged" >&6;}
25165 mv "$tmp/config.h" $ac_file
25168 echo "/* $configure_input */"
25174 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25175 echo "$as_me: executing $ac_file commands" >&6;}
25180 case $ac_file$ac_mode in
25183 ### Make the necessary directories, if they don't exist.
25184 for dir
in etc lisp
; do
25185 test -d ${dir} || mkdir
${dir}
25188 # Build src/Makefile from ${srcdir}/src/Makefile.c
25189 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25190 # This must be done after src/config.h is built, since we rely on that file.
25192 # Now get this: Some word that is part of the ${srcdir} directory name
25193 # or the ${configuration} value might, just might, happen to be an
25194 # identifier like `sun4' or `i386' or something, and be predefined by
25195 # the C preprocessor to some helpful value like 1, or maybe the empty
25196 # string. Needless to say consequent macro substitutions are less
25197 # than conducive to the makefile finding the correct directory.
25198 undefs
="`echo $top_srcdir $configuration $canonical |
25199 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
25200 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
25203 echo creating src
/epaths.h
25204 ${MAKE-make} epaths-force
25206 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25207 # `..' to `. .' unless invoked with -traditional
25209 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
25210 CPPFLAGS
="$CPPFLAGS -traditional"
25213 echo creating lib-src
/Makefile
25215 rm -f junk.c junk1.c junk2.c
25216 sed -e '/start of cpp stuff/q' \
25217 < Makefile.c
> junk1.c
25218 sed -e '1,/start of cpp stuff/d'\
25219 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25220 < Makefile.c
> junk.c
25221 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
25222 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25223 cat junk1.c junk2.c
> Makefile.new
25224 rm -f junk.c junk1.c junk2.c
25225 chmod 444 Makefile.new
25226 mv -f Makefile.new Makefile
25229 echo creating src
/Makefile
25231 rm -f junk.c junk1.c junk2.c
25232 sed -e '/start of cpp stuff/q' \
25233 < Makefile.c
> junk1.c
25234 sed -e '1,/start of cpp stuff/d'\
25235 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25236 < Makefile.c
> junk.c
25237 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
25238 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25239 cat junk1.c junk2.c
> Makefile.new
25240 rm -f junk.c junk1.c junk2.c
25241 chmod 444 Makefile.new
25242 mv -f Makefile.new Makefile
25245 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
25246 echo creating src
/.gdbinit
25247 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
25250 # This is how we know whether to re-run configure in certain cases.
25251 touch src
/config.stamp
25259 { (exit 0); exit 0; }
25261 chmod +x
$CONFIG_STATUS
25262 ac_clean_files
=$ac_clean_files_save
25265 # configure is writing to config.log, and then calls config.status.
25266 # config.status does its own redirection, appending to config.log.
25267 # Unfortunately, on DOS this fails, as config.log is still kept open
25268 # by configure, so config.status won't be able to write to it; its
25269 # output is simply discarded. So we exec the FD to /dev/null,
25270 # effectively closing config.log, so it can be properly (re)opened and
25271 # appended to by config.status. When coming back to configure, we
25272 # need to make the FD available again.
25273 if test "$no_create" != yes; then
25275 ac_config_status_args
=
25276 test "$silent" = yes &&
25277 ac_config_status_args
="$ac_config_status_args --quiet"
25279 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
25281 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25282 # would make configure fail if this is the last instruction.
25283 $ac_cs_success ||
{ (exit 1); exit 1; }