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_config_libobj_dir
=src
580 # Factoring default headers for most tests.
581 ac_includes_default
="\
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
593 # ifdef HAVE_STDLIB_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
627 program_transform_name
713 x_default_search_path
730 ac_precious_vars
='build_alias
742 # Initialize some variables set by options.
744 ac_init_version
=false
745 # The variables have the same names as the options, with
746 # dashes changed to underlines.
754 program_transform_name
=s
,x
,x
,
762 # Installation directory options.
763 # These are left unexpanded so users can "make install exec_prefix=/foo"
764 # and all the variables that are supposed to be based on exec_prefix
765 # by default will actually change.
766 # Use braces instead of parens because sh, perl, etc. also accept them.
767 # (The list follows the same order as the GNU Coding Standards.)
768 bindir
='${exec_prefix}/bin'
769 sbindir
='${exec_prefix}/sbin'
770 libexecdir
='${exec_prefix}/libexec'
771 datarootdir
='${prefix}/share'
772 datadir
='${datarootdir}'
773 sysconfdir
='${prefix}/etc'
774 sharedstatedir
='${prefix}/com'
775 localstatedir
='${prefix}/var'
776 includedir
='${prefix}/include'
777 oldincludedir
='/usr/include'
778 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
779 infodir
='${datarootdir}/info'
784 libdir
='${exec_prefix}/lib'
785 localedir
='${datarootdir}/locale'
786 mandir
='${datarootdir}/man'
792 # If the previous option needs an argument, assign it.
793 if test -n "$ac_prev"; then
794 eval $ac_prev=\
$ac_option
800 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
804 # Accept the important Cygnus configure options, so we can diagnose typos.
806 case $ac_dashdash$ac_option in
810 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
812 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
815 -build |
--build |
--buil |
--bui |
--bu)
816 ac_prev
=build_alias
;;
817 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
818 build_alias
=$ac_optarg ;;
820 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
821 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
822 ac_prev
=cache_file
;;
823 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
824 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
825 cache_file
=$ac_optarg ;;
828 cache_file
=config.cache
;;
830 -datadir |
--datadir |
--datadi |
--datad)
832 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
833 datadir
=$ac_optarg ;;
835 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
836 |
--dataroo |
--dataro |
--datar)
837 ac_prev
=datarootdir
;;
838 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
839 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
840 datarootdir
=$ac_optarg ;;
842 -disable-* |
--disable-*)
843 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
844 # Reject names that are not valid shell variable names.
845 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
846 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
847 { (exit 1); exit 1; }; }
848 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
849 eval enable_
$ac_feature=no
;;
851 -docdir |
--docdir |
--docdi |
--doc |
--do)
853 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
856 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
858 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
861 -enable-* |
--enable-*)
862 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
863 # Reject names that are not valid shell variable names.
864 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
865 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
866 { (exit 1); exit 1; }; }
867 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
868 eval enable_
$ac_feature=\
$ac_optarg ;;
870 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
871 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
872 |
--exec |
--exe |
--ex)
873 ac_prev
=exec_prefix
;;
874 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
875 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
876 |
--exec=* |
--exe=* |
--ex=*)
877 exec_prefix
=$ac_optarg ;;
879 -gas |
--gas |
--ga |
--g)
880 # Obsolete; use --with-gas.
883 -help |
--help |
--hel |
--he |
-h)
885 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
886 ac_init_help
=recursive
;;
887 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
888 ac_init_help
=short
;;
890 -host |
--host |
--hos |
--ho)
891 ac_prev
=host_alias
;;
892 -host=* |
--host=* |
--hos=* |
--ho=*)
893 host_alias
=$ac_optarg ;;
895 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
897 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
899 htmldir
=$ac_optarg ;;
901 -includedir |
--includedir |
--includedi |
--included |
--include \
902 |
--includ |
--inclu |
--incl |
--inc)
903 ac_prev
=includedir
;;
904 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
905 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
906 includedir
=$ac_optarg ;;
908 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
910 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
911 infodir
=$ac_optarg ;;
913 -libdir |
--libdir |
--libdi |
--libd)
915 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
918 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
919 |
--libexe |
--libex |
--libe)
920 ac_prev
=libexecdir
;;
921 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
922 |
--libexe=* |
--libex=* |
--libe=*)
923 libexecdir
=$ac_optarg ;;
925 -localedir |
--localedir |
--localedi |
--localed |
--locale)
927 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
928 localedir
=$ac_optarg ;;
930 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
931 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
932 ac_prev
=localstatedir
;;
933 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
934 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
935 localstatedir
=$ac_optarg ;;
937 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
939 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
943 # Obsolete; use --without-fp.
946 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
947 |
--no-cr |
--no-c |
-n)
950 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
951 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
954 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
955 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
956 |
--oldin |
--oldi |
--old |
--ol |
--o)
957 ac_prev
=oldincludedir
;;
958 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
959 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
960 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
961 oldincludedir
=$ac_optarg ;;
963 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
965 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
968 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
969 |
--program-pre |
--program-pr |
--program-p)
970 ac_prev
=program_prefix
;;
971 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
972 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
973 program_prefix
=$ac_optarg ;;
975 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
976 |
--program-suf |
--program-su |
--program-s)
977 ac_prev
=program_suffix
;;
978 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
979 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
980 program_suffix
=$ac_optarg ;;
982 -program-transform-name |
--program-transform-name \
983 |
--program-transform-nam |
--program-transform-na \
984 |
--program-transform-n |
--program-transform- \
985 |
--program-transform |
--program-transfor \
986 |
--program-transfo |
--program-transf \
987 |
--program-trans |
--program-tran \
988 |
--progr-tra |
--program-tr |
--program-t)
989 ac_prev
=program_transform_name
;;
990 -program-transform-name=* |
--program-transform-name=* \
991 |
--program-transform-nam=* |
--program-transform-na=* \
992 |
--program-transform-n=* |
--program-transform-=* \
993 |
--program-transform=* |
--program-transfor=* \
994 |
--program-transfo=* |
--program-transf=* \
995 |
--program-trans=* |
--program-tran=* \
996 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
997 program_transform_name
=$ac_optarg ;;
999 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1001 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1002 pdfdir
=$ac_optarg ;;
1004 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1006 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1009 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1010 |
-silent |
--silent |
--silen |
--sile |
--sil)
1013 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1015 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1017 sbindir
=$ac_optarg ;;
1019 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1020 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1021 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1023 ac_prev
=sharedstatedir
;;
1024 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1025 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1026 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1028 sharedstatedir
=$ac_optarg ;;
1030 -site |
--site |
--sit)
1032 -site=* |
--site=* |
--sit=*)
1035 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1037 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1038 srcdir
=$ac_optarg ;;
1040 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1041 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1042 ac_prev
=sysconfdir
;;
1043 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1044 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1045 sysconfdir
=$ac_optarg ;;
1047 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1048 ac_prev
=target_alias
;;
1049 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1050 target_alias
=$ac_optarg ;;
1052 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1055 -version |
--version |
--versio |
--versi |
--vers |
-V)
1056 ac_init_version
=: ;;
1059 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1060 # Reject names that are not valid shell variable names.
1061 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1062 { echo "$as_me: error: invalid package name: $ac_package" >&2
1063 { (exit 1); exit 1; }; }
1064 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1065 eval with_
$ac_package=\
$ac_optarg ;;
1067 -without-* |
--without-*)
1068 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1069 # Reject names that are not valid shell variable names.
1070 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1071 { echo "$as_me: error: invalid package name: $ac_package" >&2
1072 { (exit 1); exit 1; }; }
1073 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1074 eval with_
$ac_package=no
;;
1077 # Obsolete; use --with-x.
1080 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1081 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1082 ac_prev
=x_includes
;;
1083 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1084 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1085 x_includes
=$ac_optarg ;;
1087 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1088 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1089 ac_prev
=x_libraries
;;
1090 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1091 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1092 x_libraries
=$ac_optarg ;;
1094 -*) { echo "$as_me: error: unrecognized option: $ac_option
1095 Try \`$0 --help' for more information." >&2
1096 { (exit 1); exit 1; }; }
1100 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1101 # Reject names that are not valid shell variable names.
1102 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1103 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1104 { (exit 1); exit 1; }; }
1105 eval $ac_envvar=\
$ac_optarg
1106 export $ac_envvar ;;
1109 # FIXME: should be removed in autoconf 3.0.
1110 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1111 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1112 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1113 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1119 if test -n "$ac_prev"; then
1120 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1121 { echo "$as_me: error: missing argument to $ac_option" >&2
1122 { (exit 1); exit 1; }; }
1125 # Be sure to have absolute directory names.
1126 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1127 datadir sysconfdir sharedstatedir localstatedir includedir \
1128 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1129 libdir localedir mandir
1131 eval ac_val
=\$
$ac_var
1133 [\\/$
]* | ?
:[\\/]* ) continue;;
1134 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1136 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1137 { (exit 1); exit 1; }; }
1140 # There might be people who depend on the old broken behavior: `$host'
1141 # used to hold the argument of --host etc.
1142 # FIXME: To remove some day.
1145 target
=$target_alias
1147 # FIXME: To remove some day.
1148 if test "x$host_alias" != x
; then
1149 if test "x$build_alias" = x
; then
1150 cross_compiling
=maybe
1151 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1152 If a cross compiler is detected then cross compile mode will be used." >&2
1153 elif test "x$build_alias" != "x$host_alias"; then
1159 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1161 test "$silent" = yes && exec 6>/dev
/null
1164 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1165 ac_ls_di
=`ls -di .` &&
1166 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1167 { echo "$as_me: error: Working directory cannot be determined" >&2
1168 { (exit 1); exit 1; }; }
1169 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1170 { echo "$as_me: error: pwd does not report name of working directory" >&2
1171 { (exit 1); exit 1; }; }
1174 # Find the source files, if location was not specified.
1175 if test -z "$srcdir"; then
1176 ac_srcdir_defaulted
=yes
1177 # Try the directory containing this script, then the parent directory.
1178 ac_confdir
=`$as_dirname -- "$0" ||
1179 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1180 X"$0" : 'X\(//\)[^/]' \| \
1181 X"$0" : 'X\(//\)$' \| \
1182 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1184 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1202 if test ! -r "$srcdir/$ac_unique_file"; then
1206 ac_srcdir_defaulted
=no
1208 if test ! -r "$srcdir/$ac_unique_file"; then
1209 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1210 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1211 { (exit 1); exit 1; }; }
1213 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1215 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1216 { (exit 1); exit 1; }; }
1218 # When building in place, set srcdir=.
1219 if test "$ac_abs_confdir" = "$ac_pwd"; then
1222 # Remove unnecessary trailing slashes from srcdir.
1223 # Double slashes in file names in object file debugging info
1224 # mess up M-x gdb in Emacs.
1226 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1228 for ac_var
in $ac_precious_vars; do
1229 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1230 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1231 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1232 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1236 # Report the --help message.
1238 if test "$ac_init_help" = "long"; then
1239 # Omit some internal or obsolete options to make the list less imposing.
1240 # This message is too long to be a string in the A/UX 3.1 sh.
1242 \`configure' configures emacs 23.0.50 to adapt to many kinds of systems.
1244 Usage: $0 [OPTION]... [VAR=VALUE]...
1246 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1247 VAR=VALUE. See below for descriptions of some of the useful variables.
1249 Defaults for the options are specified in brackets.
1252 -h, --help display this help and exit
1253 --help=short display options specific to this package
1254 --help=recursive display the short help of all the included packages
1255 -V, --version display version information and exit
1256 -q, --quiet, --silent do not print \`checking...' messages
1257 --cache-file=FILE cache test results in FILE [disabled]
1258 -C, --config-cache alias for \`--cache-file=config.cache'
1259 -n, --no-create do not create output files
1260 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1262 Installation directories:
1263 --prefix=PREFIX install architecture-independent files in PREFIX
1264 [$ac_default_prefix]
1265 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1268 By default, \`make install' will install all the files in
1269 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1270 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1271 for instance \`--prefix=\$HOME'.
1273 For better control, use the options below.
1275 Fine tuning of the installation directories:
1276 --bindir=DIR user executables [EPREFIX/bin]
1277 --sbindir=DIR system admin executables [EPREFIX/sbin]
1278 --libexecdir=DIR program executables [EPREFIX/libexec]
1279 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1280 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1281 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1282 --libdir=DIR object code libraries [EPREFIX/lib]
1283 --includedir=DIR C header files [PREFIX/include]
1284 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1285 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1286 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1287 --infodir=DIR info documentation [DATAROOTDIR/info]
1288 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1289 --mandir=DIR man documentation [DATAROOTDIR/man]
1290 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1291 --htmldir=DIR html documentation [DOCDIR]
1292 --dvidir=DIR dvi documentation [DOCDIR]
1293 --pdfdir=DIR pdf documentation [DOCDIR]
1294 --psdir=DIR ps documentation [DOCDIR]
1300 --program-prefix=PREFIX prepend PREFIX to installed program names
1301 --program-suffix=SUFFIX append SUFFIX to installed program names
1302 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1305 --x-includes=DIR X include files are
in DIR
1306 --x-libraries=DIR X library files are
in DIR
1309 --build=BUILD configure
for building on BUILD
[guessed
]
1310 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1314 if test -n "$ac_init_help"; then
1315 case $ac_init_help in
1316 short | recursive
) echo "Configuration of emacs 23.0.50:";;
1321 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1322 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1323 --enable-carbon-app[=DIR
]
1324 specify
install directory
for Emacs.app on Mac OS X
1326 --enable-asserts compile code with asserts enabled
1327 --enable-maintainer-mode
1328 enable make rules and dependencies not useful
(and
1329 sometimes confusing
) to the casual installer
1330 --enable-locallisppath=PATH
1331 directories Emacs should search
for lisp files
1332 specific to this site
1333 --disable-largefile omit support
for large files
1336 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1337 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1338 --without-gcc don
't use GCC to compile Emacs if GCC is found
1339 --without-pop don't support POP
mail retrieval with movemail
1340 --with-kerberos support Kerberos-authenticated POP
1341 --with-kerberos5 support Kerberos version
5 authenticated POP
1342 --with-hesiod support Hesiod to get the POP server
host
1343 --without-sound don
't compile with sound support
1344 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes, lucid, athena,
1346 --with-xpm use -lXpm for displaying XPM images
1347 --with-jpeg use -ljpeg for displaying JPEG images
1348 --with-tiff use -ltiff for displaying TIFF images
1349 --with-gif use -lgif (or -lungif) for displaying GIF images
1350 --with-png use -lpng for displaying PNG images
1351 --with-gpm use -lgpm for mouse support on a GNU/Linux console
1352 --with-rsvg use -lrsvg-2 for displaying SVG images
1353 --with-gtk use GTK (same as --with-x-toolkit=gtk)
1354 --with-pkg-config-prog Path to pkg-config for finding GTK and librsvg
1355 --without-toolkit-scroll-bars
1356 don't use Motif or Xaw3d scroll bars
1357 --without-xaw3d don
't use Xaw3d
1358 --without-xim don't use X11 XIM
1359 --without-carbon don
't use Carbon GUI on Mac OS X
1360 --without-dbus don't use D-Bus
1361 --with-x use the X Window System
1363 Some influential environment variables
:
1364 CC C compiler
command
1365 CFLAGS C compiler flags
1366 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1367 nonstandard directory
<lib dir
>
1368 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1369 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1370 you have headers
in a nonstandard directory
<include dir
>
1372 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1374 Use these variables to override the choices made by
`configure' or to help
1375 it to find libraries and programs with nonstandard names/locations.
1381 if test "$ac_init_help" = "recursive"; then
1382 # If there are subdirs, report their specific --help.
1383 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1384 test -d "$ac_dir" || continue
1388 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1390 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1391 # A ".." for each directory in $ac_dir_suffix.
1392 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1393 case $ac_top_builddir_sub in
1394 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1395 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1398 ac_abs_top_builddir=$ac_pwd
1399 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1400 # for backward compatibility:
1401 ac_top_builddir=$ac_top_build_prefix
1404 .) # We are building in place.
1406 ac_top_srcdir=$ac_top_builddir_sub
1407 ac_abs_top_srcdir=$ac_pwd ;;
1408 [\\/]* | ?:[\\/]* ) # Absolute name.
1409 ac_srcdir=$srcdir$ac_dir_suffix;
1410 ac_top_srcdir=$srcdir
1411 ac_abs_top_srcdir=$srcdir ;;
1413 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1414 ac_top_srcdir=$ac_top_build_prefix$srcdir
1415 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1417 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1419 cd "$ac_dir" || { ac_status=$?; continue; }
1420 # Check for guested configure.
1421 if test -f "$ac_srcdir/configure.gnu"; then
1423 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1424 elif test -f "$ac_srcdir/configure"; then
1426 $SHELL "$ac_srcdir/configure" --help=recursive
1428 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1430 cd "$ac_pwd" || { ac_status=$?; break; }
1434 test -n "$ac_init_help" && exit $ac_status
1435 if $ac_init_version; then
1437 emacs configure 23.0.50
1438 generated by GNU Autoconf 2.61
1440 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1441 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1442 This configure script is free software; the Free Software Foundation
1443 gives unlimited permission to copy, distribute and modify it.
1447 cat >config.log <<_ACEOF
1448 This file contains any messages produced by compilers while
1449 running configure, to aid debugging if configure makes a mistake.
1451 It was created by emacs $as_me 23.0.50, which was
1452 generated by GNU Autoconf 2.61. Invocation command line was
1464 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1465 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1466 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1467 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1468 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1470 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1471 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1473 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1474 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1475 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1476 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1477 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1478 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1479 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1487 test -z "$as_dir" && as_dir=.
1488 echo "PATH: $as_dir"
1504 # Keep a trace of the command line.
1505 # Strip out --no-create and --no-recursion so they do not pile up.
1506 # Strip out --silent because we don't want to record it for future runs.
1507 # Also quote any args containing shell meta-characters.
1508 # Make two passes to allow for proper duplicate-argument suppression.
1512 ac_must_keep_next=false
1518 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1519 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1520 | -silent | --silent | --silen | --sile | --sil)
1523 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1526 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1528 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1529 if test $ac_must_keep_next = true; then
1530 ac_must_keep_next=false # Got value, back to normal.
1533 *=* | --config-cache | -C | -disable-* | --disable-* \
1534 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1535 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1536 | -with-* | --with-* | -without-* | --without-* | --x)
1537 case "$ac_configure_args0 " in
1538 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1541 -* ) ac_must_keep_next=true ;;
1544 ac_configure_args="$ac_configure_args '$ac_arg'"
1549 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1550 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1552 # When interrupted or exit'd, cleanup temporary files, and complete
1553 # config.log. We remove comments because anyway the quotes in there
1554 # would cause problems or look ugly.
1555 # WARNING: Use '\'' to represent an apostrophe within the trap.
1556 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1557 trap 'exit_status=$?
1558 # Save into config.log some information that might help in debugging.
1563 ## ---------------- ##
1564 ## Cache variables. ##
1565 ## ---------------- ##
1568 # The following way of writing the cache mishandles newlines in values,
1570 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1571 eval ac_val=\$$ac_var
1575 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1576 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1579 _ | IFS | as_nl) ;; #(
1580 *) $as_unset $ac_var ;;
1585 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1586 *${as_nl}ac_space=\ *)
1588 "s/'\''/'\''\\\\'\'''\''/g;
1589 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1592 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1600 ## ----------------- ##
1601 ## Output variables. ##
1602 ## ----------------- ##
1605 for ac_var in $ac_subst_vars
1607 eval ac_val=\$$ac_var
1609 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1611 echo "$ac_var='\''$ac_val'\''"
1615 if test -n "$ac_subst_files"; then
1617 ## ------------------- ##
1618 ## File substitutions. ##
1619 ## ------------------- ##
1622 for ac_var in $ac_subst_files
1624 eval ac_val=\$$ac_var
1626 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1628 echo "$ac_var='\''$ac_val'\''"
1633 if test -s confdefs.h; then
1643 test "$ac_signal" != 0 &&
1644 echo "$as_me: caught signal $ac_signal"
1645 echo "$as_me: exit $exit_status"
1647 rm -f core *.core core.conftest.* &&
1648 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1651 for ac_signal in 1 2 13 15; do
1652 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1656 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1657 rm -f -r conftest* confdefs.h
1659 # Predefined preprocessor variables.
1661 cat >>confdefs.h <<_ACEOF
1662 #define PACKAGE_NAME "$PACKAGE_NAME"
1666 cat >>confdefs.h <<_ACEOF
1667 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1671 cat >>confdefs.h <<_ACEOF
1672 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1676 cat >>confdefs.h <<_ACEOF
1677 #define PACKAGE_STRING "$PACKAGE_STRING"
1681 cat >>confdefs.h <<_ACEOF
1682 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1686 # Let the site file select an alternate cache file if it wants to.
1687 # Prefer explicitly selected file to automatically selected ones.
1688 if test -n "$CONFIG_SITE"; then
1689 set x "$CONFIG_SITE"
1690 elif test "x$prefix" != xNONE; then
1691 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1693 set x "$ac_default_prefix/share/config.site" \
1694 "$ac_default_prefix/etc/config.site"
1699 if test -r "$ac_site_file"; then
1700 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1701 echo "$as_me: loading site script $ac_site_file" >&6;}
1702 sed 's/^/| /' "$ac_site_file" >&5
1707 if test -r "$cache_file"; then
1708 # Some versions of bash will fail to source /dev/null (special
1709 # files actually), so we avoid doing that.
1710 if test -f "$cache_file"; then
1711 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1712 echo "$as_me: loading cache $cache_file" >&6;}
1714 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1715 *) . "./$cache_file";;
1719 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1720 echo "$as_me: creating cache $cache_file" >&6;}
1724 ac_header_list="$ac_header_list sys/time.h"
1725 ac_header_list="$ac_header_list unistd.h"
1726 ac_func_list="$ac_func_list alarm"
1727 # Check that the precious variables saved in the cache have kept the same
1729 ac_cache_corrupted=false
1730 for ac_var in $ac_precious_vars; do
1731 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1732 eval ac_new_set=\$ac_env_${ac_var}_set
1733 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1734 eval ac_new_val=\$ac_env_${ac_var}_value
1735 case $ac_old_set,$ac_new_set in
1737 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1738 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1739 ac_cache_corrupted=: ;;
1741 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1742 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1743 ac_cache_corrupted=: ;;
1746 if test "x$ac_old_val" != "x$ac_new_val"; then
1747 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1748 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1749 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1750 echo "$as_me: former value
: $ac_old_val" >&2;}
1751 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1752 echo "$as_me: current value
: $ac_new_val" >&2;}
1753 ac_cache_corrupted=:
1756 # Pass precious variables to config.status.
1757 if test "$ac_new_set" = set; then
1759 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1760 *) ac_arg=$ac_var=$ac_new_val ;;
1762 case " $ac_configure_args " in
1763 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1764 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1768 if $ac_cache_corrupted; then
1769 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1770 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1771 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1772 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1773 { (exit 1); exit 1; }; }
1801 ac_cpp='$CPP $CPPFLAGS'
1802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1807 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1810 test "$program_prefix" != NONE &&
1811 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1812 # Use a double $ so make ignores it.
1813 test "$program_suffix" != NONE &&
1814 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1815 # Double any \ or $. echo might interpret backslashes.
1816 # By default was `s
,x
,x
', remove it if useless.
1817 cat <<\_ACEOF >conftest.sed
1818 s/[\\$]/&&/g;s/;s,x,x,$//
1820 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1824 lispdir='${datadir}/emacs
/${version}/lisp
'
1825 locallisppath='${datadir}/emacs
/${version}/site-lisp
:'\
1826 '${datadir}/emacs
/site-lisp
'
1827 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim
'
1828 etcdir='${datadir}/emacs
/${version}/etc
'
1829 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1830 docdir='${datadir}/emacs
/${version}/etc
'
1831 gamedir='${localstatedir}/games
/emacs
'
1837 # Check whether --with-gcc was given.
1838 if test "${with_gcc+set}" = set; then
1844 # Check whether --with-pop was given.
1845 if test "${with_pop+set}" = set; then
1846 withval=$with_pop; if test "$withval" = yes; then
1847 cat >>confdefs.h <<\_ACEOF
1848 #define MAIL_USE_POP 1
1854 cat >>confdefs.h <<\_ACEOF
1855 #define MAIL_USE_POP 1
1863 # Check whether --with-kerberos was given.
1864 if test "${with_kerberos+set}" = set; then
1865 withval=$with_kerberos; if test "$withval" = yes; then
1866 cat >>confdefs.h <<\_ACEOF
1876 # Check whether --with-kerberos5 was given.
1877 if test "${with_kerberos5+set}" = set; then
1878 withval=$with_kerberos5; if test "${with_kerberos5+set}" = set; then
1879 if test "${with_kerberos+set}" != set; then
1881 cat >>confdefs.h <<\_ACEOF
1887 cat >>confdefs.h <<\_ACEOF
1896 # Check whether --with-hesiod was given.
1897 if test "${with_hesiod+set}" = set; then
1898 withval=$with_hesiod; if test "$withval" = yes; then
1900 cat >>confdefs.h <<\_ACEOF
1909 # Check whether --with-sound was given.
1910 if test "${with_sound+set}" = set; then
1911 withval=$with_sound;
1916 # Check whether --with-x-toolkit was given.
1917 if test "${with_x_toolkit+set}" = set; then
1918 withval=$with_x_toolkit; case "${withval}" in
1919 y | ye | yes ) val=gtk ;;
1921 l | lu | luc | luci | lucid ) val=lucid ;;
1922 a | at | ath | athe | athen | athena ) val=athena ;;
1923 m | mo | mot | moti | motif ) val=motif ;;
1924 g | gt | gtk ) val=gtk ;;
1926 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid
;
1927 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', \
`motif' or \`gtk
'.
1928 \`yes' and \
`gtk' are synonyms. \`athena
' and \`lucid' are synonyms.
" >&5
1929 echo "$as_me: error
: \
`--with-x-toolkit=$withval' is invalid;
1930 this option's value should be \`yes', \`no', \
`lucid', \`athena
', \`motif' or \
`gtk'.
1931 \`yes' and \`gtk' are synonyms. \
`athena' and \`lucid
' are synonyms." >&2;}
1932 { (exit 1); exit 1; }; }
1941 # Check whether --with-xpm was given.
1942 if test "${with_xpm+set}" = set; then
1947 # Check whether --with-jpeg was given.
1948 if test "${with_jpeg+set}" = set; then
1953 # Check whether --with-tiff was given.
1954 if test "${with_tiff+set}" = set; then
1959 # Check whether --with-gif was given.
1960 if test "${with_gif+set}" = set; then
1965 # Check whether --with-png was given.
1966 if test "${with_png+set}" = set; then
1971 # Check whether --with-gpm was given.
1972 if test "${with_gpm+set}" = set; then
1977 # Check whether --with-rsvg was given.
1978 if test "${with_rsvg+set}" = set; then
1983 # Check whether --with-gtk was given.
1984 if test "${with_gtk+set}" = set; then
1989 # Check whether --with-pkg-config-prog was given.
1990 if test "${with_pkg_config_prog+set}" = set; then
1991 withval=$with_pkg_config_prog;
1995 # Check whether --with-toolkit-scroll-bars was given.
1996 if test "${with_toolkit_scroll_bars+set}" = set; then
1997 withval=$with_toolkit_scroll_bars;
2001 # Check whether --with-xaw3d was given.
2002 if test "${with_xaw3d+set}" = set; then
2003 withval=$with_xaw3d;
2007 # Check whether --with-xim was given.
2008 if test "${with_xim+set}" = set; then
2013 # Check whether --with-carbon was given.
2014 if test "${with_carbon+set}" = set; then
2015 withval=$with_carbon;
2019 # Check whether --with-dbus was given.
2020 if test "${with_dbus+set}" = set; then
2025 # Check whether --enable-carbon-app was given.
2026 if test "${enable_carbon_app+set}" = set; then
2027 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
2031 # Check whether --enable-asserts was given.
2032 if test "${enable_asserts+set}" = set; then
2033 enableval=$enable_asserts; USE_XASSERTS=$enableval
2039 # Check whether --enable-maintainer-mode was given.
2040 if test "${enable_maintainer_mode+set}" = set; then
2041 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2043 USE_MAINTAINER_MODE=no
2046 if test $USE_MAINTAINER_MODE = yes; then
2053 # Check whether --enable-locallisppath was given.
2054 if test "${enable_locallisppath+set}" = set; then
2055 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2057 elif test "${enableval}" != "yes"; then
2058 locallisppath=${enableval}
2063 #### Make srcdir absolute, if it isn't already. It
's important to
2064 #### avoid running the path through pwd unnecessarily, since pwd can
2065 #### give you automounter prefixes, which can go away. We do all this
2066 #### so Emacs can find its files when run uninstalled.
2067 ## Make sure CDPATH doesn't affect
cd (in case PWD is relative
).
2072 ## We may be able to use the $PWD environment variable to make this
2073 ## absolute. But sometimes PWD is inaccurate.
2074 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2075 ## but that tested only for a well-formed and valid PWD,
2076 ## it did not object when PWD was well-formed and valid but just wrong.
2077 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2081 srcdir
="`(cd ${srcdir}; pwd)`"
2084 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2087 #### Check if the source directory already has a configured system in it.
2088 if test `pwd` != `(cd ${srcdir} && pwd)` \
2089 && test -f "${srcdir}/src/config.h" ; then
2090 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2091 as a build directory right now; it has been configured in its own
2092 right. To configure in another directory as well, you MUST
2093 use GNU make. If you do not have GNU make, then you must
2094 now do \`make distclean' in ${srcdir},
2095 and then run $0 again." >&5
2096 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2097 as a build directory right now; it has been configured in its own
2098 right. To configure in another directory as well, you MUST
2099 use GNU make. If you do not have GNU make, then you must
2100 now do \`make distclean' in ${srcdir},
2101 and then run $0 again." >&2;}
2104 #### Given the configuration name, set machfile and opsysfile to the
2105 #### names of the m/*.h and s/*.h files we should use.
2107 ### Canonicalize the configuration name.
2110 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2111 if test -f "$ac_dir/install-sh"; then
2113 ac_install_sh
="$ac_aux_dir/install-sh -c"
2115 elif test -f "$ac_dir/install.sh"; then
2117 ac_install_sh
="$ac_aux_dir/install.sh -c"
2119 elif test -f "$ac_dir/shtool"; then
2121 ac_install_sh
="$ac_aux_dir/shtool install -c"
2125 if test -z "$ac_aux_dir"; then
2126 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2127 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2128 { (exit 1); exit 1; }; }
2131 # These three variables are undocumented and unsupported,
2132 # and are intended to be withdrawn in a future Autoconf release.
2133 # They can cause serious problems if a builder's source tree is in a directory
2134 # whose full name contains unusual characters.
2135 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2136 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2137 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2140 # Make sure we can run config.sub.
2141 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2142 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2143 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2144 { (exit 1); exit 1; }; }
2146 { echo "$as_me:$LINENO: checking build system type" >&5
2147 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2148 if test "${ac_cv_build+set}" = set; then
2149 echo $ECHO_N "(cached) $ECHO_C" >&6
2151 ac_build_alias
=$build_alias
2152 test "x$ac_build_alias" = x
&&
2153 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2154 test "x$ac_build_alias" = x
&&
2155 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2156 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2157 { (exit 1); exit 1; }; }
2158 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2159 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2160 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2161 { (exit 1); exit 1; }; }
2164 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2165 echo "${ECHO_T}$ac_cv_build" >&6; }
2166 case $ac_cv_build in
2168 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2169 echo "$as_me: error: invalid value of canonical build" >&2;}
2170 { (exit 1); exit 1; }; };;
2173 ac_save_IFS
=$IFS; IFS
='-'
2179 # Remember, the first character of IFS is used to create $*,
2180 # except with old shells:
2183 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2186 { echo "$as_me:$LINENO: checking host system type" >&5
2187 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2188 if test "${ac_cv_host+set}" = set; then
2189 echo $ECHO_N "(cached) $ECHO_C" >&6
2191 if test "x$host_alias" = x
; then
2192 ac_cv_host
=$ac_cv_build
2194 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2195 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2196 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2197 { (exit 1); exit 1; }; }
2201 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2202 echo "${ECHO_T}$ac_cv_host" >&6; }
2205 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2206 echo "$as_me: error: invalid value of canonical host" >&2;}
2207 { (exit 1); exit 1; }; };;
2210 ac_save_IFS
=$IFS; IFS
='-'
2216 # Remember, the first character of IFS is used to create $*,
2217 # except with old shells:
2220 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2224 configuration
=${host_alias-${build_alias-$host}}
2228 ### If you add support for a new configuration, add code to this
2229 ### switch statement to recognize your configuration name and select
2230 ### the appropriate operating system and machine description files.
2232 ### You would hope that you could choose an m/*.h file pretty much
2233 ### based on the machine portion of the configuration name, and an s-
2234 ### file based on the operating system portion. However, it turns out
2235 ### that each m/*.h file is pretty manufacturer-specific - for
2236 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
2237 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
2238 ### machines. So we basically have to have a special case for each
2239 ### configuration name.
2241 ### As far as handling version numbers on operating systems is
2242 ### concerned, make sure things will fail in a fixable way. If
2243 ### /etc/MACHINES doesn't say anything about version numbers, be
2244 ### prepared to handle anything reasonably. If version numbers
2245 ### matter, be sure /etc/MACHINES says something about it.
2247 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2248 ### "System V Release 4"; he writes, "The old convention encouraged
2249 ### confusion between `system' and `release' levels'."
2251 machine
='' opsys
='' unported
=no
2252 case "${canonical}" in
2257 case "${canonical}" in
2258 alpha
*-*-freebsd*) machine
=alpha
;;
2259 ia64-
*-freebsd*) machine
=ia64
;;
2260 sparc64-
*-freebsd*) machine
=sparc
;;
2261 powerpc-
*-freebsd*) machine
=macppc
;;
2262 i
[3456]86-*-freebsd*) machine
=intel386
;;
2263 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2267 ## FreeBSD kernel + glibc based userland
2270 case "${canonical}" in
2271 alpha
*-*-kfreebsd*) machine
=alpha
;;
2272 ia64-
*-kfreebsd*) machine
=ia64
;;
2273 sparc64-
*-kfreebsd*) machine
=sparc
;;
2274 powerpc-
*-kfreebsd*) machine
=macppc
;;
2275 i
[3456]86-*-kfreebsd*) machine
=intel386
;;
2276 amd64-
*-kfreebsd*|x86_64-
*-kfreebsd*) machine
=amdx86-64
;;
2283 if test -f /usr
/lib
/crti.o
; then
2285 cat >>confdefs.h
<<\_ACEOF
2291 case "${canonical}" in
2292 alpha
*-*-netbsd*) machine
=alpha
;;
2293 i
[3456]86-*-netbsd*) machine
=intel386
;;
2295 # This is somewhat bogus.
2296 machine
=hp9000s300
;;
2297 mips-
*-netbsd*) machine
=pmax
;;
2298 mipsel-
*-netbsd*) machine
=pmax
;;
2299 mipseb-
*-netbsd*) machine
=pmax
;;
2300 ns32k-
*-netbsd*) machine
=ns32000
;;
2301 powerpc-
*-netbsd*) machine
=macppc
;;
2302 sparc
*-*-netbsd*) machine
=sparc
;;
2303 vax-
*-netbsd*) machine
=vax
;;
2304 arm-
*-netbsd*) machine
=arm
;;
2305 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2306 hppa-
*-netbsd*) machine
=hp800
;;
2307 shle-
*-netbsd*) machine
=sh3el
;;
2314 case "${canonical}" in
2315 alpha
*-*-openbsd*) machine
=alpha
;;
2316 arm-
*-openbsd*) machine
=arm
;;
2317 hppa-
*-openbsd*) machine
=hp9000s300
;;
2318 i386-
*-openbsd*) machine
=intel386
;;
2319 m68k-
*-openbsd*) machine
=hp9000s300
;;
2320 m88k-
*-openbsd*) machine
=aviion
;;
2321 mips64-
*-openbsd*) machine
=mips64
;;
2322 powerpc-
*-openbsd*) machine
=macppc
;;
2323 sh-
*-openbsd*) machine
=sh3el
;;
2324 sparc
*-*-openbsd*) machine
=sparc
;;
2325 vax-
*-openbsd*) machine
=vax
;;
2326 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2333 case "${canonical}" in
2334 i
[3456]86-*-lynxos*) machine
=intel386
;;
2335 powerpc-
*-lynxos*) machine
=powerpc
;;
2340 arm-acorn-riscix1.1
* )
2341 machine
=acorn opsys
=riscix1-1
2343 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
2344 ## This name is riscix12 instead of riscix1.2
2345 ## to avoid a file name conflict on MSDOS.
2346 machine
=acorn opsys
=riscix12
2352 case "${canonical}" in
2353 i
[345]86-*-bsdi*) machine
=intel386
;;
2354 sparc-
*-bsdi*) machine
=sparc
;;
2355 powerpc-
*-bsdi*) machine
=macppc
;;
2357 case "${canonical}" in
2358 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
2359 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
2360 *-*-bsdi2* ) opsys
=bsdos2-1
;;
2361 *-*-bsdi3* ) opsys
=bsdos3
;;
2362 *-*-bsdi[45]* ) opsys
=bsdos4
;;
2367 ## Strictly speaking, we need the version of the alliant operating
2368 ## system to choose the right machine file, but currently the
2369 ## configuration name doesn't tell us enough to choose the right
2370 ## one; we need to give alliants their own operating system name to
2371 ## do this right. When someone cares, they can help us.
2373 machine
=alliant4 opsys
=bsd4-2
2376 machine
=alliant-2800 opsys
=bsd4-3
2379 ## Alpha (DEC) machines.
2381 machine
=alpha opsys
=osf1
2382 # This is needed to find X11R6.1 libraries for certain tests.
2383 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2384 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2385 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2386 # due to non-traditional preprocessing with the current compiler
2387 # defaults. OSF 4 can also have that compiler version, and there
2388 # seems always to have been a usable /usr/bin/cpp.
2389 NON_GNU_CPP
=/usr
/bin
/cpp
2390 case "${canonical}" in
2391 alpha
*-dec-osf[5-9]*)
2396 alpha
*-*-linux-gnu* )
2397 machine
=alpha opsys
=gnu-linux
2401 machine
=arm opsys
=gnu-linux
2406 machine
=altos opsys
=usg5-2
2411 machine
=amdahl opsys
=usg5-2-2
2414 ## Apollo, Domain/OS
2416 machine
=apollo opsys
=bsd4-3
2419 ## Apple Darwin / Mac OS X
2421 case "${canonical}" in
2422 i
[3456]86-* ) machine
=intel386
;;
2423 powerpc-
* ) machine
=powermac
;;
2427 # Define CPP as follows to make autoconf work correctly.
2428 CPP
="${CC-cc} -E -no-cpp-precomp"
2429 # Use fink packages if available.
2430 if test -d /sw
/include
&& test -d /sw
/lib
; then
2431 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2432 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2433 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2437 ## AT&T 3b2, 3b5, 3b15, 3b20
2439 machine
=att3b opsys
=usg5-2-2
2442 ## AT&T 3b1 - The Mighty Unix PC!
2444 machine
=7300 opsys
=usg5-2-2
2449 machine
=ibmrs6000 opsys
=aix3-2
2454 machine
=dpx2 opsys
=usg5-3
2459 machine
=sps7 opsys
=usg5-2
2462 ## CCI 5/32, 6/32 -- see "Tahoe".
2465 ## I don't know what configuration name to use for this; config.sub
2466 ## doesn't seem to know anything about it. Hey, Celerity users, get
2467 ## in touch with us!
2468 celerity-celerity-bsd
* )
2469 machine
=celerity opsys
=bsd4-2
2473 ## What operating systems does this chip run that Emacs has been
2477 ## We'll use the catch-all code at the bottom to guess the
2478 ## operating system.
2482 mips-compaq-nonstopux
* )
2483 machine
=nonstopux opsys
=nonstopux
2487 *-convex-bsd* |
*-convex-convexos* )
2488 machine
=convex opsys
=bsd4-3
2489 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2490 NON_GNU_CPP
="cc -E -P"
2494 i
[3456]86-cubix-sysv* )
2495 machine
=intel386 opsys
=usg5-3
2499 cydra
*-cydrome-sysv* )
2500 machine
=cydra5 opsys
=usg5-3
2503 ## Data General AViiON Machines
2504 ## DG changed naming conventions with the release of 5.4.4.10, they
2505 ## dropped the initial 5.4 but left the intervening R. Because of the
2506 ## R this shouldn't conflict with older versions of the OS (which I
2507 ## think were named like dgux4.*). In addition, DG new AViiONs series
2508 ## uses either Motorola M88k or Intel Pentium CPUs.
2509 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
2510 machine
=aviion opsys
=dgux4
2512 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
2513 ## This name is dgux5-4-3 instead of dgux5-4r3
2514 ## to avoid a file name conflict on MSDOS.
2515 machine
=aviion opsys
=dgux5-4-3
2517 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
2518 machine
=aviion opsys
=dgux5-4r2
2521 machine
=aviion opsys
=dgux
2524 ## Data General AViiON Intel (x86) Machines
2525 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2526 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2527 i
[345]86-dg-dguxR4* )
2528 machine
=aviion-intel opsys
=dgux4
2532 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
2533 machine
=pmax opsys
=bsd4-2
2535 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
2536 machine
=pmax opsys
=bsd4-3
2539 machine
=pmax opsys
=ultrix4-3
2542 machine
=pmax opsys
=osf1
2544 mips-dec-mach_bsd4.3
* )
2545 machine
=pmax opsys
=mach-bsd4-3
2548 ## Motorola Delta machines
2549 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
2550 machine
=delta opsys
=usg5-3
2551 if test -z "`type gnucc | grep 'not found'`"
2553 if test -s /etc
/167config
2554 then CC
="gnucc -m68040"
2555 else CC
="gnucc -m68881"
2558 if test -z "`type gcc | grep 'not found'`"
2564 m88k-motorola-sysv4
* )
2565 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2566 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2567 # I hope there are not other 4.0 versions for this machine
2568 # which really need usg5-4 instead.
2569 machine
=delta88k opsys
=usg5-4-2
2571 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
2572 machine
=delta88k opsys
=usg5-3
2577 machine
=dual opsys
=usg5-2
2579 m68
*-dual-uniplus* )
2580 machine
=dual opsys
=unipl5-2
2585 machine
=elxsi opsys
=usg5-2
2590 machine
=ns16000 opsys
=umax
2593 ## The GEC 63 - apparently, this port isn't really finished yet.
2594 # I'm sure we finished off the last of the machines, though. -- fx
2596 ## Gould Power Node and NP1
2598 machine
=gould opsys
=bsd4-2
2601 machine
=gould opsys
=bsd4-3
2604 machine
=gould-np1 opsys
=bsd4-3
2607 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2608 ## as far as Emacs is concerned).
2610 # Build needs to be different on 7.0 and later releases
2611 case "`uname -r`" in
2612 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
2613 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
2615 NON_GNU_CPP
="/lib/cpp"
2617 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2619 machine
=nh3000 opsys
=cxux
2621 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2622 powerpc-harris-powerunix
)
2623 machine
=nh6000 opsys
=powerunix
2624 NON_GNU_CPP
="cc -Xo -E -P"
2626 ## SR2001/SR2201 running HI-UX/MPP
2627 hppa1.1
-hitachi-hiuxmpp* )
2628 machine
=sr2k opsys
=hiuxmpp
2630 hppa1.1
-hitachi-hiuxwe2* )
2631 machine
=sr2k opsys
=hiuxwe2
2634 xps
*-honeywell-sysv* )
2635 machine
=xps100 opsys
=usg5-2
2638 ## HP 9000 series 200 or 300
2640 machine
=hp9000s300 opsys
=bsd4-3
2642 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2644 case "`uname -r`" in
2645 ## Someone's system reports A.B8.05 for this.
2646 ## I wonder what other possibilities there are.
2647 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2648 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2649 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2650 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2651 *) machine
=hp9000s300 opsys
=hpux
;;
2655 ## HP 9000 series 700 and 800, running HP/UX
2657 machine
=hp800 opsys
=hpux
2660 machine
=hp800 opsys
=hpux8
2662 hppa
*-hp-hpux9shr* )
2663 machine
=hp800 opsys
=hpux9shr
2666 machine
=hp800 opsys
=hpux9
2668 hppa
*-hp-hpux10.2
* )
2669 machine
=hp800 opsys
=hpux10-20
2672 machine
=hp800 opsys
=hpux10
2674 hppa
*-hp-hpux1[1-9]* )
2675 machine
=hp800 opsys
=hpux11
2676 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2679 hppa
*-*-linux-gnu* )
2680 machine
=hp800 opsys
=gnu-linux
2683 ## HP 9000 series 700 and 800, running HP/UX
2685 ## Cross-compilation? Nah!
2686 case "`uname -r`" in
2687 ## Someone's system reports A.B8.05 for this.
2688 ## I wonder what other possibilities there are.
2689 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2690 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2691 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2692 *) machine
=hp800 opsys
=hpux10
;;
2696 machine
=hp800 opsys
=nextstep
2701 machine
=orion opsys
=bsd4-2
2703 clipper-orion-bsd
* )
2704 machine
=orion105 opsys
=bsd4-2
2708 i
[3456]86-ibm-aix1.1
* )
2709 machine
=ibmps2-aix opsys
=usg5-2-2
2711 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2712 machine
=ibmps2-aix opsys
=usg5-3
2715 machine
=ibm370aix opsys
=usg5-3
2718 machine
=ibms390 opsys
=gnu-linux
2720 s390x-
*-linux-gnu* )
2721 machine
=ibms390x opsys
=gnu-linux
2723 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2724 machine
=ibmrs6000 opsys
=aix3-1
2726 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2727 machine
=ibmrs6000 opsys
=aix3-2-5
2729 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2730 machine
=ibmrs6000 opsys
=aix4-1
2732 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2733 machine
=ibmrs6000 opsys
=aix4-2
2735 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
2736 machine
=ibmrs6000 opsys
=aix4-2
2738 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2739 machine
=ibmrs6000 opsys
=aix4-2
2741 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2742 machine
=ibmrs6000 opsys
=aix4
2744 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2745 machine
=ibmrs6000 opsys
=aix4-1
2747 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2748 machine
=ibmrs6000 opsys
=aix3-2
2751 machine
=ibmrt opsys
=bsd4-3
2754 machine
=ibmrt opsys
=bsd4-2
2757 machine
=ibmrt opsys
=bsd4-3
2760 machine
=ibmrt opsys
=bsd4-2
2763 machine
=ibmrt opsys
=bsd4-3
2766 machine
=ibmrt opsys
=bsd4-3
2769 machine
=ibmrt-aix opsys
=usg5-2-2
2772 ## Integrated Solutions `Optimum V'
2774 machine
=isi-ov opsys
=bsd4-2
2777 machine
=isi-ov opsys
=bsd4-3
2780 ## Intel 386 machines where we do care about the manufacturer
2781 i
[3456]86-intsys-sysv* )
2782 machine
=is386 opsys
=usg5-2-2
2786 i
[3456]86-prime-sysv* )
2787 machine
=i386 opsys
=usg5-3
2790 ## Sequent Symmetry running Dynix
2791 i
[3456]86-sequent-bsd* )
2792 machine
=symmetry opsys
=bsd4-3
2795 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2796 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2797 machine
=sequent-ptx opsys
=ptx4
2798 NON_GNU_CPP
=/lib
/cpp
2801 ## Sequent Symmetry running DYNIX/ptx
2802 ## Use the old cpp rather than the newer ANSI one.
2803 i
[3456]86-sequent-ptx* )
2804 machine
=sequent-ptx opsys
=ptx
2805 NON_GNU_CPP
="/lib/cpp"
2808 ## ncr machine running svr4.3.
2809 i
[3456]86-ncr-sysv4.3
)
2810 machine
=ncr386 opsys
=usg5-4-3
2813 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2814 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2815 i
[3456]86-ncr-sysv* )
2816 machine
=ncr386 opsys
=usg5-4-2
2819 ## Intel Paragon OSF/1
2821 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2826 machine
=i860 opsys
=usg5-4
2827 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2828 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2831 ## Macintosh PowerPC
2832 powerpc
*-*-linux-gnu* )
2833 machine
=macppc opsys
=gnu-linux
2836 ## Masscomp machines
2837 m68
*-masscomp-rtu* )
2838 machine
=masscomp opsys
=rtu
2841 ## Megatest machines
2842 m68
*-megatest-bsd* )
2843 machine
=mega68 opsys
=bsd4-2
2846 ## Workstations sold by MIPS
2847 ## This is not necessarily all workstations using the MIPS processor -
2848 ## Irises are produced by SGI, and DECstations by DEC.
2850 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2851 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2852 ## it gives for choosing between the alternatives seems to be "Use
2853 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2854 ## the BSD world." I'll assume that these are instructions for
2855 ## handling two odd situations, and that every other situation
2856 ## should use mips.h and usg5-2-2, they being listed first.
2859 ## Fall through to the general code at the bottom to decide on the OS.
2861 mips-mips-riscos4
* )
2862 machine
=mips4 opsys
=bsd4-3
2863 NON_GNU_CC
="cc -systype bsd43"
2864 NON_GNU_CPP
="cc -systype bsd43 -E"
2866 mips-mips-riscos5
* )
2867 machine
=mips4 opsys
=riscos5
2868 NON_GNU_CC
="cc -systype bsd43"
2869 NON_GNU_CPP
="cc -systype bsd43 -E"
2872 machine
=mips opsys
=bsd4-3
2875 machine
=mips opsys
=usg5-2-2
2879 m68
*-next-* | m68k-
*-nextstep* )
2880 machine
=m68k opsys
=nextstep
2883 ## The complete machine from National Semiconductor
2885 machine
=ns32000 opsys
=usg5-2
2889 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2890 machine
=tower32 opsys
=usg5-2-2
2892 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2893 machine
=tower32v3 opsys
=usg5-3
2898 machine
=ews4800 opsys
=ux4800
2901 ## Nixdorf Targon 31
2902 m68
*-nixdorf-sysv* )
2903 machine
=targon31 opsys
=usg5-2-2
2908 machine
=nu opsys
=usg5-2
2913 machine
=plexus opsys
=usg5-2
2917 ## I don't really have any idea what sort of processor the Pyramid has,
2918 ## so I'm assuming it is its own architecture.
2919 pyramid-pyramid-bsd
* )
2920 machine
=pyramid opsys
=bsd4-2
2924 ns32k-sequent-bsd4.2
* )
2925 machine
=sequent opsys
=bsd4-2
2927 ns32k-sequent-bsd4.3
* )
2928 machine
=sequent opsys
=bsd4-3
2932 mips-siemens-sysv
* | mips-sni-sysv
*)
2933 machine
=mips-siemens opsys
=usg5-4
2934 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2935 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2938 ## Silicon Graphics machines
2939 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2941 machine
=irist opsys
=iris3-5
2943 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2944 machine
=irist opsys
=iris3-6
2948 machine
=iris4d opsys
=irix3-3
2951 machine
=iris4d opsys
=irix4-0
2954 machine
=iris4d opsys
=irix6-5
2955 # Without defining _LANGUAGE_C, things get masked out in the headers
2956 # so that, for instance, grepping for `free' in stdlib.h fails and
2957 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2958 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2959 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2962 machine
=iris4d opsys
=irix6-0
2963 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2964 # but presumably it does no harm.
2965 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2966 # -32 probably isn't necessary in later v.6s -- anyone know which?
2967 NON_GCC_TEST_OPTIONS
=-32
2969 mips-sgi-irix5.
[01]* )
2970 machine
=iris4d opsys
=irix5-0
2972 mips-sgi-irix5
* | mips-sgi-irix
* )
2973 machine
=iris4d opsys
=irix5-2
2978 machine
=news opsys
=bsd4-2
2981 machine
=news opsys
=bsd4-3
2983 m68
*-sony-newsos3* | m68
*-sony-news3*)
2984 machine
=news opsys
=bsd4-3
2986 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2987 machine
=news-risc opsys
=bsd4-3
2989 mips-sony-newsos6
* )
2990 machine
=news-r6 opsys
=newsos6
2993 machine
=news-risc opsys
=newsos5
2998 machine
=stride opsys
=usg5-2
3002 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
3003 machine
=sparc opsys
=gnu-linux
3006 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
3007 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
3008 | rs6000-
*-solaris2*)
3009 case "${canonical}" in
3010 m68
*-sunos1* ) machine
=sun1
;;
3011 m68
*-sunos2* ) machine
=sun2
;;
3012 m68
* ) machine
=sun3
;;
3013 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
3014 i
[3456]86-*-* ) machine
=intel386
;;
3015 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
3016 powerpcle
* ) machine
=powerpcle
;;
3017 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
3018 sparc
* ) machine
=sparc
;;
3021 case "${canonical}" in
3022 ## The Sun386 didn't get past 4.0.
3023 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
3024 *-sunos4.0
* ) opsys
=sunos4-0
;;
3025 *-sunos4.1.
[3-9]*noshare
)
3026 ## This name is sunos413 instead of sunos4-1-3
3027 ## to avoid a file name conflict on MSDOS.
3029 NON_GNU_CPP
=/usr
/lib
/cpp
3030 NON_GCC_TEST_OPTIONS
=-Bstatic
3031 GCC_TEST_OPTIONS
=-static
3033 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
3035 NON_GNU_CPP
=/usr
/lib
/cpp
3037 *-sunos4* |
*-sunos )
3039 NON_GCC_TEST_OPTIONS
=-Bstatic
3040 GCC_TEST_OPTIONS
=-static
3042 *-sunos5.3
* |
*-solaris2.3
* )
3044 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3046 *-sunos5.4
* |
*-solaris2.4
* )
3048 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3051 *-sunos5.5
* |
*-solaris2.5
* )
3053 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3056 *-sunos5.6
* |
*-solaris2.6
* )
3058 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3061 *-sunos5* |
*-solaris* )
3063 emacs_check_sunpro_c
=yes
3064 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3068 ## Watch out for a compiler that we know will not work.
3069 case "${canonical}" in
3070 *-solaris* |
*-sunos5* )
3071 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
3072 ## /usr/ucb/cc doesn't work;
3073 ## we should find some other compiler that does work.
3081 machine
=sparc opsys
=nextstep
3085 m68
*-tadpole-sysv* )
3086 machine
=tad68k opsys
=usg5-3
3090 tahoe-tahoe-bsd4.2
* )
3091 machine
=tahoe opsys
=bsd4-2
3093 tahoe-tahoe-bsd4.3
* )
3094 machine
=tahoe opsys
=bsd4-3
3097 ## Tandem Integrity S2
3099 machine
=tandem-s2 opsys
=usg5-3
3103 m88k-tektronix-sysv3
* )
3104 machine
=tekxd88 opsys
=usg5-3
3107 ## Tektronix 16000 box (6130?)
3108 ns16k-tektronix-bsd
* )
3109 machine
=ns16000 opsys
=bsd4-2
3112 ## src/m/tek4300.h hints that this is a m68k machine.
3113 m68
*-tektronix-bsd* )
3114 machine
=tek4300 opsys
=bsd4-3
3118 ## We seem to have lost the machine-description file titan.h!
3120 machine
=titan opsys
=usg5-3
3123 ## Ustation E30 (SS5E)
3124 m68
*-unisys-uniplus* )
3125 machine
=ustation opsystem
=unipl5-2
3131 case "${canonical}" in
3132 *-bsd4.1
* ) opsys
=bsd4-1
;;
3133 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
3134 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
3135 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
3136 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
3137 *-vms* ) opsys
=vms
;;
3143 ns16k-whitechapel-
* )
3145 ## We don't know what sort of OS runs on these; we'll let the
3146 ## operating system guessing code below try.
3151 machine
=wicat opsys
=usg5-2
3156 machine
=ia64 opsys
=gnu-linux
3159 ## Intel 386 machines where we don't care about the manufacturer
3162 case "${canonical}" in
3163 *-cygwin ) opsys
=cygwin
;;
3164 *-darwin* ) opsys
=darwin
3165 CPP
="${CC-cc} -E -no-cpp-precomp"
3167 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
3168 *-isc2.2
* ) opsys
=isc2-2
;;
3169 *-isc4.0
* ) opsys
=isc4-0
;;
3170 *-isc4.
* ) opsys
=isc4-1
3171 GCC_TEST_OPTIONS
=-posix
3172 NON_GCC_TEST_OPTIONS
=-Xp
3174 *-isc* ) opsys
=isc3-0
;;
3175 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
3176 *-esix* ) opsys
=esix
;;
3177 *-xenix* ) opsys
=xenix
;;
3178 *-linux-gnu* ) opsys
=gnu-linux
;;
3179 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
3180 *-sco3.2v5
* ) opsys
=sco5
3181 NON_GNU_CPP
=/lib
/cpp
3182 # Prevent -belf from being passed to $CPP.
3183 # /lib/cpp does not accept it.
3184 OVERRIDE_CPPFLAGS
=" "
3186 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3187 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3188 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3189 *-386bsd* ) opsys
=386bsd
;;
3190 *-nextstep* ) opsys
=nextstep
;;
3191 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3195 ## m68k Linux-based GNU system
3197 machine
=m68k opsys
=gnu-linux
3200 ## Mips Linux-based GNU system
3201 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
3202 machine
=mips opsys
=gnu-linux
3206 sparc-fujitsu-sysv4
* )
3207 machine
=sparc opsys
=uxpds
3208 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3213 f301-fujitsu-uxpv4.1
)
3214 machine
=f301 opsys
=uxpv
3217 ## AMD x86-64 Linux-based GNU system
3218 x86_64-
*-linux-gnu* )
3219 machine
=amdx86-64 opsys
=gnu-linux
3222 ## Tensilica Xtensa Linux-based GNU system
3223 xtensa-
*-linux-gnu* )
3224 machine
=xtensa opsys
=gnu-linux
3232 ### If the code above didn't choose an operating system, just choose
3233 ### an operating system based on the configuration name. You really
3234 ### only want to use this when you have no idea what the right
3235 ### operating system is; if you know what operating systems a machine
3236 ### runs, it's cleaner to make it explicit in the case statement
3238 if test x
"${opsys}" = x
; then
3239 case "${canonical}" in
3240 *-gnu* ) opsys
=gnu
;;
3241 *-bsd4.
[01] ) opsys
=bsd4-1
;;
3242 *-bsd4.2
) opsys
=bsd4-2
;;
3243 *-bsd4.3
) opsys
=bsd4-3
;;
3244 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
3245 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
3246 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
3247 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
3248 *-sysv4.2uw
* ) opsys
=unixware
;;
3249 *-sysv5uw* ) opsys
=unixware
;;
3250 *-sysv5OpenUNIX* ) opsys
=unixware
;;
3251 *-sysv4.1
* |
*-sysvr4.1
* )
3252 NON_GNU_CPP
=/usr
/lib
/cpp
3254 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
3255 if [ x
$NON_GNU_CPP = x
]; then
3256 if [ -f /usr
/ccs
/lib
/cpp
]; then
3257 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3259 NON_GNU_CPP
=/lib
/cpp
3263 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
3272 if test $unported = yes; then
3273 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3274 Check \`etc/MACHINES' for recognized configuration names." >&5
3275 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3276 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3277 { (exit 1); exit 1; }; }
3280 machfile
="m/${machine}.h"
3281 opsysfile
="s/${opsys}.h"
3284 #### Choose a compiler.
3285 test -n "$CC" && cc_specified
=yes
3287 # Save the value of CFLAGS that the user specified.
3288 SPECIFIED_CFLAGS
="$CFLAGS"
3291 "yes" ) CC
="gcc" GCC
=yes ;;
3292 "no" ) : ${CC=cc} ;;
3296 ac_cpp
='$CPP $CPPFLAGS'
3297 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3298 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3299 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3300 if test -n "$ac_tool_prefix"; then
3301 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3302 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3303 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3305 if test "${ac_cv_prog_CC+set}" = set; then
3306 echo $ECHO_N "(cached) $ECHO_C" >&6
3308 if test -n "$CC"; then
3309 ac_cv_prog_CC
="$CC" # Let the user override the test.
3311 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3315 test -z "$as_dir" && as_dir
=.
3316 for ac_exec_ext
in '' $ac_executable_extensions; do
3317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3318 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3329 if test -n "$CC"; then
3330 { echo "$as_me:$LINENO: result: $CC" >&5
3331 echo "${ECHO_T}$CC" >&6; }
3333 { echo "$as_me:$LINENO: result: no" >&5
3334 echo "${ECHO_T}no" >&6; }
3339 if test -z "$ac_cv_prog_CC"; then
3341 # Extract the first word of "gcc", so it can be a program name with args.
3342 set dummy gcc
; ac_word
=$2
3343 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3345 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3346 echo $ECHO_N "(cached) $ECHO_C" >&6
3348 if test -n "$ac_ct_CC"; then
3349 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3351 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3355 test -z "$as_dir" && as_dir
=.
3356 for ac_exec_ext
in '' $ac_executable_extensions; do
3357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3358 ac_cv_prog_ac_ct_CC
="gcc"
3359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3368 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3369 if test -n "$ac_ct_CC"; then
3370 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3371 echo "${ECHO_T}$ac_ct_CC" >&6; }
3373 { echo "$as_me:$LINENO: result: no" >&5
3374 echo "${ECHO_T}no" >&6; }
3377 if test "x$ac_ct_CC" = x
; then
3380 case $cross_compiling:$ac_tool_warned in
3382 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3383 whose name does not start with the host triplet. If you think this
3384 configuration is useful to you, please write to autoconf@gnu.org." >&5
3385 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3386 whose name does not start with the host triplet. If you think this
3387 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3388 ac_tool_warned
=yes ;;
3396 if test -z "$CC"; then
3397 if test -n "$ac_tool_prefix"; then
3398 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3399 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3400 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3402 if test "${ac_cv_prog_CC+set}" = set; then
3403 echo $ECHO_N "(cached) $ECHO_C" >&6
3405 if test -n "$CC"; then
3406 ac_cv_prog_CC
="$CC" # Let the user override the test.
3408 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3412 test -z "$as_dir" && as_dir
=.
3413 for ac_exec_ext
in '' $ac_executable_extensions; do
3414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3415 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3426 if test -n "$CC"; then
3427 { echo "$as_me:$LINENO: result: $CC" >&5
3428 echo "${ECHO_T}$CC" >&6; }
3430 { echo "$as_me:$LINENO: result: no" >&5
3431 echo "${ECHO_T}no" >&6; }
3437 if test -z "$CC"; then
3438 # Extract the first word of "cc", so it can be a program name with args.
3439 set dummy cc
; ac_word
=$2
3440 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3442 if test "${ac_cv_prog_CC+set}" = set; then
3443 echo $ECHO_N "(cached) $ECHO_C" >&6
3445 if test -n "$CC"; then
3446 ac_cv_prog_CC
="$CC" # Let the user override the test.
3449 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3453 test -z "$as_dir" && as_dir
=.
3454 for ac_exec_ext
in '' $ac_executable_extensions; do
3455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3456 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3457 ac_prog_rejected
=yes
3461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3468 if test $ac_prog_rejected = yes; then
3469 # We found a bogon in the path, so make sure we never use it.
3470 set dummy
$ac_cv_prog_CC
3472 if test $# != 0; then
3473 # We chose a different compiler from the bogus one.
3474 # However, it has the same basename, so the bogon will be chosen
3475 # first if we set CC to just the basename; use the full file name.
3477 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3483 if test -n "$CC"; then
3484 { echo "$as_me:$LINENO: result: $CC" >&5
3485 echo "${ECHO_T}$CC" >&6; }
3487 { echo "$as_me:$LINENO: result: no" >&5
3488 echo "${ECHO_T}no" >&6; }
3493 if test -z "$CC"; then
3494 if test -n "$ac_tool_prefix"; then
3495 for ac_prog
in cl.exe
3497 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3498 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3499 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3501 if test "${ac_cv_prog_CC+set}" = set; then
3502 echo $ECHO_N "(cached) $ECHO_C" >&6
3504 if test -n "$CC"; then
3505 ac_cv_prog_CC
="$CC" # Let the user override the test.
3507 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3511 test -z "$as_dir" && as_dir
=.
3512 for ac_exec_ext
in '' $ac_executable_extensions; do
3513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3514 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3525 if test -n "$CC"; then
3526 { echo "$as_me:$LINENO: result: $CC" >&5
3527 echo "${ECHO_T}$CC" >&6; }
3529 { echo "$as_me:$LINENO: result: no" >&5
3530 echo "${ECHO_T}no" >&6; }
3534 test -n "$CC" && break
3537 if test -z "$CC"; then
3539 for ac_prog
in cl.exe
3541 # Extract the first word of "$ac_prog", so it can be a program name with args.
3542 set dummy
$ac_prog; ac_word
=$2
3543 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3545 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3546 echo $ECHO_N "(cached) $ECHO_C" >&6
3548 if test -n "$ac_ct_CC"; then
3549 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3551 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3555 test -z "$as_dir" && as_dir
=.
3556 for ac_exec_ext
in '' $ac_executable_extensions; do
3557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3558 ac_cv_prog_ac_ct_CC
="$ac_prog"
3559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3568 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3569 if test -n "$ac_ct_CC"; then
3570 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3571 echo "${ECHO_T}$ac_ct_CC" >&6; }
3573 { echo "$as_me:$LINENO: result: no" >&5
3574 echo "${ECHO_T}no" >&6; }
3578 test -n "$ac_ct_CC" && break
3581 if test "x$ac_ct_CC" = x
; then
3584 case $cross_compiling:$ac_tool_warned in
3586 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3587 whose name does not start with the host triplet. If you think this
3588 configuration is useful to you, please write to autoconf@gnu.org." >&5
3589 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3590 whose name does not start with the host triplet. If you think this
3591 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3592 ac_tool_warned
=yes ;;
3601 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3602 See \`config.log' for more details." >&5
3603 echo "$as_me: error: no acceptable C compiler found in \$PATH
3604 See \`config.log' for more details." >&2;}
3605 { (exit 1); exit 1; }; }
3607 # Provide some information about the compiler.
3608 echo "$as_me:$LINENO: checking for C compiler version" >&5
3609 ac_compiler
=`set X $ac_compile; echo $2`
3610 { (ac_try
="$ac_compiler --version >&5"
3612 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3613 *) ac_try_echo=$ac_try;;
3615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3616 (eval "$ac_compiler --version >&5") 2>&5
3618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619 (exit $ac_status); }
3620 { (ac_try="$ac_compiler -v >&5"
3622 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3623 *) ac_try_echo
=$ac_try;;
3625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3626 (eval "$ac_compiler -v >&5") 2>&5
3628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629 (exit $ac_status); }
3630 { (ac_try
="$ac_compiler -V >&5"
3632 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3633 *) ac_try_echo=$ac_try;;
3635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3636 (eval "$ac_compiler -V >&5") 2>&5
3638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3639 (exit $ac_status); }
3641 cat >conftest.$ac_ext <<_ACEOF
3644 cat confdefs.h >>conftest.$ac_ext
3645 cat >>conftest.$ac_ext <<_ACEOF
3646 /* end confdefs.h. */
3656 ac_clean_files_save=$ac_clean_files
3657 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3658 # Try to create an executable without -o first, disregard a.out.
3659 # It will help us diagnose broken compilers, and finding out an intuition
3661 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3662 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3663 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3665 # List of possible output files, starting from the most likely.
3666 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
3667 # only as a last resort. b.out is created by i960 compilers.
3668 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
3670 # The IRIX 6 linker writes into existing files which may not be
3671 # executable, retaining their permissions. Remove them first so a
3672 # subsequent execution test works.
3674 for ac_file in $ac_files
3677 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3678 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3683 if { (ac_try="$ac_link_default"
3685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3686 *) ac_try_echo=$ac_try;;
3688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3689 (eval "$ac_link_default") 2>&5
3691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692 (exit $ac_status); }; then
3693 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3694 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3695 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3696 # so that the user can short-circuit this test for compilers unknown to
3698 for ac_file
in $ac_files ''
3700 test -f "$ac_file" ||
continue
3702 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
3705 # We found the default executable, but exeext='' is most
3709 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3711 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3713 # We set ac_cv_exeext here because the later test for it is not
3714 # safe: cross compilers may not add the suffix if given an `-o'
3715 # argument, so we may need to know it at that point already.
3716 # Even if this section looks crufty: it has the advantage of
3723 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3729 { echo "$as_me:$LINENO: result: $ac_file" >&5
3730 echo "${ECHO_T}$ac_file" >&6; }
3731 if test -z "$ac_file"; then
3732 echo "$as_me: failed program was:" >&5
3733 sed 's/^/| /' conftest.
$ac_ext >&5
3735 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3736 See \`config.log' for more details." >&5
3737 echo "$as_me: error: C compiler cannot create executables
3738 See \`config.log' for more details." >&2;}
3739 { (exit 77); exit 77; }; }
3742 ac_exeext
=$ac_cv_exeext
3744 # Check that the compiler produces executables we can run. If not, either
3745 # the compiler is broken, or we cross compile.
3746 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3747 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3748 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3749 # If not cross compiling, check that we can run a simple program.
3750 if test "$cross_compiling" != yes; then
3751 if { ac_try
='./$ac_file'
3752 { (case "(($ac_try" in
3753 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3754 *) ac_try_echo=$ac_try;;
3756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3757 (eval "$ac_try") 2>&5
3759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3760 (exit $ac_status); }; }; then
3763 if test "$cross_compiling" = maybe; then
3766 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3767 If you meant to cross compile, use \`--host'.
3768 See \`config.log' for more details.
" >&5
3769 echo "$as_me: error
: cannot run C compiled programs.
3770 If you meant to cross compile
, use \
`--host'.
3771 See \`config.log
' for more details." >&2;}
3772 { (exit 1); exit 1; }; }
3776 { echo "$as_me:$LINENO: result: yes" >&5
3777 echo "${ECHO_T}yes" >&6; }
3779 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3780 ac_clean_files=$ac_clean_files_save
3781 # Check that the compiler produces executables we can run. If not, either
3782 # the compiler is broken, or we cross compile.
3783 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3784 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3785 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3786 echo "${ECHO_T}$cross_compiling" >&6; }
3788 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3789 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3790 if { (ac_try="$ac_link"
3792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3793 *) ac_try_echo=$ac_try;;
3795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3796 (eval "$ac_link") 2>&5
3798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799 (exit $ac_status); }; then
3800 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3801 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3802 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3804 for ac_file
in conftest.exe conftest conftest.
*; do
3805 test -f "$ac_file" ||
continue
3807 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
3808 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3814 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3815 See \`config.log' for more details." >&5
3816 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3817 See \`config.log' for more details." >&2;}
3818 { (exit 1); exit 1; }; }
3821 rm -f conftest
$ac_cv_exeext
3822 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3823 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3825 rm -f conftest.
$ac_ext
3826 EXEEXT
=$ac_cv_exeext
3828 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3829 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3830 if test "${ac_cv_objext+set}" = set; then
3831 echo $ECHO_N "(cached) $ECHO_C" >&6
3833 cat >conftest.
$ac_ext <<_ACEOF
3836 cat confdefs.h
>>conftest.
$ac_ext
3837 cat >>conftest.
$ac_ext <<_ACEOF
3838 /* end confdefs.h. */
3848 rm -f conftest.o conftest.obj
3849 if { (ac_try
="$ac_compile"
3851 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3852 *) ac_try_echo=$ac_try;;
3854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3855 (eval "$ac_compile") 2>&5
3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858 (exit $ac_status); }; then
3859 for ac_file in conftest.o conftest.obj conftest.*; do
3860 test -f "$ac_file" || continue;
3862 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3863 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3868 echo "$as_me: failed program was:" >&5
3869 sed 's/^/| /' conftest.$ac_ext >&5
3871 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3872 See \`config.log
' for more details." >&5
3873 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3874 See \`config.log' for more details.
" >&2;}
3875 { (exit 1); exit 1; }; }
3878 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3880 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3881 echo "${ECHO_T}$ac_cv_objext" >&6; }
3882 OBJEXT=$ac_cv_objext
3884 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3885 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3886 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3887 echo $ECHO_N "(cached
) $ECHO_C" >&6
3889 cat >conftest.$ac_ext <<_ACEOF
3892 cat confdefs.h >>conftest.$ac_ext
3893 cat >>conftest.$ac_ext <<_ACEOF
3894 /* end confdefs.h. */
3907 rm -f conftest.$ac_objext
3908 if { (ac_try="$ac_compile"
3910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3911 *) ac_try_echo=$ac_try;;
3913 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3914 (eval "$ac_compile") 2>conftest.er1
3916 grep -v '^ *+' conftest.er1 >conftest.err
3918 cat conftest.err >&5
3919 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3920 (exit $ac_status); } && {
3921 test -z "$ac_c_werror_flag" ||
3922 test ! -s conftest.err
3923 } && test -s conftest.$ac_objext; then
3926 echo "$as_me: failed program was
:" >&5
3927 sed 's/^/| /' conftest.$ac_ext >&5
3932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3933 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3936 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3937 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3938 GCC=`test $ac_compiler_gnu = yes && echo yes`
3939 ac_test_CFLAGS=${CFLAGS+set}
3940 ac_save_CFLAGS=$CFLAGS
3941 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3942 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3943 if test "${ac_cv_prog_cc_g+set}" = set; then
3944 echo $ECHO_N "(cached
) $ECHO_C" >&6
3946 ac_save_c_werror_flag=$ac_c_werror_flag
3947 ac_c_werror_flag=yes
3950 cat >conftest.$ac_ext <<_ACEOF
3953 cat confdefs.h >>conftest.$ac_ext
3954 cat >>conftest.$ac_ext <<_ACEOF
3955 /* end confdefs.h. */
3965 rm -f conftest.$ac_objext
3966 if { (ac_try="$ac_compile"
3968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3969 *) ac_try_echo=$ac_try;;
3971 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3972 (eval "$ac_compile") 2>conftest.er1
3974 grep -v '^ *+' conftest.er1 >conftest.err
3976 cat conftest.err >&5
3977 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3978 (exit $ac_status); } && {
3979 test -z "$ac_c_werror_flag" ||
3980 test ! -s conftest.err
3981 } && test -s conftest.$ac_objext; then
3984 echo "$as_me: failed program was
:" >&5
3985 sed 's/^/| /' conftest.$ac_ext >&5
3988 cat >conftest.$ac_ext <<_ACEOF
3991 cat confdefs.h >>conftest.$ac_ext
3992 cat >>conftest.$ac_ext <<_ACEOF
3993 /* end confdefs.h. */
4003 rm -f conftest.$ac_objext
4004 if { (ac_try="$ac_compile"
4006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4007 *) ac_try_echo=$ac_try;;
4009 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4010 (eval "$ac_compile") 2>conftest.er1
4012 grep -v '^ *+' conftest.er1 >conftest.err
4014 cat conftest.err >&5
4015 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4016 (exit $ac_status); } && {
4017 test -z "$ac_c_werror_flag" ||
4018 test ! -s conftest.err
4019 } && test -s conftest.$ac_objext; then
4022 echo "$as_me: failed program was
:" >&5
4023 sed 's/^/| /' conftest.$ac_ext >&5
4025 ac_c_werror_flag=$ac_save_c_werror_flag
4027 cat >conftest.$ac_ext <<_ACEOF
4030 cat confdefs.h >>conftest.$ac_ext
4031 cat >>conftest.$ac_ext <<_ACEOF
4032 /* end confdefs.h. */
4042 rm -f conftest.$ac_objext
4043 if { (ac_try="$ac_compile"
4045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4046 *) ac_try_echo=$ac_try;;
4048 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4049 (eval "$ac_compile") 2>conftest.er1
4051 grep -v '^ *+' conftest.er1 >conftest.err
4053 cat conftest.err >&5
4054 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4055 (exit $ac_status); } && {
4056 test -z "$ac_c_werror_flag" ||
4057 test ! -s conftest.err
4058 } && test -s conftest.$ac_objext; then
4061 echo "$as_me: failed program was
:" >&5
4062 sed 's/^/| /' conftest.$ac_ext >&5
4067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4074 ac_c_werror_flag=$ac_save_c_werror_flag
4076 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
4077 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4078 if test "$ac_test_CFLAGS" = set; then
4079 CFLAGS=$ac_save_CFLAGS
4080 elif test $ac_cv_prog_cc_g = yes; then
4081 if test "$GCC" = yes; then
4087 if test "$GCC" = yes; then
4093 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
4094 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
4095 if test "${ac_cv_prog_cc_c89+set}" = set; then
4096 echo $ECHO_N "(cached
) $ECHO_C" >&6
4098 ac_cv_prog_cc_c89=no
4100 cat >conftest.$ac_ext <<_ACEOF
4103 cat confdefs.h >>conftest.$ac_ext
4104 cat >>conftest.$ac_ext <<_ACEOF
4105 /* end confdefs.h. */
4108 #include <sys/types.h>
4109 #include <sys/stat.h>
4110 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4111 struct buf { int x; };
4112 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4113 static char *e (p, i)
4119 static char *f (char * (*g) (char **, int), char **p, ...)
4124 s = g (p, va_arg (v,int));
4129 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4130 function prototypes and stuff, but not '\xHH' hex character constants.
4131 These don't provoke an error unfortunately, instead are silently treated
4132 as 'x'. The following induces an error, until -std is added to get
4133 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4134 array size at least. It's necessary to write '\x00'==0 to get something
4135 that's true only with -std. */
4136 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4138 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4139 inside strings and character constants. */
4141 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4143 int test (int i, double x);
4144 struct s1 {int (*f) (int a);};
4145 struct s2 {int (*f) (double a);};
4146 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4152 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4157 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4158 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4160 CC="$ac_save_CC $ac_arg"
4161 rm -f conftest.$ac_objext
4162 if { (ac_try="$ac_compile"
4164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4165 *) ac_try_echo=$ac_try;;
4167 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4168 (eval "$ac_compile") 2>conftest.er1
4170 grep -v '^ *+' conftest.er1 >conftest.err
4172 cat conftest.err >&5
4173 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4174 (exit $ac_status); } && {
4175 test -z "$ac_c_werror_flag" ||
4176 test ! -s conftest.err
4177 } && test -s conftest.$ac_objext; then
4178 ac_cv_prog_cc_c89=$ac_arg
4180 echo "$as_me: failed program was
:" >&5
4181 sed 's/^/| /' conftest.$ac_ext >&5
4186 rm -f core conftest.err conftest.$ac_objext
4187 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
4189 rm -f conftest.$ac_ext
4194 case "x
$ac_cv_prog_cc_c89" in
4196 { echo "$as_me:$LINENO: result
: none needed
" >&5
4197 echo "${ECHO_T}none needed
" >&6; } ;;
4199 { echo "$as_me:$LINENO: result
: unsupported
" >&5
4200 echo "${ECHO_T}unsupported
" >&6; } ;;
4202 CC="$CC $ac_cv_prog_cc_c89"
4203 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
4204 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4209 ac_cpp='$CPP $CPPFLAGS'
4210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4215 # On Suns, sometimes $CPP names a directory.
4216 if test -n "$CPP" && test -d "$CPP"; then
4220 ## If not using gcc, and on Solaris, and no CPP specified, see if
4221 ## using a Sun compiler, which needs -Xs to prevent whitespace.
4222 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
4223 test x"$CPP" = x; then
4224 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler
" >&5
4225 echo $ECHO_N "checking whether we are using a Sun C compiler...
$ECHO_C" >&6; }
4227 if test "${emacs_cv_sunpro_c+set}" = set; then
4228 echo $ECHO_N "(cached
) $ECHO_C" >&6
4230 cat >conftest.$ac_ext <<_ACEOF
4233 cat confdefs.h >>conftest.$ac_ext
4234 cat >>conftest.$ac_ext <<_ACEOF
4235 /* end confdefs.h. */
4248 rm -f conftest.$ac_objext conftest$ac_exeext
4249 if { (ac_try="$ac_link"
4251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4252 *) ac_try_echo=$ac_try;;
4254 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4255 (eval "$ac_link") 2>conftest.er1
4257 grep -v '^ *+' conftest.er1 >conftest.err
4259 cat conftest.err >&5
4260 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4261 (exit $ac_status); } && {
4262 test -z "$ac_c_werror_flag" ||
4263 test ! -s conftest.err
4264 } && test -s conftest$ac_exeext &&
4265 $as_test_x conftest$ac_exeext; then
4266 emacs_cv_sunpro_c=yes
4268 echo "$as_me: failed program was
:" >&5
4269 sed 's/^/| /' conftest.$ac_ext >&5
4271 emacs_cv_sunpro_c=no
4274 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4275 conftest$ac_exeext conftest.$ac_ext
4278 { echo "$as_me:$LINENO: result
: $emacs_cv_sunpro_c" >&5
4279 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
4281 if test x"$emacs_cv_sunpro_c" = xyes; then
4282 NON_GNU_CPP="$CC -E -Xs"
4286 #### Some systems specify a CPP to use unless we are using GCC.
4287 #### Now that we know whether we are using GCC, we can decide whether
4288 #### to use that one.
4289 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
4294 #### Some systems specify a CC to use unless we are using GCC.
4295 #### Now that we know whether we are using GCC, we can decide whether
4296 #### to use that one.
4297 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
4298 test x$cc_specified != xyes
4303 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
4305 CC="$CC $GCC_TEST_OPTIONS"
4308 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
4310 CC="$CC $NON_GCC_TEST_OPTIONS"
4314 ac_cpp='$CPP $CPPFLAGS'
4315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4318 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
4319 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
4320 # On Suns, sometimes $CPP names a directory.
4321 if test -n "$CPP" && test -d "$CPP"; then
4324 if test -z "$CPP"; then
4325 if test "${ac_cv_prog_CPP+set}" = set; then
4326 echo $ECHO_N "(cached
) $ECHO_C" >&6
4328 # Double quotes because CPP needs to be expanded
4329 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
4332 for ac_c_preproc_warn_flag in '' yes
4334 # Use a header file that comes with gcc, so configuring glibc
4335 # with a fresh cross-compiler works.
4336 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4337 # <limits.h> exists even on freestanding compilers.
4338 # On the NeXT, cc -E runs the code through the compiler's parser,
4339 # not just through cpp. "Syntax error
" is here to catch this case.
4340 cat >conftest.$ac_ext <<_ACEOF
4343 cat confdefs.h >>conftest.$ac_ext
4344 cat >>conftest.$ac_ext <<_ACEOF
4345 /* end confdefs.h. */
4347 # include <limits.h>
4349 # include <assert.h>
4353 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4356 *) ac_try_echo=$ac_try;;
4358 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4359 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4361 grep -v '^ *+' conftest.er1 >conftest.err
4363 cat conftest.err >&5
4364 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4365 (exit $ac_status); } >/dev/null && {
4366 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4367 test ! -s conftest.err
4371 echo "$as_me: failed program was
:" >&5
4372 sed 's/^/| /' conftest.$ac_ext >&5
4374 # Broken: fails on valid input.
4378 rm -f conftest.err conftest.$ac_ext
4380 # OK, works on sane cases. Now check whether nonexistent headers
4381 # can be detected and how.
4382 cat >conftest.$ac_ext <<_ACEOF
4385 cat confdefs.h >>conftest.$ac_ext
4386 cat >>conftest.$ac_ext <<_ACEOF
4387 /* end confdefs.h. */
4388 #include <ac_nonexistent.h>
4390 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4393 *) ac_try_echo=$ac_try;;
4395 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4396 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4398 grep -v '^ *+' conftest.er1 >conftest.err
4400 cat conftest.err >&5
4401 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4402 (exit $ac_status); } >/dev/null && {
4403 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4404 test ! -s conftest.err
4406 # Broken: success on invalid input.
4409 echo "$as_me: failed program was
:" >&5
4410 sed 's/^/| /' conftest.$ac_ext >&5
4412 # Passes both tests.
4417 rm -f conftest.err conftest.$ac_ext
4420 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4421 rm -f conftest.err conftest.$ac_ext
4422 if $ac_preproc_ok; then
4434 { echo "$as_me:$LINENO: result
: $CPP" >&5
4435 echo "${ECHO_T}$CPP" >&6; }
4437 for ac_c_preproc_warn_flag in '' yes
4439 # Use a header file that comes with gcc, so configuring glibc
4440 # with a fresh cross-compiler works.
4441 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4442 # <limits.h> exists even on freestanding compilers.
4443 # On the NeXT, cc -E runs the code through the compiler's parser,
4444 # not just through cpp. "Syntax error
" is here to catch this case.
4445 cat >conftest.$ac_ext <<_ACEOF
4448 cat confdefs.h >>conftest.$ac_ext
4449 cat >>conftest.$ac_ext <<_ACEOF
4450 /* end confdefs.h. */
4452 # include <limits.h>
4454 # include <assert.h>
4458 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4461 *) ac_try_echo=$ac_try;;
4463 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4464 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4466 grep -v '^ *+' conftest.er1 >conftest.err
4468 cat conftest.err >&5
4469 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4470 (exit $ac_status); } >/dev/null && {
4471 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4472 test ! -s conftest.err
4476 echo "$as_me: failed program was
:" >&5
4477 sed 's/^/| /' conftest.$ac_ext >&5
4479 # Broken: fails on valid input.
4483 rm -f conftest.err conftest.$ac_ext
4485 # OK, works on sane cases. Now check whether nonexistent headers
4486 # can be detected and how.
4487 cat >conftest.$ac_ext <<_ACEOF
4490 cat confdefs.h >>conftest.$ac_ext
4491 cat >>conftest.$ac_ext <<_ACEOF
4492 /* end confdefs.h. */
4493 #include <ac_nonexistent.h>
4495 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4498 *) ac_try_echo=$ac_try;;
4500 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4501 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4503 grep -v '^ *+' conftest.er1 >conftest.err
4505 cat conftest.err >&5
4506 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4507 (exit $ac_status); } >/dev/null && {
4508 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4509 test ! -s conftest.err
4511 # Broken: success on invalid input.
4514 echo "$as_me: failed program was
:" >&5
4515 sed 's/^/| /' conftest.$ac_ext >&5
4517 # Passes both tests.
4522 rm -f conftest.err conftest.$ac_ext
4525 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4526 rm -f conftest.err conftest.$ac_ext
4527 if $ac_preproc_ok; then
4530 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4531 See \
`config.log' for more details." >&5
4532 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4533 See \`config.log
' for more details." >&2;}
4534 { (exit 1); exit 1; }; }
4538 ac_cpp='$CPP $CPPFLAGS'
4539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4540 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4544 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4545 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4546 if test "${ac_cv_path_GREP+set}" = set; then
4547 echo $ECHO_N "(cached) $ECHO_C" >&6
4549 # Extract the first word of "grep ggrep" to use in msg output
4550 if test -z "$GREP"; then
4551 set dummy grep ggrep; ac_prog_name=$2
4552 if test "${ac_cv_path_GREP+set}" = set; then
4553 echo $ECHO_N "(cached) $ECHO_C" >&6
4555 ac_path_GREP_found=false
4556 # Loop through the user's path and
test for each of PROGNAME-LIST
4557 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4558 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4561 test -z "$as_dir" && as_dir
=.
4562 for ac_prog
in grep ggrep
; do
4563 for ac_exec_ext
in '' $ac_executable_extensions; do
4564 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4565 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4566 # Check for GNU ac_path_GREP and select it if it is found.
4567 # Check for GNU $ac_path_GREP
4568 case `"$ac_path_GREP" --version 2>&1` in
4570 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4573 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4576 cat "conftest.in" "conftest.in" >"conftest.tmp"
4577 mv "conftest.tmp" "conftest.in"
4578 cp "conftest.in" "conftest.nl"
4579 echo 'GREP' >> "conftest.nl"
4580 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4581 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4582 ac_count
=`expr $ac_count + 1`
4583 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4584 # Best one so far, save it but keep looking for a better one
4585 ac_cv_path_GREP
="$ac_path_GREP"
4586 ac_path_GREP_max
=$ac_count
4588 # 10*(2^10) chars as input seems more than enough
4589 test $ac_count -gt 10 && break
4591 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4595 $ac_path_GREP_found && break 3
4605 GREP
="$ac_cv_path_GREP"
4606 if test -z "$GREP"; then
4607 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4608 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4609 { (exit 1); exit 1; }; }
4613 ac_cv_path_GREP
=$GREP
4618 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4619 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4620 GREP
="$ac_cv_path_GREP"
4623 { echo "$as_me:$LINENO: checking for egrep" >&5
4624 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4625 if test "${ac_cv_path_EGREP+set}" = set; then
4626 echo $ECHO_N "(cached) $ECHO_C" >&6
4628 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4629 then ac_cv_path_EGREP
="$GREP -E"
4631 # Extract the first word of "egrep" to use in msg output
4632 if test -z "$EGREP"; then
4633 set dummy
egrep; ac_prog_name
=$2
4634 if test "${ac_cv_path_EGREP+set}" = set; then
4635 echo $ECHO_N "(cached) $ECHO_C" >&6
4637 ac_path_EGREP_found
=false
4638 # Loop through the user's path and test for each of PROGNAME-LIST
4639 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4640 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4643 test -z "$as_dir" && as_dir
=.
4644 for ac_prog
in egrep; do
4645 for ac_exec_ext
in '' $ac_executable_extensions; do
4646 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4647 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4648 # Check for GNU ac_path_EGREP and select it if it is found.
4649 # Check for GNU $ac_path_EGREP
4650 case `"$ac_path_EGREP" --version 2>&1` in
4652 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4655 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4658 cat "conftest.in" "conftest.in" >"conftest.tmp"
4659 mv "conftest.tmp" "conftest.in"
4660 cp "conftest.in" "conftest.nl"
4661 echo 'EGREP' >> "conftest.nl"
4662 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4663 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4664 ac_count
=`expr $ac_count + 1`
4665 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4666 # Best one so far, save it but keep looking for a better one
4667 ac_cv_path_EGREP
="$ac_path_EGREP"
4668 ac_path_EGREP_max
=$ac_count
4670 # 10*(2^10) chars as input seems more than enough
4671 test $ac_count -gt 10 && break
4673 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4677 $ac_path_EGREP_found && break 3
4687 EGREP
="$ac_cv_path_EGREP"
4688 if test -z "$EGREP"; then
4689 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4690 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4691 { (exit 1); exit 1; }; }
4695 ac_cv_path_EGREP
=$EGREP
4701 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4702 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4703 EGREP
="$ac_cv_path_EGREP"
4707 { echo "$as_me:$LINENO: checking for AIX" >&5
4708 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4709 cat >conftest.
$ac_ext <<_ACEOF
4712 cat confdefs.h
>>conftest.
$ac_ext
4713 cat >>conftest.
$ac_ext <<_ACEOF
4714 /* end confdefs.h. */
4720 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4721 $EGREP "yes" >/dev
/null
2>&1; then
4722 { echo "$as_me:$LINENO: result: yes" >&5
4723 echo "${ECHO_T}yes" >&6; }
4724 cat >>confdefs.h
<<\_ACEOF
4725 #define _ALL_SOURCE 1
4729 { echo "$as_me:$LINENO: result: no" >&5
4730 echo "${ECHO_T}no" >&6; }
4736 cat >>confdefs.h
<<\_ACEOF
4737 #define _GNU_SOURCE 1
4742 ### Use -Wno-pointer-sign if the compiler supports it
4743 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4744 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4745 SAVE_CFLAGS
="$CFLAGS"
4746 CFLAGS
="$CFLAGS -Wno-pointer-sign"
4747 cat >conftest.
$ac_ext <<_ACEOF
4750 cat confdefs.h
>>conftest.
$ac_ext
4751 cat >>conftest.
$ac_ext <<_ACEOF
4752 /* end confdefs.h. */
4762 rm -f conftest.
$ac_objext
4763 if { (ac_try
="$ac_compile"
4765 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4766 *) ac_try_echo=$ac_try;;
4768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4769 (eval "$ac_compile") 2>conftest.er1
4771 grep -v '^ *+' conftest.er1 >conftest.err
4773 cat conftest.err >&5
4774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775 (exit $ac_status); } && {
4776 test -z "$ac_c_werror_flag" ||
4777 test ! -s conftest.err
4778 } && test -s conftest.$ac_objext; then
4781 echo "$as_me: failed program was:" >&5
4782 sed 's/^/| /' conftest.$ac_ext >&5
4787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4788 if test $has_option = yes; then
4789 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4791 { echo "$as_me:$LINENO: result: $has_option" >&5
4792 echo "${ECHO_T}$has_option" >&6; }
4793 CFLAGS="$SAVE_CFLAGS"
4797 #### Some other nice autoconf tests.
4799 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4800 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4802 if test "$LN_S" = "ln -s"; then
4803 { echo "$as_me:$LINENO: result: yes" >&5
4804 echo "${ECHO_T}yes" >&6; }
4806 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4807 echo "${ECHO_T}no, using $LN_S" >&6; }
4811 ac_cpp='$CPP $CPPFLAGS'
4812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4815 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4816 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4817 # On Suns, sometimes $CPP names a directory.
4818 if test -n "$CPP" && test -d "$CPP"; then
4821 if test -z "$CPP"; then
4822 if test "${ac_cv_prog_CPP+set}" = set; then
4823 echo $ECHO_N "(cached) $ECHO_C" >&6
4825 # Double quotes because CPP needs to be expanded
4826 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4829 for ac_c_preproc_warn_flag in '' yes
4831 # Use a header file that comes with gcc, so configuring glibc
4832 # with a fresh cross-compiler works.
4833 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4834 # <limits.h> exists even on freestanding compilers.
4835 # On the NeXT, cc -E runs the code through the compiler's parser,
4836 # not just through cpp. "Syntax error" is here to catch this case.
4837 cat >conftest.$ac_ext <<_ACEOF
4840 cat confdefs.h >>conftest.$ac_ext
4841 cat >>conftest.$ac_ext <<_ACEOF
4842 /* end confdefs.h. */
4844 # include <limits.h>
4846 # include <assert.h>
4850 if { (ac_try="$ac_cpp conftest.$ac_ext"
4852 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4853 *) ac_try_echo
=$ac_try;;
4855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4856 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4858 grep -v '^ *+' conftest.er1
>conftest.err
4860 cat conftest.err
>&5
4861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862 (exit $ac_status); } >/dev
/null
&& {
4863 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4864 test ! -s conftest.err
4868 echo "$as_me: failed program was:" >&5
4869 sed 's/^/| /' conftest.
$ac_ext >&5
4871 # Broken: fails on valid input.
4875 rm -f conftest.err conftest.
$ac_ext
4877 # OK, works on sane cases. Now check whether nonexistent headers
4878 # can be detected and how.
4879 cat >conftest.
$ac_ext <<_ACEOF
4882 cat confdefs.h
>>conftest.
$ac_ext
4883 cat >>conftest.
$ac_ext <<_ACEOF
4884 /* end confdefs.h. */
4885 #include <ac_nonexistent.h>
4887 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4889 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4890 *) ac_try_echo=$ac_try;;
4892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4893 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4895 grep -v '^ *+' conftest.er1 >conftest.err
4897 cat conftest.err >&5
4898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899 (exit $ac_status); } >/dev/null && {
4900 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4901 test ! -s conftest.err
4903 # Broken: success on invalid input.
4906 echo "$as_me: failed program was:" >&5
4907 sed 's/^/| /' conftest.$ac_ext >&5
4909 # Passes both tests.
4914 rm -f conftest.err conftest.$ac_ext
4917 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4918 rm -f conftest.err conftest.
$ac_ext
4919 if $ac_preproc_ok; then
4931 { echo "$as_me:$LINENO: result: $CPP" >&5
4932 echo "${ECHO_T}$CPP" >&6; }
4934 for ac_c_preproc_warn_flag
in '' yes
4936 # Use a header file that comes with gcc, so configuring glibc
4937 # with a fresh cross-compiler works.
4938 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4939 # <limits.h> exists even on freestanding compilers.
4940 # On the NeXT, cc -E runs the code through the compiler's parser,
4941 # not just through cpp. "Syntax error" is here to catch this case.
4942 cat >conftest.
$ac_ext <<_ACEOF
4945 cat confdefs.h
>>conftest.
$ac_ext
4946 cat >>conftest.
$ac_ext <<_ACEOF
4947 /* end confdefs.h. */
4949 # include <limits.h>
4951 # include <assert.h>
4955 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4957 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4958 *) ac_try_echo=$ac_try;;
4960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4961 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4963 grep -v '^ *+' conftest.er1 >conftest.err
4965 cat conftest.err >&5
4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967 (exit $ac_status); } >/dev/null && {
4968 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4969 test ! -s conftest.err
4973 echo "$as_me: failed program was:" >&5
4974 sed 's/^/| /' conftest.$ac_ext >&5
4976 # Broken: fails on valid input.
4980 rm -f conftest.err conftest.$ac_ext
4982 # OK, works on sane cases. Now check whether nonexistent headers
4983 # can be detected and how.
4984 cat >conftest.$ac_ext <<_ACEOF
4987 cat confdefs.h >>conftest.$ac_ext
4988 cat >>conftest.$ac_ext <<_ACEOF
4989 /* end confdefs.h. */
4990 #include <ac_nonexistent.h>
4992 if { (ac_try="$ac_cpp conftest.$ac_ext"
4994 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4995 *) ac_try_echo
=$ac_try;;
4997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4998 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5000 grep -v '^ *+' conftest.er1
>conftest.err
5002 cat conftest.err
>&5
5003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004 (exit $ac_status); } >/dev
/null
&& {
5005 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5006 test ! -s conftest.err
5008 # Broken: success on invalid input.
5011 echo "$as_me: failed program was:" >&5
5012 sed 's/^/| /' conftest.
$ac_ext >&5
5014 # Passes both tests.
5019 rm -f conftest.err conftest.
$ac_ext
5022 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5023 rm -f conftest.err conftest.
$ac_ext
5024 if $ac_preproc_ok; then
5027 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5028 See \`config.log' for more details." >&5
5029 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5030 See \`config.log' for more details." >&2;}
5031 { (exit 1); exit 1; }; }
5035 ac_cpp
='$CPP $CPPFLAGS'
5036 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5037 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5038 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5040 # Find a good install program. We prefer a C program (faster),
5041 # so one script is as good as another. But avoid the broken or
5042 # incompatible versions:
5043 # SysV /etc/install, /usr/sbin/install
5044 # SunOS /usr/etc/install
5045 # IRIX /sbin/install
5047 # AmigaOS /C/install, which installs bootblocks on floppy discs
5048 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5049 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5050 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5051 # OS/2's system install, which has a completely different semantic
5052 # ./install, which can be erroneously created by make from ./install.sh.
5053 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5054 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5055 if test -z "$INSTALL"; then
5056 if test "${ac_cv_path_install+set}" = set; then
5057 echo $ECHO_N "(cached) $ECHO_C" >&6
5059 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5063 test -z "$as_dir" && as_dir
=.
5064 # Account for people who put trailing slashes in PATH elements.
5066 .
/ | .
// |
/cC
/* | \
5067 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
5068 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
5071 # OSF1 and SCO ODT 3.0 have their own names for install.
5072 # Don't use installbsd from OSF since it installs stuff as root
5074 for ac_prog
in ginstall scoinst
install; do
5075 for ac_exec_ext
in '' $ac_executable_extensions; do
5076 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5077 if test $ac_prog = install &&
5078 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5079 # AIX install. It has an incompatible calling convention.
5081 elif test $ac_prog = install &&
5082 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5083 # program-specific install script used by HP pwplus--don't use.
5086 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5099 if test "${ac_cv_path_install+set}" = set; then
5100 INSTALL
=$ac_cv_path_install
5102 # As a last resort, use the slow shell script. Don't cache a
5103 # value for INSTALL within a source directory, because that will
5104 # break other packages using the cache if that directory is
5105 # removed, or if the value is a relative name.
5106 INSTALL
=$ac_install_sh
5109 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5110 echo "${ECHO_T}$INSTALL" >&6; }
5112 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5113 # It thinks the first close brace ends the variable substitution.
5114 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5116 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5118 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5120 if test "x$RANLIB" = x
; then
5121 if test -n "$ac_tool_prefix"; then
5122 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5123 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5124 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5126 if test "${ac_cv_prog_RANLIB+set}" = set; then
5127 echo $ECHO_N "(cached) $ECHO_C" >&6
5129 if test -n "$RANLIB"; then
5130 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5132 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5136 test -z "$as_dir" && as_dir
=.
5137 for ac_exec_ext
in '' $ac_executable_extensions; do
5138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5139 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5149 RANLIB
=$ac_cv_prog_RANLIB
5150 if test -n "$RANLIB"; then
5151 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5152 echo "${ECHO_T}$RANLIB" >&6; }
5154 { echo "$as_me:$LINENO: result: no" >&5
5155 echo "${ECHO_T}no" >&6; }
5160 if test -z "$ac_cv_prog_RANLIB"; then
5161 ac_ct_RANLIB
=$RANLIB
5162 # Extract the first word of "ranlib", so it can be a program name with args.
5163 set dummy ranlib
; ac_word
=$2
5164 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5166 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5167 echo $ECHO_N "(cached) $ECHO_C" >&6
5169 if test -n "$ac_ct_RANLIB"; then
5170 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5172 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5176 test -z "$as_dir" && as_dir
=.
5177 for ac_exec_ext
in '' $ac_executable_extensions; do
5178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5179 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5189 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5190 if test -n "$ac_ct_RANLIB"; then
5191 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5192 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5194 { echo "$as_me:$LINENO: result: no" >&5
5195 echo "${ECHO_T}no" >&6; }
5198 if test "x$ac_ct_RANLIB" = x
; then
5201 case $cross_compiling:$ac_tool_warned in
5203 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5204 whose name does not start with the host triplet. If you think this
5205 configuration is useful to you, please write to autoconf@gnu.org." >&5
5206 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5207 whose name does not start with the host triplet. If you think this
5208 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5209 ac_tool_warned
=yes ;;
5211 RANLIB
=$ac_ct_RANLIB
5214 RANLIB
="$ac_cv_prog_RANLIB"
5218 # Extract the first word of "install-info", so it can be a program name with args.
5219 set dummy install-info
; ac_word
=$2
5220 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5222 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5223 echo $ECHO_N "(cached) $ECHO_C" >&6
5225 case $INSTALL_INFO in
5227 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5230 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5234 test -z "$as_dir" && as_dir
=.
5235 for ac_exec_ext
in '' $ac_executable_extensions; do
5236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5237 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5248 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5249 if test -n "$INSTALL_INFO"; then
5250 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5251 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5253 { echo "$as_me:$LINENO: result: no" >&5
5254 echo "${ECHO_T}no" >&6; }
5258 # Extract the first word of "install-info", so it can be a program name with args.
5259 set dummy install-info
; ac_word
=$2
5260 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5262 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5263 echo $ECHO_N "(cached) $ECHO_C" >&6
5265 case $INSTALL_INFO in
5267 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5270 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5271 for as_dir
in /usr
/sbin
5274 test -z "$as_dir" && as_dir
=.
5275 for ac_exec_ext
in '' $ac_executable_extensions; do
5276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5277 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5288 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5289 if test -n "$INSTALL_INFO"; then
5290 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5291 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5293 { echo "$as_me:$LINENO: result: no" >&5
5294 echo "${ECHO_T}no" >&6; }
5298 # Extract the first word of "install-info", so it can be a program name with args.
5299 set dummy install-info
; ac_word
=$2
5300 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5302 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5303 echo $ECHO_N "(cached) $ECHO_C" >&6
5305 case $INSTALL_INFO in
5307 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5310 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5314 test -z "$as_dir" && as_dir
=.
5315 for ac_exec_ext
in '' $ac_executable_extensions; do
5316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5317 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5325 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5329 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5330 if test -n "$INSTALL_INFO"; then
5331 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5332 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5334 { echo "$as_me:$LINENO: result: no" >&5
5335 echo "${ECHO_T}no" >&6; }
5339 # Extract the first word of "gzip", so it can be a program name with args.
5340 set dummy
gzip; ac_word
=$2
5341 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5343 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5344 echo $ECHO_N "(cached) $ECHO_C" >&6
5348 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5351 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5355 test -z "$as_dir" && as_dir
=.
5356 for ac_exec_ext
in '' $ac_executable_extensions; do
5357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5358 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5369 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5370 if test -n "$GZIP_PROG"; then
5371 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5372 echo "${ECHO_T}$GZIP_PROG" >&6; }
5374 { echo "$as_me:$LINENO: result: no" >&5
5375 echo "${ECHO_T}no" >&6; }
5381 ## Need makeinfo >= 4.6 (?) to build the manuals.
5382 # Extract the first word of "makeinfo", so it can be a program name with args.
5383 set dummy makeinfo
; ac_word
=$2
5384 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5386 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5387 echo $ECHO_N "(cached) $ECHO_C" >&6
5391 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
5394 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5398 test -z "$as_dir" && as_dir
=.
5399 for ac_exec_ext
in '' $ac_executable_extensions; do
5400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5401 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
5402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5409 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
5413 MAKEINFO
=$ac_cv_path_MAKEINFO
5414 if test -n "$MAKEINFO"; then
5415 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5416 echo "${ECHO_T}$MAKEINFO" >&6; }
5418 { echo "$as_me:$LINENO: result: no" >&5
5419 echo "${ECHO_T}no" >&6; }
5423 if test "$MAKEINFO" != "no" && \
5424 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
5428 if test "$MAKEINFO" = "no"; then
5429 { { echo "$as_me:$LINENO: error: makeinfo >= 4.6 is required " >&5
5430 echo "$as_me: error: makeinfo >= 4.6 is required " >&2;}
5431 { (exit 1); exit 1; }; }
5436 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5438 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5441 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5443 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5447 late_LDFLAGS
=$LDFLAGS
5448 if test "$GCC" = yes; then
5449 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5451 LDFLAGS
="$LDFLAGS -znocombreloc"
5454 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5455 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5456 cat >conftest.
$ac_ext <<_ACEOF
5459 rm -f conftest.
$ac_objext conftest
$ac_exeext
5460 if { (ac_try
="$ac_link"
5462 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5463 *) ac_try_echo=$ac_try;;
5465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5466 (eval "$ac_link") 2>conftest.er1
5468 grep -v '^ *+' conftest.er1 >conftest.err
5470 cat conftest.err >&5
5471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472 (exit $ac_status); } && {
5473 test -z "$ac_c_werror_flag" ||
5474 test ! -s conftest.err
5475 } && test -s conftest$ac_exeext &&
5476 $as_test_x conftest$ac_exeext; then
5477 { echo "$as_me:$LINENO: result: yes" >&5
5478 echo "${ECHO_T}yes" >&6; }
5480 echo "$as_me: failed program was:" >&5
5481 sed 's/^/| /' conftest.$ac_ext >&5
5483 LDFLAGS=$late_LDFLAGS
5484 { echo "$as_me:$LINENO: result: no" >&5
5485 echo "${ECHO_T}no" >&6; }
5488 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5489 conftest$ac_exeext conftest.$ac_ext
5491 #### Extract some information from the operating system and machine files.
5493 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5494 - which libraries the lib-src programs will want, and
5495 - whether the GNU malloc routines are usable..." >&5
5496 echo "$as_me: checking the machine- and system-dependent files to find out
5497 - which libraries the lib-src programs will want, and
5498 - whether the GNU malloc routines are usable..." >&6;}
5500 ### First figure out CFLAGS (which we use for running the compiler here)
5501 ### and REAL_CFLAGS (which we use for real compilation).
5502 ### The two are the same except on a few systems, where they are made
5503 ### different to work around various lossages. For example,
5504 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5505 ### as implying static linking.
5507 ### If the CFLAGS env var is specified, we use that value
5508 ### instead of the default.
5510 ### It's not important that this name contain the PID; you can't run
5511 ### two configures in the same directory and have anything work
5513 tempcname="conftest.c"
5516 #include "'${srcdir}'/src/'${opsysfile}'"
5517 #include "'${srcdir}'/src/'${machfile}'"
5518 #ifndef LIBS_MACHINE
5519 #define LIBS_MACHINE
5524 #ifndef C_SWITCH_SYSTEM
5525 #define C_SWITCH_SYSTEM
5527 #ifndef C_SWITCH_MACHINE
5528 #define C_SWITCH_MACHINE
5530 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5531 configure___ c_switch_system=C_SWITCH_SYSTEM
5532 configure___ c_switch_machine=C_SWITCH_MACHINE
5535 #define LIB_X11_LIB -lX11
5538 #ifndef LIBX11_MACHINE
5539 #define LIBX11_MACHINE
5542 #ifndef LIBX11_SYSTEM
5543 #define LIBX11_SYSTEM
5545 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5548 configure___ unexec=UNEXEC
5550 configure___ unexec=unexec.o
5553 #ifdef SYSTEM_MALLOC
5554 configure___ system_malloc=yes
5556 configure___ system_malloc=no
5559 #ifdef USE_MMAP_FOR_BUFFERS
5560 configure___ use_mmap_for_buffers=yes
5562 configure___ use_mmap_for_buffers=no
5565 #ifndef C_DEBUG_SWITCH
5566 #define C_DEBUG_SWITCH -g
5569 #ifndef C_OPTIMIZE_SWITCH
5571 #define C_OPTIMIZE_SWITCH -O2
5573 #define C_OPTIMIZE_SWITCH -O
5577 #ifndef C_WARNINGS_SWITCH
5578 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5581 #ifndef LD_SWITCH_MACHINE
5582 #define LD_SWITCH_MACHINE
5585 #ifndef LD_SWITCH_SYSTEM
5586 #define LD_SWITCH_SYSTEM
5589 #ifndef LD_SWITCH_X_SITE_AUX
5590 #define LD_SWITCH_X_SITE_AUX
5593 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5594 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5596 #ifdef THIS_IS_CONFIGURE
5598 /* Get the CFLAGS for tests in configure. */
5600 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5602 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5605 #else /* not THIS_IS_CONFIGURE */
5607 /* Get the CFLAGS for real compilation. */
5609 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5611 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5614 #endif /* not THIS_IS_CONFIGURE */
5617 # The value of CPP is a quoted variable reference, so we need to do this
5618 # to get its actual value...
5619 CPP=`eval "echo $CPP"`
5620 eval `${CPP} -Isrc ${tempcname} \
5621 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5622 if test "x$SPECIFIED_CFLAGS" = x; then
5623 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5624 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5626 REAL_CFLAGS="$CFLAGS"
5630 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5632 ### Make sure subsequent tests use flags consistent with the build flags.
5634 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5635 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5637 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5642 # Check whether --enable-largefile was given.
5643 if test "${enable_largefile+set}" = set; then
5644 enableval=$enable_largefile;
5647 if test "$enable_largefile" != no; then
5649 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5650 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5651 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5652 echo $ECHO_N "(cached) $ECHO_C" >&6
5654 ac_cv_sys_largefile_CC=no
5655 if test "$GCC" != yes; then
5658 # IRIX 6.2 and later do not support large files by default,
5659 # so use the C compiler's -n32 option if that helps.
5660 cat >conftest.$ac_ext <<_ACEOF
5663 cat confdefs.h >>conftest.$ac_ext
5664 cat >>conftest.$ac_ext <<_ACEOF
5665 /* end confdefs.h. */
5666 #include <sys/types.h>
5667 /* Check that off_t can represent 2**63 - 1 correctly.
5668 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5669 since some C++ compilers masquerading as C compilers
5670 incorrectly reject 9223372036854775807. */
5671 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5672 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5673 && LARGE_OFF_T % 2147483647 == 1)
5683 rm -f conftest.$ac_objext
5684 if { (ac_try="$ac_compile"
5686 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5687 *) ac_try_echo
=$ac_try;;
5689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5690 (eval "$ac_compile") 2>conftest.er1
5692 grep -v '^ *+' conftest.er1
>conftest.err
5694 cat conftest.err
>&5
5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); } && {
5697 test -z "$ac_c_werror_flag" ||
5698 test ! -s conftest.err
5699 } && test -s conftest.
$ac_objext; then
5702 echo "$as_me: failed program was:" >&5
5703 sed 's/^/| /' conftest.
$ac_ext >&5
5708 rm -f core conftest.err conftest.
$ac_objext
5710 rm -f conftest.
$ac_objext
5711 if { (ac_try
="$ac_compile"
5713 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5714 *) ac_try_echo=$ac_try;;
5716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5717 (eval "$ac_compile") 2>conftest.er1
5719 grep -v '^ *+' conftest.er1 >conftest.err
5721 cat conftest.err >&5
5722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723 (exit $ac_status); } && {
5724 test -z "$ac_c_werror_flag" ||
5725 test ! -s conftest.err
5726 } && test -s conftest.$ac_objext; then
5727 ac_cv_sys_largefile_CC=' -n32'; break
5729 echo "$as_me: failed program was:" >&5
5730 sed 's/^/| /' conftest.$ac_ext >&5
5735 rm -f core conftest.err conftest.$ac_objext
5739 rm -f conftest.$ac_ext
5742 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5743 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5744 if test "$ac_cv_sys_largefile_CC" != no; then
5745 CC=$CC$ac_cv_sys_largefile_CC
5748 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5749 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5750 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5751 echo $ECHO_N "(cached) $ECHO_C" >&6
5754 cat >conftest.$ac_ext <<_ACEOF
5757 cat confdefs.h >>conftest.$ac_ext
5758 cat >>conftest.$ac_ext <<_ACEOF
5759 /* end confdefs.h. */
5760 #include <sys/types.h>
5761 /* Check that off_t can represent 2**63 - 1 correctly.
5762 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5763 since some C++ compilers masquerading as C compilers
5764 incorrectly reject 9223372036854775807. */
5765 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5766 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5767 && LARGE_OFF_T % 2147483647 == 1)
5777 rm -f conftest.$ac_objext
5778 if { (ac_try="$ac_compile"
5780 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5781 *) ac_try_echo
=$ac_try;;
5783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5784 (eval "$ac_compile") 2>conftest.er1
5786 grep -v '^ *+' conftest.er1
>conftest.err
5788 cat conftest.err
>&5
5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790 (exit $ac_status); } && {
5791 test -z "$ac_c_werror_flag" ||
5792 test ! -s conftest.err
5793 } && test -s conftest.
$ac_objext; then
5794 ac_cv_sys_file_offset_bits
=no
; break
5796 echo "$as_me: failed program was:" >&5
5797 sed 's/^/| /' conftest.
$ac_ext >&5
5802 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5803 cat >conftest.
$ac_ext <<_ACEOF
5806 cat confdefs.h
>>conftest.
$ac_ext
5807 cat >>conftest.
$ac_ext <<_ACEOF
5808 /* end confdefs.h. */
5809 #define _FILE_OFFSET_BITS 64
5810 #include <sys/types.h>
5811 /* Check that off_t can represent 2**63 - 1 correctly.
5812 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5813 since some C++ compilers masquerading as C compilers
5814 incorrectly reject 9223372036854775807. */
5815 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5816 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5817 && LARGE_OFF_T % 2147483647 == 1)
5827 rm -f conftest.
$ac_objext
5828 if { (ac_try
="$ac_compile"
5830 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5831 *) ac_try_echo=$ac_try;;
5833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5834 (eval "$ac_compile") 2>conftest.er1
5836 grep -v '^ *+' conftest.er1 >conftest.err
5838 cat conftest.err >&5
5839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840 (exit $ac_status); } && {
5841 test -z "$ac_c_werror_flag" ||
5842 test ! -s conftest.err
5843 } && test -s conftest.$ac_objext; then
5844 ac_cv_sys_file_offset_bits=64; break
5846 echo "$as_me: failed program was:" >&5
5847 sed 's/^/| /' conftest.$ac_ext >&5
5852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5853 ac_cv_sys_file_offset_bits=unknown
5857 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5858 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5859 case $ac_cv_sys_file_offset_bits in #(
5862 cat >>confdefs.h <<_ACEOF
5863 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5868 if test $ac_cv_sys_file_offset_bits = unknown; then
5869 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5870 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5871 if test "${ac_cv_sys_large_files+set}" = set; then
5872 echo $ECHO_N "(cached) $ECHO_C" >&6
5875 cat >conftest.$ac_ext <<_ACEOF
5878 cat confdefs.h >>conftest.$ac_ext
5879 cat >>conftest.$ac_ext <<_ACEOF
5880 /* end confdefs.h. */
5881 #include <sys/types.h>
5882 /* Check that off_t can represent 2**63 - 1 correctly.
5883 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5884 since some C++ compilers masquerading as C compilers
5885 incorrectly reject 9223372036854775807. */
5886 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5887 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5888 && LARGE_OFF_T % 2147483647 == 1)
5898 rm -f conftest.$ac_objext
5899 if { (ac_try="$ac_compile"
5901 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5902 *) ac_try_echo
=$ac_try;;
5904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5905 (eval "$ac_compile") 2>conftest.er1
5907 grep -v '^ *+' conftest.er1
>conftest.err
5909 cat conftest.err
>&5
5910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911 (exit $ac_status); } && {
5912 test -z "$ac_c_werror_flag" ||
5913 test ! -s conftest.err
5914 } && test -s conftest.
$ac_objext; then
5915 ac_cv_sys_large_files
=no
; break
5917 echo "$as_me: failed program was:" >&5
5918 sed 's/^/| /' conftest.
$ac_ext >&5
5923 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5924 cat >conftest.
$ac_ext <<_ACEOF
5927 cat confdefs.h
>>conftest.
$ac_ext
5928 cat >>conftest.
$ac_ext <<_ACEOF
5929 /* end confdefs.h. */
5930 #define _LARGE_FILES 1
5931 #include <sys/types.h>
5932 /* Check that off_t can represent 2**63 - 1 correctly.
5933 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5934 since some C++ compilers masquerading as C compilers
5935 incorrectly reject 9223372036854775807. */
5936 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5937 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5938 && LARGE_OFF_T % 2147483647 == 1)
5948 rm -f conftest.
$ac_objext
5949 if { (ac_try
="$ac_compile"
5951 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5952 *) ac_try_echo=$ac_try;;
5954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5955 (eval "$ac_compile") 2>conftest.er1
5957 grep -v '^ *+' conftest.er1 >conftest.err
5959 cat conftest.err >&5
5960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961 (exit $ac_status); } && {
5962 test -z "$ac_c_werror_flag" ||
5963 test ! -s conftest.err
5964 } && test -s conftest.$ac_objext; then
5965 ac_cv_sys_large_files=1; break
5967 echo "$as_me: failed program was:" >&5
5968 sed 's/^/| /' conftest.$ac_ext >&5
5973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5974 ac_cv_sys_large_files=unknown
5978 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5979 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5980 case $ac_cv_sys_large_files in #(
5983 cat >>confdefs.h <<_ACEOF
5984 #define _LARGE_FILES $ac_cv_sys_large_files
5994 ### The standard library on x86-64 GNU/Linux distributions can
5995 ### be located in either /usr/lib64 or /usr/lib.
5996 case "${canonical}" in
5997 x86_64-*-linux-gnu* )
5998 if test -d /usr/lib64; then
6000 cat >>confdefs.h <<\_ACEOF
6001 #define HAVE_X86_64_LIB64_DIR 1
6010 if test "${with_sound}" != "no"; then
6011 # Sound support for GNU/Linux and the free BSDs.
6012 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6013 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6014 if test "${ac_cv_header_stdc+set}" = set; then
6015 echo $ECHO_N "(cached) $ECHO_C" >&6
6017 cat >conftest.$ac_ext <<_ACEOF
6020 cat confdefs.h >>conftest.$ac_ext
6021 cat >>conftest.$ac_ext <<_ACEOF
6022 /* end confdefs.h. */
6036 rm -f conftest.$ac_objext
6037 if { (ac_try="$ac_compile"
6039 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6040 *) ac_try_echo
=$ac_try;;
6042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6043 (eval "$ac_compile") 2>conftest.er1
6045 grep -v '^ *+' conftest.er1
>conftest.err
6047 cat conftest.err
>&5
6048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049 (exit $ac_status); } && {
6050 test -z "$ac_c_werror_flag" ||
6051 test ! -s conftest.err
6052 } && test -s conftest.
$ac_objext; then
6053 ac_cv_header_stdc
=yes
6055 echo "$as_me: failed program was:" >&5
6056 sed 's/^/| /' conftest.
$ac_ext >&5
6058 ac_cv_header_stdc
=no
6061 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6063 if test $ac_cv_header_stdc = yes; then
6064 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6065 cat >conftest.
$ac_ext <<_ACEOF
6068 cat confdefs.h
>>conftest.
$ac_ext
6069 cat >>conftest.
$ac_ext <<_ACEOF
6070 /* end confdefs.h. */
6074 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6075 $EGREP "memchr" >/dev
/null
2>&1; then
6078 ac_cv_header_stdc
=no
6084 if test $ac_cv_header_stdc = yes; then
6085 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6086 cat >conftest.
$ac_ext <<_ACEOF
6089 cat confdefs.h
>>conftest.
$ac_ext
6090 cat >>conftest.
$ac_ext <<_ACEOF
6091 /* end confdefs.h. */
6095 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6096 $EGREP "free" >/dev
/null
2>&1; then
6099 ac_cv_header_stdc
=no
6105 if test $ac_cv_header_stdc = yes; then
6106 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6107 if test "$cross_compiling" = yes; then
6110 cat >conftest.
$ac_ext <<_ACEOF
6113 cat confdefs.h
>>conftest.
$ac_ext
6114 cat >>conftest.
$ac_ext <<_ACEOF
6115 /* end confdefs.h. */
6118 #if ((' ' & 0x0FF) == 0x020)
6119 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6120 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6122 # define ISLOWER(c) \
6123 (('a' <= (c) && (c) <= 'i') \
6124 || ('j' <= (c) && (c) <= 'r') \
6125 || ('s' <= (c) && (c) <= 'z'))
6126 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6129 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6134 for (i = 0; i < 256; i++)
6135 if (XOR (islower (i), ISLOWER (i))
6136 || toupper (i) != TOUPPER (i))
6141 rm -f conftest
$ac_exeext
6142 if { (ac_try
="$ac_link"
6144 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6145 *) ac_try_echo=$ac_try;;
6147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6148 (eval "$ac_link") 2>&5
6150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6152 { (case "(($ac_try" in
6153 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6154 *) ac_try_echo
=$ac_try;;
6156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6157 (eval "$ac_try") 2>&5
6159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160 (exit $ac_status); }; }; then
6163 echo "$as_me: program exited with status $ac_status" >&5
6164 echo "$as_me: failed program was:" >&5
6165 sed 's/^/| /' conftest.
$ac_ext >&5
6168 ac_cv_header_stdc
=no
6170 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6176 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6177 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6178 if test $ac_cv_header_stdc = yes; then
6180 cat >>confdefs.h
<<\_ACEOF
6181 #define STDC_HEADERS 1
6186 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6196 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6197 inttypes.h stdint.h unistd.h
6199 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6200 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6201 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6202 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6203 echo $ECHO_N "(cached) $ECHO_C" >&6
6205 cat >conftest.
$ac_ext <<_ACEOF
6208 cat confdefs.h
>>conftest.
$ac_ext
6209 cat >>conftest.
$ac_ext <<_ACEOF
6210 /* end confdefs.h. */
6211 $ac_includes_default
6213 #include <$ac_header>
6215 rm -f conftest.
$ac_objext
6216 if { (ac_try
="$ac_compile"
6218 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6219 *) ac_try_echo=$ac_try;;
6221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6222 (eval "$ac_compile") 2>conftest.er1
6224 grep -v '^ *+' conftest.er1 >conftest.err
6226 cat conftest.err >&5
6227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6228 (exit $ac_status); } && {
6229 test -z "$ac_c_werror_flag" ||
6230 test ! -s conftest.err
6231 } && test -s conftest.$ac_objext; then
6232 eval "$as_ac_Header=yes"
6234 echo "$as_me: failed program was:" >&5
6235 sed 's/^/| /' conftest.$ac_ext >&5
6237 eval "$as_ac_Header=no"
6240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6242 ac_res=`eval echo '${'$as_ac_Header'}'`
6243 { echo "$as_me:$LINENO: result: $ac_res" >&5
6244 echo "${ECHO_T}$ac_res" >&6; }
6245 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6246 cat >>confdefs.h <<_ACEOF
6247 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6258 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6260 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6261 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6262 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6263 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6264 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6265 echo $ECHO_N "(cached) $ECHO_C" >&6
6267 ac_res=`eval echo '${'$as_ac_Header'}'`
6268 { echo "$as_me:$LINENO: result: $ac_res" >&5
6269 echo "${ECHO_T}$ac_res" >&6; }
6271 # Is the header compilable?
6272 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6273 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6274 cat >conftest.$ac_ext <<_ACEOF
6277 cat confdefs.h >>conftest.$ac_ext
6278 cat >>conftest.$ac_ext <<_ACEOF
6279 /* end confdefs.h. */
6280 $ac_includes_default
6281 #include <$ac_header>
6283 rm -f conftest.$ac_objext
6284 if { (ac_try="$ac_compile"
6286 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6287 *) ac_try_echo
=$ac_try;;
6289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6290 (eval "$ac_compile") 2>conftest.er1
6292 grep -v '^ *+' conftest.er1
>conftest.err
6294 cat conftest.err
>&5
6295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296 (exit $ac_status); } && {
6297 test -z "$ac_c_werror_flag" ||
6298 test ! -s conftest.err
6299 } && test -s conftest.
$ac_objext; then
6300 ac_header_compiler
=yes
6302 echo "$as_me: failed program was:" >&5
6303 sed 's/^/| /' conftest.
$ac_ext >&5
6305 ac_header_compiler
=no
6308 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6309 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6310 echo "${ECHO_T}$ac_header_compiler" >&6; }
6312 # Is the header present?
6313 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6314 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6315 cat >conftest.
$ac_ext <<_ACEOF
6318 cat confdefs.h
>>conftest.
$ac_ext
6319 cat >>conftest.
$ac_ext <<_ACEOF
6320 /* end confdefs.h. */
6321 #include <$ac_header>
6323 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6325 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6326 *) ac_try_echo=$ac_try;;
6328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6329 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6331 grep -v '^ *+' conftest.er1 >conftest.err
6333 cat conftest.err >&5
6334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335 (exit $ac_status); } >/dev/null && {
6336 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6337 test ! -s conftest.err
6339 ac_header_preproc=yes
6341 echo "$as_me: failed program was:" >&5
6342 sed 's/^/| /' conftest.$ac_ext >&5
6344 ac_header_preproc=no
6347 rm -f conftest.err conftest.$ac_ext
6348 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6349 echo "${ECHO_T}$ac_header_preproc" >&6; }
6351 # So? What about this header?
6352 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6354 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6355 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6356 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6357 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6358 ac_header_preproc=yes
6361 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6362 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6363 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6364 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6365 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6366 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6367 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6368 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6369 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6370 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6371 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6372 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6376 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6378 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6379 echo $ECHO_N "(cached) $ECHO_C" >&6
6381 eval "$as_ac_Header=\$ac_header_preproc"
6383 ac_res=`eval echo '${'$as_ac_Header'}'`
6384 { echo "$as_me:$LINENO: result: $ac_res" >&5
6385 echo "${ECHO_T}$ac_res" >&6; }
6388 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6389 cat >>confdefs.h <<_ACEOF
6390 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6397 # Emulation library used on NetBSD.
6398 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6399 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6400 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6401 echo $ECHO_N "(cached) $ECHO_C" >&6
6403 ac_check_lib_save_LIBS=$LIBS
6404 LIBS="-lossaudio $LIBS"
6405 cat >conftest.$ac_ext <<_ACEOF
6408 cat confdefs.h >>conftest.$ac_ext
6409 cat >>conftest.$ac_ext <<_ACEOF
6410 /* end confdefs.h. */
6412 /* Override any GCC internal prototype to avoid an error.
6413 Use char because int might match the return type of a GCC
6414 builtin and then its argument prototype would still apply. */
6422 return _oss_ioctl ();
6427 rm -f conftest.$ac_objext conftest$ac_exeext
6428 if { (ac_try="$ac_link"
6430 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6431 *) ac_try_echo
=$ac_try;;
6433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6434 (eval "$ac_link") 2>conftest.er1
6436 grep -v '^ *+' conftest.er1
>conftest.err
6438 cat conftest.err
>&5
6439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440 (exit $ac_status); } && {
6441 test -z "$ac_c_werror_flag" ||
6442 test ! -s conftest.err
6443 } && test -s conftest
$ac_exeext &&
6444 $as_test_x conftest
$ac_exeext; then
6445 ac_cv_lib_ossaudio__oss_ioctl
=yes
6447 echo "$as_me: failed program was:" >&5
6448 sed 's/^/| /' conftest.
$ac_ext >&5
6450 ac_cv_lib_ossaudio__oss_ioctl
=no
6453 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6454 conftest
$ac_exeext conftest.
$ac_ext
6455 LIBS
=$ac_check_lib_save_LIBS
6457 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6458 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6459 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6468 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6469 if test "X${with_pkg_config_prog}" != X
; then
6470 PKG_CONFIG
="${with_pkg_config_prog}"
6475 if test -z "$PKG_CONFIG"; then
6476 # Extract the first word of "pkg-config", so it can be a program name with args.
6477 set dummy pkg-config
; ac_word
=$2
6478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6480 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6481 echo $ECHO_N "(cached) $ECHO_C" >&6
6485 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6488 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6492 test -z "$as_dir" && as_dir
=.
6493 for ac_exec_ext
in '' $ac_executable_extensions; do
6494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6495 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6503 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6507 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6508 if test -n "$PKG_CONFIG"; then
6509 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6510 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6512 { echo "$as_me:$LINENO: result: no" >&5
6513 echo "${ECHO_T}no" >&6; }
6519 if test "$PKG_CONFIG" = "no" ; then
6522 PKG_CONFIG_MIN_VERSION
=0.9.0
6523 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6524 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6525 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6527 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6528 { echo "$as_me:$LINENO: result: yes" >&5
6529 echo "${ECHO_T}yes" >&6; }
6532 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6533 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6534 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6535 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6536 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6538 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6539 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6540 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6541 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6542 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6544 { echo "$as_me:$LINENO: result: no" >&5
6545 echo "${ECHO_T}no" >&6; }
6548 ## If we have a custom action on failure, don't print errors, but
6549 ## do set a variable so people can do so.
6550 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6557 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6558 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6562 if test $succeeded = yes; then
6568 if test $HAVE_ALSA = yes; then
6569 SAVE_CFLAGS
="$CFLAGS"
6570 SAVE_LDFLAGS
="$LDFLAGS"
6571 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6572 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6573 cat >conftest.
$ac_ext <<_ACEOF
6576 cat confdefs.h
>>conftest.
$ac_ext
6577 cat >>conftest.
$ac_ext <<_ACEOF
6578 /* end confdefs.h. */
6579 #include <asoundlib.h>
6583 snd_lib_error_set_handler (0);
6588 rm -f conftest.
$ac_objext
6589 if { (ac_try
="$ac_compile"
6591 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6592 *) ac_try_echo=$ac_try;;
6594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6595 (eval "$ac_compile") 2>conftest.er1
6597 grep -v '^ *+' conftest.er1 >conftest.err
6599 cat conftest.err >&5
6600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601 (exit $ac_status); } && {
6602 test -z "$ac_c_werror_flag" ||
6603 test ! -s conftest.err
6604 } && test -s conftest.$ac_objext; then
6605 emacs_alsa_normal=yes
6607 echo "$as_me: failed program was:" >&5
6608 sed 's/^/| /' conftest.$ac_ext >&5
6610 emacs_alsa_normal=no
6613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6614 if test "$emacs_alsa_normal" != yes; then
6615 cat >conftest.$ac_ext <<_ACEOF
6618 cat confdefs.h >>conftest.$ac_ext
6619 cat >>conftest.$ac_ext <<_ACEOF
6620 /* end confdefs.h. */
6621 #include <alsa/asoundlib.h>
6625 snd_lib_error_set_handler (0);
6630 rm -f conftest.$ac_objext
6631 if { (ac_try="$ac_compile"
6633 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6634 *) ac_try_echo
=$ac_try;;
6636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6637 (eval "$ac_compile") 2>conftest.er1
6639 grep -v '^ *+' conftest.er1
>conftest.err
6641 cat conftest.err
>&5
6642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6643 (exit $ac_status); } && {
6644 test -z "$ac_c_werror_flag" ||
6645 test ! -s conftest.err
6646 } && test -s conftest.
$ac_objext; then
6647 emacs_alsa_subdir
=yes
6649 echo "$as_me: failed program was:" >&5
6650 sed 's/^/| /' conftest.
$ac_ext >&5
6652 emacs_alsa_subdir
=no
6655 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6656 if test "$emacs_alsa_subdir" != yes; then
6657 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6658 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6659 { (exit 1); exit 1; }; }
6661 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6664 CFLAGS
="$SAVE_CFLAGS"
6665 LDFLAGS
="$SAVE_LDFLAGS"
6666 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6667 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6669 cat >>confdefs.h
<<\_ACEOF
6702 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6703 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6704 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6705 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6708 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6709 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6710 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6711 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6712 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6713 echo $ECHO_N "(cached) $ECHO_C" >&6
6715 ac_res
=`eval echo '${'$as_ac_Header'}'`
6716 { echo "$as_me:$LINENO: result: $ac_res" >&5
6717 echo "${ECHO_T}$ac_res" >&6; }
6719 # Is the header compilable?
6720 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6721 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6722 cat >conftest.
$ac_ext <<_ACEOF
6725 cat confdefs.h
>>conftest.
$ac_ext
6726 cat >>conftest.
$ac_ext <<_ACEOF
6727 /* end confdefs.h. */
6728 $ac_includes_default
6729 #include <$ac_header>
6731 rm -f conftest.
$ac_objext
6732 if { (ac_try
="$ac_compile"
6734 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6735 *) ac_try_echo=$ac_try;;
6737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6738 (eval "$ac_compile") 2>conftest.er1
6740 grep -v '^ *+' conftest.er1 >conftest.err
6742 cat conftest.err >&5
6743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744 (exit $ac_status); } && {
6745 test -z "$ac_c_werror_flag" ||
6746 test ! -s conftest.err
6747 } && test -s conftest.$ac_objext; then
6748 ac_header_compiler=yes
6750 echo "$as_me: failed program was:" >&5
6751 sed 's/^/| /' conftest.$ac_ext >&5
6753 ac_header_compiler=no
6756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6757 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6758 echo "${ECHO_T}$ac_header_compiler" >&6; }
6760 # Is the header present?
6761 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6762 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6763 cat >conftest.$ac_ext <<_ACEOF
6766 cat confdefs.h >>conftest.$ac_ext
6767 cat >>conftest.$ac_ext <<_ACEOF
6768 /* end confdefs.h. */
6769 #include <$ac_header>
6771 if { (ac_try="$ac_cpp conftest.$ac_ext"
6773 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6774 *) ac_try_echo
=$ac_try;;
6776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6777 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6779 grep -v '^ *+' conftest.er1
>conftest.err
6781 cat conftest.err
>&5
6782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6783 (exit $ac_status); } >/dev
/null
&& {
6784 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6785 test ! -s conftest.err
6787 ac_header_preproc
=yes
6789 echo "$as_me: failed program was:" >&5
6790 sed 's/^/| /' conftest.
$ac_ext >&5
6792 ac_header_preproc
=no
6795 rm -f conftest.err conftest.
$ac_ext
6796 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6797 echo "${ECHO_T}$ac_header_preproc" >&6; }
6799 # So? What about this header?
6800 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6802 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6803 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6804 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6805 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6806 ac_header_preproc
=yes
6809 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6810 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6811 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6812 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6813 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6814 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6815 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6816 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6817 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6818 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6819 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6820 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6824 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6825 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6826 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6827 echo $ECHO_N "(cached) $ECHO_C" >&6
6829 eval "$as_ac_Header=\$ac_header_preproc"
6831 ac_res
=`eval echo '${'$as_ac_Header'}'`
6832 { echo "$as_me:$LINENO: result: $ac_res" >&5
6833 echo "${ECHO_T}$ac_res" >&6; }
6836 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6837 cat >>confdefs.h
<<_ACEOF
6838 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6846 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6847 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6848 cat >conftest.
$ac_ext <<_ACEOF
6851 cat confdefs.h
>>conftest.
$ac_ext
6852 cat >>conftest.
$ac_ext <<_ACEOF
6853 /* end confdefs.h. */
6854 #include <sys/personality.h>
6858 personality (PER_LINUX32)
6863 rm -f conftest.
$ac_objext
6864 if { (ac_try
="$ac_compile"
6866 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6867 *) ac_try_echo=$ac_try;;
6869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6870 (eval "$ac_compile") 2>conftest.er1
6872 grep -v '^ *+' conftest.er1 >conftest.err
6874 cat conftest.err >&5
6875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6876 (exit $ac_status); } && {
6877 test -z "$ac_c_werror_flag" ||
6878 test ! -s conftest.err
6879 } && test -s conftest.$ac_objext; then
6880 emacs_cv_personality_linux32=yes
6882 echo "$as_me: failed program was:" >&5
6883 sed 's/^/| /' conftest.$ac_ext >&5
6885 emacs_cv_personality_linux32=no
6888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6889 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6890 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6892 if test $emacs_cv_personality_linux32 = yes; then
6894 cat >>confdefs.h <<\_ACEOF
6895 #define HAVE_PERSONALITY_LINUX32 1
6901 for ac_header in term.h
6903 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6904 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6906 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6907 echo $ECHO_N "(cached) $ECHO_C" >&6
6909 cat >conftest.$ac_ext <<_ACEOF
6912 cat confdefs.h >>conftest.$ac_ext
6913 cat >>conftest.$ac_ext <<_ACEOF
6914 /* end confdefs.h. */
6915 #include <$ac_header>
6917 if { (ac_try="$ac_cpp conftest.$ac_ext"
6919 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6920 *) ac_try_echo
=$ac_try;;
6922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6923 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6925 grep -v '^ *+' conftest.er1
>conftest.err
6927 cat conftest.err
>&5
6928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6929 (exit $ac_status); } >/dev
/null
&& {
6930 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6931 test ! -s conftest.err
6933 eval "$as_ac_Header=yes"
6935 echo "$as_me: failed program was:" >&5
6936 sed 's/^/| /' conftest.
$ac_ext >&5
6938 eval "$as_ac_Header=no"
6941 rm -f conftest.err conftest.
$ac_ext
6943 ac_res
=`eval echo '${'$as_ac_Header'}'`
6944 { echo "$as_me:$LINENO: result: $ac_res" >&5
6945 echo "${ECHO_T}$ac_res" >&6; }
6946 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6947 cat >>confdefs.h
<<_ACEOF
6948 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6955 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6956 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6957 if test "${ac_cv_header_stdc+set}" = set; then
6958 echo $ECHO_N "(cached) $ECHO_C" >&6
6960 cat >conftest.
$ac_ext <<_ACEOF
6963 cat confdefs.h
>>conftest.
$ac_ext
6964 cat >>conftest.
$ac_ext <<_ACEOF
6965 /* end confdefs.h. */
6979 rm -f conftest.
$ac_objext
6980 if { (ac_try
="$ac_compile"
6982 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6983 *) ac_try_echo=$ac_try;;
6985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6986 (eval "$ac_compile") 2>conftest.er1
6988 grep -v '^ *+' conftest.er1 >conftest.err
6990 cat conftest.err >&5
6991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992 (exit $ac_status); } && {
6993 test -z "$ac_c_werror_flag" ||
6994 test ! -s conftest.err
6995 } && test -s conftest.$ac_objext; then
6996 ac_cv_header_stdc=yes
6998 echo "$as_me: failed program was:" >&5
6999 sed 's/^/| /' conftest.$ac_ext >&5
7001 ac_cv_header_stdc=no
7004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7006 if test $ac_cv_header_stdc = yes; then
7007 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7008 cat >conftest.$ac_ext <<_ACEOF
7011 cat confdefs.h >>conftest.$ac_ext
7012 cat >>conftest.$ac_ext <<_ACEOF
7013 /* end confdefs.h. */
7017 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7018 $EGREP "memchr" >/dev/null 2>&1; then
7021 ac_cv_header_stdc=no
7027 if test $ac_cv_header_stdc = yes; then
7028 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7029 cat >conftest.$ac_ext <<_ACEOF
7032 cat confdefs.h >>conftest.$ac_ext
7033 cat >>conftest.$ac_ext <<_ACEOF
7034 /* end confdefs.h. */
7038 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7039 $EGREP "free" >/dev/null 2>&1; then
7042 ac_cv_header_stdc=no
7048 if test $ac_cv_header_stdc = yes; then
7049 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7050 if test "$cross_compiling" = yes; then
7053 cat >conftest.$ac_ext <<_ACEOF
7056 cat confdefs.h >>conftest.$ac_ext
7057 cat >>conftest.$ac_ext <<_ACEOF
7058 /* end confdefs.h. */
7061 #if ((' ' & 0x0FF) == 0x020)
7062 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7063 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7065 # define ISLOWER(c) \
7066 (('a' <= (c) && (c) <= 'i') \
7067 || ('j' <= (c) && (c) <= 'r') \
7068 || ('s' <= (c) && (c) <= 'z'))
7069 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7072 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7077 for (i = 0; i < 256; i++)
7078 if (XOR (islower (i), ISLOWER (i))
7079 || toupper (i) != TOUPPER (i))
7084 rm -f conftest$ac_exeext
7085 if { (ac_try="$ac_link"
7087 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7088 *) ac_try_echo
=$ac_try;;
7090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7091 (eval "$ac_link") 2>&5
7093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7094 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7095 { (case "(($ac_try" in
7096 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7097 *) ac_try_echo=$ac_try;;
7099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7100 (eval "$ac_try") 2>&5
7102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7103 (exit $ac_status); }; }; then
7106 echo "$as_me: program exited with status $ac_status" >&5
7107 echo "$as_me: failed program was:" >&5
7108 sed 's/^/| /' conftest.$ac_ext >&5
7111 ac_cv_header_stdc=no
7113 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7119 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7120 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7121 if test $ac_cv_header_stdc = yes; then
7123 cat >>confdefs.h <<\_ACEOF
7124 #define STDC_HEADERS 1
7129 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7130 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
7131 if test "${ac_cv_header_time+set}" = set; then
7132 echo $ECHO_N "(cached) $ECHO_C" >&6
7134 cat >conftest.$ac_ext <<_ACEOF
7137 cat confdefs.h >>conftest.$ac_ext
7138 cat >>conftest.$ac_ext <<_ACEOF
7139 /* end confdefs.h. */
7140 #include <sys/types.h>
7141 #include <sys/time.h>
7147 if ((struct tm *) 0)
7153 rm -f conftest.$ac_objext
7154 if { (ac_try="$ac_compile"
7156 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7157 *) ac_try_echo
=$ac_try;;
7159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7160 (eval "$ac_compile") 2>conftest.er1
7162 grep -v '^ *+' conftest.er1
>conftest.err
7164 cat conftest.err
>&5
7165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7166 (exit $ac_status); } && {
7167 test -z "$ac_c_werror_flag" ||
7168 test ! -s conftest.err
7169 } && test -s conftest.
$ac_objext; then
7170 ac_cv_header_time
=yes
7172 echo "$as_me: failed program was:" >&5
7173 sed 's/^/| /' conftest.
$ac_ext >&5
7175 ac_cv_header_time
=no
7178 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7180 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7181 echo "${ECHO_T}$ac_cv_header_time" >&6; }
7182 if test $ac_cv_header_time = yes; then
7184 cat >>confdefs.h
<<\_ACEOF
7185 #define TIME_WITH_SYS_TIME 1
7190 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7191 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
7192 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7193 echo $ECHO_N "(cached) $ECHO_C" >&6
7195 cat >conftest.
$ac_ext <<_ACEOF
7198 cat confdefs.h
>>conftest.
$ac_ext
7199 cat >>conftest.
$ac_ext <<_ACEOF
7200 /* end confdefs.h. */
7201 $ac_includes_default
7213 rm -f conftest.
$ac_objext
7214 if { (ac_try
="$ac_compile"
7216 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7217 *) ac_try_echo=$ac_try;;
7219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7220 (eval "$ac_compile") 2>conftest.er1
7222 grep -v '^ *+' conftest.er1 >conftest.err
7224 cat conftest.err >&5
7225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7226 (exit $ac_status); } && {
7227 test -z "$ac_c_werror_flag" ||
7228 test ! -s conftest.err
7229 } && test -s conftest.$ac_objext; then
7230 ac_cv_have_decl_sys_siglist=yes
7232 echo "$as_me: failed program was:" >&5
7233 sed 's/^/| /' conftest.$ac_ext >&5
7235 ac_cv_have_decl_sys_siglist=no
7238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7240 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7241 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7242 if test $ac_cv_have_decl_sys_siglist = yes; then
7244 cat >>confdefs.h <<_ACEOF
7245 #define HAVE_DECL_SYS_SIGLIST 1
7250 cat >>confdefs.h <<_ACEOF
7251 #define HAVE_DECL_SYS_SIGLIST 0
7258 if test $ac_cv_have_decl_sys_siglist != yes; then
7259 # For Tru64, at least:
7260 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7261 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7262 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7263 echo $ECHO_N "(cached) $ECHO_C" >&6
7265 cat >conftest.$ac_ext <<_ACEOF
7268 cat confdefs.h >>conftest.$ac_ext
7269 cat >>conftest.$ac_ext <<_ACEOF
7270 /* end confdefs.h. */
7271 $ac_includes_default
7275 #ifndef __sys_siglist
7276 (void) __sys_siglist;
7283 rm -f conftest.$ac_objext
7284 if { (ac_try="$ac_compile"
7286 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7287 *) ac_try_echo
=$ac_try;;
7289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7290 (eval "$ac_compile") 2>conftest.er1
7292 grep -v '^ *+' conftest.er1
>conftest.err
7294 cat conftest.err
>&5
7295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296 (exit $ac_status); } && {
7297 test -z "$ac_c_werror_flag" ||
7298 test ! -s conftest.err
7299 } && test -s conftest.
$ac_objext; then
7300 ac_cv_have_decl___sys_siglist
=yes
7302 echo "$as_me: failed program was:" >&5
7303 sed 's/^/| /' conftest.
$ac_ext >&5
7305 ac_cv_have_decl___sys_siglist
=no
7308 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7310 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7311 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7312 if test $ac_cv_have_decl___sys_siglist = yes; then
7314 cat >>confdefs.h
<<_ACEOF
7315 #define HAVE_DECL___SYS_SIGLIST 1
7320 cat >>confdefs.h
<<_ACEOF
7321 #define HAVE_DECL___SYS_SIGLIST 0
7328 if test $ac_cv_have_decl___sys_siglist = yes; then
7330 cat >>confdefs.h
<<\_ACEOF
7331 #define sys_siglist __sys_siglist
7336 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7337 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7338 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7339 echo $ECHO_N "(cached) $ECHO_C" >&6
7341 cat >conftest.
$ac_ext <<_ACEOF
7344 cat confdefs.h
>>conftest.
$ac_ext
7345 cat >>conftest.
$ac_ext <<_ACEOF
7346 /* end confdefs.h. */
7347 #include <sys/types.h>
7348 #include <sys/wait.h>
7350 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7353 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7361 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7366 rm -f conftest.
$ac_objext
7367 if { (ac_try
="$ac_compile"
7369 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7370 *) ac_try_echo=$ac_try;;
7372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7373 (eval "$ac_compile") 2>conftest.er1
7375 grep -v '^ *+' conftest.er1 >conftest.err
7377 cat conftest.err >&5
7378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7379 (exit $ac_status); } && {
7380 test -z "$ac_c_werror_flag" ||
7381 test ! -s conftest.err
7382 } && test -s conftest.$ac_objext; then
7383 ac_cv_header_sys_wait_h=yes
7385 echo "$as_me: failed program was:" >&5
7386 sed 's/^/| /' conftest.$ac_ext >&5
7388 ac_cv_header_sys_wait_h=no
7391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7393 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7394 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7395 if test $ac_cv_header_sys_wait_h = yes; then
7397 cat >>confdefs.h <<\_ACEOF
7398 #define HAVE_SYS_WAIT_H 1
7404 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7405 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7406 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7407 echo $ECHO_N "(cached) $ECHO_C" >&6
7409 cat >conftest.$ac_ext <<_ACEOF
7412 cat confdefs.h >>conftest.$ac_ext
7413 cat >>conftest.$ac_ext <<_ACEOF
7414 /* end confdefs.h. */
7415 #ifdef TIME_WITH_SYS_TIME
7416 #include <sys/time.h>
7419 #ifdef HAVE_SYS_TIME_H
7420 #include <sys/time.h>
7431 static struct utimbuf x; x.actime = x.modtime;
7436 rm -f conftest.$ac_objext
7437 if { (ac_try="$ac_compile"
7439 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7440 *) ac_try_echo
=$ac_try;;
7442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7443 (eval "$ac_compile") 2>conftest.er1
7445 grep -v '^ *+' conftest.er1
>conftest.err
7447 cat conftest.err
>&5
7448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449 (exit $ac_status); } && {
7450 test -z "$ac_c_werror_flag" ||
7451 test ! -s conftest.err
7452 } && test -s conftest.
$ac_objext; then
7453 emacs_cv_struct_utimbuf
=yes
7455 echo "$as_me: failed program was:" >&5
7456 sed 's/^/| /' conftest.
$ac_ext >&5
7458 emacs_cv_struct_utimbuf
=no
7461 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7463 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7464 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7465 if test $emacs_cv_struct_utimbuf = yes; then
7467 cat >>confdefs.h
<<\_ACEOF
7468 #define HAVE_STRUCT_UTIMBUF 1
7473 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7474 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7475 if test "${ac_cv_type_signal+set}" = set; then
7476 echo $ECHO_N "(cached) $ECHO_C" >&6
7478 cat >conftest.
$ac_ext <<_ACEOF
7481 cat confdefs.h
>>conftest.
$ac_ext
7482 cat >>conftest.
$ac_ext <<_ACEOF
7483 /* end confdefs.h. */
7484 #include <sys/types.h>
7490 return *(signal (0, 0)) (0) == 1;
7495 rm -f conftest.
$ac_objext
7496 if { (ac_try
="$ac_compile"
7498 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7499 *) ac_try_echo=$ac_try;;
7501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7502 (eval "$ac_compile") 2>conftest.er1
7504 grep -v '^ *+' conftest.er1 >conftest.err
7506 cat conftest.err >&5
7507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7508 (exit $ac_status); } && {
7509 test -z "$ac_c_werror_flag" ||
7510 test ! -s conftest.err
7511 } && test -s conftest.$ac_objext; then
7512 ac_cv_type_signal=int
7514 echo "$as_me: failed program was:" >&5
7515 sed 's/^/| /' conftest.$ac_ext >&5
7517 ac_cv_type_signal=void
7520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7522 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7523 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7525 cat >>confdefs.h <<_ACEOF
7526 #define RETSIGTYPE $ac_cv_type_signal
7531 { echo "$as_me:$LINENO: checking for speed_t" >&5
7532 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7533 if test "${emacs_cv_speed_t+set}" = set; then
7534 echo $ECHO_N "(cached) $ECHO_C" >&6
7536 cat >conftest.$ac_ext <<_ACEOF
7539 cat confdefs.h >>conftest.$ac_ext
7540 cat >>conftest.$ac_ext <<_ACEOF
7541 /* end confdefs.h. */
7542 #include <termios.h>
7551 rm -f conftest.$ac_objext
7552 if { (ac_try="$ac_compile"
7554 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7555 *) ac_try_echo
=$ac_try;;
7557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7558 (eval "$ac_compile") 2>conftest.er1
7560 grep -v '^ *+' conftest.er1
>conftest.err
7562 cat conftest.err
>&5
7563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7564 (exit $ac_status); } && {
7565 test -z "$ac_c_werror_flag" ||
7566 test ! -s conftest.err
7567 } && test -s conftest.
$ac_objext; then
7568 emacs_cv_speed_t
=yes
7570 echo "$as_me: failed program was:" >&5
7571 sed 's/^/| /' conftest.
$ac_ext >&5
7576 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7578 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7579 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7580 if test $emacs_cv_speed_t = yes; then
7582 cat >>confdefs.h
<<\_ACEOF
7583 #define HAVE_SPEED_T 1
7588 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7589 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7590 if test "${emacs_cv_struct_timeval+set}" = set; then
7591 echo $ECHO_N "(cached) $ECHO_C" >&6
7593 cat >conftest.
$ac_ext <<_ACEOF
7596 cat confdefs.h
>>conftest.
$ac_ext
7597 cat >>conftest.
$ac_ext <<_ACEOF
7598 /* end confdefs.h. */
7599 #ifdef TIME_WITH_SYS_TIME
7600 #include <sys/time.h>
7603 #ifdef HAVE_SYS_TIME_H
7604 #include <sys/time.h>
7612 static struct timeval x; x.tv_sec = x.tv_usec;
7617 rm -f conftest.
$ac_objext
7618 if { (ac_try
="$ac_compile"
7620 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7621 *) ac_try_echo=$ac_try;;
7623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7624 (eval "$ac_compile") 2>conftest.er1
7626 grep -v '^ *+' conftest.er1 >conftest.err
7628 cat conftest.err >&5
7629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7630 (exit $ac_status); } && {
7631 test -z "$ac_c_werror_flag" ||
7632 test ! -s conftest.err
7633 } && test -s conftest.$ac_objext; then
7634 emacs_cv_struct_timeval=yes
7636 echo "$as_me: failed program was:" >&5
7637 sed 's/^/| /' conftest.$ac_ext >&5
7639 emacs_cv_struct_timeval=no
7642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7644 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7645 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7646 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7647 if test $emacs_cv_struct_timeval = yes; then
7649 cat >>confdefs.h <<\_ACEOF
7650 #define HAVE_TIMEVAL 1
7655 { echo "$as_me:$LINENO: checking for struct exception" >&5
7656 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7657 if test "${emacs_cv_struct_exception+set}" = set; then
7658 echo $ECHO_N "(cached) $ECHO_C" >&6
7660 cat >conftest.$ac_ext <<_ACEOF
7663 cat confdefs.h >>conftest.$ac_ext
7664 cat >>conftest.$ac_ext <<_ACEOF
7665 /* end confdefs.h. */
7670 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7675 rm -f conftest.$ac_objext
7676 if { (ac_try="$ac_compile"
7678 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7679 *) ac_try_echo
=$ac_try;;
7681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7682 (eval "$ac_compile") 2>conftest.er1
7684 grep -v '^ *+' conftest.er1
>conftest.err
7686 cat conftest.err
>&5
7687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7688 (exit $ac_status); } && {
7689 test -z "$ac_c_werror_flag" ||
7690 test ! -s conftest.err
7691 } && test -s conftest.
$ac_objext; then
7692 emacs_cv_struct_exception
=yes
7694 echo "$as_me: failed program was:" >&5
7695 sed 's/^/| /' conftest.
$ac_ext >&5
7697 emacs_cv_struct_exception
=no
7700 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7702 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7703 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7704 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7705 if test $emacs_cv_struct_exception != yes; then
7707 cat >>confdefs.h
<<\_ACEOF
7708 #define NO_MATHERR 1
7714 for ac_header
in sys
/socket.h
7716 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7717 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7718 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7719 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7720 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7721 echo $ECHO_N "(cached) $ECHO_C" >&6
7723 ac_res
=`eval echo '${'$as_ac_Header'}'`
7724 { echo "$as_me:$LINENO: result: $ac_res" >&5
7725 echo "${ECHO_T}$ac_res" >&6; }
7727 # Is the header compilable?
7728 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7729 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7730 cat >conftest.
$ac_ext <<_ACEOF
7733 cat confdefs.h
>>conftest.
$ac_ext
7734 cat >>conftest.
$ac_ext <<_ACEOF
7735 /* end confdefs.h. */
7736 $ac_includes_default
7737 #include <$ac_header>
7739 rm -f conftest.
$ac_objext
7740 if { (ac_try
="$ac_compile"
7742 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7743 *) ac_try_echo=$ac_try;;
7745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7746 (eval "$ac_compile") 2>conftest.er1
7748 grep -v '^ *+' conftest.er1 >conftest.err
7750 cat conftest.err >&5
7751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7752 (exit $ac_status); } && {
7753 test -z "$ac_c_werror_flag" ||
7754 test ! -s conftest.err
7755 } && test -s conftest.$ac_objext; then
7756 ac_header_compiler=yes
7758 echo "$as_me: failed program was:" >&5
7759 sed 's/^/| /' conftest.$ac_ext >&5
7761 ac_header_compiler=no
7764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7765 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7766 echo "${ECHO_T}$ac_header_compiler" >&6; }
7768 # Is the header present?
7769 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7770 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7771 cat >conftest.$ac_ext <<_ACEOF
7774 cat confdefs.h >>conftest.$ac_ext
7775 cat >>conftest.$ac_ext <<_ACEOF
7776 /* end confdefs.h. */
7777 #include <$ac_header>
7779 if { (ac_try="$ac_cpp conftest.$ac_ext"
7781 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7782 *) ac_try_echo
=$ac_try;;
7784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7785 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7787 grep -v '^ *+' conftest.er1
>conftest.err
7789 cat conftest.err
>&5
7790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791 (exit $ac_status); } >/dev
/null
&& {
7792 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7793 test ! -s conftest.err
7795 ac_header_preproc
=yes
7797 echo "$as_me: failed program was:" >&5
7798 sed 's/^/| /' conftest.
$ac_ext >&5
7800 ac_header_preproc
=no
7803 rm -f conftest.err conftest.
$ac_ext
7804 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7805 echo "${ECHO_T}$ac_header_preproc" >&6; }
7807 # So? What about this header?
7808 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7810 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7811 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7812 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7813 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7814 ac_header_preproc
=yes
7817 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7818 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7819 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7820 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7821 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7822 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7823 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7824 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7825 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7826 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7827 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7828 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7832 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7833 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7834 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7835 echo $ECHO_N "(cached) $ECHO_C" >&6
7837 eval "$as_ac_Header=\$ac_header_preproc"
7839 ac_res
=`eval echo '${'$as_ac_Header'}'`
7840 { echo "$as_me:$LINENO: result: $ac_res" >&5
7841 echo "${ECHO_T}$ac_res" >&6; }
7844 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7845 cat >>confdefs.h
<<_ACEOF
7846 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7854 for ac_header
in net
/if.h
7856 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7857 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7859 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7860 echo $ECHO_N "(cached) $ECHO_C" >&6
7862 cat >conftest.
$ac_ext <<_ACEOF
7865 cat confdefs.h
>>conftest.
$ac_ext
7866 cat >>conftest.
$ac_ext <<_ACEOF
7867 /* end confdefs.h. */
7868 $ac_includes_default
7869 #if HAVE_SYS_SOCKET_H
7870 #include <sys/socket.h>
7873 #include <$ac_header>
7875 rm -f conftest.
$ac_objext
7876 if { (ac_try
="$ac_compile"
7878 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7879 *) ac_try_echo=$ac_try;;
7881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7882 (eval "$ac_compile") 2>conftest.er1
7884 grep -v '^ *+' conftest.er1 >conftest.err
7886 cat conftest.err >&5
7887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888 (exit $ac_status); } && {
7889 test -z "$ac_c_werror_flag" ||
7890 test ! -s conftest.err
7891 } && test -s conftest.$ac_objext; then
7892 eval "$as_ac_Header=yes"
7894 echo "$as_me: failed program was:" >&5
7895 sed 's/^/| /' conftest.$ac_ext >&5
7897 eval "$as_ac_Header=no"
7900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7902 ac_res=`eval echo '${'$as_ac_Header'}'`
7903 { echo "$as_me:$LINENO: result: $ac_res" >&5
7904 echo "${ECHO_T}$ac_res" >&6; }
7905 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7906 cat >>confdefs.h <<_ACEOF
7907 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7915 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7916 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7917 if test "${ac_cv_struct_tm+set}" = set; then
7918 echo $ECHO_N "(cached) $ECHO_C" >&6
7920 cat >conftest.$ac_ext <<_ACEOF
7923 cat confdefs.h >>conftest.$ac_ext
7924 cat >>conftest.$ac_ext <<_ACEOF
7925 /* end confdefs.h. */
7926 #include <sys/types.h>
7933 int *p = &tm.tm_sec;
7939 rm -f conftest.$ac_objext
7940 if { (ac_try="$ac_compile"
7942 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7943 *) ac_try_echo
=$ac_try;;
7945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7946 (eval "$ac_compile") 2>conftest.er1
7948 grep -v '^ *+' conftest.er1
>conftest.err
7950 cat conftest.err
>&5
7951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952 (exit $ac_status); } && {
7953 test -z "$ac_c_werror_flag" ||
7954 test ! -s conftest.err
7955 } && test -s conftest.
$ac_objext; then
7956 ac_cv_struct_tm
=time.h
7958 echo "$as_me: failed program was:" >&5
7959 sed 's/^/| /' conftest.
$ac_ext >&5
7961 ac_cv_struct_tm
=sys
/time.h
7964 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7966 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7967 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7968 if test $ac_cv_struct_tm = sys
/time.h
; then
7970 cat >>confdefs.h
<<\_ACEOF
7971 #define TM_IN_SYS_TIME 1
7976 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7977 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7978 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7979 echo $ECHO_N "(cached) $ECHO_C" >&6
7981 cat >conftest.
$ac_ext <<_ACEOF
7984 cat confdefs.h
>>conftest.
$ac_ext
7985 cat >>conftest.
$ac_ext <<_ACEOF
7986 /* end confdefs.h. */
7987 #include <sys/types.h>
7988 #include <$ac_cv_struct_tm>
7994 static struct tm ac_aggr;
7995 if (ac_aggr.tm_zone)
8001 rm -f conftest.
$ac_objext
8002 if { (ac_try
="$ac_compile"
8004 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8005 *) ac_try_echo=$ac_try;;
8007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8008 (eval "$ac_compile") 2>conftest.er1
8010 grep -v '^ *+' conftest.er1 >conftest.err
8012 cat conftest.err >&5
8013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8014 (exit $ac_status); } && {
8015 test -z "$ac_c_werror_flag" ||
8016 test ! -s conftest.err
8017 } && test -s conftest.$ac_objext; then
8018 ac_cv_member_struct_tm_tm_zone=yes
8020 echo "$as_me: failed program was:" >&5
8021 sed 's/^/| /' conftest.$ac_ext >&5
8023 cat >conftest.$ac_ext <<_ACEOF
8026 cat confdefs.h >>conftest.$ac_ext
8027 cat >>conftest.$ac_ext <<_ACEOF
8028 /* end confdefs.h. */
8029 #include <sys/types.h>
8030 #include <$ac_cv_struct_tm>
8036 static struct tm ac_aggr;
8037 if (sizeof ac_aggr.tm_zone)
8043 rm -f conftest.$ac_objext
8044 if { (ac_try="$ac_compile"
8046 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8047 *) ac_try_echo
=$ac_try;;
8049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8050 (eval "$ac_compile") 2>conftest.er1
8052 grep -v '^ *+' conftest.er1
>conftest.err
8054 cat conftest.err
>&5
8055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8056 (exit $ac_status); } && {
8057 test -z "$ac_c_werror_flag" ||
8058 test ! -s conftest.err
8059 } && test -s conftest.
$ac_objext; then
8060 ac_cv_member_struct_tm_tm_zone
=yes
8062 echo "$as_me: failed program was:" >&5
8063 sed 's/^/| /' conftest.
$ac_ext >&5
8065 ac_cv_member_struct_tm_tm_zone
=no
8068 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8071 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8073 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8074 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
8075 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8077 cat >>confdefs.h
<<_ACEOF
8078 #define HAVE_STRUCT_TM_TM_ZONE 1
8084 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8086 cat >>confdefs.h
<<\_ACEOF
8087 #define HAVE_TM_ZONE 1
8091 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8092 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
8093 if test "${ac_cv_have_decl_tzname+set}" = set; then
8094 echo $ECHO_N "(cached) $ECHO_C" >&6
8096 cat >conftest.
$ac_ext <<_ACEOF
8099 cat confdefs.h
>>conftest.
$ac_ext
8100 cat >>conftest.
$ac_ext <<_ACEOF
8101 /* end confdefs.h. */
8115 rm -f conftest.
$ac_objext
8116 if { (ac_try
="$ac_compile"
8118 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8119 *) ac_try_echo=$ac_try;;
8121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8122 (eval "$ac_compile") 2>conftest.er1
8124 grep -v '^ *+' conftest.er1 >conftest.err
8126 cat conftest.err >&5
8127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128 (exit $ac_status); } && {
8129 test -z "$ac_c_werror_flag" ||
8130 test ! -s conftest.err
8131 } && test -s conftest.$ac_objext; then
8132 ac_cv_have_decl_tzname=yes
8134 echo "$as_me: failed program was:" >&5
8135 sed 's/^/| /' conftest.$ac_ext >&5
8137 ac_cv_have_decl_tzname=no
8140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8142 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8143 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
8144 if test $ac_cv_have_decl_tzname = yes; then
8146 cat >>confdefs.h <<_ACEOF
8147 #define HAVE_DECL_TZNAME 1
8152 cat >>confdefs.h <<_ACEOF
8153 #define HAVE_DECL_TZNAME 0
8160 { echo "$as_me:$LINENO: checking for tzname" >&5
8161 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
8162 if test "${ac_cv_var_tzname+set}" = set; then
8163 echo $ECHO_N "(cached) $ECHO_C" >&6
8165 cat >conftest.$ac_ext <<_ACEOF
8168 cat confdefs.h >>conftest.$ac_ext
8169 cat >>conftest.$ac_ext <<_ACEOF
8170 /* end confdefs.h. */
8172 #if !HAVE_DECL_TZNAME
8173 extern char *tzname[];
8179 return tzname[0][0];
8184 rm -f conftest.$ac_objext conftest$ac_exeext
8185 if { (ac_try="$ac_link"
8187 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8188 *) ac_try_echo
=$ac_try;;
8190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8191 (eval "$ac_link") 2>conftest.er1
8193 grep -v '^ *+' conftest.er1
>conftest.err
8195 cat conftest.err
>&5
8196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197 (exit $ac_status); } && {
8198 test -z "$ac_c_werror_flag" ||
8199 test ! -s conftest.err
8200 } && test -s conftest
$ac_exeext &&
8201 $as_test_x conftest
$ac_exeext; then
8202 ac_cv_var_tzname
=yes
8204 echo "$as_me: failed program was:" >&5
8205 sed 's/^/| /' conftest.
$ac_ext >&5
8210 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8211 conftest
$ac_exeext conftest.
$ac_ext
8213 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8214 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
8215 if test $ac_cv_var_tzname = yes; then
8217 cat >>confdefs.h
<<\_ACEOF
8218 #define HAVE_TZNAME 1
8224 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8225 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
8226 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8227 echo $ECHO_N "(cached) $ECHO_C" >&6
8229 cat >conftest.
$ac_ext <<_ACEOF
8232 cat confdefs.h
>>conftest.
$ac_ext
8233 cat >>conftest.
$ac_ext <<_ACEOF
8234 /* end confdefs.h. */
8240 static struct tm ac_aggr;
8241 if (ac_aggr.tm_gmtoff)
8247 rm -f conftest.
$ac_objext
8248 if { (ac_try
="$ac_compile"
8250 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8251 *) ac_try_echo=$ac_try;;
8253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8254 (eval "$ac_compile") 2>conftest.er1
8256 grep -v '^ *+' conftest.er1 >conftest.err
8258 cat conftest.err >&5
8259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8260 (exit $ac_status); } && {
8261 test -z "$ac_c_werror_flag" ||
8262 test ! -s conftest.err
8263 } && test -s conftest.$ac_objext; then
8264 ac_cv_member_struct_tm_tm_gmtoff=yes
8266 echo "$as_me: failed program was:" >&5
8267 sed 's/^/| /' conftest.$ac_ext >&5
8269 cat >conftest.$ac_ext <<_ACEOF
8272 cat confdefs.h >>conftest.$ac_ext
8273 cat >>conftest.$ac_ext <<_ACEOF
8274 /* end confdefs.h. */
8280 static struct tm ac_aggr;
8281 if (sizeof ac_aggr.tm_gmtoff)
8287 rm -f conftest.$ac_objext
8288 if { (ac_try="$ac_compile"
8290 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8291 *) ac_try_echo
=$ac_try;;
8293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8294 (eval "$ac_compile") 2>conftest.er1
8296 grep -v '^ *+' conftest.er1
>conftest.err
8298 cat conftest.err
>&5
8299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300 (exit $ac_status); } && {
8301 test -z "$ac_c_werror_flag" ||
8302 test ! -s conftest.err
8303 } && test -s conftest.
$ac_objext; then
8304 ac_cv_member_struct_tm_tm_gmtoff
=yes
8306 echo "$as_me: failed program was:" >&5
8307 sed 's/^/| /' conftest.
$ac_ext >&5
8309 ac_cv_member_struct_tm_tm_gmtoff
=no
8312 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8315 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8317 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8318 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8319 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8321 cat >>confdefs.h
<<\_ACEOF
8322 #define HAVE_TM_GMTOFF 1
8327 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8328 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8329 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8330 echo $ECHO_N "(cached) $ECHO_C" >&6
8332 cat >conftest.
$ac_ext <<_ACEOF
8335 cat confdefs.h
>>conftest.
$ac_ext
8336 cat >>conftest.
$ac_ext <<_ACEOF
8337 /* end confdefs.h. */
8338 $ac_includes_default
8339 #if HAVE_SYS_SOCKET_H
8340 #include <sys/socket.h>
8349 static struct ifreq ac_aggr;
8350 if (ac_aggr.ifr_flags)
8356 rm -f conftest.
$ac_objext
8357 if { (ac_try
="$ac_compile"
8359 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8360 *) ac_try_echo=$ac_try;;
8362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8363 (eval "$ac_compile") 2>conftest.er1
8365 grep -v '^ *+' conftest.er1 >conftest.err
8367 cat conftest.err >&5
8368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369 (exit $ac_status); } && {
8370 test -z "$ac_c_werror_flag" ||
8371 test ! -s conftest.err
8372 } && test -s conftest.$ac_objext; then
8373 ac_cv_member_struct_ifreq_ifr_flags=yes
8375 echo "$as_me: failed program was:" >&5
8376 sed 's/^/| /' conftest.$ac_ext >&5
8378 cat >conftest.$ac_ext <<_ACEOF
8381 cat confdefs.h >>conftest.$ac_ext
8382 cat >>conftest.$ac_ext <<_ACEOF
8383 /* end confdefs.h. */
8384 $ac_includes_default
8385 #if HAVE_SYS_SOCKET_H
8386 #include <sys/socket.h>
8395 static struct ifreq ac_aggr;
8396 if (sizeof ac_aggr.ifr_flags)
8402 rm -f conftest.$ac_objext
8403 if { (ac_try="$ac_compile"
8405 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8406 *) ac_try_echo
=$ac_try;;
8408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8409 (eval "$ac_compile") 2>conftest.er1
8411 grep -v '^ *+' conftest.er1
>conftest.err
8413 cat conftest.err
>&5
8414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415 (exit $ac_status); } && {
8416 test -z "$ac_c_werror_flag" ||
8417 test ! -s conftest.err
8418 } && test -s conftest.
$ac_objext; then
8419 ac_cv_member_struct_ifreq_ifr_flags
=yes
8421 echo "$as_me: failed program was:" >&5
8422 sed 's/^/| /' conftest.
$ac_ext >&5
8424 ac_cv_member_struct_ifreq_ifr_flags
=no
8427 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8430 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8432 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8433 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8434 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8436 cat >>confdefs.h
<<_ACEOF
8437 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8442 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8443 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8444 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8445 echo $ECHO_N "(cached) $ECHO_C" >&6
8447 cat >conftest.
$ac_ext <<_ACEOF
8450 cat confdefs.h
>>conftest.
$ac_ext
8451 cat >>conftest.
$ac_ext <<_ACEOF
8452 /* end confdefs.h. */
8453 $ac_includes_default
8454 #if HAVE_SYS_SOCKET_H
8455 #include <sys/socket.h>
8464 static struct ifreq ac_aggr;
8465 if (ac_aggr.ifr_hwaddr)
8471 rm -f conftest.
$ac_objext
8472 if { (ac_try
="$ac_compile"
8474 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8475 *) ac_try_echo=$ac_try;;
8477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8478 (eval "$ac_compile") 2>conftest.er1
8480 grep -v '^ *+' conftest.er1 >conftest.err
8482 cat conftest.err >&5
8483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484 (exit $ac_status); } && {
8485 test -z "$ac_c_werror_flag" ||
8486 test ! -s conftest.err
8487 } && test -s conftest.$ac_objext; then
8488 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8490 echo "$as_me: failed program was:" >&5
8491 sed 's/^/| /' conftest.$ac_ext >&5
8493 cat >conftest.$ac_ext <<_ACEOF
8496 cat confdefs.h >>conftest.$ac_ext
8497 cat >>conftest.$ac_ext <<_ACEOF
8498 /* end confdefs.h. */
8499 $ac_includes_default
8500 #if HAVE_SYS_SOCKET_H
8501 #include <sys/socket.h>
8510 static struct ifreq ac_aggr;
8511 if (sizeof ac_aggr.ifr_hwaddr)
8517 rm -f conftest.$ac_objext
8518 if { (ac_try="$ac_compile"
8520 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8521 *) ac_try_echo
=$ac_try;;
8523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8524 (eval "$ac_compile") 2>conftest.er1
8526 grep -v '^ *+' conftest.er1
>conftest.err
8528 cat conftest.err
>&5
8529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530 (exit $ac_status); } && {
8531 test -z "$ac_c_werror_flag" ||
8532 test ! -s conftest.err
8533 } && test -s conftest.
$ac_objext; then
8534 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8536 echo "$as_me: failed program was:" >&5
8537 sed 's/^/| /' conftest.
$ac_ext >&5
8539 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8542 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8545 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8547 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8548 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8549 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8551 cat >>confdefs.h
<<_ACEOF
8552 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8557 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8558 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8559 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8560 echo $ECHO_N "(cached) $ECHO_C" >&6
8562 cat >conftest.
$ac_ext <<_ACEOF
8565 cat confdefs.h
>>conftest.
$ac_ext
8566 cat >>conftest.
$ac_ext <<_ACEOF
8567 /* end confdefs.h. */
8568 $ac_includes_default
8569 #if HAVE_SYS_SOCKET_H
8570 #include <sys/socket.h>
8579 static struct ifreq ac_aggr;
8580 if (ac_aggr.ifr_netmask)
8586 rm -f conftest.
$ac_objext
8587 if { (ac_try
="$ac_compile"
8589 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8590 *) ac_try_echo=$ac_try;;
8592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8593 (eval "$ac_compile") 2>conftest.er1
8595 grep -v '^ *+' conftest.er1 >conftest.err
8597 cat conftest.err >&5
8598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599 (exit $ac_status); } && {
8600 test -z "$ac_c_werror_flag" ||
8601 test ! -s conftest.err
8602 } && test -s conftest.$ac_objext; then
8603 ac_cv_member_struct_ifreq_ifr_netmask=yes
8605 echo "$as_me: failed program was:" >&5
8606 sed 's/^/| /' conftest.$ac_ext >&5
8608 cat >conftest.$ac_ext <<_ACEOF
8611 cat confdefs.h >>conftest.$ac_ext
8612 cat >>conftest.$ac_ext <<_ACEOF
8613 /* end confdefs.h. */
8614 $ac_includes_default
8615 #if HAVE_SYS_SOCKET_H
8616 #include <sys/socket.h>
8625 static struct ifreq ac_aggr;
8626 if (sizeof ac_aggr.ifr_netmask)
8632 rm -f conftest.$ac_objext
8633 if { (ac_try="$ac_compile"
8635 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8636 *) ac_try_echo
=$ac_try;;
8638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8639 (eval "$ac_compile") 2>conftest.er1
8641 grep -v '^ *+' conftest.er1
>conftest.err
8643 cat conftest.err
>&5
8644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645 (exit $ac_status); } && {
8646 test -z "$ac_c_werror_flag" ||
8647 test ! -s conftest.err
8648 } && test -s conftest.
$ac_objext; then
8649 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8651 echo "$as_me: failed program was:" >&5
8652 sed 's/^/| /' conftest.
$ac_ext >&5
8654 ac_cv_member_struct_ifreq_ifr_netmask
=no
8657 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8660 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8662 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8663 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8664 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8666 cat >>confdefs.h
<<_ACEOF
8667 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8672 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8673 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8674 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8675 echo $ECHO_N "(cached) $ECHO_C" >&6
8677 cat >conftest.
$ac_ext <<_ACEOF
8680 cat confdefs.h
>>conftest.
$ac_ext
8681 cat >>conftest.
$ac_ext <<_ACEOF
8682 /* end confdefs.h. */
8683 $ac_includes_default
8684 #if HAVE_SYS_SOCKET_H
8685 #include <sys/socket.h>
8694 static struct ifreq ac_aggr;
8695 if (ac_aggr.ifr_broadaddr)
8701 rm -f conftest.
$ac_objext
8702 if { (ac_try
="$ac_compile"
8704 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8705 *) ac_try_echo=$ac_try;;
8707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8708 (eval "$ac_compile") 2>conftest.er1
8710 grep -v '^ *+' conftest.er1 >conftest.err
8712 cat conftest.err >&5
8713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8714 (exit $ac_status); } && {
8715 test -z "$ac_c_werror_flag" ||
8716 test ! -s conftest.err
8717 } && test -s conftest.$ac_objext; then
8718 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8720 echo "$as_me: failed program was:" >&5
8721 sed 's/^/| /' conftest.$ac_ext >&5
8723 cat >conftest.$ac_ext <<_ACEOF
8726 cat confdefs.h >>conftest.$ac_ext
8727 cat >>conftest.$ac_ext <<_ACEOF
8728 /* end confdefs.h. */
8729 $ac_includes_default
8730 #if HAVE_SYS_SOCKET_H
8731 #include <sys/socket.h>
8740 static struct ifreq ac_aggr;
8741 if (sizeof ac_aggr.ifr_broadaddr)
8747 rm -f conftest.$ac_objext
8748 if { (ac_try="$ac_compile"
8750 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8751 *) ac_try_echo
=$ac_try;;
8753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8754 (eval "$ac_compile") 2>conftest.er1
8756 grep -v '^ *+' conftest.er1
>conftest.err
8758 cat conftest.err
>&5
8759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760 (exit $ac_status); } && {
8761 test -z "$ac_c_werror_flag" ||
8762 test ! -s conftest.err
8763 } && test -s conftest.
$ac_objext; then
8764 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
8766 echo "$as_me: failed program was:" >&5
8767 sed 's/^/| /' conftest.
$ac_ext >&5
8769 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
8772 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8775 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8777 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8778 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8779 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8781 cat >>confdefs.h
<<_ACEOF
8782 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8787 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8788 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8789 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8790 echo $ECHO_N "(cached) $ECHO_C" >&6
8792 cat >conftest.
$ac_ext <<_ACEOF
8795 cat confdefs.h
>>conftest.
$ac_ext
8796 cat >>conftest.
$ac_ext <<_ACEOF
8797 /* end confdefs.h. */
8798 $ac_includes_default
8799 #if HAVE_SYS_SOCKET_H
8800 #include <sys/socket.h>
8809 static struct ifreq ac_aggr;
8810 if (ac_aggr.ifr_addr)
8816 rm -f conftest.
$ac_objext
8817 if { (ac_try
="$ac_compile"
8819 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8820 *) ac_try_echo=$ac_try;;
8822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8823 (eval "$ac_compile") 2>conftest.er1
8825 grep -v '^ *+' conftest.er1 >conftest.err
8827 cat conftest.err >&5
8828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829 (exit $ac_status); } && {
8830 test -z "$ac_c_werror_flag" ||
8831 test ! -s conftest.err
8832 } && test -s conftest.$ac_objext; then
8833 ac_cv_member_struct_ifreq_ifr_addr=yes
8835 echo "$as_me: failed program was:" >&5
8836 sed 's/^/| /' conftest.$ac_ext >&5
8838 cat >conftest.$ac_ext <<_ACEOF
8841 cat confdefs.h >>conftest.$ac_ext
8842 cat >>conftest.$ac_ext <<_ACEOF
8843 /* end confdefs.h. */
8844 $ac_includes_default
8845 #if HAVE_SYS_SOCKET_H
8846 #include <sys/socket.h>
8855 static struct ifreq ac_aggr;
8856 if (sizeof ac_aggr.ifr_addr)
8862 rm -f conftest.$ac_objext
8863 if { (ac_try="$ac_compile"
8865 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8866 *) ac_try_echo
=$ac_try;;
8868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8869 (eval "$ac_compile") 2>conftest.er1
8871 grep -v '^ *+' conftest.er1
>conftest.err
8873 cat conftest.err
>&5
8874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875 (exit $ac_status); } && {
8876 test -z "$ac_c_werror_flag" ||
8877 test ! -s conftest.err
8878 } && test -s conftest.
$ac_objext; then
8879 ac_cv_member_struct_ifreq_ifr_addr
=yes
8881 echo "$as_me: failed program was:" >&5
8882 sed 's/^/| /' conftest.
$ac_ext >&5
8884 ac_cv_member_struct_ifreq_ifr_addr
=no
8887 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8890 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8892 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8893 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8894 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8896 cat >>confdefs.h
<<_ACEOF
8897 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8905 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8906 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8907 if test "$ac_cv_prog_cc_c89" != no
; then
8908 { echo "$as_me:$LINENO: result: yes" >&5
8909 echo "${ECHO_T}yes" >&6; }
8911 cat >>confdefs.h
<<\_ACEOF
8912 #define PROTOTYPES 1
8916 cat >>confdefs.h
<<\_ACEOF
8917 #define __PROTOTYPES 1
8921 { echo "$as_me:$LINENO: result: no" >&5
8922 echo "${ECHO_T}no" >&6; }
8925 { echo "$as_me:$LINENO: checking for working volatile" >&5
8926 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8927 if test "${ac_cv_c_volatile+set}" = set; then
8928 echo $ECHO_N "(cached) $ECHO_C" >&6
8930 cat >conftest.
$ac_ext <<_ACEOF
8933 cat confdefs.h
>>conftest.
$ac_ext
8934 cat >>conftest.
$ac_ext <<_ACEOF
8935 /* end confdefs.h. */
8942 int * volatile y = (int *) 0;
8948 rm -f conftest.
$ac_objext
8949 if { (ac_try
="$ac_compile"
8951 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8952 *) ac_try_echo=$ac_try;;
8954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8955 (eval "$ac_compile") 2>conftest.er1
8957 grep -v '^ *+' conftest.er1 >conftest.err
8959 cat conftest.err >&5
8960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961 (exit $ac_status); } && {
8962 test -z "$ac_c_werror_flag" ||
8963 test ! -s conftest.err
8964 } && test -s conftest.$ac_objext; then
8965 ac_cv_c_volatile=yes
8967 echo "$as_me: failed program was:" >&5
8968 sed 's/^/| /' conftest.$ac_ext >&5
8973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8975 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8976 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8977 if test $ac_cv_c_volatile = no; then
8979 cat >>confdefs.h <<\_ACEOF
8985 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8986 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8987 if test "${ac_cv_c_const+set}" = set; then
8988 echo $ECHO_N "(cached) $ECHO_C" >&6
8990 cat >conftest.$ac_ext <<_ACEOF
8993 cat confdefs.h >>conftest.$ac_ext
8994 cat >>conftest.$ac_ext <<_ACEOF
8995 /* end confdefs.h. */
9000 /* FIXME: Include the comments suggested by Paul. */
9002 /* Ultrix mips cc rejects this. */
9003 typedef int charset[2];
9005 /* SunOS 4.1.1 cc rejects this. */
9006 char const *const *pcpcc;
9008 /* NEC SVR4.0.2 mips cc rejects this. */
9009 struct point {int x, y;};
9010 static struct point const zero = {0,0};
9011 /* AIX XL C 1.02.0.0 rejects this.
9012 It does not let you subtract one const X* pointer from another in
9013 an arm of an if-expression whose if-part is not a constant
9015 const char *g = "string";
9016 pcpcc = &g + (g ? g-g : 0);
9017 /* HPUX 7.0 cc rejects these. */
9019 ppc = (char**) pcpcc;
9020 pcpcc = (char const *const *) ppc;
9021 { /* SCO 3.2v4 cc rejects this. */
9023 char const *s = 0 ? (char *) 0 : (char const *) 0;
9028 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9030 const int *foo = &x[0];
9033 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9034 typedef const int *iptr;
9038 { /* AIX XL C 1.02.0.0 rejects this saying
9039 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9040 struct s { int j; const int *ap[3]; };
9041 struct s *b; b->j = 5;
9043 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9047 return !cs[0] && !zero.x;
9054 rm -f conftest.$ac_objext
9055 if { (ac_try="$ac_compile"
9057 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9058 *) ac_try_echo
=$ac_try;;
9060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9061 (eval "$ac_compile") 2>conftest.er1
9063 grep -v '^ *+' conftest.er1
>conftest.err
9065 cat conftest.err
>&5
9066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067 (exit $ac_status); } && {
9068 test -z "$ac_c_werror_flag" ||
9069 test ! -s conftest.err
9070 } && test -s conftest.
$ac_objext; then
9073 echo "$as_me: failed program was:" >&5
9074 sed 's/^/| /' conftest.
$ac_ext >&5
9079 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9081 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9082 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9083 if test $ac_cv_c_const = no
; then
9085 cat >>confdefs.h
<<\_ACEOF
9091 { echo "$as_me:$LINENO: checking for void * support" >&5
9092 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
9093 if test "${emacs_cv_void_star+set}" = set; then
9094 echo $ECHO_N "(cached) $ECHO_C" >&6
9096 cat >conftest.
$ac_ext <<_ACEOF
9099 cat confdefs.h
>>conftest.
$ac_ext
9100 cat >>conftest.
$ac_ext <<_ACEOF
9101 /* end confdefs.h. */
9111 rm -f conftest.
$ac_objext
9112 if { (ac_try
="$ac_compile"
9114 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9115 *) ac_try_echo=$ac_try;;
9117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9118 (eval "$ac_compile") 2>conftest.er1
9120 grep -v '^ *+' conftest.er1 >conftest.err
9122 cat conftest.err >&5
9123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124 (exit $ac_status); } && {
9125 test -z "$ac_c_werror_flag" ||
9126 test ! -s conftest.err
9127 } && test -s conftest.$ac_objext; then
9128 emacs_cv_void_star=yes
9130 echo "$as_me: failed program was:" >&5
9131 sed 's/^/| /' conftest.$ac_ext >&5
9133 emacs_cv_void_star=no
9136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9138 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9139 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
9140 if test $emacs_cv_void_star = yes; then
9141 cat >>confdefs.h <<\_ACEOF
9142 #define POINTER_TYPE void
9146 cat >>confdefs.h <<\_ACEOF
9147 #define POINTER_TYPE char
9156 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9157 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
9158 set x ${MAKE-make}; ac_make=`echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9159 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9160 echo $ECHO_N "(cached) $ECHO_C" >&6
9162 cat >conftest.make <<\_ACEOF
9165 @echo '@@@%%%=$(MAKE)=@@@%%%'
9167 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9168 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
9170 eval ac_cv_prog_make_${ac_make}_set=yes;;
9172 eval ac_cv_prog_make_${ac_make}_set=no;;
9176 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9177 { echo "$as_me:$LINENO: result: yes" >&5
9178 echo "${ECHO_T}yes" >&6; }
9181 { echo "$as_me:$LINENO: result: no" >&5
9182 echo "${ECHO_T}no" >&6; }
9183 SET_MAKE="MAKE=${MAKE-make}"
9187 { echo "$as_me:$LINENO: checking for long file names" >&5
9188 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
9189 if test "${ac_cv_sys_long_file_names+set}" = set; then
9190 echo $ECHO_N "(cached) $ECHO_C" >&6
9192 ac_cv_sys_long_file_names=yes
9193 # Test for long file names in all the places we know might matter:
9194 # . the current directory, where building will happen
9195 # $prefix/lib where we will be installing things
9196 # $exec_prefix/lib likewise
9197 # $TMPDIR if set, where it might want to write temporary files
9198 # /tmp where it might want to write temporary files
9201 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9202 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9203 # in the usual case where exec_prefix is '${prefix}'.
9205 . | /* | ?:[\\/]*) ;; #(
9208 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9209 ac_xdir=$ac_dir/cf$$
9210 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9211 ac_tf1=$ac_xdir/conftest9012345
9212 ac_tf2=$ac_xdir/conftest9012346
9213 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9214 ac_cv_sys_long_file_names=no
9215 rm -f -r "$ac_xdir" 2>/dev/null
9216 test $ac_cv_sys_long_file_names = no && break
9219 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9220 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9221 if test $ac_cv_sys_long_file_names = yes; then
9223 cat >>confdefs.h <<\_ACEOF
9224 #define HAVE_LONG_FILE_NAMES 1
9230 #### Choose a window system.
9232 { echo "$as_me:$LINENO: checking for X" >&5
9233 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9236 # Check whether --with-x was given.
9237 if test "${with_x+set}" = set; then
9241 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9242 if test "x$with_x" = xno; then
9243 # The user explicitly disabled X.
9246 case $x_includes,$x_libraries in #(
9247 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9248 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9249 { (exit 1); exit 1; }; };; #(
9250 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9251 echo $ECHO_N "(cached) $ECHO_C" >&6
9253 # One or both of the vars are not set, and there is no cached value.
9254 ac_x_includes=no ac_x_libraries=no
9255 rm -f -r conftest.dir
9256 if mkdir conftest.dir; then
9258 cat >Imakefile <<'_ACEOF'
9260 @echo incroot='${INCROOT}'
9262 @echo usrlibdir='${USRLIBDIR}'
9264 @echo libdir='${LIBDIR}'
9266 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9267 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9268 for ac_var in incroot usrlibdir libdir; do
9269 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
9271 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9272 for ac_extension in a so sl; do
9273 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9274 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9275 ac_im_usrlibdir=$ac_im_libdir; break
9278 # Screen out bogus values from the imake configuration. They are
9279 # bogus both because they are the default anyway, and because
9280 # using them would break gcc on systems where it needs fixed includes.
9281 case $ac_im_incroot in
9282 /usr/include) ac_x_includes= ;;
9283 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9285 case $ac_im_usrlibdir in
9287 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9291 rm -f -r conftest.dir
9294 # Standard set of common directories for X headers.
9295 # Check X11 before X11Rn because it is often a symlink to the current release.
9307 /usr/local/X11/include
9308 /usr/local/X11R6/include
9309 /usr/local/X11R5/include
9310 /usr/local/X11R4/include
9312 /usr/local/include/X11
9313 /usr/local/include/X11R6
9314 /usr/local/include/X11R5
9315 /usr/local/include/X11R4
9319 /usr/XFree86/include/X11
9323 /usr/unsupported/include
9325 /usr/local/x11r5/include
9326 /usr/lpp/Xamples/include
9328 /usr/openwin/include
9329 /usr/openwin/share/include'
9331 if test "$ac_x_includes" = no; then
9332 # Guess where to find include files, by looking for Xlib.h.
9333 # First, try using that file with no special directory specified.
9334 cat >conftest.$ac_ext <<_ACEOF
9337 cat confdefs.h >>conftest.$ac_ext
9338 cat >>conftest.$ac_ext <<_ACEOF
9339 /* end confdefs.h. */
9340 #include <X11/Xlib.h>
9342 if { (ac_try="$ac_cpp conftest.$ac_ext"
9344 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9345 *) ac_try_echo
=$ac_try;;
9347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9348 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9350 grep -v '^ *+' conftest.er1
>conftest.err
9352 cat conftest.err
>&5
9353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9354 (exit $ac_status); } >/dev
/null
&& {
9355 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9356 test ! -s conftest.err
9358 # We can compile using X headers with no special include directory.
9361 echo "$as_me: failed program was:" >&5
9362 sed 's/^/| /' conftest.
$ac_ext >&5
9364 for ac_dir
in $ac_x_header_dirs; do
9365 if test -r "$ac_dir/X11/Xlib.h"; then
9366 ac_x_includes
=$ac_dir
9372 rm -f conftest.err conftest.
$ac_ext
9373 fi # $ac_x_includes = no
9375 if test "$ac_x_libraries" = no
; then
9376 # Check for the libraries.
9377 # See if we find them without any special options.
9378 # Don't add to $LIBS permanently.
9381 cat >conftest.
$ac_ext <<_ACEOF
9384 cat confdefs.h
>>conftest.
$ac_ext
9385 cat >>conftest.
$ac_ext <<_ACEOF
9386 /* end confdefs.h. */
9387 #include <X11/Xlib.h>
9396 rm -f conftest.
$ac_objext conftest
$ac_exeext
9397 if { (ac_try
="$ac_link"
9399 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9400 *) ac_try_echo=$ac_try;;
9402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9403 (eval "$ac_link") 2>conftest.er1
9405 grep -v '^ *+' conftest.er1 >conftest.err
9407 cat conftest.err >&5
9408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9409 (exit $ac_status); } && {
9410 test -z "$ac_c_werror_flag" ||
9411 test ! -s conftest.err
9412 } && test -s conftest$ac_exeext &&
9413 $as_test_x conftest$ac_exeext; then
9415 # We can link X programs with no special library path.
9418 echo "$as_me: failed program was:" >&5
9419 sed 's/^/| /' conftest.$ac_ext >&5
9422 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
9424 # Don't even attempt the hair of trying to link an X program!
9425 for ac_extension in a so sl; do
9426 if test -r "$ac_dir/libX11.$ac_extension"; then
9427 ac_x_libraries=$ac_dir
9434 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9435 conftest$ac_exeext conftest.$ac_ext
9436 fi # $ac_x_libraries = no
9438 case $ac_x_includes,$ac_x_libraries in #(
9440 # Didn't find X, or a directory has "'" in its name.
9441 ac_cv_have_x="have_x=no";; #(
9443 # Record where we found X for the cache.
9444 ac_cv_have_x="have_x=yes\
9445 ac_x_includes='$ac_x_includes'\
9446 ac_x_libraries='$ac_x_libraries'"
9452 eval "$ac_cv_have_x"
9455 if test "$have_x" != yes; then
9456 { echo "$as_me:$LINENO: result: $have_x" >&5
9457 echo "${ECHO_T}$have_x" >&6; }
9460 # If each of the values was on the command line, it overrides each guess.
9461 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9462 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9463 # Update the cache value to reflect the command line values.
9464 ac_cv_have_x="have_x=yes\
9465 ac_x_includes='$x_includes'\
9466 ac_x_libraries='$x_libraries'"
9467 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9468 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9471 if test "$no_x" = yes; then
9477 if test "${x_libraries}" != NONE; then
9478 if test -n "${x_libraries}"; then
9479 LD_SWITCH_X_SITE=-L`echo ${x_libraries} |
sed -e "s/:/ -L/g"`
9480 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} |
sed -e "s/:/ -R/g"`
9482 x_default_search_path=""
9483 x_search_path=${x_libraries}
9484 if test -z "${x_search_path}"; then
9485 x_search_path=/usr/lib
9487 for x_library in `echo ${x_search_path}: | \
9488 sed -e "s/:/ /g" -e p
-e "s:/lib[^ /]* :/share :g"`; do
9490 ${x_library}/X11/%L/%T/%N%C%S:\
9491 ${x_library}/X11/%l/%T/%N%C%S:\
9492 ${x_library}/X11/%T/%N%C%S:\
9493 ${x_library}/X11/%L/%T/%N%S:\
9494 ${x_library}/X11/%l/%T/%N%S:\
9495 ${x_library}/X11/%T/%N%S"
9496 if test x"${x_default_search_path}" = x; then
9497 x_default_search_path=${x_search_path}
9499 x_default_search_path="${x_search_path}:${x_default_search_path}"
9503 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9504 C_SWITCH_X_SITE=-I`echo ${x_includes} |
sed -e "s/:/ -I/g"`
9507 if test x"${x_includes}" = x; then
9508 bitmapdir=/usr/include/X11/bitmaps
9510 # accumulate include directories that have X11 bitmap subdirectories
9512 for bmd in `echo ${x_includes} |
sed -e "s/:/ /g"`; do
9513 if test -d "${bmd}/X11/bitmaps"; then
9514 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9516 if test -d "${bmd}/bitmaps"; then
9517 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9520 if test ${bmd_acc} != "dummyval"; then
9521 bitmapdir=`echo ${bmd_acc} |
sed -e "s/^dummyval://"`
9526 if test "${with_carbon}" != no; then
9527 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9528 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9529 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9530 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9531 echo $ECHO_N "(cached) $ECHO_C" >&6
9533 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9534 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9536 # Is the header compilable?
9537 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9538 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9539 cat >conftest.$ac_ext <<_ACEOF
9542 cat confdefs.h >>conftest.$ac_ext
9543 cat >>conftest.$ac_ext <<_ACEOF
9544 /* end confdefs.h. */
9545 $ac_includes_default
9546 #include <Carbon/Carbon.h>
9548 rm -f conftest.$ac_objext
9549 if { (ac_try="$ac_compile"
9551 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9552 *) ac_try_echo
=$ac_try;;
9554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9555 (eval "$ac_compile") 2>conftest.er1
9557 grep -v '^ *+' conftest.er1
>conftest.err
9559 cat conftest.err
>&5
9560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561 (exit $ac_status); } && {
9562 test -z "$ac_c_werror_flag" ||
9563 test ! -s conftest.err
9564 } && test -s conftest.
$ac_objext; then
9565 ac_header_compiler
=yes
9567 echo "$as_me: failed program was:" >&5
9568 sed 's/^/| /' conftest.
$ac_ext >&5
9570 ac_header_compiler
=no
9573 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9574 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9575 echo "${ECHO_T}$ac_header_compiler" >&6; }
9577 # Is the header present?
9578 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9579 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9580 cat >conftest.
$ac_ext <<_ACEOF
9583 cat confdefs.h
>>conftest.
$ac_ext
9584 cat >>conftest.
$ac_ext <<_ACEOF
9585 /* end confdefs.h. */
9586 #include <Carbon/Carbon.h>
9588 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9590 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9591 *) ac_try_echo=$ac_try;;
9593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9594 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9596 grep -v '^ *+' conftest.er1 >conftest.err
9598 cat conftest.err >&5
9599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9600 (exit $ac_status); } >/dev/null && {
9601 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9602 test ! -s conftest.err
9604 ac_header_preproc=yes
9606 echo "$as_me: failed program was:" >&5
9607 sed 's/^/| /' conftest.$ac_ext >&5
9609 ac_header_preproc=no
9612 rm -f conftest.err conftest.$ac_ext
9613 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9614 echo "${ECHO_T}$ac_header_preproc" >&6; }
9616 # So? What about this header?
9617 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9619 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9620 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9621 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9622 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9623 ac_header_preproc=yes
9626 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9627 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9628 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9629 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9630 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9631 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9632 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9633 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9634 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9635 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9636 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9637 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9641 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9642 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9643 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9644 echo $ECHO_N "(cached) $ECHO_C" >&6
9646 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9648 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9649 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9652 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9658 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9659 if test "${with_carbon+set}" != set \
9660 && test "${carbon_appdir_x+set}" != set; then
9661 for var in with_x with_x_toolkit with_gtk with_xim \
9662 with_xpm with_jpeg with_tiff with_gif with_png; do
9663 if eval test \"\${$var+set}\" = set; then
9670 if test "${HAVE_CARBON}" = yes; then
9674 case "${window_system}" in
9678 case "${with_x_toolkit}" in
9679 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9680 motif ) USE_X_TOOLKIT=MOTIF ;;
9682 USE_X_TOOLKIT=none ;;
9683 no ) USE_X_TOOLKIT=none ;;
9685 if test x"$with_gtk" = xyes; then
9700 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9701 # Extract the first word of "X", so it can be a program name with args.
9702 set dummy X; ac_word=$2
9703 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9705 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9706 echo $ECHO_N "(cached) $ECHO_C" >&6
9708 if test -n "$HAVE_XSERVER"; then
9709 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9715 test -z "$as_dir" && as_dir=.
9716 for ac_exec_ext in '' $ac_executable_extensions; do
9717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9718 ac_cv_prog_HAVE_XSERVER="true"
9719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9726 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9729 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9730 if test -n "$HAVE_XSERVER"; then
9731 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9732 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9734 { echo "$as_me:$LINENO: result: no" >&5
9735 echo "${ECHO_T}no" >&6; }
9739 if test "$HAVE_XSERVER" = true ||
9740 test -n "$DISPLAY" ||
9741 test "`echo /usr
/lib
/libX11.
*`" != "/usr/lib/libX11.*"; then
9742 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9743 were found. You should install the relevant development files for X
9744 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9745 sure you have development files for image handling, i.e.
9746 tiff, gif, jpeg, png and xpm.
9747 If you are sure you want Emacs compiled without X window support, pass
9750 echo "$as_me: error: You seem to be running X, but no X development libraries
9751 were found. You should install the relevant development files for X
9752 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9753 sure you have development files for image handling, i.e.
9754 tiff, gif, jpeg, png and xpm.
9755 If you are sure you want Emacs compiled without X window support, pass
9757 to configure." >&2;}
9758 { (exit 1); exit 1; }; }
9762 ### If we're using X11, we should use the X menu package.
9765 yes ) HAVE_MENUS=yes ;;
9768 if test "${opsys}" = "hpux9"; then
9769 case "${x_libraries}" in
9771 opsysfile="s/hpux9-x11r4.h"
9776 if test "${opsys}" = "hpux9shr"; then
9777 case "${x_libraries}" in
9779 opsysfile="s/hpux9shxr4.h"
9784 ### Compute the unexec source name from the object name.
9785 UNEXEC_SRC="`echo ${unexec} |
sed 's/\.o/.c/'`"
9787 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9788 # Assume not, until told otherwise.
9791 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9792 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9793 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9794 echo $ECHO_N "(cached) $ECHO_C" >&6
9796 cat >conftest.$ac_ext <<_ACEOF
9799 cat confdefs.h >>conftest.$ac_ext
9800 cat >>conftest.$ac_ext <<_ACEOF
9801 /* end confdefs.h. */
9802 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9803 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9804 #define malloc_get_state innocuous_malloc_get_state
9806 /* System header to define __stub macros and hopefully few prototypes,
9807 which can conflict with char malloc_get_state (); below.
9808 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9809 <limits.h> exists even on freestanding compilers. */
9812 # include <limits.h>
9814 # include <assert.h>
9817 #undef malloc_get_state
9819 /* Override any GCC internal prototype to avoid an error.
9820 Use char because int might match the return type of a GCC
9821 builtin and then its argument prototype would still apply. */
9825 char malloc_get_state ();
9826 /* The GNU C library defines this for functions which it implements
9827 to always fail with ENOSYS. Some functions are actually named
9828 something starting with __ and the normal name is an alias. */
9829 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9836 return malloc_get_state ();
9841 rm -f conftest.$ac_objext conftest$ac_exeext
9842 if { (ac_try="$ac_link"
9844 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9845 *) ac_try_echo
=$ac_try;;
9847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9848 (eval "$ac_link") 2>conftest.er1
9850 grep -v '^ *+' conftest.er1
>conftest.err
9852 cat conftest.err
>&5
9853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854 (exit $ac_status); } && {
9855 test -z "$ac_c_werror_flag" ||
9856 test ! -s conftest.err
9857 } && test -s conftest
$ac_exeext &&
9858 $as_test_x conftest
$ac_exeext; then
9859 ac_cv_func_malloc_get_state
=yes
9861 echo "$as_me: failed program was:" >&5
9862 sed 's/^/| /' conftest.
$ac_ext >&5
9864 ac_cv_func_malloc_get_state
=no
9867 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9868 conftest
$ac_exeext conftest.
$ac_ext
9870 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9871 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9872 if test $ac_cv_func_malloc_get_state = yes; then
9878 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9879 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9880 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9881 echo $ECHO_N "(cached) $ECHO_C" >&6
9883 cat >conftest.
$ac_ext <<_ACEOF
9886 cat confdefs.h
>>conftest.
$ac_ext
9887 cat >>conftest.
$ac_ext <<_ACEOF
9888 /* end confdefs.h. */
9889 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9890 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9891 #define malloc_set_state innocuous_malloc_set_state
9893 /* System header to define __stub macros and hopefully few prototypes,
9894 which can conflict with char malloc_set_state (); below.
9895 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9896 <limits.h> exists even on freestanding compilers. */
9899 # include <limits.h>
9901 # include <assert.h>
9904 #undef malloc_set_state
9906 /* Override any GCC internal prototype to avoid an error.
9907 Use char because int might match the return type of a GCC
9908 builtin and then its argument prototype would still apply. */
9912 char malloc_set_state ();
9913 /* The GNU C library defines this for functions which it implements
9914 to always fail with ENOSYS. Some functions are actually named
9915 something starting with __ and the normal name is an alias. */
9916 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9923 return malloc_set_state ();
9928 rm -f conftest.
$ac_objext conftest
$ac_exeext
9929 if { (ac_try
="$ac_link"
9931 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9932 *) ac_try_echo=$ac_try;;
9934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9935 (eval "$ac_link") 2>conftest.er1
9937 grep -v '^ *+' conftest.er1 >conftest.err
9939 cat conftest.err >&5
9940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9941 (exit $ac_status); } && {
9942 test -z "$ac_c_werror_flag" ||
9943 test ! -s conftest.err
9944 } && test -s conftest$ac_exeext &&
9945 $as_test_x conftest$ac_exeext; then
9946 ac_cv_func_malloc_set_state=yes
9948 echo "$as_me: failed program was:" >&5
9949 sed 's/^/| /' conftest.$ac_ext >&5
9951 ac_cv_func_malloc_set_state=no
9954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9955 conftest$ac_exeext conftest.$ac_ext
9957 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9958 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9959 if test $ac_cv_func_malloc_set_state = yes; then
9965 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9966 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9967 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9968 echo $ECHO_N "(cached) $ECHO_C" >&6
9970 cat >conftest.$ac_ext <<_ACEOF
9973 cat confdefs.h >>conftest.$ac_ext
9974 cat >>conftest.$ac_ext <<_ACEOF
9975 /* end confdefs.h. */
9976 extern void (* __after_morecore_hook)();
9980 __after_morecore_hook = 0
9985 rm -f conftest.$ac_objext conftest$ac_exeext
9986 if { (ac_try="$ac_link"
9988 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9989 *) ac_try_echo
=$ac_try;;
9991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9992 (eval "$ac_link") 2>conftest.er1
9994 grep -v '^ *+' conftest.er1
>conftest.err
9996 cat conftest.err
>&5
9997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9998 (exit $ac_status); } && {
9999 test -z "$ac_c_werror_flag" ||
10000 test ! -s conftest.err
10001 } && test -s conftest
$ac_exeext &&
10002 $as_test_x conftest
$ac_exeext; then
10003 emacs_cv_var___after_morecore_hook
=yes
10005 echo "$as_me: failed program was:" >&5
10006 sed 's/^/| /' conftest.
$ac_ext >&5
10008 emacs_cv_var___after_morecore_hook
=no
10011 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10012 conftest
$ac_exeext conftest.
$ac_ext
10014 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
10015 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
10016 if test $emacs_cv_var___after_morecore_hook = no
; then
10019 if test "${system_malloc}" = "yes"; then
10021 GNU_MALLOC_reason
="
10022 (The GNU allocators don't work with this system configuration.)"
10024 if test "$doug_lea_malloc" = "yes" ; then
10025 if test "$GNU_MALLOC" = yes ; then
10026 GNU_MALLOC_reason
="
10027 (Using Doug Lea's new malloc from the GNU C Library.)"
10030 cat >>confdefs.h
<<\_ACEOF
10031 #define DOUG_LEA_MALLOC 1
10036 if test x
"${REL_ALLOC}" = x
; then
10037 REL_ALLOC
=${GNU_MALLOC}
10043 for ac_header
in stdlib.h unistd.h
10045 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10046 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10047 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10049 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10050 echo $ECHO_N "(cached) $ECHO_C" >&6
10052 ac_res
=`eval echo '${'$as_ac_Header'}'`
10053 { echo "$as_me:$LINENO: result: $ac_res" >&5
10054 echo "${ECHO_T}$ac_res" >&6; }
10056 # Is the header compilable?
10057 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10058 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10059 cat >conftest.
$ac_ext <<_ACEOF
10062 cat confdefs.h
>>conftest.
$ac_ext
10063 cat >>conftest.
$ac_ext <<_ACEOF
10064 /* end confdefs.h. */
10065 $ac_includes_default
10066 #include <$ac_header>
10068 rm -f conftest.
$ac_objext
10069 if { (ac_try
="$ac_compile"
10070 case "(($ac_try" in
10071 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10072 *) ac_try_echo=$ac_try;;
10074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10075 (eval "$ac_compile") 2>conftest.er1
10077 grep -v '^ *+' conftest.er1 >conftest.err
10079 cat conftest.err >&5
10080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10081 (exit $ac_status); } && {
10082 test -z "$ac_c_werror_flag" ||
10083 test ! -s conftest.err
10084 } && test -s conftest.$ac_objext; then
10085 ac_header_compiler=yes
10087 echo "$as_me: failed program was:" >&5
10088 sed 's/^/| /' conftest.$ac_ext >&5
10090 ac_header_compiler=no
10093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10094 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10095 echo "${ECHO_T}$ac_header_compiler" >&6; }
10097 # Is the header present?
10098 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10099 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10100 cat >conftest.$ac_ext <<_ACEOF
10103 cat confdefs.h >>conftest.$ac_ext
10104 cat >>conftest.$ac_ext <<_ACEOF
10105 /* end confdefs.h. */
10106 #include <$ac_header>
10108 if { (ac_try="$ac_cpp conftest.$ac_ext"
10109 case "(($ac_try" in
10110 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10111 *) ac_try_echo
=$ac_try;;
10113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10114 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10116 grep -v '^ *+' conftest.er1
>conftest.err
10118 cat conftest.err
>&5
10119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10120 (exit $ac_status); } >/dev
/null
&& {
10121 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10122 test ! -s conftest.err
10124 ac_header_preproc
=yes
10126 echo "$as_me: failed program was:" >&5
10127 sed 's/^/| /' conftest.
$ac_ext >&5
10129 ac_header_preproc
=no
10132 rm -f conftest.err conftest.
$ac_ext
10133 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10134 echo "${ECHO_T}$ac_header_preproc" >&6; }
10136 # So? What about this header?
10137 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10139 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10140 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10141 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10142 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10143 ac_header_preproc
=yes
10146 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10147 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10148 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10149 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10150 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10151 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10152 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10153 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10154 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10155 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10156 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10157 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10161 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10162 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10163 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10164 echo $ECHO_N "(cached) $ECHO_C" >&6
10166 eval "$as_ac_Header=\$ac_header_preproc"
10168 ac_res
=`eval echo '${'$as_ac_Header'}'`
10169 { echo "$as_me:$LINENO: result: $ac_res" >&5
10170 echo "${ECHO_T}$ac_res" >&6; }
10173 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10174 cat >>confdefs.h
<<_ACEOF
10175 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10183 for ac_func
in getpagesize
10185 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10186 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10187 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10188 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10189 echo $ECHO_N "(cached) $ECHO_C" >&6
10191 cat >conftest.
$ac_ext <<_ACEOF
10194 cat confdefs.h
>>conftest.
$ac_ext
10195 cat >>conftest.
$ac_ext <<_ACEOF
10196 /* end confdefs.h. */
10197 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10198 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10199 #define $ac_func innocuous_$ac_func
10201 /* System header to define __stub macros and hopefully few prototypes,
10202 which can conflict with char $ac_func (); below.
10203 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10204 <limits.h> exists even on freestanding compilers. */
10207 # include <limits.h>
10209 # include <assert.h>
10214 /* Override any GCC internal prototype to avoid an error.
10215 Use char because int might match the return type of a GCC
10216 builtin and then its argument prototype would still apply. */
10221 /* The GNU C library defines this for functions which it implements
10222 to always fail with ENOSYS. Some functions are actually named
10223 something starting with __ and the normal name is an alias. */
10224 #if defined __stub_$ac_func || defined __stub___$ac_func
10231 return $ac_func ();
10236 rm -f conftest.
$ac_objext conftest
$ac_exeext
10237 if { (ac_try
="$ac_link"
10238 case "(($ac_try" in
10239 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10240 *) ac_try_echo=$ac_try;;
10242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10243 (eval "$ac_link") 2>conftest.er1
10245 grep -v '^ *+' conftest.er1 >conftest.err
10247 cat conftest.err >&5
10248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10249 (exit $ac_status); } && {
10250 test -z "$ac_c_werror_flag" ||
10251 test ! -s conftest.err
10252 } && test -s conftest$ac_exeext &&
10253 $as_test_x conftest$ac_exeext; then
10254 eval "$as_ac_var=yes"
10256 echo "$as_me: failed program was:" >&5
10257 sed 's/^/| /' conftest.$ac_ext >&5
10259 eval "$as_ac_var=no"
10262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10263 conftest$ac_exeext conftest.$ac_ext
10265 ac_res=`eval echo '${'$as_ac_var'}'`
10266 { echo "$as_me:$LINENO: result: $ac_res" >&5
10267 echo "${ECHO_T}$ac_res" >&6; }
10268 if test `eval echo '${'$as_ac_var'}'` = yes; then
10269 cat >>confdefs.h <<_ACEOF
10270 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10276 { echo "$as_me:$LINENO: checking for working mmap" >&5
10277 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10278 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10279 echo $ECHO_N "(cached) $ECHO_C" >&6
10281 if test "$cross_compiling" = yes; then
10282 ac_cv_func_mmap_fixed_mapped=no
10284 cat >conftest.$ac_ext <<_ACEOF
10287 cat confdefs.h >>conftest.$ac_ext
10288 cat >>conftest.$ac_ext <<_ACEOF
10289 /* end confdefs.h. */
10290 $ac_includes_default
10291 /* malloc might have been renamed as rpl_malloc. */
10294 /* Thanks to Mike Haertel and Jim Avera for this test.
10295 Here is a matrix of mmap possibilities:
10296 mmap private not fixed
10297 mmap private fixed at somewhere currently unmapped
10298 mmap private fixed at somewhere already mapped
10299 mmap shared not fixed
10300 mmap shared fixed at somewhere currently unmapped
10301 mmap shared fixed at somewhere already mapped
10302 For private mappings, we should verify that changes cannot be read()
10303 back from the file, nor mmap's back from the file at a different
10304 address. (There have been systems where private was not correctly
10305 implemented like the infamous i386 svr4.0, and systems where the
10306 VM page cache was not coherent with the file system buffer cache
10307 like early versions of FreeBSD and possibly contemporary NetBSD.)
10308 For shared mappings, we should conversely verify that changes get
10309 propagated back to all the places they're supposed to be.
10311 Grep wants private fixed already mapped.
10312 The main things grep needs to know about mmap are:
10313 * does it exist and is it safe to write into the mmap'd area
10314 * how to use it (BSD variants) */
10317 #include <sys/mman.h>
10319 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10323 /* This mess was copied from the GNU getpagesize.h. */
10324 #ifndef HAVE_GETPAGESIZE
10325 /* Assume that all systems that can run configure have sys/param.h. */
10326 # ifndef HAVE_SYS_PARAM_H
10327 # define HAVE_SYS_PARAM_H 1
10330 # ifdef _SC_PAGESIZE
10331 # define getpagesize() sysconf(_SC_PAGESIZE)
10332 # else /* no _SC_PAGESIZE */
10333 # ifdef HAVE_SYS_PARAM_H
10334 # include <sys/param.h>
10335 # ifdef EXEC_PAGESIZE
10336 # define getpagesize() EXEC_PAGESIZE
10337 # else /* no EXEC_PAGESIZE */
10339 # define getpagesize() NBPG * CLSIZE
10342 # endif /* no CLSIZE */
10343 # else /* no NBPG */
10345 # define getpagesize() NBPC
10346 # else /* no NBPC */
10348 # define getpagesize() PAGESIZE
10349 # endif /* PAGESIZE */
10350 # endif /* no NBPC */
10351 # endif /* no NBPG */
10352 # endif /* no EXEC_PAGESIZE */
10353 # else /* no HAVE_SYS_PARAM_H */
10354 # define getpagesize() 8192 /* punt totally */
10355 # endif /* no HAVE_SYS_PARAM_H */
10356 # endif /* no _SC_PAGESIZE */
10358 #endif /* no HAVE_GETPAGESIZE */
10363 char *data, *data2, *data3;
10367 pagesize = getpagesize ();
10369 /* First, make a file with some known garbage in it. */
10370 data = (char *) malloc (pagesize);
10373 for (i = 0; i < pagesize; ++i)
10374 *(data + i) = rand ();
10376 fd = creat ("conftest.mmap", 0600);
10379 if (write (fd, data, pagesize) != pagesize)
10383 /* Next, try to mmap the file at a fixed address which already has
10384 something else allocated at it. If we can, also make sure that
10385 we see the same garbage. */
10386 fd = open ("conftest.mmap", O_RDWR);
10389 data2 = (char *) malloc (2 * pagesize);
10392 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10393 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10394 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10396 for (i = 0; i < pagesize; ++i)
10397 if (*(data + i) != *(data2 + i))
10400 /* Finally, make sure that changes to the mapped area do not
10401 percolate back to the file as seen by read(). (This is a bug on
10402 some variants of i386 svr4.0.) */
10403 for (i = 0; i < pagesize; ++i)
10404 *(data2 + i) = *(data2 + i) + 1;
10405 data3 = (char *) malloc (pagesize);
10408 if (read (fd, data3, pagesize) != pagesize)
10410 for (i = 0; i < pagesize; ++i)
10411 if (*(data + i) != *(data3 + i))
10417 rm -f conftest$ac_exeext
10418 if { (ac_try="$ac_link"
10419 case "(($ac_try" in
10420 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10421 *) ac_try_echo
=$ac_try;;
10423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10424 (eval "$ac_link") 2>&5
10426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10427 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10428 { (case "(($ac_try" in
10429 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10430 *) ac_try_echo=$ac_try;;
10432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10433 (eval "$ac_try") 2>&5
10435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10436 (exit $ac_status); }; }; then
10437 ac_cv_func_mmap_fixed_mapped=yes
10439 echo "$as_me: program exited with status $ac_status" >&5
10440 echo "$as_me: failed program was:" >&5
10441 sed 's/^/| /' conftest.$ac_ext >&5
10443 ( exit $ac_status )
10444 ac_cv_func_mmap_fixed_mapped=no
10446 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10451 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10452 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10453 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10455 cat >>confdefs.h <<\_ACEOF
10456 #define HAVE_MMAP 1
10460 rm -f conftest.mmap
10462 if test $use_mmap_for_buffers = yes; then
10466 LIBS="$libsrc_libs $LIBS"
10469 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10470 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10471 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10472 echo $ECHO_N "(cached) $ECHO_C" >&6
10474 ac_check_lib_save_LIBS=$LIBS
10475 LIBS="-ldnet $LIBS"
10476 cat >conftest.$ac_ext <<_ACEOF
10479 cat confdefs.h >>conftest.$ac_ext
10480 cat >>conftest.$ac_ext <<_ACEOF
10481 /* end confdefs.h. */
10483 /* Override any GCC internal prototype to avoid an error.
10484 Use char because int might match the return type of a GCC
10485 builtin and then its argument prototype would still apply. */
10493 return dnet_ntoa ();
10498 rm -f conftest.$ac_objext conftest$ac_exeext
10499 if { (ac_try="$ac_link"
10500 case "(($ac_try" in
10501 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10502 *) ac_try_echo
=$ac_try;;
10504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10505 (eval "$ac_link") 2>conftest.er1
10507 grep -v '^ *+' conftest.er1
>conftest.err
10509 cat conftest.err
>&5
10510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511 (exit $ac_status); } && {
10512 test -z "$ac_c_werror_flag" ||
10513 test ! -s conftest.err
10514 } && test -s conftest
$ac_exeext &&
10515 $as_test_x conftest
$ac_exeext; then
10516 ac_cv_lib_dnet_dnet_ntoa
=yes
10518 echo "$as_me: failed program was:" >&5
10519 sed 's/^/| /' conftest.
$ac_ext >&5
10521 ac_cv_lib_dnet_dnet_ntoa
=no
10524 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10525 conftest
$ac_exeext conftest.
$ac_ext
10526 LIBS
=$ac_check_lib_save_LIBS
10528 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10529 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10530 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10531 cat >>confdefs.h
<<_ACEOF
10532 #define HAVE_LIBDNET 1
10535 LIBS
="-ldnet $LIBS"
10540 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10541 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10542 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10543 echo $ECHO_N "(cached) $ECHO_C" >&6
10545 ac_check_lib_save_LIBS
=$LIBS
10546 LIBS
="-lXbsd $LIBS"
10547 cat >conftest.
$ac_ext <<_ACEOF
10550 cat confdefs.h
>>conftest.
$ac_ext
10551 cat >>conftest.
$ac_ext <<_ACEOF
10552 /* end confdefs.h. */
10563 rm -f conftest.
$ac_objext conftest
$ac_exeext
10564 if { (ac_try
="$ac_link"
10565 case "(($ac_try" in
10566 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10567 *) ac_try_echo=$ac_try;;
10569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10570 (eval "$ac_link") 2>conftest.er1
10572 grep -v '^ *+' conftest.er1 >conftest.err
10574 cat conftest.err >&5
10575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10576 (exit $ac_status); } && {
10577 test -z "$ac_c_werror_flag" ||
10578 test ! -s conftest.err
10579 } && test -s conftest$ac_exeext &&
10580 $as_test_x conftest$ac_exeext; then
10581 ac_cv_lib_Xbsd_main=yes
10583 echo "$as_me: failed program was:" >&5
10584 sed 's/^/| /' conftest.$ac_ext >&5
10586 ac_cv_lib_Xbsd_main=no
10589 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10590 conftest$ac_exeext conftest.$ac_ext
10591 LIBS=$ac_check_lib_save_LIBS
10593 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10594 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10595 if test $ac_cv_lib_Xbsd_main = yes; then
10596 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10601 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10602 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10603 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10604 echo $ECHO_N "(cached) $ECHO_C" >&6
10606 ac_check_lib_save_LIBS=$LIBS
10607 LIBS="-lpthreads $LIBS"
10608 cat >conftest.$ac_ext <<_ACEOF
10611 cat confdefs.h >>conftest.$ac_ext
10612 cat >>conftest.$ac_ext <<_ACEOF
10613 /* end confdefs.h. */
10615 /* Override any GCC internal prototype to avoid an error.
10616 Use char because int might match the return type of a GCC
10617 builtin and then its argument prototype would still apply. */
10625 return cma_open ();
10630 rm -f conftest.$ac_objext conftest$ac_exeext
10631 if { (ac_try="$ac_link"
10632 case "(($ac_try" in
10633 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10634 *) ac_try_echo
=$ac_try;;
10636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10637 (eval "$ac_link") 2>conftest.er1
10639 grep -v '^ *+' conftest.er1
>conftest.err
10641 cat conftest.err
>&5
10642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643 (exit $ac_status); } && {
10644 test -z "$ac_c_werror_flag" ||
10645 test ! -s conftest.err
10646 } && test -s conftest
$ac_exeext &&
10647 $as_test_x conftest
$ac_exeext; then
10648 ac_cv_lib_pthreads_cma_open
=yes
10650 echo "$as_me: failed program was:" >&5
10651 sed 's/^/| /' conftest.
$ac_ext >&5
10653 ac_cv_lib_pthreads_cma_open
=no
10656 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10657 conftest
$ac_exeext conftest.
$ac_ext
10658 LIBS
=$ac_check_lib_save_LIBS
10660 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10661 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10662 if test $ac_cv_lib_pthreads_cma_open = yes; then
10663 cat >>confdefs.h
<<_ACEOF
10664 #define HAVE_LIBPTHREADS 1
10667 LIBS
="-lpthreads $LIBS"
10672 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10673 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10674 if test -d /usr
/X386
/include
; then
10676 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10680 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10681 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10686 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10687 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10688 if test "${gdb_cv_bigtoc+set}" = set; then
10689 echo $ECHO_N "(cached) $ECHO_C" >&6
10693 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10694 *) gdb_cv_bigtoc
=-bbigtoc ;;
10697 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10698 cat >conftest.
$ac_ext <<_ACEOF
10701 cat confdefs.h
>>conftest.
$ac_ext
10702 cat >>conftest.
$ac_ext <<_ACEOF
10703 /* end confdefs.h. */
10713 rm -f conftest.
$ac_objext conftest
$ac_exeext
10714 if { (ac_try
="$ac_link"
10715 case "(($ac_try" in
10716 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10717 *) ac_try_echo=$ac_try;;
10719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10720 (eval "$ac_link") 2>conftest.er1
10722 grep -v '^ *+' conftest.er1 >conftest.err
10724 cat conftest.err >&5
10725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10726 (exit $ac_status); } && {
10727 test -z "$ac_c_werror_flag" ||
10728 test ! -s conftest.err
10729 } && test -s conftest$ac_exeext &&
10730 $as_test_x conftest$ac_exeext; then
10733 echo "$as_me: failed program was:" >&5
10734 sed 's/^/| /' conftest.$ac_ext >&5
10739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10740 conftest$ac_exeext conftest.$ac_ext
10743 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10744 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10748 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10749 # used for the tests that follow. We set them back to REAL_CFLAGS and
10750 # REAL_CPPFLAGS later on.
10752 REAL_CPPFLAGS="$CPPFLAGS"
10754 if test "${HAVE_X11}" = "yes"; then
10755 DEFS="$C_SWITCH_X_SITE $DEFS"
10756 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10758 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10759 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10761 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10762 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10763 # but it's more convenient here to set LD_RUN_PATH
10764 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10765 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10766 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10770 if test "${opsys}" = "gnu-linux"; then
10771 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10772 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10773 cat >conftest.$ac_ext <<_ACEOF
10776 cat confdefs.h >>conftest.$ac_ext
10777 cat >>conftest.$ac_ext <<_ACEOF
10778 /* end confdefs.h. */
10783 XOpenDisplay ("foo");
10788 rm -f conftest.$ac_objext conftest$ac_exeext
10789 if { (ac_try="$ac_link"
10790 case "(($ac_try" in
10791 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10792 *) ac_try_echo
=$ac_try;;
10794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10795 (eval "$ac_link") 2>conftest.er1
10797 grep -v '^ *+' conftest.er1
>conftest.err
10799 cat conftest.err
>&5
10800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10801 (exit $ac_status); } && {
10802 test -z "$ac_c_werror_flag" ||
10803 test ! -s conftest.err
10804 } && test -s conftest
$ac_exeext &&
10805 $as_test_x conftest
$ac_exeext; then
10806 xlinux_first_failure
=no
10808 echo "$as_me: failed program was:" >&5
10809 sed 's/^/| /' conftest.
$ac_ext >&5
10811 xlinux_first_failure
=yes
10814 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10815 conftest
$ac_exeext conftest.
$ac_ext
10816 if test "${xlinux_first_failure}" = "yes"; then
10817 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10818 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10819 OLD_CPPFLAGS
="$CPPFLAGS"
10821 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10822 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10823 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10824 LIBS
="$LIBS -b i486-linuxaout"
10825 cat >conftest.
$ac_ext <<_ACEOF
10828 cat confdefs.h
>>conftest.
$ac_ext
10829 cat >>conftest.
$ac_ext <<_ACEOF
10830 /* end confdefs.h. */
10835 XOpenDisplay ("foo");
10840 rm -f conftest.
$ac_objext conftest
$ac_exeext
10841 if { (ac_try
="$ac_link"
10842 case "(($ac_try" in
10843 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10844 *) ac_try_echo=$ac_try;;
10846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10847 (eval "$ac_link") 2>conftest.er1
10849 grep -v '^ *+' conftest.er1 >conftest.err
10851 cat conftest.err >&5
10852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10853 (exit $ac_status); } && {
10854 test -z "$ac_c_werror_flag" ||
10855 test ! -s conftest.err
10856 } && test -s conftest$ac_exeext &&
10857 $as_test_x conftest$ac_exeext; then
10858 xlinux_second_failure=no
10860 echo "$as_me: failed program was:" >&5
10861 sed 's/^/| /' conftest.$ac_ext >&5
10863 xlinux_second_failure=yes
10866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10867 conftest$ac_exeext conftest.$ac_ext
10868 if test "${xlinux_second_failure}" = "yes"; then
10869 # If we get the same failure with -b, there is no use adding -b.
10870 # So take it out. This plays safe.
10871 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10872 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10873 CPPFLAGS="$OLD_CPPFLAGS"
10875 { echo "$as_me:$LINENO: result: no" >&5
10876 echo "${ECHO_T}no" >&6; }
10878 { echo "$as_me:$LINENO: result: yes" >&5
10879 echo "${ECHO_T}yes" >&6; }
10882 { echo "$as_me:$LINENO: result: no" >&5
10883 echo "${ECHO_T}no" >&6; }
10887 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10888 # header files included from there.
10889 { echo "$as_me:$LINENO: checking for Xkb" >&5
10890 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10891 cat >conftest.$ac_ext <<_ACEOF
10894 cat confdefs.h >>conftest.$ac_ext
10895 cat >>conftest.$ac_ext <<_ACEOF
10896 /* end confdefs.h. */
10897 #include <X11/Xlib.h>
10898 #include <X11/XKBlib.h>
10902 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10907 rm -f conftest.$ac_objext conftest$ac_exeext
10908 if { (ac_try="$ac_link"
10909 case "(($ac_try" in
10910 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10911 *) ac_try_echo
=$ac_try;;
10913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10914 (eval "$ac_link") 2>conftest.er1
10916 grep -v '^ *+' conftest.er1
>conftest.err
10918 cat conftest.err
>&5
10919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920 (exit $ac_status); } && {
10921 test -z "$ac_c_werror_flag" ||
10922 test ! -s conftest.err
10923 } && test -s conftest
$ac_exeext &&
10924 $as_test_x conftest
$ac_exeext; then
10927 echo "$as_me: failed program was:" >&5
10928 sed 's/^/| /' conftest.
$ac_ext >&5
10933 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10934 conftest
$ac_exeext conftest.
$ac_ext
10935 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10936 echo "${ECHO_T}$emacs_xkb" >&6; }
10937 if test $emacs_xkb = yes; then
10939 cat >>confdefs.h
<<\_ACEOF
10940 #define HAVE_XKBGETKEYBOARD 1
10949 for ac_func
in XrmSetDatabase XScreenResourceString \
10950 XScreenNumberOfScreen XSetWMProtocols
10952 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10953 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10954 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10955 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10956 echo $ECHO_N "(cached) $ECHO_C" >&6
10958 cat >conftest.
$ac_ext <<_ACEOF
10961 cat confdefs.h
>>conftest.
$ac_ext
10962 cat >>conftest.
$ac_ext <<_ACEOF
10963 /* end confdefs.h. */
10964 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10965 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10966 #define $ac_func innocuous_$ac_func
10968 /* System header to define __stub macros and hopefully few prototypes,
10969 which can conflict with char $ac_func (); below.
10970 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10971 <limits.h> exists even on freestanding compilers. */
10974 # include <limits.h>
10976 # include <assert.h>
10981 /* Override any GCC internal prototype to avoid an error.
10982 Use char because int might match the return type of a GCC
10983 builtin and then its argument prototype would still apply. */
10988 /* The GNU C library defines this for functions which it implements
10989 to always fail with ENOSYS. Some functions are actually named
10990 something starting with __ and the normal name is an alias. */
10991 #if defined __stub_$ac_func || defined __stub___$ac_func
10998 return $ac_func ();
11003 rm -f conftest.
$ac_objext conftest
$ac_exeext
11004 if { (ac_try
="$ac_link"
11005 case "(($ac_try" in
11006 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11007 *) ac_try_echo=$ac_try;;
11009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11010 (eval "$ac_link") 2>conftest.er1
11012 grep -v '^ *+' conftest.er1 >conftest.err
11014 cat conftest.err >&5
11015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11016 (exit $ac_status); } && {
11017 test -z "$ac_c_werror_flag" ||
11018 test ! -s conftest.err
11019 } && test -s conftest$ac_exeext &&
11020 $as_test_x conftest$ac_exeext; then
11021 eval "$as_ac_var=yes"
11023 echo "$as_me: failed program was:" >&5
11024 sed 's/^/| /' conftest.$ac_ext >&5
11026 eval "$as_ac_var=no"
11029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11030 conftest$ac_exeext conftest.$ac_ext
11032 ac_res=`eval echo '${'$as_ac_var'}'`
11033 { echo "$as_me:$LINENO: result: $ac_res" >&5
11034 echo "${ECHO_T}$ac_res" >&6; }
11035 if test `eval echo '${'$as_ac_var'}'` = yes; then
11036 cat >>confdefs.h <<_ACEOF
11037 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11045 if test "${window_system}" = "x11"; then
11046 { echo "$as_me:$LINENO: checking X11 version 6" >&5
11047 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
11048 if test "${emacs_cv_x11_version_6+set}" = set; then
11049 echo $ECHO_N "(cached) $ECHO_C" >&6
11051 cat >conftest.$ac_ext <<_ACEOF
11054 cat confdefs.h >>conftest.$ac_ext
11055 cat >>conftest.$ac_ext <<_ACEOF
11056 /* end confdefs.h. */
11057 #include <X11/Xlib.h>
11061 #if XlibSpecificationRelease < 6
11069 rm -f conftest.$ac_objext conftest$ac_exeext
11070 if { (ac_try="$ac_link"
11071 case "(($ac_try" in
11072 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11073 *) ac_try_echo
=$ac_try;;
11075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11076 (eval "$ac_link") 2>conftest.er1
11078 grep -v '^ *+' conftest.er1
>conftest.err
11080 cat conftest.err
>&5
11081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11082 (exit $ac_status); } && {
11083 test -z "$ac_c_werror_flag" ||
11084 test ! -s conftest.err
11085 } && test -s conftest
$ac_exeext &&
11086 $as_test_x conftest
$ac_exeext; then
11087 emacs_cv_x11_version_6
=yes
11089 echo "$as_me: failed program was:" >&5
11090 sed 's/^/| /' conftest.
$ac_ext >&5
11092 emacs_cv_x11_version_6
=no
11095 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11096 conftest
$ac_exeext conftest.
$ac_ext
11099 if test $emacs_cv_x11_version_6 = yes; then
11100 { echo "$as_me:$LINENO: result: 6 or newer" >&5
11101 echo "${ECHO_T}6 or newer" >&6; }
11103 cat >>confdefs.h
<<\_ACEOF
11104 #define HAVE_X11R6 1
11108 { echo "$as_me:$LINENO: result: before 6" >&5
11109 echo "${ECHO_T}before 6" >&6; }
11114 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11116 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_CARBON}" = "yes"; then
11117 if test "${with_rsvg}" != "no"; then
11118 if test "X${with_pkg_config_prog}" != X
; then
11119 PKG_CONFIG
="${with_pkg_config_prog}"
11122 RSVG_REQUIRED
=2.0.0
11123 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
11128 if test -z "$PKG_CONFIG"; then
11129 # Extract the first word of "pkg-config", so it can be a program name with args.
11130 set dummy pkg-config
; ac_word
=$2
11131 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11133 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11134 echo $ECHO_N "(cached) $ECHO_C" >&6
11136 case $PKG_CONFIG in
11138 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11141 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11142 for as_dir
in $PATH
11145 test -z "$as_dir" && as_dir
=.
11146 for ac_exec_ext
in '' $ac_executable_extensions; do
11147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11148 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11156 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11160 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11161 if test -n "$PKG_CONFIG"; then
11162 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11163 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11165 { echo "$as_me:$LINENO: result: no" >&5
11166 echo "${ECHO_T}no" >&6; }
11172 if test "$PKG_CONFIG" = "no" ; then
11175 PKG_CONFIG_MIN_VERSION
=0.9.0
11176 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11177 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
11178 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
11180 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11181 { echo "$as_me:$LINENO: result: yes" >&5
11182 echo "${ECHO_T}yes" >&6; }
11185 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
11186 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
11187 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11188 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
11189 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
11191 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
11192 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
11193 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11194 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
11195 echo "${ECHO_T}$RSVG_LIBS" >&6; }
11197 { echo "$as_me:$LINENO: result: no" >&5
11198 echo "${ECHO_T}no" >&6; }
11201 ## If we have a custom action on failure, don't print errors, but
11202 ## do set a variable so people can do so.
11203 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11210 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11211 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11215 if test $succeeded = yes; then
11224 if test ".${RSVG_CFLAGS}" != "."; then
11227 cat >>confdefs.h
<<\_ACEOF
11228 #define HAVE_RSVG 1
11231 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
11232 LIBS
="$RSVG_LIBS $LIBS"
11239 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
11242 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "gtk" || \
11243 test "$USE_X_TOOLKIT" = "maybe"; then
11244 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
11245 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
11246 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
11247 { (exit 1); exit 1; }; };
11251 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11253 if test "X${with_pkg_config_prog}" != X
; then
11254 PKG_CONFIG
="${with_pkg_config_prog}"
11259 if test -z "$PKG_CONFIG"; then
11260 # Extract the first word of "pkg-config", so it can be a program name with args.
11261 set dummy pkg-config
; ac_word
=$2
11262 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11264 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11265 echo $ECHO_N "(cached) $ECHO_C" >&6
11267 case $PKG_CONFIG in
11269 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11272 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11273 for as_dir
in $PATH
11276 test -z "$as_dir" && as_dir
=.
11277 for ac_exec_ext
in '' $ac_executable_extensions; do
11278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11279 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11287 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11291 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11292 if test -n "$PKG_CONFIG"; then
11293 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11294 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11296 { echo "$as_me:$LINENO: result: no" >&5
11297 echo "${ECHO_T}no" >&6; }
11303 if test "$PKG_CONFIG" = "no" ; then
11306 PKG_CONFIG_MIN_VERSION
=0.9.0
11307 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11308 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11309 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
11311 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11312 { echo "$as_me:$LINENO: result: yes" >&5
11313 echo "${ECHO_T}yes" >&6; }
11316 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11317 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
11318 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11319 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11320 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11322 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11323 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11324 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11325 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11326 echo "${ECHO_T}$GTK_LIBS" >&6; }
11328 { echo "$as_me:$LINENO: result: no" >&5
11329 echo "${ECHO_T}no" >&6; }
11332 ## If we have a custom action on failure, don't print errors, but
11333 ## do set a variable so people can do so.
11334 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11341 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11342 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11346 if test $succeeded = yes; then
11352 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11353 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11354 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11355 { (exit 1); exit 1; }; }
11360 if test x
"$pkg_check_gtk" = xyes
; then
11364 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
11365 CFLAGS
="$CFLAGS $GTK_CFLAGS"
11366 LIBS
="$GTK_LIBS $LIBS"
11369 for ac_func
in gtk_main
11371 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11372 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11373 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11374 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11375 echo $ECHO_N "(cached) $ECHO_C" >&6
11377 cat >conftest.
$ac_ext <<_ACEOF
11380 cat confdefs.h
>>conftest.
$ac_ext
11381 cat >>conftest.
$ac_ext <<_ACEOF
11382 /* end confdefs.h. */
11383 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11384 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11385 #define $ac_func innocuous_$ac_func
11387 /* System header to define __stub macros and hopefully few prototypes,
11388 which can conflict with char $ac_func (); below.
11389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11390 <limits.h> exists even on freestanding compilers. */
11393 # include <limits.h>
11395 # include <assert.h>
11400 /* Override any GCC internal prototype to avoid an error.
11401 Use char because int might match the return type of a GCC
11402 builtin and then its argument prototype would still apply. */
11407 /* The GNU C library defines this for functions which it implements
11408 to always fail with ENOSYS. Some functions are actually named
11409 something starting with __ and the normal name is an alias. */
11410 #if defined __stub_$ac_func || defined __stub___$ac_func
11417 return $ac_func ();
11422 rm -f conftest.
$ac_objext conftest
$ac_exeext
11423 if { (ac_try
="$ac_link"
11424 case "(($ac_try" in
11425 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11426 *) ac_try_echo=$ac_try;;
11428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11429 (eval "$ac_link") 2>conftest.er1
11431 grep -v '^ *+' conftest.er1 >conftest.err
11433 cat conftest.err >&5
11434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11435 (exit $ac_status); } && {
11436 test -z "$ac_c_werror_flag" ||
11437 test ! -s conftest.err
11438 } && test -s conftest$ac_exeext &&
11439 $as_test_x conftest$ac_exeext; then
11440 eval "$as_ac_var=yes"
11442 echo "$as_me: failed program was:" >&5
11443 sed 's/^/| /' conftest.$ac_ext >&5
11445 eval "$as_ac_var=no"
11448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11449 conftest$ac_exeext conftest.$ac_ext
11451 ac_res=`eval echo '${'$as_ac_var'}'`
11452 { echo "$as_me:$LINENO: result: $ac_res" >&5
11453 echo "${ECHO_T}$ac_res" >&6; }
11454 if test `eval echo '${'$as_ac_var'}'` = yes; then
11455 cat >>confdefs.h <<_ACEOF
11456 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11462 if test "${GTK_COMPILES}" != "yes"; then
11463 if test "$USE_X_TOOLKIT" != "maybe"; then
11464 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11465 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11466 { (exit 1); exit 1; }; };
11471 cat >>confdefs.h <<\_ACEOF
11481 if test "${HAVE_GTK}" = "yes"; then
11483 if test "$with_toolkit_scroll_bars" != no; then
11484 with_toolkit_scroll_bars=yes
11487 HAVE_GTK_MULTIDISPLAY=no
11489 for ac_func in gdk_display_open
11491 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11492 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11493 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11494 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11495 echo $ECHO_N "(cached) $ECHO_C" >&6
11497 cat >conftest.$ac_ext <<_ACEOF
11500 cat confdefs.h >>conftest.$ac_ext
11501 cat >>conftest.$ac_ext <<_ACEOF
11502 /* end confdefs.h. */
11503 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11504 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11505 #define $ac_func innocuous_$ac_func
11507 /* System header to define __stub macros and hopefully few prototypes,
11508 which can conflict with char $ac_func (); below.
11509 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11510 <limits.h> exists even on freestanding compilers. */
11513 # include <limits.h>
11515 # include <assert.h>
11520 /* Override any GCC internal prototype to avoid an error.
11521 Use char because int might match the return type of a GCC
11522 builtin and then its argument prototype would still apply. */
11527 /* The GNU C library defines this for functions which it implements
11528 to always fail with ENOSYS. Some functions are actually named
11529 something starting with __ and the normal name is an alias. */
11530 #if defined __stub_$ac_func || defined __stub___$ac_func
11537 return $ac_func ();
11542 rm -f conftest.$ac_objext conftest$ac_exeext
11543 if { (ac_try="$ac_link"
11544 case "(($ac_try" in
11545 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11546 *) ac_try_echo
=$ac_try;;
11548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11549 (eval "$ac_link") 2>conftest.er1
11551 grep -v '^ *+' conftest.er1
>conftest.err
11553 cat conftest.err
>&5
11554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11555 (exit $ac_status); } && {
11556 test -z "$ac_c_werror_flag" ||
11557 test ! -s conftest.err
11558 } && test -s conftest
$ac_exeext &&
11559 $as_test_x conftest
$ac_exeext; then
11560 eval "$as_ac_var=yes"
11562 echo "$as_me: failed program was:" >&5
11563 sed 's/^/| /' conftest.
$ac_ext >&5
11565 eval "$as_ac_var=no"
11568 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11569 conftest
$ac_exeext conftest.
$ac_ext
11571 ac_res
=`eval echo '${'$as_ac_var'}'`
11572 { echo "$as_me:$LINENO: result: $ac_res" >&5
11573 echo "${ECHO_T}$ac_res" >&6; }
11574 if test `eval echo '${'$as_ac_var'}'` = yes; then
11575 cat >>confdefs.h
<<_ACEOF
11576 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11578 HAVE_GTK_MULTIDISPLAY
=yes
11582 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11584 cat >>confdefs.h
<<\_ACEOF
11585 #define HAVE_GTK_MULTIDISPLAY 1
11590 HAVE_GTK_FILE_SELECTION
=no
11592 for ac_func
in gtk_file_selection_new
11594 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11595 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11596 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11597 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11598 echo $ECHO_N "(cached) $ECHO_C" >&6
11600 cat >conftest.
$ac_ext <<_ACEOF
11603 cat confdefs.h
>>conftest.
$ac_ext
11604 cat >>conftest.
$ac_ext <<_ACEOF
11605 /* end confdefs.h. */
11606 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11607 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11608 #define $ac_func innocuous_$ac_func
11610 /* System header to define __stub macros and hopefully few prototypes,
11611 which can conflict with char $ac_func (); below.
11612 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11613 <limits.h> exists even on freestanding compilers. */
11616 # include <limits.h>
11618 # include <assert.h>
11623 /* Override any GCC internal prototype to avoid an error.
11624 Use char because int might match the return type of a GCC
11625 builtin and then its argument prototype would still apply. */
11630 /* The GNU C library defines this for functions which it implements
11631 to always fail with ENOSYS. Some functions are actually named
11632 something starting with __ and the normal name is an alias. */
11633 #if defined __stub_$ac_func || defined __stub___$ac_func
11640 return $ac_func ();
11645 rm -f conftest.
$ac_objext conftest
$ac_exeext
11646 if { (ac_try
="$ac_link"
11647 case "(($ac_try" in
11648 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11649 *) ac_try_echo=$ac_try;;
11651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11652 (eval "$ac_link") 2>conftest.er1
11654 grep -v '^ *+' conftest.er1 >conftest.err
11656 cat conftest.err >&5
11657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658 (exit $ac_status); } && {
11659 test -z "$ac_c_werror_flag" ||
11660 test ! -s conftest.err
11661 } && test -s conftest$ac_exeext &&
11662 $as_test_x conftest$ac_exeext; then
11663 eval "$as_ac_var=yes"
11665 echo "$as_me: failed program was:" >&5
11666 sed 's/^/| /' conftest.$ac_ext >&5
11668 eval "$as_ac_var=no"
11671 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11672 conftest$ac_exeext conftest.$ac_ext
11674 ac_res=`eval echo '${'$as_ac_var'}'`
11675 { echo "$as_me:$LINENO: result: $ac_res" >&5
11676 echo "${ECHO_T}$ac_res" >&6; }
11677 if test `eval echo '${'$as_ac_var'}'` = yes; then
11678 cat >>confdefs.h <<_ACEOF
11679 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11681 HAVE_GTK_FILE_SELECTION=yes
11686 HAVE_GTK_FILE_CHOOSER=no
11688 for ac_func in gtk_file_chooser_dialog_new
11690 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11691 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11692 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11693 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11694 echo $ECHO_N "(cached) $ECHO_C" >&6
11696 cat >conftest.$ac_ext <<_ACEOF
11699 cat confdefs.h >>conftest.$ac_ext
11700 cat >>conftest.$ac_ext <<_ACEOF
11701 /* end confdefs.h. */
11702 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11703 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11704 #define $ac_func innocuous_$ac_func
11706 /* System header to define __stub macros and hopefully few prototypes,
11707 which can conflict with char $ac_func (); below.
11708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11709 <limits.h> exists even on freestanding compilers. */
11712 # include <limits.h>
11714 # include <assert.h>
11719 /* Override any GCC internal prototype to avoid an error.
11720 Use char because int might match the return type of a GCC
11721 builtin and then its argument prototype would still apply. */
11726 /* The GNU C library defines this for functions which it implements
11727 to always fail with ENOSYS. Some functions are actually named
11728 something starting with __ and the normal name is an alias. */
11729 #if defined __stub_$ac_func || defined __stub___$ac_func
11736 return $ac_func ();
11741 rm -f conftest.$ac_objext conftest$ac_exeext
11742 if { (ac_try="$ac_link"
11743 case "(($ac_try" in
11744 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11745 *) ac_try_echo
=$ac_try;;
11747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11748 (eval "$ac_link") 2>conftest.er1
11750 grep -v '^ *+' conftest.er1
>conftest.err
11752 cat conftest.err
>&5
11753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754 (exit $ac_status); } && {
11755 test -z "$ac_c_werror_flag" ||
11756 test ! -s conftest.err
11757 } && test -s conftest
$ac_exeext &&
11758 $as_test_x conftest
$ac_exeext; then
11759 eval "$as_ac_var=yes"
11761 echo "$as_me: failed program was:" >&5
11762 sed 's/^/| /' conftest.
$ac_ext >&5
11764 eval "$as_ac_var=no"
11767 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11768 conftest
$ac_exeext conftest.
$ac_ext
11770 ac_res
=`eval echo '${'$as_ac_var'}'`
11771 { echo "$as_me:$LINENO: result: $ac_res" >&5
11772 echo "${ECHO_T}$ac_res" >&6; }
11773 if test `eval echo '${'$as_ac_var'}'` = yes; then
11774 cat >>confdefs.h
<<_ACEOF
11775 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11777 HAVE_GTK_FILE_CHOOSER
=yes
11782 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11783 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11785 cat >>confdefs.h
<<\_ACEOF
11786 #define HAVE_GTK_FILE_BOTH 1
11791 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11792 HAVE_GTK_AND_PTHREAD
=no
11794 for ac_header
in pthread.h
11796 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11797 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11798 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11799 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11800 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11801 echo $ECHO_N "(cached) $ECHO_C" >&6
11803 ac_res
=`eval echo '${'$as_ac_Header'}'`
11804 { echo "$as_me:$LINENO: result: $ac_res" >&5
11805 echo "${ECHO_T}$ac_res" >&6; }
11807 # Is the header compilable?
11808 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11809 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11810 cat >conftest.
$ac_ext <<_ACEOF
11813 cat confdefs.h
>>conftest.
$ac_ext
11814 cat >>conftest.
$ac_ext <<_ACEOF
11815 /* end confdefs.h. */
11816 $ac_includes_default
11817 #include <$ac_header>
11819 rm -f conftest.
$ac_objext
11820 if { (ac_try
="$ac_compile"
11821 case "(($ac_try" in
11822 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11823 *) ac_try_echo=$ac_try;;
11825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11826 (eval "$ac_compile") 2>conftest.er1
11828 grep -v '^ *+' conftest.er1 >conftest.err
11830 cat conftest.err >&5
11831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832 (exit $ac_status); } && {
11833 test -z "$ac_c_werror_flag" ||
11834 test ! -s conftest.err
11835 } && test -s conftest.$ac_objext; then
11836 ac_header_compiler=yes
11838 echo "$as_me: failed program was:" >&5
11839 sed 's/^/| /' conftest.$ac_ext >&5
11841 ac_header_compiler=no
11844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11845 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11846 echo "${ECHO_T}$ac_header_compiler" >&6; }
11848 # Is the header present?
11849 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11850 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11851 cat >conftest.$ac_ext <<_ACEOF
11854 cat confdefs.h >>conftest.$ac_ext
11855 cat >>conftest.$ac_ext <<_ACEOF
11856 /* end confdefs.h. */
11857 #include <$ac_header>
11859 if { (ac_try="$ac_cpp conftest.$ac_ext"
11860 case "(($ac_try" in
11861 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11862 *) ac_try_echo
=$ac_try;;
11864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11865 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11867 grep -v '^ *+' conftest.er1
>conftest.err
11869 cat conftest.err
>&5
11870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11871 (exit $ac_status); } >/dev
/null
&& {
11872 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11873 test ! -s conftest.err
11875 ac_header_preproc
=yes
11877 echo "$as_me: failed program was:" >&5
11878 sed 's/^/| /' conftest.
$ac_ext >&5
11880 ac_header_preproc
=no
11883 rm -f conftest.err conftest.
$ac_ext
11884 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11885 echo "${ECHO_T}$ac_header_preproc" >&6; }
11887 # So? What about this header?
11888 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11890 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11891 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11892 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11893 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11894 ac_header_preproc
=yes
11897 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11898 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11899 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11900 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11901 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11902 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11903 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11904 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11905 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11906 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11907 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11908 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11912 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11913 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11914 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11915 echo $ECHO_N "(cached) $ECHO_C" >&6
11917 eval "$as_ac_Header=\$ac_header_preproc"
11919 ac_res
=`eval echo '${'$as_ac_Header'}'`
11920 { echo "$as_me:$LINENO: result: $ac_res" >&5
11921 echo "${ECHO_T}$ac_res" >&6; }
11924 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11925 cat >>confdefs.h
<<_ACEOF
11926 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11933 if test "$ac_cv_header_pthread_h"; then
11934 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11935 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11936 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11937 echo $ECHO_N "(cached) $ECHO_C" >&6
11939 ac_check_lib_save_LIBS
=$LIBS
11940 LIBS
="-lpthread $LIBS"
11941 cat >conftest.
$ac_ext <<_ACEOF
11944 cat confdefs.h
>>conftest.
$ac_ext
11945 cat >>conftest.
$ac_ext <<_ACEOF
11946 /* end confdefs.h. */
11948 /* Override any GCC internal prototype to avoid an error.
11949 Use char because int might match the return type of a GCC
11950 builtin and then its argument prototype would still apply. */
11954 char pthread_self ();
11958 return pthread_self ();
11963 rm -f conftest.
$ac_objext conftest
$ac_exeext
11964 if { (ac_try
="$ac_link"
11965 case "(($ac_try" in
11966 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11967 *) ac_try_echo=$ac_try;;
11969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11970 (eval "$ac_link") 2>conftest.er1
11972 grep -v '^ *+' conftest.er1 >conftest.err
11974 cat conftest.err >&5
11975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976 (exit $ac_status); } && {
11977 test -z "$ac_c_werror_flag" ||
11978 test ! -s conftest.err
11979 } && test -s conftest$ac_exeext &&
11980 $as_test_x conftest$ac_exeext; then
11981 ac_cv_lib_pthread_pthread_self=yes
11983 echo "$as_me: failed program was:" >&5
11984 sed 's/^/| /' conftest.$ac_ext >&5
11986 ac_cv_lib_pthread_pthread_self=no
11989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11990 conftest$ac_exeext conftest.$ac_ext
11991 LIBS=$ac_check_lib_save_LIBS
11993 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11994 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11995 if test $ac_cv_lib_pthread_pthread_self = yes; then
11996 HAVE_GTK_AND_PTHREAD=yes
12000 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
12001 case "${canonical}" in
12003 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
12006 cat >>confdefs.h <<\_ACEOF
12007 #define HAVE_GTK_AND_PTHREAD 1
12015 if test "${with_dbus}" = "yes"; then
12019 if test -z "$PKG_CONFIG"; then
12020 # Extract the first word of "pkg-config", so it can be a program name with args.
12021 set dummy pkg-config; ac_word=$2
12022 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12024 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12025 echo $ECHO_N "(cached) $ECHO_C" >&6
12027 case $PKG_CONFIG in
12029 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12033 for as_dir in $PATH
12036 test -z "$as_dir" && as_dir=.
12037 for ac_exec_ext in '' $ac_executable_extensions; do
12038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12039 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12047 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12051 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12052 if test -n "$PKG_CONFIG"; then
12053 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12054 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12056 { echo "$as_me:$LINENO: result: no" >&5
12057 echo "${ECHO_T}no" >&6; }
12063 if test "$PKG_CONFIG" = "no" ; then
12066 PKG_CONFIG_MIN_VERSION=0.9.0
12067 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12068 { echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
12069 echo $ECHO_N "checking for dbus-1 >= 1.0... $ECHO_C" >&6; }
12071 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
12072 { echo "$as_me:$LINENO: result: yes" >&5
12073 echo "${ECHO_T}yes" >&6; }
12076 { echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
12077 echo $ECHO_N "checking DBUS_CFLAGS... $ECHO_C" >&6; }
12078 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
12079 { echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
12080 echo "${ECHO_T}$DBUS_CFLAGS" >&6; }
12082 { echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
12083 echo $ECHO_N "checking DBUS_LIBS... $ECHO_C" >&6; }
12084 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
12085 { echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
12086 echo "${ECHO_T}$DBUS_LIBS" >&6; }
12088 { echo "$as_me:$LINENO: result: no" >&5
12089 echo "${ECHO_T}no" >&6; }
12092 ## If we have a custom action on failure, don't print errors, but
12093 ## do set a variable so people can do so.
12094 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
12101 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12102 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12106 if test $succeeded = yes; then
12112 if test "$HAVE_DBUS" = yes; then
12114 cat >>confdefs.h <<\_ACEOF
12115 #define HAVE_DBUS 1
12121 ### Link with -lXft if available to work around a bug.
12123 if test "${HAVE_GTK}" = "yes"; then
12124 if test "X${with_pkg_config_prog}" != X; then
12125 PKG_CONFIG="${with_pkg_config_prog}"
12131 if test -z "$PKG_CONFIG"; then
12132 # Extract the first word of "pkg-config", so it can be a program name with args.
12133 set dummy pkg-config; ac_word=$2
12134 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12136 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12137 echo $ECHO_N "(cached) $ECHO_C" >&6
12139 case $PKG_CONFIG in
12141 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12145 for as_dir in $PATH
12148 test -z "$as_dir" && as_dir=.
12149 for ac_exec_ext in '' $ac_executable_extensions; do
12150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12151 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12159 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12163 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12164 if test -n "$PKG_CONFIG"; then
12165 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12166 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12168 { echo "$as_me:$LINENO: result: no" >&5
12169 echo "${ECHO_T}no" >&6; }
12175 if test "$PKG_CONFIG" = "no" ; then
12178 PKG_CONFIG_MIN_VERSION=0.9.0
12179 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12180 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12181 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12183 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12184 { echo "$as_me:$LINENO: result: yes" >&5
12185 echo "${ECHO_T}yes" >&6; }
12188 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12189 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12190 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|
sed -e 's,///*,/,g'`
12191 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12192 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12194 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12195 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12196 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|
sed -e 's,///*,/,g'`
12197 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12198 echo "${ECHO_T}$XFT_LIBS" >&6; }
12200 { echo "$as_me:$LINENO: result: no" >&5
12201 echo "${ECHO_T}no" >&6; }
12204 ## If we have a custom action on failure, don't print errors, but
12205 ## do set a variable so people can do so.
12206 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12213 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12214 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12218 if test $succeeded = yes; then
12224 if test "$HAVE_XFT" != no; then
12225 OLD_CFLAGS="$CPPFLAGS"
12226 OLD_CPPFLAGS="$CFLAGS"
12228 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12229 CFLAGS="$CFLAGS $XFT_CFLAGS"
12230 LIBS="$XFT_LIBS $LIBS"
12231 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12232 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12233 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12234 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12235 echo $ECHO_N "(cached) $ECHO_C" >&6
12237 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12238 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12240 # Is the header compilable?
12241 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12242 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12243 cat >conftest.$ac_ext <<_ACEOF
12246 cat confdefs.h >>conftest.$ac_ext
12247 cat >>conftest.$ac_ext <<_ACEOF
12248 /* end confdefs.h. */
12249 $ac_includes_default
12250 #include <X11/Xft/Xft.h>
12252 rm -f conftest.$ac_objext
12253 if { (ac_try="$ac_compile"
12254 case "(($ac_try" in
12255 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12256 *) ac_try_echo
=$ac_try;;
12258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12259 (eval "$ac_compile") 2>conftest.er1
12261 grep -v '^ *+' conftest.er1
>conftest.err
12263 cat conftest.err
>&5
12264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12265 (exit $ac_status); } && {
12266 test -z "$ac_c_werror_flag" ||
12267 test ! -s conftest.err
12268 } && test -s conftest.
$ac_objext; then
12269 ac_header_compiler
=yes
12271 echo "$as_me: failed program was:" >&5
12272 sed 's/^/| /' conftest.
$ac_ext >&5
12274 ac_header_compiler
=no
12277 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12278 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12279 echo "${ECHO_T}$ac_header_compiler" >&6; }
12281 # Is the header present?
12282 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12283 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12284 cat >conftest.
$ac_ext <<_ACEOF
12287 cat confdefs.h
>>conftest.
$ac_ext
12288 cat >>conftest.
$ac_ext <<_ACEOF
12289 /* end confdefs.h. */
12290 #include <X11/Xft/Xft.h>
12292 if { (ac_try
="$ac_cpp conftest.$ac_ext"
12293 case "(($ac_try" in
12294 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12295 *) ac_try_echo=$ac_try;;
12297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12298 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12300 grep -v '^ *+' conftest.er1 >conftest.err
12302 cat conftest.err >&5
12303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304 (exit $ac_status); } >/dev/null && {
12305 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12306 test ! -s conftest.err
12308 ac_header_preproc=yes
12310 echo "$as_me: failed program was:" >&5
12311 sed 's/^/| /' conftest.$ac_ext >&5
12313 ac_header_preproc=no
12316 rm -f conftest.err conftest.$ac_ext
12317 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12318 echo "${ECHO_T}$ac_header_preproc" >&6; }
12320 # So? What about this header?
12321 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12323 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12324 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12325 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12326 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12327 ac_header_preproc=yes
12330 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12331 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12332 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12333 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12334 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12335 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12336 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12337 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12338 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12339 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12340 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12341 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12345 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12346 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12347 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12348 echo $ECHO_N "(cached) $ECHO_C" >&6
12350 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
12352 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12353 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12356 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12357 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12358 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12359 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12360 echo $ECHO_N "(cached) $ECHO_C" >&6
12362 ac_check_lib_save_LIBS=$LIBS
12363 LIBS="-lXft $XFT_LIBS $LIBS"
12364 cat >conftest.$ac_ext <<_ACEOF
12367 cat confdefs.h >>conftest.$ac_ext
12368 cat >>conftest.$ac_ext <<_ACEOF
12369 /* end confdefs.h. */
12371 /* Override any GCC internal prototype to avoid an error.
12372 Use char because int might match the return type of a GCC
12373 builtin and then its argument prototype would still apply. */
12377 char XftFontOpen ();
12381 return XftFontOpen ();
12386 rm -f conftest.$ac_objext conftest$ac_exeext
12387 if { (ac_try="$ac_link"
12388 case "(($ac_try" in
12389 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12390 *) ac_try_echo
=$ac_try;;
12392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12393 (eval "$ac_link") 2>conftest.er1
12395 grep -v '^ *+' conftest.er1
>conftest.err
12397 cat conftest.err
>&5
12398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12399 (exit $ac_status); } && {
12400 test -z "$ac_c_werror_flag" ||
12401 test ! -s conftest.err
12402 } && test -s conftest
$ac_exeext &&
12403 $as_test_x conftest
$ac_exeext; then
12404 ac_cv_lib_Xft_XftFontOpen
=yes
12406 echo "$as_me: failed program was:" >&5
12407 sed 's/^/| /' conftest.
$ac_ext >&5
12409 ac_cv_lib_Xft_XftFontOpen
=no
12412 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12413 conftest
$ac_exeext conftest.
$ac_ext
12414 LIBS
=$ac_check_lib_save_LIBS
12416 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12417 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12418 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12426 if test "${HAVE_XFT}" = "yes"; then
12428 cat >>confdefs.h
<<\_ACEOF
12433 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
12435 CFLAGS
="$OLD_CPPFLAGS"
12436 CFLAGS
="$OLD_CFLAGS"
12443 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
12444 if test "$with_xaw3d" != no
; then
12445 { echo "$as_me:$LINENO: checking for xaw3d" >&5
12446 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
12447 if test "${emacs_cv_xaw3d+set}" = set; then
12448 echo $ECHO_N "(cached) $ECHO_C" >&6
12450 cat >conftest.
$ac_ext <<_ACEOF
12453 cat confdefs.h
>>conftest.
$ac_ext
12454 cat >>conftest.
$ac_ext <<_ACEOF
12455 /* end confdefs.h. */
12457 #include <X11/Intrinsic.h>
12458 #include <X11/Xaw3d/Simple.h>
12467 rm -f conftest.
$ac_objext conftest
$ac_exeext
12468 if { (ac_try
="$ac_link"
12469 case "(($ac_try" in
12470 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12471 *) ac_try_echo=$ac_try;;
12473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12474 (eval "$ac_link") 2>conftest.er1
12476 grep -v '^ *+' conftest.er1 >conftest.err
12478 cat conftest.err >&5
12479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12480 (exit $ac_status); } && {
12481 test -z "$ac_c_werror_flag" ||
12482 test ! -s conftest.err
12483 } && test -s conftest$ac_exeext &&
12484 $as_test_x conftest$ac_exeext; then
12487 echo "$as_me: failed program was:" >&5
12488 sed 's/^/| /' conftest.$ac_ext >&5
12493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12494 conftest$ac_exeext conftest.$ac_ext
12500 if test $emacs_cv_xaw3d = yes; then
12501 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12502 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12503 USE_X_TOOLKIT=LUCID
12506 cat >>confdefs.h <<\_ACEOF
12507 #define HAVE_XAW3D 1
12511 { echo "$as_me:$LINENO: result: no" >&5
12512 echo "${ECHO_T}no" >&6; }
12513 { echo "$as_me:$LINENO: checking for libXaw" >&5
12514 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
12515 if test "${emacs_cv_xaw+set}" = set; then
12516 echo $ECHO_N "(cached) $ECHO_C" >&6
12518 cat >conftest.$ac_ext <<_ACEOF
12521 cat confdefs.h >>conftest.$ac_ext
12522 cat >>conftest.$ac_ext <<_ACEOF
12523 /* end confdefs.h. */
12525 #include <X11/Intrinsic.h>
12526 #include <X11/Xaw/Simple.h>
12535 rm -f conftest.$ac_objext conftest$ac_exeext
12536 if { (ac_try="$ac_link"
12537 case "(($ac_try" in
12538 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12539 *) ac_try_echo
=$ac_try;;
12541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12542 (eval "$ac_link") 2>conftest.er1
12544 grep -v '^ *+' conftest.er1
>conftest.err
12546 cat conftest.err
>&5
12547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548 (exit $ac_status); } && {
12549 test -z "$ac_c_werror_flag" ||
12550 test ! -s conftest.err
12551 } && test -s conftest
$ac_exeext &&
12552 $as_test_x conftest
$ac_exeext; then
12555 echo "$as_me: failed program was:" >&5
12556 sed 's/^/| /' conftest.
$ac_ext >&5
12561 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12562 conftest
$ac_exeext conftest.
$ac_ext
12565 if test $emacs_cv_xaw = yes; then
12566 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12567 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12568 USE_X_TOOLKIT
=LUCID
12569 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
12570 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12571 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12572 { (exit 1); exit 1; }; }
12574 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
12575 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
12581 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
12583 if test "${USE_X_TOOLKIT}" != "none"; then
12584 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12585 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
12586 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12587 echo $ECHO_N "(cached) $ECHO_C" >&6
12589 cat >conftest.
$ac_ext <<_ACEOF
12592 cat confdefs.h
>>conftest.
$ac_ext
12593 cat >>conftest.
$ac_ext <<_ACEOF
12594 /* end confdefs.h. */
12595 #include <X11/Intrinsic.h>
12599 #if XtSpecificationRelease < 6
12607 rm -f conftest.
$ac_objext conftest
$ac_exeext
12608 if { (ac_try
="$ac_link"
12609 case "(($ac_try" in
12610 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12611 *) ac_try_echo=$ac_try;;
12613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12614 (eval "$ac_link") 2>conftest.er1
12616 grep -v '^ *+' conftest.er1 >conftest.err
12618 cat conftest.err >&5
12619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620 (exit $ac_status); } && {
12621 test -z "$ac_c_werror_flag" ||
12622 test ! -s conftest.err
12623 } && test -s conftest$ac_exeext &&
12624 $as_test_x conftest$ac_exeext; then
12625 emacs_cv_x11_toolkit_version_6=yes
12627 echo "$as_me: failed program was:" >&5
12628 sed 's/^/| /' conftest.$ac_ext >&5
12630 emacs_cv_x11_toolkit_version_6=no
12633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12634 conftest$ac_exeext conftest.$ac_ext
12637 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12638 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12639 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12640 echo "${ECHO_T}6 or newer" >&6; }
12642 cat >>confdefs.h <<\_ACEOF
12643 #define HAVE_X11XTR6 1
12647 { echo "$as_me:$LINENO: result: before 6" >&5
12648 echo "${ECHO_T}before 6" >&6; }
12652 if test x$HAVE_X11XTR6 = xyes; then
12653 LIBS="-lXt -lSM -lICE $LIBS"
12658 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12659 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12660 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12661 echo $ECHO_N "(cached) $ECHO_C" >&6
12663 ac_check_lib_save_LIBS=$LIBS
12665 cat >conftest.$ac_ext <<_ACEOF
12668 cat confdefs.h >>conftest.$ac_ext
12669 cat >>conftest.$ac_ext <<_ACEOF
12670 /* end confdefs.h. */
12672 /* Override any GCC internal prototype to avoid an error.
12673 Use char because int might match the return type of a GCC
12674 builtin and then its argument prototype would still apply. */
12678 char XmuConvertStandardSelection ();
12682 return XmuConvertStandardSelection ();
12687 rm -f conftest.$ac_objext conftest$ac_exeext
12688 if { (ac_try="$ac_link"
12689 case "(($ac_try" in
12690 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12691 *) ac_try_echo
=$ac_try;;
12693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12694 (eval "$ac_link") 2>conftest.er1
12696 grep -v '^ *+' conftest.er1
>conftest.err
12698 cat conftest.err
>&5
12699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12700 (exit $ac_status); } && {
12701 test -z "$ac_c_werror_flag" ||
12702 test ! -s conftest.err
12703 } && test -s conftest
$ac_exeext &&
12704 $as_test_x conftest
$ac_exeext; then
12705 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
12707 echo "$as_me: failed program was:" >&5
12708 sed 's/^/| /' conftest.
$ac_ext >&5
12710 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
12713 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12714 conftest
$ac_exeext conftest.
$ac_ext
12715 LIBS
=$ac_check_lib_save_LIBS
12717 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12718 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12719 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12720 cat >>confdefs.h
<<_ACEOF
12721 #define HAVE_LIBXMU 1
12728 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
12731 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12732 if test "${HAVE_X11}" = "yes"; then
12733 if test "${USE_X_TOOLKIT}" != "none"; then
12735 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12736 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12737 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12738 echo $ECHO_N "(cached) $ECHO_C" >&6
12740 ac_check_lib_save_LIBS
=$LIBS
12741 LIBS
="-lXext $LIBS"
12742 cat >conftest.
$ac_ext <<_ACEOF
12745 cat confdefs.h
>>conftest.
$ac_ext
12746 cat >>conftest.
$ac_ext <<_ACEOF
12747 /* end confdefs.h. */
12749 /* Override any GCC internal prototype to avoid an error.
12750 Use char because int might match the return type of a GCC
12751 builtin and then its argument prototype would still apply. */
12755 char XShapeQueryExtension ();
12759 return XShapeQueryExtension ();
12764 rm -f conftest.
$ac_objext conftest
$ac_exeext
12765 if { (ac_try
="$ac_link"
12766 case "(($ac_try" in
12767 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12768 *) ac_try_echo=$ac_try;;
12770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12771 (eval "$ac_link") 2>conftest.er1
12773 grep -v '^ *+' conftest.er1 >conftest.err
12775 cat conftest.err >&5
12776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12777 (exit $ac_status); } && {
12778 test -z "$ac_c_werror_flag" ||
12779 test ! -s conftest.err
12780 } && test -s conftest$ac_exeext &&
12781 $as_test_x conftest$ac_exeext; then
12782 ac_cv_lib_Xext_XShapeQueryExtension=yes
12784 echo "$as_me: failed program was:" >&5
12785 sed 's/^/| /' conftest.$ac_ext >&5
12787 ac_cv_lib_Xext_XShapeQueryExtension=no
12790 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12791 conftest$ac_exeext conftest.$ac_ext
12792 LIBS=$ac_check_lib_save_LIBS
12794 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12795 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12796 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12797 cat >>confdefs.h <<_ACEOF
12798 #define HAVE_LIBXEXT 1
12801 LIBS="-lXext $LIBS"
12808 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12809 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12810 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12811 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12812 echo $ECHO_N "(cached) $ECHO_C" >&6
12814 cat >conftest.$ac_ext <<_ACEOF
12817 cat confdefs.h >>conftest.$ac_ext
12818 cat >>conftest.$ac_ext <<_ACEOF
12819 /* end confdefs.h. */
12824 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12827 Motif version prior to 2.1.
12833 rm -f conftest.$ac_objext
12834 if { (ac_try="$ac_compile"
12835 case "(($ac_try" in
12836 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12837 *) ac_try_echo
=$ac_try;;
12839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12840 (eval "$ac_compile") 2>conftest.er1
12842 grep -v '^ *+' conftest.er1
>conftest.err
12844 cat conftest.err
>&5
12845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846 (exit $ac_status); } && {
12847 test -z "$ac_c_werror_flag" ||
12848 test ! -s conftest.err
12849 } && test -s conftest.
$ac_objext; then
12850 emacs_cv_motif_version_2_1
=yes
12852 echo "$as_me: failed program was:" >&5
12853 sed 's/^/| /' conftest.
$ac_ext >&5
12855 emacs_cv_motif_version_2_1
=no
12858 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12860 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12861 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12862 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
12863 if test $emacs_cv_motif_version_2_1 = yes; then
12866 cat >>confdefs.h
<<\_ACEOF
12867 #define HAVE_MOTIF_2_1 1
12870 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12871 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12872 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12873 echo $ECHO_N "(cached) $ECHO_C" >&6
12875 ac_check_lib_save_LIBS
=$LIBS
12877 cat >conftest.
$ac_ext <<_ACEOF
12880 cat confdefs.h
>>conftest.
$ac_ext
12881 cat >>conftest.
$ac_ext <<_ACEOF
12882 /* end confdefs.h. */
12884 /* Override any GCC internal prototype to avoid an error.
12885 Use char because int might match the return type of a GCC
12886 builtin and then its argument prototype would still apply. */
12890 char XpCreateContext ();
12894 return XpCreateContext ();
12899 rm -f conftest.
$ac_objext conftest
$ac_exeext
12900 if { (ac_try
="$ac_link"
12901 case "(($ac_try" in
12902 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12903 *) ac_try_echo=$ac_try;;
12905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12906 (eval "$ac_link") 2>conftest.er1
12908 grep -v '^ *+' conftest.er1 >conftest.err
12910 cat conftest.err >&5
12911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912 (exit $ac_status); } && {
12913 test -z "$ac_c_werror_flag" ||
12914 test ! -s conftest.err
12915 } && test -s conftest$ac_exeext &&
12916 $as_test_x conftest$ac_exeext; then
12917 ac_cv_lib_Xp_XpCreateContext=yes
12919 echo "$as_me: failed program was:" >&5
12920 sed 's/^/| /' conftest.$ac_ext >&5
12922 ac_cv_lib_Xp_XpCreateContext=no
12925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12926 conftest$ac_exeext conftest.$ac_ext
12927 LIBS=$ac_check_lib_save_LIBS
12929 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12930 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12931 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12935 if test ${HAVE_LIBXP} = yes; then
12937 cat >>confdefs.h <<\_ACEOF
12938 #define HAVE_LIBXP 1
12943 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12944 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12945 if test "${emacs_cv_lesstif+set}" = set; then
12946 echo $ECHO_N "(cached) $ECHO_C" >&6
12948 # We put this in CFLAGS temporarily to precede other -I options
12949 # that might be in CFLAGS temporarily.
12950 # We put this in CPPFLAGS where it precedes the other -I options.
12951 OLD_CPPFLAGS=$CPPFLAGS
12953 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12954 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12955 cat >conftest.$ac_ext <<_ACEOF
12958 cat confdefs.h >>conftest.$ac_ext
12959 cat >>conftest.$ac_ext <<_ACEOF
12960 /* end confdefs.h. */
12961 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12970 rm -f conftest.$ac_objext
12971 if { (ac_try="$ac_compile"
12972 case "(($ac_try" in
12973 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12974 *) ac_try_echo
=$ac_try;;
12976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12977 (eval "$ac_compile") 2>conftest.er1
12979 grep -v '^ *+' conftest.er1
>conftest.err
12981 cat conftest.err
>&5
12982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983 (exit $ac_status); } && {
12984 test -z "$ac_c_werror_flag" ||
12985 test ! -s conftest.err
12986 } && test -s conftest.
$ac_objext; then
12987 emacs_cv_lesstif
=yes
12989 echo "$as_me: failed program was:" >&5
12990 sed 's/^/| /' conftest.
$ac_ext >&5
12992 emacs_cv_lesstif
=no
12995 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12997 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12998 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12999 if test $emacs_cv_lesstif = yes; then
13000 # Make sure this -I option remains in CPPFLAGS after it is set
13001 # back to REAL_CPPFLAGS.
13002 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
13003 # have those other -I options anyway. Ultimately, having this
13004 # directory ultimately in CPPFLAGS will be enough.
13005 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
13006 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
13009 CPPFLAGS
=$OLD_CPPFLAGS
13016 USE_TOOLKIT_SCROLL_BARS
=no
13017 if test "${with_toolkit_scroll_bars}" != "no"; then
13018 if test "${USE_X_TOOLKIT}" != "none"; then
13019 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13020 cat >>confdefs.h
<<\_ACEOF
13021 #define USE_TOOLKIT_SCROLL_BARS 1
13025 USE_TOOLKIT_SCROLL_BARS
=yes
13026 elif test "${HAVE_XAW3D}" = "yes"; then
13027 cat >>confdefs.h
<<\_ACEOF
13028 #define USE_TOOLKIT_SCROLL_BARS 1
13031 USE_TOOLKIT_SCROLL_BARS
=yes
13033 elif test "${HAVE_GTK}" = "yes"; then
13034 cat >>confdefs.h
<<\_ACEOF
13035 #define USE_TOOLKIT_SCROLL_BARS 1
13038 USE_TOOLKIT_SCROLL_BARS
=yes
13039 elif test "${HAVE_CARBON}" = "yes"; then
13040 cat >>confdefs.h
<<\_ACEOF
13041 #define USE_TOOLKIT_SCROLL_BARS 1
13044 USE_TOOLKIT_SCROLL_BARS
=yes
13048 cat >conftest.
$ac_ext <<_ACEOF
13051 cat confdefs.h
>>conftest.
$ac_ext
13052 cat >>conftest.
$ac_ext <<_ACEOF
13053 /* end confdefs.h. */
13055 #include <X11/Xlib.h>
13056 #include <X11/Xresource.h>
13065 rm -f conftest.
$ac_objext
13066 if { (ac_try
="$ac_compile"
13067 case "(($ac_try" in
13068 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13069 *) ac_try_echo=$ac_try;;
13071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13072 (eval "$ac_compile") 2>conftest.er1
13074 grep -v '^ *+' conftest.er1 >conftest.err
13076 cat conftest.err >&5
13077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13078 (exit $ac_status); } && {
13079 test -z "$ac_c_werror_flag" ||
13080 test ! -s conftest.err
13081 } && test -s conftest.$ac_objext; then
13084 cat >>confdefs.h <<\_ACEOF
13089 echo "$as_me: failed program was:" >&5
13090 sed 's/^/| /' conftest.$ac_ext >&5
13095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13098 if test "${with_xim}" != "no"; then
13100 cat >>confdefs.h <<\_ACEOF
13107 if test "${HAVE_XIM}" != "no"; then
13108 late_CFLAGS=$CFLAGS
13109 if test "$GCC" = yes; then
13110 CFLAGS="$CFLAGS --pedantic-errors"
13112 cat >conftest.$ac_ext <<_ACEOF
13115 cat confdefs.h >>conftest.$ac_ext
13116 cat >>conftest.$ac_ext <<_ACEOF
13117 /* end confdefs.h. */
13119 #include <X11/Xlib.h>
13120 #include <X11/Xresource.h>
13129 XPointer *client_data;
13131 /* If we're not using GCC, it's probably not XFree86, and this is
13132 probably right, but we can't use something like --pedantic-errors. */
13133 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
13134 char*, XIMProc, XPointer*);
13136 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
13142 rm -f conftest.$ac_objext
13143 if { (ac_try="$ac_compile"
13144 case "(($ac_try" in
13145 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13146 *) ac_try_echo
=$ac_try;;
13148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13149 (eval "$ac_compile") 2>conftest.er1
13151 grep -v '^ *+' conftest.er1
>conftest.err
13153 cat conftest.err
>&5
13154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155 (exit $ac_status); } && {
13156 test -z "$ac_c_werror_flag" ||
13157 test ! -s conftest.err
13158 } && test -s conftest.
$ac_objext; then
13159 emacs_cv_arg6_star
=yes
13161 echo "$as_me: failed program was:" >&5
13162 sed 's/^/| /' conftest.
$ac_ext >&5
13167 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13169 if test "$emacs_cv_arg6_star" = yes; then
13170 cat >>confdefs.h
<<\_ACEOF
13171 #define XRegisterIMInstantiateCallback_arg6 XPointer*
13175 cat >>confdefs.h
<<\_ACEOF
13176 #define XRegisterIMInstantiateCallback_arg6 XPointer
13180 CFLAGS
=$late_CFLAGS
13183 ### Use -lXpm if available, unless `--with-xpm=no'.
13185 if test "${HAVE_X11}" = "yes"; then
13186 if test "${with_xpm}" != "no"; then
13187 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13188 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13189 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13190 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13191 echo $ECHO_N "(cached) $ECHO_C" >&6
13193 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13194 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13196 # Is the header compilable?
13197 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13198 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13199 cat >conftest.
$ac_ext <<_ACEOF
13202 cat confdefs.h
>>conftest.
$ac_ext
13203 cat >>conftest.
$ac_ext <<_ACEOF
13204 /* end confdefs.h. */
13205 $ac_includes_default
13206 #include <X11/xpm.h>
13208 rm -f conftest.
$ac_objext
13209 if { (ac_try
="$ac_compile"
13210 case "(($ac_try" in
13211 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13212 *) ac_try_echo=$ac_try;;
13214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13215 (eval "$ac_compile") 2>conftest.er1
13217 grep -v '^ *+' conftest.er1 >conftest.err
13219 cat conftest.err >&5
13220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13221 (exit $ac_status); } && {
13222 test -z "$ac_c_werror_flag" ||
13223 test ! -s conftest.err
13224 } && test -s conftest.$ac_objext; then
13225 ac_header_compiler=yes
13227 echo "$as_me: failed program was:" >&5
13228 sed 's/^/| /' conftest.$ac_ext >&5
13230 ac_header_compiler=no
13233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13234 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13235 echo "${ECHO_T}$ac_header_compiler" >&6; }
13237 # Is the header present?
13238 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13239 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13240 cat >conftest.$ac_ext <<_ACEOF
13243 cat confdefs.h >>conftest.$ac_ext
13244 cat >>conftest.$ac_ext <<_ACEOF
13245 /* end confdefs.h. */
13246 #include <X11/xpm.h>
13248 if { (ac_try="$ac_cpp conftest.$ac_ext"
13249 case "(($ac_try" in
13250 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13251 *) ac_try_echo
=$ac_try;;
13253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13254 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13256 grep -v '^ *+' conftest.er1
>conftest.err
13258 cat conftest.err
>&5
13259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260 (exit $ac_status); } >/dev
/null
&& {
13261 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13262 test ! -s conftest.err
13264 ac_header_preproc
=yes
13266 echo "$as_me: failed program was:" >&5
13267 sed 's/^/| /' conftest.
$ac_ext >&5
13269 ac_header_preproc
=no
13272 rm -f conftest.err conftest.
$ac_ext
13273 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13274 echo "${ECHO_T}$ac_header_preproc" >&6; }
13276 # So? What about this header?
13277 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13279 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13280 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13281 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13282 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13283 ac_header_preproc
=yes
13286 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13287 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13288 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13289 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13290 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13291 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13292 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13293 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13294 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13295 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13296 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13297 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13301 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13302 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13303 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13304 echo $ECHO_N "(cached) $ECHO_C" >&6
13306 ac_cv_header_X11_xpm_h
=$ac_header_preproc
13308 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13309 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13312 if test $ac_cv_header_X11_xpm_h = yes; then
13313 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13314 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13315 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13316 echo $ECHO_N "(cached) $ECHO_C" >&6
13318 ac_check_lib_save_LIBS
=$LIBS
13319 LIBS
="-lXpm -lX11 $LIBS"
13320 cat >conftest.
$ac_ext <<_ACEOF
13323 cat confdefs.h
>>conftest.
$ac_ext
13324 cat >>conftest.
$ac_ext <<_ACEOF
13325 /* end confdefs.h. */
13327 /* Override any GCC internal prototype to avoid an error.
13328 Use char because int might match the return type of a GCC
13329 builtin and then its argument prototype would still apply. */
13333 char XpmReadFileToPixmap ();
13337 return XpmReadFileToPixmap ();
13342 rm -f conftest.
$ac_objext conftest
$ac_exeext
13343 if { (ac_try
="$ac_link"
13344 case "(($ac_try" in
13345 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13346 *) ac_try_echo=$ac_try;;
13348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13349 (eval "$ac_link") 2>conftest.er1
13351 grep -v '^ *+' conftest.er1 >conftest.err
13353 cat conftest.err >&5
13354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13355 (exit $ac_status); } && {
13356 test -z "$ac_c_werror_flag" ||
13357 test ! -s conftest.err
13358 } && test -s conftest$ac_exeext &&
13359 $as_test_x conftest$ac_exeext; then
13360 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13362 echo "$as_me: failed program was:" >&5
13363 sed 's/^/| /' conftest.$ac_ext >&5
13365 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13368 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13369 conftest$ac_exeext conftest.$ac_ext
13370 LIBS=$ac_check_lib_save_LIBS
13372 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13373 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13374 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13381 if test "${HAVE_XPM}" = "yes"; then
13382 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13383 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13384 cat >conftest.$ac_ext <<_ACEOF
13387 cat confdefs.h >>conftest.$ac_ext
13388 cat >>conftest.$ac_ext <<_ACEOF
13389 /* end confdefs.h. */
13390 #include "X11/xpm.h"
13391 #ifndef XpmReturnAllocPixels
13392 no_return_alloc_pixels
13396 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13397 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13405 if test "${HAVE_XPM}" = "yes"; then
13406 { echo "$as_me:$LINENO: result: yes" >&5
13407 echo "${ECHO_T}yes" >&6; }
13409 { echo "$as_me:$LINENO: result: no" >&5
13410 echo "${ECHO_T}no" >&6; }
13415 if test "${HAVE_XPM}" = "yes"; then
13417 cat >>confdefs.h <<\_ACEOF
13424 ### Use -ljpeg if available, unless `--with-jpeg=no
'.
13426 if test "${HAVE_X11}" = "yes"; then
13427 if test "${with_jpeg}" != "no"; then
13428 if test "${ac_cv_header_jerror_h+set}" = set; then
13429 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13430 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13431 if test "${ac_cv_header_jerror_h+set}" = set; then
13432 echo $ECHO_N "(cached) $ECHO_C" >&6
13434 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13435 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13437 # Is the header compilable?
13438 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13439 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13440 cat >conftest.$ac_ext <<_ACEOF
13443 cat confdefs.h >>conftest.$ac_ext
13444 cat >>conftest.$ac_ext <<_ACEOF
13445 /* end confdefs.h. */
13446 $ac_includes_default
13447 #include <jerror.h>
13449 rm -f conftest.$ac_objext
13450 if { (ac_try="$ac_compile"
13451 case "(($ac_try" in
13452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13453 *) ac_try_echo=$ac_try;;
13455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13456 (eval "$ac_compile") 2>conftest.er1
13458 grep -v '^
*+' conftest.er1 >conftest.err
13460 cat conftest.err >&5
13461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13462 (exit $ac_status); } && {
13463 test -z "$ac_c_werror_flag" ||
13464 test ! -s conftest.err
13465 } && test -s conftest.$ac_objext; then
13466 ac_header_compiler=yes
13468 echo "$as_me: failed program was:" >&5
13469 sed 's
/^
/|
/' conftest.$ac_ext >&5
13471 ac_header_compiler=no
13474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13475 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13476 echo "${ECHO_T}$ac_header_compiler" >&6; }
13478 # Is the header present?
13479 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13480 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13481 cat >conftest.$ac_ext <<_ACEOF
13484 cat confdefs.h >>conftest.$ac_ext
13485 cat >>conftest.$ac_ext <<_ACEOF
13486 /* end confdefs.h. */
13487 #include <jerror.h>
13489 if { (ac_try="$ac_cpp conftest.$ac_ext"
13490 case "(($ac_try" in
13491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13492 *) ac_try_echo=$ac_try;;
13494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13495 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13497 grep -v '^
*+' conftest.er1 >conftest.err
13499 cat conftest.err >&5
13500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13501 (exit $ac_status); } >/dev/null && {
13502 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13503 test ! -s conftest.err
13505 ac_header_preproc=yes
13507 echo "$as_me: failed program was:" >&5
13508 sed 's
/^
/|
/' conftest.$ac_ext >&5
13510 ac_header_preproc=no
13513 rm -f conftest.err conftest.$ac_ext
13514 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13515 echo "${ECHO_T}$ac_header_preproc" >&6; }
13517 # So? What about this header?
13518 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13520 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13521 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13522 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result
" >&5
13523 echo "$as_me: WARNING
: jerror.h
: proceeding with the compiler
's result" >&2;}
13524 ac_header_preproc=yes
13527 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13528 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13529 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13530 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13531 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13532 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13533 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13534 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13535 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result
" >&5
13536 echo "$as_me: WARNING
: jerror.h
: proceeding with the preprocessor
's result" >&2;}
13537 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13538 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13542 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13543 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13544 if test "${ac_cv_header_jerror_h+set}" = set; then
13545 echo $ECHO_N "(cached) $ECHO_C" >&6
13547 ac_cv_header_jerror_h=$ac_header_preproc
13549 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13550 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13553 if test $ac_cv_header_jerror_h = yes; then
13554 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13555 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13556 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13557 echo $ECHO_N "(cached) $ECHO_C" >&6
13559 ac_check_lib_save_LIBS=$LIBS
13560 LIBS="-ljpeg $LIBS"
13561 cat >conftest.$ac_ext <<_ACEOF
13564 cat confdefs.h >>conftest.$ac_ext
13565 cat >>conftest.$ac_ext <<_ACEOF
13566 /* end confdefs.h. */
13568 /* Override any GCC internal prototype to avoid an error.
13569 Use char because int might match the return type of a GCC
13570 builtin and then its argument prototype would still apply. */
13574 char jpeg_destroy_compress ();
13578 return jpeg_destroy_compress ();
13583 rm -f conftest.$ac_objext conftest$ac_exeext
13584 if { (ac_try="$ac_link"
13585 case "(($ac_try" in
13586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13587 *) ac_try_echo=$ac_try;;
13589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13590 (eval "$ac_link") 2>conftest.er1
13592 grep -v '^
*+' conftest.er1 >conftest.err
13594 cat conftest.err >&5
13595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13596 (exit $ac_status); } && {
13597 test -z "$ac_c_werror_flag" ||
13598 test ! -s conftest.err
13599 } && test -s conftest$ac_exeext &&
13600 $as_test_x conftest$ac_exeext; then
13601 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13603 echo "$as_me: failed program was:" >&5
13604 sed 's
/^
/|
/' conftest.$ac_ext >&5
13606 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13610 conftest$ac_exeext conftest.$ac_ext
13611 LIBS=$ac_check_lib_save_LIBS
13613 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13614 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13615 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13625 if test "${HAVE_JPEG}" = "yes"; then
13626 cat >>confdefs.h <<\_ACEOF
13627 #define HAVE_JPEG 1
13630 cat >conftest.$ac_ext <<_ACEOF
13633 cat confdefs.h >>conftest.$ac_ext
13634 cat >>conftest.$ac_ext <<_ACEOF
13635 /* end confdefs.h. */
13636 #include <jpeglib.h>
13637 version=JPEG_LIB_VERSION
13640 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13641 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13642 cat >>confdefs.h <<\_ACEOF
13643 #define HAVE_JPEG 1
13647 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13648 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13656 ### Use -lpng if available, unless `--with-png=no'.
13658 if test "${HAVE_X11}" = "yes"; then
13659 if test "${with_png}" != "no"; then
13660 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13661 # in /usr/include/libpng.
13664 for ac_header
in png.h libpng
/png.h
13666 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13667 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13668 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13670 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13671 echo $ECHO_N "(cached) $ECHO_C" >&6
13673 ac_res
=`eval echo '${'$as_ac_Header'}'`
13674 { echo "$as_me:$LINENO: result: $ac_res" >&5
13675 echo "${ECHO_T}$ac_res" >&6; }
13677 # Is the header compilable?
13678 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13679 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13680 cat >conftest.
$ac_ext <<_ACEOF
13683 cat confdefs.h
>>conftest.
$ac_ext
13684 cat >>conftest.
$ac_ext <<_ACEOF
13685 /* end confdefs.h. */
13686 $ac_includes_default
13687 #include <$ac_header>
13689 rm -f conftest.
$ac_objext
13690 if { (ac_try
="$ac_compile"
13691 case "(($ac_try" in
13692 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13693 *) ac_try_echo=$ac_try;;
13695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13696 (eval "$ac_compile") 2>conftest.er1
13698 grep -v '^ *+' conftest.er1 >conftest.err
13700 cat conftest.err >&5
13701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702 (exit $ac_status); } && {
13703 test -z "$ac_c_werror_flag" ||
13704 test ! -s conftest.err
13705 } && test -s conftest.$ac_objext; then
13706 ac_header_compiler=yes
13708 echo "$as_me: failed program was:" >&5
13709 sed 's/^/| /' conftest.$ac_ext >&5
13711 ac_header_compiler=no
13714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13715 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13716 echo "${ECHO_T}$ac_header_compiler" >&6; }
13718 # Is the header present?
13719 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13720 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13721 cat >conftest.$ac_ext <<_ACEOF
13724 cat confdefs.h >>conftest.$ac_ext
13725 cat >>conftest.$ac_ext <<_ACEOF
13726 /* end confdefs.h. */
13727 #include <$ac_header>
13729 if { (ac_try="$ac_cpp conftest.$ac_ext"
13730 case "(($ac_try" in
13731 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13732 *) ac_try_echo
=$ac_try;;
13734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13735 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13737 grep -v '^ *+' conftest.er1
>conftest.err
13739 cat conftest.err
>&5
13740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13741 (exit $ac_status); } >/dev
/null
&& {
13742 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13743 test ! -s conftest.err
13745 ac_header_preproc
=yes
13747 echo "$as_me: failed program was:" >&5
13748 sed 's/^/| /' conftest.
$ac_ext >&5
13750 ac_header_preproc
=no
13753 rm -f conftest.err conftest.
$ac_ext
13754 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13755 echo "${ECHO_T}$ac_header_preproc" >&6; }
13757 # So? What about this header?
13758 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13760 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13761 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13762 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13763 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13764 ac_header_preproc
=yes
13767 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13768 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13769 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13770 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13771 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13772 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13773 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13774 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13775 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13776 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13777 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13778 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13782 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13784 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13785 echo $ECHO_N "(cached) $ECHO_C" >&6
13787 eval "$as_ac_Header=\$ac_header_preproc"
13789 ac_res
=`eval echo '${'$as_ac_Header'}'`
13790 { echo "$as_me:$LINENO: result: $ac_res" >&5
13791 echo "${ECHO_T}$ac_res" >&6; }
13794 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13795 cat >>confdefs.h
<<_ACEOF
13796 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13803 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
13804 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13805 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13806 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13807 echo $ECHO_N "(cached) $ECHO_C" >&6
13809 ac_check_lib_save_LIBS
=$LIBS
13810 LIBS
="-lpng -lz -lm $LIBS"
13811 cat >conftest.
$ac_ext <<_ACEOF
13814 cat confdefs.h
>>conftest.
$ac_ext
13815 cat >>conftest.
$ac_ext <<_ACEOF
13816 /* end confdefs.h. */
13818 /* Override any GCC internal prototype to avoid an error.
13819 Use char because int might match the return type of a GCC
13820 builtin and then its argument prototype would still apply. */
13824 char png_get_channels ();
13828 return png_get_channels ();
13833 rm -f conftest.
$ac_objext conftest
$ac_exeext
13834 if { (ac_try
="$ac_link"
13835 case "(($ac_try" in
13836 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13837 *) ac_try_echo=$ac_try;;
13839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13840 (eval "$ac_link") 2>conftest.er1
13842 grep -v '^ *+' conftest.er1 >conftest.err
13844 cat conftest.err >&5
13845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13846 (exit $ac_status); } && {
13847 test -z "$ac_c_werror_flag" ||
13848 test ! -s conftest.err
13849 } && test -s conftest$ac_exeext &&
13850 $as_test_x conftest$ac_exeext; then
13851 ac_cv_lib_png_png_get_channels=yes
13853 echo "$as_me: failed program was:" >&5
13854 sed 's/^/| /' conftest.$ac_ext >&5
13856 ac_cv_lib_png_png_get_channels=no
13859 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13860 conftest$ac_exeext conftest.$ac_ext
13861 LIBS=$ac_check_lib_save_LIBS
13863 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13864 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13865 if test $ac_cv_lib_png_png_get_channels = yes; then
13872 if test "${HAVE_PNG}" = "yes"; then
13874 cat >>confdefs.h <<\_ACEOF
13881 ### Use -ltiff if available, unless `--with-tiff=no
'.
13883 if test "${HAVE_X11}" = "yes"; then
13884 if test "${with_tiff}" != "no"; then
13885 if test "${ac_cv_header_tiffio_h+set}" = set; then
13886 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13887 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13888 if test "${ac_cv_header_tiffio_h+set}" = set; then
13889 echo $ECHO_N "(cached) $ECHO_C" >&6
13891 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13892 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13894 # Is the header compilable?
13895 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13896 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13897 cat >conftest.$ac_ext <<_ACEOF
13900 cat confdefs.h >>conftest.$ac_ext
13901 cat >>conftest.$ac_ext <<_ACEOF
13902 /* end confdefs.h. */
13903 $ac_includes_default
13904 #include <tiffio.h>
13906 rm -f conftest.$ac_objext
13907 if { (ac_try="$ac_compile"
13908 case "(($ac_try" in
13909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13910 *) ac_try_echo=$ac_try;;
13912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13913 (eval "$ac_compile") 2>conftest.er1
13915 grep -v '^
*+' conftest.er1 >conftest.err
13917 cat conftest.err >&5
13918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13919 (exit $ac_status); } && {
13920 test -z "$ac_c_werror_flag" ||
13921 test ! -s conftest.err
13922 } && test -s conftest.$ac_objext; then
13923 ac_header_compiler=yes
13925 echo "$as_me: failed program was:" >&5
13926 sed 's
/^
/|
/' conftest.$ac_ext >&5
13928 ac_header_compiler=no
13931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13932 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13933 echo "${ECHO_T}$ac_header_compiler" >&6; }
13935 # Is the header present?
13936 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13937 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13938 cat >conftest.$ac_ext <<_ACEOF
13941 cat confdefs.h >>conftest.$ac_ext
13942 cat >>conftest.$ac_ext <<_ACEOF
13943 /* end confdefs.h. */
13944 #include <tiffio.h>
13946 if { (ac_try="$ac_cpp conftest.$ac_ext"
13947 case "(($ac_try" in
13948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13949 *) ac_try_echo=$ac_try;;
13951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13952 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13954 grep -v '^
*+' conftest.er1 >conftest.err
13956 cat conftest.err >&5
13957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13958 (exit $ac_status); } >/dev/null && {
13959 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13960 test ! -s conftest.err
13962 ac_header_preproc=yes
13964 echo "$as_me: failed program was:" >&5
13965 sed 's
/^
/|
/' conftest.$ac_ext >&5
13967 ac_header_preproc=no
13970 rm -f conftest.err conftest.$ac_ext
13971 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13972 echo "${ECHO_T}$ac_header_preproc" >&6; }
13974 # So? What about this header?
13975 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13977 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13978 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13979 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result
" >&5
13980 echo "$as_me: WARNING
: tiffio.h
: proceeding with the compiler
's result" >&2;}
13981 ac_header_preproc=yes
13984 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13985 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13986 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13987 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13988 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13989 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13990 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13991 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13992 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result
" >&5
13993 echo "$as_me: WARNING
: tiffio.h
: proceeding with the preprocessor
's result" >&2;}
13994 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13995 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13999 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14000 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14001 if test "${ac_cv_header_tiffio_h+set}" = set; then
14002 echo $ECHO_N "(cached) $ECHO_C" >&6
14004 ac_cv_header_tiffio_h=$ac_header_preproc
14006 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14007 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14010 if test $ac_cv_header_tiffio_h = yes; then
14012 # At least one tiff package requires the jpeg library.
14013 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14014 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
14015 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
14016 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14017 echo $ECHO_N "(cached) $ECHO_C" >&6
14019 ac_check_lib_save_LIBS=$LIBS
14020 LIBS="-ltiff $tifflibs $LIBS"
14021 cat >conftest.$ac_ext <<_ACEOF
14024 cat confdefs.h >>conftest.$ac_ext
14025 cat >>conftest.$ac_ext <<_ACEOF
14026 /* end confdefs.h. */
14028 /* Override any GCC internal prototype to avoid an error.
14029 Use char because int might match the return type of a GCC
14030 builtin and then its argument prototype would still apply. */
14034 char TIFFGetVersion ();
14038 return TIFFGetVersion ();
14043 rm -f conftest.$ac_objext conftest$ac_exeext
14044 if { (ac_try="$ac_link"
14045 case "(($ac_try" in
14046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14047 *) ac_try_echo=$ac_try;;
14049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14050 (eval "$ac_link") 2>conftest.er1
14052 grep -v '^
*+' conftest.er1 >conftest.err
14054 cat conftest.err >&5
14055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14056 (exit $ac_status); } && {
14057 test -z "$ac_c_werror_flag" ||
14058 test ! -s conftest.err
14059 } && test -s conftest$ac_exeext &&
14060 $as_test_x conftest$ac_exeext; then
14061 ac_cv_lib_tiff_TIFFGetVersion=yes
14063 echo "$as_me: failed program was:" >&5
14064 sed 's
/^
/|
/' conftest.$ac_ext >&5
14066 ac_cv_lib_tiff_TIFFGetVersion=no
14069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14070 conftest$ac_exeext conftest.$ac_ext
14071 LIBS=$ac_check_lib_save_LIBS
14073 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14074 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14075 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14084 if test "${HAVE_TIFF}" = "yes"; then
14086 cat >>confdefs.h <<\_ACEOF
14087 #define HAVE_TIFF 1
14093 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14095 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14096 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14097 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14098 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14099 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14100 echo $ECHO_N "(cached) $ECHO_C" >&6
14102 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14103 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14105 # Is the header compilable?
14106 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14107 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14108 cat >conftest.
$ac_ext <<_ACEOF
14111 cat confdefs.h
>>conftest.
$ac_ext
14112 cat >>conftest.
$ac_ext <<_ACEOF
14113 /* end confdefs.h. */
14114 $ac_includes_default
14115 #include <gif_lib.h>
14117 rm -f conftest.
$ac_objext
14118 if { (ac_try
="$ac_compile"
14119 case "(($ac_try" in
14120 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14121 *) ac_try_echo=$ac_try;;
14123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14124 (eval "$ac_compile") 2>conftest.er1
14126 grep -v '^ *+' conftest.er1 >conftest.err
14128 cat conftest.err >&5
14129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14130 (exit $ac_status); } && {
14131 test -z "$ac_c_werror_flag" ||
14132 test ! -s conftest.err
14133 } && test -s conftest.$ac_objext; then
14134 ac_header_compiler=yes
14136 echo "$as_me: failed program was:" >&5
14137 sed 's/^/| /' conftest.$ac_ext >&5
14139 ac_header_compiler=no
14142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14143 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14144 echo "${ECHO_T}$ac_header_compiler" >&6; }
14146 # Is the header present?
14147 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14148 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14149 cat >conftest.$ac_ext <<_ACEOF
14152 cat confdefs.h >>conftest.$ac_ext
14153 cat >>conftest.$ac_ext <<_ACEOF
14154 /* end confdefs.h. */
14155 #include <gif_lib.h>
14157 if { (ac_try="$ac_cpp conftest.$ac_ext"
14158 case "(($ac_try" in
14159 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14160 *) ac_try_echo
=$ac_try;;
14162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14163 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14165 grep -v '^ *+' conftest.er1
>conftest.err
14167 cat conftest.err
>&5
14168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14169 (exit $ac_status); } >/dev
/null
&& {
14170 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14171 test ! -s conftest.err
14173 ac_header_preproc
=yes
14175 echo "$as_me: failed program was:" >&5
14176 sed 's/^/| /' conftest.
$ac_ext >&5
14178 ac_header_preproc
=no
14181 rm -f conftest.err conftest.
$ac_ext
14182 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14183 echo "${ECHO_T}$ac_header_preproc" >&6; }
14185 # So? What about this header?
14186 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14188 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14189 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14190 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14191 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14192 ac_header_preproc
=yes
14195 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14196 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14197 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14198 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14199 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14200 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14201 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14202 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14203 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14204 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14205 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14206 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14210 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14211 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14212 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14213 echo $ECHO_N "(cached) $ECHO_C" >&6
14215 ac_cv_header_gif_lib_h
=$ac_header_preproc
14217 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14218 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14221 if test $ac_cv_header_gif_lib_h = yes; then
14222 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14223 # Earlier versions can crash Emacs.
14224 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14225 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
14226 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14227 echo $ECHO_N "(cached) $ECHO_C" >&6
14229 ac_check_lib_save_LIBS
=$LIBS
14231 cat >conftest.
$ac_ext <<_ACEOF
14234 cat confdefs.h
>>conftest.
$ac_ext
14235 cat >>conftest.
$ac_ext <<_ACEOF
14236 /* end confdefs.h. */
14238 /* Override any GCC internal prototype to avoid an error.
14239 Use char because int might match the return type of a GCC
14240 builtin and then its argument prototype would still apply. */
14244 char EGifPutExtensionLast ();
14248 return EGifPutExtensionLast ();
14253 rm -f conftest.
$ac_objext conftest
$ac_exeext
14254 if { (ac_try
="$ac_link"
14255 case "(($ac_try" in
14256 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14257 *) ac_try_echo=$ac_try;;
14259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14260 (eval "$ac_link") 2>conftest.er1
14262 grep -v '^ *+' conftest.er1 >conftest.err
14264 cat conftest.err >&5
14265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14266 (exit $ac_status); } && {
14267 test -z "$ac_c_werror_flag" ||
14268 test ! -s conftest.err
14269 } && test -s conftest$ac_exeext &&
14270 $as_test_x conftest$ac_exeext; then
14271 ac_cv_lib_gif_EGifPutExtensionLast=yes
14273 echo "$as_me: failed program was:" >&5
14274 sed 's/^/| /' conftest.$ac_ext >&5
14276 ac_cv_lib_gif_EGifPutExtensionLast=no
14279 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14280 conftest$ac_exeext conftest.$ac_ext
14281 LIBS=$ac_check_lib_save_LIBS
14283 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14284 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14285 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14295 if test "$HAVE_GIF" = yes; then
14296 ac_gif_lib_name="-lgif"
14299 # If gif_lib.h but no libgif, try libungif.
14300 if test x"$try_libungif" = xyes; then
14301 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14302 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14303 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14304 echo $ECHO_N "(cached) $ECHO_C" >&6
14306 ac_check_lib_save_LIBS=$LIBS
14307 LIBS="-lungif $LIBS"
14308 cat >conftest.$ac_ext <<_ACEOF
14311 cat confdefs.h >>conftest.$ac_ext
14312 cat >>conftest.$ac_ext <<_ACEOF
14313 /* end confdefs.h. */
14315 /* Override any GCC internal prototype to avoid an error.
14316 Use char because int might match the return type of a GCC
14317 builtin and then its argument prototype would still apply. */
14321 char EGifPutExtensionLast ();
14325 return EGifPutExtensionLast ();
14330 rm -f conftest.$ac_objext conftest$ac_exeext
14331 if { (ac_try="$ac_link"
14332 case "(($ac_try" in
14333 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14334 *) ac_try_echo
=$ac_try;;
14336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14337 (eval "$ac_link") 2>conftest.er1
14339 grep -v '^ *+' conftest.er1
>conftest.err
14341 cat conftest.err
>&5
14342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14343 (exit $ac_status); } && {
14344 test -z "$ac_c_werror_flag" ||
14345 test ! -s conftest.err
14346 } && test -s conftest
$ac_exeext &&
14347 $as_test_x conftest
$ac_exeext; then
14348 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
14350 echo "$as_me: failed program was:" >&5
14351 sed 's/^/| /' conftest.
$ac_ext >&5
14353 ac_cv_lib_ungif_EGifPutExtensionLast
=no
14356 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14357 conftest
$ac_exeext conftest.
$ac_ext
14358 LIBS
=$ac_check_lib_save_LIBS
14360 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14361 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14362 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14367 if test "$HAVE_GIF" = yes; then
14369 cat >>confdefs.h
<<\_ACEOF
14370 #define LIBGIF -lungif
14373 ac_gif_lib_name
="-lungif"
14377 if test "${HAVE_GIF}" = "yes"; then
14379 cat >>confdefs.h
<<\_ACEOF
14386 if test "${HAVE_X11}" = "yes"; then
14389 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14390 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
14391 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14392 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
14393 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14394 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
14395 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14396 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
14397 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14398 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
14400 if test "X${MISSING}" != X
; then
14401 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
14403 Maybe some development libraries/packages are missing?
14404 If you don't want to link with them give
14406 as options to configure" >&5
14407 echo "$as_me: error: The following required libraries were not found:
14409 Maybe some development libraries/packages are missing?
14410 If you don't want to link with them give
14412 as options to configure" >&2;}
14413 { (exit 1); exit 1; }; }
14417 ### Use -lgpm if available, unless `--with-gpm=no'.
14419 if test "${with_gpm}" != "no"; then
14420 if test "${ac_cv_header_gpm_h+set}" = set; then
14421 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14422 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14423 if test "${ac_cv_header_gpm_h+set}" = set; then
14424 echo $ECHO_N "(cached) $ECHO_C" >&6
14426 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14427 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14429 # Is the header compilable?
14430 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14431 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14432 cat >conftest.
$ac_ext <<_ACEOF
14435 cat confdefs.h
>>conftest.
$ac_ext
14436 cat >>conftest.
$ac_ext <<_ACEOF
14437 /* end confdefs.h. */
14438 $ac_includes_default
14441 rm -f conftest.
$ac_objext
14442 if { (ac_try
="$ac_compile"
14443 case "(($ac_try" in
14444 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14445 *) ac_try_echo=$ac_try;;
14447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14448 (eval "$ac_compile") 2>conftest.er1
14450 grep -v '^ *+' conftest.er1 >conftest.err
14452 cat conftest.err >&5
14453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14454 (exit $ac_status); } && {
14455 test -z "$ac_c_werror_flag" ||
14456 test ! -s conftest.err
14457 } && test -s conftest.$ac_objext; then
14458 ac_header_compiler=yes
14460 echo "$as_me: failed program was:" >&5
14461 sed 's/^/| /' conftest.$ac_ext >&5
14463 ac_header_compiler=no
14466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14467 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14468 echo "${ECHO_T}$ac_header_compiler" >&6; }
14470 # Is the header present?
14471 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14472 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14473 cat >conftest.$ac_ext <<_ACEOF
14476 cat confdefs.h >>conftest.$ac_ext
14477 cat >>conftest.$ac_ext <<_ACEOF
14478 /* end confdefs.h. */
14481 if { (ac_try="$ac_cpp conftest.$ac_ext"
14482 case "(($ac_try" in
14483 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14484 *) ac_try_echo
=$ac_try;;
14486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14487 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14489 grep -v '^ *+' conftest.er1
>conftest.err
14491 cat conftest.err
>&5
14492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14493 (exit $ac_status); } >/dev
/null
&& {
14494 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14495 test ! -s conftest.err
14497 ac_header_preproc
=yes
14499 echo "$as_me: failed program was:" >&5
14500 sed 's/^/| /' conftest.
$ac_ext >&5
14502 ac_header_preproc
=no
14505 rm -f conftest.err conftest.
$ac_ext
14506 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14507 echo "${ECHO_T}$ac_header_preproc" >&6; }
14509 # So? What about this header?
14510 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14512 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14513 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14514 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14515 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14516 ac_header_preproc
=yes
14519 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14520 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14521 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14522 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14523 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14524 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14525 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14526 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14527 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14528 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14529 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14530 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14534 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14535 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14536 if test "${ac_cv_header_gpm_h+set}" = set; then
14537 echo $ECHO_N "(cached) $ECHO_C" >&6
14539 ac_cv_header_gpm_h
=$ac_header_preproc
14541 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14542 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14545 if test $ac_cv_header_gpm_h = yes; then
14546 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14547 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14548 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14549 echo $ECHO_N "(cached) $ECHO_C" >&6
14551 ac_check_lib_save_LIBS
=$LIBS
14553 cat >conftest.
$ac_ext <<_ACEOF
14556 cat confdefs.h
>>conftest.
$ac_ext
14557 cat >>conftest.
$ac_ext <<_ACEOF
14558 /* end confdefs.h. */
14560 /* Override any GCC internal prototype to avoid an error.
14561 Use char because int might match the return type of a GCC
14562 builtin and then its argument prototype would still apply. */
14570 return Gpm_Open ();
14575 rm -f conftest.
$ac_objext conftest
$ac_exeext
14576 if { (ac_try
="$ac_link"
14577 case "(($ac_try" in
14578 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14579 *) ac_try_echo=$ac_try;;
14581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14582 (eval "$ac_link") 2>conftest.er1
14584 grep -v '^ *+' conftest.er1 >conftest.err
14586 cat conftest.err >&5
14587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14588 (exit $ac_status); } && {
14589 test -z "$ac_c_werror_flag" ||
14590 test ! -s conftest.err
14591 } && test -s conftest$ac_exeext &&
14592 $as_test_x conftest$ac_exeext; then
14593 ac_cv_lib_gpm_Gpm_Open=yes
14595 echo "$as_me: failed program was:" >&5
14596 sed 's/^/| /' conftest.$ac_ext >&5
14598 ac_cv_lib_gpm_Gpm_Open=no
14601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14602 conftest$ac_exeext conftest.$ac_ext
14603 LIBS=$ac_check_lib_save_LIBS
14605 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14606 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14607 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14616 if test "${HAVE_GPM}" = "yes"; then
14618 cat >>confdefs.h <<\_ACEOF
14624 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14625 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14626 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14627 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14628 echo $ECHO_N "(cached) $ECHO_C" >&6
14630 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14631 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14633 # Is the header compilable?
14634 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14635 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14636 cat >conftest.$ac_ext <<_ACEOF
14639 cat confdefs.h >>conftest.$ac_ext
14640 cat >>conftest.$ac_ext <<_ACEOF
14641 /* end confdefs.h. */
14642 $ac_includes_default
14643 #include <malloc/malloc.h>
14645 rm -f conftest.$ac_objext
14646 if { (ac_try="$ac_compile"
14647 case "(($ac_try" in
14648 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14649 *) ac_try_echo
=$ac_try;;
14651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14652 (eval "$ac_compile") 2>conftest.er1
14654 grep -v '^ *+' conftest.er1
>conftest.err
14656 cat conftest.err
>&5
14657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658 (exit $ac_status); } && {
14659 test -z "$ac_c_werror_flag" ||
14660 test ! -s conftest.err
14661 } && test -s conftest.
$ac_objext; then
14662 ac_header_compiler
=yes
14664 echo "$as_me: failed program was:" >&5
14665 sed 's/^/| /' conftest.
$ac_ext >&5
14667 ac_header_compiler
=no
14670 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14671 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14672 echo "${ECHO_T}$ac_header_compiler" >&6; }
14674 # Is the header present?
14675 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14676 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14677 cat >conftest.
$ac_ext <<_ACEOF
14680 cat confdefs.h
>>conftest.
$ac_ext
14681 cat >>conftest.
$ac_ext <<_ACEOF
14682 /* end confdefs.h. */
14683 #include <malloc/malloc.h>
14685 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14686 case "(($ac_try" in
14687 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14688 *) ac_try_echo=$ac_try;;
14690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14691 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14693 grep -v '^ *+' conftest.er1 >conftest.err
14695 cat conftest.err >&5
14696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14697 (exit $ac_status); } >/dev/null && {
14698 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14699 test ! -s conftest.err
14701 ac_header_preproc=yes
14703 echo "$as_me: failed program was:" >&5
14704 sed 's/^/| /' conftest.$ac_ext >&5
14706 ac_header_preproc=no
14709 rm -f conftest.err conftest.$ac_ext
14710 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14711 echo "${ECHO_T}$ac_header_preproc" >&6; }
14713 # So? What about this header?
14714 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14716 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14717 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14718 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14719 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14720 ac_header_preproc=yes
14723 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14724 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14725 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14726 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14727 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14728 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14729 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14730 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14731 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14732 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14733 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14734 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14738 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14739 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14740 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14741 echo $ECHO_N "(cached) $ECHO_C" >&6
14743 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14745 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14746 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14749 if test $ac_cv_header_malloc_malloc_h = yes; then
14751 cat >>confdefs.h <<\_ACEOF
14752 #define HAVE_MALLOC_MALLOC_H 1
14759 ### Use Mac OS X Carbon API to implement GUI.
14760 if test "${HAVE_CARBON}" = "yes"; then
14762 cat >>confdefs.h <<\_ACEOF
14763 #define HAVE_CARBON 1
14766 ## Specify the install directory
14768 if test "${carbon_appdir_x}" != ""; then
14769 case ${carbon_appdir_x} in
14770 y | ye | yes) carbon_appdir=/Applications ;;
14771 * ) carbon_appdir=${carbon_appdir_x} ;;
14774 # We also have mouse menus.
14778 ### Use session management (-lSM -lICE) if available
14780 if test "${HAVE_X11}" = "yes"; then
14781 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14782 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14783 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14784 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14785 echo $ECHO_N "(cached) $ECHO_C" >&6
14787 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14788 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14790 # Is the header compilable?
14791 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14792 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14793 cat >conftest.$ac_ext <<_ACEOF
14796 cat confdefs.h >>conftest.$ac_ext
14797 cat >>conftest.$ac_ext <<_ACEOF
14798 /* end confdefs.h. */
14799 $ac_includes_default
14800 #include <X11/SM/SMlib.h>
14802 rm -f conftest.$ac_objext
14803 if { (ac_try="$ac_compile"
14804 case "(($ac_try" in
14805 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14806 *) ac_try_echo
=$ac_try;;
14808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14809 (eval "$ac_compile") 2>conftest.er1
14811 grep -v '^ *+' conftest.er1
>conftest.err
14813 cat conftest.err
>&5
14814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14815 (exit $ac_status); } && {
14816 test -z "$ac_c_werror_flag" ||
14817 test ! -s conftest.err
14818 } && test -s conftest.
$ac_objext; then
14819 ac_header_compiler
=yes
14821 echo "$as_me: failed program was:" >&5
14822 sed 's/^/| /' conftest.
$ac_ext >&5
14824 ac_header_compiler
=no
14827 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14828 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14829 echo "${ECHO_T}$ac_header_compiler" >&6; }
14831 # Is the header present?
14832 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14833 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14834 cat >conftest.
$ac_ext <<_ACEOF
14837 cat confdefs.h
>>conftest.
$ac_ext
14838 cat >>conftest.
$ac_ext <<_ACEOF
14839 /* end confdefs.h. */
14840 #include <X11/SM/SMlib.h>
14842 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14843 case "(($ac_try" in
14844 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14845 *) ac_try_echo=$ac_try;;
14847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14848 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14850 grep -v '^ *+' conftest.er1 >conftest.err
14852 cat conftest.err >&5
14853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14854 (exit $ac_status); } >/dev/null && {
14855 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14856 test ! -s conftest.err
14858 ac_header_preproc=yes
14860 echo "$as_me: failed program was:" >&5
14861 sed 's/^/| /' conftest.$ac_ext >&5
14863 ac_header_preproc=no
14866 rm -f conftest.err conftest.$ac_ext
14867 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14868 echo "${ECHO_T}$ac_header_preproc" >&6; }
14870 # So? What about this header?
14871 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14873 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14874 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14875 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14876 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14877 ac_header_preproc=yes
14880 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14881 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14882 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14883 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14884 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14885 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14886 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14887 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14888 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14889 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14890 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14891 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14895 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14896 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14897 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14898 echo $ECHO_N "(cached) $ECHO_C" >&6
14900 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14902 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14903 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14906 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14907 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14908 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14909 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14910 echo $ECHO_N "(cached) $ECHO_C" >&6
14912 ac_check_lib_save_LIBS=$LIBS
14913 LIBS="-lSM -lICE $LIBS"
14914 cat >conftest.$ac_ext <<_ACEOF
14917 cat confdefs.h >>conftest.$ac_ext
14918 cat >>conftest.$ac_ext <<_ACEOF
14919 /* end confdefs.h. */
14921 /* Override any GCC internal prototype to avoid an error.
14922 Use char because int might match the return type of a GCC
14923 builtin and then its argument prototype would still apply. */
14927 char SmcOpenConnection ();
14931 return SmcOpenConnection ();
14936 rm -f conftest.$ac_objext conftest$ac_exeext
14937 if { (ac_try="$ac_link"
14938 case "(($ac_try" in
14939 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14940 *) ac_try_echo
=$ac_try;;
14942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14943 (eval "$ac_link") 2>conftest.er1
14945 grep -v '^ *+' conftest.er1
>conftest.err
14947 cat conftest.err
>&5
14948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14949 (exit $ac_status); } && {
14950 test -z "$ac_c_werror_flag" ||
14951 test ! -s conftest.err
14952 } && test -s conftest
$ac_exeext &&
14953 $as_test_x conftest
$ac_exeext; then
14954 ac_cv_lib_SM_SmcOpenConnection
=yes
14956 echo "$as_me: failed program was:" >&5
14957 sed 's/^/| /' conftest.
$ac_ext >&5
14959 ac_cv_lib_SM_SmcOpenConnection
=no
14962 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14963 conftest
$ac_exeext conftest.
$ac_ext
14964 LIBS
=$ac_check_lib_save_LIBS
14966 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14967 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14968 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14976 if test "${HAVE_X_SM}" = "yes"; then
14978 cat >>confdefs.h
<<\_ACEOF
14979 #define HAVE_X_SM 1
14984 *) LIBS
="-lSM -lICE $LIBS" ;;
14989 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14990 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14991 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14992 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14993 echo $ECHO_N "(cached) $ECHO_C" >&6
14995 cat >conftest.
$ac_ext <<_ACEOF
14998 cat confdefs.h
>>conftest.
$ac_ext
14999 cat >>conftest.
$ac_ext <<_ACEOF
15000 /* end confdefs.h. */
15010 rm -f conftest.
$ac_objext conftest
$ac_exeext
15011 if { (ac_try
="$ac_link"
15012 case "(($ac_try" in
15013 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15014 *) ac_try_echo=$ac_try;;
15016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15017 (eval "$ac_link") 2>conftest.er1
15019 grep -v '^ *+' conftest.er1 >conftest.err
15021 cat conftest.err >&5
15022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15023 (exit $ac_status); } && {
15024 test -z "$ac_c_werror_flag" ||
15025 test ! -s conftest.err
15026 } && test -s conftest$ac_exeext &&
15027 $as_test_x conftest$ac_exeext; then
15028 emacs_cv_netdb_declares_h_errno=yes
15030 echo "$as_me: failed program was:" >&5
15031 sed 's/^/| /' conftest.$ac_ext >&5
15033 emacs_cv_netdb_declares_h_errno=no
15036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15037 conftest$ac_exeext conftest.$ac_ext
15039 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15040 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
15041 if test $emacs_cv_netdb_declares_h_errno = yes; then
15043 cat >>confdefs.h <<\_ACEOF
15044 #define HAVE_H_ERRNO 1
15049 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15050 # for constant arguments. Useless!
15051 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
15052 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
15053 if test "${ac_cv_working_alloca_h+set}" = set; then
15054 echo $ECHO_N "(cached) $ECHO_C" >&6
15056 cat >conftest.$ac_ext <<_ACEOF
15059 cat confdefs.h >>conftest.$ac_ext
15060 cat >>conftest.$ac_ext <<_ACEOF
15061 /* end confdefs.h. */
15062 #include <alloca.h>
15066 char *p = (char *) alloca (2 * sizeof (int));
15072 rm -f conftest.$ac_objext conftest$ac_exeext
15073 if { (ac_try="$ac_link"
15074 case "(($ac_try" in
15075 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15076 *) ac_try_echo
=$ac_try;;
15078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15079 (eval "$ac_link") 2>conftest.er1
15081 grep -v '^ *+' conftest.er1
>conftest.err
15083 cat conftest.err
>&5
15084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15085 (exit $ac_status); } && {
15086 test -z "$ac_c_werror_flag" ||
15087 test ! -s conftest.err
15088 } && test -s conftest
$ac_exeext &&
15089 $as_test_x conftest
$ac_exeext; then
15090 ac_cv_working_alloca_h
=yes
15092 echo "$as_me: failed program was:" >&5
15093 sed 's/^/| /' conftest.
$ac_ext >&5
15095 ac_cv_working_alloca_h
=no
15098 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15099 conftest
$ac_exeext conftest.
$ac_ext
15101 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15102 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15103 if test $ac_cv_working_alloca_h = yes; then
15105 cat >>confdefs.h
<<\_ACEOF
15106 #define HAVE_ALLOCA_H 1
15111 { echo "$as_me:$LINENO: checking for alloca" >&5
15112 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15113 if test "${ac_cv_func_alloca_works+set}" = set; then
15114 echo $ECHO_N "(cached) $ECHO_C" >&6
15116 cat >conftest.
$ac_ext <<_ACEOF
15119 cat confdefs.h
>>conftest.
$ac_ext
15120 cat >>conftest.
$ac_ext <<_ACEOF
15121 /* end confdefs.h. */
15123 # define alloca __builtin_alloca
15126 # include <malloc.h>
15127 # define alloca _alloca
15129 # ifdef HAVE_ALLOCA_H
15130 # include <alloca.h>
15135 # ifndef alloca /* predefined by HP cc +Olibcalls */
15146 char *p = (char *) alloca (1);
15152 rm -f conftest.
$ac_objext conftest
$ac_exeext
15153 if { (ac_try
="$ac_link"
15154 case "(($ac_try" in
15155 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15156 *) ac_try_echo=$ac_try;;
15158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15159 (eval "$ac_link") 2>conftest.er1
15161 grep -v '^ *+' conftest.er1 >conftest.err
15163 cat conftest.err >&5
15164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15165 (exit $ac_status); } && {
15166 test -z "$ac_c_werror_flag" ||
15167 test ! -s conftest.err
15168 } && test -s conftest$ac_exeext &&
15169 $as_test_x conftest$ac_exeext; then
15170 ac_cv_func_alloca_works=yes
15172 echo "$as_me: failed program was:" >&5
15173 sed 's/^/| /' conftest.$ac_ext >&5
15175 ac_cv_func_alloca_works=no
15178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15179 conftest$ac_exeext conftest.$ac_ext
15181 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15182 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15184 if test $ac_cv_func_alloca_works = yes; then
15186 cat >>confdefs.h <<\_ACEOF
15187 #define HAVE_ALLOCA 1
15191 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15192 # that cause trouble. Some versions do not even contain alloca or
15193 # contain a buggy version. If you still want to use their alloca,
15194 # use ar to extract alloca.o from them instead of compiling alloca.c.
15196 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15198 cat >>confdefs.h <<\_ACEOF
15203 { echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
15204 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks...
$ECHO_C" >&6; }
15205 if test "${ac_cv_os_cray+set}" = set; then
15206 echo $ECHO_N "(cached
) $ECHO_C" >&6
15208 cat >conftest.$ac_ext <<_ACEOF
15211 cat confdefs.h >>conftest.$ac_ext
15212 cat >>conftest.$ac_ext <<_ACEOF
15213 /* end confdefs.h. */
15214 #if defined CRAY && ! defined CRAY2
15221 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
15222 $EGREP "webecray
" >/dev/null 2>&1; then
15230 { echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
15231 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15232 if test $ac_cv_os_cray = yes; then
15233 for ac_func in _getb67 GETB67 getb67; do
15234 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15235 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15236 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15237 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15238 echo $ECHO_N "(cached
) $ECHO_C" >&6
15240 cat >conftest.$ac_ext <<_ACEOF
15243 cat confdefs.h >>conftest.$ac_ext
15244 cat >>conftest.$ac_ext <<_ACEOF
15245 /* end confdefs.h. */
15246 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15247 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15248 #define $ac_func innocuous_$ac_func
15250 /* System header to define __stub macros and hopefully few prototypes,
15251 which can conflict with char $ac_func (); below.
15252 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15253 <limits.h> exists even on freestanding compilers. */
15256 # include <limits.h>
15258 # include <assert.h>
15263 /* Override any GCC internal prototype to avoid an error.
15264 Use char because int might match the return type of a GCC
15265 builtin and then its argument prototype would still apply. */
15270 /* The GNU C library defines this for functions which it implements
15271 to always fail with ENOSYS. Some functions are actually named
15272 something starting with __ and the normal name is an alias. */
15273 #if defined __stub_$ac_func || defined __stub___$ac_func
15280 return $ac_func ();
15285 rm -f conftest.$ac_objext conftest$ac_exeext
15286 if { (ac_try="$ac_link"
15287 case "(($ac_try" in
15288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15289 *) ac_try_echo=$ac_try;;
15291 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15292 (eval "$ac_link") 2>conftest.er1
15294 grep -v '^ *+' conftest.er1 >conftest.err
15296 cat conftest.err >&5
15297 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15298 (exit $ac_status); } && {
15299 test -z "$ac_c_werror_flag" ||
15300 test ! -s conftest.err
15301 } && test -s conftest$ac_exeext &&
15302 $as_test_x conftest$ac_exeext; then
15303 eval "$as_ac_var=yes"
15305 echo "$as_me: failed program was
:" >&5
15306 sed 's/^/| /' conftest.$ac_ext >&5
15308 eval "$as_ac_var=no
"
15311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15312 conftest$ac_exeext conftest.$ac_ext
15314 ac_res=`eval echo '${'$as_ac_var'}'`
15315 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15316 echo "${ECHO_T}$ac_res" >&6; }
15317 if test `eval echo '${'$as_ac_var'}'` = yes; then
15319 cat >>confdefs.h <<_ACEOF
15320 #define CRAY_STACKSEG_END $ac_func
15329 { echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
15330 echo $ECHO_N "checking stack direction
for C alloca...
$ECHO_C" >&6; }
15331 if test "${ac_cv_c_stack_direction+set}" = set; then
15332 echo $ECHO_N "(cached
) $ECHO_C" >&6
15334 if test "$cross_compiling" = yes; then
15335 ac_cv_c_stack_direction=0
15337 cat >conftest.$ac_ext <<_ACEOF
15340 cat confdefs.h >>conftest.$ac_ext
15341 cat >>conftest.$ac_ext <<_ACEOF
15342 /* end confdefs.h. */
15343 $ac_includes_default
15345 find_stack_direction ()
15347 static char *addr = 0;
15352 return find_stack_direction ();
15355 return (&dummy > addr) ? 1 : -1;
15361 return find_stack_direction () < 0;
15364 rm -f conftest$ac_exeext
15365 if { (ac_try="$ac_link"
15366 case "(($ac_try" in
15367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15368 *) ac_try_echo=$ac_try;;
15370 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15371 (eval "$ac_link") 2>&5
15373 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15374 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15375 { (case "(($ac_try" in
15376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15377 *) ac_try_echo=$ac_try;;
15379 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15380 (eval "$ac_try") 2>&5
15382 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15383 (exit $ac_status); }; }; then
15384 ac_cv_c_stack_direction=1
15386 echo "$as_me: program exited with status
$ac_status" >&5
15387 echo "$as_me: failed program was
:" >&5
15388 sed 's/^/| /' conftest.$ac_ext >&5
15390 ( exit $ac_status )
15391 ac_cv_c_stack_direction=-1
15393 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15398 { echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
15399 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15401 cat >>confdefs.h <<_ACEOF
15402 #define STACK_DIRECTION $ac_cv_c_stack_direction
15409 if test x"$ac_cv_func_alloca_works" != xyes; then
15410 { { echo "$as_me:$LINENO: error
: a system implementation of alloca is required
" >&5
15411 echo "$as_me: error
: a system implementation of alloca is required
" >&2;}
15412 { (exit 1); exit 1; }; }
15415 # fmod, logb, and frexp are found in -lm on most systems.
15416 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15418 { echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
15419 echo $ECHO_N "checking
for sqrt
in -lm...
$ECHO_C" >&6; }
15420 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15421 echo $ECHO_N "(cached
) $ECHO_C" >&6
15423 ac_check_lib_save_LIBS=$LIBS
15425 cat >conftest.$ac_ext <<_ACEOF
15428 cat confdefs.h >>conftest.$ac_ext
15429 cat >>conftest.$ac_ext <<_ACEOF
15430 /* end confdefs.h. */
15432 /* Override any GCC internal prototype to avoid an error.
15433 Use char because int might match the return type of a GCC
15434 builtin and then its argument prototype would still apply. */
15447 rm -f conftest.$ac_objext conftest$ac_exeext
15448 if { (ac_try="$ac_link"
15449 case "(($ac_try" in
15450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15451 *) ac_try_echo=$ac_try;;
15453 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15454 (eval "$ac_link") 2>conftest.er1
15456 grep -v '^ *+' conftest.er1 >conftest.err
15458 cat conftest.err >&5
15459 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15460 (exit $ac_status); } && {
15461 test -z "$ac_c_werror_flag" ||
15462 test ! -s conftest.err
15463 } && test -s conftest$ac_exeext &&
15464 $as_test_x conftest$ac_exeext; then
15465 ac_cv_lib_m_sqrt=yes
15467 echo "$as_me: failed program was
:" >&5
15468 sed 's/^/| /' conftest.$ac_ext >&5
15470 ac_cv_lib_m_sqrt=no
15473 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15474 conftest$ac_exeext conftest.$ac_ext
15475 LIBS=$ac_check_lib_save_LIBS
15477 { echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
15478 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15479 if test $ac_cv_lib_m_sqrt = yes; then
15480 cat >>confdefs.h <<_ACEOF
15481 #define HAVE_LIBM 1
15489 # Check for mail-locking functions in a "mail" library. Probably this should
15490 # have the same check as for liblockfile below.
15492 { echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
15493 echo $ECHO_N "checking
for maillock
in -lmail...
$ECHO_C" >&6; }
15494 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15495 echo $ECHO_N "(cached
) $ECHO_C" >&6
15497 ac_check_lib_save_LIBS=$LIBS
15498 LIBS="-lmail $LIBS"
15499 cat >conftest.$ac_ext <<_ACEOF
15502 cat confdefs.h >>conftest.$ac_ext
15503 cat >>conftest.$ac_ext <<_ACEOF
15504 /* end confdefs.h. */
15506 /* Override any GCC internal prototype to avoid an error.
15507 Use char because int might match the return type of a GCC
15508 builtin and then its argument prototype would still apply. */
15516 return maillock ();
15521 rm -f conftest.$ac_objext conftest$ac_exeext
15522 if { (ac_try="$ac_link"
15523 case "(($ac_try" in
15524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15525 *) ac_try_echo=$ac_try;;
15527 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15528 (eval "$ac_link") 2>conftest.er1
15530 grep -v '^ *+' conftest.er1 >conftest.err
15532 cat conftest.err >&5
15533 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15534 (exit $ac_status); } && {
15535 test -z "$ac_c_werror_flag" ||
15536 test ! -s conftest.err
15537 } && test -s conftest$ac_exeext &&
15538 $as_test_x conftest$ac_exeext; then
15539 ac_cv_lib_mail_maillock=yes
15541 echo "$as_me: failed program was
:" >&5
15542 sed 's/^/| /' conftest.$ac_ext >&5
15544 ac_cv_lib_mail_maillock=no
15547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15548 conftest$ac_exeext conftest.$ac_ext
15549 LIBS=$ac_check_lib_save_LIBS
15551 { echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
15552 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15553 if test $ac_cv_lib_mail_maillock = yes; then
15554 cat >>confdefs.h <<_ACEOF
15555 #define HAVE_LIBMAIL 1
15558 LIBS="-lmail $LIBS"
15563 { echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
15564 echo $ECHO_N "checking
for maillock
in -llockfile...
$ECHO_C" >&6; }
15565 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15566 echo $ECHO_N "(cached
) $ECHO_C" >&6
15568 ac_check_lib_save_LIBS=$LIBS
15569 LIBS="-llockfile $LIBS"
15570 cat >conftest.$ac_ext <<_ACEOF
15573 cat confdefs.h >>conftest.$ac_ext
15574 cat >>conftest.$ac_ext <<_ACEOF
15575 /* end confdefs.h. */
15577 /* Override any GCC internal prototype to avoid an error.
15578 Use char because int might match the return type of a GCC
15579 builtin and then its argument prototype would still apply. */
15587 return maillock ();
15592 rm -f conftest.$ac_objext conftest$ac_exeext
15593 if { (ac_try="$ac_link"
15594 case "(($ac_try" in
15595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15596 *) ac_try_echo=$ac_try;;
15598 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15599 (eval "$ac_link") 2>conftest.er1
15601 grep -v '^ *+' conftest.er1 >conftest.err
15603 cat conftest.err >&5
15604 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15605 (exit $ac_status); } && {
15606 test -z "$ac_c_werror_flag" ||
15607 test ! -s conftest.err
15608 } && test -s conftest$ac_exeext &&
15609 $as_test_x conftest$ac_exeext; then
15610 ac_cv_lib_lockfile_maillock=yes
15612 echo "$as_me: failed program was
:" >&5
15613 sed 's/^/| /' conftest.$ac_ext >&5
15615 ac_cv_lib_lockfile_maillock=no
15618 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15619 conftest$ac_exeext conftest.$ac_ext
15620 LIBS=$ac_check_lib_save_LIBS
15622 { echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
15623 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15624 if test $ac_cv_lib_lockfile_maillock = yes; then
15625 cat >>confdefs.h <<_ACEOF
15626 #define HAVE_LIBLOCKFILE 1
15629 LIBS="-llockfile $LIBS"
15633 # If we have the shared liblockfile, assume we must use it for mail
15634 # locking (e.g. Debian). If we couldn't link against liblockfile
15635 # (no liblockfile.a installed), ensure that we don't need to.
15636 if test "$ac_cv_lib_lockfile_maillock" = no; then
15637 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
15638 set dummy liblockfile.so; ac_word=$2
15639 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
15640 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
15641 if test "${ac_cv_prog_liblockfile+set}" = set; then
15642 echo $ECHO_N "(cached
) $ECHO_C" >&6
15644 if test -n "$liblockfile"; then
15645 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15648 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
15649 for as_dir in $as_dummy
15652 test -z "$as_dir" && as_dir=.
15653 for ac_exec_ext in '' $ac_executable_extensions; do
15654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15655 ac_cv_prog_liblockfile="yes"
15656 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15663 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
15666 liblockfile=$ac_cv_prog_liblockfile
15667 if test -n "$liblockfile"; then
15668 { echo "$as_me:$LINENO: result
: $liblockfile" >&5
15669 echo "${ECHO_T}$liblockfile" >&6; }
15671 { echo "$as_me:$LINENO: result
: no
" >&5
15672 echo "${ECHO_T}no
" >&6; }
15676 if test $ac_cv_prog_liblockfile = yes; then
15677 { { echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
15678 This probably means that movemail could lose mail.
15679 There may be a \`development' package to
install containing liblockfile.
" >&5
15680 echo "$as_me: error
: Shared liblockfile found but can
't link against it.
15681 This probably means that movemail could lose mail.
15682 There may be a \`development' package to
install containing liblockfile.
" >&2;}
15683 { (exit 1); exit 1; }; }
15688 for ac_func in touchlock
15690 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15691 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15692 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15693 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15694 echo $ECHO_N "(cached
) $ECHO_C" >&6
15696 cat >conftest.$ac_ext <<_ACEOF
15699 cat confdefs.h >>conftest.$ac_ext
15700 cat >>conftest.$ac_ext <<_ACEOF
15701 /* end confdefs.h. */
15702 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15703 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15704 #define $ac_func innocuous_$ac_func
15706 /* System header to define __stub macros and hopefully few prototypes,
15707 which can conflict with char $ac_func (); below.
15708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15709 <limits.h> exists even on freestanding compilers. */
15712 # include <limits.h>
15714 # include <assert.h>
15719 /* Override any GCC internal prototype to avoid an error.
15720 Use char because int might match the return type of a GCC
15721 builtin and then its argument prototype would still apply. */
15726 /* The GNU C library defines this for functions which it implements
15727 to always fail with ENOSYS. Some functions are actually named
15728 something starting with __ and the normal name is an alias. */
15729 #if defined __stub_$ac_func || defined __stub___$ac_func
15736 return $ac_func ();
15741 rm -f conftest.$ac_objext conftest$ac_exeext
15742 if { (ac_try="$ac_link"
15743 case "(($ac_try" in
15744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15745 *) ac_try_echo=$ac_try;;
15747 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15748 (eval "$ac_link") 2>conftest.er1
15750 grep -v '^ *+' conftest.er1 >conftest.err
15752 cat conftest.err >&5
15753 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15754 (exit $ac_status); } && {
15755 test -z "$ac_c_werror_flag" ||
15756 test ! -s conftest.err
15757 } && test -s conftest$ac_exeext &&
15758 $as_test_x conftest$ac_exeext; then
15759 eval "$as_ac_var=yes"
15761 echo "$as_me: failed program was
:" >&5
15762 sed 's/^/| /' conftest.$ac_ext >&5
15764 eval "$as_ac_var=no
"
15767 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15768 conftest$ac_exeext conftest.$ac_ext
15770 ac_res=`eval echo '${'$as_ac_var'}'`
15771 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15772 echo "${ECHO_T}$ac_res" >&6; }
15773 if test `eval echo '${'$as_ac_var'}'` = yes; then
15774 cat >>confdefs.h <<_ACEOF
15775 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15782 for ac_header in maillock.h
15784 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15785 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15786 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15787 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15788 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15789 echo $ECHO_N "(cached
) $ECHO_C" >&6
15791 ac_res=`eval echo '${'$as_ac_Header'}'`
15792 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15793 echo "${ECHO_T}$ac_res" >&6; }
15795 # Is the header compilable?
15796 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15797 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15798 cat >conftest.$ac_ext <<_ACEOF
15801 cat confdefs.h >>conftest.$ac_ext
15802 cat >>conftest.$ac_ext <<_ACEOF
15803 /* end confdefs.h. */
15804 $ac_includes_default
15805 #include <$ac_header>
15807 rm -f conftest.$ac_objext
15808 if { (ac_try="$ac_compile"
15809 case "(($ac_try" in
15810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15811 *) ac_try_echo=$ac_try;;
15813 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15814 (eval "$ac_compile") 2>conftest.er1
15816 grep -v '^ *+' conftest.er1 >conftest.err
15818 cat conftest.err >&5
15819 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15820 (exit $ac_status); } && {
15821 test -z "$ac_c_werror_flag" ||
15822 test ! -s conftest.err
15823 } && test -s conftest.$ac_objext; then
15824 ac_header_compiler=yes
15826 echo "$as_me: failed program was
:" >&5
15827 sed 's/^/| /' conftest.$ac_ext >&5
15829 ac_header_compiler=no
15832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15833 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15834 echo "${ECHO_T}$ac_header_compiler" >&6; }
15836 # Is the header present?
15837 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15838 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15839 cat >conftest.$ac_ext <<_ACEOF
15842 cat confdefs.h >>conftest.$ac_ext
15843 cat >>conftest.$ac_ext <<_ACEOF
15844 /* end confdefs.h. */
15845 #include <$ac_header>
15847 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15848 case "(($ac_try" in
15849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15850 *) ac_try_echo=$ac_try;;
15852 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15853 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15855 grep -v '^ *+' conftest.er1 >conftest.err
15857 cat conftest.err >&5
15858 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15859 (exit $ac_status); } >/dev/null && {
15860 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15861 test ! -s conftest.err
15863 ac_header_preproc=yes
15865 echo "$as_me: failed program was
:" >&5
15866 sed 's/^/| /' conftest.$ac_ext >&5
15868 ac_header_preproc=no
15871 rm -f conftest.err conftest.$ac_ext
15872 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15873 echo "${ECHO_T}$ac_header_preproc" >&6; }
15875 # So? What about this header?
15876 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15878 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15879 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15880 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15881 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15882 ac_header_preproc=yes
15885 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15886 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15887 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15888 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15889 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15890 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15891 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15892 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15893 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15894 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15895 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15896 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15900 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15901 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15902 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15903 echo $ECHO_N "(cached
) $ECHO_C" >&6
15905 eval "$as_ac_Header=\
$ac_header_preproc"
15907 ac_res=`eval echo '${'$as_ac_Header'}'`
15908 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15909 echo "${ECHO_T}$ac_res" >&6; }
15912 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15913 cat >>confdefs.h <<_ACEOF
15914 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15990 for ac_func in gethostname getdomainname dup2 \
15991 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15992 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
15993 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15994 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15995 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15996 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15997 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15998 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
16000 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16001 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16002 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16003 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16004 echo $ECHO_N "(cached
) $ECHO_C" >&6
16006 cat >conftest.$ac_ext <<_ACEOF
16009 cat confdefs.h >>conftest.$ac_ext
16010 cat >>conftest.$ac_ext <<_ACEOF
16011 /* end confdefs.h. */
16012 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16013 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16014 #define $ac_func innocuous_$ac_func
16016 /* System header to define __stub macros and hopefully few prototypes,
16017 which can conflict with char $ac_func (); below.
16018 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16019 <limits.h> exists even on freestanding compilers. */
16022 # include <limits.h>
16024 # include <assert.h>
16029 /* Override any GCC internal prototype to avoid an error.
16030 Use char because int might match the return type of a GCC
16031 builtin and then its argument prototype would still apply. */
16036 /* The GNU C library defines this for functions which it implements
16037 to always fail with ENOSYS. Some functions are actually named
16038 something starting with __ and the normal name is an alias. */
16039 #if defined __stub_$ac_func || defined __stub___$ac_func
16046 return $ac_func ();
16051 rm -f conftest.$ac_objext conftest$ac_exeext
16052 if { (ac_try="$ac_link"
16053 case "(($ac_try" in
16054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16055 *) ac_try_echo=$ac_try;;
16057 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16058 (eval "$ac_link") 2>conftest.er1
16060 grep -v '^ *+' conftest.er1 >conftest.err
16062 cat conftest.err >&5
16063 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16064 (exit $ac_status); } && {
16065 test -z "$ac_c_werror_flag" ||
16066 test ! -s conftest.err
16067 } && test -s conftest$ac_exeext &&
16068 $as_test_x conftest$ac_exeext; then
16069 eval "$as_ac_var=yes"
16071 echo "$as_me: failed program was
:" >&5
16072 sed 's/^/| /' conftest.$ac_ext >&5
16074 eval "$as_ac_var=no
"
16077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16078 conftest$ac_exeext conftest.$ac_ext
16080 ac_res=`eval echo '${'$as_ac_var'}'`
16081 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16082 echo "${ECHO_T}$ac_res" >&6; }
16083 if test `eval echo '${'$as_ac_var'}'` = yes; then
16084 cat >>confdefs.h <<_ACEOF
16085 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16093 for ac_header in sys/un.h
16095 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16096 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16097 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16098 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16099 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16100 echo $ECHO_N "(cached
) $ECHO_C" >&6
16102 ac_res=`eval echo '${'$as_ac_Header'}'`
16103 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16104 echo "${ECHO_T}$ac_res" >&6; }
16106 # Is the header compilable?
16107 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16108 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16109 cat >conftest.$ac_ext <<_ACEOF
16112 cat confdefs.h >>conftest.$ac_ext
16113 cat >>conftest.$ac_ext <<_ACEOF
16114 /* end confdefs.h. */
16115 $ac_includes_default
16116 #include <$ac_header>
16118 rm -f conftest.$ac_objext
16119 if { (ac_try="$ac_compile"
16120 case "(($ac_try" in
16121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16122 *) ac_try_echo=$ac_try;;
16124 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16125 (eval "$ac_compile") 2>conftest.er1
16127 grep -v '^ *+' conftest.er1 >conftest.err
16129 cat conftest.err >&5
16130 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16131 (exit $ac_status); } && {
16132 test -z "$ac_c_werror_flag" ||
16133 test ! -s conftest.err
16134 } && test -s conftest.$ac_objext; then
16135 ac_header_compiler=yes
16137 echo "$as_me: failed program was
:" >&5
16138 sed 's/^/| /' conftest.$ac_ext >&5
16140 ac_header_compiler=no
16143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16144 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16145 echo "${ECHO_T}$ac_header_compiler" >&6; }
16147 # Is the header present?
16148 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16149 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16150 cat >conftest.$ac_ext <<_ACEOF
16153 cat confdefs.h >>conftest.$ac_ext
16154 cat >>conftest.$ac_ext <<_ACEOF
16155 /* end confdefs.h. */
16156 #include <$ac_header>
16158 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16159 case "(($ac_try" in
16160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16161 *) ac_try_echo=$ac_try;;
16163 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16164 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16166 grep -v '^ *+' conftest.er1 >conftest.err
16168 cat conftest.err >&5
16169 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16170 (exit $ac_status); } >/dev/null && {
16171 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16172 test ! -s conftest.err
16174 ac_header_preproc=yes
16176 echo "$as_me: failed program was
:" >&5
16177 sed 's/^/| /' conftest.$ac_ext >&5
16179 ac_header_preproc=no
16182 rm -f conftest.err conftest.$ac_ext
16183 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16184 echo "${ECHO_T}$ac_header_preproc" >&6; }
16186 # So? What about this header?
16187 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16189 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16190 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16191 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16192 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16193 ac_header_preproc=yes
16196 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16197 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16198 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16199 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16200 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16201 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16202 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16203 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16204 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16205 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16206 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16207 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16211 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16212 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16213 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16214 echo $ECHO_N "(cached
) $ECHO_C" >&6
16216 eval "$as_ac_Header=\
$ac_header_preproc"
16218 ac_res=`eval echo '${'$as_ac_Header'}'`
16219 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16220 echo "${ECHO_T}$ac_res" >&6; }
16223 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16224 cat >>confdefs.h <<_ACEOF
16225 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16237 for ac_header in $ac_header_list
16239 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16240 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16241 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16242 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16243 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16244 echo $ECHO_N "(cached
) $ECHO_C" >&6
16246 ac_res=`eval echo '${'$as_ac_Header'}'`
16247 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16248 echo "${ECHO_T}$ac_res" >&6; }
16250 # Is the header compilable?
16251 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16252 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16253 cat >conftest.$ac_ext <<_ACEOF
16256 cat confdefs.h >>conftest.$ac_ext
16257 cat >>conftest.$ac_ext <<_ACEOF
16258 /* end confdefs.h. */
16259 $ac_includes_default
16260 #include <$ac_header>
16262 rm -f conftest.$ac_objext
16263 if { (ac_try="$ac_compile"
16264 case "(($ac_try" in
16265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16266 *) ac_try_echo=$ac_try;;
16268 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16269 (eval "$ac_compile") 2>conftest.er1
16271 grep -v '^ *+' conftest.er1 >conftest.err
16273 cat conftest.err >&5
16274 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16275 (exit $ac_status); } && {
16276 test -z "$ac_c_werror_flag" ||
16277 test ! -s conftest.err
16278 } && test -s conftest.$ac_objext; then
16279 ac_header_compiler=yes
16281 echo "$as_me: failed program was
:" >&5
16282 sed 's/^/| /' conftest.$ac_ext >&5
16284 ac_header_compiler=no
16287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16288 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16289 echo "${ECHO_T}$ac_header_compiler" >&6; }
16291 # Is the header present?
16292 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16293 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16294 cat >conftest.$ac_ext <<_ACEOF
16297 cat confdefs.h >>conftest.$ac_ext
16298 cat >>conftest.$ac_ext <<_ACEOF
16299 /* end confdefs.h. */
16300 #include <$ac_header>
16302 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16303 case "(($ac_try" in
16304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16305 *) ac_try_echo=$ac_try;;
16307 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16308 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16310 grep -v '^ *+' conftest.er1 >conftest.err
16312 cat conftest.err >&5
16313 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16314 (exit $ac_status); } >/dev/null && {
16315 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16316 test ! -s conftest.err
16318 ac_header_preproc=yes
16320 echo "$as_me: failed program was
:" >&5
16321 sed 's/^/| /' conftest.$ac_ext >&5
16323 ac_header_preproc=no
16326 rm -f conftest.err conftest.$ac_ext
16327 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16328 echo "${ECHO_T}$ac_header_preproc" >&6; }
16330 # So? What about this header?
16331 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16333 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16334 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16335 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16336 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16337 ac_header_preproc=yes
16340 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16341 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16342 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16343 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16344 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16345 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16346 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16347 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16348 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16349 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16350 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16351 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16355 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16356 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16357 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16358 echo $ECHO_N "(cached
) $ECHO_C" >&6
16360 eval "$as_ac_Header=\
$ac_header_preproc"
16362 ac_res=`eval echo '${'$as_ac_Header'}'`
16363 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16364 echo "${ECHO_T}$ac_res" >&6; }
16367 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16368 cat >>confdefs.h <<_ACEOF
16369 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16384 for ac_func in $ac_func_list
16386 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16387 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16388 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16389 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16390 echo $ECHO_N "(cached
) $ECHO_C" >&6
16392 cat >conftest.$ac_ext <<_ACEOF
16395 cat confdefs.h >>conftest.$ac_ext
16396 cat >>conftest.$ac_ext <<_ACEOF
16397 /* end confdefs.h. */
16398 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16399 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16400 #define $ac_func innocuous_$ac_func
16402 /* System header to define __stub macros and hopefully few prototypes,
16403 which can conflict with char $ac_func (); below.
16404 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16405 <limits.h> exists even on freestanding compilers. */
16408 # include <limits.h>
16410 # include <assert.h>
16415 /* Override any GCC internal prototype to avoid an error.
16416 Use char because int might match the return type of a GCC
16417 builtin and then its argument prototype would still apply. */
16422 /* The GNU C library defines this for functions which it implements
16423 to always fail with ENOSYS. Some functions are actually named
16424 something starting with __ and the normal name is an alias. */
16425 #if defined __stub_$ac_func || defined __stub___$ac_func
16432 return $ac_func ();
16437 rm -f conftest.$ac_objext conftest$ac_exeext
16438 if { (ac_try="$ac_link"
16439 case "(($ac_try" in
16440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16441 *) ac_try_echo=$ac_try;;
16443 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16444 (eval "$ac_link") 2>conftest.er1
16446 grep -v '^ *+' conftest.er1 >conftest.err
16448 cat conftest.err >&5
16449 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16450 (exit $ac_status); } && {
16451 test -z "$ac_c_werror_flag" ||
16452 test ! -s conftest.err
16453 } && test -s conftest$ac_exeext &&
16454 $as_test_x conftest$ac_exeext; then
16455 eval "$as_ac_var=yes"
16457 echo "$as_me: failed program was
:" >&5
16458 sed 's/^/| /' conftest.$ac_ext >&5
16460 eval "$as_ac_var=no
"
16463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16464 conftest$ac_exeext conftest.$ac_ext
16466 ac_res=`eval echo '${'$as_ac_var'}'`
16467 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16468 echo "${ECHO_T}$ac_res" >&6; }
16469 if test `eval echo '${'$as_ac_var'}'` = yes; then
16470 cat >>confdefs.h <<_ACEOF
16471 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16493 { echo "$as_me:$LINENO: checking
for working mktime
" >&5
16494 echo $ECHO_N "checking
for working mktime...
$ECHO_C" >&6; }
16495 if test "${ac_cv_func_working_mktime+set}" = set; then
16496 echo $ECHO_N "(cached
) $ECHO_C" >&6
16498 if test "$cross_compiling" = yes; then
16499 ac_cv_func_working_mktime=no
16501 cat >conftest.$ac_ext <<_ACEOF
16504 cat confdefs.h >>conftest.$ac_ext
16505 cat >>conftest.$ac_ext <<_ACEOF
16506 /* end confdefs.h. */
16507 /* Test program from Paul Eggert and Tony Leneis. */
16508 #ifdef TIME_WITH_SYS_TIME
16509 # include <sys/time.h>
16512 # ifdef HAVE_SYS_TIME_H
16513 # include <sys/time.h>
16519 #include <stdlib.h>
16521 #ifdef HAVE_UNISTD_H
16522 # include <unistd.h>
16526 # define alarm(X) /* empty */
16529 /* Work around redefinition to rpl_putenv by other config tests. */
16532 static time_t time_t_max;
16533 static time_t time_t_min;
16535 /* Values we'll use to set the TZ environment variable. */
16536 static char *tz_strings[] = {
16537 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
16538 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
16540 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16542 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16543 Based on a problem report from Andreas Jaeger. */
16545 spring_forward_gap ()
16547 /* glibc (up to about 1998-10-07) failed this test. */
16550 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16551 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16552 on systems that don't support the Olson extension, or don't have the
16553 full zoneinfo tables installed. */
16554 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16563 return mktime (&tm) != (time_t) -1;
16571 return ! (lt = localtime (&now)) || mktime (lt) == now;
16578 return (mktime_test1 (now)
16579 && mktime_test1 ((time_t) (time_t_max - now))
16580 && mktime_test1 ((time_t) (time_t_min + now)));
16586 /* Based on code from Ariel Faigon. */
16596 return tm.tm_mon == 2 && tm.tm_mday == 31;
16605 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16606 now = mktime (&tm);
16607 if (now != (time_t) -1)
16609 struct tm *lt = localtime (&now);
16611 && lt->tm_year == tm.tm_year
16612 && lt->tm_mon == tm.tm_mon
16613 && lt->tm_mday == tm.tm_mday
16614 && lt->tm_hour == tm.tm_hour
16615 && lt->tm_min == tm.tm_min
16616 && lt->tm_sec == tm.tm_sec
16617 && lt->tm_yday == tm.tm_yday
16618 && lt->tm_wday == tm.tm_wday
16619 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16620 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16629 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16630 ignoring leap seconds. */
16631 unsigned long int answer = 2527315200UL;
16635 tm.tm_year = 2050 - 1900;
16638 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16641 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16642 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16643 on systems that don't support the Olson extension, or don't have the
16644 full zoneinfo tables installed. */
16645 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16649 /* Check that the result is either a failure, or close enough
16650 to the correct answer that we can assume the discrepancy is
16651 due to leap seconds. */
16652 return (t == (time_t) -1
16653 || (0 < t && answer - 120 <= t && t <= answer + 120));
16662 /* This test makes some buggy mktime implementations loop.
16663 Give up after 60 seconds; a mktime slower than that
16664 isn't worth using anyway. */
16667 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16670 if ((time_t) -1 < 0)
16671 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16673 delta = time_t_max / 997; /* a suitable prime number */
16674 for (i = 0; i < N_STRINGS; i++)
16677 putenv (tz_strings[i]);
16679 for (t = 0; t <= time_t_max - delta; t += delta)
16680 if (! mktime_test (t))
16682 if (! (mktime_test ((time_t) 1)
16683 && mktime_test ((time_t) (60 * 60))
16684 && mktime_test ((time_t) (60 * 60 * 24))))
16687 for (j = 1; 0 < j; j *= 2)
16688 if (! bigtime_test (j))
16690 if (! bigtime_test (j - 1))
16693 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16696 rm -f conftest$ac_exeext
16697 if { (ac_try="$ac_link"
16698 case "(($ac_try" in
16699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16700 *) ac_try_echo=$ac_try;;
16702 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16703 (eval "$ac_link") 2>&5
16705 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16706 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16707 { (case "(($ac_try" in
16708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16709 *) ac_try_echo=$ac_try;;
16711 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16712 (eval "$ac_try") 2>&5
16714 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16715 (exit $ac_status); }; }; then
16716 ac_cv_func_working_mktime=yes
16718 echo "$as_me: program exited with status
$ac_status" >&5
16719 echo "$as_me: failed program was
:" >&5
16720 sed 's/^/| /' conftest.$ac_ext >&5
16722 ( exit $ac_status )
16723 ac_cv_func_working_mktime=no
16725 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16730 { echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
16731 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16732 if test $ac_cv_func_working_mktime = no; then
16733 case " $LIBOBJS " in
16734 *" mktime.
$ac_objext "* ) ;;
16735 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
16741 if test "$ac_cv_func_working_mktime" = no; then
16743 cat >>confdefs.h <<\_ACEOF
16744 #define BROKEN_MKTIME 1
16749 ac_have_func=no # yes means we've found a way to get the load average.
16751 # Make sure getloadavg.c is where it belongs, at configure-time.
16752 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
16753 { { echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
16754 echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
16755 { (exit 1); exit 1; }; }
16759 # Check for getloadavg, but be sure not to touch the cache variable.
16760 ({ echo "$as_me:$LINENO: checking
for getloadavg
" >&5
16761 echo $ECHO_N "checking
for getloadavg...
$ECHO_C" >&6; }
16762 if test "${ac_cv_func_getloadavg+set}" = set; then
16763 echo $ECHO_N "(cached
) $ECHO_C" >&6
16765 cat >conftest.$ac_ext <<_ACEOF
16768 cat confdefs.h >>conftest.$ac_ext
16769 cat >>conftest.$ac_ext <<_ACEOF
16770 /* end confdefs.h. */
16771 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16773 #define getloadavg innocuous_getloadavg
16775 /* System header to define __stub macros and hopefully few prototypes,
16776 which can conflict with char getloadavg (); below.
16777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16778 <limits.h> exists even on freestanding compilers. */
16781 # include <limits.h>
16783 # include <assert.h>
16788 /* Override any GCC internal prototype to avoid an error.
16789 Use char because int might match the return type of a GCC
16790 builtin and then its argument prototype would still apply. */
16794 char getloadavg ();
16795 /* The GNU C library defines this for functions which it implements
16796 to always fail with ENOSYS. Some functions are actually named
16797 something starting with __ and the normal name is an alias. */
16798 #if defined __stub_getloadavg || defined __stub___getloadavg
16805 return getloadavg ();
16810 rm -f conftest.$ac_objext conftest$ac_exeext
16811 if { (ac_try="$ac_link"
16812 case "(($ac_try" in
16813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16814 *) ac_try_echo=$ac_try;;
16816 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16817 (eval "$ac_link") 2>conftest.er1
16819 grep -v '^ *+' conftest.er1 >conftest.err
16821 cat conftest.err >&5
16822 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16823 (exit $ac_status); } && {
16824 test -z "$ac_c_werror_flag" ||
16825 test ! -s conftest.err
16826 } && test -s conftest$ac_exeext &&
16827 $as_test_x conftest$ac_exeext; then
16828 ac_cv_func_getloadavg=yes
16830 echo "$as_me: failed program was
:" >&5
16831 sed 's/^/| /' conftest.$ac_ext >&5
16833 ac_cv_func_getloadavg=no
16836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16837 conftest$ac_exeext conftest.$ac_ext
16839 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
16840 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16841 if test $ac_cv_func_getloadavg = yes; then
16846 ) && ac_have_func=yes
16848 # On HPUX9, an unprivileged user can get load averages through this function.
16850 for ac_func in pstat_getdynamic
16852 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16853 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16854 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16855 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16856 echo $ECHO_N "(cached
) $ECHO_C" >&6
16858 cat >conftest.$ac_ext <<_ACEOF
16861 cat confdefs.h >>conftest.$ac_ext
16862 cat >>conftest.$ac_ext <<_ACEOF
16863 /* end confdefs.h. */
16864 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16865 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16866 #define $ac_func innocuous_$ac_func
16868 /* System header to define __stub macros and hopefully few prototypes,
16869 which can conflict with char $ac_func (); below.
16870 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16871 <limits.h> exists even on freestanding compilers. */
16874 # include <limits.h>
16876 # include <assert.h>
16881 /* Override any GCC internal prototype to avoid an error.
16882 Use char because int might match the return type of a GCC
16883 builtin and then its argument prototype would still apply. */
16888 /* The GNU C library defines this for functions which it implements
16889 to always fail with ENOSYS. Some functions are actually named
16890 something starting with __ and the normal name is an alias. */
16891 #if defined __stub_$ac_func || defined __stub___$ac_func
16898 return $ac_func ();
16903 rm -f conftest.$ac_objext conftest$ac_exeext
16904 if { (ac_try="$ac_link"
16905 case "(($ac_try" in
16906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16907 *) ac_try_echo=$ac_try;;
16909 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16910 (eval "$ac_link") 2>conftest.er1
16912 grep -v '^ *+' conftest.er1 >conftest.err
16914 cat conftest.err >&5
16915 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16916 (exit $ac_status); } && {
16917 test -z "$ac_c_werror_flag" ||
16918 test ! -s conftest.err
16919 } && test -s conftest$ac_exeext &&
16920 $as_test_x conftest$ac_exeext; then
16921 eval "$as_ac_var=yes"
16923 echo "$as_me: failed program was
:" >&5
16924 sed 's/^/| /' conftest.$ac_ext >&5
16926 eval "$as_ac_var=no
"
16929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16930 conftest$ac_exeext conftest.$ac_ext
16932 ac_res=`eval echo '${'$as_ac_var'}'`
16933 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16934 echo "${ECHO_T}$ac_res" >&6; }
16935 if test `eval echo '${'$as_ac_var'}'` = yes; then
16936 cat >>confdefs.h <<_ACEOF
16937 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16944 # Solaris has libkstat which does not require root.
16946 { echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
16947 echo $ECHO_N "checking
for kstat_open
in -lkstat...
$ECHO_C" >&6; }
16948 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16949 echo $ECHO_N "(cached
) $ECHO_C" >&6
16951 ac_check_lib_save_LIBS=$LIBS
16952 LIBS="-lkstat $LIBS"
16953 cat >conftest.$ac_ext <<_ACEOF
16956 cat confdefs.h >>conftest.$ac_ext
16957 cat >>conftest.$ac_ext <<_ACEOF
16958 /* end confdefs.h. */
16960 /* Override any GCC internal prototype to avoid an error.
16961 Use char because int might match the return type of a GCC
16962 builtin and then its argument prototype would still apply. */
16966 char kstat_open ();
16970 return kstat_open ();
16975 rm -f conftest.$ac_objext conftest$ac_exeext
16976 if { (ac_try="$ac_link"
16977 case "(($ac_try" in
16978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16979 *) ac_try_echo=$ac_try;;
16981 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16982 (eval "$ac_link") 2>conftest.er1
16984 grep -v '^ *+' conftest.er1 >conftest.err
16986 cat conftest.err >&5
16987 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16988 (exit $ac_status); } && {
16989 test -z "$ac_c_werror_flag" ||
16990 test ! -s conftest.err
16991 } && test -s conftest$ac_exeext &&
16992 $as_test_x conftest$ac_exeext; then
16993 ac_cv_lib_kstat_kstat_open=yes
16995 echo "$as_me: failed program was
:" >&5
16996 sed 's/^/| /' conftest.$ac_ext >&5
16998 ac_cv_lib_kstat_kstat_open=no
17001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17002 conftest$ac_exeext conftest.$ac_ext
17003 LIBS=$ac_check_lib_save_LIBS
17005 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
17006 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
17007 if test $ac_cv_lib_kstat_kstat_open = yes; then
17008 cat >>confdefs.h <<_ACEOF
17009 #define HAVE_LIBKSTAT 1
17012 LIBS="-lkstat $LIBS"
17016 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
17018 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17019 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17020 # to get the right answer into the cache.
17021 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17022 if test $ac_have_func = no; then
17023 { echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
17024 echo $ECHO_N "checking
for elf_begin
in -lelf...
$ECHO_C" >&6; }
17025 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17026 echo $ECHO_N "(cached
) $ECHO_C" >&6
17028 ac_check_lib_save_LIBS=$LIBS
17030 cat >conftest.$ac_ext <<_ACEOF
17033 cat confdefs.h >>conftest.$ac_ext
17034 cat >>conftest.$ac_ext <<_ACEOF
17035 /* end confdefs.h. */
17037 /* Override any GCC internal prototype to avoid an error.
17038 Use char because int might match the return type of a GCC
17039 builtin and then its argument prototype would still apply. */
17047 return elf_begin ();
17052 rm -f conftest.$ac_objext conftest$ac_exeext
17053 if { (ac_try="$ac_link"
17054 case "(($ac_try" in
17055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17056 *) ac_try_echo=$ac_try;;
17058 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17059 (eval "$ac_link") 2>conftest.er1
17061 grep -v '^ *+' conftest.er1 >conftest.err
17063 cat conftest.err >&5
17064 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17065 (exit $ac_status); } && {
17066 test -z "$ac_c_werror_flag" ||
17067 test ! -s conftest.err
17068 } && test -s conftest$ac_exeext &&
17069 $as_test_x conftest$ac_exeext; then
17070 ac_cv_lib_elf_elf_begin=yes
17072 echo "$as_me: failed program was
:" >&5
17073 sed 's/^/| /' conftest.$ac_ext >&5
17075 ac_cv_lib_elf_elf_begin=no
17078 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17079 conftest$ac_exeext conftest.$ac_ext
17080 LIBS=$ac_check_lib_save_LIBS
17082 { echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
17083 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17084 if test $ac_cv_lib_elf_elf_begin = yes; then
17089 if test $ac_have_func = no; then
17090 { echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
17091 echo $ECHO_N "checking
for kvm_open
in -lkvm...
$ECHO_C" >&6; }
17092 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17093 echo $ECHO_N "(cached
) $ECHO_C" >&6
17095 ac_check_lib_save_LIBS=$LIBS
17097 cat >conftest.$ac_ext <<_ACEOF
17100 cat confdefs.h >>conftest.$ac_ext
17101 cat >>conftest.$ac_ext <<_ACEOF
17102 /* end confdefs.h. */
17104 /* Override any GCC internal prototype to avoid an error.
17105 Use char because int might match the return type of a GCC
17106 builtin and then its argument prototype would still apply. */
17114 return kvm_open ();
17119 rm -f conftest.$ac_objext conftest$ac_exeext
17120 if { (ac_try="$ac_link"
17121 case "(($ac_try" in
17122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17123 *) ac_try_echo=$ac_try;;
17125 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17126 (eval "$ac_link") 2>conftest.er1
17128 grep -v '^ *+' conftest.er1 >conftest.err
17130 cat conftest.err >&5
17131 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17132 (exit $ac_status); } && {
17133 test -z "$ac_c_werror_flag" ||
17134 test ! -s conftest.err
17135 } && test -s conftest$ac_exeext &&
17136 $as_test_x conftest$ac_exeext; then
17137 ac_cv_lib_kvm_kvm_open=yes
17139 echo "$as_me: failed program was
:" >&5
17140 sed 's/^/| /' conftest.$ac_ext >&5
17142 ac_cv_lib_kvm_kvm_open=no
17145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17146 conftest$ac_exeext conftest.$ac_ext
17147 LIBS=$ac_check_lib_save_LIBS
17149 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
17150 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17151 if test $ac_cv_lib_kvm_kvm_open = yes; then
17155 # Check for the 4.4BSD definition of getloadavg.
17156 { echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
17157 echo $ECHO_N "checking
for getloadavg
in -lutil...
$ECHO_C" >&6; }
17158 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17159 echo $ECHO_N "(cached
) $ECHO_C" >&6
17161 ac_check_lib_save_LIBS=$LIBS
17162 LIBS="-lutil $LIBS"
17163 cat >conftest.$ac_ext <<_ACEOF
17166 cat confdefs.h >>conftest.$ac_ext
17167 cat >>conftest.$ac_ext <<_ACEOF
17168 /* end confdefs.h. */
17170 /* Override any GCC internal prototype to avoid an error.
17171 Use char because int might match the return type of a GCC
17172 builtin and then its argument prototype would still apply. */
17176 char getloadavg ();
17180 return getloadavg ();
17185 rm -f conftest.$ac_objext conftest$ac_exeext
17186 if { (ac_try="$ac_link"
17187 case "(($ac_try" in
17188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17189 *) ac_try_echo=$ac_try;;
17191 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17192 (eval "$ac_link") 2>conftest.er1
17194 grep -v '^ *+' conftest.er1 >conftest.err
17196 cat conftest.err >&5
17197 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17198 (exit $ac_status); } && {
17199 test -z "$ac_c_werror_flag" ||
17200 test ! -s conftest.err
17201 } && test -s conftest$ac_exeext &&
17202 $as_test_x conftest$ac_exeext; then
17203 ac_cv_lib_util_getloadavg=yes
17205 echo "$as_me: failed program was
:" >&5
17206 sed 's/^/| /' conftest.$ac_ext >&5
17208 ac_cv_lib_util_getloadavg=no
17211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17212 conftest$ac_exeext conftest.$ac_ext
17213 LIBS=$ac_check_lib_save_LIBS
17215 { echo "$as_me:$LINENO: result
: $ac_cv_lib_util_getloadavg" >&5
17216 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17217 if test $ac_cv_lib_util_getloadavg = yes; then
17218 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17223 if test $ac_have_func = no; then
17224 # There is a commonly available library for RS/6000 AIX.
17225 # Since it is not a standard part of AIX, it might be installed locally.
17226 ac_getloadavg_LIBS=$LIBS
17227 LIBS="-L/usr
/local
/lib
$LIBS"
17228 { echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
17229 echo $ECHO_N "checking
for getloadavg
in -lgetloadavg...
$ECHO_C" >&6; }
17230 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17231 echo $ECHO_N "(cached
) $ECHO_C" >&6
17233 ac_check_lib_save_LIBS=$LIBS
17234 LIBS="-lgetloadavg $LIBS"
17235 cat >conftest.$ac_ext <<_ACEOF
17238 cat confdefs.h >>conftest.$ac_ext
17239 cat >>conftest.$ac_ext <<_ACEOF
17240 /* end confdefs.h. */
17242 /* Override any GCC internal prototype to avoid an error.
17243 Use char because int might match the return type of a GCC
17244 builtin and then its argument prototype would still apply. */
17248 char getloadavg ();
17252 return getloadavg ();
17257 rm -f conftest.$ac_objext conftest$ac_exeext
17258 if { (ac_try="$ac_link"
17259 case "(($ac_try" in
17260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17261 *) ac_try_echo=$ac_try;;
17263 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17264 (eval "$ac_link") 2>conftest.er1
17266 grep -v '^ *+' conftest.er1 >conftest.err
17268 cat conftest.err >&5
17269 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17270 (exit $ac_status); } && {
17271 test -z "$ac_c_werror_flag" ||
17272 test ! -s conftest.err
17273 } && test -s conftest$ac_exeext &&
17274 $as_test_x conftest$ac_exeext; then
17275 ac_cv_lib_getloadavg_getloadavg=yes
17277 echo "$as_me: failed program was
:" >&5
17278 sed 's/^/| /' conftest.$ac_ext >&5
17280 ac_cv_lib_getloadavg_getloadavg=no
17283 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17284 conftest$ac_exeext conftest.$ac_ext
17285 LIBS=$ac_check_lib_save_LIBS
17287 { echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
17288 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17289 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17290 LIBS="-lgetloadavg $LIBS"
17292 LIBS=$ac_getloadavg_LIBS
17297 # Make sure it is really in the library, if we think we found it,
17298 # otherwise set up the replacement function.
17300 for ac_func in getloadavg
17302 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17303 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17304 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17305 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17306 echo $ECHO_N "(cached
) $ECHO_C" >&6
17308 cat >conftest.$ac_ext <<_ACEOF
17311 cat confdefs.h >>conftest.$ac_ext
17312 cat >>conftest.$ac_ext <<_ACEOF
17313 /* end confdefs.h. */
17314 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17315 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17316 #define $ac_func innocuous_$ac_func
17318 /* System header to define __stub macros and hopefully few prototypes,
17319 which can conflict with char $ac_func (); below.
17320 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17321 <limits.h> exists even on freestanding compilers. */
17324 # include <limits.h>
17326 # include <assert.h>
17331 /* Override any GCC internal prototype to avoid an error.
17332 Use char because int might match the return type of a GCC
17333 builtin and then its argument prototype would still apply. */
17338 /* The GNU C library defines this for functions which it implements
17339 to always fail with ENOSYS. Some functions are actually named
17340 something starting with __ and the normal name is an alias. */
17341 #if defined __stub_$ac_func || defined __stub___$ac_func
17348 return $ac_func ();
17353 rm -f conftest.$ac_objext conftest$ac_exeext
17354 if { (ac_try="$ac_link"
17355 case "(($ac_try" in
17356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17357 *) ac_try_echo=$ac_try;;
17359 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17360 (eval "$ac_link") 2>conftest.er1
17362 grep -v '^ *+' conftest.er1 >conftest.err
17364 cat conftest.err >&5
17365 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17366 (exit $ac_status); } && {
17367 test -z "$ac_c_werror_flag" ||
17368 test ! -s conftest.err
17369 } && test -s conftest$ac_exeext &&
17370 $as_test_x conftest$ac_exeext; then
17371 eval "$as_ac_var=yes"
17373 echo "$as_me: failed program was
:" >&5
17374 sed 's/^/| /' conftest.$ac_ext >&5
17376 eval "$as_ac_var=no
"
17379 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17380 conftest$ac_exeext conftest.$ac_ext
17382 ac_res=`eval echo '${'$as_ac_var'}'`
17383 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17384 echo "${ECHO_T}$ac_res" >&6; }
17385 if test `eval echo '${'$as_ac_var'}'` = yes; then
17386 cat >>confdefs.h <<_ACEOF
17387 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17391 case " $LIBOBJS " in
17392 *" getloadavg.
$ac_objext "* ) ;;
17393 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
17398 cat >>confdefs.h <<\_ACEOF
17399 #define C_GETLOADAVG 1
17402 # Figure out what our getloadavg.c needs.
17404 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17405 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17406 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17407 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17408 echo $ECHO_N "(cached
) $ECHO_C" >&6
17410 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17411 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17413 # Is the header compilable?
17414 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
17415 echo $ECHO_N "checking sys
/dg_sys_info.h usability...
$ECHO_C" >&6; }
17416 cat >conftest.$ac_ext <<_ACEOF
17419 cat confdefs.h >>conftest.$ac_ext
17420 cat >>conftest.$ac_ext <<_ACEOF
17421 /* end confdefs.h. */
17422 $ac_includes_default
17423 #include <sys/dg_sys_info.h>
17425 rm -f conftest.$ac_objext
17426 if { (ac_try="$ac_compile"
17427 case "(($ac_try" in
17428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17429 *) ac_try_echo=$ac_try;;
17431 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17432 (eval "$ac_compile") 2>conftest.er1
17434 grep -v '^ *+' conftest.er1 >conftest.err
17436 cat conftest.err >&5
17437 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17438 (exit $ac_status); } && {
17439 test -z "$ac_c_werror_flag" ||
17440 test ! -s conftest.err
17441 } && test -s conftest.$ac_objext; then
17442 ac_header_compiler=yes
17444 echo "$as_me: failed program was
:" >&5
17445 sed 's/^/| /' conftest.$ac_ext >&5
17447 ac_header_compiler=no
17450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17451 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17452 echo "${ECHO_T}$ac_header_compiler" >&6; }
17454 # Is the header present?
17455 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
17456 echo $ECHO_N "checking sys
/dg_sys_info.h presence...
$ECHO_C" >&6; }
17457 cat >conftest.$ac_ext <<_ACEOF
17460 cat confdefs.h >>conftest.$ac_ext
17461 cat >>conftest.$ac_ext <<_ACEOF
17462 /* end confdefs.h. */
17463 #include <sys/dg_sys_info.h>
17465 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17466 case "(($ac_try" in
17467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17468 *) ac_try_echo=$ac_try;;
17470 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17471 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17473 grep -v '^ *+' conftest.er1 >conftest.err
17475 cat conftest.err >&5
17476 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17477 (exit $ac_status); } >/dev/null && {
17478 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17479 test ! -s conftest.err
17481 ac_header_preproc=yes
17483 echo "$as_me: failed program was
:" >&5
17484 sed 's/^/| /' conftest.$ac_ext >&5
17486 ac_header_preproc=no
17489 rm -f conftest.err conftest.$ac_ext
17490 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17491 echo "${ECHO_T}$ac_header_preproc" >&6; }
17493 # So? What about this header?
17494 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17496 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17497 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17498 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
17499 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
17500 ac_header_preproc=yes
17503 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
17504 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
17505 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
17506 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
17507 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
17508 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
17509 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17510 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17511 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
17512 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
17513 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
17514 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
17518 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17519 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17520 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17521 echo $ECHO_N "(cached
) $ECHO_C" >&6
17523 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17525 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17526 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17529 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17532 cat >>confdefs.h <<\_ACEOF
17537 { echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
17538 echo $ECHO_N "checking
for dg_sys_info
in -ldgc...
$ECHO_C" >&6; }
17539 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17540 echo $ECHO_N "(cached
) $ECHO_C" >&6
17542 ac_check_lib_save_LIBS=$LIBS
17544 cat >conftest.$ac_ext <<_ACEOF
17547 cat confdefs.h >>conftest.$ac_ext
17548 cat >>conftest.$ac_ext <<_ACEOF
17549 /* end confdefs.h. */
17551 /* Override any GCC internal prototype to avoid an error.
17552 Use char because int might match the return type of a GCC
17553 builtin and then its argument prototype would still apply. */
17557 char dg_sys_info ();
17561 return dg_sys_info ();
17566 rm -f conftest.$ac_objext conftest$ac_exeext
17567 if { (ac_try="$ac_link"
17568 case "(($ac_try" in
17569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17570 *) ac_try_echo=$ac_try;;
17572 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17573 (eval "$ac_link") 2>conftest.er1
17575 grep -v '^ *+' conftest.er1 >conftest.err
17577 cat conftest.err >&5
17578 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17579 (exit $ac_status); } && {
17580 test -z "$ac_c_werror_flag" ||
17581 test ! -s conftest.err
17582 } && test -s conftest$ac_exeext &&
17583 $as_test_x conftest$ac_exeext; then
17584 ac_cv_lib_dgc_dg_sys_info=yes
17586 echo "$as_me: failed program was
:" >&5
17587 sed 's/^/| /' conftest.$ac_ext >&5
17589 ac_cv_lib_dgc_dg_sys_info=no
17592 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17593 conftest$ac_exeext conftest.$ac_ext
17594 LIBS=$ac_check_lib_save_LIBS
17596 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
17597 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17598 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17599 cat >>confdefs.h <<_ACEOF
17600 #define HAVE_LIBDGC 1
17611 if test "${ac_cv_header_locale_h+set}" = set; then
17612 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17613 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17614 if test "${ac_cv_header_locale_h+set}" = set; then
17615 echo $ECHO_N "(cached
) $ECHO_C" >&6
17617 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17618 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17620 # Is the header compilable?
17621 { echo "$as_me:$LINENO: checking locale.h usability
" >&5
17622 echo $ECHO_N "checking locale.h usability...
$ECHO_C" >&6; }
17623 cat >conftest.$ac_ext <<_ACEOF
17626 cat confdefs.h >>conftest.$ac_ext
17627 cat >>conftest.$ac_ext <<_ACEOF
17628 /* end confdefs.h. */
17629 $ac_includes_default
17630 #include <locale.h>
17632 rm -f conftest.$ac_objext
17633 if { (ac_try="$ac_compile"
17634 case "(($ac_try" in
17635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17636 *) ac_try_echo=$ac_try;;
17638 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17639 (eval "$ac_compile") 2>conftest.er1
17641 grep -v '^ *+' conftest.er1 >conftest.err
17643 cat conftest.err >&5
17644 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17645 (exit $ac_status); } && {
17646 test -z "$ac_c_werror_flag" ||
17647 test ! -s conftest.err
17648 } && test -s conftest.$ac_objext; then
17649 ac_header_compiler=yes
17651 echo "$as_me: failed program was
:" >&5
17652 sed 's/^/| /' conftest.$ac_ext >&5
17654 ac_header_compiler=no
17657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17658 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17659 echo "${ECHO_T}$ac_header_compiler" >&6; }
17661 # Is the header present?
17662 { echo "$as_me:$LINENO: checking locale.h presence
" >&5
17663 echo $ECHO_N "checking locale.h presence...
$ECHO_C" >&6; }
17664 cat >conftest.$ac_ext <<_ACEOF
17667 cat confdefs.h >>conftest.$ac_ext
17668 cat >>conftest.$ac_ext <<_ACEOF
17669 /* end confdefs.h. */
17670 #include <locale.h>
17672 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17673 case "(($ac_try" in
17674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17675 *) ac_try_echo=$ac_try;;
17677 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17678 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17680 grep -v '^ *+' conftest.er1 >conftest.err
17682 cat conftest.err >&5
17683 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17684 (exit $ac_status); } >/dev/null && {
17685 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17686 test ! -s conftest.err
17688 ac_header_preproc=yes
17690 echo "$as_me: failed program was
:" >&5
17691 sed 's/^/| /' conftest.$ac_ext >&5
17693 ac_header_preproc=no
17696 rm -f conftest.err conftest.$ac_ext
17697 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17698 echo "${ECHO_T}$ac_header_preproc" >&6; }
17700 # So? What about this header?
17701 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17703 { echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17704 echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17705 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
17706 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
17707 ac_header_preproc=yes
17710 { echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
17711 echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
17712 { echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
17713 echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
17714 { echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
17715 echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
17716 { echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17717 echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17718 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
17719 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
17720 { echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
17721 echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
17725 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17726 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17727 if test "${ac_cv_header_locale_h+set}" = set; then
17728 echo $ECHO_N "(cached
) $ECHO_C" >&6
17730 ac_cv_header_locale_h=$ac_header_preproc
17732 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17733 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17739 for ac_func in setlocale
17741 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17742 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17743 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17744 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17745 echo $ECHO_N "(cached
) $ECHO_C" >&6
17747 cat >conftest.$ac_ext <<_ACEOF
17750 cat confdefs.h >>conftest.$ac_ext
17751 cat >>conftest.$ac_ext <<_ACEOF
17752 /* end confdefs.h. */
17753 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17754 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17755 #define $ac_func innocuous_$ac_func
17757 /* System header to define __stub macros and hopefully few prototypes,
17758 which can conflict with char $ac_func (); below.
17759 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17760 <limits.h> exists even on freestanding compilers. */
17763 # include <limits.h>
17765 # include <assert.h>
17770 /* Override any GCC internal prototype to avoid an error.
17771 Use char because int might match the return type of a GCC
17772 builtin and then its argument prototype would still apply. */
17777 /* The GNU C library defines this for functions which it implements
17778 to always fail with ENOSYS. Some functions are actually named
17779 something starting with __ and the normal name is an alias. */
17780 #if defined __stub_$ac_func || defined __stub___$ac_func
17787 return $ac_func ();
17792 rm -f conftest.$ac_objext conftest$ac_exeext
17793 if { (ac_try="$ac_link"
17794 case "(($ac_try" in
17795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17796 *) ac_try_echo=$ac_try;;
17798 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17799 (eval "$ac_link") 2>conftest.er1
17801 grep -v '^ *+' conftest.er1 >conftest.err
17803 cat conftest.err >&5
17804 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17805 (exit $ac_status); } && {
17806 test -z "$ac_c_werror_flag" ||
17807 test ! -s conftest.err
17808 } && test -s conftest$ac_exeext &&
17809 $as_test_x conftest$ac_exeext; then
17810 eval "$as_ac_var=yes"
17812 echo "$as_me: failed program was
:" >&5
17813 sed 's/^/| /' conftest.$ac_ext >&5
17815 eval "$as_ac_var=no
"
17818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17819 conftest$ac_exeext conftest.$ac_ext
17821 ac_res=`eval echo '${'$as_ac_var'}'`
17822 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17823 echo "${ECHO_T}$ac_res" >&6; }
17824 if test `eval echo '${'$as_ac_var'}'` = yes; then
17825 cat >>confdefs.h <<_ACEOF
17826 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17833 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17834 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17835 # Irix 4.0.5F has the header but not the library.
17836 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17839 cat >>confdefs.h <<\_ACEOF
17845 if test $ac_have_func = no; then
17846 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17847 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17848 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17849 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17850 echo $ECHO_N "(cached
) $ECHO_C" >&6
17852 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17853 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17855 # Is the header compilable?
17856 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
17857 echo $ECHO_N "checking inq_stats
/cpustats.h usability...
$ECHO_C" >&6; }
17858 cat >conftest.$ac_ext <<_ACEOF
17861 cat confdefs.h >>conftest.$ac_ext
17862 cat >>conftest.$ac_ext <<_ACEOF
17863 /* end confdefs.h. */
17864 $ac_includes_default
17865 #include <inq_stats/cpustats.h>
17867 rm -f conftest.$ac_objext
17868 if { (ac_try="$ac_compile"
17869 case "(($ac_try" in
17870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17871 *) ac_try_echo=$ac_try;;
17873 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17874 (eval "$ac_compile") 2>conftest.er1
17876 grep -v '^ *+' conftest.er1 >conftest.err
17878 cat conftest.err >&5
17879 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17880 (exit $ac_status); } && {
17881 test -z "$ac_c_werror_flag" ||
17882 test ! -s conftest.err
17883 } && test -s conftest.$ac_objext; then
17884 ac_header_compiler=yes
17886 echo "$as_me: failed program was
:" >&5
17887 sed 's/^/| /' conftest.$ac_ext >&5
17889 ac_header_compiler=no
17892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17893 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17894 echo "${ECHO_T}$ac_header_compiler" >&6; }
17896 # Is the header present?
17897 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
17898 echo $ECHO_N "checking inq_stats
/cpustats.h presence...
$ECHO_C" >&6; }
17899 cat >conftest.$ac_ext <<_ACEOF
17902 cat confdefs.h >>conftest.$ac_ext
17903 cat >>conftest.$ac_ext <<_ACEOF
17904 /* end confdefs.h. */
17905 #include <inq_stats/cpustats.h>
17907 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17908 case "(($ac_try" in
17909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17910 *) ac_try_echo=$ac_try;;
17912 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17913 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17915 grep -v '^ *+' conftest.er1 >conftest.err
17917 cat conftest.err >&5
17918 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17919 (exit $ac_status); } >/dev/null && {
17920 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17921 test ! -s conftest.err
17923 ac_header_preproc=yes
17925 echo "$as_me: failed program was
:" >&5
17926 sed 's/^/| /' conftest.$ac_ext >&5
17928 ac_header_preproc=no
17931 rm -f conftest.err conftest.$ac_ext
17932 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17933 echo "${ECHO_T}$ac_header_preproc" >&6; }
17935 # So? What about this header?
17936 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17938 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17939 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17940 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
17941 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
17942 ac_header_preproc=yes
17945 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
17946 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
17947 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
17948 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
17949 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
17950 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
17951 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17952 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17953 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
17954 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
17955 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
17956 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
17960 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17961 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17962 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17963 echo $ECHO_N "(cached
) $ECHO_C" >&6
17965 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17967 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17968 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17971 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17974 cat >>confdefs.h <<\_ACEOF
17979 cat >>confdefs.h <<\_ACEOF
17988 if test $ac_have_func = no; then
17989 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17990 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
17991 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
17992 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17993 echo $ECHO_N "(cached
) $ECHO_C" >&6
17995 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
17996 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17998 # Is the header compilable?
17999 { echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
18000 echo $ECHO_N "checking sys
/cpustats.h usability...
$ECHO_C" >&6; }
18001 cat >conftest.$ac_ext <<_ACEOF
18004 cat confdefs.h >>conftest.$ac_ext
18005 cat >>conftest.$ac_ext <<_ACEOF
18006 /* end confdefs.h. */
18007 $ac_includes_default
18008 #include <sys/cpustats.h>
18010 rm -f conftest.$ac_objext
18011 if { (ac_try="$ac_compile"
18012 case "(($ac_try" in
18013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18014 *) ac_try_echo=$ac_try;;
18016 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18017 (eval "$ac_compile") 2>conftest.er1
18019 grep -v '^ *+' conftest.er1 >conftest.err
18021 cat conftest.err >&5
18022 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18023 (exit $ac_status); } && {
18024 test -z "$ac_c_werror_flag" ||
18025 test ! -s conftest.err
18026 } && test -s conftest.$ac_objext; then
18027 ac_header_compiler=yes
18029 echo "$as_me: failed program was
:" >&5
18030 sed 's/^/| /' conftest.$ac_ext >&5
18032 ac_header_compiler=no
18035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18036 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18037 echo "${ECHO_T}$ac_header_compiler" >&6; }
18039 # Is the header present?
18040 { echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
18041 echo $ECHO_N "checking sys
/cpustats.h presence...
$ECHO_C" >&6; }
18042 cat >conftest.$ac_ext <<_ACEOF
18045 cat confdefs.h >>conftest.$ac_ext
18046 cat >>conftest.$ac_ext <<_ACEOF
18047 /* end confdefs.h. */
18048 #include <sys/cpustats.h>
18050 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18051 case "(($ac_try" in
18052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18053 *) ac_try_echo=$ac_try;;
18055 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18056 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18058 grep -v '^ *+' conftest.er1 >conftest.err
18060 cat conftest.err >&5
18061 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18062 (exit $ac_status); } >/dev/null && {
18063 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18064 test ! -s conftest.err
18066 ac_header_preproc=yes
18068 echo "$as_me: failed program was
:" >&5
18069 sed 's/^/| /' conftest.$ac_ext >&5
18071 ac_header_preproc=no
18074 rm -f conftest.err conftest.$ac_ext
18075 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18076 echo "${ECHO_T}$ac_header_preproc" >&6; }
18078 # So? What about this header?
18079 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18081 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
18082 echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18083 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
18084 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
18085 ac_header_preproc=yes
18088 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
18089 echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
18090 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
18091 echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
18092 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
18093 echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
18094 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
18095 echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
18096 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
18097 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
18098 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
18099 echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
18103 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
18104 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
18105 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18106 echo $ECHO_N "(cached
) $ECHO_C" >&6
18108 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18110 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
18111 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18114 if test $ac_cv_header_sys_cpustats_h = yes; then
18115 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18124 if test $ac_have_func = no; then
18126 for ac_header in mach/mach.h
18128 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18129 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18130 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18131 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18132 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18133 echo $ECHO_N "(cached
) $ECHO_C" >&6
18135 ac_res=`eval echo '${'$as_ac_Header'}'`
18136 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18137 echo "${ECHO_T}$ac_res" >&6; }
18139 # Is the header compilable?
18140 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18141 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18142 cat >conftest.$ac_ext <<_ACEOF
18145 cat confdefs.h >>conftest.$ac_ext
18146 cat >>conftest.$ac_ext <<_ACEOF
18147 /* end confdefs.h. */
18148 $ac_includes_default
18149 #include <$ac_header>
18151 rm -f conftest.$ac_objext
18152 if { (ac_try="$ac_compile"
18153 case "(($ac_try" in
18154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18155 *) ac_try_echo=$ac_try;;
18157 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18158 (eval "$ac_compile") 2>conftest.er1
18160 grep -v '^ *+' conftest.er1 >conftest.err
18162 cat conftest.err >&5
18163 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18164 (exit $ac_status); } && {
18165 test -z "$ac_c_werror_flag" ||
18166 test ! -s conftest.err
18167 } && test -s conftest.$ac_objext; then
18168 ac_header_compiler=yes
18170 echo "$as_me: failed program was
:" >&5
18171 sed 's/^/| /' conftest.$ac_ext >&5
18173 ac_header_compiler=no
18176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18177 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18178 echo "${ECHO_T}$ac_header_compiler" >&6; }
18180 # Is the header present?
18181 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18182 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18183 cat >conftest.$ac_ext <<_ACEOF
18186 cat confdefs.h >>conftest.$ac_ext
18187 cat >>conftest.$ac_ext <<_ACEOF
18188 /* end confdefs.h. */
18189 #include <$ac_header>
18191 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18192 case "(($ac_try" in
18193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18194 *) ac_try_echo=$ac_try;;
18196 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18197 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18199 grep -v '^ *+' conftest.er1 >conftest.err
18201 cat conftest.err >&5
18202 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18203 (exit $ac_status); } >/dev/null && {
18204 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18205 test ! -s conftest.err
18207 ac_header_preproc=yes
18209 echo "$as_me: failed program was
:" >&5
18210 sed 's/^/| /' conftest.$ac_ext >&5
18212 ac_header_preproc=no
18215 rm -f conftest.err conftest.$ac_ext
18216 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18217 echo "${ECHO_T}$ac_header_preproc" >&6; }
18219 # So? What about this header?
18220 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18222 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18223 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18224 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18225 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18226 ac_header_preproc=yes
18229 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18230 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18231 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18232 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18233 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18234 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18235 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18236 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18237 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18238 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18239 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18240 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18244 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18245 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18246 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18247 echo $ECHO_N "(cached
) $ECHO_C" >&6
18249 eval "$as_ac_Header=\
$ac_header_preproc"
18251 ac_res=`eval echo '${'$as_ac_Header'}'`
18252 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18253 echo "${ECHO_T}$ac_res" >&6; }
18256 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18257 cat >>confdefs.h <<_ACEOF
18258 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18268 for ac_header in nlist.h
18270 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18271 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18272 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18273 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18274 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18275 echo $ECHO_N "(cached
) $ECHO_C" >&6
18277 ac_res=`eval echo '${'$as_ac_Header'}'`
18278 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18279 echo "${ECHO_T}$ac_res" >&6; }
18281 # Is the header compilable?
18282 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18283 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18284 cat >conftest.$ac_ext <<_ACEOF
18287 cat confdefs.h >>conftest.$ac_ext
18288 cat >>conftest.$ac_ext <<_ACEOF
18289 /* end confdefs.h. */
18290 $ac_includes_default
18291 #include <$ac_header>
18293 rm -f conftest.$ac_objext
18294 if { (ac_try="$ac_compile"
18295 case "(($ac_try" in
18296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18297 *) ac_try_echo=$ac_try;;
18299 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18300 (eval "$ac_compile") 2>conftest.er1
18302 grep -v '^ *+' conftest.er1 >conftest.err
18304 cat conftest.err >&5
18305 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18306 (exit $ac_status); } && {
18307 test -z "$ac_c_werror_flag" ||
18308 test ! -s conftest.err
18309 } && test -s conftest.$ac_objext; then
18310 ac_header_compiler=yes
18312 echo "$as_me: failed program was
:" >&5
18313 sed 's/^/| /' conftest.$ac_ext >&5
18315 ac_header_compiler=no
18318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18319 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18320 echo "${ECHO_T}$ac_header_compiler" >&6; }
18322 # Is the header present?
18323 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18324 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18325 cat >conftest.$ac_ext <<_ACEOF
18328 cat confdefs.h >>conftest.$ac_ext
18329 cat >>conftest.$ac_ext <<_ACEOF
18330 /* end confdefs.h. */
18331 #include <$ac_header>
18333 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18334 case "(($ac_try" in
18335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18336 *) ac_try_echo=$ac_try;;
18338 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18339 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18341 grep -v '^ *+' conftest.er1 >conftest.err
18343 cat conftest.err >&5
18344 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18345 (exit $ac_status); } >/dev/null && {
18346 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18347 test ! -s conftest.err
18349 ac_header_preproc=yes
18351 echo "$as_me: failed program was
:" >&5
18352 sed 's/^/| /' conftest.$ac_ext >&5
18354 ac_header_preproc=no
18357 rm -f conftest.err conftest.$ac_ext
18358 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18359 echo "${ECHO_T}$ac_header_preproc" >&6; }
18361 # So? What about this header?
18362 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18364 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18365 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18366 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18367 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18368 ac_header_preproc=yes
18371 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18372 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18373 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18374 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18375 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18376 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18377 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18378 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18379 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18380 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18381 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18382 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18386 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18387 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18388 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18389 echo $ECHO_N "(cached
) $ECHO_C" >&6
18391 eval "$as_ac_Header=\
$ac_header_preproc"
18393 ac_res=`eval echo '${'$as_ac_Header'}'`
18394 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18395 echo "${ECHO_T}$ac_res" >&6; }
18398 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18399 cat >>confdefs.h <<_ACEOF
18400 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18402 { echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
18403 echo $ECHO_N "checking
for struct nlist.n_un.n_name...
$ECHO_C" >&6; }
18404 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18405 echo $ECHO_N "(cached
) $ECHO_C" >&6
18407 cat >conftest.$ac_ext <<_ACEOF
18410 cat confdefs.h >>conftest.$ac_ext
18411 cat >>conftest.$ac_ext <<_ACEOF
18412 /* end confdefs.h. */
18418 static struct nlist ac_aggr;
18419 if (ac_aggr.n_un.n_name)
18425 rm -f conftest.$ac_objext
18426 if { (ac_try="$ac_compile"
18427 case "(($ac_try" in
18428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18429 *) ac_try_echo=$ac_try;;
18431 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18432 (eval "$ac_compile") 2>conftest.er1
18434 grep -v '^ *+' conftest.er1 >conftest.err
18436 cat conftest.err >&5
18437 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18438 (exit $ac_status); } && {
18439 test -z "$ac_c_werror_flag" ||
18440 test ! -s conftest.err
18441 } && test -s conftest.$ac_objext; then
18442 ac_cv_member_struct_nlist_n_un_n_name=yes
18444 echo "$as_me: failed program was
:" >&5
18445 sed 's/^/| /' conftest.$ac_ext >&5
18447 cat >conftest.$ac_ext <<_ACEOF
18450 cat confdefs.h >>conftest.$ac_ext
18451 cat >>conftest.$ac_ext <<_ACEOF
18452 /* end confdefs.h. */
18458 static struct nlist ac_aggr;
18459 if (sizeof ac_aggr.n_un.n_name)
18465 rm -f conftest.$ac_objext
18466 if { (ac_try="$ac_compile"
18467 case "(($ac_try" in
18468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18469 *) ac_try_echo=$ac_try;;
18471 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18472 (eval "$ac_compile") 2>conftest.er1
18474 grep -v '^ *+' conftest.er1 >conftest.err
18476 cat conftest.err >&5
18477 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18478 (exit $ac_status); } && {
18479 test -z "$ac_c_werror_flag" ||
18480 test ! -s conftest.err
18481 } && test -s conftest.$ac_objext; then
18482 ac_cv_member_struct_nlist_n_un_n_name=yes
18484 echo "$as_me: failed program was
:" >&5
18485 sed 's/^/| /' conftest.$ac_ext >&5
18487 ac_cv_member_struct_nlist_n_un_n_name=no
18490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18495 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18496 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18497 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18499 cat >>confdefs.h <<_ACEOF
18500 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18504 cat >>confdefs.h <<\_ACEOF
18505 #define NLIST_NAME_UNION 1
18519 # Some definitions of getloadavg require that the program be installed setgid.
18520 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
18521 echo $ECHO_N "checking whether getloadavg requires setgid...
$ECHO_C" >&6; }
18522 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18523 echo $ECHO_N "(cached
) $ECHO_C" >&6
18525 cat >conftest.$ac_ext <<_ACEOF
18528 cat confdefs.h >>conftest.$ac_ext
18529 cat >>conftest.$ac_ext <<_ACEOF
18530 /* end confdefs.h. */
18531 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
18532 #ifdef LDAV_PRIVILEGED
18533 Yowza Am I SETGID yet
18536 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
18537 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
18538 ac_cv_func_getloadavg_setgid=yes
18540 ac_cv_func_getloadavg_setgid=no
18545 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
18546 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18547 if test $ac_cv_func_getloadavg_setgid = yes; then
18550 cat >>confdefs.h <<\_ACEOF
18551 #define GETLOADAVG_PRIVILEGED 1
18558 if test $ac_cv_func_getloadavg_setgid = yes; then
18559 { echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
18560 echo $ECHO_N "checking group of
/dev
/kmem...
$ECHO_C" >&6; }
18561 if test "${ac_cv_group_kmem+set}" = set; then
18562 echo $ECHO_N "(cached
) $ECHO_C" >&6
18564 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18565 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18566 # If we got an error (system does not support symlinks), try without -L.
18567 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18568 ac_cv_group_kmem=`echo $ac_ls_output \
18569 | sed -ne 's/[ ][ ]*/ /g;
18570 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18574 { echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
18575 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18576 KMEM_GROUP=$ac_cv_group_kmem
18578 if test "x
$ac_save_LIBS" = x; then
18579 GETLOADAVG_LIBS=$LIBS
18581 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s
!$ac_save_LIBS!!"`
18587 { echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
18588 echo $ECHO_N "checking
for _LARGEFILE_SOURCE value needed
for large files...
$ECHO_C" >&6; }
18589 if test "${ac_cv_sys_largefile_source+set}" = set; then
18590 echo $ECHO_N "(cached
) $ECHO_C" >&6
18593 cat >conftest.$ac_ext <<_ACEOF
18596 cat confdefs.h >>conftest.$ac_ext
18597 cat >>conftest.$ac_ext <<_ACEOF
18598 /* end confdefs.h. */
18603 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18608 rm -f conftest.$ac_objext conftest$ac_exeext
18609 if { (ac_try="$ac_link"
18610 case "(($ac_try" in
18611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18612 *) ac_try_echo=$ac_try;;
18614 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18615 (eval "$ac_link") 2>conftest.er1
18617 grep -v '^ *+' conftest.er1 >conftest.err
18619 cat conftest.err >&5
18620 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18621 (exit $ac_status); } && {
18622 test -z "$ac_c_werror_flag" ||
18623 test ! -s conftest.err
18624 } && test -s conftest$ac_exeext &&
18625 $as_test_x conftest$ac_exeext; then
18626 ac_cv_sys_largefile_source=no; break
18628 echo "$as_me: failed program was
:" >&5
18629 sed 's/^/| /' conftest.$ac_ext >&5
18634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18635 conftest$ac_exeext conftest.$ac_ext
18636 cat >conftest.$ac_ext <<_ACEOF
18639 cat confdefs.h >>conftest.$ac_ext
18640 cat >>conftest.$ac_ext <<_ACEOF
18641 /* end confdefs.h. */
18642 #define _LARGEFILE_SOURCE 1
18647 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18652 rm -f conftest.$ac_objext conftest$ac_exeext
18653 if { (ac_try="$ac_link"
18654 case "(($ac_try" in
18655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18656 *) ac_try_echo=$ac_try;;
18658 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18659 (eval "$ac_link") 2>conftest.er1
18661 grep -v '^ *+' conftest.er1 >conftest.err
18663 cat conftest.err >&5
18664 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18665 (exit $ac_status); } && {
18666 test -z "$ac_c_werror_flag" ||
18667 test ! -s conftest.err
18668 } && test -s conftest$ac_exeext &&
18669 $as_test_x conftest$ac_exeext; then
18670 ac_cv_sys_largefile_source=1; break
18672 echo "$as_me: failed program was
:" >&5
18673 sed 's/^/| /' conftest.$ac_ext >&5
18678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18679 conftest$ac_exeext conftest.$ac_ext
18680 ac_cv_sys_largefile_source=unknown
18684 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
18685 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18686 case $ac_cv_sys_largefile_source in #(
18689 cat >>confdefs.h <<_ACEOF
18690 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18696 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18697 # in glibc 2.1.3, but that breaks too many other things.
18698 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18699 if test $ac_cv_sys_largefile_source != unknown; then
18701 cat >>confdefs.h <<\_ACEOF
18702 #define HAVE_FSEEKO 1
18708 # Configure getopt.
18709 # getopt.m4 serial 10
18711 # The getopt module assume you want GNU getopt, with getopt_long etc,
18712 # rather than vanilla POSIX getopt. This means your your code should
18713 # always include <getopt.h> for the getopt prototypes.
18725 # Prerequisites of lib/getopt*.
18732 for ac_header in getopt.h
18734 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18735 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18736 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18737 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18738 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18739 echo $ECHO_N "(cached
) $ECHO_C" >&6
18741 ac_res=`eval echo '${'$as_ac_Header'}'`
18742 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18743 echo "${ECHO_T}$ac_res" >&6; }
18745 # Is the header compilable?
18746 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18747 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18748 cat >conftest.$ac_ext <<_ACEOF
18751 cat confdefs.h >>conftest.$ac_ext
18752 cat >>conftest.$ac_ext <<_ACEOF
18753 /* end confdefs.h. */
18754 $ac_includes_default
18755 #include <$ac_header>
18757 rm -f conftest.$ac_objext
18758 if { (ac_try="$ac_compile"
18759 case "(($ac_try" in
18760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18761 *) ac_try_echo=$ac_try;;
18763 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18764 (eval "$ac_compile") 2>conftest.er1
18766 grep -v '^ *+' conftest.er1 >conftest.err
18768 cat conftest.err >&5
18769 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18770 (exit $ac_status); } && {
18771 test -z "$ac_c_werror_flag" ||
18772 test ! -s conftest.err
18773 } && test -s conftest.$ac_objext; then
18774 ac_header_compiler=yes
18776 echo "$as_me: failed program was
:" >&5
18777 sed 's/^/| /' conftest.$ac_ext >&5
18779 ac_header_compiler=no
18782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18783 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18784 echo "${ECHO_T}$ac_header_compiler" >&6; }
18786 # Is the header present?
18787 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18788 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18789 cat >conftest.$ac_ext <<_ACEOF
18792 cat confdefs.h >>conftest.$ac_ext
18793 cat >>conftest.$ac_ext <<_ACEOF
18794 /* end confdefs.h. */
18795 #include <$ac_header>
18797 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18798 case "(($ac_try" in
18799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18800 *) ac_try_echo=$ac_try;;
18802 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18803 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18805 grep -v '^ *+' conftest.er1 >conftest.err
18807 cat conftest.err >&5
18808 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18809 (exit $ac_status); } >/dev/null && {
18810 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18811 test ! -s conftest.err
18813 ac_header_preproc=yes
18815 echo "$as_me: failed program was
:" >&5
18816 sed 's/^/| /' conftest.$ac_ext >&5
18818 ac_header_preproc=no
18821 rm -f conftest.err conftest.$ac_ext
18822 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18823 echo "${ECHO_T}$ac_header_preproc" >&6; }
18825 # So? What about this header?
18826 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18828 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18829 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18830 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18831 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18832 ac_header_preproc=yes
18835 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18836 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18837 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18838 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18839 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18840 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18841 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18842 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18843 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18844 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18845 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18846 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18850 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18851 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18852 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18853 echo $ECHO_N "(cached
) $ECHO_C" >&6
18855 eval "$as_ac_Header=\
$ac_header_preproc"
18857 ac_res=`eval echo '${'$as_ac_Header'}'`
18858 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18859 echo "${ECHO_T}$ac_res" >&6; }
18862 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18863 cat >>confdefs.h <<_ACEOF
18864 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18873 if test -z "$GETOPT_H"; then
18875 for ac_func in getopt_long_only
18877 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18878 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18879 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18880 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18881 echo $ECHO_N "(cached
) $ECHO_C" >&6
18883 cat >conftest.$ac_ext <<_ACEOF
18886 cat confdefs.h >>conftest.$ac_ext
18887 cat >>conftest.$ac_ext <<_ACEOF
18888 /* end confdefs.h. */
18889 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18890 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18891 #define $ac_func innocuous_$ac_func
18893 /* System header to define __stub macros and hopefully few prototypes,
18894 which can conflict with char $ac_func (); below.
18895 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18896 <limits.h> exists even on freestanding compilers. */
18899 # include <limits.h>
18901 # include <assert.h>
18906 /* Override any GCC internal prototype to avoid an error.
18907 Use char because int might match the return type of a GCC
18908 builtin and then its argument prototype would still apply. */
18913 /* The GNU C library defines this for functions which it implements
18914 to always fail with ENOSYS. Some functions are actually named
18915 something starting with __ and the normal name is an alias. */
18916 #if defined __stub_$ac_func || defined __stub___$ac_func
18923 return $ac_func ();
18928 rm -f conftest.$ac_objext conftest$ac_exeext
18929 if { (ac_try="$ac_link"
18930 case "(($ac_try" in
18931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18932 *) ac_try_echo=$ac_try;;
18934 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18935 (eval "$ac_link") 2>conftest.er1
18937 grep -v '^ *+' conftest.er1 >conftest.err
18939 cat conftest.err >&5
18940 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18941 (exit $ac_status); } && {
18942 test -z "$ac_c_werror_flag" ||
18943 test ! -s conftest.err
18944 } && test -s conftest$ac_exeext &&
18945 $as_test_x conftest$ac_exeext; then
18946 eval "$as_ac_var=yes"
18948 echo "$as_me: failed program was
:" >&5
18949 sed 's/^/| /' conftest.$ac_ext >&5
18951 eval "$as_ac_var=no
"
18954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18955 conftest$ac_exeext conftest.$ac_ext
18957 ac_res=`eval echo '${'$as_ac_var'}'`
18958 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18959 echo "${ECHO_T}$ac_res" >&6; }
18960 if test `eval echo '${'$as_ac_var'}'` = yes; then
18961 cat >>confdefs.h <<_ACEOF
18962 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18972 if test -z "$GETOPT_H"; then
18973 { echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
18974 echo $ECHO_N "checking whether optreset is declared...
$ECHO_C" >&6; }
18975 if test "${ac_cv_have_decl_optreset+set}" = set; then
18976 echo $ECHO_N "(cached
) $ECHO_C" >&6
18978 cat >conftest.$ac_ext <<_ACEOF
18981 cat confdefs.h >>conftest.$ac_ext
18982 cat >>conftest.$ac_ext <<_ACEOF
18983 /* end confdefs.h. */
18984 #include <getopt.h>
18997 rm -f conftest.$ac_objext
18998 if { (ac_try="$ac_compile"
18999 case "(($ac_try" in
19000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19001 *) ac_try_echo=$ac_try;;
19003 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19004 (eval "$ac_compile") 2>conftest.er1
19006 grep -v '^ *+' conftest.er1 >conftest.err
19008 cat conftest.err >&5
19009 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19010 (exit $ac_status); } && {
19011 test -z "$ac_c_werror_flag" ||
19012 test ! -s conftest.err
19013 } && test -s conftest.$ac_objext; then
19014 ac_cv_have_decl_optreset=yes
19016 echo "$as_me: failed program was
:" >&5
19017 sed 's/^/| /' conftest.$ac_ext >&5
19019 ac_cv_have_decl_optreset=no
19022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19024 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
19025 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
19026 if test $ac_cv_have_decl_optreset = yes; then
19032 if test -z "$GETOPT_H"; then
19033 { echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
19034 echo $ECHO_N "checking
for working GNU getopt
function...
$ECHO_C" >&6; }
19035 if test "${gl_cv_func_gnu_getopt+set}" = set; then
19036 echo $ECHO_N "(cached
) $ECHO_C" >&6
19038 if test "$cross_compiling" = yes; then
19039 { echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
19040 echo $ECHO_N "checking whether getopt_clip is declared...
$ECHO_C" >&6; }
19041 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
19042 echo $ECHO_N "(cached
) $ECHO_C" >&6
19044 cat >conftest.$ac_ext <<_ACEOF
19047 cat confdefs.h >>conftest.$ac_ext
19048 cat >>conftest.$ac_ext <<_ACEOF
19049 /* end confdefs.h. */
19050 #include <getopt.h>
19055 #ifndef getopt_clip
19056 (void) getopt_clip;
19063 rm -f conftest.$ac_objext
19064 if { (ac_try="$ac_compile"
19065 case "(($ac_try" in
19066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19067 *) ac_try_echo=$ac_try;;
19069 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19070 (eval "$ac_compile") 2>conftest.er1
19072 grep -v '^ *+' conftest.er1 >conftest.err
19074 cat conftest.err >&5
19075 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19076 (exit $ac_status); } && {
19077 test -z "$ac_c_werror_flag" ||
19078 test ! -s conftest.err
19079 } && test -s conftest.$ac_objext; then
19080 ac_cv_have_decl_getopt_clip=yes
19082 echo "$as_me: failed program was
:" >&5
19083 sed 's/^/| /' conftest.$ac_ext >&5
19085 ac_cv_have_decl_getopt_clip=no
19088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19090 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
19091 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19092 if test $ac_cv_have_decl_getopt_clip = yes; then
19093 gl_cv_func_gnu_getopt=no
19095 gl_cv_func_gnu_getopt=yes
19099 cat >conftest.$ac_ext <<_ACEOF
19102 cat confdefs.h >>conftest.$ac_ext
19103 cat >>conftest.$ac_ext <<_ACEOF
19104 /* end confdefs.h. */
19105 #include <getopt.h>
19111 myargv[0] = "conftest
";
19114 return getopt (2, myargv, "+a
") != '?';
19120 rm -f conftest$ac_exeext
19121 if { (ac_try="$ac_link"
19122 case "(($ac_try" in
19123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19124 *) ac_try_echo=$ac_try;;
19126 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19127 (eval "$ac_link") 2>&5
19129 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19130 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19131 { (case "(($ac_try" in
19132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19133 *) ac_try_echo=$ac_try;;
19135 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19136 (eval "$ac_try") 2>&5
19138 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19139 (exit $ac_status); }; }; then
19140 gl_cv_func_gnu_getopt=yes
19142 echo "$as_me: program exited with status
$ac_status" >&5
19143 echo "$as_me: failed program was
:" >&5
19144 sed 's/^/| /' conftest.$ac_ext >&5
19146 ( exit $ac_status )
19147 gl_cv_func_gnu_getopt=no
19149 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19154 { echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
19155 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19156 if test "$gl_cv_func_gnu_getopt" = "no
"; then
19163 if test -n "$GETOPT_H"; then
19168 cat >>confdefs.h <<\_ACEOF
19169 #define __GETOPT_PREFIX rpl_
19175 GETOPTOBJS='getopt.o getopt1.o'
19182 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
19183 echo $ECHO_N "checking whether getpgrp requires zero arguments...
$ECHO_C" >&6; }
19184 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19185 echo $ECHO_N "(cached
) $ECHO_C" >&6
19187 # Use it with a single arg.
19188 cat >conftest.$ac_ext <<_ACEOF
19191 cat confdefs.h >>conftest.$ac_ext
19192 cat >>conftest.$ac_ext <<_ACEOF
19193 /* end confdefs.h. */
19194 $ac_includes_default
19203 rm -f conftest.$ac_objext
19204 if { (ac_try="$ac_compile"
19205 case "(($ac_try" in
19206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19207 *) ac_try_echo=$ac_try;;
19209 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19210 (eval "$ac_compile") 2>conftest.er1
19212 grep -v '^ *+' conftest.er1 >conftest.err
19214 cat conftest.err >&5
19215 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19216 (exit $ac_status); } && {
19217 test -z "$ac_c_werror_flag" ||
19218 test ! -s conftest.err
19219 } && test -s conftest.$ac_objext; then
19220 ac_cv_func_getpgrp_void=no
19222 echo "$as_me: failed program was
:" >&5
19223 sed 's/^/| /' conftest.$ac_ext >&5
19225 ac_cv_func_getpgrp_void=yes
19228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19231 { echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
19232 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19233 if test $ac_cv_func_getpgrp_void = yes; then
19235 cat >>confdefs.h <<\_ACEOF
19236 #define GETPGRP_VOID 1
19243 for ac_func in strftime
19245 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19246 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19247 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19248 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19249 echo $ECHO_N "(cached
) $ECHO_C" >&6
19251 cat >conftest.$ac_ext <<_ACEOF
19254 cat confdefs.h >>conftest.$ac_ext
19255 cat >>conftest.$ac_ext <<_ACEOF
19256 /* end confdefs.h. */
19257 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19258 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19259 #define $ac_func innocuous_$ac_func
19261 /* System header to define __stub macros and hopefully few prototypes,
19262 which can conflict with char $ac_func (); below.
19263 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19264 <limits.h> exists even on freestanding compilers. */
19267 # include <limits.h>
19269 # include <assert.h>
19274 /* Override any GCC internal prototype to avoid an error.
19275 Use char because int might match the return type of a GCC
19276 builtin and then its argument prototype would still apply. */
19281 /* The GNU C library defines this for functions which it implements
19282 to always fail with ENOSYS. Some functions are actually named
19283 something starting with __ and the normal name is an alias. */
19284 #if defined __stub_$ac_func || defined __stub___$ac_func
19291 return $ac_func ();
19296 rm -f conftest.$ac_objext conftest$ac_exeext
19297 if { (ac_try="$ac_link"
19298 case "(($ac_try" in
19299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19300 *) ac_try_echo=$ac_try;;
19302 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19303 (eval "$ac_link") 2>conftest.er1
19305 grep -v '^ *+' conftest.er1 >conftest.err
19307 cat conftest.err >&5
19308 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19309 (exit $ac_status); } && {
19310 test -z "$ac_c_werror_flag" ||
19311 test ! -s conftest.err
19312 } && test -s conftest$ac_exeext &&
19313 $as_test_x conftest$ac_exeext; then
19314 eval "$as_ac_var=yes"
19316 echo "$as_me: failed program was
:" >&5
19317 sed 's/^/| /' conftest.$ac_ext >&5
19319 eval "$as_ac_var=no
"
19322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19323 conftest$ac_exeext conftest.$ac_ext
19325 ac_res=`eval echo '${'$as_ac_var'}'`
19326 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19327 echo "${ECHO_T}$ac_res" >&6; }
19328 if test `eval echo '${'$as_ac_var'}'` = yes; then
19329 cat >>confdefs.h <<_ACEOF
19330 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19334 # strftime is in -lintl on SCO UNIX.
19335 { echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
19336 echo $ECHO_N "checking
for strftime
in -lintl...
$ECHO_C" >&6; }
19337 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19338 echo $ECHO_N "(cached
) $ECHO_C" >&6
19340 ac_check_lib_save_LIBS=$LIBS
19341 LIBS="-lintl $LIBS"
19342 cat >conftest.$ac_ext <<_ACEOF
19345 cat confdefs.h >>conftest.$ac_ext
19346 cat >>conftest.$ac_ext <<_ACEOF
19347 /* end confdefs.h. */
19349 /* Override any GCC internal prototype to avoid an error.
19350 Use char because int might match the return type of a GCC
19351 builtin and then its argument prototype would still apply. */
19359 return strftime ();
19364 rm -f conftest.$ac_objext conftest$ac_exeext
19365 if { (ac_try="$ac_link"
19366 case "(($ac_try" in
19367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19368 *) ac_try_echo=$ac_try;;
19370 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19371 (eval "$ac_link") 2>conftest.er1
19373 grep -v '^ *+' conftest.er1 >conftest.err
19375 cat conftest.err >&5
19376 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19377 (exit $ac_status); } && {
19378 test -z "$ac_c_werror_flag" ||
19379 test ! -s conftest.err
19380 } && test -s conftest$ac_exeext &&
19381 $as_test_x conftest$ac_exeext; then
19382 ac_cv_lib_intl_strftime=yes
19384 echo "$as_me: failed program was
:" >&5
19385 sed 's/^/| /' conftest.$ac_ext >&5
19387 ac_cv_lib_intl_strftime=no
19390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19391 conftest$ac_exeext conftest.$ac_ext
19392 LIBS=$ac_check_lib_save_LIBS
19394 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
19395 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19396 if test $ac_cv_lib_intl_strftime = yes; then
19397 cat >>confdefs.h <<\_ACEOF
19398 #define HAVE_STRFTIME 1
19401 LIBS="-lintl $LIBS"
19410 for ac_func in grantpt
19412 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19413 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19414 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19415 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19416 echo $ECHO_N "(cached
) $ECHO_C" >&6
19418 cat >conftest.$ac_ext <<_ACEOF
19421 cat confdefs.h >>conftest.$ac_ext
19422 cat >>conftest.$ac_ext <<_ACEOF
19423 /* end confdefs.h. */
19424 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19425 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19426 #define $ac_func innocuous_$ac_func
19428 /* System header to define __stub macros and hopefully few prototypes,
19429 which can conflict with char $ac_func (); below.
19430 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19431 <limits.h> exists even on freestanding compilers. */
19434 # include <limits.h>
19436 # include <assert.h>
19441 /* Override any GCC internal prototype to avoid an error.
19442 Use char because int might match the return type of a GCC
19443 builtin and then its argument prototype would still apply. */
19448 /* The GNU C library defines this for functions which it implements
19449 to always fail with ENOSYS. Some functions are actually named
19450 something starting with __ and the normal name is an alias. */
19451 #if defined __stub_$ac_func || defined __stub___$ac_func
19458 return $ac_func ();
19463 rm -f conftest.$ac_objext conftest$ac_exeext
19464 if { (ac_try="$ac_link"
19465 case "(($ac_try" in
19466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19467 *) ac_try_echo=$ac_try;;
19469 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19470 (eval "$ac_link") 2>conftest.er1
19472 grep -v '^ *+' conftest.er1 >conftest.err
19474 cat conftest.err >&5
19475 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19476 (exit $ac_status); } && {
19477 test -z "$ac_c_werror_flag" ||
19478 test ! -s conftest.err
19479 } && test -s conftest$ac_exeext &&
19480 $as_test_x conftest$ac_exeext; then
19481 eval "$as_ac_var=yes"
19483 echo "$as_me: failed program was
:" >&5
19484 sed 's/^/| /' conftest.$ac_ext >&5
19486 eval "$as_ac_var=no
"
19489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19490 conftest$ac_exeext conftest.$ac_ext
19492 ac_res=`eval echo '${'$as_ac_var'}'`
19493 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19494 echo "${ECHO_T}$ac_res" >&6; }
19495 if test `eval echo '${'$as_ac_var'}'` = yes; then
19496 cat >>confdefs.h <<_ACEOF
19497 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19504 # PTY-related GNU extensions.
19506 for ac_func in getpt
19508 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19509 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19510 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19511 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19512 echo $ECHO_N "(cached
) $ECHO_C" >&6
19514 cat >conftest.$ac_ext <<_ACEOF
19517 cat confdefs.h >>conftest.$ac_ext
19518 cat >>conftest.$ac_ext <<_ACEOF
19519 /* end confdefs.h. */
19520 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19521 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19522 #define $ac_func innocuous_$ac_func
19524 /* System header to define __stub macros and hopefully few prototypes,
19525 which can conflict with char $ac_func (); below.
19526 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19527 <limits.h> exists even on freestanding compilers. */
19530 # include <limits.h>
19532 # include <assert.h>
19537 /* Override any GCC internal prototype to avoid an error.
19538 Use char because int might match the return type of a GCC
19539 builtin and then its argument prototype would still apply. */
19544 /* The GNU C library defines this for functions which it implements
19545 to always fail with ENOSYS. Some functions are actually named
19546 something starting with __ and the normal name is an alias. */
19547 #if defined __stub_$ac_func || defined __stub___$ac_func
19554 return $ac_func ();
19559 rm -f conftest.$ac_objext conftest$ac_exeext
19560 if { (ac_try="$ac_link"
19561 case "(($ac_try" in
19562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19563 *) ac_try_echo=$ac_try;;
19565 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19566 (eval "$ac_link") 2>conftest.er1
19568 grep -v '^ *+' conftest.er1 >conftest.err
19570 cat conftest.err >&5
19571 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19572 (exit $ac_status); } && {
19573 test -z "$ac_c_werror_flag" ||
19574 test ! -s conftest.err
19575 } && test -s conftest$ac_exeext &&
19576 $as_test_x conftest$ac_exeext; then
19577 eval "$as_ac_var=yes"
19579 echo "$as_me: failed program was
:" >&5
19580 sed 's/^/| /' conftest.$ac_ext >&5
19582 eval "$as_ac_var=no
"
19585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19586 conftest$ac_exeext conftest.$ac_ext
19588 ac_res=`eval echo '${'$as_ac_var'}'`
19589 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19590 echo "${ECHO_T}$ac_res" >&6; }
19591 if test `eval echo '${'$as_ac_var'}'` = yes; then
19592 cat >>confdefs.h <<_ACEOF
19593 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19600 # Check this now, so that we will NOT find the above functions in ncurses.
19601 # That is because we have not set up to link ncurses in lib-src.
19602 # It's better to believe a function is not available
19603 # than to expect to find it in ncurses.
19605 { echo "$as_me:$LINENO: checking
for tparm
in -lncurses" >&5
19606 echo $ECHO_N "checking
for tparm
in -lncurses...
$ECHO_C" >&6; }
19607 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19608 echo $ECHO_N "(cached
) $ECHO_C" >&6
19610 ac_check_lib_save_LIBS=$LIBS
19611 LIBS="-lncurses $LIBS"
19612 cat >conftest.$ac_ext <<_ACEOF
19615 cat confdefs.h >>conftest.$ac_ext
19616 cat >>conftest.$ac_ext <<_ACEOF
19617 /* end confdefs.h. */
19619 /* Override any GCC internal prototype to avoid an error.
19620 Use char because int might match the return type of a GCC
19621 builtin and then its argument prototype would still apply. */
19634 rm -f conftest.$ac_objext conftest$ac_exeext
19635 if { (ac_try="$ac_link"
19636 case "(($ac_try" in
19637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19638 *) ac_try_echo=$ac_try;;
19640 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19641 (eval "$ac_link") 2>conftest.er1
19643 grep -v '^ *+' conftest.er1 >conftest.err
19645 cat conftest.err >&5
19646 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19647 (exit $ac_status); } && {
19648 test -z "$ac_c_werror_flag" ||
19649 test ! -s conftest.err
19650 } && test -s conftest$ac_exeext &&
19651 $as_test_x conftest$ac_exeext; then
19652 ac_cv_lib_ncurses_tparm=yes
19654 echo "$as_me: failed program was
:" >&5
19655 sed 's/^/| /' conftest.$ac_ext >&5
19657 ac_cv_lib_ncurses_tparm=no
19660 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19661 conftest$ac_exeext conftest.$ac_ext
19662 LIBS=$ac_check_lib_save_LIBS
19664 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ncurses_tparm" >&5
19665 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19666 if test $ac_cv_lib_ncurses_tparm = yes; then
19667 cat >>confdefs.h <<_ACEOF
19668 #define HAVE_LIBNCURSES 1
19671 LIBS="-lncurses $LIBS"
19676 # Do we have res_init, for detecting changes in /etc/resolv.conf?
19679 cat >conftest.$ac_ext <<_ACEOF
19682 cat confdefs.h >>conftest.$ac_ext
19683 cat >>conftest.$ac_ext <<_ACEOF
19684 /* end confdefs.h. */
19685 #include <netinet/in.h>
19686 #include <arpa/nameser.h>
19687 #include <resolv.h>
19696 rm -f conftest.$ac_objext conftest$ac_exeext
19697 if { (ac_try="$ac_link"
19698 case "(($ac_try" in
19699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19700 *) ac_try_echo=$ac_try;;
19702 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19703 (eval "$ac_link") 2>conftest.er1
19705 grep -v '^ *+' conftest.er1 >conftest.err
19707 cat conftest.err >&5
19708 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19709 (exit $ac_status); } && {
19710 test -z "$ac_c_werror_flag" ||
19711 test ! -s conftest.err
19712 } && test -s conftest$ac_exeext &&
19713 $as_test_x conftest$ac_exeext; then
19716 echo "$as_me: failed program was
:" >&5
19717 sed 's/^/| /' conftest.$ac_ext >&5
19722 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19723 conftest$ac_exeext conftest.$ac_ext
19724 if test "$have_res_init" = no; then
19726 LIBS="$LIBS -lresolv"
19727 { echo "$as_me:$LINENO: checking
for res_init with
-lresolv" >&5
19728 echo $ECHO_N "checking
for res_init with
-lresolv...
$ECHO_C" >&6; }
19729 cat >conftest.$ac_ext <<_ACEOF
19732 cat confdefs.h >>conftest.$ac_ext
19733 cat >>conftest.$ac_ext <<_ACEOF
19734 /* end confdefs.h. */
19735 #include <netinet/in.h>
19736 #include <arpa/nameser.h>
19737 #include <resolv.h>
19746 rm -f conftest.$ac_objext conftest$ac_exeext
19747 if { (ac_try="$ac_link"
19748 case "(($ac_try" in
19749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19750 *) ac_try_echo=$ac_try;;
19752 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19753 (eval "$ac_link") 2>conftest.er1
19755 grep -v '^ *+' conftest.er1 >conftest.err
19757 cat conftest.err >&5
19758 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19759 (exit $ac_status); } && {
19760 test -z "$ac_c_werror_flag" ||
19761 test ! -s conftest.err
19762 } && test -s conftest$ac_exeext &&
19763 $as_test_x conftest$ac_exeext; then
19766 echo "$as_me: failed program was
:" >&5
19767 sed 's/^/| /' conftest.$ac_ext >&5
19772 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19773 conftest$ac_exeext conftest.$ac_ext
19774 { echo "$as_me:$LINENO: result
: $have_res_init" >&5
19775 echo "${ECHO_T}$have_res_init" >&6; }
19776 if test "$have_res_init" = yes ; then
19782 if test "$have_res_init" = yes; then
19784 cat >>confdefs.h <<\_ACEOF
19785 #define HAVE_RES_INIT 1
19790 # Do we need the Hesiod library to provide the support routines?
19791 if test "$with_hesiod" = yes ; then
19792 # Don't set $LIBS here -- see comments above.
19793 { echo "$as_me:$LINENO: checking
for res_send
" >&5
19794 echo $ECHO_N "checking
for res_send...
$ECHO_C" >&6; }
19795 if test "${ac_cv_func_res_send+set}" = set; then
19796 echo $ECHO_N "(cached
) $ECHO_C" >&6
19798 cat >conftest.$ac_ext <<_ACEOF
19801 cat confdefs.h >>conftest.$ac_ext
19802 cat >>conftest.$ac_ext <<_ACEOF
19803 /* end confdefs.h. */
19804 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19805 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19806 #define res_send innocuous_res_send
19808 /* System header to define __stub macros and hopefully few prototypes,
19809 which can conflict with char res_send (); below.
19810 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19811 <limits.h> exists even on freestanding compilers. */
19814 # include <limits.h>
19816 # include <assert.h>
19821 /* Override any GCC internal prototype to avoid an error.
19822 Use char because int might match the return type of a GCC
19823 builtin and then its argument prototype would still apply. */
19828 /* The GNU C library defines this for functions which it implements
19829 to always fail with ENOSYS. Some functions are actually named
19830 something starting with __ and the normal name is an alias. */
19831 #if defined __stub_res_send || defined __stub___res_send
19838 return res_send ();
19843 rm -f conftest.$ac_objext conftest$ac_exeext
19844 if { (ac_try="$ac_link"
19845 case "(($ac_try" in
19846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19847 *) ac_try_echo=$ac_try;;
19849 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19850 (eval "$ac_link") 2>conftest.er1
19852 grep -v '^ *+' conftest.er1 >conftest.err
19854 cat conftest.err >&5
19855 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19856 (exit $ac_status); } && {
19857 test -z "$ac_c_werror_flag" ||
19858 test ! -s conftest.err
19859 } && test -s conftest$ac_exeext &&
19860 $as_test_x conftest$ac_exeext; then
19861 ac_cv_func_res_send=yes
19863 echo "$as_me: failed program was
:" >&5
19864 sed 's/^/| /' conftest.$ac_ext >&5
19866 ac_cv_func_res_send=no
19869 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19870 conftest$ac_exeext conftest.$ac_ext
19872 { echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
19873 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19874 if test $ac_cv_func_res_send = yes; then
19877 { echo "$as_me:$LINENO: checking
for __res_send
" >&5
19878 echo $ECHO_N "checking
for __res_send...
$ECHO_C" >&6; }
19879 if test "${ac_cv_func___res_send+set}" = set; then
19880 echo $ECHO_N "(cached
) $ECHO_C" >&6
19882 cat >conftest.$ac_ext <<_ACEOF
19885 cat confdefs.h >>conftest.$ac_ext
19886 cat >>conftest.$ac_ext <<_ACEOF
19887 /* end confdefs.h. */
19888 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19890 #define __res_send innocuous___res_send
19892 /* System header to define __stub macros and hopefully few prototypes,
19893 which can conflict with char __res_send (); below.
19894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19895 <limits.h> exists even on freestanding compilers. */
19898 # include <limits.h>
19900 # include <assert.h>
19905 /* Override any GCC internal prototype to avoid an error.
19906 Use char because int might match the return type of a GCC
19907 builtin and then its argument prototype would still apply. */
19911 char __res_send ();
19912 /* The GNU C library defines this for functions which it implements
19913 to always fail with ENOSYS. Some functions are actually named
19914 something starting with __ and the normal name is an alias. */
19915 #if defined __stub___res_send || defined __stub_____res_send
19922 return __res_send ();
19927 rm -f conftest.$ac_objext conftest$ac_exeext
19928 if { (ac_try="$ac_link"
19929 case "(($ac_try" in
19930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19931 *) ac_try_echo=$ac_try;;
19933 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19934 (eval "$ac_link") 2>conftest.er1
19936 grep -v '^ *+' conftest.er1 >conftest.err
19938 cat conftest.err >&5
19939 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19940 (exit $ac_status); } && {
19941 test -z "$ac_c_werror_flag" ||
19942 test ! -s conftest.err
19943 } && test -s conftest$ac_exeext &&
19944 $as_test_x conftest$ac_exeext; then
19945 ac_cv_func___res_send=yes
19947 echo "$as_me: failed program was
:" >&5
19948 sed 's/^/| /' conftest.$ac_ext >&5
19950 ac_cv_func___res_send=no
19953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19954 conftest$ac_exeext conftest.$ac_ext
19956 { echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
19957 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19958 if test $ac_cv_func___res_send = yes; then
19961 { echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
19962 echo $ECHO_N "checking
for res_send
in -lresolv...
$ECHO_C" >&6; }
19963 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19964 echo $ECHO_N "(cached
) $ECHO_C" >&6
19966 ac_check_lib_save_LIBS=$LIBS
19967 LIBS="-lresolv $LIBS"
19968 cat >conftest.$ac_ext <<_ACEOF
19971 cat confdefs.h >>conftest.$ac_ext
19972 cat >>conftest.$ac_ext <<_ACEOF
19973 /* end confdefs.h. */
19975 /* Override any GCC internal prototype to avoid an error.
19976 Use char because int might match the return type of a GCC
19977 builtin and then its argument prototype would still apply. */
19985 return res_send ();
19990 rm -f conftest.$ac_objext conftest$ac_exeext
19991 if { (ac_try="$ac_link"
19992 case "(($ac_try" in
19993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19994 *) ac_try_echo=$ac_try;;
19996 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19997 (eval "$ac_link") 2>conftest.er1
19999 grep -v '^ *+' conftest.er1 >conftest.err
20001 cat conftest.err >&5
20002 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20003 (exit $ac_status); } && {
20004 test -z "$ac_c_werror_flag" ||
20005 test ! -s conftest.err
20006 } && test -s conftest$ac_exeext &&
20007 $as_test_x conftest$ac_exeext; then
20008 ac_cv_lib_resolv_res_send=yes
20010 echo "$as_me: failed program was
:" >&5
20011 sed 's/^/| /' conftest.$ac_ext >&5
20013 ac_cv_lib_resolv_res_send=no
20016 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20017 conftest$ac_exeext conftest.$ac_ext
20018 LIBS=$ac_check_lib_save_LIBS
20020 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
20021 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
20022 if test $ac_cv_lib_resolv_res_send = yes; then
20025 { echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
20026 echo $ECHO_N "checking
for __res_send
in -lresolv...
$ECHO_C" >&6; }
20027 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
20028 echo $ECHO_N "(cached
) $ECHO_C" >&6
20030 ac_check_lib_save_LIBS=$LIBS
20031 LIBS="-lresolv $LIBS"
20032 cat >conftest.$ac_ext <<_ACEOF
20035 cat confdefs.h >>conftest.$ac_ext
20036 cat >>conftest.$ac_ext <<_ACEOF
20037 /* end confdefs.h. */
20039 /* Override any GCC internal prototype to avoid an error.
20040 Use char because int might match the return type of a GCC
20041 builtin and then its argument prototype would still apply. */
20045 char __res_send ();
20049 return __res_send ();
20054 rm -f conftest.$ac_objext conftest$ac_exeext
20055 if { (ac_try="$ac_link"
20056 case "(($ac_try" in
20057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20058 *) ac_try_echo=$ac_try;;
20060 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20061 (eval "$ac_link") 2>conftest.er1
20063 grep -v '^ *+' conftest.er1 >conftest.err
20065 cat conftest.err >&5
20066 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20067 (exit $ac_status); } && {
20068 test -z "$ac_c_werror_flag" ||
20069 test ! -s conftest.err
20070 } && test -s conftest$ac_exeext &&
20071 $as_test_x conftest$ac_exeext; then
20072 ac_cv_lib_resolv___res_send=yes
20074 echo "$as_me: failed program was
:" >&5
20075 sed 's/^/| /' conftest.$ac_ext >&5
20077 ac_cv_lib_resolv___res_send=no
20080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20081 conftest$ac_exeext conftest.$ac_ext
20082 LIBS=$ac_check_lib_save_LIBS
20084 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
20085 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
20086 if test $ac_cv_lib_resolv___res_send = yes; then
20096 if test "$resolv" = yes ; then
20101 { echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
20102 echo $ECHO_N "checking
for hes_getmailhost...
$ECHO_C" >&6; }
20103 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
20104 echo $ECHO_N "(cached
) $ECHO_C" >&6
20106 cat >conftest.$ac_ext <<_ACEOF
20109 cat confdefs.h >>conftest.$ac_ext
20110 cat >>conftest.$ac_ext <<_ACEOF
20111 /* end confdefs.h. */
20112 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
20113 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20114 #define hes_getmailhost innocuous_hes_getmailhost
20116 /* System header to define __stub macros and hopefully few prototypes,
20117 which can conflict with char hes_getmailhost (); below.
20118 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20119 <limits.h> exists even on freestanding compilers. */
20122 # include <limits.h>
20124 # include <assert.h>
20127 #undef hes_getmailhost
20129 /* Override any GCC internal prototype to avoid an error.
20130 Use char because int might match the return type of a GCC
20131 builtin and then its argument prototype would still apply. */
20135 char hes_getmailhost ();
20136 /* The GNU C library defines this for functions which it implements
20137 to always fail with ENOSYS. Some functions are actually named
20138 something starting with __ and the normal name is an alias. */
20139 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
20146 return hes_getmailhost ();
20151 rm -f conftest.$ac_objext conftest$ac_exeext
20152 if { (ac_try="$ac_link"
20153 case "(($ac_try" in
20154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20155 *) ac_try_echo=$ac_try;;
20157 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20158 (eval "$ac_link") 2>conftest.er1
20160 grep -v '^ *+' conftest.er1 >conftest.err
20162 cat conftest.err >&5
20163 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20164 (exit $ac_status); } && {
20165 test -z "$ac_c_werror_flag" ||
20166 test ! -s conftest.err
20167 } && test -s conftest$ac_exeext &&
20168 $as_test_x conftest$ac_exeext; then
20169 ac_cv_func_hes_getmailhost=yes
20171 echo "$as_me: failed program was
:" >&5
20172 sed 's/^/| /' conftest.$ac_ext >&5
20174 ac_cv_func_hes_getmailhost=no
20177 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20178 conftest$ac_exeext conftest.$ac_ext
20180 { echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
20181 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20182 if test $ac_cv_func_hes_getmailhost = yes; then
20185 { echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
20186 echo $ECHO_N "checking
for hes_getmailhost
in -lhesiod...
$ECHO_C" >&6; }
20187 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20188 echo $ECHO_N "(cached
) $ECHO_C" >&6
20190 ac_check_lib_save_LIBS=$LIBS
20191 LIBS="-lhesiod $RESOLVLIB $LIBS"
20192 cat >conftest.$ac_ext <<_ACEOF
20195 cat confdefs.h >>conftest.$ac_ext
20196 cat >>conftest.$ac_ext <<_ACEOF
20197 /* end confdefs.h. */
20199 /* Override any GCC internal prototype to avoid an error.
20200 Use char because int might match the return type of a GCC
20201 builtin and then its argument prototype would still apply. */
20205 char hes_getmailhost ();
20209 return hes_getmailhost ();
20214 rm -f conftest.$ac_objext conftest$ac_exeext
20215 if { (ac_try="$ac_link"
20216 case "(($ac_try" in
20217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20218 *) ac_try_echo=$ac_try;;
20220 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20221 (eval "$ac_link") 2>conftest.er1
20223 grep -v '^ *+' conftest.er1 >conftest.err
20225 cat conftest.err >&5
20226 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20227 (exit $ac_status); } && {
20228 test -z "$ac_c_werror_flag" ||
20229 test ! -s conftest.err
20230 } && test -s conftest$ac_exeext &&
20231 $as_test_x conftest$ac_exeext; then
20232 ac_cv_lib_hesiod_hes_getmailhost=yes
20234 echo "$as_me: failed program was
:" >&5
20235 sed 's/^/| /' conftest.$ac_ext >&5
20237 ac_cv_lib_hesiod_hes_getmailhost=no
20240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20241 conftest$ac_exeext conftest.$ac_ext
20242 LIBS=$ac_check_lib_save_LIBS
20244 { echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20245 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20246 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20248 cat >>confdefs.h <<\_ACEOF
20249 #define HAVE_LIBHESIOD 1
20260 # Do we need libresolv (due to res_init or Hesiod)?
20261 if test "$resolv" = yes ; then
20263 cat >>confdefs.h <<\_ACEOF
20264 #define HAVE_LIBRESOLV 1
20269 # These tell us which Kerberos-related libraries to use.
20270 if test "${with_kerberos+set}" = set; then
20272 { echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
20273 echo $ECHO_N "checking
for com_err
in -lcom_err...
$ECHO_C" >&6; }
20274 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20275 echo $ECHO_N "(cached
) $ECHO_C" >&6
20277 ac_check_lib_save_LIBS=$LIBS
20278 LIBS="-lcom_err $LIBS"
20279 cat >conftest.$ac_ext <<_ACEOF
20282 cat confdefs.h >>conftest.$ac_ext
20283 cat >>conftest.$ac_ext <<_ACEOF
20284 /* end confdefs.h. */
20286 /* Override any GCC internal prototype to avoid an error.
20287 Use char because int might match the return type of a GCC
20288 builtin and then its argument prototype would still apply. */
20301 rm -f conftest.$ac_objext conftest$ac_exeext
20302 if { (ac_try="$ac_link"
20303 case "(($ac_try" in
20304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20305 *) ac_try_echo=$ac_try;;
20307 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20308 (eval "$ac_link") 2>conftest.er1
20310 grep -v '^ *+' conftest.er1 >conftest.err
20312 cat conftest.err >&5
20313 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20314 (exit $ac_status); } && {
20315 test -z "$ac_c_werror_flag" ||
20316 test ! -s conftest.err
20317 } && test -s conftest$ac_exeext &&
20318 $as_test_x conftest$ac_exeext; then
20319 ac_cv_lib_com_err_com_err=yes
20321 echo "$as_me: failed program was
:" >&5
20322 sed 's/^/| /' conftest.$ac_ext >&5
20324 ac_cv_lib_com_err_com_err=no
20327 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20328 conftest$ac_exeext conftest.$ac_ext
20329 LIBS=$ac_check_lib_save_LIBS
20331 { echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
20332 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20333 if test $ac_cv_lib_com_err_com_err = yes; then
20334 cat >>confdefs.h <<_ACEOF
20335 #define HAVE_LIBCOM_ERR 1
20338 LIBS="-lcom_err $LIBS"
20343 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
20344 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lk5crypto...
$ECHO_C" >&6; }
20345 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20346 echo $ECHO_N "(cached
) $ECHO_C" >&6
20348 ac_check_lib_save_LIBS=$LIBS
20349 LIBS="-lk5crypto $LIBS"
20350 cat >conftest.$ac_ext <<_ACEOF
20353 cat confdefs.h >>conftest.$ac_ext
20354 cat >>conftest.$ac_ext <<_ACEOF
20355 /* end confdefs.h. */
20357 /* Override any GCC internal prototype to avoid an error.
20358 Use char because int might match the return type of a GCC
20359 builtin and then its argument prototype would still apply. */
20363 char mit_des_cbc_encrypt ();
20367 return mit_des_cbc_encrypt ();
20372 rm -f conftest.$ac_objext conftest$ac_exeext
20373 if { (ac_try="$ac_link"
20374 case "(($ac_try" in
20375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20376 *) ac_try_echo=$ac_try;;
20378 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20379 (eval "$ac_link") 2>conftest.er1
20381 grep -v '^ *+' conftest.er1 >conftest.err
20383 cat conftest.err >&5
20384 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20385 (exit $ac_status); } && {
20386 test -z "$ac_c_werror_flag" ||
20387 test ! -s conftest.err
20388 } && test -s conftest$ac_exeext &&
20389 $as_test_x conftest$ac_exeext; then
20390 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20392 echo "$as_me: failed program was
:" >&5
20393 sed 's/^/| /' conftest.$ac_ext >&5
20395 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20398 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20399 conftest$ac_exeext conftest.$ac_ext
20400 LIBS=$ac_check_lib_save_LIBS
20402 { echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20403 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20404 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20405 cat >>confdefs.h <<_ACEOF
20406 #define HAVE_LIBK5CRYPTO 1
20409 LIBS="-lk5crypto $LIBS"
20414 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
20415 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lcrypto...
$ECHO_C" >&6; }
20416 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20417 echo $ECHO_N "(cached
) $ECHO_C" >&6
20419 ac_check_lib_save_LIBS=$LIBS
20420 LIBS="-lcrypto $LIBS"
20421 cat >conftest.$ac_ext <<_ACEOF
20424 cat confdefs.h >>conftest.$ac_ext
20425 cat >>conftest.$ac_ext <<_ACEOF
20426 /* end confdefs.h. */
20428 /* Override any GCC internal prototype to avoid an error.
20429 Use char because int might match the return type of a GCC
20430 builtin and then its argument prototype would still apply. */
20434 char mit_des_cbc_encrypt ();
20438 return mit_des_cbc_encrypt ();
20443 rm -f conftest.$ac_objext conftest$ac_exeext
20444 if { (ac_try="$ac_link"
20445 case "(($ac_try" in
20446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20447 *) ac_try_echo=$ac_try;;
20449 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20450 (eval "$ac_link") 2>conftest.er1
20452 grep -v '^ *+' conftest.er1 >conftest.err
20454 cat conftest.err >&5
20455 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20456 (exit $ac_status); } && {
20457 test -z "$ac_c_werror_flag" ||
20458 test ! -s conftest.err
20459 } && test -s conftest$ac_exeext &&
20460 $as_test_x conftest$ac_exeext; then
20461 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20463 echo "$as_me: failed program was
:" >&5
20464 sed 's/^/| /' conftest.$ac_ext >&5
20466 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20470 conftest$ac_exeext conftest.$ac_ext
20471 LIBS=$ac_check_lib_save_LIBS
20473 { echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20474 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20475 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20476 cat >>confdefs.h <<_ACEOF
20477 #define HAVE_LIBCRYPTO 1
20480 LIBS="-lcrypto $LIBS"
20485 { echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
20486 echo $ECHO_N "checking
for krb5_init_context
in -lkrb5...
$ECHO_C" >&6; }
20487 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20488 echo $ECHO_N "(cached
) $ECHO_C" >&6
20490 ac_check_lib_save_LIBS=$LIBS
20491 LIBS="-lkrb5 $LIBS"
20492 cat >conftest.$ac_ext <<_ACEOF
20495 cat confdefs.h >>conftest.$ac_ext
20496 cat >>conftest.$ac_ext <<_ACEOF
20497 /* end confdefs.h. */
20499 /* Override any GCC internal prototype to avoid an error.
20500 Use char because int might match the return type of a GCC
20501 builtin and then its argument prototype would still apply. */
20505 char krb5_init_context ();
20509 return krb5_init_context ();
20514 rm -f conftest.$ac_objext conftest$ac_exeext
20515 if { (ac_try="$ac_link"
20516 case "(($ac_try" in
20517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20518 *) ac_try_echo=$ac_try;;
20520 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20521 (eval "$ac_link") 2>conftest.er1
20523 grep -v '^ *+' conftest.er1 >conftest.err
20525 cat conftest.err >&5
20526 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20527 (exit $ac_status); } && {
20528 test -z "$ac_c_werror_flag" ||
20529 test ! -s conftest.err
20530 } && test -s conftest$ac_exeext &&
20531 $as_test_x conftest$ac_exeext; then
20532 ac_cv_lib_krb5_krb5_init_context=yes
20534 echo "$as_me: failed program was
:" >&5
20535 sed 's/^/| /' conftest.$ac_ext >&5
20537 ac_cv_lib_krb5_krb5_init_context=no
20540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20541 conftest$ac_exeext conftest.$ac_ext
20542 LIBS=$ac_check_lib_save_LIBS
20544 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
20545 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20546 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20547 cat >>confdefs.h <<_ACEOF
20548 #define HAVE_LIBKRB5 1
20551 LIBS="-lkrb5 $LIBS"
20555 if test "${with_kerberos5+set}" != set; then
20557 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
20558 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes425...
$ECHO_C" >&6; }
20559 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20560 echo $ECHO_N "(cached
) $ECHO_C" >&6
20562 ac_check_lib_save_LIBS=$LIBS
20563 LIBS="-ldes425 $LIBS"
20564 cat >conftest.$ac_ext <<_ACEOF
20567 cat confdefs.h >>conftest.$ac_ext
20568 cat >>conftest.$ac_ext <<_ACEOF
20569 /* end confdefs.h. */
20571 /* Override any GCC internal prototype to avoid an error.
20572 Use char because int might match the return type of a GCC
20573 builtin and then its argument prototype would still apply. */
20577 char des_cbc_encrypt ();
20581 return des_cbc_encrypt ();
20586 rm -f conftest.$ac_objext conftest$ac_exeext
20587 if { (ac_try="$ac_link"
20588 case "(($ac_try" in
20589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20590 *) ac_try_echo=$ac_try;;
20592 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20593 (eval "$ac_link") 2>conftest.er1
20595 grep -v '^ *+' conftest.er1 >conftest.err
20597 cat conftest.err >&5
20598 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20599 (exit $ac_status); } && {
20600 test -z "$ac_c_werror_flag" ||
20601 test ! -s conftest.err
20602 } && test -s conftest$ac_exeext &&
20603 $as_test_x conftest$ac_exeext; then
20604 ac_cv_lib_des425_des_cbc_encrypt=yes
20606 echo "$as_me: failed program was
:" >&5
20607 sed 's/^/| /' conftest.$ac_ext >&5
20609 ac_cv_lib_des425_des_cbc_encrypt=no
20612 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20613 conftest$ac_exeext conftest.$ac_ext
20614 LIBS=$ac_check_lib_save_LIBS
20616 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20617 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20618 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20619 cat >>confdefs.h <<_ACEOF
20620 #define HAVE_LIBDES425 1
20623 LIBS="-ldes425 $LIBS"
20627 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
20628 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes...
$ECHO_C" >&6; }
20629 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20630 echo $ECHO_N "(cached
) $ECHO_C" >&6
20632 ac_check_lib_save_LIBS=$LIBS
20634 cat >conftest.$ac_ext <<_ACEOF
20637 cat confdefs.h >>conftest.$ac_ext
20638 cat >>conftest.$ac_ext <<_ACEOF
20639 /* end confdefs.h. */
20641 /* Override any GCC internal prototype to avoid an error.
20642 Use char because int might match the return type of a GCC
20643 builtin and then its argument prototype would still apply. */
20647 char des_cbc_encrypt ();
20651 return des_cbc_encrypt ();
20656 rm -f conftest.$ac_objext conftest$ac_exeext
20657 if { (ac_try="$ac_link"
20658 case "(($ac_try" in
20659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20660 *) ac_try_echo=$ac_try;;
20662 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20663 (eval "$ac_link") 2>conftest.er1
20665 grep -v '^ *+' conftest.er1 >conftest.err
20667 cat conftest.err >&5
20668 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20669 (exit $ac_status); } && {
20670 test -z "$ac_c_werror_flag" ||
20671 test ! -s conftest.err
20672 } && test -s conftest$ac_exeext &&
20673 $as_test_x conftest$ac_exeext; then
20674 ac_cv_lib_des_des_cbc_encrypt=yes
20676 echo "$as_me: failed program was
:" >&5
20677 sed 's/^/| /' conftest.$ac_ext >&5
20679 ac_cv_lib_des_des_cbc_encrypt=no
20682 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20683 conftest$ac_exeext conftest.$ac_ext
20684 LIBS=$ac_check_lib_save_LIBS
20686 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
20687 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20688 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20689 cat >>confdefs.h <<_ACEOF
20690 #define HAVE_LIBDES 1
20700 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
20701 echo $ECHO_N "checking
for krb_get_cred
in -lkrb4...
$ECHO_C" >&6; }
20702 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20703 echo $ECHO_N "(cached
) $ECHO_C" >&6
20705 ac_check_lib_save_LIBS=$LIBS
20706 LIBS="-lkrb4 $LIBS"
20707 cat >conftest.$ac_ext <<_ACEOF
20710 cat confdefs.h >>conftest.$ac_ext
20711 cat >>conftest.$ac_ext <<_ACEOF
20712 /* end confdefs.h. */
20714 /* Override any GCC internal prototype to avoid an error.
20715 Use char because int might match the return type of a GCC
20716 builtin and then its argument prototype would still apply. */
20720 char krb_get_cred ();
20724 return krb_get_cred ();
20729 rm -f conftest.$ac_objext conftest$ac_exeext
20730 if { (ac_try="$ac_link"
20731 case "(($ac_try" in
20732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20733 *) ac_try_echo=$ac_try;;
20735 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20736 (eval "$ac_link") 2>conftest.er1
20738 grep -v '^ *+' conftest.er1 >conftest.err
20740 cat conftest.err >&5
20741 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20742 (exit $ac_status); } && {
20743 test -z "$ac_c_werror_flag" ||
20744 test ! -s conftest.err
20745 } && test -s conftest$ac_exeext &&
20746 $as_test_x conftest$ac_exeext; then
20747 ac_cv_lib_krb4_krb_get_cred=yes
20749 echo "$as_me: failed program was
:" >&5
20750 sed 's/^/| /' conftest.$ac_ext >&5
20752 ac_cv_lib_krb4_krb_get_cred=no
20755 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20756 conftest$ac_exeext conftest.$ac_ext
20757 LIBS=$ac_check_lib_save_LIBS
20759 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
20760 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20761 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20762 cat >>confdefs.h <<_ACEOF
20763 #define HAVE_LIBKRB4 1
20766 LIBS="-lkrb4 $LIBS"
20770 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
20771 echo $ECHO_N "checking
for krb_get_cred
in -lkrb...
$ECHO_C" >&6; }
20772 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20773 echo $ECHO_N "(cached
) $ECHO_C" >&6
20775 ac_check_lib_save_LIBS=$LIBS
20777 cat >conftest.$ac_ext <<_ACEOF
20780 cat confdefs.h >>conftest.$ac_ext
20781 cat >>conftest.$ac_ext <<_ACEOF
20782 /* end confdefs.h. */
20784 /* Override any GCC internal prototype to avoid an error.
20785 Use char because int might match the return type of a GCC
20786 builtin and then its argument prototype would still apply. */
20790 char krb_get_cred ();
20794 return krb_get_cred ();
20799 rm -f conftest.$ac_objext conftest$ac_exeext
20800 if { (ac_try="$ac_link"
20801 case "(($ac_try" in
20802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20803 *) ac_try_echo=$ac_try;;
20805 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20806 (eval "$ac_link") 2>conftest.er1
20808 grep -v '^ *+' conftest.er1 >conftest.err
20810 cat conftest.err >&5
20811 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20812 (exit $ac_status); } && {
20813 test -z "$ac_c_werror_flag" ||
20814 test ! -s conftest.err
20815 } && test -s conftest$ac_exeext &&
20816 $as_test_x conftest$ac_exeext; then
20817 ac_cv_lib_krb_krb_get_cred=yes
20819 echo "$as_me: failed program was
:" >&5
20820 sed 's/^/| /' conftest.$ac_ext >&5
20822 ac_cv_lib_krb_krb_get_cred=no
20825 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20826 conftest$ac_exeext conftest.$ac_ext
20827 LIBS=$ac_check_lib_save_LIBS
20829 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
20830 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20831 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20832 cat >>confdefs.h <<_ACEOF
20833 #define HAVE_LIBKRB 1
20844 if test "${with_kerberos5+set}" = set; then
20846 for ac_header in krb5.h
20848 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20849 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20850 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20851 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20852 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20853 echo $ECHO_N "(cached
) $ECHO_C" >&6
20855 ac_res=`eval echo '${'$as_ac_Header'}'`
20856 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20857 echo "${ECHO_T}$ac_res" >&6; }
20859 # Is the header compilable?
20860 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20861 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20862 cat >conftest.$ac_ext <<_ACEOF
20865 cat confdefs.h >>conftest.$ac_ext
20866 cat >>conftest.$ac_ext <<_ACEOF
20867 /* end confdefs.h. */
20868 $ac_includes_default
20869 #include <$ac_header>
20871 rm -f conftest.$ac_objext
20872 if { (ac_try="$ac_compile"
20873 case "(($ac_try" in
20874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20875 *) ac_try_echo=$ac_try;;
20877 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20878 (eval "$ac_compile") 2>conftest.er1
20880 grep -v '^ *+' conftest.er1 >conftest.err
20882 cat conftest.err >&5
20883 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20884 (exit $ac_status); } && {
20885 test -z "$ac_c_werror_flag" ||
20886 test ! -s conftest.err
20887 } && test -s conftest.$ac_objext; then
20888 ac_header_compiler=yes
20890 echo "$as_me: failed program was
:" >&5
20891 sed 's/^/| /' conftest.$ac_ext >&5
20893 ac_header_compiler=no
20896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20897 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20898 echo "${ECHO_T}$ac_header_compiler" >&6; }
20900 # Is the header present?
20901 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20902 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20903 cat >conftest.$ac_ext <<_ACEOF
20906 cat confdefs.h >>conftest.$ac_ext
20907 cat >>conftest.$ac_ext <<_ACEOF
20908 /* end confdefs.h. */
20909 #include <$ac_header>
20911 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20912 case "(($ac_try" in
20913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20914 *) ac_try_echo=$ac_try;;
20916 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20917 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20919 grep -v '^ *+' conftest.er1 >conftest.err
20921 cat conftest.err >&5
20922 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20923 (exit $ac_status); } >/dev/null && {
20924 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20925 test ! -s conftest.err
20927 ac_header_preproc=yes
20929 echo "$as_me: failed program was
:" >&5
20930 sed 's/^/| /' conftest.$ac_ext >&5
20932 ac_header_preproc=no
20935 rm -f conftest.err conftest.$ac_ext
20936 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20937 echo "${ECHO_T}$ac_header_preproc" >&6; }
20939 # So? What about this header?
20940 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20942 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20943 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20944 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20945 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20946 ac_header_preproc=yes
20949 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20950 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20951 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20952 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20953 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20954 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20955 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20956 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20957 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20958 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20959 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20960 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20964 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20965 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20966 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20967 echo $ECHO_N "(cached
) $ECHO_C" >&6
20969 eval "$as_ac_Header=\
$ac_header_preproc"
20971 ac_res=`eval echo '${'$as_ac_Header'}'`
20972 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20973 echo "${ECHO_T}$ac_res" >&6; }
20976 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20977 cat >>confdefs.h <<_ACEOF
20978 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20987 for ac_header in des.h
20989 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20990 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20991 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20992 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20993 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20994 echo $ECHO_N "(cached
) $ECHO_C" >&6
20996 ac_res=`eval echo '${'$as_ac_Header'}'`
20997 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20998 echo "${ECHO_T}$ac_res" >&6; }
21000 # Is the header compilable?
21001 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21002 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21003 cat >conftest.$ac_ext <<_ACEOF
21006 cat confdefs.h >>conftest.$ac_ext
21007 cat >>conftest.$ac_ext <<_ACEOF
21008 /* end confdefs.h. */
21009 $ac_includes_default
21010 #include <$ac_header>
21012 rm -f conftest.$ac_objext
21013 if { (ac_try="$ac_compile"
21014 case "(($ac_try" in
21015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21016 *) ac_try_echo=$ac_try;;
21018 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21019 (eval "$ac_compile") 2>conftest.er1
21021 grep -v '^ *+' conftest.er1 >conftest.err
21023 cat conftest.err >&5
21024 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21025 (exit $ac_status); } && {
21026 test -z "$ac_c_werror_flag" ||
21027 test ! -s conftest.err
21028 } && test -s conftest.$ac_objext; then
21029 ac_header_compiler=yes
21031 echo "$as_me: failed program was
:" >&5
21032 sed 's/^/| /' conftest.$ac_ext >&5
21034 ac_header_compiler=no
21037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21038 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21039 echo "${ECHO_T}$ac_header_compiler" >&6; }
21041 # Is the header present?
21042 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21043 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21044 cat >conftest.$ac_ext <<_ACEOF
21047 cat confdefs.h >>conftest.$ac_ext
21048 cat >>conftest.$ac_ext <<_ACEOF
21049 /* end confdefs.h. */
21050 #include <$ac_header>
21052 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21053 case "(($ac_try" in
21054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21055 *) ac_try_echo=$ac_try;;
21057 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21058 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21060 grep -v '^ *+' conftest.er1 >conftest.err
21062 cat conftest.err >&5
21063 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21064 (exit $ac_status); } >/dev/null && {
21065 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21066 test ! -s conftest.err
21068 ac_header_preproc=yes
21070 echo "$as_me: failed program was
:" >&5
21071 sed 's/^/| /' conftest.$ac_ext >&5
21073 ac_header_preproc=no
21076 rm -f conftest.err conftest.$ac_ext
21077 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21078 echo "${ECHO_T}$ac_header_preproc" >&6; }
21080 # So? What about this header?
21081 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21083 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21084 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21085 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21086 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21087 ac_header_preproc=yes
21090 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21091 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21092 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21093 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21094 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21095 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21096 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21097 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21098 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21099 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21100 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21101 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21105 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21106 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21107 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21108 echo $ECHO_N "(cached
) $ECHO_C" >&6
21110 eval "$as_ac_Header=\
$ac_header_preproc"
21112 ac_res=`eval echo '${'$as_ac_Header'}'`
21113 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21114 echo "${ECHO_T}$ac_res" >&6; }
21117 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21118 cat >>confdefs.h <<_ACEOF
21119 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21124 for ac_header in kerberosIV/des.h
21126 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21127 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21128 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21129 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21130 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21131 echo $ECHO_N "(cached
) $ECHO_C" >&6
21133 ac_res=`eval echo '${'$as_ac_Header'}'`
21134 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21135 echo "${ECHO_T}$ac_res" >&6; }
21137 # Is the header compilable?
21138 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21139 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21140 cat >conftest.$ac_ext <<_ACEOF
21143 cat confdefs.h >>conftest.$ac_ext
21144 cat >>conftest.$ac_ext <<_ACEOF
21145 /* end confdefs.h. */
21146 $ac_includes_default
21147 #include <$ac_header>
21149 rm -f conftest.$ac_objext
21150 if { (ac_try="$ac_compile"
21151 case "(($ac_try" in
21152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21153 *) ac_try_echo=$ac_try;;
21155 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21156 (eval "$ac_compile") 2>conftest.er1
21158 grep -v '^ *+' conftest.er1 >conftest.err
21160 cat conftest.err >&5
21161 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21162 (exit $ac_status); } && {
21163 test -z "$ac_c_werror_flag" ||
21164 test ! -s conftest.err
21165 } && test -s conftest.$ac_objext; then
21166 ac_header_compiler=yes
21168 echo "$as_me: failed program was
:" >&5
21169 sed 's/^/| /' conftest.$ac_ext >&5
21171 ac_header_compiler=no
21174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21175 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21176 echo "${ECHO_T}$ac_header_compiler" >&6; }
21178 # Is the header present?
21179 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21180 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21181 cat >conftest.$ac_ext <<_ACEOF
21184 cat confdefs.h >>conftest.$ac_ext
21185 cat >>conftest.$ac_ext <<_ACEOF
21186 /* end confdefs.h. */
21187 #include <$ac_header>
21189 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21190 case "(($ac_try" in
21191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21192 *) ac_try_echo=$ac_try;;
21194 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21195 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21197 grep -v '^ *+' conftest.er1 >conftest.err
21199 cat conftest.err >&5
21200 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21201 (exit $ac_status); } >/dev/null && {
21202 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21203 test ! -s conftest.err
21205 ac_header_preproc=yes
21207 echo "$as_me: failed program was
:" >&5
21208 sed 's/^/| /' conftest.$ac_ext >&5
21210 ac_header_preproc=no
21213 rm -f conftest.err conftest.$ac_ext
21214 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21215 echo "${ECHO_T}$ac_header_preproc" >&6; }
21217 # So? What about this header?
21218 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21220 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21221 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21222 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21223 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21224 ac_header_preproc=yes
21227 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21228 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21229 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21230 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21231 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21232 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21233 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21234 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21235 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21236 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21237 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21238 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21242 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21243 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21244 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21245 echo $ECHO_N "(cached
) $ECHO_C" >&6
21247 eval "$as_ac_Header=\
$ac_header_preproc"
21249 ac_res=`eval echo '${'$as_ac_Header'}'`
21250 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21251 echo "${ECHO_T}$ac_res" >&6; }
21254 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21255 cat >>confdefs.h <<_ACEOF
21256 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21261 for ac_header in kerberos/des.h
21263 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21264 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21265 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21266 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21267 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21268 echo $ECHO_N "(cached
) $ECHO_C" >&6
21270 ac_res=`eval echo '${'$as_ac_Header'}'`
21271 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21272 echo "${ECHO_T}$ac_res" >&6; }
21274 # Is the header compilable?
21275 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21276 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21277 cat >conftest.$ac_ext <<_ACEOF
21280 cat confdefs.h >>conftest.$ac_ext
21281 cat >>conftest.$ac_ext <<_ACEOF
21282 /* end confdefs.h. */
21283 $ac_includes_default
21284 #include <$ac_header>
21286 rm -f conftest.$ac_objext
21287 if { (ac_try="$ac_compile"
21288 case "(($ac_try" in
21289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21290 *) ac_try_echo=$ac_try;;
21292 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21293 (eval "$ac_compile") 2>conftest.er1
21295 grep -v '^ *+' conftest.er1 >conftest.err
21297 cat conftest.err >&5
21298 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21299 (exit $ac_status); } && {
21300 test -z "$ac_c_werror_flag" ||
21301 test ! -s conftest.err
21302 } && test -s conftest.$ac_objext; then
21303 ac_header_compiler=yes
21305 echo "$as_me: failed program was
:" >&5
21306 sed 's/^/| /' conftest.$ac_ext >&5
21308 ac_header_compiler=no
21311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21312 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21313 echo "${ECHO_T}$ac_header_compiler" >&6; }
21315 # Is the header present?
21316 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21317 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21318 cat >conftest.$ac_ext <<_ACEOF
21321 cat confdefs.h >>conftest.$ac_ext
21322 cat >>conftest.$ac_ext <<_ACEOF
21323 /* end confdefs.h. */
21324 #include <$ac_header>
21326 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21327 case "(($ac_try" in
21328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21329 *) ac_try_echo=$ac_try;;
21331 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21332 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21334 grep -v '^ *+' conftest.er1 >conftest.err
21336 cat conftest.err >&5
21337 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21338 (exit $ac_status); } >/dev/null && {
21339 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21340 test ! -s conftest.err
21342 ac_header_preproc=yes
21344 echo "$as_me: failed program was
:" >&5
21345 sed 's/^/| /' conftest.$ac_ext >&5
21347 ac_header_preproc=no
21350 rm -f conftest.err conftest.$ac_ext
21351 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21352 echo "${ECHO_T}$ac_header_preproc" >&6; }
21354 # So? What about this header?
21355 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21357 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21358 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21359 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21360 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21361 ac_header_preproc=yes
21364 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21365 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21366 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21367 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21368 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21369 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21370 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21371 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21372 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21373 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21374 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21375 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21379 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21380 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21381 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21382 echo $ECHO_N "(cached
) $ECHO_C" >&6
21384 eval "$as_ac_Header=\
$ac_header_preproc"
21386 ac_res=`eval echo '${'$as_ac_Header'}'`
21387 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21388 echo "${ECHO_T}$ac_res" >&6; }
21391 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21392 cat >>confdefs.h <<_ACEOF
21393 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21409 for ac_header in krb.h
21411 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21412 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21413 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21414 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21415 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21416 echo $ECHO_N "(cached
) $ECHO_C" >&6
21418 ac_res=`eval echo '${'$as_ac_Header'}'`
21419 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21420 echo "${ECHO_T}$ac_res" >&6; }
21422 # Is the header compilable?
21423 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21424 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21425 cat >conftest.$ac_ext <<_ACEOF
21428 cat confdefs.h >>conftest.$ac_ext
21429 cat >>conftest.$ac_ext <<_ACEOF
21430 /* end confdefs.h. */
21431 $ac_includes_default
21432 #include <$ac_header>
21434 rm -f conftest.$ac_objext
21435 if { (ac_try="$ac_compile"
21436 case "(($ac_try" in
21437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21438 *) ac_try_echo=$ac_try;;
21440 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21441 (eval "$ac_compile") 2>conftest.er1
21443 grep -v '^ *+' conftest.er1 >conftest.err
21445 cat conftest.err >&5
21446 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21447 (exit $ac_status); } && {
21448 test -z "$ac_c_werror_flag" ||
21449 test ! -s conftest.err
21450 } && test -s conftest.$ac_objext; then
21451 ac_header_compiler=yes
21453 echo "$as_me: failed program was
:" >&5
21454 sed 's/^/| /' conftest.$ac_ext >&5
21456 ac_header_compiler=no
21459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21460 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21461 echo "${ECHO_T}$ac_header_compiler" >&6; }
21463 # Is the header present?
21464 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21465 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21466 cat >conftest.$ac_ext <<_ACEOF
21469 cat confdefs.h >>conftest.$ac_ext
21470 cat >>conftest.$ac_ext <<_ACEOF
21471 /* end confdefs.h. */
21472 #include <$ac_header>
21474 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21475 case "(($ac_try" in
21476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21477 *) ac_try_echo=$ac_try;;
21479 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21480 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21482 grep -v '^ *+' conftest.er1 >conftest.err
21484 cat conftest.err >&5
21485 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21486 (exit $ac_status); } >/dev/null && {
21487 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21488 test ! -s conftest.err
21490 ac_header_preproc=yes
21492 echo "$as_me: failed program was
:" >&5
21493 sed 's/^/| /' conftest.$ac_ext >&5
21495 ac_header_preproc=no
21498 rm -f conftest.err conftest.$ac_ext
21499 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21500 echo "${ECHO_T}$ac_header_preproc" >&6; }
21502 # So? What about this header?
21503 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21505 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21506 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21507 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21508 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21509 ac_header_preproc=yes
21512 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21513 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21514 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21515 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21516 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21517 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21518 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21519 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21520 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21521 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21522 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21523 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21527 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21528 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21529 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21530 echo $ECHO_N "(cached
) $ECHO_C" >&6
21532 eval "$as_ac_Header=\
$ac_header_preproc"
21534 ac_res=`eval echo '${'$as_ac_Header'}'`
21535 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21536 echo "${ECHO_T}$ac_res" >&6; }
21539 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21540 cat >>confdefs.h <<_ACEOF
21541 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21546 for ac_header in kerberosIV/krb.h
21548 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21549 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21550 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21551 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21552 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21553 echo $ECHO_N "(cached
) $ECHO_C" >&6
21555 ac_res=`eval echo '${'$as_ac_Header'}'`
21556 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21557 echo "${ECHO_T}$ac_res" >&6; }
21559 # Is the header compilable?
21560 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21561 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21562 cat >conftest.$ac_ext <<_ACEOF
21565 cat confdefs.h >>conftest.$ac_ext
21566 cat >>conftest.$ac_ext <<_ACEOF
21567 /* end confdefs.h. */
21568 $ac_includes_default
21569 #include <$ac_header>
21571 rm -f conftest.$ac_objext
21572 if { (ac_try="$ac_compile"
21573 case "(($ac_try" in
21574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21575 *) ac_try_echo=$ac_try;;
21577 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21578 (eval "$ac_compile") 2>conftest.er1
21580 grep -v '^ *+' conftest.er1 >conftest.err
21582 cat conftest.err >&5
21583 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21584 (exit $ac_status); } && {
21585 test -z "$ac_c_werror_flag" ||
21586 test ! -s conftest.err
21587 } && test -s conftest.$ac_objext; then
21588 ac_header_compiler=yes
21590 echo "$as_me: failed program was
:" >&5
21591 sed 's/^/| /' conftest.$ac_ext >&5
21593 ac_header_compiler=no
21596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21597 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21598 echo "${ECHO_T}$ac_header_compiler" >&6; }
21600 # Is the header present?
21601 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21602 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21603 cat >conftest.$ac_ext <<_ACEOF
21606 cat confdefs.h >>conftest.$ac_ext
21607 cat >>conftest.$ac_ext <<_ACEOF
21608 /* end confdefs.h. */
21609 #include <$ac_header>
21611 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21612 case "(($ac_try" in
21613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21614 *) ac_try_echo=$ac_try;;
21616 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21617 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21619 grep -v '^ *+' conftest.er1 >conftest.err
21621 cat conftest.err >&5
21622 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21623 (exit $ac_status); } >/dev/null && {
21624 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21625 test ! -s conftest.err
21627 ac_header_preproc=yes
21629 echo "$as_me: failed program was
:" >&5
21630 sed 's/^/| /' conftest.$ac_ext >&5
21632 ac_header_preproc=no
21635 rm -f conftest.err conftest.$ac_ext
21636 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21637 echo "${ECHO_T}$ac_header_preproc" >&6; }
21639 # So? What about this header?
21640 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21642 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21643 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21644 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21645 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21646 ac_header_preproc=yes
21649 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21650 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21651 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21652 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21653 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21654 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21655 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21656 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21657 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21658 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21659 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21660 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21664 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21665 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21666 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21667 echo $ECHO_N "(cached
) $ECHO_C" >&6
21669 eval "$as_ac_Header=\
$ac_header_preproc"
21671 ac_res=`eval echo '${'$as_ac_Header'}'`
21672 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21673 echo "${ECHO_T}$ac_res" >&6; }
21676 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21677 cat >>confdefs.h <<_ACEOF
21678 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21683 for ac_header in kerberos/krb.h
21685 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21686 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21687 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21688 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21689 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21690 echo $ECHO_N "(cached
) $ECHO_C" >&6
21692 ac_res=`eval echo '${'$as_ac_Header'}'`
21693 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21694 echo "${ECHO_T}$ac_res" >&6; }
21696 # Is the header compilable?
21697 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21698 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21699 cat >conftest.$ac_ext <<_ACEOF
21702 cat confdefs.h >>conftest.$ac_ext
21703 cat >>conftest.$ac_ext <<_ACEOF
21704 /* end confdefs.h. */
21705 $ac_includes_default
21706 #include <$ac_header>
21708 rm -f conftest.$ac_objext
21709 if { (ac_try="$ac_compile"
21710 case "(($ac_try" in
21711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21712 *) ac_try_echo=$ac_try;;
21714 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21715 (eval "$ac_compile") 2>conftest.er1
21717 grep -v '^ *+' conftest.er1 >conftest.err
21719 cat conftest.err >&5
21720 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21721 (exit $ac_status); } && {
21722 test -z "$ac_c_werror_flag" ||
21723 test ! -s conftest.err
21724 } && test -s conftest.$ac_objext; then
21725 ac_header_compiler=yes
21727 echo "$as_me: failed program was
:" >&5
21728 sed 's/^/| /' conftest.$ac_ext >&5
21730 ac_header_compiler=no
21733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21734 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21735 echo "${ECHO_T}$ac_header_compiler" >&6; }
21737 # Is the header present?
21738 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21739 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21740 cat >conftest.$ac_ext <<_ACEOF
21743 cat confdefs.h >>conftest.$ac_ext
21744 cat >>conftest.$ac_ext <<_ACEOF
21745 /* end confdefs.h. */
21746 #include <$ac_header>
21748 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21749 case "(($ac_try" in
21750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21751 *) ac_try_echo=$ac_try;;
21753 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21754 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21756 grep -v '^ *+' conftest.er1 >conftest.err
21758 cat conftest.err >&5
21759 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21760 (exit $ac_status); } >/dev/null && {
21761 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21762 test ! -s conftest.err
21764 ac_header_preproc=yes
21766 echo "$as_me: failed program was
:" >&5
21767 sed 's/^/| /' conftest.$ac_ext >&5
21769 ac_header_preproc=no
21772 rm -f conftest.err conftest.$ac_ext
21773 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21774 echo "${ECHO_T}$ac_header_preproc" >&6; }
21776 # So? What about this header?
21777 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21779 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21780 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21781 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21782 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21783 ac_header_preproc=yes
21786 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21787 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21788 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21789 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21790 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21791 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21792 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21793 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21794 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21795 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21796 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21797 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21801 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21802 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21803 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21804 echo $ECHO_N "(cached
) $ECHO_C" >&6
21806 eval "$as_ac_Header=\
$ac_header_preproc"
21808 ac_res=`eval echo '${'$as_ac_Header'}'`
21809 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21810 echo "${ECHO_T}$ac_res" >&6; }
21813 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21814 cat >>confdefs.h <<_ACEOF
21815 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21832 for ac_header in com_err.h
21834 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21835 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21836 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21837 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21838 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21839 echo $ECHO_N "(cached
) $ECHO_C" >&6
21841 ac_res=`eval echo '${'$as_ac_Header'}'`
21842 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21843 echo "${ECHO_T}$ac_res" >&6; }
21845 # Is the header compilable?
21846 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21847 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21848 cat >conftest.$ac_ext <<_ACEOF
21851 cat confdefs.h >>conftest.$ac_ext
21852 cat >>conftest.$ac_ext <<_ACEOF
21853 /* end confdefs.h. */
21854 $ac_includes_default
21855 #include <$ac_header>
21857 rm -f conftest.$ac_objext
21858 if { (ac_try="$ac_compile"
21859 case "(($ac_try" in
21860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21861 *) ac_try_echo=$ac_try;;
21863 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21864 (eval "$ac_compile") 2>conftest.er1
21866 grep -v '^ *+' conftest.er1 >conftest.err
21868 cat conftest.err >&5
21869 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21870 (exit $ac_status); } && {
21871 test -z "$ac_c_werror_flag" ||
21872 test ! -s conftest.err
21873 } && test -s conftest.$ac_objext; then
21874 ac_header_compiler=yes
21876 echo "$as_me: failed program was
:" >&5
21877 sed 's/^/| /' conftest.$ac_ext >&5
21879 ac_header_compiler=no
21882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21883 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21884 echo "${ECHO_T}$ac_header_compiler" >&6; }
21886 # Is the header present?
21887 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21888 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21889 cat >conftest.$ac_ext <<_ACEOF
21892 cat confdefs.h >>conftest.$ac_ext
21893 cat >>conftest.$ac_ext <<_ACEOF
21894 /* end confdefs.h. */
21895 #include <$ac_header>
21897 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21898 case "(($ac_try" in
21899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21900 *) ac_try_echo=$ac_try;;
21902 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21903 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21905 grep -v '^ *+' conftest.er1 >conftest.err
21907 cat conftest.err >&5
21908 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21909 (exit $ac_status); } >/dev/null && {
21910 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21911 test ! -s conftest.err
21913 ac_header_preproc=yes
21915 echo "$as_me: failed program was
:" >&5
21916 sed 's/^/| /' conftest.$ac_ext >&5
21918 ac_header_preproc=no
21921 rm -f conftest.err conftest.$ac_ext
21922 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21923 echo "${ECHO_T}$ac_header_preproc" >&6; }
21925 # So? What about this header?
21926 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21928 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21929 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21930 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21931 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21932 ac_header_preproc=yes
21935 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21936 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21937 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21938 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21939 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21940 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21941 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21942 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21943 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21944 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21945 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21946 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21950 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21951 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21952 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21953 echo $ECHO_N "(cached
) $ECHO_C" >&6
21955 eval "$as_ac_Header=\
$ac_header_preproc"
21957 ac_res=`eval echo '${'$as_ac_Header'}'`
21958 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21959 echo "${ECHO_T}$ac_res" >&6; }
21962 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21963 cat >>confdefs.h <<_ACEOF
21964 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21973 # Solaris requires -lintl if you want strerror (which calls dgettext)
21974 # to return localized messages.
21976 { echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
21977 echo $ECHO_N "checking
for dgettext
in -lintl...
$ECHO_C" >&6; }
21978 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21979 echo $ECHO_N "(cached
) $ECHO_C" >&6
21981 ac_check_lib_save_LIBS=$LIBS
21982 LIBS="-lintl $LIBS"
21983 cat >conftest.$ac_ext <<_ACEOF
21986 cat confdefs.h >>conftest.$ac_ext
21987 cat >>conftest.$ac_ext <<_ACEOF
21988 /* end confdefs.h. */
21990 /* Override any GCC internal prototype to avoid an error.
21991 Use char because int might match the return type of a GCC
21992 builtin and then its argument prototype would still apply. */
22000 return dgettext ();
22005 rm -f conftest.$ac_objext conftest$ac_exeext
22006 if { (ac_try="$ac_link"
22007 case "(($ac_try" in
22008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22009 *) ac_try_echo=$ac_try;;
22011 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22012 (eval "$ac_link") 2>conftest.er1
22014 grep -v '^ *+' conftest.er1 >conftest.err
22016 cat conftest.err >&5
22017 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22018 (exit $ac_status); } && {
22019 test -z "$ac_c_werror_flag" ||
22020 test ! -s conftest.err
22021 } && test -s conftest$ac_exeext &&
22022 $as_test_x conftest$ac_exeext; then
22023 ac_cv_lib_intl_dgettext=yes
22025 echo "$as_me: failed program was
:" >&5
22026 sed 's/^/| /' conftest.$ac_ext >&5
22028 ac_cv_lib_intl_dgettext=no
22031 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22032 conftest$ac_exeext conftest.$ac_ext
22033 LIBS=$ac_check_lib_save_LIBS
22035 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
22036 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
22037 if test $ac_cv_lib_intl_dgettext = yes; then
22038 cat >>confdefs.h <<_ACEOF
22039 #define HAVE_LIBINTL 1
22042 LIBS="-lintl $LIBS"
22047 { echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
22048 echo $ECHO_N "checking whether localtime caches TZ...
$ECHO_C" >&6; }
22049 if test "${emacs_cv_localtime_cache+set}" = set; then
22050 echo $ECHO_N "(cached
) $ECHO_C" >&6
22052 if test x$ac_cv_func_tzset = xyes; then
22053 if test "$cross_compiling" = yes; then
22054 # If we have tzset, assume the worst when cross-compiling.
22055 emacs_cv_localtime_cache=yes
22057 cat >conftest.$ac_ext <<_ACEOF
22060 cat confdefs.h >>conftest.$ac_ext
22061 cat >>conftest.$ac_ext <<_ACEOF
22062 /* end confdefs.h. */
22064 extern char **environ;
22068 for (to = from = environ; (*to = *from); from++)
22069 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
22072 char TZ_GMT0[] = "TZ
=GMT0
";
22073 char TZ_PST8[] = "TZ
=PST8
";
22076 time_t now = time ((time_t *) 0);
22077 int hour_GMT0, hour_unset;
22078 if (putenv (TZ_GMT0) != 0)
22080 hour_GMT0 = localtime (&now)->tm_hour;
22082 hour_unset = localtime (&now)->tm_hour;
22083 if (putenv (TZ_PST8) != 0)
22085 if (localtime (&now)->tm_hour == hour_GMT0)
22088 if (localtime (&now)->tm_hour != hour_unset)
22093 rm -f conftest$ac_exeext
22094 if { (ac_try="$ac_link"
22095 case "(($ac_try" in
22096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22097 *) ac_try_echo=$ac_try;;
22099 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22100 (eval "$ac_link") 2>&5
22102 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22103 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22104 { (case "(($ac_try" in
22105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22106 *) ac_try_echo=$ac_try;;
22108 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22109 (eval "$ac_try") 2>&5
22111 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22112 (exit $ac_status); }; }; then
22113 emacs_cv_localtime_cache=no
22115 echo "$as_me: program exited with status
$ac_status" >&5
22116 echo "$as_me: failed program was
:" >&5
22117 sed 's/^/| /' conftest.$ac_ext >&5
22119 ( exit $ac_status )
22120 emacs_cv_localtime_cache=yes
22122 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22127 # If we lack tzset, report that localtime does not cache TZ,
22128 # since we can't invalidate the cache if we don't have tzset.
22129 emacs_cv_localtime_cache=no
22132 { echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
22133 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
22134 if test $emacs_cv_localtime_cache = yes; then
22136 cat >>confdefs.h <<\_ACEOF
22137 #define LOCALTIME_CACHE 1
22142 if test "x
$HAVE_TIMEVAL" = xyes; then
22144 for ac_func in gettimeofday
22146 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
22147 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
22148 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
22149 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
22150 echo $ECHO_N "(cached
) $ECHO_C" >&6
22152 cat >conftest.$ac_ext <<_ACEOF
22155 cat confdefs.h >>conftest.$ac_ext
22156 cat >>conftest.$ac_ext <<_ACEOF
22157 /* end confdefs.h. */
22158 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22159 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22160 #define $ac_func innocuous_$ac_func
22162 /* System header to define __stub macros and hopefully few prototypes,
22163 which can conflict with char $ac_func (); below.
22164 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22165 <limits.h> exists even on freestanding compilers. */
22168 # include <limits.h>
22170 # include <assert.h>
22175 /* Override any GCC internal prototype to avoid an error.
22176 Use char because int might match the return type of a GCC
22177 builtin and then its argument prototype would still apply. */
22182 /* The GNU C library defines this for functions which it implements
22183 to always fail with ENOSYS. Some functions are actually named
22184 something starting with __ and the normal name is an alias. */
22185 #if defined __stub_$ac_func || defined __stub___$ac_func
22192 return $ac_func ();
22197 rm -f conftest.$ac_objext conftest$ac_exeext
22198 if { (ac_try="$ac_link"
22199 case "(($ac_try" in
22200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22201 *) ac_try_echo=$ac_try;;
22203 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22204 (eval "$ac_link") 2>conftest.er1
22206 grep -v '^ *+' conftest.er1 >conftest.err
22208 cat conftest.err >&5
22209 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22210 (exit $ac_status); } && {
22211 test -z "$ac_c_werror_flag" ||
22212 test ! -s conftest.err
22213 } && test -s conftest$ac_exeext &&
22214 $as_test_x conftest$ac_exeext; then
22215 eval "$as_ac_var=yes"
22217 echo "$as_me: failed program was
:" >&5
22218 sed 's/^/| /' conftest.$ac_ext >&5
22220 eval "$as_ac_var=no
"
22223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22224 conftest$ac_exeext conftest.$ac_ext
22226 ac_res=`eval echo '${'$as_ac_var'}'`
22227 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22228 echo "${ECHO_T}$ac_res" >&6; }
22229 if test `eval echo '${'$as_ac_var'}'` = yes; then
22230 cat >>confdefs.h <<_ACEOF
22231 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
22237 if test $ac_cv_func_gettimeofday = yes; then
22238 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
22239 echo $ECHO_N "checking whether gettimeofday can accept two arguments...
$ECHO_C" >&6; }
22240 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22241 echo $ECHO_N "(cached
) $ECHO_C" >&6
22243 cat >conftest.$ac_ext <<_ACEOF
22246 cat confdefs.h >>conftest.$ac_ext
22247 cat >>conftest.$ac_ext <<_ACEOF
22248 /* end confdefs.h. */
22250 #ifdef TIME_WITH_SYS_TIME
22251 #include <sys/time.h>
22254 #ifdef HAVE_SYS_TIME_H
22255 #include <sys/time.h>
22263 struct timeval time;
22264 gettimeofday (&time, 0);
22269 rm -f conftest.$ac_objext
22270 if { (ac_try="$ac_compile"
22271 case "(($ac_try" in
22272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22273 *) ac_try_echo=$ac_try;;
22275 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22276 (eval "$ac_compile") 2>conftest.er1
22278 grep -v '^ *+' conftest.er1 >conftest.err
22280 cat conftest.err >&5
22281 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22282 (exit $ac_status); } && {
22283 test -z "$ac_c_werror_flag" ||
22284 test ! -s conftest.err
22285 } && test -s conftest.$ac_objext; then
22286 emacs_cv_gettimeofday_two_arguments=yes
22288 echo "$as_me: failed program was
:" >&5
22289 sed 's/^/| /' conftest.$ac_ext >&5
22291 emacs_cv_gettimeofday_two_arguments=no
22294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22296 { echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
22297 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22298 if test $emacs_cv_gettimeofday_two_arguments = no; then
22300 cat >>confdefs.h <<\_ACEOF
22301 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22309 { echo "$as_me:$LINENO: checking
for socket
" >&5
22310 echo $ECHO_N "checking
for socket...
$ECHO_C" >&6; }
22311 if test "${ac_cv_func_socket+set}" = set; then
22312 echo $ECHO_N "(cached
) $ECHO_C" >&6
22314 cat >conftest.$ac_ext <<_ACEOF
22317 cat confdefs.h >>conftest.$ac_ext
22318 cat >>conftest.$ac_ext <<_ACEOF
22319 /* end confdefs.h. */
22320 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22321 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22322 #define socket innocuous_socket
22324 /* System header to define __stub macros and hopefully few prototypes,
22325 which can conflict with char socket (); below.
22326 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22327 <limits.h> exists even on freestanding compilers. */
22330 # include <limits.h>
22332 # include <assert.h>
22337 /* Override any GCC internal prototype to avoid an error.
22338 Use char because int might match the return type of a GCC
22339 builtin and then its argument prototype would still apply. */
22344 /* The GNU C library defines this for functions which it implements
22345 to always fail with ENOSYS. Some functions are actually named
22346 something starting with __ and the normal name is an alias. */
22347 #if defined __stub_socket || defined __stub___socket
22359 rm -f conftest.$ac_objext conftest$ac_exeext
22360 if { (ac_try="$ac_link"
22361 case "(($ac_try" in
22362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22363 *) ac_try_echo=$ac_try;;
22365 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22366 (eval "$ac_link") 2>conftest.er1
22368 grep -v '^ *+' conftest.er1 >conftest.err
22370 cat conftest.err >&5
22371 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22372 (exit $ac_status); } && {
22373 test -z "$ac_c_werror_flag" ||
22374 test ! -s conftest.err
22375 } && test -s conftest$ac_exeext &&
22376 $as_test_x conftest$ac_exeext; then
22377 ac_cv_func_socket=yes
22379 echo "$as_me: failed program was
:" >&5
22380 sed 's/^/| /' conftest.$ac_ext >&5
22382 ac_cv_func_socket=no
22385 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22386 conftest$ac_exeext conftest.$ac_ext
22388 { echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
22389 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22390 if test $ac_cv_func_socket = yes; then
22396 if test $ok_so_far = yes; then
22397 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22398 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
22399 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
22400 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22401 echo $ECHO_N "(cached
) $ECHO_C" >&6
22403 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
22404 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22406 # Is the header compilable?
22407 { echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
22408 echo $ECHO_N "checking netinet
/in.h usability...
$ECHO_C" >&6; }
22409 cat >conftest.$ac_ext <<_ACEOF
22412 cat confdefs.h >>conftest.$ac_ext
22413 cat >>conftest.$ac_ext <<_ACEOF
22414 /* end confdefs.h. */
22415 $ac_includes_default
22416 #include <netinet/in.h>
22418 rm -f conftest.$ac_objext
22419 if { (ac_try="$ac_compile"
22420 case "(($ac_try" in
22421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22422 *) ac_try_echo=$ac_try;;
22424 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22425 (eval "$ac_compile") 2>conftest.er1
22427 grep -v '^ *+' conftest.er1 >conftest.err
22429 cat conftest.err >&5
22430 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22431 (exit $ac_status); } && {
22432 test -z "$ac_c_werror_flag" ||
22433 test ! -s conftest.err
22434 } && test -s conftest.$ac_objext; then
22435 ac_header_compiler=yes
22437 echo "$as_me: failed program was
:" >&5
22438 sed 's/^/| /' conftest.$ac_ext >&5
22440 ac_header_compiler=no
22443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22444 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22445 echo "${ECHO_T}$ac_header_compiler" >&6; }
22447 # Is the header present?
22448 { echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
22449 echo $ECHO_N "checking netinet
/in.h presence...
$ECHO_C" >&6; }
22450 cat >conftest.$ac_ext <<_ACEOF
22453 cat confdefs.h >>conftest.$ac_ext
22454 cat >>conftest.$ac_ext <<_ACEOF
22455 /* end confdefs.h. */
22456 #include <netinet/in.h>
22458 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22459 case "(($ac_try" in
22460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22461 *) ac_try_echo=$ac_try;;
22463 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22464 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22466 grep -v '^ *+' conftest.er1 >conftest.err
22468 cat conftest.err >&5
22469 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22470 (exit $ac_status); } >/dev/null && {
22471 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22472 test ! -s conftest.err
22474 ac_header_preproc=yes
22476 echo "$as_me: failed program was
:" >&5
22477 sed 's/^/| /' conftest.$ac_ext >&5
22479 ac_header_preproc=no
22482 rm -f conftest.err conftest.$ac_ext
22483 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22484 echo "${ECHO_T}$ac_header_preproc" >&6; }
22486 # So? What about this header?
22487 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22489 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22490 echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22491 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
22492 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
22493 ac_header_preproc=yes
22496 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
22497 echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
22498 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
22499 echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
22500 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
22501 echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
22502 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22503 echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22504 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
22505 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
22506 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
22507 echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
22511 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
22512 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
22513 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22514 echo $ECHO_N "(cached
) $ECHO_C" >&6
22516 ac_cv_header_netinet_in_h=$ac_header_preproc
22518 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
22519 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22522 if test $ac_cv_header_netinet_in_h = yes; then
22530 if test $ok_so_far = yes; then
22531 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22532 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22533 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22534 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22535 echo $ECHO_N "(cached
) $ECHO_C" >&6
22537 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22538 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22540 # Is the header compilable?
22541 { echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
22542 echo $ECHO_N "checking arpa
/inet.h usability...
$ECHO_C" >&6; }
22543 cat >conftest.$ac_ext <<_ACEOF
22546 cat confdefs.h >>conftest.$ac_ext
22547 cat >>conftest.$ac_ext <<_ACEOF
22548 /* end confdefs.h. */
22549 $ac_includes_default
22550 #include <arpa/inet.h>
22552 rm -f conftest.$ac_objext
22553 if { (ac_try="$ac_compile"
22554 case "(($ac_try" in
22555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22556 *) ac_try_echo=$ac_try;;
22558 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22559 (eval "$ac_compile") 2>conftest.er1
22561 grep -v '^ *+' conftest.er1 >conftest.err
22563 cat conftest.err >&5
22564 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22565 (exit $ac_status); } && {
22566 test -z "$ac_c_werror_flag" ||
22567 test ! -s conftest.err
22568 } && test -s conftest.$ac_objext; then
22569 ac_header_compiler=yes
22571 echo "$as_me: failed program was
:" >&5
22572 sed 's/^/| /' conftest.$ac_ext >&5
22574 ac_header_compiler=no
22577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22578 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22579 echo "${ECHO_T}$ac_header_compiler" >&6; }
22581 # Is the header present?
22582 { echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
22583 echo $ECHO_N "checking arpa
/inet.h presence...
$ECHO_C" >&6; }
22584 cat >conftest.$ac_ext <<_ACEOF
22587 cat confdefs.h >>conftest.$ac_ext
22588 cat >>conftest.$ac_ext <<_ACEOF
22589 /* end confdefs.h. */
22590 #include <arpa/inet.h>
22592 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22593 case "(($ac_try" in
22594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22595 *) ac_try_echo=$ac_try;;
22597 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22598 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22600 grep -v '^ *+' conftest.er1 >conftest.err
22602 cat conftest.err >&5
22603 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22604 (exit $ac_status); } >/dev/null && {
22605 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22606 test ! -s conftest.err
22608 ac_header_preproc=yes
22610 echo "$as_me: failed program was
:" >&5
22611 sed 's/^/| /' conftest.$ac_ext >&5
22613 ac_header_preproc=no
22616 rm -f conftest.err conftest.$ac_ext
22617 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22618 echo "${ECHO_T}$ac_header_preproc" >&6; }
22620 # So? What about this header?
22621 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22623 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22624 echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22625 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
22626 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
22627 ac_header_preproc=yes
22630 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
22631 echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
22632 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
22633 echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
22634 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
22635 echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
22636 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22637 echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22638 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
22639 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
22640 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
22641 echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
22645 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22646 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22647 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22648 echo $ECHO_N "(cached
) $ECHO_C" >&6
22650 ac_cv_header_arpa_inet_h=$ac_header_preproc
22652 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22653 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22656 if test $ac_cv_header_arpa_inet_h = yes; then
22664 if test $ok_so_far = yes; then
22666 cat >>confdefs.h <<\_ACEOF
22667 #define HAVE_INET_SOCKETS 1
22673 for ac_header in sys/ioctl.h
22675 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22676 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22677 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22678 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22679 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22680 echo $ECHO_N "(cached
) $ECHO_C" >&6
22682 ac_res=`eval echo '${'$as_ac_Header'}'`
22683 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22684 echo "${ECHO_T}$ac_res" >&6; }
22686 # Is the header compilable?
22687 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22688 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22689 cat >conftest.$ac_ext <<_ACEOF
22692 cat confdefs.h >>conftest.$ac_ext
22693 cat >>conftest.$ac_ext <<_ACEOF
22694 /* end confdefs.h. */
22695 $ac_includes_default
22696 #include <$ac_header>
22698 rm -f conftest.$ac_objext
22699 if { (ac_try="$ac_compile"
22700 case "(($ac_try" in
22701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22702 *) ac_try_echo=$ac_try;;
22704 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22705 (eval "$ac_compile") 2>conftest.er1
22707 grep -v '^ *+' conftest.er1 >conftest.err
22709 cat conftest.err >&5
22710 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22711 (exit $ac_status); } && {
22712 test -z "$ac_c_werror_flag" ||
22713 test ! -s conftest.err
22714 } && test -s conftest.$ac_objext; then
22715 ac_header_compiler=yes
22717 echo "$as_me: failed program was
:" >&5
22718 sed 's/^/| /' conftest.$ac_ext >&5
22720 ac_header_compiler=no
22723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22724 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22725 echo "${ECHO_T}$ac_header_compiler" >&6; }
22727 # Is the header present?
22728 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22729 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22730 cat >conftest.$ac_ext <<_ACEOF
22733 cat confdefs.h >>conftest.$ac_ext
22734 cat >>conftest.$ac_ext <<_ACEOF
22735 /* end confdefs.h. */
22736 #include <$ac_header>
22738 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22739 case "(($ac_try" in
22740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22741 *) ac_try_echo=$ac_try;;
22743 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22744 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22746 grep -v '^ *+' conftest.er1 >conftest.err
22748 cat conftest.err >&5
22749 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22750 (exit $ac_status); } >/dev/null && {
22751 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22752 test ! -s conftest.err
22754 ac_header_preproc=yes
22756 echo "$as_me: failed program was
:" >&5
22757 sed 's/^/| /' conftest.$ac_ext >&5
22759 ac_header_preproc=no
22762 rm -f conftest.err conftest.$ac_ext
22763 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22764 echo "${ECHO_T}$ac_header_preproc" >&6; }
22766 # So? What about this header?
22767 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22769 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22770 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22771 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22772 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22773 ac_header_preproc=yes
22776 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22777 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22778 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22779 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22780 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22781 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22782 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22783 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22784 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22785 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22786 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22787 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22791 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22792 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22793 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22794 echo $ECHO_N "(cached
) $ECHO_C" >&6
22796 eval "$as_ac_Header=\
$ac_header_preproc"
22798 ac_res=`eval echo '${'$as_ac_Header'}'`
22799 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22800 echo "${ECHO_T}$ac_res" >&6; }
22803 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22804 cat >>confdefs.h <<_ACEOF
22805 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22813 if test -f /usr/lpp/X11/bin/smt.exp; then
22815 cat >>confdefs.h <<\_ACEOF
22816 #define HAVE_AIX_SMT_EXP 1
22821 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
22822 echo $ECHO_N "checking whether system supports dynamic ptys...
$ECHO_C" >&6; }
22823 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22824 { echo "$as_me:$LINENO: result
: yes" >&5
22825 echo "${ECHO_T}yes" >&6; }
22827 cat >>confdefs.h <<\_ACEOF
22828 #define HAVE_DEV_PTMX 1
22832 { echo "$as_me:$LINENO: result
: no
" >&5
22833 echo "${ECHO_T}no
" >&6; }
22836 { echo "$as_me:$LINENO: checking
for pid_t
" >&5
22837 echo $ECHO_N "checking
for pid_t...
$ECHO_C" >&6; }
22838 if test "${ac_cv_type_pid_t+set}" = set; then
22839 echo $ECHO_N "(cached
) $ECHO_C" >&6
22841 cat >conftest.$ac_ext <<_ACEOF
22844 cat confdefs.h >>conftest.$ac_ext
22845 cat >>conftest.$ac_ext <<_ACEOF
22846 /* end confdefs.h. */
22847 $ac_includes_default
22848 typedef pid_t ac__type_new_;
22852 if ((ac__type_new_ *) 0)
22854 if (sizeof (ac__type_new_))
22860 rm -f conftest.$ac_objext
22861 if { (ac_try="$ac_compile"
22862 case "(($ac_try" in
22863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22864 *) ac_try_echo=$ac_try;;
22866 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22867 (eval "$ac_compile") 2>conftest.er1
22869 grep -v '^ *+' conftest.er1 >conftest.err
22871 cat conftest.err >&5
22872 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22873 (exit $ac_status); } && {
22874 test -z "$ac_c_werror_flag" ||
22875 test ! -s conftest.err
22876 } && test -s conftest.$ac_objext; then
22877 ac_cv_type_pid_t=yes
22879 echo "$as_me: failed program was
:" >&5
22880 sed 's/^/| /' conftest.$ac_ext >&5
22882 ac_cv_type_pid_t=no
22885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22887 { echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
22888 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22889 if test $ac_cv_type_pid_t = yes; then
22893 cat >>confdefs.h <<_ACEOF
22900 for ac_header in vfork.h
22902 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22903 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22904 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22905 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22906 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22907 echo $ECHO_N "(cached
) $ECHO_C" >&6
22909 ac_res=`eval echo '${'$as_ac_Header'}'`
22910 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22911 echo "${ECHO_T}$ac_res" >&6; }
22913 # Is the header compilable?
22914 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22915 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22916 cat >conftest.$ac_ext <<_ACEOF
22919 cat confdefs.h >>conftest.$ac_ext
22920 cat >>conftest.$ac_ext <<_ACEOF
22921 /* end confdefs.h. */
22922 $ac_includes_default
22923 #include <$ac_header>
22925 rm -f conftest.$ac_objext
22926 if { (ac_try="$ac_compile"
22927 case "(($ac_try" in
22928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22929 *) ac_try_echo=$ac_try;;
22931 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22932 (eval "$ac_compile") 2>conftest.er1
22934 grep -v '^ *+' conftest.er1 >conftest.err
22936 cat conftest.err >&5
22937 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22938 (exit $ac_status); } && {
22939 test -z "$ac_c_werror_flag" ||
22940 test ! -s conftest.err
22941 } && test -s conftest.$ac_objext; then
22942 ac_header_compiler=yes
22944 echo "$as_me: failed program was
:" >&5
22945 sed 's/^/| /' conftest.$ac_ext >&5
22947 ac_header_compiler=no
22950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22951 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22952 echo "${ECHO_T}$ac_header_compiler" >&6; }
22954 # Is the header present?
22955 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22956 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22957 cat >conftest.$ac_ext <<_ACEOF
22960 cat confdefs.h >>conftest.$ac_ext
22961 cat >>conftest.$ac_ext <<_ACEOF
22962 /* end confdefs.h. */
22963 #include <$ac_header>
22965 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22966 case "(($ac_try" in
22967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22968 *) ac_try_echo=$ac_try;;
22970 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22971 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22973 grep -v '^ *+' conftest.er1 >conftest.err
22975 cat conftest.err >&5
22976 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22977 (exit $ac_status); } >/dev/null && {
22978 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22979 test ! -s conftest.err
22981 ac_header_preproc=yes
22983 echo "$as_me: failed program was
:" >&5
22984 sed 's/^/| /' conftest.$ac_ext >&5
22986 ac_header_preproc=no
22989 rm -f conftest.err conftest.$ac_ext
22990 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22991 echo "${ECHO_T}$ac_header_preproc" >&6; }
22993 # So? What about this header?
22994 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22996 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22997 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22998 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22999 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23000 ac_header_preproc=yes
23003 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23004 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23005 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23006 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23007 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23008 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23009 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23010 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23011 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23012 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23013 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23014 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23018 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
23019 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
23020 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23021 echo $ECHO_N "(cached
) $ECHO_C" >&6
23023 eval "$as_ac_Header=\
$ac_header_preproc"
23025 ac_res=`eval echo '${'$as_ac_Header'}'`
23026 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23027 echo "${ECHO_T}$ac_res" >&6; }
23030 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23031 cat >>confdefs.h <<_ACEOF
23032 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23041 for ac_func in fork vfork
23043 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
23044 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
23045 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
23046 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
23047 echo $ECHO_N "(cached
) $ECHO_C" >&6
23049 cat >conftest.$ac_ext <<_ACEOF
23052 cat confdefs.h >>conftest.$ac_ext
23053 cat >>conftest.$ac_ext <<_ACEOF
23054 /* end confdefs.h. */
23055 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23056 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23057 #define $ac_func innocuous_$ac_func
23059 /* System header to define __stub macros and hopefully few prototypes,
23060 which can conflict with char $ac_func (); below.
23061 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23062 <limits.h> exists even on freestanding compilers. */
23065 # include <limits.h>
23067 # include <assert.h>
23072 /* Override any GCC internal prototype to avoid an error.
23073 Use char because int might match the return type of a GCC
23074 builtin and then its argument prototype would still apply. */
23079 /* The GNU C library defines this for functions which it implements
23080 to always fail with ENOSYS. Some functions are actually named
23081 something starting with __ and the normal name is an alias. */
23082 #if defined __stub_$ac_func || defined __stub___$ac_func
23089 return $ac_func ();
23094 rm -f conftest.$ac_objext conftest$ac_exeext
23095 if { (ac_try="$ac_link"
23096 case "(($ac_try" in
23097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23098 *) ac_try_echo=$ac_try;;
23100 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23101 (eval "$ac_link") 2>conftest.er1
23103 grep -v '^ *+' conftest.er1 >conftest.err
23105 cat conftest.err >&5
23106 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23107 (exit $ac_status); } && {
23108 test -z "$ac_c_werror_flag" ||
23109 test ! -s conftest.err
23110 } && test -s conftest$ac_exeext &&
23111 $as_test_x conftest$ac_exeext; then
23112 eval "$as_ac_var=yes"
23114 echo "$as_me: failed program was
:" >&5
23115 sed 's/^/| /' conftest.$ac_ext >&5
23117 eval "$as_ac_var=no
"
23120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23121 conftest$ac_exeext conftest.$ac_ext
23123 ac_res=`eval echo '${'$as_ac_var'}'`
23124 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23125 echo "${ECHO_T}$ac_res" >&6; }
23126 if test `eval echo '${'$as_ac_var'}'` = yes; then
23127 cat >>confdefs.h <<_ACEOF
23128 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
23134 if test "x
$ac_cv_func_fork" = xyes; then
23135 { echo "$as_me:$LINENO: checking
for working fork
" >&5
23136 echo $ECHO_N "checking
for working fork...
$ECHO_C" >&6; }
23137 if test "${ac_cv_func_fork_works+set}" = set; then
23138 echo $ECHO_N "(cached
) $ECHO_C" >&6
23140 if test "$cross_compiling" = yes; then
23141 ac_cv_func_fork_works=cross
23143 cat >conftest.$ac_ext <<_ACEOF
23146 cat confdefs.h >>conftest.$ac_ext
23147 cat >>conftest.$ac_ext <<_ACEOF
23148 /* end confdefs.h. */
23149 $ac_includes_default
23154 /* By Ruediger Kuhlmann. */
23155 return fork () < 0;
23161 rm -f conftest$ac_exeext
23162 if { (ac_try="$ac_link"
23163 case "(($ac_try" in
23164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23165 *) ac_try_echo=$ac_try;;
23167 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23168 (eval "$ac_link") 2>&5
23170 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23171 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23172 { (case "(($ac_try" in
23173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23174 *) ac_try_echo=$ac_try;;
23176 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23177 (eval "$ac_try") 2>&5
23179 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23180 (exit $ac_status); }; }; then
23181 ac_cv_func_fork_works=yes
23183 echo "$as_me: program exited with status
$ac_status" >&5
23184 echo "$as_me: failed program was
:" >&5
23185 sed 's/^/| /' conftest.$ac_ext >&5
23187 ( exit $ac_status )
23188 ac_cv_func_fork_works=no
23190 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23195 { echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
23196 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23199 ac_cv_func_fork_works=$ac_cv_func_fork
23201 if test "x
$ac_cv_func_fork_works" = xcross; then
23203 *-*-amigaos* | *-*-msdosdjgpp*)
23204 # Override, as these systems have only a dummy fork() stub
23205 ac_cv_func_fork_works=no
23208 ac_cv_func_fork_works=yes
23211 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
23212 echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
23214 ac_cv_func_vfork_works=$ac_cv_func_vfork
23215 if test "x
$ac_cv_func_vfork" = xyes; then
23216 { echo "$as_me:$LINENO: checking
for working vfork
" >&5
23217 echo $ECHO_N "checking
for working vfork...
$ECHO_C" >&6; }
23218 if test "${ac_cv_func_vfork_works+set}" = set; then
23219 echo $ECHO_N "(cached
) $ECHO_C" >&6
23221 if test "$cross_compiling" = yes; then
23222 ac_cv_func_vfork_works=cross
23224 cat >conftest.$ac_ext <<_ACEOF
23227 cat confdefs.h >>conftest.$ac_ext
23228 cat >>conftest.$ac_ext <<_ACEOF
23229 /* end confdefs.h. */
23230 /* Thanks to Paul Eggert for this test. */
23231 $ac_includes_default
23232 #include <sys/wait.h>
23233 #ifdef HAVE_VFORK_H
23234 # include <vfork.h>
23236 /* On some sparc systems, changes by the child to local and incoming
23237 argument registers are propagated back to the parent. The compiler
23238 is told about this with #include <vfork.h>, but some compilers
23239 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23240 static variable whose address is put into a register that is
23241 clobbered by the vfork. */
23244 sparc_address_test (int arg)
23246 sparc_address_test (arg) int arg;
23249 static pid_t child;
23267 pid_t parent = getpid ();
23270 sparc_address_test (0);
23275 /* Here is another test for sparc vfork register problems. This
23276 test uses lots of local variables, at least as many local
23277 variables as main has allocated so far including compiler
23278 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23279 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23280 reuse the register of parent for one of the local variables,
23281 since it will think that parent can't possibly be used any more
23282 in this routine. Assigning to the local variable will thus
23283 munge parent in the parent process. */
23285 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23286 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23287 /* Convince the compiler that p..p7 are live; otherwise, it might
23288 use the same hardware register for all 8 local variables. */
23289 if (p != p1 || p != p2 || p != p3 || p != p4
23290 || p != p5 || p != p6 || p != p7)
23293 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23294 from child file descriptors. If the child closes a descriptor
23295 before it execs or exits, this munges the parent's descriptor
23296 as well. Test for this by closing stdout in the child. */
23297 _exit(close(fileno(stdout)) != 0);
23302 while (wait(&status) != child)
23305 /* Was there some problem with vforking? */
23308 /* Did the child fail? (This shouldn't happen.) */
23311 /* Did the vfork/compiler bug occur? */
23312 || parent != getpid()
23314 /* Did the file descriptor bug occur? */
23315 || fstat(fileno(stdout), &st) != 0
23320 rm -f conftest$ac_exeext
23321 if { (ac_try="$ac_link"
23322 case "(($ac_try" in
23323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23324 *) ac_try_echo=$ac_try;;
23326 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23327 (eval "$ac_link") 2>&5
23329 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23330 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23331 { (case "(($ac_try" in
23332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23333 *) ac_try_echo=$ac_try;;
23335 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23336 (eval "$ac_try") 2>&5
23338 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23339 (exit $ac_status); }; }; then
23340 ac_cv_func_vfork_works=yes
23342 echo "$as_me: program exited with status
$ac_status" >&5
23343 echo "$as_me: failed program was
:" >&5
23344 sed 's/^/| /' conftest.$ac_ext >&5
23346 ( exit $ac_status )
23347 ac_cv_func_vfork_works=no
23349 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23354 { echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
23355 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23358 if test "x
$ac_cv_func_fork_works" = xcross; then
23359 ac_cv_func_vfork_works=$ac_cv_func_vfork
23360 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
23361 echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
23364 if test "x
$ac_cv_func_vfork_works" = xyes; then
23366 cat >>confdefs.h <<\_ACEOF
23367 #define HAVE_WORKING_VFORK 1
23372 cat >>confdefs.h <<\_ACEOF
23377 if test "x
$ac_cv_func_fork_works" = xyes; then
23379 cat >>confdefs.h <<\_ACEOF
23380 #define HAVE_WORKING_FORK 1
23386 { echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
23387 echo $ECHO_N "checking
for nl_langinfo and CODESET...
$ECHO_C" >&6; }
23388 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23389 echo $ECHO_N "(cached
) $ECHO_C" >&6
23391 cat >conftest.$ac_ext <<_ACEOF
23394 cat confdefs.h >>conftest.$ac_ext
23395 cat >>conftest.$ac_ext <<_ACEOF
23396 /* end confdefs.h. */
23397 #include <langinfo.h>
23401 char* cs = nl_langinfo(CODESET);
23406 rm -f conftest.$ac_objext conftest$ac_exeext
23407 if { (ac_try="$ac_link"
23408 case "(($ac_try" in
23409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23410 *) ac_try_echo=$ac_try;;
23412 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23413 (eval "$ac_link") 2>conftest.er1
23415 grep -v '^ *+' conftest.er1 >conftest.err
23417 cat conftest.err >&5
23418 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23419 (exit $ac_status); } && {
23420 test -z "$ac_c_werror_flag" ||
23421 test ! -s conftest.err
23422 } && test -s conftest$ac_exeext &&
23423 $as_test_x conftest$ac_exeext; then
23424 emacs_cv_langinfo_codeset=yes
23426 echo "$as_me: failed program was
:" >&5
23427 sed 's/^/| /' conftest.$ac_ext >&5
23429 emacs_cv_langinfo_codeset=no
23432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23433 conftest$ac_exeext conftest.$ac_ext
23436 { echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
23437 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23438 if test $emacs_cv_langinfo_codeset = yes; then
23440 cat >>confdefs.h <<\_ACEOF
23441 #define HAVE_LANGINFO_CODESET 1
23446 { echo "$as_me:$LINENO: checking
for size_t
" >&5
23447 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
23448 if test "${ac_cv_type_size_t+set}" = set; then
23449 echo $ECHO_N "(cached
) $ECHO_C" >&6
23451 cat >conftest.$ac_ext <<_ACEOF
23454 cat confdefs.h >>conftest.$ac_ext
23455 cat >>conftest.$ac_ext <<_ACEOF
23456 /* end confdefs.h. */
23457 $ac_includes_default
23458 typedef size_t ac__type_new_;
23462 if ((ac__type_new_ *) 0)
23464 if (sizeof (ac__type_new_))
23470 rm -f conftest.$ac_objext
23471 if { (ac_try="$ac_compile"
23472 case "(($ac_try" in
23473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23474 *) ac_try_echo=$ac_try;;
23476 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23477 (eval "$ac_compile") 2>conftest.er1
23479 grep -v '^ *+' conftest.er1 >conftest.err
23481 cat conftest.err >&5
23482 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23483 (exit $ac_status); } && {
23484 test -z "$ac_c_werror_flag" ||
23485 test ! -s conftest.err
23486 } && test -s conftest.$ac_objext; then
23487 ac_cv_type_size_t=yes
23489 echo "$as_me: failed program was
:" >&5
23490 sed 's/^/| /' conftest.$ac_ext >&5
23492 ac_cv_type_size_t=no
23495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23497 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
23498 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23499 if test $ac_cv_type_size_t = yes; then
23501 cat >>confdefs.h <<_ACEOF
23502 #define HAVE_SIZE_T 1
23509 { echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
23510 echo $ECHO_N "checking
for mbstate_t...
$ECHO_C" >&6; }
23511 if test "${ac_cv_type_mbstate_t+set}" = set; then
23512 echo $ECHO_N "(cached
) $ECHO_C" >&6
23514 cat >conftest.$ac_ext <<_ACEOF
23517 cat confdefs.h >>conftest.$ac_ext
23518 cat >>conftest.$ac_ext <<_ACEOF
23519 /* end confdefs.h. */
23520 $ac_includes_default
23521 # include <wchar.h>
23525 mbstate_t x; return sizeof x;
23530 rm -f conftest.$ac_objext
23531 if { (ac_try="$ac_compile"
23532 case "(($ac_try" in
23533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23534 *) ac_try_echo=$ac_try;;
23536 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23537 (eval "$ac_compile") 2>conftest.er1
23539 grep -v '^ *+' conftest.er1 >conftest.err
23541 cat conftest.err >&5
23542 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23543 (exit $ac_status); } && {
23544 test -z "$ac_c_werror_flag" ||
23545 test ! -s conftest.err
23546 } && test -s conftest.$ac_objext; then
23547 ac_cv_type_mbstate_t=yes
23549 echo "$as_me: failed program was
:" >&5
23550 sed 's/^/| /' conftest.$ac_ext >&5
23552 ac_cv_type_mbstate_t=no
23555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23557 { echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
23558 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23559 if test $ac_cv_type_mbstate_t = yes; then
23561 cat >>confdefs.h <<\_ACEOF
23562 #define HAVE_MBSTATE_T 1
23567 cat >>confdefs.h <<\_ACEOF
23568 #define mbstate_t int
23573 { echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
23574 echo $ECHO_N "checking
for C restrict keyword...
$ECHO_C" >&6; }
23575 if test "${emacs_cv_c_restrict+set}" = set; then
23576 echo $ECHO_N "(cached
) $ECHO_C" >&6
23578 cat >conftest.$ac_ext <<_ACEOF
23581 cat confdefs.h >>conftest.$ac_ext
23582 cat >>conftest.$ac_ext <<_ACEOF
23583 /* end confdefs.h. */
23584 void fred (int *restrict x);
23593 rm -f conftest.$ac_objext
23594 if { (ac_try="$ac_compile"
23595 case "(($ac_try" in
23596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23597 *) ac_try_echo=$ac_try;;
23599 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23600 (eval "$ac_compile") 2>conftest.er1
23602 grep -v '^ *+' conftest.er1 >conftest.err
23604 cat conftest.err >&5
23605 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23606 (exit $ac_status); } && {
23607 test -z "$ac_c_werror_flag" ||
23608 test ! -s conftest.err
23609 } && test -s conftest.$ac_objext; then
23610 emacs_cv_c_restrict=yes
23612 echo "$as_me: failed program was
:" >&5
23613 sed 's/^/| /' conftest.$ac_ext >&5
23615 cat >conftest.$ac_ext <<_ACEOF
23618 cat confdefs.h >>conftest.$ac_ext
23619 cat >>conftest.$ac_ext <<_ACEOF
23620 /* end confdefs.h. */
23621 void fred (int *__restrict x);
23630 rm -f conftest.$ac_objext
23631 if { (ac_try="$ac_compile"
23632 case "(($ac_try" in
23633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23634 *) ac_try_echo=$ac_try;;
23636 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23637 (eval "$ac_compile") 2>conftest.er1
23639 grep -v '^ *+' conftest.er1 >conftest.err
23641 cat conftest.err >&5
23642 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23643 (exit $ac_status); } && {
23644 test -z "$ac_c_werror_flag" ||
23645 test ! -s conftest.err
23646 } && test -s conftest.$ac_objext; then
23647 emacs_cv_c_restrict=__restrict
23649 echo "$as_me: failed program was
:" >&5
23650 sed 's/^/| /' conftest.$ac_ext >&5
23652 emacs_cv_c_restrict=no
23655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23660 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
23661 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23662 case "$emacs_cv_c_restrict" in
23663 yes) emacs_restrict=restrict;;
23664 no) emacs_restrict="";;
23665 *) emacs_restrict="$emacs_cv_c_restrict";;
23667 if test "$emacs_restrict" != __restrict; then
23669 cat >>confdefs.h <<_ACEOF
23670 #define __restrict $emacs_restrict
23675 { echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
23676 echo $ECHO_N "checking
for C restricted array declarations...
$ECHO_C" >&6; }
23677 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23678 echo $ECHO_N "(cached
) $ECHO_C" >&6
23680 cat >conftest.$ac_ext <<_ACEOF
23683 cat confdefs.h >>conftest.$ac_ext
23684 cat >>conftest.$ac_ext <<_ACEOF
23685 /* end confdefs.h. */
23686 void fred (int x[__restrict]);
23695 rm -f conftest.$ac_objext
23696 if { (ac_try="$ac_compile"
23697 case "(($ac_try" in
23698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23699 *) ac_try_echo=$ac_try;;
23701 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23702 (eval "$ac_compile") 2>conftest.er1
23704 grep -v '^ *+' conftest.er1 >conftest.err
23706 cat conftest.err >&5
23707 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23708 (exit $ac_status); } && {
23709 test -z "$ac_c_werror_flag" ||
23710 test ! -s conftest.err
23711 } && test -s conftest.$ac_objext; then
23712 emacs_cv_c_restrict_arr=yes
23714 echo "$as_me: failed program was
:" >&5
23715 sed 's/^/| /' conftest.$ac_ext >&5
23717 emacs_cv_c_restrict_arr=no
23720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23722 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
23723 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23724 if test "$emacs_cv_c_restrict_arr" = yes; then
23726 cat >>confdefs.h <<\_ACEOF
23727 #define __restrict_arr __restrict
23734 # Set up the CFLAGS for real compilation, so we can substitute it.
23735 CFLAGS="$REAL_CFLAGS"
23736 CPPFLAGS="$REAL_CPPFLAGS"
23738 #### Find out which version of Emacs this is.
23739 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23740 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
23741 if test x"${version}" = x; then
23742 { { echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&5
23743 echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&2;}
23744 { (exit 1); exit 1; }; }
23747 ### Specify what sort of things we'll be editing into Makefile and config.h.
23748 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23784 cat >>confdefs.h <<_ACEOF
23785 #define EMACS_CONFIGURATION "${canonical}"
23789 cat >>confdefs.h <<_ACEOF
23790 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23794 cat >>confdefs.h <<_ACEOF
23795 #define config_machfile "${machfile}"
23799 cat >>confdefs.h <<_ACEOF
23800 #define config_opsysfile "${opsysfile}"
23804 cat >>confdefs.h <<_ACEOF
23805 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23809 cat >>confdefs.h <<_ACEOF
23810 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23814 cat >>confdefs.h <<_ACEOF
23815 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23819 cat >>confdefs.h <<_ACEOF
23820 #define UNEXEC_SRC ${UNEXEC_SRC}
23824 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23826 cat >>confdefs.h <<\_ACEOF
23827 #define HAVE_X_WINDOWS 1
23831 if test "${USE_X_TOOLKIT}" != "none
" ; then
23833 cat >>confdefs.h <<\_ACEOF
23834 #define USE_X_TOOLKIT 1
23838 if test "${HAVE_X11}" = "yes" ; then
23840 cat >>confdefs.h <<\_ACEOF
23845 if test "${HAVE_XFREE386}" = "yes" ; then
23847 cat >>confdefs.h <<\_ACEOF
23848 #define HAVE_XFREE386 1
23852 if test "${HAVE_MENUS}" = "yes" ; then
23854 cat >>confdefs.h <<\_ACEOF
23855 #define HAVE_MENUS 1
23859 if test "${GNU_MALLOC}" = "yes" ; then
23861 cat >>confdefs.h <<\_ACEOF
23862 #define GNU_MALLOC 1
23866 if test "${REL_ALLOC}" = "yes" ; then
23868 cat >>confdefs.h <<\_ACEOF
23869 #define REL_ALLOC 1
23879 #### Report on what we decided to do.
23880 #### Report GTK as a toolkit, even if it doesn't use Xt.
23881 #### It makes printing result more understandable as using GTK sets
23882 #### toolkit_scroll_bars to yes by default.
23883 if test "${HAVE_GTK}" = "yes"; then
23888 Configured
for \
`${canonical}'.
23890 Where should the build process find the source code? ${srcdir}
23891 What operating system and machine description files should Emacs use?
23892 \`${opsysfile}' and \`${machfile}'
23893 What compiler should emacs be built with?
${CC} ${CFLAGS}
23894 Should Emacs use the GNU version of malloc?
${GNU_MALLOC}${GNU_MALLOC_reason}
23895 Should Emacs use a relocating allocator
for buffers?
${REL_ALLOC}
23896 Should Emacs use mmap
(2) for buffer allocation?
$use_mmap_for_buffers
23897 What window system should Emacs use?
${window_system}
23898 What toolkit should Emacs use?
${USE_X_TOOLKIT}"
23900 if test -n "${x_includes}"; then
23901 echo " Where
do we
find X Windows header files?
${x_includes}"
23903 echo " Where
do we
find X Windows header files? Standard
dirs"
23905 if test -n "${x_libraries}"; then
23906 echo " Where
do we
find X Windows libraries?
${x_libraries}"
23908 echo " Where
do we
find X Windows libraries? Standard
dirs"
23911 echo " Does Emacs use
-lXaw3d?
${HAVE_XAW3D}"
23912 echo " Does Emacs use
-lXpm?
${HAVE_XPM}"
23913 echo " Does Emacs use
-ljpeg?
${HAVE_JPEG}"
23914 echo " Does Emacs use
-ltiff?
${HAVE_TIFF}"
23915 echo " Does Emacs use a gif library?
${HAVE_GIF} $ac_gif_lib_name"
23916 echo " Does Emacs use
-lpng?
${HAVE_PNG}"
23917 echo " Does Emacs use
-lrsvg-2?
${HAVE_RSVG}"
23918 echo " Does Emacs use
-lgpm?
${HAVE_GPM}"
23919 echo " Does Emacs use X toolkit scroll bars?
${USE_TOOLKIT_SCROLL_BARS}"
23922 if test $USE_XASSERTS = yes; then
23923 echo " Compiling with asserts turned on.
"
23924 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23928 if test "$USE_X_TOOLKIT" = GTK; then
23929 case "$canonical" in
23931 echo "There are known problems with Emacs and Gtk
+ on cygwin
, so you
23932 will probably get a crash on startup. If this happens
, please use another
23933 toolkit
for Emacs. See etc
/PROBLEMS
for more information.
"
23939 if test "$HAVE_CARBON" = "yes"; then
23941 echo "Warning
: The Mac Carbon port is currently unsupported and has
23942 known problems. It is not recommended
for use by non-developers.
23943 Read the emacs-devel archives
for more information.
"
23947 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux
"; then
23948 echo "D-Bus integration has been tested
for GNU
/Linux only.
"
23953 # Remove any trailing slashes in these variables.
23954 test "${prefix}" != NONE &&
23955 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23956 test "${exec_prefix}" != NONE &&
23957 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23959 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23960 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23961 ## from Makefile.c can correctly provide the arg `-traditional' to the
23964 cat >conftest.$ac_ext <<_ACEOF
23967 cat confdefs.h >>conftest.$ac_ext
23968 cat >>conftest.$ac_ext <<_ACEOF
23969 /* end confdefs.h. */
23972 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
23973 $EGREP "yes..
yes" >/dev/null 2>&1; then
23974 CPP_NEED_TRADITIONAL=no
23976 CPP_NEED_TRADITIONAL=yes
23981 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
"
23983 ac_config_commands="$ac_config_commands default
"
23985 cat >confcache <<\_ACEOF
23986 # This file is a shell script that caches the results of configure
23987 # tests run on this system so they can be shared between configure
23988 # scripts and configure runs, see configure's option --config-cache.
23989 # It is not useful on other systems. If it contains results you don't
23990 # want to keep, you may remove or edit it.
23992 # config.status only pays attention to the cache file if you give it
23993 # the --recheck option to rerun configure.
23995 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23996 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23997 # following values.
24001 # The following way of writing the cache mishandles newlines in values,
24002 # but we know of no workaround that is simple, portable, and efficient.
24003 # So, we kill variables containing newlines.
24004 # Ultrix sh set writes to stderr and can't be redirected directly,
24005 # and sets the high bit in the cache file unless we assign to the vars.
24007 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24008 eval ac_val=\$$ac_var
24012 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
24013 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
24016 _ | IFS | as_nl) ;; #(
24017 *) $as_unset $ac_var ;;
24023 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24024 *${as_nl}ac_space=\ *)
24025 # `set' does not quote correctly, so add quotes (double-quote
24026 # substitution turns \\\\ into \\, and sed turns \\ into \).
24029 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
24032 # `set' quotes correctly as required by POSIX, so do not add quotes.
24033 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
24042 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24044 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24046 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24047 if test -w "$cache_file"; then
24048 test "x
$cache_file" != "x
/dev
/null
" &&
24049 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
24050 echo "$as_me: updating cache
$cache_file" >&6;}
24051 cat confcache >$cache_file
24053 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
24054 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
24059 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
24060 # Let make expand exec_prefix.
24061 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
24063 DEFS=-DHAVE_CONFIG_H
24067 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
24068 # 1. Remove the extension, and $U if already installed.
24069 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24070 ac_i=`echo "$ac_i" | sed "$ac_script"`
24071 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24072 # will be set to the directory where LIBOBJS objects are built.
24073 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
24074 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
24076 LIBOBJS=$ac_libobjs
24078 LTLIBOBJS=$ac_ltlibobjs
24082 : ${CONFIG_STATUS=./config.status}
24083 ac_clean_files_save=$ac_clean_files
24084 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24085 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
24086 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
24087 cat >$CONFIG_STATUS <<_ACEOF
24089 # Generated by $as_me.
24090 # Run this file to recreate the current configuration.
24091 # Compiler output produced by configure, useful for debugging
24092 # configure, is in config.log if it exists.
24095 ac_cs_recheck=false
24097 SHELL=\${CONFIG_SHELL-$SHELL}
24100 cat >>$CONFIG_STATUS <<\_ACEOF
24101 ## --------------------- ##
24102 ## M4sh Initialization. ##
24103 ## --------------------- ##
24105 # Be more Bourne compatible
24106 DUALCASE=1; export DUALCASE # for MKS sh
24107 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24110 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24111 # is contrary to our usage. Disable this feature.
24112 alias -g '${1+"$@"}'='"$@
"'
24113 setopt NO_GLOB_SUBST
24115 case `(set -o) 2>/dev/null` in
24116 *posix*) set -o posix ;;
24125 # Avoid depending upon Character Ranges.
24126 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24127 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24128 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24129 as_cr_digits='0123456789'
24130 as_cr_alnum=$as_cr_Letters$as_cr_digits
24132 # The user is always right.
24133 if test "${PATH_SEPARATOR+set}" != set; then
24134 echo "#! /bin/sh" >conf$$.sh
24135 echo "exit 0" >>conf$$.sh
24137 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
24145 # Support unset when possible.
24146 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
24154 # We need space, tab and new line, in precisely that order. Quoting is
24155 # there to prevent editors from complaining about space-tab.
24156 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24157 # splitting by setting IFS to empty value.)
24162 # Find who we are. Look in the path if we contain no directory separator.
24164 *[\\/]* ) as_myself
=$0 ;;
24165 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24166 for as_dir
in $PATH
24169 test -z "$as_dir" && as_dir
=.
24170 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
24176 # We did not find ourselves, most probably we were run as `sh COMMAND'
24177 # in which case we are not to be found in the path.
24178 if test "x$as_myself" = x
; then
24181 if test ! -f "$as_myself"; then
24182 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24183 { (exit 1); exit 1; }
24186 # Work around bugs in pre-3.0 UWIN ksh.
24187 for as_var
in ENV MAIL MAILPATH
24188 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24196 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24197 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24198 LC_TELEPHONE LC_TIME
24200 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24201 eval $as_var=C
; export $as_var
24203 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24207 # Required to use basename.
24208 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24209 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24215 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24216 as_basename
=basename
24222 # Name of the executable.
24223 as_me
=`$as_basename -- "$0" ||
24224 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24225 X"$0" : 'X\(//\)$' \| \
24226 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24228 sed '/^.*\/\([^/][^/]*\)\/*$/{
24247 as_lineno_1
=$LINENO
24248 as_lineno_2
=$LINENO
24249 test "x$as_lineno_1" != "x$as_lineno_2" &&
24250 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
24252 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24253 # uniformly replaced by the line number. The first 'sed' inserts a
24254 # line-number line after each line using $LINENO; the second 'sed'
24255 # does the real work. The second script uses 'N' to pair each
24256 # line-number line with the line containing $LINENO, and appends
24257 # trailing '-' during substitution so that $LINENO is not a special
24258 # case at line end.
24259 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24260 # scripts with optimization help from Paolo Bonzini. Blame Lee
24261 # E. McMahon (1931-1989) for sed's syntax. :-)
24273 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24276 ' >$as_me.lineno
&&
24277 chmod +x
"$as_me.lineno" ||
24278 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24279 { (exit 1); exit 1; }; }
24281 # Don't try to exec as it changes $[0], causing all sort of problems
24282 # (the dirname of $[0] is not the place where we might find the
24283 # original and so on. Autoconf is especially sensitive to this).
24284 .
"./$as_me.lineno"
24285 # Exit status is that of the last command.
24290 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
24296 ECHO_C
= ECHO_N
= ECHO_T
=
24297 case `echo -n x` in
24299 case `echo 'x\c'` in
24300 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
24307 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24308 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24314 rm -f conf$$ conf$$.exe conf$$.
file
24315 if test -d conf$$.dir
; then
24316 rm -f conf$$.dir
/conf$$.
file
24322 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
24324 # ... but there are two gotchas:
24325 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24326 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24327 # In both cases, we have to default to `cp -p'.
24328 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
24330 elif ln conf$$.
file conf$$
2>/dev
/null
; then
24335 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
24336 rmdir conf$$.dir
2>/dev
/null
24338 if mkdir
-p .
2>/dev
/null
; then
24341 test -d .
/-p && rmdir .
/-p
24345 if test -x / >/dev
/null
2>&1; then
24346 as_test_x
='test -x'
24348 if ls -dL / >/dev
/null
2>&1; then
24355 if test -d "$1"; then
24361 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24362 ???[sx]*):;;*)false;;esac;fi
24366 as_executable_p
=$as_test_x
24368 # Sed expression to map a string onto a valid CPP name.
24369 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24371 # Sed expression to map a string onto a valid variable name.
24372 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24377 # Save the log message, to keep $[0] and so on meaningful, and to
24378 # report actual input values of CONFIG_FILES etc. instead of their
24379 # values after options handling.
24381 This file was extended by emacs $as_me 23.0.50, which was
24382 generated by GNU Autoconf 2.61. Invocation command line was
24384 CONFIG_FILES = $CONFIG_FILES
24385 CONFIG_HEADERS = $CONFIG_HEADERS
24386 CONFIG_LINKS = $CONFIG_LINKS
24387 CONFIG_COMMANDS = $CONFIG_COMMANDS
24390 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24395 cat >>$CONFIG_STATUS <<_ACEOF
24396 # Files that config.status was made for.
24397 config_files="$ac_config_files"
24398 config_headers="$ac_config_headers"
24399 config_commands="$ac_config_commands"
24403 cat >>$CONFIG_STATUS <<\_ACEOF
24405 \`$as_me' instantiates files from templates according to the
24406 current configuration.
24408 Usage: $0 [OPTIONS] [FILE]...
24410 -h, --help print this help, then exit
24411 -V, --version print version number and configuration settings, then exit
24412 -q, --quiet do not print progress messages
24413 -d, --debug don't remove temporary files
24414 --recheck update $as_me by reconfiguring in the same conditions
24415 --file=FILE[:TEMPLATE]
24416 instantiate the configuration file FILE
24417 --header=FILE[:TEMPLATE]
24418 instantiate the configuration header FILE
24420 Configuration files:
24423 Configuration headers:
24426 Configuration commands:
24429 Report bugs to <bug-autoconf@gnu.org>."
24432 cat >>$CONFIG_STATUS <<_ACEOF
24434 emacs config.status 23.0.50
24435 configured by $0, generated by GNU Autoconf 2.61,
24436 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24438 Copyright (C) 2006 Free Software Foundation, Inc.
24439 This config.status script is free software; the Free Software Foundation
24440 gives unlimited permission to copy, distribute and modify it."
24447 cat >>$CONFIG_STATUS <<\_ACEOF
24448 # If no file are specified by the user, then we need to provide default
24449 # value. By we need to know if files were specified by the user.
24455 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
24456 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
24467 # Handling of the options.
24468 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
24470 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
24471 echo "$ac_cs_version"; exit ;;
24472 --debug |
--debu |
--deb |
--de |
--d |
-d )
24474 --file |
--fil |
--fi |
--f )
24476 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
24477 ac_need_defaults
=false
;;
24478 --header |
--heade |
--head |
--hea )
24480 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
24481 ac_need_defaults
=false
;;
24483 # Conflict between --help and --header
24484 { echo "$as_me: error: ambiguous option: $1
24485 Try \`$0 --help' for more information." >&2
24486 { (exit 1); exit 1; }; };;
24487 --help |
--hel |
-h )
24488 echo "$ac_cs_usage"; exit ;;
24489 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
24490 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
24493 # This is an error.
24494 -*) { echo "$as_me: error: unrecognized option: $1
24495 Try \`$0 --help' for more information." >&2
24496 { (exit 1); exit 1; }; } ;;
24498 *) ac_config_targets
="$ac_config_targets $1"
24499 ac_need_defaults
=false
;;
24505 ac_configure_extra_args
=
24507 if $ac_cs_silent; then
24509 ac_configure_extra_args
="$ac_configure_extra_args --silent"
24513 cat >>$CONFIG_STATUS <<_ACEOF
24514 if \$ac_cs_recheck; then
24515 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24516 CONFIG_SHELL=$SHELL
24517 export CONFIG_SHELL
24518 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24522 cat >>$CONFIG_STATUS <<\_ACEOF
24526 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24527 ## Running $as_me. ##
24533 cat >>$CONFIG_STATUS <<_ACEOF
24537 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
24541 cat >>$CONFIG_STATUS <<\_ACEOF
24543 # Handling of arguments.
24544 for ac_config_target
in $ac_config_targets
24546 case $ac_config_target in
24547 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24548 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
24549 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24550 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
24551 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
24552 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
24553 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
24554 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
24555 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24556 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
24557 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
24558 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
24559 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
24561 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24562 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24563 { (exit 1); exit 1; }; };;
24568 # If the user did not use the arguments to specify the items to instantiate,
24569 # then the envvar interface is used. Set only those that are not.
24570 # We use the long form for the default assignment because of an extremely
24571 # bizarre bug on SunOS 4.1.3.
24572 if $ac_need_defaults; then
24573 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
24574 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
24575 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
24578 # Have a temporary directory for convenience. Make it in the build tree
24579 # simply because there is no reason against having it here, and in addition,
24580 # creating and moving files from /tmp can sometimes cause problems.
24581 # Hook for its removal unless debugging.
24582 # Note that there is a small window in which the directory will not be cleaned:
24583 # after its creation but before its name has been assigned to `$tmp'.
24587 trap 'exit_status=$?
24588 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24590 trap '{ (exit 1); exit 1; }' 1 2 13 15
24592 # Create a (secure) tmp directory for tmp files.
24595 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24596 test -n "$tmp" && test -d "$tmp"
24599 tmp
=.
/conf$$
-$RANDOM
24600 (umask 077 && mkdir
"$tmp")
24603 echo "$me: cannot create a temporary directory in ." >&2
24604 { (exit 1); exit 1; }
24608 # Set up the sed scripts for CONFIG_FILES section.
24611 # No need to generate the scripts if there are no CONFIG_FILES.
24612 # This happens for instance when ./config.status config.h
24613 if test -n "$CONFIG_FILES"; then
24620 for ac_last_try
in false false false false false
:; do
24621 cat >conf$
$subs.
sed <<_ACEOF
24622 SHELL!$SHELL$ac_delim
24623 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24624 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24625 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24626 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24627 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24628 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24629 exec_prefix!$exec_prefix$ac_delim
24630 prefix!$prefix$ac_delim
24631 program_transform_name!$program_transform_name$ac_delim
24632 bindir!$bindir$ac_delim
24633 sbindir!$sbindir$ac_delim
24634 libexecdir!$libexecdir$ac_delim
24635 datarootdir!$datarootdir$ac_delim
24636 datadir!$datadir$ac_delim
24637 sysconfdir!$sysconfdir$ac_delim
24638 sharedstatedir!$sharedstatedir$ac_delim
24639 localstatedir!$localstatedir$ac_delim
24640 includedir!$includedir$ac_delim
24641 oldincludedir!$oldincludedir$ac_delim
24642 docdir!$docdir$ac_delim
24643 infodir!$infodir$ac_delim
24644 htmldir!$htmldir$ac_delim
24645 dvidir!$dvidir$ac_delim
24646 pdfdir!$pdfdir$ac_delim
24647 psdir!$psdir$ac_delim
24648 libdir!$libdir$ac_delim
24649 localedir!$localedir$ac_delim
24650 mandir!$mandir$ac_delim
24651 DEFS!$DEFS$ac_delim
24652 ECHO_C!$ECHO_C$ac_delim
24653 ECHO_N!$ECHO_N$ac_delim
24654 ECHO_T!$ECHO_T$ac_delim
24655 LIBS!$LIBS$ac_delim
24656 build_alias!$build_alias$ac_delim
24657 host_alias!$host_alias$ac_delim
24658 target_alias!$target_alias$ac_delim
24659 MAINT!$MAINT$ac_delim
24660 build!$build$ac_delim
24661 build_cpu!$build_cpu$ac_delim
24662 build_vendor!$build_vendor$ac_delim
24663 build_os!$build_os$ac_delim
24664 host!$host$ac_delim
24665 host_cpu!$host_cpu$ac_delim
24666 host_vendor!$host_vendor$ac_delim
24667 host_os!$host_os$ac_delim
24669 CFLAGS!$CFLAGS$ac_delim
24670 LDFLAGS!$LDFLAGS$ac_delim
24671 CPPFLAGS!$CPPFLAGS$ac_delim
24672 ac_ct_CC!$ac_ct_CC$ac_delim
24673 EXEEXT!$EXEEXT$ac_delim
24674 OBJEXT!$OBJEXT$ac_delim
24676 GREP!$GREP$ac_delim
24677 EGREP!$EGREP$ac_delim
24678 LN_S!$LN_S$ac_delim
24679 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24680 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24681 INSTALL_DATA!$INSTALL_DATA$ac_delim
24682 RANLIB!$RANLIB$ac_delim
24683 INSTALL_INFO!$INSTALL_INFO$ac_delim
24684 GZIP_PROG!$GZIP_PROG$ac_delim
24685 MAKEINFO!$MAKEINFO$ac_delim
24686 LIBSOUND!$LIBSOUND$ac_delim
24687 PKG_CONFIG!$PKG_CONFIG$ac_delim
24688 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24689 ALSA_LIBS!$ALSA_LIBS$ac_delim
24690 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24691 SET_MAKE!$SET_MAKE$ac_delim
24692 XMKMF!$XMKMF$ac_delim
24693 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
24694 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
24695 RSVG_LIBS!$RSVG_LIBS$ac_delim
24696 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24697 GTK_LIBS!$GTK_LIBS$ac_delim
24698 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
24699 DBUS_LIBS!$DBUS_LIBS$ac_delim
24700 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24701 XFT_LIBS!$XFT_LIBS$ac_delim
24702 ALLOCA!$ALLOCA$ac_delim
24703 liblockfile!$liblockfile$ac_delim
24704 LIBOBJS!$LIBOBJS$ac_delim
24705 NEED_SETGID!$NEED_SETGID$ac_delim
24706 KMEM_GROUP!$KMEM_GROUP$ac_delim
24707 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24708 GETOPT_H!$GETOPT_H$ac_delim
24709 GETOPTOBJS!$GETOPTOBJS$ac_delim
24710 version!$version$ac_delim
24711 configuration!$configuration$ac_delim
24712 canonical!$canonical$ac_delim
24713 srcdir!$srcdir$ac_delim
24714 lispdir!$lispdir$ac_delim
24715 locallisppath!$locallisppath$ac_delim
24716 lisppath!$lisppath$ac_delim
24717 x_default_search_path!$x_default_search_path$ac_delim
24718 etcdir!$etcdir$ac_delim
24721 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24723 elif $ac_last_try; then
24724 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24725 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24726 { (exit 1); exit 1; }; }
24728 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24732 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24733 if test -n "$ac_eof"; then
24734 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24735 ac_eof
=`expr $ac_eof + 1`
24738 cat >>$CONFIG_STATUS <<_ACEOF
24739 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24740 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24743 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24744 s/^/s,@/; s/!/@,|#_!!_#|/
24747 s/'"$ac_delim"'$/,g/; t
24749 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24750 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24751 rm -f conf$
$subs.
sed
24752 cat >>$CONFIG_STATUS <<_ACEOF
24758 for ac_last_try
in false false false false false
:; do
24759 cat >conf$
$subs.
sed <<_ACEOF
24760 archlibdir!$archlibdir$ac_delim
24761 bitmapdir!$bitmapdir$ac_delim
24762 gamedir!$gamedir$ac_delim
24763 gameuser!$gameuser$ac_delim
24764 c_switch_system!$c_switch_system$ac_delim
24765 c_switch_machine!$c_switch_machine$ac_delim
24766 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
24767 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
24768 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
24769 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
24770 machfile!$machfile$ac_delim
24771 opsysfile!$opsysfile$ac_delim
24772 carbon_appdir!$carbon_appdir$ac_delim
24773 LTLIBOBJS!$LTLIBOBJS$ac_delim
24776 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 14; then
24778 elif $ac_last_try; then
24779 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24780 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24781 { (exit 1); exit 1; }; }
24783 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24787 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24788 if test -n "$ac_eof"; then
24789 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24790 ac_eof
=`expr $ac_eof + 1`
24793 cat >>$CONFIG_STATUS <<_ACEOF
24794 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24795 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24798 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24799 s/^/s,@/; s/!/@,|#_!!_#|/
24802 s/'"$ac_delim"'$/,g/; t
24804 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24805 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24806 rm -f conf$
$subs.
sed
24807 cat >>$CONFIG_STATUS <<_ACEOF
24814 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24815 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24816 # trailing colons and then remove the whole line if VPATH becomes empty
24817 # (actually we leave an empty line to preserve line numbers).
24818 if test "x$srcdir" = x.
; then
24819 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
24820 s/:*\$(srcdir):*/:/
24821 s/:*\${srcdir}:*/:/
24823 s/^\([^=]*=[ ]*\):*/\1/
24829 cat >>$CONFIG_STATUS <<\_ACEOF
24830 fi # test -n "$CONFIG_FILES"
24833 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
24836 :[FHLC
]) ac_mode
=$ac_tag; continue;;
24838 case $ac_mode$ac_tag in
24840 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24841 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24842 { (exit 1); exit 1; }; };;
24843 :[FH
]-) ac_tag
=-:-;;
24844 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
24861 -) ac_f
="$tmp/stdin";;
24862 *) # Look for the file first in the build tree, then in the source tree
24863 # (if the path is not absolute). The absolute path cannot be DOS-style,
24864 # because $ac_f cannot contain `:'.
24868 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
24870 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24871 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24872 { (exit 1); exit 1; }; };;
24874 ac_file_inputs
="$ac_file_inputs $ac_f"
24877 # Let's still pretend it is `configure' which instantiates (i.e., don't
24878 # use $as_me), people would be surprised to read:
24879 # /* config.h. Generated by config.status. */
24880 configure_input
="Generated from "`IFS=:
24881 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24882 if test x
"$ac_file" != x-
; then
24883 configure_input
="$ac_file. $configure_input"
24884 { echo "$as_me:$LINENO: creating $ac_file" >&5
24885 echo "$as_me: creating $ac_file" >&6;}
24889 *:-:* |
*:-) cat >"$tmp/stdin";;
24894 ac_dir
=`$as_dirname -- "$ac_file" ||
24895 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24896 X"$ac_file" : 'X\(//\)[^/]' \| \
24897 X"$ac_file" : 'X\(//\)$' \| \
24898 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24900 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24904 /^X\(\/\/\)[^/].*/{
24919 -*) as_dir
=.
/$as_dir;;
24921 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
24925 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24926 *) as_qdir
=$as_dir;;
24928 as_dirs
="'$as_qdir' $as_dirs"
24929 as_dir
=`$as_dirname -- "$as_dir" ||
24930 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24931 X"$as_dir" : 'X\(//\)[^/]' \| \
24932 X"$as_dir" : 'X\(//\)$' \| \
24933 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24935 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24939 /^X\(\/\/\)[^/].*/{
24952 test -d "$as_dir" && break
24954 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
24955 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24956 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24957 { (exit 1); exit 1; }; }; }
24961 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24963 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24964 # A ".." for each directory in $ac_dir_suffix.
24965 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24966 case $ac_top_builddir_sub in
24967 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24968 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
24971 ac_abs_top_builddir
=$ac_pwd
24972 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
24973 # for backward compatibility:
24974 ac_top_builddir
=$ac_top_build_prefix
24977 .
) # We are building in place.
24979 ac_top_srcdir
=$ac_top_builddir_sub
24980 ac_abs_top_srcdir
=$ac_pwd ;;
24981 [\\/]* | ?
:[\\/]* ) # Absolute name.
24982 ac_srcdir
=$srcdir$ac_dir_suffix;
24983 ac_top_srcdir
=$srcdir
24984 ac_abs_top_srcdir
=$srcdir ;;
24985 *) # Relative name.
24986 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
24987 ac_top_srcdir
=$ac_top_build_prefix$srcdir
24988 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
24990 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
25000 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
25001 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
25005 cat >>$CONFIG_STATUS <<\_ACEOF
25006 # If the template does not know about datarootdir, expand it.
25007 # FIXME: This hack should be removed a few years after 2.60.
25008 ac_datarootdir_hack
=; ac_datarootdir_seen
=
25010 case `sed -n '/datarootdir/ {
25019 ' $ac_file_inputs` in
25020 *datarootdir
*) ac_datarootdir_seen
=yes;;
25021 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
25022 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25023 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25025 cat >>$CONFIG_STATUS <<_ACEOF
25026 ac_datarootdir_hack='
25027 s&@datadir@&$datadir&g
25028 s&@docdir@&$docdir&g
25029 s&@infodir@&$infodir&g
25030 s&@localedir@&$localedir&g
25031 s&@mandir@&$mandir&g
25032 s&\\\${datarootdir}&$datarootdir&g' ;;
25036 # Neutralize VPATH when `$srcdir' = `.'.
25037 # Shell code in configure.ac might set extrasub.
25038 # FIXME: do we really want to maintain this feature?
25039 cat >>$CONFIG_STATUS <<_ACEOF
25043 cat >>$CONFIG_STATUS <<\_ACEOF
25045 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
25046 s
&@configure_input@
&$configure_input&;t t
25047 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
25048 s
&@srcdir@
&$ac_srcdir&;t t
25049 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
25050 s
&@top_srcdir@
&$ac_top_srcdir&;t t
25051 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
25052 s
&@builddir@
&$ac_builddir&;t t
25053 s
&@abs_builddir@
&$ac_abs_builddir&;t t
25054 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
25055 s
&@INSTALL@
&$ac_INSTALL&;t t
25056 $ac_datarootdir_hack
25057 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
25059 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25060 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
25061 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
25062 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
25063 which seems to be undefined. Please make sure it is defined." >&5
25064 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
25065 which seems to be undefined. Please make sure it is defined." >&2;}
25069 -) cat "$tmp/out"; rm -f "$tmp/out";;
25070 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25079 # Transform confdefs.h into a sed script `conftest.defines', that
25080 # substitutes the proper values into config.h.in to produce config.h.
25081 rm -f conftest.defines conftest.
tail
25082 # First, append a space to every undef/define line, to ease matching.
25083 echo 's/$/ /' >conftest.defines
25084 # Then, protect against being on the right side of a sed subst, or in
25085 # an unquoted here document, in config.status. If some macros were
25086 # called several times there might be several #defines for the same
25087 # symbol, which is useless. But do not sort them, since the last
25088 # AC_DEFINE must be honored.
25089 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
25090 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25091 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25092 # PARAMS is the parameter list in the macro definition--in most cases, it's
25093 # just an empty string.
25094 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25095 ac_dB
='\\)[ (].*,\\1define\\2'
25103 s/^[ ]*#[ ]*define[ ][ ]*//
25108 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25109 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25110 ' >>conftest.defines
25112 # Remove the space that was appended to ease matching.
25113 # Then replace #undef with comments. This is necessary, for
25114 # example, in the case of _POSIX_SOURCE, which is predefined and required
25115 # on some systems where configure will not decide to define it.
25116 # (The regexp can be short, since the line contains either #define or #undef.)
25118 s,^[ #]*u.*,/* & */,' >>conftest.defines
25120 # Break up conftest.defines:
25121 ac_max_sed_lines
=50
25123 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25124 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25125 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25127 ac_in
='$ac_file_inputs'
25128 ac_out
='"$tmp/out1"'
25129 ac_nxt
='"$tmp/out2"'
25133 # Write a here document:
25134 cat >>$CONFIG_STATUS <<_ACEOF
25135 # First, check the format of the line:
25136 cat >"\$tmp/defines.sed" <<\\CEOF
25137 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25138 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25142 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
25144 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25145 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
25146 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
25147 grep . conftest.
tail >/dev
/null ||
break
25148 rm -f conftest.defines
25149 mv conftest.
tail conftest.defines
25151 rm -f conftest.defines conftest.
tail
25153 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25154 cat >>$CONFIG_STATUS <<\_ACEOF
25155 if test x
"$ac_file" != x-
; then
25156 echo "/* $configure_input */" >"$tmp/config.h"
25157 cat "$ac_result" >>"$tmp/config.h"
25158 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
25159 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25160 echo "$as_me: $ac_file is unchanged" >&6;}
25163 mv "$tmp/config.h" $ac_file
25166 echo "/* $configure_input */"
25172 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25173 echo "$as_me: executing $ac_file commands" >&6;}
25178 case $ac_file$ac_mode in
25181 ### Make the necessary directories, if they don't exist.
25182 for dir
in etc lisp
; do
25183 test -d ${dir} || mkdir
${dir}
25186 # Build src/Makefile from ${srcdir}/src/Makefile.c
25187 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25188 # This must be done after src/config.h is built, since we rely on that file.
25190 # Now get this: Some word that is part of the ${srcdir} directory name
25191 # or the ${configuration} value might, just might, happen to be an
25192 # identifier like `sun4' or `i386' or something, and be predefined by
25193 # the C preprocessor to some helpful value like 1, or maybe the empty
25194 # string. Needless to say consequent macro substitutions are less
25195 # than conducive to the makefile finding the correct directory.
25196 undefs
="`echo $top_srcdir $configuration $canonical |
25197 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
25198 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
25201 echo creating src
/epaths.h
25202 ${MAKE-make} epaths-force
25204 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25205 # `..' to `. .' unless invoked with -traditional
25207 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
25208 CPPFLAGS
="$CPPFLAGS -traditional"
25211 echo creating lib-src
/Makefile
25213 rm -f junk.c junk1.c junk2.c
25214 sed -e '/start of cpp stuff/q' \
25215 < Makefile.c
> junk1.c
25216 sed -e '1,/start of cpp stuff/d'\
25217 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25218 < Makefile.c
> junk.c
25219 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
25220 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25221 cat junk1.c junk2.c
> Makefile.new
25222 rm -f junk.c junk1.c junk2.c
25223 chmod 444 Makefile.new
25224 mv -f Makefile.new Makefile
25227 echo creating src
/Makefile
25229 rm -f junk.c junk1.c junk2.c
25230 sed -e '/start of cpp stuff/q' \
25231 < Makefile.c
> junk1.c
25232 sed -e '1,/start of cpp stuff/d'\
25233 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25234 < Makefile.c
> junk.c
25235 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
25236 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25237 cat junk1.c junk2.c
> Makefile.new
25238 rm -f junk.c junk1.c junk2.c
25239 chmod 444 Makefile.new
25240 mv -f Makefile.new Makefile
25243 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
25244 echo creating src
/.gdbinit
25245 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
25248 # This is how we know whether to re-run configure in certain cases.
25249 touch src
/config.stamp
25257 { (exit 0); exit 0; }
25259 chmod +x
$CONFIG_STATUS
25260 ac_clean_files
=$ac_clean_files_save
25263 # configure is writing to config.log, and then calls config.status.
25264 # config.status does its own redirection, appending to config.log.
25265 # Unfortunately, on DOS this fails, as config.log is still kept open
25266 # by configure, so config.status won't be able to write to it; its
25267 # output is simply discarded. So we exec the FD to /dev/null,
25268 # effectively closing config.log, so it can be properly (re)opened and
25269 # appended to by config.status. When coming back to configure, we
25270 # need to make the FD available again.
25271 if test "$no_create" != yes; then
25273 ac_config_status_args
=
25274 test "$silent" = yes &&
25275 ac_config_status_args
="$ac_config_status_args --quiet"
25277 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
25279 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25280 # would make configure fail if this is the last instruction.
25281 $ac_cs_success ||
{ (exit 1); exit 1; }