2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
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.
579 ac_unique_file
="src/lisp.h"
580 ac_config_libobj_dir
=src
581 # Factoring default headers for most tests.
582 ac_includes_default
="\
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
594 # ifdef HAVE_STDLIB_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
628 program_transform_name
712 x_default_search_path
729 ac_precious_vars
='build_alias
741 # Initialize some variables set by options.
743 ac_init_version
=false
744 # The variables have the same names as the options, with
745 # dashes changed to underlines.
753 program_transform_name
=s
,x
,x
,
761 # Installation directory options.
762 # These are left unexpanded so users can "make install exec_prefix=/foo"
763 # and all the variables that are supposed to be based on exec_prefix
764 # by default will actually change.
765 # Use braces instead of parens because sh, perl, etc. also accept them.
766 # (The list follows the same order as the GNU Coding Standards.)
767 bindir
='${exec_prefix}/bin'
768 sbindir
='${exec_prefix}/sbin'
769 libexecdir
='${exec_prefix}/libexec'
770 datarootdir
='${prefix}/share'
771 datadir
='${datarootdir}'
772 sysconfdir
='${prefix}/etc'
773 sharedstatedir
='${prefix}/com'
774 localstatedir
='${prefix}/var'
775 includedir
='${prefix}/include'
776 oldincludedir
='/usr/include'
777 docdir
='${datarootdir}/doc/${PACKAGE}'
778 infodir
='${datarootdir}/info'
783 libdir
='${exec_prefix}/lib'
784 localedir
='${datarootdir}/locale'
785 mandir
='${datarootdir}/man'
791 # If the previous option needs an argument, assign it.
792 if test -n "$ac_prev"; then
793 eval $ac_prev=\
$ac_option
799 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
803 # Accept the important Cygnus configure options, so we can diagnose typos.
805 case $ac_dashdash$ac_option in
809 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
811 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
814 -build |
--build |
--buil |
--bui |
--bu)
815 ac_prev
=build_alias
;;
816 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
817 build_alias
=$ac_optarg ;;
819 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
820 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
821 ac_prev
=cache_file
;;
822 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
823 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
824 cache_file
=$ac_optarg ;;
827 cache_file
=config.cache
;;
829 -datadir |
--datadir |
--datadi |
--datad)
831 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
832 datadir
=$ac_optarg ;;
834 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
835 |
--dataroo |
--dataro |
--datar)
836 ac_prev
=datarootdir
;;
837 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
838 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
839 datarootdir
=$ac_optarg ;;
841 -disable-* |
--disable-*)
842 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
843 # Reject names that are not valid shell variable names.
844 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
845 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
846 { (exit 1); exit 1; }; }
847 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
848 eval enable_
$ac_feature=no
;;
850 -docdir |
--docdir |
--docdi |
--doc |
--do)
852 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
855 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
857 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
860 -enable-* |
--enable-*)
861 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
862 # Reject names that are not valid shell variable names.
863 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
864 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
865 { (exit 1); exit 1; }; }
866 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
867 eval enable_
$ac_feature=\
$ac_optarg ;;
869 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
870 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
871 |
--exec |
--exe |
--ex)
872 ac_prev
=exec_prefix
;;
873 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
874 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
875 |
--exec=* |
--exe=* |
--ex=*)
876 exec_prefix
=$ac_optarg ;;
878 -gas |
--gas |
--ga |
--g)
879 # Obsolete; use --with-gas.
882 -help |
--help |
--hel |
--he |
-h)
884 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
885 ac_init_help
=recursive
;;
886 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
887 ac_init_help
=short
;;
889 -host |
--host |
--hos |
--ho)
890 ac_prev
=host_alias
;;
891 -host=* |
--host=* |
--hos=* |
--ho=*)
892 host_alias
=$ac_optarg ;;
894 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
896 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
898 htmldir
=$ac_optarg ;;
900 -includedir |
--includedir |
--includedi |
--included |
--include \
901 |
--includ |
--inclu |
--incl |
--inc)
902 ac_prev
=includedir
;;
903 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
904 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
905 includedir
=$ac_optarg ;;
907 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
909 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
910 infodir
=$ac_optarg ;;
912 -libdir |
--libdir |
--libdi |
--libd)
914 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
917 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
918 |
--libexe |
--libex |
--libe)
919 ac_prev
=libexecdir
;;
920 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
921 |
--libexe=* |
--libex=* |
--libe=*)
922 libexecdir
=$ac_optarg ;;
924 -localedir |
--localedir |
--localedi |
--localed |
--locale)
926 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
927 localedir
=$ac_optarg ;;
929 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
930 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
931 ac_prev
=localstatedir
;;
932 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
933 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
934 localstatedir
=$ac_optarg ;;
936 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
938 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
942 # Obsolete; use --without-fp.
945 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
946 |
--no-cr |
--no-c |
-n)
949 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
950 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
953 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
954 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
955 |
--oldin |
--oldi |
--old |
--ol |
--o)
956 ac_prev
=oldincludedir
;;
957 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
958 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
959 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
960 oldincludedir
=$ac_optarg ;;
962 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
964 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
967 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
968 |
--program-pre |
--program-pr |
--program-p)
969 ac_prev
=program_prefix
;;
970 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
971 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
972 program_prefix
=$ac_optarg ;;
974 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
975 |
--program-suf |
--program-su |
--program-s)
976 ac_prev
=program_suffix
;;
977 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
978 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
979 program_suffix
=$ac_optarg ;;
981 -program-transform-name |
--program-transform-name \
982 |
--program-transform-nam |
--program-transform-na \
983 |
--program-transform-n |
--program-transform- \
984 |
--program-transform |
--program-transfor \
985 |
--program-transfo |
--program-transf \
986 |
--program-trans |
--program-tran \
987 |
--progr-tra |
--program-tr |
--program-t)
988 ac_prev
=program_transform_name
;;
989 -program-transform-name=* |
--program-transform-name=* \
990 |
--program-transform-nam=* |
--program-transform-na=* \
991 |
--program-transform-n=* |
--program-transform-=* \
992 |
--program-transform=* |
--program-transfor=* \
993 |
--program-transfo=* |
--program-transf=* \
994 |
--program-trans=* |
--program-tran=* \
995 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
996 program_transform_name
=$ac_optarg ;;
998 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1000 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1001 pdfdir
=$ac_optarg ;;
1003 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1005 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1008 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1009 |
-silent |
--silent |
--silen |
--sile |
--sil)
1012 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1014 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1016 sbindir
=$ac_optarg ;;
1018 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1019 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1020 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1022 ac_prev
=sharedstatedir
;;
1023 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1024 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1025 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1027 sharedstatedir
=$ac_optarg ;;
1029 -site |
--site |
--sit)
1031 -site=* |
--site=* |
--sit=*)
1034 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1036 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1037 srcdir
=$ac_optarg ;;
1039 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1040 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1041 ac_prev
=sysconfdir
;;
1042 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1043 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1044 sysconfdir
=$ac_optarg ;;
1046 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1047 ac_prev
=target_alias
;;
1048 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1049 target_alias
=$ac_optarg ;;
1051 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1054 -version |
--version |
--versio |
--versi |
--vers |
-V)
1055 ac_init_version
=: ;;
1058 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1059 # Reject names that are not valid shell variable names.
1060 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1061 { echo "$as_me: error: invalid package name: $ac_package" >&2
1062 { (exit 1); exit 1; }; }
1063 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1064 eval with_
$ac_package=\
$ac_optarg ;;
1066 -without-* |
--without-*)
1067 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1068 # Reject names that are not valid shell variable names.
1069 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1070 { echo "$as_me: error: invalid package name: $ac_package" >&2
1071 { (exit 1); exit 1; }; }
1072 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1073 eval with_
$ac_package=no
;;
1076 # Obsolete; use --with-x.
1079 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1080 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1081 ac_prev
=x_includes
;;
1082 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1083 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1084 x_includes
=$ac_optarg ;;
1086 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1087 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1088 ac_prev
=x_libraries
;;
1089 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1090 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1091 x_libraries
=$ac_optarg ;;
1093 -*) { echo "$as_me: error: unrecognized option: $ac_option
1094 Try \`$0 --help' for more information." >&2
1095 { (exit 1); exit 1; }; }
1099 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1100 # Reject names that are not valid shell variable names.
1101 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1102 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1103 { (exit 1); exit 1; }; }
1104 eval $ac_envvar=\
$ac_optarg
1105 export $ac_envvar ;;
1108 # FIXME: should be removed in autoconf 3.0.
1109 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1110 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1111 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1112 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1118 if test -n "$ac_prev"; then
1119 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1120 { echo "$as_me: error: missing argument to $ac_option" >&2
1121 { (exit 1); exit 1; }; }
1124 # Be sure to have absolute directory names.
1125 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1126 datadir sysconfdir sharedstatedir localstatedir includedir \
1127 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1128 libdir localedir mandir
1130 eval ac_val
=\$
$ac_var
1132 [\\/$
]* | ?
:[\\/]* ) continue;;
1133 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1135 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1136 { (exit 1); exit 1; }; }
1139 # There might be people who depend on the old broken behavior: `$host'
1140 # used to hold the argument of --host etc.
1141 # FIXME: To remove some day.
1144 target
=$target_alias
1146 # FIXME: To remove some day.
1147 if test "x$host_alias" != x
; then
1148 if test "x$build_alias" = x
; then
1149 cross_compiling
=maybe
1150 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1151 If a cross compiler is detected then cross compile mode will be used." >&2
1152 elif test "x$build_alias" != "x$host_alias"; then
1158 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1160 test "$silent" = yes && exec 6>/dev
/null
1163 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1164 ac_ls_di
=`ls -di .` &&
1165 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1166 { echo "$as_me: error: Working directory cannot be determined" >&2
1167 { (exit 1); exit 1; }; }
1168 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1169 { echo "$as_me: error: pwd does not report name of working directory" >&2
1170 { (exit 1); exit 1; }; }
1173 # Find the source files, if location was not specified.
1174 if test -z "$srcdir"; then
1175 ac_srcdir_defaulted
=yes
1176 # Try the directory containing this script, then the parent directory.
1177 ac_confdir
=`$as_dirname -- "$0" ||
1178 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1179 X"$0" : 'X\(//\)[^/]' \| \
1180 X"$0" : 'X\(//\)$' \| \
1181 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1183 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1201 if test ! -r "$srcdir/$ac_unique_file"; then
1205 ac_srcdir_defaulted
=no
1207 if test ! -r "$srcdir/$ac_unique_file"; then
1208 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1209 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1210 { (exit 1); exit 1; }; }
1212 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1214 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1215 { (exit 1); exit 1; }; }
1217 # When building in place, set srcdir=.
1218 if test "$ac_abs_confdir" = "$ac_pwd"; then
1221 # Remove unnecessary trailing slashes from srcdir.
1222 # Double slashes in file names in object file debugging info
1223 # mess up M-x gdb in Emacs.
1225 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1227 for ac_var
in $ac_precious_vars; do
1228 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1229 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1230 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1231 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1235 # Report the --help message.
1237 if test "$ac_init_help" = "long"; then
1238 # Omit some internal or obsolete options to make the list less imposing.
1239 # This message is too long to be a string in the A/UX 3.1 sh.
1241 \`configure' configures this package to adapt to many kinds of systems.
1243 Usage: $0 [OPTION]... [VAR=VALUE]...
1245 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1246 VAR=VALUE. See below for descriptions of some of the useful variables.
1248 Defaults for the options are specified in brackets.
1251 -h, --help display this help and exit
1252 --help=short display options specific to this package
1253 --help=recursive display the short help of all the included packages
1254 -V, --version display version information and exit
1255 -q, --quiet, --silent do not print \`checking...' messages
1256 --cache-file=FILE cache test results in FILE [disabled]
1257 -C, --config-cache alias for \`--cache-file=config.cache'
1258 -n, --no-create do not create output files
1259 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1261 Installation directories:
1262 --prefix=PREFIX install architecture-independent files in PREFIX
1263 [$ac_default_prefix]
1264 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1267 By default, \`make install' will install all the files in
1268 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1269 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1270 for instance \`--prefix=\$HOME'.
1272 For better control, use the options below.
1274 Fine tuning of the installation directories:
1275 --bindir=DIR user executables [EPREFIX/bin]
1276 --sbindir=DIR system admin executables [EPREFIX/sbin]
1277 --libexecdir=DIR program executables [EPREFIX/libexec]
1278 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1279 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1280 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1281 --libdir=DIR object code libraries [EPREFIX/lib]
1282 --includedir=DIR C header files [PREFIX/include]
1283 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1284 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1285 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1286 --infodir=DIR info documentation [DATAROOTDIR/info]
1287 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1288 --mandir=DIR man documentation [DATAROOTDIR/man]
1289 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1290 --htmldir=DIR html documentation [DOCDIR]
1291 --dvidir=DIR dvi documentation [DOCDIR]
1292 --pdfdir=DIR pdf documentation [DOCDIR]
1293 --psdir=DIR ps documentation [DOCDIR]
1299 --program-prefix=PREFIX prepend PREFIX to installed program names
1300 --program-suffix=SUFFIX append SUFFIX to installed program names
1301 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1304 --x-includes=DIR X include files are
in DIR
1305 --x-libraries=DIR X library files are
in DIR
1308 --build=BUILD configure
for building on BUILD
[guessed
]
1309 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1313 if test -n "$ac_init_help"; then
1318 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1319 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1320 --enable-carbon-app[=DIR
] [DIR
=/Application
]
1321 specify
install directory
for Emacs.app on Mac OS X
1322 --enable-asserts compile code with asserts enabled
1323 --enable-maintainer-mode enable make rules and dependencies not useful
1324 (and sometimes confusing
) to the casual installer
1325 --enable-locallisppath=PATH
1326 directories Emacs should search
for lisp files
1327 specific to this site
1328 --disable-largefile omit support
for large files
1331 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1332 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1333 --without-gcc don
't use GCC to compile Emacs if GCC is found
1334 --without-pop don't support POP
mail retrieval with movemail
1335 --with-kerberos support Kerberos-authenticated POP
1336 --with-kerberos5 support Kerberos version
5 authenticated POP
1337 --with-hesiod support Hesiod to get the POP server
host
1338 --without-sound don
't compile with sound support
1339 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes, lucid, athena,
1341 --with-xpm use -lXpm for displaying XPM images
1342 --with-jpeg use -ljpeg for displaying JPEG images
1343 --with-tiff use -ltiff for displaying TIFF images
1344 --with-gif use -lgif (or -lungif) for displaying GIF images
1345 --with-png use -lpng for displaying PNG images
1346 --with-gpm use -lgpm for mouse support on a GNU/Linux console
1347 --with-rsvg use -lrsvg-2 for displaying SVG images
1348 --with-gtk use GTK (same as --with-x-toolkit=gtk)
1349 --with-pkg-config-prog Path to pkg-config for finding GTK and librsvg
1350 --without-toolkit-scroll-bars
1351 don't use Motif or Xaw3d scroll bars
1352 --without-xaw3d don
't use Xaw3d
1353 --without-xim don't use X11 XIM
1354 --without-carbon don
't use Carbon GUI on Mac OS X
1355 --with-x use the X Window System
1357 Some influential environment variables:
1358 CC C compiler command
1359 CFLAGS C compiler flags
1360 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1361 nonstandard directory <lib dir>
1362 LIBS libraries to pass to the linker, e.g. -l<library>
1363 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1364 you have headers in a nonstandard directory <include dir>
1366 XMKMF Path to xmkmf, Makefile generator for X Window System
1368 Use these variables to override the choices made by `configure' or to
help
1369 it to
find libraries and programs with nonstandard names
/locations.
1375 if test "$ac_init_help" = "recursive"; then
1376 # If there are subdirs, report their specific --help.
1377 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1378 test -d "$ac_dir" ||
continue
1382 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1384 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1385 # A ".." for each directory in $ac_dir_suffix.
1386 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1387 case $ac_top_builddir_sub in
1388 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1389 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1392 ac_abs_top_builddir
=$ac_pwd
1393 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1394 # for backward compatibility:
1395 ac_top_builddir
=$ac_top_build_prefix
1398 .
) # We are building in place.
1400 ac_top_srcdir
=$ac_top_builddir_sub
1401 ac_abs_top_srcdir
=$ac_pwd ;;
1402 [\\/]* | ?
:[\\/]* ) # Absolute name.
1403 ac_srcdir
=$srcdir$ac_dir_suffix;
1404 ac_top_srcdir
=$srcdir
1405 ac_abs_top_srcdir
=$srcdir ;;
1407 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1408 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1409 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1411 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1413 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1414 # Check for guested configure.
1415 if test -f "$ac_srcdir/configure.gnu"; then
1417 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1418 elif test -f "$ac_srcdir/configure"; then
1420 $SHELL "$ac_srcdir/configure" --help=recursive
1422 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1424 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1428 test -n "$ac_init_help" && exit $ac_status
1429 if $ac_init_version; then
1432 generated by GNU Autoconf
2.61
1434 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1435 2002, 2003, 2004, 2005, 2006 Free Software Foundation
, Inc.
1436 This configure
script is free software
; the Free Software Foundation
1437 gives unlimited permission to copy
, distribute and modify it.
1441 cat >config.log
<<_ACEOF
1442 This file contains any messages produced by compilers while
1443 running configure, to aid debugging if configure makes a mistake.
1445 It was created by $as_me, which was
1446 generated by GNU Autoconf 2.61. Invocation command line was
1458 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1459 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1460 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1461 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1462 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1464 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1465 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1467 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1468 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1469 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1470 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1471 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1472 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1473 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1477 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1481 test -z "$as_dir" && as_dir
=.
1482 echo "PATH: $as_dir"
1498 # Keep a trace of the command line.
1499 # Strip out --no-create and --no-recursion so they do not pile up.
1500 # Strip out --silent because we don't want to record it for future runs.
1501 # Also quote any args containing shell meta-characters.
1502 # Make two passes to allow for proper duplicate-argument suppression.
1506 ac_must_keep_next
=false
1512 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1513 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1514 |
-silent |
--silent |
--silen |
--sile |
--sil)
1517 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1520 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1522 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1523 if test $ac_must_keep_next = true
; then
1524 ac_must_keep_next
=false
# Got value, back to normal.
1527 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1528 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1529 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1530 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1531 case "$ac_configure_args0 " in
1532 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1535 -* ) ac_must_keep_next
=true
;;
1538 ac_configure_args
="$ac_configure_args '$ac_arg'"
1543 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1544 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1546 # When interrupted or exit'd, cleanup temporary files, and complete
1547 # config.log. We remove comments because anyway the quotes in there
1548 # would cause problems or look ugly.
1549 # WARNING: Use '\'' to represent an apostrophe within the trap.
1550 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1551 trap 'exit_status=$?
1552 # Save into config.log some information that might help in debugging.
1557 ## ---------------- ##
1558 ## Cache variables. ##
1559 ## ---------------- ##
1562 # The following way of writing the cache mishandles newlines in values,
1564 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1565 eval ac_val=\$$ac_var
1569 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1570 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1573 _ | IFS | as_nl) ;; #(
1574 *) $as_unset $ac_var ;;
1579 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1580 *${as_nl}ac_space=\ *)
1582 "s/'\''/'\''\\\\'\'''\''/g;
1583 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1586 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1594 ## ----------------- ##
1595 ## Output variables. ##
1596 ## ----------------- ##
1599 for ac_var in $ac_subst_vars
1601 eval ac_val=\$$ac_var
1603 *\'\''*) ac_val
=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1605 echo "$ac_var='\''$ac_val'\''"
1609 if test -n "$ac_subst_files"; then
1611 ## ------------------- ##
1612 ## File substitutions. ##
1613 ## ------------------- ##
1616 for ac_var
in $ac_subst_files
1618 eval ac_val
=\$
$ac_var
1620 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1622 echo "$ac_var='\''$ac_val'\''"
1627 if test -s confdefs.h; then
1637 test "$ac_signal" != 0 &&
1638 echo "$as_me: caught signal $ac_signal"
1639 echo "$as_me: exit $exit_status"
1641 rm -f core *.core core.conftest.* &&
1642 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1645 for ac_signal
in 1 2 13 15; do
1646 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1650 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1651 rm -f -r conftest
* confdefs.h
1653 # Predefined preprocessor variables.
1655 cat >>confdefs.h
<<_ACEOF
1656 #define PACKAGE_NAME "$PACKAGE_NAME"
1660 cat >>confdefs.h
<<_ACEOF
1661 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1665 cat >>confdefs.h
<<_ACEOF
1666 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1670 cat >>confdefs.h
<<_ACEOF
1671 #define PACKAGE_STRING "$PACKAGE_STRING"
1675 cat >>confdefs.h
<<_ACEOF
1676 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1680 # Let the site file select an alternate cache file if it wants to.
1681 # Prefer explicitly selected file to automatically selected ones.
1682 if test -n "$CONFIG_SITE"; then
1683 set x
"$CONFIG_SITE"
1684 elif test "x$prefix" != xNONE
; then
1685 set x
"$prefix/share/config.site" "$prefix/etc/config.site"
1687 set x
"$ac_default_prefix/share/config.site" \
1688 "$ac_default_prefix/etc/config.site"
1693 if test -r "$ac_site_file"; then
1694 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1695 echo "$as_me: loading site script $ac_site_file" >&6;}
1696 sed 's/^/| /' "$ac_site_file" >&5
1701 if test -r "$cache_file"; then
1702 # Some versions of bash will fail to source /dev/null (special
1703 # files actually), so we avoid doing that.
1704 if test -f "$cache_file"; then
1705 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1706 echo "$as_me: loading cache $cache_file" >&6;}
1708 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
1709 *) .
"./$cache_file";;
1713 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1714 echo "$as_me: creating cache $cache_file" >&6;}
1718 ac_header_list
="$ac_header_list sys/time.h"
1719 ac_header_list
="$ac_header_list unistd.h"
1720 ac_func_list
="$ac_func_list alarm"
1721 # Check that the precious variables saved in the cache have kept the same
1723 ac_cache_corrupted
=false
1724 for ac_var
in $ac_precious_vars; do
1725 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1726 eval ac_new_set
=\
$ac_env_${ac_var}_set
1727 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
1728 eval ac_new_val
=\
$ac_env_${ac_var}_value
1729 case $ac_old_set,$ac_new_set in
1731 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1732 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1733 ac_cache_corrupted
=: ;;
1735 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1736 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1737 ac_cache_corrupted
=: ;;
1740 if test "x$ac_old_val" != "x$ac_new_val"; then
1741 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1742 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1743 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1744 echo "$as_me: former value: $ac_old_val" >&2;}
1745 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1746 echo "$as_me: current value: $ac_new_val" >&2;}
1747 ac_cache_corrupted
=:
1750 # Pass precious variables to config.status.
1751 if test "$ac_new_set" = set; then
1753 *\'*) ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1754 *) ac_arg
=$ac_var=$ac_new_val ;;
1756 case " $ac_configure_args " in
1757 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1758 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1762 if $ac_cache_corrupted; then
1763 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1764 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1765 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1766 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1767 { (exit 1); exit 1; }; }
1787 ac_cpp
='$CPP $CPPFLAGS'
1788 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1789 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1790 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1793 ac_config_headers
="$ac_config_headers src/config.h:src/config.in"
1796 test "$program_prefix" != NONE
&&
1797 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
1798 # Use a double $ so make ignores it.
1799 test "$program_suffix" != NONE
&&
1800 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
1801 # Double any \ or $. echo might interpret backslashes.
1802 # By default was `s,x,x', remove it if useless.
1803 cat <<\_ACEOF
>conftest.
sed
1804 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1806 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1810 lispdir
='${datadir}/emacs/${version}/lisp'
1811 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
1812 '${datadir}/emacs/site-lisp'
1813 lisppath
='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1814 etcdir
='${datadir}/emacs/${version}/etc'
1815 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
1816 docdir
='${datadir}/emacs/${version}/etc'
1817 gamedir
='${localstatedir}/games/emacs'
1823 # Check whether --with-gcc was given.
1824 if test "${with_gcc+set}" = set; then
1830 # Check whether --with-pop was given.
1831 if test "${with_pop+set}" = set; then
1832 withval
=$with_pop; if test "$withval" = yes; then
1833 cat >>confdefs.h
<<\_ACEOF
1834 #define MAIL_USE_POP 1
1840 cat >>confdefs.h
<<\_ACEOF
1841 #define MAIL_USE_POP 1
1849 # Check whether --with-kerberos was given.
1850 if test "${with_kerberos+set}" = set; then
1851 withval
=$with_kerberos; if test "$withval" = yes; then
1852 cat >>confdefs.h
<<\_ACEOF
1862 # Check whether --with-kerberos5 was given.
1863 if test "${with_kerberos5+set}" = set; then
1864 withval
=$with_kerberos5; if test "${with_kerberos5+set}" = set; then
1865 if test "${with_kerberos+set}" != set; then
1867 cat >>confdefs.h
<<\_ACEOF
1873 cat >>confdefs.h
<<\_ACEOF
1882 # Check whether --with-hesiod was given.
1883 if test "${with_hesiod+set}" = set; then
1884 withval
=$with_hesiod; if test "$withval" = yes; then
1886 cat >>confdefs.h
<<\_ACEOF
1895 # Check whether --with-sound was given.
1896 if test "${with_sound+set}" = set; then
1897 withval
=$with_sound;
1902 # Check whether --with-x-toolkit was given.
1903 if test "${with_x_toolkit+set}" = set; then
1904 withval
=$with_x_toolkit; case "${withval}" in
1905 y | ye |
yes ) val
=gtk
;;
1907 l | lu | luc | luci | lucid
) val
=lucid
;;
1908 a |
at | ath | athe | athen | athena
) val
=athena
;;
1909 m | mo | mot | moti | motif
) val
=motif
;;
1910 g | gt | gtk
) val
=gtk
;;
1912 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
1913 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1914 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
1915 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
1916 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1917 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
1918 { (exit 1); exit 1; }; }
1927 # Check whether --with-xpm was given.
1928 if test "${with_xpm+set}" = set; then
1933 # Check whether --with-jpeg was given.
1934 if test "${with_jpeg+set}" = set; then
1939 # Check whether --with-tiff was given.
1940 if test "${with_tiff+set}" = set; then
1945 # Check whether --with-gif was given.
1946 if test "${with_gif+set}" = set; then
1951 # Check whether --with-png was given.
1952 if test "${with_png+set}" = set; then
1957 # Check whether --with-gpm was given.
1958 if test "${with_gpm+set}" = set; then
1963 # Check whether --with-rsvg was given.
1964 if test "${with_rsvg+set}" = set; then
1969 # Check whether --with-gtk was given.
1970 if test "${with_gtk+set}" = set; then
1975 # Check whether --with-pkg-config-prog was given.
1976 if test "${with_pkg_config_prog+set}" = set; then
1977 withval
=$with_pkg_config_prog;
1981 # Check whether --with-toolkit-scroll-bars was given.
1982 if test "${with_toolkit_scroll_bars+set}" = set; then
1983 withval
=$with_toolkit_scroll_bars;
1987 # Check whether --with-xaw3d was given.
1988 if test "${with_xaw3d+set}" = set; then
1989 withval
=$with_xaw3d;
1993 # Check whether --with-xim was given.
1994 if test "${with_xim+set}" = set; then
1999 # Check whether --with-carbon was given.
2000 if test "${with_carbon+set}" = set; then
2001 withval
=$with_carbon;
2005 # Check whether --enable-carbon-app was given.
2006 if test "${enable_carbon_app+set}" = set; then
2007 enableval
=$enable_carbon_app; carbon_appdir_x
=${enableval}
2011 # Check whether --enable-asserts was given.
2012 if test "${enable_asserts+set}" = set; then
2013 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
2019 # Check whether --enable-maintainer-mode was given.
2020 if test "${enable_maintainer_mode+set}" = set; then
2021 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2023 USE_MAINTAINER_MODE
=no
2026 if test $USE_MAINTAINER_MODE = yes; then
2033 # Check whether --enable-locallisppath was given.
2034 if test "${enable_locallisppath+set}" = set; then
2035 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
2037 elif test "${enableval}" != "yes"; then
2038 locallisppath
=${enableval}
2043 #### Make srcdir absolute, if it isn't already. It's important to
2044 #### avoid running the path through pwd unnecessarily, since pwd can
2045 #### give you automounter prefixes, which can go away. We do all this
2046 #### so Emacs can find its files when run uninstalled.
2047 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2052 ## We may be able to use the $PWD environment variable to make this
2053 ## absolute. But sometimes PWD is inaccurate.
2054 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2055 ## but that tested only for a well-formed and valid PWD,
2056 ## it did not object when PWD was well-formed and valid but just wrong.
2057 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2061 srcdir
="`(cd ${srcdir}; pwd)`"
2064 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2067 #### Check if the source directory already has a configured system in it.
2068 if test `pwd` != `(cd ${srcdir} && pwd)` \
2069 && test -f "${srcdir}/src/config.h" ; then
2070 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2071 as a build directory right now; it has been configured in its own
2072 right. To configure in another directory as well, you MUST
2073 use GNU make. If you do not have GNU make, then you must
2074 now do \`make distclean' in ${srcdir},
2075 and then run $0 again." >&5
2076 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2077 as a build directory right now; it has been configured in its own
2078 right. To configure in another directory as well, you MUST
2079 use GNU make. If you do not have GNU make, then you must
2080 now do \`make distclean' in ${srcdir},
2081 and then run $0 again." >&2;}
2084 #### Given the configuration name, set machfile and opsysfile to the
2085 #### names of the m/*.h and s/*.h files we should use.
2087 ### Canonicalize the configuration name.
2090 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2091 if test -f "$ac_dir/install-sh"; then
2093 ac_install_sh
="$ac_aux_dir/install-sh -c"
2095 elif test -f "$ac_dir/install.sh"; then
2097 ac_install_sh
="$ac_aux_dir/install.sh -c"
2099 elif test -f "$ac_dir/shtool"; then
2101 ac_install_sh
="$ac_aux_dir/shtool install -c"
2105 if test -z "$ac_aux_dir"; then
2106 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2107 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2108 { (exit 1); exit 1; }; }
2111 # These three variables are undocumented and unsupported,
2112 # and are intended to be withdrawn in a future Autoconf release.
2113 # They can cause serious problems if a builder's source tree is in a directory
2114 # whose full name contains unusual characters.
2115 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2116 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2117 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2120 # Make sure we can run config.sub.
2121 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2122 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2123 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2124 { (exit 1); exit 1; }; }
2126 { echo "$as_me:$LINENO: checking build system type" >&5
2127 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2128 if test "${ac_cv_build+set}" = set; then
2129 echo $ECHO_N "(cached) $ECHO_C" >&6
2131 ac_build_alias
=$build_alias
2132 test "x$ac_build_alias" = x
&&
2133 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2134 test "x$ac_build_alias" = x
&&
2135 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2136 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2137 { (exit 1); exit 1; }; }
2138 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2139 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2140 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2141 { (exit 1); exit 1; }; }
2144 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2145 echo "${ECHO_T}$ac_cv_build" >&6; }
2146 case $ac_cv_build in
2148 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2149 echo "$as_me: error: invalid value of canonical build" >&2;}
2150 { (exit 1); exit 1; }; };;
2153 ac_save_IFS
=$IFS; IFS
='-'
2159 # Remember, the first character of IFS is used to create $*,
2160 # except with old shells:
2163 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2166 { echo "$as_me:$LINENO: checking host system type" >&5
2167 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2168 if test "${ac_cv_host+set}" = set; then
2169 echo $ECHO_N "(cached) $ECHO_C" >&6
2171 if test "x$host_alias" = x
; then
2172 ac_cv_host
=$ac_cv_build
2174 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2175 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2176 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2177 { (exit 1); exit 1; }; }
2181 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2182 echo "${ECHO_T}$ac_cv_host" >&6; }
2185 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2186 echo "$as_me: error: invalid value of canonical host" >&2;}
2187 { (exit 1); exit 1; }; };;
2190 ac_save_IFS
=$IFS; IFS
='-'
2196 # Remember, the first character of IFS is used to create $*,
2197 # except with old shells:
2200 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2204 configuration
=${host_alias-${build_alias-$host}}
2208 ### If you add support for a new configuration, add code to this
2209 ### switch statement to recognize your configuration name and select
2210 ### the appropriate operating system and machine description files.
2212 ### You would hope that you could choose an m/*.h file pretty much
2213 ### based on the machine portion of the configuration name, and an s-
2214 ### file based on the operating system portion. However, it turns out
2215 ### that each m/*.h file is pretty manufacturer-specific - for
2216 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
2217 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
2218 ### machines. So we basically have to have a special case for each
2219 ### configuration name.
2221 ### As far as handling version numbers on operating systems is
2222 ### concerned, make sure things will fail in a fixable way. If
2223 ### /etc/MACHINES doesn't say anything about version numbers, be
2224 ### prepared to handle anything reasonably. If version numbers
2225 ### matter, be sure /etc/MACHINES says something about it.
2227 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2228 ### "System V Release 4"; he writes, "The old convention encouraged
2229 ### confusion between `system' and `release' levels'."
2231 machine
='' opsys
='' unported
=no
2232 case "${canonical}" in
2237 case "${canonical}" in
2238 alpha
*-*-freebsd*) machine
=alpha
;;
2239 ia64-
*-freebsd*) machine
=ia64
;;
2240 sparc64-
*-freebsd*) machine
=sparc
;;
2241 powerpc-
*-freebsd*) machine
=macppc
;;
2242 i
[3456]86-*-freebsd*) machine
=intel386
;;
2243 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2250 if test -f /usr
/lib
/crti.o
; then
2252 cat >>confdefs.h
<<\_ACEOF
2258 case "${canonical}" in
2259 alpha
*-*-netbsd*) machine
=alpha
;;
2260 i
[3456]86-*-netbsd*) machine
=intel386
;;
2262 # This is somewhat bogus.
2263 machine
=hp9000s300
;;
2264 mips-
*-netbsd*) machine
=pmax
;;
2265 mipsel-
*-netbsd*) machine
=pmax
;;
2266 mipseb-
*-netbsd*) machine
=pmax
;;
2267 ns32k-
*-netbsd*) machine
=ns32000
;;
2268 powerpc-
*-netbsd*) machine
=macppc
;;
2269 sparc
*-*-netbsd*) machine
=sparc
;;
2270 vax-
*-netbsd*) machine
=vax
;;
2271 arm-
*-netbsd*) machine
=arm
;;
2272 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2273 hppa-
*-netbsd*) machine
=hp800
;;
2274 shle-
*-netbsd*) machine
=sh3el
;;
2281 case "${canonical}" in
2282 alpha
*-*-openbsd*) machine
=alpha
;;
2283 arm-
*-openbsd*) machine
=arm
;;
2284 hppa-
*-openbsd*) machine
=hp9000s300
;;
2285 i386-
*-openbsd*) machine
=intel386
;;
2286 m68k-
*-openbsd*) machine
=hp9000s300
;;
2287 m88k-
*-openbsd*) machine
=aviion
;;
2288 mips64-
*-openbsd*) machine
=mips64
;;
2289 powerpc-
*-openbsd*) machine
=macppc
;;
2290 sh-
*-openbsd*) machine
=sh3el
;;
2291 sparc
*-*-openbsd*) machine
=sparc
;;
2292 vax-
*-openbsd*) machine
=vax
;;
2293 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2300 case "${canonical}" in
2301 i
[3456]86-*-lynxos*) machine
=intel386
;;
2302 powerpc-
*-lynxos*) machine
=powerpc
;;
2307 arm-acorn-riscix1.1
* )
2308 machine
=acorn opsys
=riscix1-1
2310 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
2311 ## This name is riscix12 instead of riscix1.2
2312 ## to avoid a file name conflict on MSDOS.
2313 machine
=acorn opsys
=riscix12
2319 case "${canonical}" in
2320 i
[345]86-*-bsdi*) machine
=intel386
;;
2321 sparc-
*-bsdi*) machine
=sparc
;;
2322 powerpc-
*-bsdi*) machine
=macppc
;;
2324 case "${canonical}" in
2325 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
2326 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
2327 *-*-bsdi2* ) opsys
=bsdos2-1
;;
2328 *-*-bsdi3* ) opsys
=bsdos3
;;
2329 *-*-bsdi[45]* ) opsys
=bsdos4
;;
2334 ## Strictly speaking, we need the version of the alliant operating
2335 ## system to choose the right machine file, but currently the
2336 ## configuration name doesn't tell us enough to choose the right
2337 ## one; we need to give alliants their own operating system name to
2338 ## do this right. When someone cares, they can help us.
2340 machine
=alliant4 opsys
=bsd4-2
2343 machine
=alliant-2800 opsys
=bsd4-3
2346 ## Alpha (DEC) machines.
2348 machine
=alpha opsys
=osf1
2349 # This is needed to find X11R6.1 libraries for certain tests.
2350 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2351 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2352 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2353 # due to non-traditional preprocessing with the current compiler
2354 # defaults. OSF 4 can also have that compiler version, and there
2355 # seems always to have been a usable /usr/bin/cpp.
2356 NON_GNU_CPP
=/usr
/bin
/cpp
2357 case "${canonical}" in
2358 alpha
*-dec-osf[5-9]*)
2363 alpha
*-*-linux-gnu* )
2364 machine
=alpha opsys
=gnu-linux
2368 machine
=arm opsys
=gnu-linux
2373 machine
=altos opsys
=usg5-2
2378 machine
=amdahl opsys
=usg5-2-2
2381 ## Apollo, Domain/OS
2383 machine
=apollo opsys
=bsd4-3
2386 ## Apple Darwin / Mac OS X
2388 case "${canonical}" in
2389 i
[3456]86-* ) machine
=intel386
;;
2390 powerpc-
* ) machine
=powermac
;;
2394 # Define CPP as follows to make autoconf work correctly.
2395 CPP
="${CC-cc} -E -no-cpp-precomp"
2396 # Use fink packages if available.
2397 if test -d /sw
/include
&& test -d /sw
/lib
; then
2398 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2399 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2400 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2404 ## AT&T 3b2, 3b5, 3b15, 3b20
2406 machine
=att3b opsys
=usg5-2-2
2409 ## AT&T 3b1 - The Mighty Unix PC!
2411 machine
=7300 opsys
=usg5-2-2
2416 machine
=ibmrs6000 opsys
=aix3-2
2421 machine
=dpx2 opsys
=usg5-3
2426 machine
=sps7 opsys
=usg5-2
2429 ## CCI 5/32, 6/32 -- see "Tahoe".
2432 ## I don't know what configuration name to use for this; config.sub
2433 ## doesn't seem to know anything about it. Hey, Celerity users, get
2434 ## in touch with us!
2435 celerity-celerity-bsd
* )
2436 machine
=celerity opsys
=bsd4-2
2440 ## What operating systems does this chip run that Emacs has been
2444 ## We'll use the catch-all code at the bottom to guess the
2445 ## operating system.
2449 mips-compaq-nonstopux
* )
2450 machine
=nonstopux opsys
=nonstopux
2454 *-convex-bsd* |
*-convex-convexos* )
2455 machine
=convex opsys
=bsd4-3
2456 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2457 NON_GNU_CPP
="cc -E -P"
2461 i
[3456]86-cubix-sysv* )
2462 machine
=intel386 opsys
=usg5-3
2466 cydra
*-cydrome-sysv* )
2467 machine
=cydra5 opsys
=usg5-3
2470 ## Data General AViiON Machines
2471 ## DG changed naming conventions with the release of 5.4.4.10, they
2472 ## dropped the initial 5.4 but left the intervening R. Because of the
2473 ## R this shouldn't conflict with older versions of the OS (which I
2474 ## think were named like dgux4.*). In addition, DG new AViiONs series
2475 ## uses either Motorola M88k or Intel Pentium CPUs.
2476 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
2477 machine
=aviion opsys
=dgux4
2479 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
2480 ## This name is dgux5-4-3 instead of dgux5-4r3
2481 ## to avoid a file name conflict on MSDOS.
2482 machine
=aviion opsys
=dgux5-4-3
2484 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
2485 machine
=aviion opsys
=dgux5-4r2
2488 machine
=aviion opsys
=dgux
2491 ## Data General AViiON Intel (x86) Machines
2492 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2493 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2494 i
[345]86-dg-dguxR4* )
2495 machine
=aviion-intel opsys
=dgux4
2499 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
2500 machine
=pmax opsys
=bsd4-2
2502 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
2503 machine
=pmax opsys
=bsd4-3
2506 machine
=pmax opsys
=ultrix4-3
2509 machine
=pmax opsys
=osf1
2511 mips-dec-mach_bsd4.3
* )
2512 machine
=pmax opsys
=mach-bsd4-3
2515 ## Motorola Delta machines
2516 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
2517 machine
=delta opsys
=usg5-3
2518 if test -z "`type gnucc | grep 'not found'`"
2520 if test -s /etc
/167config
2521 then CC
="gnucc -m68040"
2522 else CC
="gnucc -m68881"
2525 if test -z "`type gcc | grep 'not found'`"
2531 m88k-motorola-sysv4
* )
2532 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2533 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2534 # I hope there are not other 4.0 versions for this machine
2535 # which really need usg5-4 instead.
2536 machine
=delta88k opsys
=usg5-4-2
2538 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
2539 machine
=delta88k opsys
=usg5-3
2544 machine
=dual opsys
=usg5-2
2546 m68
*-dual-uniplus* )
2547 machine
=dual opsys
=unipl5-2
2552 machine
=elxsi opsys
=usg5-2
2557 machine
=ns16000 opsys
=umax
2560 ## The GEC 63 - apparently, this port isn't really finished yet.
2561 # I'm sure we finished off the last of the machines, though. -- fx
2563 ## Gould Power Node and NP1
2565 machine
=gould opsys
=bsd4-2
2568 machine
=gould opsys
=bsd4-3
2571 machine
=gould-np1 opsys
=bsd4-3
2574 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2575 ## as far as Emacs is concerned).
2577 # Build needs to be different on 7.0 and later releases
2578 case "`uname -r`" in
2579 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
2580 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
2582 NON_GNU_CPP
="/lib/cpp"
2584 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2586 machine
=nh3000 opsys
=cxux
2588 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2589 powerpc-harris-powerunix
)
2590 machine
=nh6000 opsys
=powerunix
2591 NON_GNU_CPP
="cc -Xo -E -P"
2593 ## SR2001/SR2201 running HI-UX/MPP
2594 hppa1.1
-hitachi-hiuxmpp* )
2595 machine
=sr2k opsys
=hiuxmpp
2597 hppa1.1
-hitachi-hiuxwe2* )
2598 machine
=sr2k opsys
=hiuxwe2
2601 xps
*-honeywell-sysv* )
2602 machine
=xps100 opsys
=usg5-2
2605 ## HP 9000 series 200 or 300
2607 machine
=hp9000s300 opsys
=bsd4-3
2609 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2611 case "`uname -r`" in
2612 ## Someone's system reports A.B8.05 for this.
2613 ## I wonder what other possibilities there are.
2614 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2615 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2616 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2617 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2618 *) machine
=hp9000s300 opsys
=hpux
;;
2622 ## HP 9000 series 700 and 800, running HP/UX
2624 machine
=hp800 opsys
=hpux
2627 machine
=hp800 opsys
=hpux8
2629 hppa
*-hp-hpux9shr* )
2630 machine
=hp800 opsys
=hpux9shr
2633 machine
=hp800 opsys
=hpux9
2635 hppa
*-hp-hpux10.2
* )
2636 machine
=hp800 opsys
=hpux10-20
2639 machine
=hp800 opsys
=hpux10
2641 hppa
*-hp-hpux1[1-9]* )
2642 machine
=hp800 opsys
=hpux11
2643 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2646 hppa
*-*-linux-gnu* )
2647 machine
=hp800 opsys
=gnu-linux
2650 ## HP 9000 series 700 and 800, running HP/UX
2652 ## Cross-compilation? Nah!
2653 case "`uname -r`" in
2654 ## Someone's system reports A.B8.05 for this.
2655 ## I wonder what other possibilities there are.
2656 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2657 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2658 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2659 *) machine
=hp800 opsys
=hpux10
;;
2663 machine
=hp800 opsys
=nextstep
2668 machine
=orion opsys
=bsd4-2
2670 clipper-orion-bsd
* )
2671 machine
=orion105 opsys
=bsd4-2
2675 i
[3456]86-ibm-aix1.1
* )
2676 machine
=ibmps2-aix opsys
=usg5-2-2
2678 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2679 machine
=ibmps2-aix opsys
=usg5-3
2682 machine
=ibm370aix opsys
=usg5-3
2685 machine
=ibms390 opsys
=gnu-linux
2687 s390x-
*-linux-gnu* )
2688 machine
=ibms390x opsys
=gnu-linux
2690 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2691 machine
=ibmrs6000 opsys
=aix3-1
2693 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2694 machine
=ibmrs6000 opsys
=aix3-2-5
2696 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2697 machine
=ibmrs6000 opsys
=aix4-1
2699 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2700 machine
=ibmrs6000 opsys
=aix4-2
2702 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
2703 machine
=ibmrs6000 opsys
=aix4-2
2705 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2706 machine
=ibmrs6000 opsys
=aix4-2
2708 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2709 machine
=ibmrs6000 opsys
=aix4
2711 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2712 machine
=ibmrs6000 opsys
=aix4-1
2714 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2715 machine
=ibmrs6000 opsys
=aix3-2
2718 machine
=ibmrt opsys
=bsd4-3
2721 machine
=ibmrt opsys
=bsd4-2
2724 machine
=ibmrt opsys
=bsd4-3
2727 machine
=ibmrt opsys
=bsd4-2
2730 machine
=ibmrt opsys
=bsd4-3
2733 machine
=ibmrt opsys
=bsd4-3
2736 machine
=ibmrt-aix opsys
=usg5-2-2
2739 ## Integrated Solutions `Optimum V'
2741 machine
=isi-ov opsys
=bsd4-2
2744 machine
=isi-ov opsys
=bsd4-3
2747 ## Intel 386 machines where we do care about the manufacturer
2748 i
[3456]86-intsys-sysv* )
2749 machine
=is386 opsys
=usg5-2-2
2753 i
[3456]86-prime-sysv* )
2754 machine
=i386 opsys
=usg5-3
2757 ## Sequent Symmetry running Dynix
2758 i
[3456]86-sequent-bsd* )
2759 machine
=symmetry opsys
=bsd4-3
2762 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2763 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2764 machine
=sequent-ptx opsys
=ptx4
2765 NON_GNU_CPP
=/lib
/cpp
2768 ## Sequent Symmetry running DYNIX/ptx
2769 ## Use the old cpp rather than the newer ANSI one.
2770 i
[3456]86-sequent-ptx* )
2771 machine
=sequent-ptx opsys
=ptx
2772 NON_GNU_CPP
="/lib/cpp"
2775 ## ncr machine running svr4.3.
2776 i
[3456]86-ncr-sysv4.3
)
2777 machine
=ncr386 opsys
=usg5-4-3
2780 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2781 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2782 i
[3456]86-ncr-sysv* )
2783 machine
=ncr386 opsys
=usg5-4-2
2786 ## Intel Paragon OSF/1
2788 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2793 machine
=i860 opsys
=usg5-4
2794 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2795 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2798 ## Macintosh PowerPC
2799 powerpc
*-*-linux-gnu* )
2800 machine
=macppc opsys
=gnu-linux
2803 ## Masscomp machines
2804 m68
*-masscomp-rtu* )
2805 machine
=masscomp opsys
=rtu
2808 ## Megatest machines
2809 m68
*-megatest-bsd* )
2810 machine
=mega68 opsys
=bsd4-2
2813 ## Workstations sold by MIPS
2814 ## This is not necessarily all workstations using the MIPS processor -
2815 ## Irises are produced by SGI, and DECstations by DEC.
2817 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2818 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2819 ## it gives for choosing between the alternatives seems to be "Use
2820 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2821 ## the BSD world." I'll assume that these are instructions for
2822 ## handling two odd situations, and that every other situation
2823 ## should use mips.h and usg5-2-2, they being listed first.
2826 ## Fall through to the general code at the bottom to decide on the OS.
2828 mips-mips-riscos4
* )
2829 machine
=mips4 opsys
=bsd4-3
2830 NON_GNU_CC
="cc -systype bsd43"
2831 NON_GNU_CPP
="cc -systype bsd43 -E"
2833 mips-mips-riscos5
* )
2834 machine
=mips4 opsys
=riscos5
2835 NON_GNU_CC
="cc -systype bsd43"
2836 NON_GNU_CPP
="cc -systype bsd43 -E"
2839 machine
=mips opsys
=bsd4-3
2842 machine
=mips opsys
=usg5-2-2
2846 m68
*-next-* | m68k-
*-nextstep* )
2847 machine
=m68k opsys
=nextstep
2850 ## The complete machine from National Semiconductor
2852 machine
=ns32000 opsys
=usg5-2
2856 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2857 machine
=tower32 opsys
=usg5-2-2
2859 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2860 machine
=tower32v3 opsys
=usg5-3
2865 machine
=ews4800 opsys
=ux4800
2868 ## Nixdorf Targon 31
2869 m68
*-nixdorf-sysv* )
2870 machine
=targon31 opsys
=usg5-2-2
2875 machine
=nu opsys
=usg5-2
2880 machine
=plexus opsys
=usg5-2
2884 ## I don't really have any idea what sort of processor the Pyramid has,
2885 ## so I'm assuming it is its own architecture.
2886 pyramid-pyramid-bsd
* )
2887 machine
=pyramid opsys
=bsd4-2
2891 ns32k-sequent-bsd4.2
* )
2892 machine
=sequent opsys
=bsd4-2
2894 ns32k-sequent-bsd4.3
* )
2895 machine
=sequent opsys
=bsd4-3
2899 mips-siemens-sysv
* | mips-sni-sysv
*)
2900 machine
=mips-siemens opsys
=usg5-4
2901 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2902 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2905 ## Silicon Graphics machines
2906 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2908 machine
=irist opsys
=iris3-5
2910 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2911 machine
=irist opsys
=iris3-6
2915 machine
=iris4d opsys
=irix3-3
2918 machine
=iris4d opsys
=irix4-0
2921 machine
=iris4d opsys
=irix6-5
2922 # Without defining _LANGUAGE_C, things get masked out in the headers
2923 # so that, for instance, grepping for `free' in stdlib.h fails and
2924 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2925 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2926 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2929 machine
=iris4d opsys
=irix6-0
2930 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2931 # but presumably it does no harm.
2932 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2933 # -32 probably isn't necessary in later v.6s -- anyone know which?
2934 NON_GCC_TEST_OPTIONS
=-32
2936 mips-sgi-irix5.
[01]* )
2937 machine
=iris4d opsys
=irix5-0
2939 mips-sgi-irix5
* | mips-sgi-irix
* )
2940 machine
=iris4d opsys
=irix5-2
2945 machine
=news opsys
=bsd4-2
2948 machine
=news opsys
=bsd4-3
2950 m68
*-sony-newsos3* | m68
*-sony-news3*)
2951 machine
=news opsys
=bsd4-3
2953 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2954 machine
=news-risc opsys
=bsd4-3
2956 mips-sony-newsos6
* )
2957 machine
=news-r6 opsys
=newsos6
2960 machine
=news-risc opsys
=newsos5
2965 machine
=stride opsys
=usg5-2
2969 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2970 machine
=sparc opsys
=gnu-linux
2973 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2974 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2975 | rs6000-
*-solaris2*)
2976 case "${canonical}" in
2977 m68
*-sunos1* ) machine
=sun1
;;
2978 m68
*-sunos2* ) machine
=sun2
;;
2979 m68
* ) machine
=sun3
;;
2980 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2981 i
[3456]86-*-* ) machine
=intel386
;;
2982 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2983 powerpcle
* ) machine
=powerpcle
;;
2984 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2985 sparc
* ) machine
=sparc
;;
2988 case "${canonical}" in
2989 ## The Sun386 didn't get past 4.0.
2990 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2991 *-sunos4.0
* ) opsys
=sunos4-0
;;
2992 *-sunos4.1.
[3-9]*noshare
)
2993 ## This name is sunos413 instead of sunos4-1-3
2994 ## to avoid a file name conflict on MSDOS.
2996 NON_GNU_CPP
=/usr
/lib
/cpp
2997 NON_GCC_TEST_OPTIONS
=-Bstatic
2998 GCC_TEST_OPTIONS
=-static
3000 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
3002 NON_GNU_CPP
=/usr
/lib
/cpp
3004 *-sunos4* |
*-sunos )
3006 NON_GCC_TEST_OPTIONS
=-Bstatic
3007 GCC_TEST_OPTIONS
=-static
3009 *-sunos5.3
* |
*-solaris2.3
* )
3011 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3013 *-sunos5.4
* |
*-solaris2.4
* )
3015 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3018 *-sunos5.5
* |
*-solaris2.5
* )
3020 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3023 *-sunos5.6
* |
*-solaris2.6
* )
3025 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3028 *-sunos5* |
*-solaris* )
3030 emacs_check_sunpro_c
=yes
3031 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3035 ## Watch out for a compiler that we know will not work.
3036 case "${canonical}" in
3037 *-solaris* |
*-sunos5* )
3038 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
3039 ## /usr/ucb/cc doesn't work;
3040 ## we should find some other compiler that does work.
3048 machine
=sparc opsys
=nextstep
3052 m68
*-tadpole-sysv* )
3053 machine
=tad68k opsys
=usg5-3
3057 tahoe-tahoe-bsd4.2
* )
3058 machine
=tahoe opsys
=bsd4-2
3060 tahoe-tahoe-bsd4.3
* )
3061 machine
=tahoe opsys
=bsd4-3
3064 ## Tandem Integrity S2
3066 machine
=tandem-s2 opsys
=usg5-3
3070 m88k-tektronix-sysv3
* )
3071 machine
=tekxd88 opsys
=usg5-3
3074 ## Tektronix 16000 box (6130?)
3075 ns16k-tektronix-bsd
* )
3076 machine
=ns16000 opsys
=bsd4-2
3079 ## src/m/tek4300.h hints that this is a m68k machine.
3080 m68
*-tektronix-bsd* )
3081 machine
=tek4300 opsys
=bsd4-3
3085 ## We seem to have lost the machine-description file titan.h!
3087 machine
=titan opsys
=usg5-3
3090 ## Ustation E30 (SS5E)
3091 m68
*-unisys-uniplus* )
3092 machine
=ustation opsystem
=unipl5-2
3098 case "${canonical}" in
3099 *-bsd4.1
* ) opsys
=bsd4-1
;;
3100 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
3101 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
3102 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
3103 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
3104 *-vms* ) opsys
=vms
;;
3110 ns16k-whitechapel-
* )
3112 ## We don't know what sort of OS runs on these; we'll let the
3113 ## operating system guessing code below try.
3118 machine
=wicat opsys
=usg5-2
3123 machine
=ia64 opsys
=gnu-linux
3126 ## Intel 386 machines where we don't care about the manufacturer
3129 case "${canonical}" in
3130 *-cygwin ) opsys
=cygwin
;;
3131 *-darwin* ) opsys
=darwin
3132 CPP
="${CC-cc} -E -no-cpp-precomp"
3134 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
3135 *-isc2.2
* ) opsys
=isc2-2
;;
3136 *-isc4.0
* ) opsys
=isc4-0
;;
3137 *-isc4.
* ) opsys
=isc4-1
3138 GCC_TEST_OPTIONS
=-posix
3139 NON_GCC_TEST_OPTIONS
=-Xp
3141 *-isc* ) opsys
=isc3-0
;;
3142 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
3143 *-esix* ) opsys
=esix
;;
3144 *-xenix* ) opsys
=xenix
;;
3145 *-linux-gnu* ) opsys
=gnu-linux
;;
3146 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
3147 *-sco3.2v5
* ) opsys
=sco5
3148 NON_GNU_CPP
=/lib
/cpp
3149 # Prevent -belf from being passed to $CPP.
3150 # /lib/cpp does not accept it.
3151 OVERRIDE_CPPFLAGS
=" "
3153 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3154 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3155 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3156 *-386bsd* ) opsys
=386bsd
;;
3157 *-nextstep* ) opsys
=nextstep
;;
3158 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3162 ## m68k Linux-based GNU system
3164 machine
=m68k opsys
=gnu-linux
3167 ## Mips Linux-based GNU system
3168 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
3169 machine
=mips opsys
=gnu-linux
3173 sparc-fujitsu-sysv4
* )
3174 machine
=sparc opsys
=uxpds
3175 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3180 f301-fujitsu-uxpv4.1
)
3181 machine
=f301 opsys
=uxpv
3184 ## AMD x86-64 Linux-based GNU system
3185 x86_64-
*-linux-gnu* )
3186 machine
=amdx86-64 opsys
=gnu-linux
3189 ## Tensilica Xtensa Linux-based GNU system
3190 xtensa-
*-linux-gnu* )
3191 machine
=xtensa opsys
=gnu-linux
3199 ### If the code above didn't choose an operating system, just choose
3200 ### an operating system based on the configuration name. You really
3201 ### only want to use this when you have no idea what the right
3202 ### operating system is; if you know what operating systems a machine
3203 ### runs, it's cleaner to make it explicit in the case statement
3205 if test x
"${opsys}" = x
; then
3206 case "${canonical}" in
3207 *-gnu* ) opsys
=gnu
;;
3208 *-bsd4.
[01] ) opsys
=bsd4-1
;;
3209 *-bsd4.2
) opsys
=bsd4-2
;;
3210 *-bsd4.3
) opsys
=bsd4-3
;;
3211 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
3212 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
3213 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
3214 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
3215 *-sysv4.2uw
* ) opsys
=unixware
;;
3216 *-sysv5uw* ) opsys
=unixware
;;
3217 *-sysv5OpenUNIX* ) opsys
=unixware
;;
3218 *-sysv4.1
* |
*-sysvr4.1
* )
3219 NON_GNU_CPP
=/usr
/lib
/cpp
3221 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
3222 if [ x
$NON_GNU_CPP = x
]; then
3223 if [ -f /usr
/ccs
/lib
/cpp
]; then
3224 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3226 NON_GNU_CPP
=/lib
/cpp
3230 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
3239 if test $unported = yes; then
3240 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3241 Check \`etc/MACHINES' for recognized configuration names." >&5
3242 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3243 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3244 { (exit 1); exit 1; }; }
3247 machfile
="m/${machine}.h"
3248 opsysfile
="s/${opsys}.h"
3251 #### Choose a compiler.
3252 test -n "$CC" && cc_specified
=yes
3254 # Save the value of CFLAGS that the user specified.
3255 SPECIFIED_CFLAGS
="$CFLAGS"
3258 "yes" ) CC
="gcc" GCC
=yes ;;
3259 "no" ) : ${CC=cc} ;;
3263 ac_cpp
='$CPP $CPPFLAGS'
3264 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3265 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3266 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3267 if test -n "$ac_tool_prefix"; then
3268 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3269 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3270 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3272 if test "${ac_cv_prog_CC+set}" = set; then
3273 echo $ECHO_N "(cached) $ECHO_C" >&6
3275 if test -n "$CC"; then
3276 ac_cv_prog_CC
="$CC" # Let the user override the test.
3278 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3282 test -z "$as_dir" && as_dir
=.
3283 for ac_exec_ext
in '' $ac_executable_extensions; do
3284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3285 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3296 if test -n "$CC"; then
3297 { echo "$as_me:$LINENO: result: $CC" >&5
3298 echo "${ECHO_T}$CC" >&6; }
3300 { echo "$as_me:$LINENO: result: no" >&5
3301 echo "${ECHO_T}no" >&6; }
3306 if test -z "$ac_cv_prog_CC"; then
3308 # Extract the first word of "gcc", so it can be a program name with args.
3309 set dummy gcc
; ac_word
=$2
3310 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3312 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3313 echo $ECHO_N "(cached) $ECHO_C" >&6
3315 if test -n "$ac_ct_CC"; then
3316 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3318 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3322 test -z "$as_dir" && as_dir
=.
3323 for ac_exec_ext
in '' $ac_executable_extensions; do
3324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3325 ac_cv_prog_ac_ct_CC
="gcc"
3326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3335 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3336 if test -n "$ac_ct_CC"; then
3337 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3338 echo "${ECHO_T}$ac_ct_CC" >&6; }
3340 { echo "$as_me:$LINENO: result: no" >&5
3341 echo "${ECHO_T}no" >&6; }
3344 if test "x$ac_ct_CC" = x
; then
3347 case $cross_compiling:$ac_tool_warned in
3349 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3350 whose name does not start with the host triplet. If you think this
3351 configuration is useful to you, please write to autoconf@gnu.org." >&5
3352 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3353 whose name does not start with the host triplet. If you think this
3354 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3355 ac_tool_warned
=yes ;;
3363 if test -z "$CC"; then
3364 if test -n "$ac_tool_prefix"; then
3365 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3366 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3367 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3369 if test "${ac_cv_prog_CC+set}" = set; then
3370 echo $ECHO_N "(cached) $ECHO_C" >&6
3372 if test -n "$CC"; then
3373 ac_cv_prog_CC
="$CC" # Let the user override the test.
3375 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3379 test -z "$as_dir" && as_dir
=.
3380 for ac_exec_ext
in '' $ac_executable_extensions; do
3381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3382 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3393 if test -n "$CC"; then
3394 { echo "$as_me:$LINENO: result: $CC" >&5
3395 echo "${ECHO_T}$CC" >&6; }
3397 { echo "$as_me:$LINENO: result: no" >&5
3398 echo "${ECHO_T}no" >&6; }
3404 if test -z "$CC"; then
3405 # Extract the first word of "cc", so it can be a program name with args.
3406 set dummy cc
; ac_word
=$2
3407 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3409 if test "${ac_cv_prog_CC+set}" = set; then
3410 echo $ECHO_N "(cached) $ECHO_C" >&6
3412 if test -n "$CC"; then
3413 ac_cv_prog_CC
="$CC" # Let the user override the test.
3416 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3420 test -z "$as_dir" && as_dir
=.
3421 for ac_exec_ext
in '' $ac_executable_extensions; do
3422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3423 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3424 ac_prog_rejected
=yes
3428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3435 if test $ac_prog_rejected = yes; then
3436 # We found a bogon in the path, so make sure we never use it.
3437 set dummy
$ac_cv_prog_CC
3439 if test $# != 0; then
3440 # We chose a different compiler from the bogus one.
3441 # However, it has the same basename, so the bogon will be chosen
3442 # first if we set CC to just the basename; use the full file name.
3444 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3450 if test -n "$CC"; then
3451 { echo "$as_me:$LINENO: result: $CC" >&5
3452 echo "${ECHO_T}$CC" >&6; }
3454 { echo "$as_me:$LINENO: result: no" >&5
3455 echo "${ECHO_T}no" >&6; }
3460 if test -z "$CC"; then
3461 if test -n "$ac_tool_prefix"; then
3462 for ac_prog
in cl.exe
3464 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3465 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3466 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3468 if test "${ac_cv_prog_CC+set}" = set; then
3469 echo $ECHO_N "(cached) $ECHO_C" >&6
3471 if test -n "$CC"; then
3472 ac_cv_prog_CC
="$CC" # Let the user override the test.
3474 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3478 test -z "$as_dir" && as_dir
=.
3479 for ac_exec_ext
in '' $ac_executable_extensions; do
3480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3481 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3492 if test -n "$CC"; then
3493 { echo "$as_me:$LINENO: result: $CC" >&5
3494 echo "${ECHO_T}$CC" >&6; }
3496 { echo "$as_me:$LINENO: result: no" >&5
3497 echo "${ECHO_T}no" >&6; }
3501 test -n "$CC" && break
3504 if test -z "$CC"; then
3506 for ac_prog
in cl.exe
3508 # Extract the first word of "$ac_prog", so it can be a program name with args.
3509 set dummy
$ac_prog; ac_word
=$2
3510 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3512 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3513 echo $ECHO_N "(cached) $ECHO_C" >&6
3515 if test -n "$ac_ct_CC"; then
3516 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3518 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3522 test -z "$as_dir" && as_dir
=.
3523 for ac_exec_ext
in '' $ac_executable_extensions; do
3524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3525 ac_cv_prog_ac_ct_CC
="$ac_prog"
3526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3535 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3536 if test -n "$ac_ct_CC"; then
3537 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3538 echo "${ECHO_T}$ac_ct_CC" >&6; }
3540 { echo "$as_me:$LINENO: result: no" >&5
3541 echo "${ECHO_T}no" >&6; }
3545 test -n "$ac_ct_CC" && break
3548 if test "x$ac_ct_CC" = x
; then
3551 case $cross_compiling:$ac_tool_warned in
3553 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3554 whose name does not start with the host triplet. If you think this
3555 configuration is useful to you, please write to autoconf@gnu.org." >&5
3556 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3557 whose name does not start with the host triplet. If you think this
3558 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3559 ac_tool_warned
=yes ;;
3568 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3569 See \`config.log' for more details." >&5
3570 echo "$as_me: error: no acceptable C compiler found in \$PATH
3571 See \`config.log' for more details." >&2;}
3572 { (exit 1); exit 1; }; }
3574 # Provide some information about the compiler.
3575 echo "$as_me:$LINENO: checking for C compiler version" >&5
3576 ac_compiler
=`set X $ac_compile; echo $2`
3577 { (ac_try
="$ac_compiler --version >&5"
3579 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3580 *) ac_try_echo=$ac_try;;
3582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3583 (eval "$ac_compiler --version >&5") 2>&5
3585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586 (exit $ac_status); }
3587 { (ac_try="$ac_compiler -v >&5"
3589 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3590 *) ac_try_echo
=$ac_try;;
3592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3593 (eval "$ac_compiler -v >&5") 2>&5
3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596 (exit $ac_status); }
3597 { (ac_try
="$ac_compiler -V >&5"
3599 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3600 *) ac_try_echo=$ac_try;;
3602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3603 (eval "$ac_compiler -V >&5") 2>&5
3605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606 (exit $ac_status); }
3608 cat >conftest.$ac_ext <<_ACEOF
3611 cat confdefs.h >>conftest.$ac_ext
3612 cat >>conftest.$ac_ext <<_ACEOF
3613 /* end confdefs.h. */
3623 ac_clean_files_save=$ac_clean_files
3624 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3625 # Try to create an executable without -o first, disregard a.out.
3626 # It will help us diagnose broken compilers, and finding out an intuition
3628 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3629 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3630 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3632 # List of possible output files, starting from the most likely.
3633 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
3634 # only as a last resort. b.out is created by i960 compilers.
3635 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
3637 # The IRIX 6 linker writes into existing files which may not be
3638 # executable, retaining their permissions. Remove them first so a
3639 # subsequent execution test works.
3641 for ac_file in $ac_files
3644 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3645 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3650 if { (ac_try="$ac_link_default"
3652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3653 *) ac_try_echo=$ac_try;;
3655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3656 (eval "$ac_link_default") 2>&5
3658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659 (exit $ac_status); }; then
3660 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3661 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3662 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3663 # so that the user can short-circuit this test for compilers unknown to
3665 for ac_file
in $ac_files ''
3667 test -f "$ac_file" ||
continue
3669 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
3672 # We found the default executable, but exeext='' is most
3676 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3678 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3680 # We set ac_cv_exeext here because the later test for it is not
3681 # safe: cross compilers may not add the suffix if given an `-o'
3682 # argument, so we may need to know it at that point already.
3683 # Even if this section looks crufty: it has the advantage of
3690 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3696 { echo "$as_me:$LINENO: result: $ac_file" >&5
3697 echo "${ECHO_T}$ac_file" >&6; }
3698 if test -z "$ac_file"; then
3699 echo "$as_me: failed program was:" >&5
3700 sed 's/^/| /' conftest.
$ac_ext >&5
3702 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3703 See \`config.log' for more details." >&5
3704 echo "$as_me: error: C compiler cannot create executables
3705 See \`config.log' for more details." >&2;}
3706 { (exit 77); exit 77; }; }
3709 ac_exeext
=$ac_cv_exeext
3711 # Check that the compiler produces executables we can run. If not, either
3712 # the compiler is broken, or we cross compile.
3713 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3714 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3715 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3716 # If not cross compiling, check that we can run a simple program.
3717 if test "$cross_compiling" != yes; then
3718 if { ac_try
='./$ac_file'
3719 { (case "(($ac_try" in
3720 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3721 *) ac_try_echo=$ac_try;;
3723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3724 (eval "$ac_try") 2>&5
3726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727 (exit $ac_status); }; }; then
3730 if test "$cross_compiling" = maybe; then
3733 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3734 If you meant to cross compile, use \`--host'.
3735 See \`config.log' for more details.
" >&5
3736 echo "$as_me: error
: cannot run C compiled programs.
3737 If you meant to cross compile
, use \
`--host'.
3738 See \`config.log
' for more details." >&2;}
3739 { (exit 1); exit 1; }; }
3743 { echo "$as_me:$LINENO: result: yes" >&5
3744 echo "${ECHO_T}yes" >&6; }
3746 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3747 ac_clean_files=$ac_clean_files_save
3748 # Check that the compiler produces executables we can run. If not, either
3749 # the compiler is broken, or we cross compile.
3750 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3751 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3752 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3753 echo "${ECHO_T}$cross_compiling" >&6; }
3755 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3756 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3757 if { (ac_try="$ac_link"
3759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3760 *) ac_try_echo=$ac_try;;
3762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3763 (eval "$ac_link") 2>&5
3765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3766 (exit $ac_status); }; then
3767 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3768 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3769 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3771 for ac_file
in conftest.exe conftest conftest.
*; do
3772 test -f "$ac_file" ||
continue
3774 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
3775 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3781 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3782 See \`config.log' for more details." >&5
3783 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3784 See \`config.log' for more details." >&2;}
3785 { (exit 1); exit 1; }; }
3788 rm -f conftest
$ac_cv_exeext
3789 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3790 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3792 rm -f conftest.
$ac_ext
3793 EXEEXT
=$ac_cv_exeext
3795 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3796 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3797 if test "${ac_cv_objext+set}" = set; then
3798 echo $ECHO_N "(cached) $ECHO_C" >&6
3800 cat >conftest.
$ac_ext <<_ACEOF
3803 cat confdefs.h
>>conftest.
$ac_ext
3804 cat >>conftest.
$ac_ext <<_ACEOF
3805 /* end confdefs.h. */
3815 rm -f conftest.o conftest.obj
3816 if { (ac_try
="$ac_compile"
3818 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3819 *) ac_try_echo=$ac_try;;
3821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3822 (eval "$ac_compile") 2>&5
3824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825 (exit $ac_status); }; then
3826 for ac_file in conftest.o conftest.obj conftest.*; do
3827 test -f "$ac_file" || continue;
3829 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3830 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3835 echo "$as_me: failed program was:" >&5
3836 sed 's/^/| /' conftest.$ac_ext >&5
3838 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3839 See \`config.log
' for more details." >&5
3840 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3841 See \`config.log' for more details.
" >&2;}
3842 { (exit 1); exit 1; }; }
3845 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3847 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3848 echo "${ECHO_T}$ac_cv_objext" >&6; }
3849 OBJEXT=$ac_cv_objext
3851 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3852 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3853 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3854 echo $ECHO_N "(cached
) $ECHO_C" >&6
3856 cat >conftest.$ac_ext <<_ACEOF
3859 cat confdefs.h >>conftest.$ac_ext
3860 cat >>conftest.$ac_ext <<_ACEOF
3861 /* end confdefs.h. */
3874 rm -f conftest.$ac_objext
3875 if { (ac_try="$ac_compile"
3877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3878 *) ac_try_echo=$ac_try;;
3880 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3881 (eval "$ac_compile") 2>conftest.er1
3883 grep -v '^ *+' conftest.er1 >conftest.err
3885 cat conftest.err >&5
3886 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3887 (exit $ac_status); } && {
3888 test -z "$ac_c_werror_flag" ||
3889 test ! -s conftest.err
3890 } && test -s conftest.$ac_objext; then
3893 echo "$as_me: failed program was
:" >&5
3894 sed 's/^/| /' conftest.$ac_ext >&5
3899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3900 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3903 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3904 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3905 GCC=`test $ac_compiler_gnu = yes && echo yes`
3906 ac_test_CFLAGS=${CFLAGS+set}
3907 ac_save_CFLAGS=$CFLAGS
3908 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3909 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3910 if test "${ac_cv_prog_cc_g+set}" = set; then
3911 echo $ECHO_N "(cached
) $ECHO_C" >&6
3913 ac_save_c_werror_flag=$ac_c_werror_flag
3914 ac_c_werror_flag=yes
3917 cat >conftest.$ac_ext <<_ACEOF
3920 cat confdefs.h >>conftest.$ac_ext
3921 cat >>conftest.$ac_ext <<_ACEOF
3922 /* end confdefs.h. */
3932 rm -f conftest.$ac_objext
3933 if { (ac_try="$ac_compile"
3935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3936 *) ac_try_echo=$ac_try;;
3938 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3939 (eval "$ac_compile") 2>conftest.er1
3941 grep -v '^ *+' conftest.er1 >conftest.err
3943 cat conftest.err >&5
3944 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3945 (exit $ac_status); } && {
3946 test -z "$ac_c_werror_flag" ||
3947 test ! -s conftest.err
3948 } && test -s conftest.$ac_objext; then
3951 echo "$as_me: failed program was
:" >&5
3952 sed 's/^/| /' conftest.$ac_ext >&5
3955 cat >conftest.$ac_ext <<_ACEOF
3958 cat confdefs.h >>conftest.$ac_ext
3959 cat >>conftest.$ac_ext <<_ACEOF
3960 /* end confdefs.h. */
3970 rm -f conftest.$ac_objext
3971 if { (ac_try="$ac_compile"
3973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3974 *) ac_try_echo=$ac_try;;
3976 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3977 (eval "$ac_compile") 2>conftest.er1
3979 grep -v '^ *+' conftest.er1 >conftest.err
3981 cat conftest.err >&5
3982 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3983 (exit $ac_status); } && {
3984 test -z "$ac_c_werror_flag" ||
3985 test ! -s conftest.err
3986 } && test -s conftest.$ac_objext; then
3989 echo "$as_me: failed program was
:" >&5
3990 sed 's/^/| /' conftest.$ac_ext >&5
3992 ac_c_werror_flag=$ac_save_c_werror_flag
3994 cat >conftest.$ac_ext <<_ACEOF
3997 cat confdefs.h >>conftest.$ac_ext
3998 cat >>conftest.$ac_ext <<_ACEOF
3999 /* end confdefs.h. */
4009 rm -f conftest.$ac_objext
4010 if { (ac_try="$ac_compile"
4012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4013 *) ac_try_echo=$ac_try;;
4015 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4016 (eval "$ac_compile") 2>conftest.er1
4018 grep -v '^ *+' conftest.er1 >conftest.err
4020 cat conftest.err >&5
4021 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4022 (exit $ac_status); } && {
4023 test -z "$ac_c_werror_flag" ||
4024 test ! -s conftest.err
4025 } && test -s conftest.$ac_objext; then
4028 echo "$as_me: failed program was
:" >&5
4029 sed 's/^/| /' conftest.$ac_ext >&5
4034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4041 ac_c_werror_flag=$ac_save_c_werror_flag
4043 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
4044 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4045 if test "$ac_test_CFLAGS" = set; then
4046 CFLAGS=$ac_save_CFLAGS
4047 elif test $ac_cv_prog_cc_g = yes; then
4048 if test "$GCC" = yes; then
4054 if test "$GCC" = yes; then
4060 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
4061 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
4062 if test "${ac_cv_prog_cc_c89+set}" = set; then
4063 echo $ECHO_N "(cached
) $ECHO_C" >&6
4065 ac_cv_prog_cc_c89=no
4067 cat >conftest.$ac_ext <<_ACEOF
4070 cat confdefs.h >>conftest.$ac_ext
4071 cat >>conftest.$ac_ext <<_ACEOF
4072 /* end confdefs.h. */
4075 #include <sys/types.h>
4076 #include <sys/stat.h>
4077 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4078 struct buf { int x; };
4079 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4080 static char *e (p, i)
4086 static char *f (char * (*g) (char **, int), char **p, ...)
4091 s = g (p, va_arg (v,int));
4096 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4097 function prototypes and stuff, but not '\xHH' hex character constants.
4098 These don't provoke an error unfortunately, instead are silently treated
4099 as 'x'. The following induces an error, until -std is added to get
4100 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4101 array size at least. It's necessary to write '\x00'==0 to get something
4102 that's true only with -std. */
4103 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4105 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4106 inside strings and character constants. */
4108 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4110 int test (int i, double x);
4111 struct s1 {int (*f) (int a);};
4112 struct s2 {int (*f) (double a);};
4113 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4119 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4124 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4125 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4127 CC="$ac_save_CC $ac_arg"
4128 rm -f conftest.$ac_objext
4129 if { (ac_try="$ac_compile"
4131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4132 *) ac_try_echo=$ac_try;;
4134 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4135 (eval "$ac_compile") 2>conftest.er1
4137 grep -v '^ *+' conftest.er1 >conftest.err
4139 cat conftest.err >&5
4140 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4141 (exit $ac_status); } && {
4142 test -z "$ac_c_werror_flag" ||
4143 test ! -s conftest.err
4144 } && test -s conftest.$ac_objext; then
4145 ac_cv_prog_cc_c89=$ac_arg
4147 echo "$as_me: failed program was
:" >&5
4148 sed 's/^/| /' conftest.$ac_ext >&5
4153 rm -f core conftest.err conftest.$ac_objext
4154 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
4156 rm -f conftest.$ac_ext
4161 case "x
$ac_cv_prog_cc_c89" in
4163 { echo "$as_me:$LINENO: result
: none needed
" >&5
4164 echo "${ECHO_T}none needed
" >&6; } ;;
4166 { echo "$as_me:$LINENO: result
: unsupported
" >&5
4167 echo "${ECHO_T}unsupported
" >&6; } ;;
4169 CC="$CC $ac_cv_prog_cc_c89"
4170 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
4171 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4176 ac_cpp='$CPP $CPPFLAGS'
4177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4182 # On Suns, sometimes $CPP names a directory.
4183 if test -n "$CPP" && test -d "$CPP"; then
4187 ## If not using gcc, and on Solaris, and no CPP specified, see if
4188 ## using a Sun compiler, which needs -Xs to prevent whitespace.
4189 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
4190 test x"$CPP" = x; then
4191 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler
" >&5
4192 echo $ECHO_N "checking whether we are using a Sun C compiler...
$ECHO_C" >&6; }
4194 if test "${emacs_cv_sunpro_c+set}" = set; then
4195 echo $ECHO_N "(cached
) $ECHO_C" >&6
4197 cat >conftest.$ac_ext <<_ACEOF
4200 cat confdefs.h >>conftest.$ac_ext
4201 cat >>conftest.$ac_ext <<_ACEOF
4202 /* end confdefs.h. */
4215 rm -f conftest.$ac_objext conftest$ac_exeext
4216 if { (ac_try="$ac_link"
4218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4219 *) ac_try_echo=$ac_try;;
4221 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4222 (eval "$ac_link") 2>conftest.er1
4224 grep -v '^ *+' conftest.er1 >conftest.err
4226 cat conftest.err >&5
4227 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4228 (exit $ac_status); } && {
4229 test -z "$ac_c_werror_flag" ||
4230 test ! -s conftest.err
4231 } && test -s conftest$ac_exeext &&
4232 $as_test_x conftest$ac_exeext; then
4233 emacs_cv_sunpro_c=yes
4235 echo "$as_me: failed program was
:" >&5
4236 sed 's/^/| /' conftest.$ac_ext >&5
4238 emacs_cv_sunpro_c=no
4241 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4242 conftest$ac_exeext conftest.$ac_ext
4245 { echo "$as_me:$LINENO: result
: $emacs_cv_sunpro_c" >&5
4246 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
4248 if test x"$emacs_cv_sunpro_c" = xyes; then
4249 NON_GNU_CPP="$CC -E -Xs"
4253 #### Some systems specify a CPP to use unless we are using GCC.
4254 #### Now that we know whether we are using GCC, we can decide whether
4255 #### to use that one.
4256 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
4261 #### Some systems specify a CC to use unless we are using GCC.
4262 #### Now that we know whether we are using GCC, we can decide whether
4263 #### to use that one.
4264 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
4265 test x$cc_specified != xyes
4270 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
4272 CC="$CC $GCC_TEST_OPTIONS"
4275 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
4277 CC="$CC $NON_GCC_TEST_OPTIONS"
4281 ac_cpp='$CPP $CPPFLAGS'
4282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4285 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
4286 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
4287 # On Suns, sometimes $CPP names a directory.
4288 if test -n "$CPP" && test -d "$CPP"; then
4291 if test -z "$CPP"; then
4292 if test "${ac_cv_prog_CPP+set}" = set; then
4293 echo $ECHO_N "(cached
) $ECHO_C" >&6
4295 # Double quotes because CPP needs to be expanded
4296 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
4299 for ac_c_preproc_warn_flag in '' yes
4301 # Use a header file that comes with gcc, so configuring glibc
4302 # with a fresh cross-compiler works.
4303 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4304 # <limits.h> exists even on freestanding compilers.
4305 # On the NeXT, cc -E runs the code through the compiler's parser,
4306 # not just through cpp. "Syntax error
" is here to catch this case.
4307 cat >conftest.$ac_ext <<_ACEOF
4310 cat confdefs.h >>conftest.$ac_ext
4311 cat >>conftest.$ac_ext <<_ACEOF
4312 /* end confdefs.h. */
4314 # include <limits.h>
4316 # include <assert.h>
4320 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4323 *) ac_try_echo=$ac_try;;
4325 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4326 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4328 grep -v '^ *+' conftest.er1 >conftest.err
4330 cat conftest.err >&5
4331 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4332 (exit $ac_status); } >/dev/null && {
4333 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4334 test ! -s conftest.err
4338 echo "$as_me: failed program was
:" >&5
4339 sed 's/^/| /' conftest.$ac_ext >&5
4341 # Broken: fails on valid input.
4345 rm -f conftest.err conftest.$ac_ext
4347 # OK, works on sane cases. Now check whether nonexistent headers
4348 # can be detected and how.
4349 cat >conftest.$ac_ext <<_ACEOF
4352 cat confdefs.h >>conftest.$ac_ext
4353 cat >>conftest.$ac_ext <<_ACEOF
4354 /* end confdefs.h. */
4355 #include <ac_nonexistent.h>
4357 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4360 *) ac_try_echo=$ac_try;;
4362 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4363 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4365 grep -v '^ *+' conftest.er1 >conftest.err
4367 cat conftest.err >&5
4368 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4369 (exit $ac_status); } >/dev/null && {
4370 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4371 test ! -s conftest.err
4373 # Broken: success on invalid input.
4376 echo "$as_me: failed program was
:" >&5
4377 sed 's/^/| /' conftest.$ac_ext >&5
4379 # Passes both tests.
4384 rm -f conftest.err conftest.$ac_ext
4387 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4388 rm -f conftest.err conftest.$ac_ext
4389 if $ac_preproc_ok; then
4401 { echo "$as_me:$LINENO: result
: $CPP" >&5
4402 echo "${ECHO_T}$CPP" >&6; }
4404 for ac_c_preproc_warn_flag in '' yes
4406 # Use a header file that comes with gcc, so configuring glibc
4407 # with a fresh cross-compiler works.
4408 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4409 # <limits.h> exists even on freestanding compilers.
4410 # On the NeXT, cc -E runs the code through the compiler's parser,
4411 # not just through cpp. "Syntax error
" is here to catch this case.
4412 cat >conftest.$ac_ext <<_ACEOF
4415 cat confdefs.h >>conftest.$ac_ext
4416 cat >>conftest.$ac_ext <<_ACEOF
4417 /* end confdefs.h. */
4419 # include <limits.h>
4421 # include <assert.h>
4425 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4428 *) ac_try_echo=$ac_try;;
4430 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4431 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4433 grep -v '^ *+' conftest.er1 >conftest.err
4435 cat conftest.err >&5
4436 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4437 (exit $ac_status); } >/dev/null && {
4438 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4439 test ! -s conftest.err
4443 echo "$as_me: failed program was
:" >&5
4444 sed 's/^/| /' conftest.$ac_ext >&5
4446 # Broken: fails on valid input.
4450 rm -f conftest.err conftest.$ac_ext
4452 # OK, works on sane cases. Now check whether nonexistent headers
4453 # can be detected and how.
4454 cat >conftest.$ac_ext <<_ACEOF
4457 cat confdefs.h >>conftest.$ac_ext
4458 cat >>conftest.$ac_ext <<_ACEOF
4459 /* end confdefs.h. */
4460 #include <ac_nonexistent.h>
4462 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4465 *) ac_try_echo=$ac_try;;
4467 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4468 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4470 grep -v '^ *+' conftest.er1 >conftest.err
4472 cat conftest.err >&5
4473 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4474 (exit $ac_status); } >/dev/null && {
4475 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4476 test ! -s conftest.err
4478 # Broken: success on invalid input.
4481 echo "$as_me: failed program was
:" >&5
4482 sed 's/^/| /' conftest.$ac_ext >&5
4484 # Passes both tests.
4489 rm -f conftest.err conftest.$ac_ext
4492 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4493 rm -f conftest.err conftest.$ac_ext
4494 if $ac_preproc_ok; then
4497 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4498 See \
`config.log' for more details." >&5
4499 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4500 See \`config.log
' for more details." >&2;}
4501 { (exit 1); exit 1; }; }
4505 ac_cpp='$CPP $CPPFLAGS'
4506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4507 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4511 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4512 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4513 if test "${ac_cv_path_GREP+set}" = set; then
4514 echo $ECHO_N "(cached) $ECHO_C" >&6
4516 # Extract the first word of "grep ggrep" to use in msg output
4517 if test -z "$GREP"; then
4518 set dummy grep ggrep; ac_prog_name=$2
4519 if test "${ac_cv_path_GREP+set}" = set; then
4520 echo $ECHO_N "(cached) $ECHO_C" >&6
4522 ac_path_GREP_found=false
4523 # Loop through the user's path and
test for each of PROGNAME-LIST
4524 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4525 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4528 test -z "$as_dir" && as_dir
=.
4529 for ac_prog
in grep ggrep
; do
4530 for ac_exec_ext
in '' $ac_executable_extensions; do
4531 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4532 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4533 # Check for GNU ac_path_GREP and select it if it is found.
4534 # Check for GNU $ac_path_GREP
4535 case `"$ac_path_GREP" --version 2>&1` in
4537 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4540 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4543 cat "conftest.in" "conftest.in" >"conftest.tmp"
4544 mv "conftest.tmp" "conftest.in"
4545 cp "conftest.in" "conftest.nl"
4546 echo 'GREP' >> "conftest.nl"
4547 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4548 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4549 ac_count
=`expr $ac_count + 1`
4550 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4551 # Best one so far, save it but keep looking for a better one
4552 ac_cv_path_GREP
="$ac_path_GREP"
4553 ac_path_GREP_max
=$ac_count
4555 # 10*(2^10) chars as input seems more than enough
4556 test $ac_count -gt 10 && break
4558 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4562 $ac_path_GREP_found && break 3
4572 GREP
="$ac_cv_path_GREP"
4573 if test -z "$GREP"; then
4574 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4575 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4576 { (exit 1); exit 1; }; }
4580 ac_cv_path_GREP
=$GREP
4585 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4586 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4587 GREP
="$ac_cv_path_GREP"
4590 { echo "$as_me:$LINENO: checking for egrep" >&5
4591 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4592 if test "${ac_cv_path_EGREP+set}" = set; then
4593 echo $ECHO_N "(cached) $ECHO_C" >&6
4595 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4596 then ac_cv_path_EGREP
="$GREP -E"
4598 # Extract the first word of "egrep" to use in msg output
4599 if test -z "$EGREP"; then
4600 set dummy
egrep; ac_prog_name
=$2
4601 if test "${ac_cv_path_EGREP+set}" = set; then
4602 echo $ECHO_N "(cached) $ECHO_C" >&6
4604 ac_path_EGREP_found
=false
4605 # Loop through the user's path and test for each of PROGNAME-LIST
4606 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4607 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4610 test -z "$as_dir" && as_dir
=.
4611 for ac_prog
in egrep; do
4612 for ac_exec_ext
in '' $ac_executable_extensions; do
4613 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4614 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4615 # Check for GNU ac_path_EGREP and select it if it is found.
4616 # Check for GNU $ac_path_EGREP
4617 case `"$ac_path_EGREP" --version 2>&1` in
4619 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4622 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4625 cat "conftest.in" "conftest.in" >"conftest.tmp"
4626 mv "conftest.tmp" "conftest.in"
4627 cp "conftest.in" "conftest.nl"
4628 echo 'EGREP' >> "conftest.nl"
4629 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4630 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4631 ac_count
=`expr $ac_count + 1`
4632 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4633 # Best one so far, save it but keep looking for a better one
4634 ac_cv_path_EGREP
="$ac_path_EGREP"
4635 ac_path_EGREP_max
=$ac_count
4637 # 10*(2^10) chars as input seems more than enough
4638 test $ac_count -gt 10 && break
4640 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4644 $ac_path_EGREP_found && break 3
4654 EGREP
="$ac_cv_path_EGREP"
4655 if test -z "$EGREP"; then
4656 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4657 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4658 { (exit 1); exit 1; }; }
4662 ac_cv_path_EGREP
=$EGREP
4668 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4669 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4670 EGREP
="$ac_cv_path_EGREP"
4674 { echo "$as_me:$LINENO: checking for AIX" >&5
4675 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4676 cat >conftest.
$ac_ext <<_ACEOF
4679 cat confdefs.h
>>conftest.
$ac_ext
4680 cat >>conftest.
$ac_ext <<_ACEOF
4681 /* end confdefs.h. */
4687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4688 $EGREP "yes" >/dev
/null
2>&1; then
4689 { echo "$as_me:$LINENO: result: yes" >&5
4690 echo "${ECHO_T}yes" >&6; }
4691 cat >>confdefs.h
<<\_ACEOF
4692 #define _ALL_SOURCE 1
4696 { echo "$as_me:$LINENO: result: no" >&5
4697 echo "${ECHO_T}no" >&6; }
4703 cat >>confdefs.h
<<\_ACEOF
4704 #define _GNU_SOURCE 1
4709 ### Use -Wno-pointer-sign if the compiler supports it
4710 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4711 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4712 SAVE_CFLAGS
="$CFLAGS"
4713 CFLAGS
="$CFLAGS -Wno-pointer-sign"
4714 cat >conftest.
$ac_ext <<_ACEOF
4717 cat confdefs.h
>>conftest.
$ac_ext
4718 cat >>conftest.
$ac_ext <<_ACEOF
4719 /* end confdefs.h. */
4729 rm -f conftest.
$ac_objext
4730 if { (ac_try
="$ac_compile"
4732 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4733 *) ac_try_echo=$ac_try;;
4735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4736 (eval "$ac_compile") 2>conftest.er1
4738 grep -v '^ *+' conftest.er1 >conftest.err
4740 cat conftest.err >&5
4741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742 (exit $ac_status); } && {
4743 test -z "$ac_c_werror_flag" ||
4744 test ! -s conftest.err
4745 } && test -s conftest.$ac_objext; then
4748 echo "$as_me: failed program was:" >&5
4749 sed 's/^/| /' conftest.$ac_ext >&5
4754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4755 if test $has_option = yes; then
4756 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4758 { echo "$as_me:$LINENO: result: $has_option" >&5
4759 echo "${ECHO_T}$has_option" >&6; }
4760 CFLAGS="$SAVE_CFLAGS"
4764 #### Some other nice autoconf tests.
4766 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4767 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4769 if test "$LN_S" = "ln -s"; then
4770 { echo "$as_me:$LINENO: result: yes" >&5
4771 echo "${ECHO_T}yes" >&6; }
4773 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4774 echo "${ECHO_T}no, using $LN_S" >&6; }
4778 ac_cpp='$CPP $CPPFLAGS'
4779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4782 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4783 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4784 # On Suns, sometimes $CPP names a directory.
4785 if test -n "$CPP" && test -d "$CPP"; then
4788 if test -z "$CPP"; then
4789 if test "${ac_cv_prog_CPP+set}" = set; then
4790 echo $ECHO_N "(cached) $ECHO_C" >&6
4792 # Double quotes because CPP needs to be expanded
4793 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4796 for ac_c_preproc_warn_flag in '' yes
4798 # Use a header file that comes with gcc, so configuring glibc
4799 # with a fresh cross-compiler works.
4800 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4801 # <limits.h> exists even on freestanding compilers.
4802 # On the NeXT, cc -E runs the code through the compiler's parser,
4803 # not just through cpp. "Syntax error" is here to catch this case.
4804 cat >conftest.$ac_ext <<_ACEOF
4807 cat confdefs.h >>conftest.$ac_ext
4808 cat >>conftest.$ac_ext <<_ACEOF
4809 /* end confdefs.h. */
4811 # include <limits.h>
4813 # include <assert.h>
4817 if { (ac_try="$ac_cpp conftest.$ac_ext"
4819 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4820 *) ac_try_echo
=$ac_try;;
4822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4823 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4825 grep -v '^ *+' conftest.er1
>conftest.err
4827 cat conftest.err
>&5
4828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829 (exit $ac_status); } >/dev
/null
&& {
4830 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4831 test ! -s conftest.err
4835 echo "$as_me: failed program was:" >&5
4836 sed 's/^/| /' conftest.
$ac_ext >&5
4838 # Broken: fails on valid input.
4842 rm -f conftest.err conftest.
$ac_ext
4844 # OK, works on sane cases. Now check whether nonexistent headers
4845 # can be detected and how.
4846 cat >conftest.
$ac_ext <<_ACEOF
4849 cat confdefs.h
>>conftest.
$ac_ext
4850 cat >>conftest.
$ac_ext <<_ACEOF
4851 /* end confdefs.h. */
4852 #include <ac_nonexistent.h>
4854 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4856 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4857 *) ac_try_echo=$ac_try;;
4859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4860 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4862 grep -v '^ *+' conftest.er1 >conftest.err
4864 cat conftest.err >&5
4865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866 (exit $ac_status); } >/dev/null && {
4867 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4868 test ! -s conftest.err
4870 # Broken: success on invalid input.
4873 echo "$as_me: failed program was:" >&5
4874 sed 's/^/| /' conftest.$ac_ext >&5
4876 # Passes both tests.
4881 rm -f conftest.err conftest.$ac_ext
4884 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4885 rm -f conftest.err conftest.
$ac_ext
4886 if $ac_preproc_ok; then
4898 { echo "$as_me:$LINENO: result: $CPP" >&5
4899 echo "${ECHO_T}$CPP" >&6; }
4901 for ac_c_preproc_warn_flag
in '' yes
4903 # Use a header file that comes with gcc, so configuring glibc
4904 # with a fresh cross-compiler works.
4905 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4906 # <limits.h> exists even on freestanding compilers.
4907 # On the NeXT, cc -E runs the code through the compiler's parser,
4908 # not just through cpp. "Syntax error" is here to catch this case.
4909 cat >conftest.
$ac_ext <<_ACEOF
4912 cat confdefs.h
>>conftest.
$ac_ext
4913 cat >>conftest.
$ac_ext <<_ACEOF
4914 /* end confdefs.h. */
4916 # include <limits.h>
4918 # include <assert.h>
4922 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4924 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4925 *) ac_try_echo=$ac_try;;
4927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4928 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4930 grep -v '^ *+' conftest.er1 >conftest.err
4932 cat conftest.err >&5
4933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4934 (exit $ac_status); } >/dev/null && {
4935 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4936 test ! -s conftest.err
4940 echo "$as_me: failed program was:" >&5
4941 sed 's/^/| /' conftest.$ac_ext >&5
4943 # Broken: fails on valid input.
4947 rm -f conftest.err conftest.$ac_ext
4949 # OK, works on sane cases. Now check whether nonexistent headers
4950 # can be detected and how.
4951 cat >conftest.$ac_ext <<_ACEOF
4954 cat confdefs.h >>conftest.$ac_ext
4955 cat >>conftest.$ac_ext <<_ACEOF
4956 /* end confdefs.h. */
4957 #include <ac_nonexistent.h>
4959 if { (ac_try="$ac_cpp conftest.$ac_ext"
4961 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4962 *) ac_try_echo
=$ac_try;;
4964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4965 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4967 grep -v '^ *+' conftest.er1
>conftest.err
4969 cat conftest.err
>&5
4970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4971 (exit $ac_status); } >/dev
/null
&& {
4972 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4973 test ! -s conftest.err
4975 # Broken: success on invalid input.
4978 echo "$as_me: failed program was:" >&5
4979 sed 's/^/| /' conftest.
$ac_ext >&5
4981 # Passes both tests.
4986 rm -f conftest.err conftest.
$ac_ext
4989 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4990 rm -f conftest.err conftest.
$ac_ext
4991 if $ac_preproc_ok; then
4994 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4995 See \`config.log' for more details." >&5
4996 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4997 See \`config.log' for more details." >&2;}
4998 { (exit 1); exit 1; }; }
5002 ac_cpp
='$CPP $CPPFLAGS'
5003 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5004 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5005 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5007 # Find a good install program. We prefer a C program (faster),
5008 # so one script is as good as another. But avoid the broken or
5009 # incompatible versions:
5010 # SysV /etc/install, /usr/sbin/install
5011 # SunOS /usr/etc/install
5012 # IRIX /sbin/install
5014 # AmigaOS /C/install, which installs bootblocks on floppy discs
5015 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5016 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5017 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5018 # OS/2's system install, which has a completely different semantic
5019 # ./install, which can be erroneously created by make from ./install.sh.
5020 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5021 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5022 if test -z "$INSTALL"; then
5023 if test "${ac_cv_path_install+set}" = set; then
5024 echo $ECHO_N "(cached) $ECHO_C" >&6
5026 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5030 test -z "$as_dir" && as_dir
=.
5031 # Account for people who put trailing slashes in PATH elements.
5033 .
/ | .
// |
/cC
/* | \
5034 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
5035 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
5038 # OSF1 and SCO ODT 3.0 have their own names for install.
5039 # Don't use installbsd from OSF since it installs stuff as root
5041 for ac_prog
in ginstall scoinst
install; do
5042 for ac_exec_ext
in '' $ac_executable_extensions; do
5043 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5044 if test $ac_prog = install &&
5045 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5046 # AIX install. It has an incompatible calling convention.
5048 elif test $ac_prog = install &&
5049 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5050 # program-specific install script used by HP pwplus--don't use.
5053 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5066 if test "${ac_cv_path_install+set}" = set; then
5067 INSTALL
=$ac_cv_path_install
5069 # As a last resort, use the slow shell script. Don't cache a
5070 # value for INSTALL within a source directory, because that will
5071 # break other packages using the cache if that directory is
5072 # removed, or if the value is a relative name.
5073 INSTALL
=$ac_install_sh
5076 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5077 echo "${ECHO_T}$INSTALL" >&6; }
5079 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5080 # It thinks the first close brace ends the variable substitution.
5081 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5083 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5085 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5087 if test "x$RANLIB" = x
; then
5088 if test -n "$ac_tool_prefix"; then
5089 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5090 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5091 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5093 if test "${ac_cv_prog_RANLIB+set}" = set; then
5094 echo $ECHO_N "(cached) $ECHO_C" >&6
5096 if test -n "$RANLIB"; then
5097 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5099 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5103 test -z "$as_dir" && as_dir
=.
5104 for ac_exec_ext
in '' $ac_executable_extensions; do
5105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5106 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5116 RANLIB
=$ac_cv_prog_RANLIB
5117 if test -n "$RANLIB"; then
5118 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5119 echo "${ECHO_T}$RANLIB" >&6; }
5121 { echo "$as_me:$LINENO: result: no" >&5
5122 echo "${ECHO_T}no" >&6; }
5127 if test -z "$ac_cv_prog_RANLIB"; then
5128 ac_ct_RANLIB
=$RANLIB
5129 # Extract the first word of "ranlib", so it can be a program name with args.
5130 set dummy ranlib
; ac_word
=$2
5131 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5133 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5134 echo $ECHO_N "(cached) $ECHO_C" >&6
5136 if test -n "$ac_ct_RANLIB"; then
5137 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5139 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5143 test -z "$as_dir" && as_dir
=.
5144 for ac_exec_ext
in '' $ac_executable_extensions; do
5145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5146 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5156 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5157 if test -n "$ac_ct_RANLIB"; then
5158 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5159 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5161 { echo "$as_me:$LINENO: result: no" >&5
5162 echo "${ECHO_T}no" >&6; }
5165 if test "x$ac_ct_RANLIB" = x
; then
5168 case $cross_compiling:$ac_tool_warned in
5170 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5171 whose name does not start with the host triplet. If you think this
5172 configuration is useful to you, please write to autoconf@gnu.org." >&5
5173 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5174 whose name does not start with the host triplet. If you think this
5175 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5176 ac_tool_warned
=yes ;;
5178 RANLIB
=$ac_ct_RANLIB
5181 RANLIB
="$ac_cv_prog_RANLIB"
5185 # Extract the first word of "install-info", so it can be a program name with args.
5186 set dummy install-info
; ac_word
=$2
5187 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5189 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5190 echo $ECHO_N "(cached) $ECHO_C" >&6
5192 case $INSTALL_INFO in
5194 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5197 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5201 test -z "$as_dir" && as_dir
=.
5202 for ac_exec_ext
in '' $ac_executable_extensions; do
5203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5204 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5215 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5216 if test -n "$INSTALL_INFO"; then
5217 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5218 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5220 { echo "$as_me:$LINENO: result: no" >&5
5221 echo "${ECHO_T}no" >&6; }
5225 # Extract the first word of "install-info", so it can be a program name with args.
5226 set dummy install-info
; ac_word
=$2
5227 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5229 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5230 echo $ECHO_N "(cached) $ECHO_C" >&6
5232 case $INSTALL_INFO in
5234 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5237 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5238 for as_dir
in /usr
/sbin
5241 test -z "$as_dir" && as_dir
=.
5242 for ac_exec_ext
in '' $ac_executable_extensions; do
5243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5244 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5255 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5256 if test -n "$INSTALL_INFO"; then
5257 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5258 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5260 { echo "$as_me:$LINENO: result: no" >&5
5261 echo "${ECHO_T}no" >&6; }
5265 # Extract the first word of "install-info", so it can be a program name with args.
5266 set dummy install-info
; ac_word
=$2
5267 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5269 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5270 echo $ECHO_N "(cached) $ECHO_C" >&6
5272 case $INSTALL_INFO in
5274 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5277 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5281 test -z "$as_dir" && as_dir
=.
5282 for ac_exec_ext
in '' $ac_executable_extensions; do
5283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5284 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5292 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5296 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5297 if test -n "$INSTALL_INFO"; then
5298 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5299 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5301 { echo "$as_me:$LINENO: result: no" >&5
5302 echo "${ECHO_T}no" >&6; }
5306 # Extract the first word of "gzip", so it can be a program name with args.
5307 set dummy
gzip; ac_word
=$2
5308 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5310 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5311 echo $ECHO_N "(cached) $ECHO_C" >&6
5315 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5318 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5322 test -z "$as_dir" && as_dir
=.
5323 for ac_exec_ext
in '' $ac_executable_extensions; do
5324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5325 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5336 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5337 if test -n "$GZIP_PROG"; then
5338 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5339 echo "${ECHO_T}$GZIP_PROG" >&6; }
5341 { echo "$as_me:$LINENO: result: no" >&5
5342 echo "${ECHO_T}no" >&6; }
5348 ## Need makeinfo >= 4.6 (?) to build the manuals.
5349 # Extract the first word of "makeinfo", so it can be a program name with args.
5350 set dummy makeinfo
; ac_word
=$2
5351 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5353 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5354 echo $ECHO_N "(cached) $ECHO_C" >&6
5358 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
5361 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5365 test -z "$as_dir" && as_dir
=.
5366 for ac_exec_ext
in '' $ac_executable_extensions; do
5367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5368 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
5369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5376 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
5380 MAKEINFO
=$ac_cv_path_MAKEINFO
5381 if test -n "$MAKEINFO"; then
5382 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5383 echo "${ECHO_T}$MAKEINFO" >&6; }
5385 { echo "$as_me:$LINENO: result: no" >&5
5386 echo "${ECHO_T}no" >&6; }
5390 if test "$MAKEINFO" != "no" && \
5391 test x
"`$MAKEINFO --version 2> /dev/null | $EGREP 'texinfo[^0-9]*([5-9]|4\.[6-9])'`" = x
; then
5395 if test "$MAKEINFO" = "no"; then
5396 { { echo "$as_me:$LINENO: error: makeinfo >= 4.6 is required " >&5
5397 echo "$as_me: error: makeinfo >= 4.6 is required " >&2;}
5398 { (exit 1); exit 1; }; }
5403 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5405 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5408 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5410 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5414 late_LDFLAGS
=$LDFLAGS
5415 if test "$GCC" = yes; then
5416 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5418 LDFLAGS
="$LDFLAGS -znocombreloc"
5421 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5422 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5423 cat >conftest.
$ac_ext <<_ACEOF
5426 rm -f conftest.
$ac_objext conftest
$ac_exeext
5427 if { (ac_try
="$ac_link"
5429 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5430 *) ac_try_echo=$ac_try;;
5432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5433 (eval "$ac_link") 2>conftest.er1
5435 grep -v '^ *+' conftest.er1 >conftest.err
5437 cat conftest.err >&5
5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439 (exit $ac_status); } && {
5440 test -z "$ac_c_werror_flag" ||
5441 test ! -s conftest.err
5442 } && test -s conftest$ac_exeext &&
5443 $as_test_x conftest$ac_exeext; then
5444 { echo "$as_me:$LINENO: result: yes" >&5
5445 echo "${ECHO_T}yes" >&6; }
5447 echo "$as_me: failed program was:" >&5
5448 sed 's/^/| /' conftest.$ac_ext >&5
5450 LDFLAGS=$late_LDFLAGS
5451 { echo "$as_me:$LINENO: result: no" >&5
5452 echo "${ECHO_T}no" >&6; }
5455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5456 conftest$ac_exeext conftest.$ac_ext
5458 #### Extract some information from the operating system and machine files.
5460 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5461 - which libraries the lib-src programs will want, and
5462 - whether the GNU malloc routines are usable..." >&5
5463 echo "$as_me: checking the machine- and system-dependent files to find out
5464 - which libraries the lib-src programs will want, and
5465 - whether the GNU malloc routines are usable..." >&6;}
5467 ### First figure out CFLAGS (which we use for running the compiler here)
5468 ### and REAL_CFLAGS (which we use for real compilation).
5469 ### The two are the same except on a few systems, where they are made
5470 ### different to work around various lossages. For example,
5471 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5472 ### as implying static linking.
5474 ### If the CFLAGS env var is specified, we use that value
5475 ### instead of the default.
5477 ### It's not important that this name contain the PID; you can't run
5478 ### two configures in the same directory and have anything work
5480 tempcname="conftest.c"
5483 #include "'${srcdir}'/src/'${opsysfile}'"
5484 #include "'${srcdir}'/src/'${machfile}'"
5485 #ifndef LIBS_MACHINE
5486 #define LIBS_MACHINE
5491 #ifndef C_SWITCH_SYSTEM
5492 #define C_SWITCH_SYSTEM
5494 #ifndef C_SWITCH_MACHINE
5495 #define C_SWITCH_MACHINE
5497 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5498 configure___ c_switch_system=C_SWITCH_SYSTEM
5499 configure___ c_switch_machine=C_SWITCH_MACHINE
5502 #define LIB_X11_LIB -lX11
5505 #ifndef LIBX11_MACHINE
5506 #define LIBX11_MACHINE
5509 #ifndef LIBX11_SYSTEM
5510 #define LIBX11_SYSTEM
5512 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5515 configure___ unexec=UNEXEC
5517 configure___ unexec=unexec.o
5520 #ifdef SYSTEM_MALLOC
5521 configure___ system_malloc=yes
5523 configure___ system_malloc=no
5526 #ifdef USE_MMAP_FOR_BUFFERS
5527 configure___ use_mmap_for_buffers=yes
5529 configure___ use_mmap_for_buffers=no
5532 #ifndef C_DEBUG_SWITCH
5533 #define C_DEBUG_SWITCH -g
5536 #ifndef C_OPTIMIZE_SWITCH
5538 #define C_OPTIMIZE_SWITCH -O2
5540 #define C_OPTIMIZE_SWITCH -O
5544 #ifndef C_WARNINGS_SWITCH
5545 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5548 #ifndef LD_SWITCH_MACHINE
5549 #define LD_SWITCH_MACHINE
5552 #ifndef LD_SWITCH_SYSTEM
5553 #define LD_SWITCH_SYSTEM
5556 #ifndef LD_SWITCH_X_SITE_AUX
5557 #define LD_SWITCH_X_SITE_AUX
5560 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5561 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5563 #ifdef THIS_IS_CONFIGURE
5565 /* Get the CFLAGS for tests in configure. */
5567 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5569 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5572 #else /* not THIS_IS_CONFIGURE */
5574 /* Get the CFLAGS for real compilation. */
5576 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5578 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5581 #endif /* not THIS_IS_CONFIGURE */
5584 # The value of CPP is a quoted variable reference, so we need to do this
5585 # to get its actual value...
5586 CPP=`eval "echo $CPP"`
5587 eval `${CPP} -Isrc ${tempcname} \
5588 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5589 if test "x$SPECIFIED_CFLAGS" = x; then
5590 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5591 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5593 REAL_CFLAGS="$CFLAGS"
5597 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5599 ### Make sure subsequent tests use flags consistent with the build flags.
5601 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5602 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5604 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5609 # Check whether --enable-largefile was given.
5610 if test "${enable_largefile+set}" = set; then
5611 enableval=$enable_largefile;
5614 if test "$enable_largefile" != no; then
5616 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5617 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5618 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5619 echo $ECHO_N "(cached) $ECHO_C" >&6
5621 ac_cv_sys_largefile_CC=no
5622 if test "$GCC" != yes; then
5625 # IRIX 6.2 and later do not support large files by default,
5626 # so use the C compiler's -n32 option if that helps.
5627 cat >conftest.$ac_ext <<_ACEOF
5630 cat confdefs.h >>conftest.$ac_ext
5631 cat >>conftest.$ac_ext <<_ACEOF
5632 /* end confdefs.h. */
5633 #include <sys/types.h>
5634 /* Check that off_t can represent 2**63 - 1 correctly.
5635 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5636 since some C++ compilers masquerading as C compilers
5637 incorrectly reject 9223372036854775807. */
5638 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5639 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5640 && LARGE_OFF_T % 2147483647 == 1)
5650 rm -f conftest.$ac_objext
5651 if { (ac_try="$ac_compile"
5653 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5654 *) ac_try_echo
=$ac_try;;
5656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5657 (eval "$ac_compile") 2>conftest.er1
5659 grep -v '^ *+' conftest.er1
>conftest.err
5661 cat conftest.err
>&5
5662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663 (exit $ac_status); } && {
5664 test -z "$ac_c_werror_flag" ||
5665 test ! -s conftest.err
5666 } && test -s conftest.
$ac_objext; then
5669 echo "$as_me: failed program was:" >&5
5670 sed 's/^/| /' conftest.
$ac_ext >&5
5675 rm -f core conftest.err conftest.
$ac_objext
5677 rm -f conftest.
$ac_objext
5678 if { (ac_try
="$ac_compile"
5680 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5681 *) ac_try_echo=$ac_try;;
5683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5684 (eval "$ac_compile") 2>conftest.er1
5686 grep -v '^ *+' conftest.er1 >conftest.err
5688 cat conftest.err >&5
5689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5690 (exit $ac_status); } && {
5691 test -z "$ac_c_werror_flag" ||
5692 test ! -s conftest.err
5693 } && test -s conftest.$ac_objext; then
5694 ac_cv_sys_largefile_CC=' -n32'; break
5696 echo "$as_me: failed program was:" >&5
5697 sed 's/^/| /' conftest.$ac_ext >&5
5702 rm -f core conftest.err conftest.$ac_objext
5706 rm -f conftest.$ac_ext
5709 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5710 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5711 if test "$ac_cv_sys_largefile_CC" != no; then
5712 CC=$CC$ac_cv_sys_largefile_CC
5715 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5716 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5717 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5718 echo $ECHO_N "(cached) $ECHO_C" >&6
5721 cat >conftest.$ac_ext <<_ACEOF
5724 cat confdefs.h >>conftest.$ac_ext
5725 cat >>conftest.$ac_ext <<_ACEOF
5726 /* end confdefs.h. */
5727 #include <sys/types.h>
5728 /* Check that off_t can represent 2**63 - 1 correctly.
5729 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5730 since some C++ compilers masquerading as C compilers
5731 incorrectly reject 9223372036854775807. */
5732 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5733 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5734 && LARGE_OFF_T % 2147483647 == 1)
5744 rm -f conftest.$ac_objext
5745 if { (ac_try="$ac_compile"
5747 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5748 *) ac_try_echo
=$ac_try;;
5750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5751 (eval "$ac_compile") 2>conftest.er1
5753 grep -v '^ *+' conftest.er1
>conftest.err
5755 cat conftest.err
>&5
5756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757 (exit $ac_status); } && {
5758 test -z "$ac_c_werror_flag" ||
5759 test ! -s conftest.err
5760 } && test -s conftest.
$ac_objext; then
5761 ac_cv_sys_file_offset_bits
=no
; break
5763 echo "$as_me: failed program was:" >&5
5764 sed 's/^/| /' conftest.
$ac_ext >&5
5769 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5770 cat >conftest.
$ac_ext <<_ACEOF
5773 cat confdefs.h
>>conftest.
$ac_ext
5774 cat >>conftest.
$ac_ext <<_ACEOF
5775 /* end confdefs.h. */
5776 #define _FILE_OFFSET_BITS 64
5777 #include <sys/types.h>
5778 /* Check that off_t can represent 2**63 - 1 correctly.
5779 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5780 since some C++ compilers masquerading as C compilers
5781 incorrectly reject 9223372036854775807. */
5782 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5783 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5784 && LARGE_OFF_T % 2147483647 == 1)
5794 rm -f conftest.
$ac_objext
5795 if { (ac_try
="$ac_compile"
5797 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5798 *) ac_try_echo=$ac_try;;
5800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5801 (eval "$ac_compile") 2>conftest.er1
5803 grep -v '^ *+' conftest.er1 >conftest.err
5805 cat conftest.err >&5
5806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807 (exit $ac_status); } && {
5808 test -z "$ac_c_werror_flag" ||
5809 test ! -s conftest.err
5810 } && test -s conftest.$ac_objext; then
5811 ac_cv_sys_file_offset_bits=64; break
5813 echo "$as_me: failed program was:" >&5
5814 sed 's/^/| /' conftest.$ac_ext >&5
5819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5820 ac_cv_sys_file_offset_bits=unknown
5824 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5825 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5826 case $ac_cv_sys_file_offset_bits in #(
5829 cat >>confdefs.h <<_ACEOF
5830 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5835 if test $ac_cv_sys_file_offset_bits = unknown; then
5836 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5837 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5838 if test "${ac_cv_sys_large_files+set}" = set; then
5839 echo $ECHO_N "(cached) $ECHO_C" >&6
5842 cat >conftest.$ac_ext <<_ACEOF
5845 cat confdefs.h >>conftest.$ac_ext
5846 cat >>conftest.$ac_ext <<_ACEOF
5847 /* end confdefs.h. */
5848 #include <sys/types.h>
5849 /* Check that off_t can represent 2**63 - 1 correctly.
5850 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5851 since some C++ compilers masquerading as C compilers
5852 incorrectly reject 9223372036854775807. */
5853 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5854 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5855 && LARGE_OFF_T % 2147483647 == 1)
5865 rm -f conftest.$ac_objext
5866 if { (ac_try="$ac_compile"
5868 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5869 *) ac_try_echo
=$ac_try;;
5871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5872 (eval "$ac_compile") 2>conftest.er1
5874 grep -v '^ *+' conftest.er1
>conftest.err
5876 cat conftest.err
>&5
5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 (exit $ac_status); } && {
5879 test -z "$ac_c_werror_flag" ||
5880 test ! -s conftest.err
5881 } && test -s conftest.
$ac_objext; then
5882 ac_cv_sys_large_files
=no
; break
5884 echo "$as_me: failed program was:" >&5
5885 sed 's/^/| /' conftest.
$ac_ext >&5
5890 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5891 cat >conftest.
$ac_ext <<_ACEOF
5894 cat confdefs.h
>>conftest.
$ac_ext
5895 cat >>conftest.
$ac_ext <<_ACEOF
5896 /* end confdefs.h. */
5897 #define _LARGE_FILES 1
5898 #include <sys/types.h>
5899 /* Check that off_t can represent 2**63 - 1 correctly.
5900 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5901 since some C++ compilers masquerading as C compilers
5902 incorrectly reject 9223372036854775807. */
5903 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5904 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5905 && LARGE_OFF_T % 2147483647 == 1)
5915 rm -f conftest.
$ac_objext
5916 if { (ac_try
="$ac_compile"
5918 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5919 *) ac_try_echo=$ac_try;;
5921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5922 (eval "$ac_compile") 2>conftest.er1
5924 grep -v '^ *+' conftest.er1 >conftest.err
5926 cat conftest.err >&5
5927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928 (exit $ac_status); } && {
5929 test -z "$ac_c_werror_flag" ||
5930 test ! -s conftest.err
5931 } && test -s conftest.$ac_objext; then
5932 ac_cv_sys_large_files=1; break
5934 echo "$as_me: failed program was:" >&5
5935 sed 's/^/| /' conftest.$ac_ext >&5
5940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5941 ac_cv_sys_large_files=unknown
5945 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5946 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5947 case $ac_cv_sys_large_files in #(
5950 cat >>confdefs.h <<_ACEOF
5951 #define _LARGE_FILES $ac_cv_sys_large_files
5961 ### The standard library on x86-64 GNU/Linux distributions can
5962 ### be located in either /usr/lib64 or /usr/lib.
5963 case "${canonical}" in
5964 x86_64-*-linux-gnu* )
5965 if test -d /usr/lib64; then
5967 cat >>confdefs.h <<\_ACEOF
5968 #define HAVE_X86_64_LIB64_DIR 1
5977 if test "${with_sound}" != "no"; then
5978 # Sound support for GNU/Linux and the free BSDs.
5979 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5980 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5981 if test "${ac_cv_header_stdc+set}" = set; then
5982 echo $ECHO_N "(cached) $ECHO_C" >&6
5984 cat >conftest.$ac_ext <<_ACEOF
5987 cat confdefs.h >>conftest.$ac_ext
5988 cat >>conftest.$ac_ext <<_ACEOF
5989 /* end confdefs.h. */
6003 rm -f conftest.$ac_objext
6004 if { (ac_try="$ac_compile"
6006 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6007 *) ac_try_echo
=$ac_try;;
6009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6010 (eval "$ac_compile") 2>conftest.er1
6012 grep -v '^ *+' conftest.er1
>conftest.err
6014 cat conftest.err
>&5
6015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016 (exit $ac_status); } && {
6017 test -z "$ac_c_werror_flag" ||
6018 test ! -s conftest.err
6019 } && test -s conftest.
$ac_objext; then
6020 ac_cv_header_stdc
=yes
6022 echo "$as_me: failed program was:" >&5
6023 sed 's/^/| /' conftest.
$ac_ext >&5
6025 ac_cv_header_stdc
=no
6028 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6030 if test $ac_cv_header_stdc = yes; then
6031 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6032 cat >conftest.
$ac_ext <<_ACEOF
6035 cat confdefs.h
>>conftest.
$ac_ext
6036 cat >>conftest.
$ac_ext <<_ACEOF
6037 /* end confdefs.h. */
6041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6042 $EGREP "memchr" >/dev
/null
2>&1; then
6045 ac_cv_header_stdc
=no
6051 if test $ac_cv_header_stdc = yes; then
6052 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6053 cat >conftest.
$ac_ext <<_ACEOF
6056 cat confdefs.h
>>conftest.
$ac_ext
6057 cat >>conftest.
$ac_ext <<_ACEOF
6058 /* end confdefs.h. */
6062 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6063 $EGREP "free" >/dev
/null
2>&1; then
6066 ac_cv_header_stdc
=no
6072 if test $ac_cv_header_stdc = yes; then
6073 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6074 if test "$cross_compiling" = yes; then
6077 cat >conftest.
$ac_ext <<_ACEOF
6080 cat confdefs.h
>>conftest.
$ac_ext
6081 cat >>conftest.
$ac_ext <<_ACEOF
6082 /* end confdefs.h. */
6085 #if ((' ' & 0x0FF) == 0x020)
6086 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6087 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6089 # define ISLOWER(c) \
6090 (('a' <= (c) && (c) <= 'i') \
6091 || ('j' <= (c) && (c) <= 'r') \
6092 || ('s' <= (c) && (c) <= 'z'))
6093 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6096 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6101 for (i = 0; i < 256; i++)
6102 if (XOR (islower (i), ISLOWER (i))
6103 || toupper (i) != TOUPPER (i))
6108 rm -f conftest
$ac_exeext
6109 if { (ac_try
="$ac_link"
6111 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6112 *) ac_try_echo=$ac_try;;
6114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6115 (eval "$ac_link") 2>&5
6117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6119 { (case "(($ac_try" in
6120 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6121 *) ac_try_echo
=$ac_try;;
6123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6124 (eval "$ac_try") 2>&5
6126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127 (exit $ac_status); }; }; then
6130 echo "$as_me: program exited with status $ac_status" >&5
6131 echo "$as_me: failed program was:" >&5
6132 sed 's/^/| /' conftest.
$ac_ext >&5
6135 ac_cv_header_stdc
=no
6137 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6143 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6144 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6145 if test $ac_cv_header_stdc = yes; then
6147 cat >>confdefs.h
<<\_ACEOF
6148 #define STDC_HEADERS 1
6153 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6163 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6164 inttypes.h stdint.h unistd.h
6166 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6167 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6168 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6169 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6170 echo $ECHO_N "(cached) $ECHO_C" >&6
6172 cat >conftest.
$ac_ext <<_ACEOF
6175 cat confdefs.h
>>conftest.
$ac_ext
6176 cat >>conftest.
$ac_ext <<_ACEOF
6177 /* end confdefs.h. */
6178 $ac_includes_default
6180 #include <$ac_header>
6182 rm -f conftest.
$ac_objext
6183 if { (ac_try
="$ac_compile"
6185 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6186 *) ac_try_echo=$ac_try;;
6188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6189 (eval "$ac_compile") 2>conftest.er1
6191 grep -v '^ *+' conftest.er1 >conftest.err
6193 cat conftest.err >&5
6194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195 (exit $ac_status); } && {
6196 test -z "$ac_c_werror_flag" ||
6197 test ! -s conftest.err
6198 } && test -s conftest.$ac_objext; then
6199 eval "$as_ac_Header=yes"
6201 echo "$as_me: failed program was:" >&5
6202 sed 's/^/| /' conftest.$ac_ext >&5
6204 eval "$as_ac_Header=no"
6207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6209 ac_res=`eval echo '${'$as_ac_Header'}'`
6210 { echo "$as_me:$LINENO: result: $ac_res" >&5
6211 echo "${ECHO_T}$ac_res" >&6; }
6212 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6213 cat >>confdefs.h <<_ACEOF
6214 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6225 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6227 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6229 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6232 echo $ECHO_N "(cached) $ECHO_C" >&6
6234 ac_res=`eval echo '${'$as_ac_Header'}'`
6235 { echo "$as_me:$LINENO: result: $ac_res" >&5
6236 echo "${ECHO_T}$ac_res" >&6; }
6238 # Is the header compilable?
6239 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6240 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6241 cat >conftest.$ac_ext <<_ACEOF
6244 cat confdefs.h >>conftest.$ac_ext
6245 cat >>conftest.$ac_ext <<_ACEOF
6246 /* end confdefs.h. */
6247 $ac_includes_default
6248 #include <$ac_header>
6250 rm -f conftest.$ac_objext
6251 if { (ac_try="$ac_compile"
6253 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6254 *) ac_try_echo
=$ac_try;;
6256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6257 (eval "$ac_compile") 2>conftest.er1
6259 grep -v '^ *+' conftest.er1
>conftest.err
6261 cat conftest.err
>&5
6262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263 (exit $ac_status); } && {
6264 test -z "$ac_c_werror_flag" ||
6265 test ! -s conftest.err
6266 } && test -s conftest.
$ac_objext; then
6267 ac_header_compiler
=yes
6269 echo "$as_me: failed program was:" >&5
6270 sed 's/^/| /' conftest.
$ac_ext >&5
6272 ac_header_compiler
=no
6275 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6276 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6277 echo "${ECHO_T}$ac_header_compiler" >&6; }
6279 # Is the header present?
6280 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6281 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6282 cat >conftest.
$ac_ext <<_ACEOF
6285 cat confdefs.h
>>conftest.
$ac_ext
6286 cat >>conftest.
$ac_ext <<_ACEOF
6287 /* end confdefs.h. */
6288 #include <$ac_header>
6290 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6292 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6293 *) ac_try_echo=$ac_try;;
6295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6296 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6298 grep -v '^ *+' conftest.er1 >conftest.err
6300 cat conftest.err >&5
6301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302 (exit $ac_status); } >/dev/null && {
6303 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6304 test ! -s conftest.err
6306 ac_header_preproc=yes
6308 echo "$as_me: failed program was:" >&5
6309 sed 's/^/| /' conftest.$ac_ext >&5
6311 ac_header_preproc=no
6314 rm -f conftest.err conftest.$ac_ext
6315 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6316 echo "${ECHO_T}$ac_header_preproc" >&6; }
6318 # So? What about this header?
6319 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6321 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6322 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6323 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6324 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6325 ac_header_preproc=yes
6328 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6329 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6330 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6331 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6332 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6333 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6334 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6335 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6336 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6337 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6338 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6339 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6343 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6344 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6345 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6346 echo $ECHO_N "(cached) $ECHO_C" >&6
6348 eval "$as_ac_Header=\$ac_header_preproc"
6350 ac_res=`eval echo '${'$as_ac_Header'}'`
6351 { echo "$as_me:$LINENO: result: $ac_res" >&5
6352 echo "${ECHO_T}$ac_res" >&6; }
6355 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6356 cat >>confdefs.h <<_ACEOF
6357 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6364 # Emulation library used on NetBSD.
6365 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6366 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6367 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6368 echo $ECHO_N "(cached) $ECHO_C" >&6
6370 ac_check_lib_save_LIBS=$LIBS
6371 LIBS="-lossaudio $LIBS"
6372 cat >conftest.$ac_ext <<_ACEOF
6375 cat confdefs.h >>conftest.$ac_ext
6376 cat >>conftest.$ac_ext <<_ACEOF
6377 /* end confdefs.h. */
6379 /* Override any GCC internal prototype to avoid an error.
6380 Use char because int might match the return type of a GCC
6381 builtin and then its argument prototype would still apply. */
6389 return _oss_ioctl ();
6394 rm -f conftest.$ac_objext conftest$ac_exeext
6395 if { (ac_try="$ac_link"
6397 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6398 *) ac_try_echo
=$ac_try;;
6400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6401 (eval "$ac_link") 2>conftest.er1
6403 grep -v '^ *+' conftest.er1
>conftest.err
6405 cat conftest.err
>&5
6406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407 (exit $ac_status); } && {
6408 test -z "$ac_c_werror_flag" ||
6409 test ! -s conftest.err
6410 } && test -s conftest
$ac_exeext &&
6411 $as_test_x conftest
$ac_exeext; then
6412 ac_cv_lib_ossaudio__oss_ioctl
=yes
6414 echo "$as_me: failed program was:" >&5
6415 sed 's/^/| /' conftest.
$ac_ext >&5
6417 ac_cv_lib_ossaudio__oss_ioctl
=no
6420 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6421 conftest
$ac_exeext conftest.
$ac_ext
6422 LIBS
=$ac_check_lib_save_LIBS
6424 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6425 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6426 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6435 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6436 if test "X${with_pkg_config_prog}" != X
; then
6437 PKG_CONFIG
="${with_pkg_config_prog}"
6442 if test -z "$PKG_CONFIG"; then
6443 # Extract the first word of "pkg-config", so it can be a program name with args.
6444 set dummy pkg-config
; ac_word
=$2
6445 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6447 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6448 echo $ECHO_N "(cached) $ECHO_C" >&6
6452 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6455 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6459 test -z "$as_dir" && as_dir
=.
6460 for ac_exec_ext
in '' $ac_executable_extensions; do
6461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6462 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6470 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6474 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6475 if test -n "$PKG_CONFIG"; then
6476 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6477 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6479 { echo "$as_me:$LINENO: result: no" >&5
6480 echo "${ECHO_T}no" >&6; }
6486 if test "$PKG_CONFIG" = "no" ; then
6489 PKG_CONFIG_MIN_VERSION
=0.9.0
6490 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6491 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6492 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6494 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6495 { echo "$as_me:$LINENO: result: yes" >&5
6496 echo "${ECHO_T}yes" >&6; }
6499 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6500 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6501 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6502 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6503 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6505 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6506 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6507 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6508 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6509 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6511 { echo "$as_me:$LINENO: result: no" >&5
6512 echo "${ECHO_T}no" >&6; }
6515 ## If we have a custom action on failure, don't print errors, but
6516 ## do set a variable so people can do so.
6517 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6524 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6525 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6529 if test $succeeded = yes; then
6535 if test $HAVE_ALSA = yes; then
6536 SAVE_CFLAGS
="$CFLAGS"
6537 SAVE_LDFLAGS
="$LDFLAGS"
6538 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6539 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6540 cat >conftest.
$ac_ext <<_ACEOF
6543 cat confdefs.h
>>conftest.
$ac_ext
6544 cat >>conftest.
$ac_ext <<_ACEOF
6545 /* end confdefs.h. */
6546 #include <asoundlib.h>
6550 snd_lib_error_set_handler (0);
6555 rm -f conftest.
$ac_objext
6556 if { (ac_try
="$ac_compile"
6558 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6559 *) ac_try_echo=$ac_try;;
6561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6562 (eval "$ac_compile") 2>conftest.er1
6564 grep -v '^ *+' conftest.er1 >conftest.err
6566 cat conftest.err >&5
6567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568 (exit $ac_status); } && {
6569 test -z "$ac_c_werror_flag" ||
6570 test ! -s conftest.err
6571 } && test -s conftest.$ac_objext; then
6572 emacs_alsa_normal=yes
6574 echo "$as_me: failed program was:" >&5
6575 sed 's/^/| /' conftest.$ac_ext >&5
6577 emacs_alsa_normal=no
6580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6581 if test "$emacs_alsa_normal" != yes; then
6582 cat >conftest.$ac_ext <<_ACEOF
6585 cat confdefs.h >>conftest.$ac_ext
6586 cat >>conftest.$ac_ext <<_ACEOF
6587 /* end confdefs.h. */
6588 #include <alsa/asoundlib.h>
6592 snd_lib_error_set_handler (0);
6597 rm -f conftest.$ac_objext
6598 if { (ac_try="$ac_compile"
6600 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6601 *) ac_try_echo
=$ac_try;;
6603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6604 (eval "$ac_compile") 2>conftest.er1
6606 grep -v '^ *+' conftest.er1
>conftest.err
6608 cat conftest.err
>&5
6609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610 (exit $ac_status); } && {
6611 test -z "$ac_c_werror_flag" ||
6612 test ! -s conftest.err
6613 } && test -s conftest.
$ac_objext; then
6614 emacs_alsa_subdir
=yes
6616 echo "$as_me: failed program was:" >&5
6617 sed 's/^/| /' conftest.
$ac_ext >&5
6619 emacs_alsa_subdir
=no
6622 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6623 if test "$emacs_alsa_subdir" != yes; then
6624 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6625 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6626 { (exit 1); exit 1; }; }
6628 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6631 CFLAGS
="$SAVE_CFLAGS"
6632 LDFLAGS
="$SAVE_LDFLAGS"
6633 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6634 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6636 cat >>confdefs.h
<<\_ACEOF
6669 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6670 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6671 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6672 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6675 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6676 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6677 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6678 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6679 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6680 echo $ECHO_N "(cached) $ECHO_C" >&6
6682 ac_res
=`eval echo '${'$as_ac_Header'}'`
6683 { echo "$as_me:$LINENO: result: $ac_res" >&5
6684 echo "${ECHO_T}$ac_res" >&6; }
6686 # Is the header compilable?
6687 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6688 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6689 cat >conftest.
$ac_ext <<_ACEOF
6692 cat confdefs.h
>>conftest.
$ac_ext
6693 cat >>conftest.
$ac_ext <<_ACEOF
6694 /* end confdefs.h. */
6695 $ac_includes_default
6696 #include <$ac_header>
6698 rm -f conftest.
$ac_objext
6699 if { (ac_try
="$ac_compile"
6701 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6702 *) ac_try_echo=$ac_try;;
6704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6705 (eval "$ac_compile") 2>conftest.er1
6707 grep -v '^ *+' conftest.er1 >conftest.err
6709 cat conftest.err >&5
6710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6711 (exit $ac_status); } && {
6712 test -z "$ac_c_werror_flag" ||
6713 test ! -s conftest.err
6714 } && test -s conftest.$ac_objext; then
6715 ac_header_compiler=yes
6717 echo "$as_me: failed program was:" >&5
6718 sed 's/^/| /' conftest.$ac_ext >&5
6720 ac_header_compiler=no
6723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6724 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6725 echo "${ECHO_T}$ac_header_compiler" >&6; }
6727 # Is the header present?
6728 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6729 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6730 cat >conftest.$ac_ext <<_ACEOF
6733 cat confdefs.h >>conftest.$ac_ext
6734 cat >>conftest.$ac_ext <<_ACEOF
6735 /* end confdefs.h. */
6736 #include <$ac_header>
6738 if { (ac_try="$ac_cpp conftest.$ac_ext"
6740 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6741 *) ac_try_echo
=$ac_try;;
6743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6744 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6746 grep -v '^ *+' conftest.er1
>conftest.err
6748 cat conftest.err
>&5
6749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750 (exit $ac_status); } >/dev
/null
&& {
6751 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6752 test ! -s conftest.err
6754 ac_header_preproc
=yes
6756 echo "$as_me: failed program was:" >&5
6757 sed 's/^/| /' conftest.
$ac_ext >&5
6759 ac_header_preproc
=no
6762 rm -f conftest.err conftest.
$ac_ext
6763 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6764 echo "${ECHO_T}$ac_header_preproc" >&6; }
6766 # So? What about this header?
6767 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6769 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6770 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6771 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6772 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6773 ac_header_preproc
=yes
6776 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6777 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6778 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6779 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6780 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6781 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6782 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6783 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6784 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6785 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6786 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6787 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6791 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6793 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6794 echo $ECHO_N "(cached) $ECHO_C" >&6
6796 eval "$as_ac_Header=\$ac_header_preproc"
6798 ac_res
=`eval echo '${'$as_ac_Header'}'`
6799 { echo "$as_me:$LINENO: result: $ac_res" >&5
6800 echo "${ECHO_T}$ac_res" >&6; }
6803 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6804 cat >>confdefs.h
<<_ACEOF
6805 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6813 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6814 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6815 cat >conftest.
$ac_ext <<_ACEOF
6818 cat confdefs.h
>>conftest.
$ac_ext
6819 cat >>conftest.
$ac_ext <<_ACEOF
6820 /* end confdefs.h. */
6821 #include <sys/personality.h>
6825 personality (PER_LINUX32)
6830 rm -f conftest.
$ac_objext
6831 if { (ac_try
="$ac_compile"
6833 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6834 *) ac_try_echo=$ac_try;;
6836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6837 (eval "$ac_compile") 2>conftest.er1
6839 grep -v '^ *+' conftest.er1 >conftest.err
6841 cat conftest.err >&5
6842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6843 (exit $ac_status); } && {
6844 test -z "$ac_c_werror_flag" ||
6845 test ! -s conftest.err
6846 } && test -s conftest.$ac_objext; then
6847 emacs_cv_personality_linux32=yes
6849 echo "$as_me: failed program was:" >&5
6850 sed 's/^/| /' conftest.$ac_ext >&5
6852 emacs_cv_personality_linux32=no
6855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6856 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6857 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6859 if test $emacs_cv_personality_linux32 = yes; then
6861 cat >>confdefs.h <<\_ACEOF
6862 #define HAVE_PERSONALITY_LINUX32 1
6868 for ac_header in term.h
6870 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6871 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6872 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6873 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6874 echo $ECHO_N "(cached) $ECHO_C" >&6
6876 cat >conftest.$ac_ext <<_ACEOF
6879 cat confdefs.h >>conftest.$ac_ext
6880 cat >>conftest.$ac_ext <<_ACEOF
6881 /* end confdefs.h. */
6882 #include <$ac_header>
6884 if { (ac_try="$ac_cpp conftest.$ac_ext"
6886 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6887 *) ac_try_echo
=$ac_try;;
6889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6890 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6892 grep -v '^ *+' conftest.er1
>conftest.err
6894 cat conftest.err
>&5
6895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896 (exit $ac_status); } >/dev
/null
&& {
6897 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6898 test ! -s conftest.err
6900 eval "$as_ac_Header=yes"
6902 echo "$as_me: failed program was:" >&5
6903 sed 's/^/| /' conftest.
$ac_ext >&5
6905 eval "$as_ac_Header=no"
6908 rm -f conftest.err conftest.
$ac_ext
6910 ac_res
=`eval echo '${'$as_ac_Header'}'`
6911 { echo "$as_me:$LINENO: result: $ac_res" >&5
6912 echo "${ECHO_T}$ac_res" >&6; }
6913 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6914 cat >>confdefs.h
<<_ACEOF
6915 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6922 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6923 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6924 if test "${ac_cv_header_stdc+set}" = set; then
6925 echo $ECHO_N "(cached) $ECHO_C" >&6
6927 cat >conftest.
$ac_ext <<_ACEOF
6930 cat confdefs.h
>>conftest.
$ac_ext
6931 cat >>conftest.
$ac_ext <<_ACEOF
6932 /* end confdefs.h. */
6946 rm -f conftest.
$ac_objext
6947 if { (ac_try
="$ac_compile"
6949 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6950 *) ac_try_echo=$ac_try;;
6952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6953 (eval "$ac_compile") 2>conftest.er1
6955 grep -v '^ *+' conftest.er1 >conftest.err
6957 cat conftest.err >&5
6958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959 (exit $ac_status); } && {
6960 test -z "$ac_c_werror_flag" ||
6961 test ! -s conftest.err
6962 } && test -s conftest.$ac_objext; then
6963 ac_cv_header_stdc=yes
6965 echo "$as_me: failed program was:" >&5
6966 sed 's/^/| /' conftest.$ac_ext >&5
6968 ac_cv_header_stdc=no
6971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6973 if test $ac_cv_header_stdc = yes; then
6974 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6975 cat >conftest.$ac_ext <<_ACEOF
6978 cat confdefs.h >>conftest.$ac_ext
6979 cat >>conftest.$ac_ext <<_ACEOF
6980 /* end confdefs.h. */
6984 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6985 $EGREP "memchr" >/dev/null 2>&1; then
6988 ac_cv_header_stdc=no
6994 if test $ac_cv_header_stdc = yes; then
6995 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6996 cat >conftest.$ac_ext <<_ACEOF
6999 cat confdefs.h >>conftest.$ac_ext
7000 cat >>conftest.$ac_ext <<_ACEOF
7001 /* end confdefs.h. */
7005 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7006 $EGREP "free" >/dev/null 2>&1; then
7009 ac_cv_header_stdc=no
7015 if test $ac_cv_header_stdc = yes; then
7016 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7017 if test "$cross_compiling" = yes; then
7020 cat >conftest.$ac_ext <<_ACEOF
7023 cat confdefs.h >>conftest.$ac_ext
7024 cat >>conftest.$ac_ext <<_ACEOF
7025 /* end confdefs.h. */
7028 #if ((' ' & 0x0FF) == 0x020)
7029 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7030 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7032 # define ISLOWER(c) \
7033 (('a' <= (c) && (c) <= 'i') \
7034 || ('j' <= (c) && (c) <= 'r') \
7035 || ('s' <= (c) && (c) <= 'z'))
7036 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7039 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7044 for (i = 0; i < 256; i++)
7045 if (XOR (islower (i), ISLOWER (i))
7046 || toupper (i) != TOUPPER (i))
7051 rm -f conftest$ac_exeext
7052 if { (ac_try="$ac_link"
7054 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7055 *) ac_try_echo
=$ac_try;;
7057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7058 (eval "$ac_link") 2>&5
7060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7062 { (case "(($ac_try" in
7063 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7064 *) ac_try_echo=$ac_try;;
7066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7067 (eval "$ac_try") 2>&5
7069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7070 (exit $ac_status); }; }; then
7073 echo "$as_me: program exited with status $ac_status" >&5
7074 echo "$as_me: failed program was:" >&5
7075 sed 's/^/| /' conftest.$ac_ext >&5
7078 ac_cv_header_stdc=no
7080 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7086 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7087 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7088 if test $ac_cv_header_stdc = yes; then
7090 cat >>confdefs.h <<\_ACEOF
7091 #define STDC_HEADERS 1
7096 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7097 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
7098 if test "${ac_cv_header_time+set}" = set; then
7099 echo $ECHO_N "(cached) $ECHO_C" >&6
7101 cat >conftest.$ac_ext <<_ACEOF
7104 cat confdefs.h >>conftest.$ac_ext
7105 cat >>conftest.$ac_ext <<_ACEOF
7106 /* end confdefs.h. */
7107 #include <sys/types.h>
7108 #include <sys/time.h>
7114 if ((struct tm *) 0)
7120 rm -f conftest.$ac_objext
7121 if { (ac_try="$ac_compile"
7123 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7124 *) ac_try_echo
=$ac_try;;
7126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7127 (eval "$ac_compile") 2>conftest.er1
7129 grep -v '^ *+' conftest.er1
>conftest.err
7131 cat conftest.err
>&5
7132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133 (exit $ac_status); } && {
7134 test -z "$ac_c_werror_flag" ||
7135 test ! -s conftest.err
7136 } && test -s conftest.
$ac_objext; then
7137 ac_cv_header_time
=yes
7139 echo "$as_me: failed program was:" >&5
7140 sed 's/^/| /' conftest.
$ac_ext >&5
7142 ac_cv_header_time
=no
7145 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7147 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7148 echo "${ECHO_T}$ac_cv_header_time" >&6; }
7149 if test $ac_cv_header_time = yes; then
7151 cat >>confdefs.h
<<\_ACEOF
7152 #define TIME_WITH_SYS_TIME 1
7157 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7158 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
7159 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7160 echo $ECHO_N "(cached) $ECHO_C" >&6
7162 cat >conftest.
$ac_ext <<_ACEOF
7165 cat confdefs.h
>>conftest.
$ac_ext
7166 cat >>conftest.
$ac_ext <<_ACEOF
7167 /* end confdefs.h. */
7168 $ac_includes_default
7180 rm -f conftest.
$ac_objext
7181 if { (ac_try
="$ac_compile"
7183 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7184 *) ac_try_echo=$ac_try;;
7186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7187 (eval "$ac_compile") 2>conftest.er1
7189 grep -v '^ *+' conftest.er1 >conftest.err
7191 cat conftest.err >&5
7192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7193 (exit $ac_status); } && {
7194 test -z "$ac_c_werror_flag" ||
7195 test ! -s conftest.err
7196 } && test -s conftest.$ac_objext; then
7197 ac_cv_have_decl_sys_siglist=yes
7199 echo "$as_me: failed program was:" >&5
7200 sed 's/^/| /' conftest.$ac_ext >&5
7202 ac_cv_have_decl_sys_siglist=no
7205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7207 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7208 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7209 if test $ac_cv_have_decl_sys_siglist = yes; then
7211 cat >>confdefs.h <<_ACEOF
7212 #define HAVE_DECL_SYS_SIGLIST 1
7217 cat >>confdefs.h <<_ACEOF
7218 #define HAVE_DECL_SYS_SIGLIST 0
7225 if test $ac_cv_have_decl_sys_siglist != yes; then
7226 # For Tru64, at least:
7227 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7228 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7229 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7230 echo $ECHO_N "(cached) $ECHO_C" >&6
7232 cat >conftest.$ac_ext <<_ACEOF
7235 cat confdefs.h >>conftest.$ac_ext
7236 cat >>conftest.$ac_ext <<_ACEOF
7237 /* end confdefs.h. */
7238 $ac_includes_default
7242 #ifndef __sys_siglist
7243 (void) __sys_siglist;
7250 rm -f conftest.$ac_objext
7251 if { (ac_try="$ac_compile"
7253 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7254 *) ac_try_echo
=$ac_try;;
7256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7257 (eval "$ac_compile") 2>conftest.er1
7259 grep -v '^ *+' conftest.er1
>conftest.err
7261 cat conftest.err
>&5
7262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263 (exit $ac_status); } && {
7264 test -z "$ac_c_werror_flag" ||
7265 test ! -s conftest.err
7266 } && test -s conftest.
$ac_objext; then
7267 ac_cv_have_decl___sys_siglist
=yes
7269 echo "$as_me: failed program was:" >&5
7270 sed 's/^/| /' conftest.
$ac_ext >&5
7272 ac_cv_have_decl___sys_siglist
=no
7275 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7277 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7278 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7279 if test $ac_cv_have_decl___sys_siglist = yes; then
7281 cat >>confdefs.h
<<_ACEOF
7282 #define HAVE_DECL___SYS_SIGLIST 1
7287 cat >>confdefs.h
<<_ACEOF
7288 #define HAVE_DECL___SYS_SIGLIST 0
7295 if test $ac_cv_have_decl___sys_siglist = yes; then
7297 cat >>confdefs.h
<<\_ACEOF
7298 #define sys_siglist __sys_siglist
7303 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7304 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7305 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7306 echo $ECHO_N "(cached) $ECHO_C" >&6
7308 cat >conftest.
$ac_ext <<_ACEOF
7311 cat confdefs.h
>>conftest.
$ac_ext
7312 cat >>conftest.
$ac_ext <<_ACEOF
7313 /* end confdefs.h. */
7314 #include <sys/types.h>
7315 #include <sys/wait.h>
7317 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7320 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7328 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7333 rm -f conftest.
$ac_objext
7334 if { (ac_try
="$ac_compile"
7336 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7337 *) ac_try_echo=$ac_try;;
7339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7340 (eval "$ac_compile") 2>conftest.er1
7342 grep -v '^ *+' conftest.er1 >conftest.err
7344 cat conftest.err >&5
7345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7346 (exit $ac_status); } && {
7347 test -z "$ac_c_werror_flag" ||
7348 test ! -s conftest.err
7349 } && test -s conftest.$ac_objext; then
7350 ac_cv_header_sys_wait_h=yes
7352 echo "$as_me: failed program was:" >&5
7353 sed 's/^/| /' conftest.$ac_ext >&5
7355 ac_cv_header_sys_wait_h=no
7358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7360 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7361 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7362 if test $ac_cv_header_sys_wait_h = yes; then
7364 cat >>confdefs.h <<\_ACEOF
7365 #define HAVE_SYS_WAIT_H 1
7371 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7372 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7373 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7374 echo $ECHO_N "(cached) $ECHO_C" >&6
7376 cat >conftest.$ac_ext <<_ACEOF
7379 cat confdefs.h >>conftest.$ac_ext
7380 cat >>conftest.$ac_ext <<_ACEOF
7381 /* end confdefs.h. */
7382 #ifdef TIME_WITH_SYS_TIME
7383 #include <sys/time.h>
7386 #ifdef HAVE_SYS_TIME_H
7387 #include <sys/time.h>
7398 static struct utimbuf x; x.actime = x.modtime;
7403 rm -f conftest.$ac_objext
7404 if { (ac_try="$ac_compile"
7406 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7407 *) ac_try_echo
=$ac_try;;
7409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7410 (eval "$ac_compile") 2>conftest.er1
7412 grep -v '^ *+' conftest.er1
>conftest.err
7414 cat conftest.err
>&5
7415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7416 (exit $ac_status); } && {
7417 test -z "$ac_c_werror_flag" ||
7418 test ! -s conftest.err
7419 } && test -s conftest.
$ac_objext; then
7420 emacs_cv_struct_utimbuf
=yes
7422 echo "$as_me: failed program was:" >&5
7423 sed 's/^/| /' conftest.
$ac_ext >&5
7425 emacs_cv_struct_utimbuf
=no
7428 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7430 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7431 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7432 if test $emacs_cv_struct_utimbuf = yes; then
7434 cat >>confdefs.h
<<\_ACEOF
7435 #define HAVE_STRUCT_UTIMBUF 1
7440 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7441 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7442 if test "${ac_cv_type_signal+set}" = set; then
7443 echo $ECHO_N "(cached) $ECHO_C" >&6
7445 cat >conftest.
$ac_ext <<_ACEOF
7448 cat confdefs.h
>>conftest.
$ac_ext
7449 cat >>conftest.
$ac_ext <<_ACEOF
7450 /* end confdefs.h. */
7451 #include <sys/types.h>
7457 return *(signal (0, 0)) (0) == 1;
7462 rm -f conftest.
$ac_objext
7463 if { (ac_try
="$ac_compile"
7465 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7466 *) ac_try_echo=$ac_try;;
7468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7469 (eval "$ac_compile") 2>conftest.er1
7471 grep -v '^ *+' conftest.er1 >conftest.err
7473 cat conftest.err >&5
7474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475 (exit $ac_status); } && {
7476 test -z "$ac_c_werror_flag" ||
7477 test ! -s conftest.err
7478 } && test -s conftest.$ac_objext; then
7479 ac_cv_type_signal=int
7481 echo "$as_me: failed program was:" >&5
7482 sed 's/^/| /' conftest.$ac_ext >&5
7484 ac_cv_type_signal=void
7487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7489 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7490 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7492 cat >>confdefs.h <<_ACEOF
7493 #define RETSIGTYPE $ac_cv_type_signal
7498 { echo "$as_me:$LINENO: checking for speed_t" >&5
7499 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7500 if test "${emacs_cv_speed_t+set}" = set; then
7501 echo $ECHO_N "(cached) $ECHO_C" >&6
7503 cat >conftest.$ac_ext <<_ACEOF
7506 cat confdefs.h >>conftest.$ac_ext
7507 cat >>conftest.$ac_ext <<_ACEOF
7508 /* end confdefs.h. */
7509 #include <termios.h>
7518 rm -f conftest.$ac_objext
7519 if { (ac_try="$ac_compile"
7521 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7522 *) ac_try_echo
=$ac_try;;
7524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7525 (eval "$ac_compile") 2>conftest.er1
7527 grep -v '^ *+' conftest.er1
>conftest.err
7529 cat conftest.err
>&5
7530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7531 (exit $ac_status); } && {
7532 test -z "$ac_c_werror_flag" ||
7533 test ! -s conftest.err
7534 } && test -s conftest.
$ac_objext; then
7535 emacs_cv_speed_t
=yes
7537 echo "$as_me: failed program was:" >&5
7538 sed 's/^/| /' conftest.
$ac_ext >&5
7543 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7545 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7546 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7547 if test $emacs_cv_speed_t = yes; then
7549 cat >>confdefs.h
<<\_ACEOF
7550 #define HAVE_SPEED_T 1
7555 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7556 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7557 if test "${emacs_cv_struct_timeval+set}" = set; then
7558 echo $ECHO_N "(cached) $ECHO_C" >&6
7560 cat >conftest.
$ac_ext <<_ACEOF
7563 cat confdefs.h
>>conftest.
$ac_ext
7564 cat >>conftest.
$ac_ext <<_ACEOF
7565 /* end confdefs.h. */
7566 #ifdef TIME_WITH_SYS_TIME
7567 #include <sys/time.h>
7570 #ifdef HAVE_SYS_TIME_H
7571 #include <sys/time.h>
7579 static struct timeval x; x.tv_sec = x.tv_usec;
7584 rm -f conftest.
$ac_objext
7585 if { (ac_try
="$ac_compile"
7587 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7588 *) ac_try_echo=$ac_try;;
7590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7591 (eval "$ac_compile") 2>conftest.er1
7593 grep -v '^ *+' conftest.er1 >conftest.err
7595 cat conftest.err >&5
7596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7597 (exit $ac_status); } && {
7598 test -z "$ac_c_werror_flag" ||
7599 test ! -s conftest.err
7600 } && test -s conftest.$ac_objext; then
7601 emacs_cv_struct_timeval=yes
7603 echo "$as_me: failed program was:" >&5
7604 sed 's/^/| /' conftest.$ac_ext >&5
7606 emacs_cv_struct_timeval=no
7609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7611 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7612 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7613 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7614 if test $emacs_cv_struct_timeval = yes; then
7616 cat >>confdefs.h <<\_ACEOF
7617 #define HAVE_TIMEVAL 1
7622 { echo "$as_me:$LINENO: checking for struct exception" >&5
7623 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7624 if test "${emacs_cv_struct_exception+set}" = set; then
7625 echo $ECHO_N "(cached) $ECHO_C" >&6
7627 cat >conftest.$ac_ext <<_ACEOF
7630 cat confdefs.h >>conftest.$ac_ext
7631 cat >>conftest.$ac_ext <<_ACEOF
7632 /* end confdefs.h. */
7637 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7642 rm -f conftest.$ac_objext
7643 if { (ac_try="$ac_compile"
7645 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7646 *) ac_try_echo
=$ac_try;;
7648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7649 (eval "$ac_compile") 2>conftest.er1
7651 grep -v '^ *+' conftest.er1
>conftest.err
7653 cat conftest.err
>&5
7654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7655 (exit $ac_status); } && {
7656 test -z "$ac_c_werror_flag" ||
7657 test ! -s conftest.err
7658 } && test -s conftest.
$ac_objext; then
7659 emacs_cv_struct_exception
=yes
7661 echo "$as_me: failed program was:" >&5
7662 sed 's/^/| /' conftest.
$ac_ext >&5
7664 emacs_cv_struct_exception
=no
7667 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7669 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7670 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7671 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7672 if test $emacs_cv_struct_exception != yes; then
7674 cat >>confdefs.h
<<\_ACEOF
7675 #define NO_MATHERR 1
7681 for ac_header
in sys
/socket.h
7683 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7684 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7685 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7686 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7687 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7688 echo $ECHO_N "(cached) $ECHO_C" >&6
7690 ac_res
=`eval echo '${'$as_ac_Header'}'`
7691 { echo "$as_me:$LINENO: result: $ac_res" >&5
7692 echo "${ECHO_T}$ac_res" >&6; }
7694 # Is the header compilable?
7695 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7696 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7697 cat >conftest.
$ac_ext <<_ACEOF
7700 cat confdefs.h
>>conftest.
$ac_ext
7701 cat >>conftest.
$ac_ext <<_ACEOF
7702 /* end confdefs.h. */
7703 $ac_includes_default
7704 #include <$ac_header>
7706 rm -f conftest.
$ac_objext
7707 if { (ac_try
="$ac_compile"
7709 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7710 *) ac_try_echo=$ac_try;;
7712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7713 (eval "$ac_compile") 2>conftest.er1
7715 grep -v '^ *+' conftest.er1 >conftest.err
7717 cat conftest.err >&5
7718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7719 (exit $ac_status); } && {
7720 test -z "$ac_c_werror_flag" ||
7721 test ! -s conftest.err
7722 } && test -s conftest.$ac_objext; then
7723 ac_header_compiler=yes
7725 echo "$as_me: failed program was:" >&5
7726 sed 's/^/| /' conftest.$ac_ext >&5
7728 ac_header_compiler=no
7731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7732 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7733 echo "${ECHO_T}$ac_header_compiler" >&6; }
7735 # Is the header present?
7736 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7737 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7738 cat >conftest.$ac_ext <<_ACEOF
7741 cat confdefs.h >>conftest.$ac_ext
7742 cat >>conftest.$ac_ext <<_ACEOF
7743 /* end confdefs.h. */
7744 #include <$ac_header>
7746 if { (ac_try="$ac_cpp conftest.$ac_ext"
7748 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7749 *) ac_try_echo
=$ac_try;;
7751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7752 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7754 grep -v '^ *+' conftest.er1
>conftest.err
7756 cat conftest.err
>&5
7757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7758 (exit $ac_status); } >/dev
/null
&& {
7759 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7760 test ! -s conftest.err
7762 ac_header_preproc
=yes
7764 echo "$as_me: failed program was:" >&5
7765 sed 's/^/| /' conftest.
$ac_ext >&5
7767 ac_header_preproc
=no
7770 rm -f conftest.err conftest.
$ac_ext
7771 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7772 echo "${ECHO_T}$ac_header_preproc" >&6; }
7774 # So? What about this header?
7775 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7777 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7778 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7779 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7780 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7781 ac_header_preproc
=yes
7784 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7785 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7786 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7787 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7788 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7789 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7790 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7791 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7792 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7793 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7794 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7795 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7799 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7800 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7801 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7802 echo $ECHO_N "(cached) $ECHO_C" >&6
7804 eval "$as_ac_Header=\$ac_header_preproc"
7806 ac_res
=`eval echo '${'$as_ac_Header'}'`
7807 { echo "$as_me:$LINENO: result: $ac_res" >&5
7808 echo "${ECHO_T}$ac_res" >&6; }
7811 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7812 cat >>confdefs.h
<<_ACEOF
7813 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7821 for ac_header
in net
/if.h
7823 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7824 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7825 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7826 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7827 echo $ECHO_N "(cached) $ECHO_C" >&6
7829 cat >conftest.
$ac_ext <<_ACEOF
7832 cat confdefs.h
>>conftest.
$ac_ext
7833 cat >>conftest.
$ac_ext <<_ACEOF
7834 /* end confdefs.h. */
7835 $ac_includes_default
7836 #if HAVE_SYS_SOCKET_H
7837 #include <sys/socket.h>
7840 #include <$ac_header>
7842 rm -f conftest.
$ac_objext
7843 if { (ac_try
="$ac_compile"
7845 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7846 *) ac_try_echo=$ac_try;;
7848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7849 (eval "$ac_compile") 2>conftest.er1
7851 grep -v '^ *+' conftest.er1 >conftest.err
7853 cat conftest.err >&5
7854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7855 (exit $ac_status); } && {
7856 test -z "$ac_c_werror_flag" ||
7857 test ! -s conftest.err
7858 } && test -s conftest.$ac_objext; then
7859 eval "$as_ac_Header=yes"
7861 echo "$as_me: failed program was:" >&5
7862 sed 's/^/| /' conftest.$ac_ext >&5
7864 eval "$as_ac_Header=no"
7867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7869 ac_res=`eval echo '${'$as_ac_Header'}'`
7870 { echo "$as_me:$LINENO: result: $ac_res" >&5
7871 echo "${ECHO_T}$ac_res" >&6; }
7872 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7873 cat >>confdefs.h <<_ACEOF
7874 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7882 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7883 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7884 if test "${ac_cv_struct_tm+set}" = set; then
7885 echo $ECHO_N "(cached) $ECHO_C" >&6
7887 cat >conftest.$ac_ext <<_ACEOF
7890 cat confdefs.h >>conftest.$ac_ext
7891 cat >>conftest.$ac_ext <<_ACEOF
7892 /* end confdefs.h. */
7893 #include <sys/types.h>
7900 int *p = &tm.tm_sec;
7906 rm -f conftest.$ac_objext
7907 if { (ac_try="$ac_compile"
7909 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7910 *) ac_try_echo
=$ac_try;;
7912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7913 (eval "$ac_compile") 2>conftest.er1
7915 grep -v '^ *+' conftest.er1
>conftest.err
7917 cat conftest.err
>&5
7918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7919 (exit $ac_status); } && {
7920 test -z "$ac_c_werror_flag" ||
7921 test ! -s conftest.err
7922 } && test -s conftest.
$ac_objext; then
7923 ac_cv_struct_tm
=time.h
7925 echo "$as_me: failed program was:" >&5
7926 sed 's/^/| /' conftest.
$ac_ext >&5
7928 ac_cv_struct_tm
=sys
/time.h
7931 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7933 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7934 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7935 if test $ac_cv_struct_tm = sys
/time.h
; then
7937 cat >>confdefs.h
<<\_ACEOF
7938 #define TM_IN_SYS_TIME 1
7943 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7944 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7945 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7946 echo $ECHO_N "(cached) $ECHO_C" >&6
7948 cat >conftest.
$ac_ext <<_ACEOF
7951 cat confdefs.h
>>conftest.
$ac_ext
7952 cat >>conftest.
$ac_ext <<_ACEOF
7953 /* end confdefs.h. */
7954 #include <sys/types.h>
7955 #include <$ac_cv_struct_tm>
7961 static struct tm ac_aggr;
7962 if (ac_aggr.tm_zone)
7968 rm -f conftest.
$ac_objext
7969 if { (ac_try
="$ac_compile"
7971 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7972 *) ac_try_echo=$ac_try;;
7974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7975 (eval "$ac_compile") 2>conftest.er1
7977 grep -v '^ *+' conftest.er1 >conftest.err
7979 cat conftest.err >&5
7980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7981 (exit $ac_status); } && {
7982 test -z "$ac_c_werror_flag" ||
7983 test ! -s conftest.err
7984 } && test -s conftest.$ac_objext; then
7985 ac_cv_member_struct_tm_tm_zone=yes
7987 echo "$as_me: failed program was:" >&5
7988 sed 's/^/| /' conftest.$ac_ext >&5
7990 cat >conftest.$ac_ext <<_ACEOF
7993 cat confdefs.h >>conftest.$ac_ext
7994 cat >>conftest.$ac_ext <<_ACEOF
7995 /* end confdefs.h. */
7996 #include <sys/types.h>
7997 #include <$ac_cv_struct_tm>
8003 static struct tm ac_aggr;
8004 if (sizeof ac_aggr.tm_zone)
8010 rm -f conftest.$ac_objext
8011 if { (ac_try="$ac_compile"
8013 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8014 *) ac_try_echo
=$ac_try;;
8016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8017 (eval "$ac_compile") 2>conftest.er1
8019 grep -v '^ *+' conftest.er1
>conftest.err
8021 cat conftest.err
>&5
8022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8023 (exit $ac_status); } && {
8024 test -z "$ac_c_werror_flag" ||
8025 test ! -s conftest.err
8026 } && test -s conftest.
$ac_objext; then
8027 ac_cv_member_struct_tm_tm_zone
=yes
8029 echo "$as_me: failed program was:" >&5
8030 sed 's/^/| /' conftest.
$ac_ext >&5
8032 ac_cv_member_struct_tm_tm_zone
=no
8035 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8038 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8040 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8041 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
8042 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8044 cat >>confdefs.h
<<_ACEOF
8045 #define HAVE_STRUCT_TM_TM_ZONE 1
8051 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8053 cat >>confdefs.h
<<\_ACEOF
8054 #define HAVE_TM_ZONE 1
8058 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8059 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
8060 if test "${ac_cv_have_decl_tzname+set}" = set; then
8061 echo $ECHO_N "(cached) $ECHO_C" >&6
8063 cat >conftest.
$ac_ext <<_ACEOF
8066 cat confdefs.h
>>conftest.
$ac_ext
8067 cat >>conftest.
$ac_ext <<_ACEOF
8068 /* end confdefs.h. */
8082 rm -f conftest.
$ac_objext
8083 if { (ac_try
="$ac_compile"
8085 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8086 *) ac_try_echo=$ac_try;;
8088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8089 (eval "$ac_compile") 2>conftest.er1
8091 grep -v '^ *+' conftest.er1 >conftest.err
8093 cat conftest.err >&5
8094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8095 (exit $ac_status); } && {
8096 test -z "$ac_c_werror_flag" ||
8097 test ! -s conftest.err
8098 } && test -s conftest.$ac_objext; then
8099 ac_cv_have_decl_tzname=yes
8101 echo "$as_me: failed program was:" >&5
8102 sed 's/^/| /' conftest.$ac_ext >&5
8104 ac_cv_have_decl_tzname=no
8107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8109 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8110 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
8111 if test $ac_cv_have_decl_tzname = yes; then
8113 cat >>confdefs.h <<_ACEOF
8114 #define HAVE_DECL_TZNAME 1
8119 cat >>confdefs.h <<_ACEOF
8120 #define HAVE_DECL_TZNAME 0
8127 { echo "$as_me:$LINENO: checking for tzname" >&5
8128 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
8129 if test "${ac_cv_var_tzname+set}" = set; then
8130 echo $ECHO_N "(cached) $ECHO_C" >&6
8132 cat >conftest.$ac_ext <<_ACEOF
8135 cat confdefs.h >>conftest.$ac_ext
8136 cat >>conftest.$ac_ext <<_ACEOF
8137 /* end confdefs.h. */
8139 #if !HAVE_DECL_TZNAME
8140 extern char *tzname[];
8146 return tzname[0][0];
8151 rm -f conftest.$ac_objext conftest$ac_exeext
8152 if { (ac_try="$ac_link"
8154 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8155 *) ac_try_echo
=$ac_try;;
8157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8158 (eval "$ac_link") 2>conftest.er1
8160 grep -v '^ *+' conftest.er1
>conftest.err
8162 cat conftest.err
>&5
8163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8164 (exit $ac_status); } && {
8165 test -z "$ac_c_werror_flag" ||
8166 test ! -s conftest.err
8167 } && test -s conftest
$ac_exeext &&
8168 $as_test_x conftest
$ac_exeext; then
8169 ac_cv_var_tzname
=yes
8171 echo "$as_me: failed program was:" >&5
8172 sed 's/^/| /' conftest.
$ac_ext >&5
8177 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8178 conftest
$ac_exeext conftest.
$ac_ext
8180 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8181 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
8182 if test $ac_cv_var_tzname = yes; then
8184 cat >>confdefs.h
<<\_ACEOF
8185 #define HAVE_TZNAME 1
8191 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8192 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
8193 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8194 echo $ECHO_N "(cached) $ECHO_C" >&6
8196 cat >conftest.
$ac_ext <<_ACEOF
8199 cat confdefs.h
>>conftest.
$ac_ext
8200 cat >>conftest.
$ac_ext <<_ACEOF
8201 /* end confdefs.h. */
8207 static struct tm ac_aggr;
8208 if (ac_aggr.tm_gmtoff)
8214 rm -f conftest.
$ac_objext
8215 if { (ac_try
="$ac_compile"
8217 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8218 *) ac_try_echo=$ac_try;;
8220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8221 (eval "$ac_compile") 2>conftest.er1
8223 grep -v '^ *+' conftest.er1 >conftest.err
8225 cat conftest.err >&5
8226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227 (exit $ac_status); } && {
8228 test -z "$ac_c_werror_flag" ||
8229 test ! -s conftest.err
8230 } && test -s conftest.$ac_objext; then
8231 ac_cv_member_struct_tm_tm_gmtoff=yes
8233 echo "$as_me: failed program was:" >&5
8234 sed 's/^/| /' conftest.$ac_ext >&5
8236 cat >conftest.$ac_ext <<_ACEOF
8239 cat confdefs.h >>conftest.$ac_ext
8240 cat >>conftest.$ac_ext <<_ACEOF
8241 /* end confdefs.h. */
8247 static struct tm ac_aggr;
8248 if (sizeof ac_aggr.tm_gmtoff)
8254 rm -f conftest.$ac_objext
8255 if { (ac_try="$ac_compile"
8257 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8258 *) ac_try_echo
=$ac_try;;
8260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8261 (eval "$ac_compile") 2>conftest.er1
8263 grep -v '^ *+' conftest.er1
>conftest.err
8265 cat conftest.err
>&5
8266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267 (exit $ac_status); } && {
8268 test -z "$ac_c_werror_flag" ||
8269 test ! -s conftest.err
8270 } && test -s conftest.
$ac_objext; then
8271 ac_cv_member_struct_tm_tm_gmtoff
=yes
8273 echo "$as_me: failed program was:" >&5
8274 sed 's/^/| /' conftest.
$ac_ext >&5
8276 ac_cv_member_struct_tm_tm_gmtoff
=no
8279 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8282 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8284 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8285 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8286 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8288 cat >>confdefs.h
<<\_ACEOF
8289 #define HAVE_TM_GMTOFF 1
8294 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8295 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8296 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8297 echo $ECHO_N "(cached) $ECHO_C" >&6
8299 cat >conftest.
$ac_ext <<_ACEOF
8302 cat confdefs.h
>>conftest.
$ac_ext
8303 cat >>conftest.
$ac_ext <<_ACEOF
8304 /* end confdefs.h. */
8305 $ac_includes_default
8306 #if HAVE_SYS_SOCKET_H
8307 #include <sys/socket.h>
8316 static struct ifreq ac_aggr;
8317 if (ac_aggr.ifr_flags)
8323 rm -f conftest.
$ac_objext
8324 if { (ac_try
="$ac_compile"
8326 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8327 *) ac_try_echo=$ac_try;;
8329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8330 (eval "$ac_compile") 2>conftest.er1
8332 grep -v '^ *+' conftest.er1 >conftest.err
8334 cat conftest.err >&5
8335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8336 (exit $ac_status); } && {
8337 test -z "$ac_c_werror_flag" ||
8338 test ! -s conftest.err
8339 } && test -s conftest.$ac_objext; then
8340 ac_cv_member_struct_ifreq_ifr_flags=yes
8342 echo "$as_me: failed program was:" >&5
8343 sed 's/^/| /' conftest.$ac_ext >&5
8345 cat >conftest.$ac_ext <<_ACEOF
8348 cat confdefs.h >>conftest.$ac_ext
8349 cat >>conftest.$ac_ext <<_ACEOF
8350 /* end confdefs.h. */
8351 $ac_includes_default
8352 #if HAVE_SYS_SOCKET_H
8353 #include <sys/socket.h>
8362 static struct ifreq ac_aggr;
8363 if (sizeof ac_aggr.ifr_flags)
8369 rm -f conftest.$ac_objext
8370 if { (ac_try="$ac_compile"
8372 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8373 *) ac_try_echo
=$ac_try;;
8375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8376 (eval "$ac_compile") 2>conftest.er1
8378 grep -v '^ *+' conftest.er1
>conftest.err
8380 cat conftest.err
>&5
8381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382 (exit $ac_status); } && {
8383 test -z "$ac_c_werror_flag" ||
8384 test ! -s conftest.err
8385 } && test -s conftest.
$ac_objext; then
8386 ac_cv_member_struct_ifreq_ifr_flags
=yes
8388 echo "$as_me: failed program was:" >&5
8389 sed 's/^/| /' conftest.
$ac_ext >&5
8391 ac_cv_member_struct_ifreq_ifr_flags
=no
8394 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8397 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8399 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8400 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8401 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8403 cat >>confdefs.h
<<_ACEOF
8404 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8409 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8410 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8411 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8412 echo $ECHO_N "(cached) $ECHO_C" >&6
8414 cat >conftest.
$ac_ext <<_ACEOF
8417 cat confdefs.h
>>conftest.
$ac_ext
8418 cat >>conftest.
$ac_ext <<_ACEOF
8419 /* end confdefs.h. */
8420 $ac_includes_default
8421 #if HAVE_SYS_SOCKET_H
8422 #include <sys/socket.h>
8431 static struct ifreq ac_aggr;
8432 if (ac_aggr.ifr_hwaddr)
8438 rm -f conftest.
$ac_objext
8439 if { (ac_try
="$ac_compile"
8441 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8442 *) ac_try_echo=$ac_try;;
8444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8445 (eval "$ac_compile") 2>conftest.er1
8447 grep -v '^ *+' conftest.er1 >conftest.err
8449 cat conftest.err >&5
8450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451 (exit $ac_status); } && {
8452 test -z "$ac_c_werror_flag" ||
8453 test ! -s conftest.err
8454 } && test -s conftest.$ac_objext; then
8455 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8457 echo "$as_me: failed program was:" >&5
8458 sed 's/^/| /' conftest.$ac_ext >&5
8460 cat >conftest.$ac_ext <<_ACEOF
8463 cat confdefs.h >>conftest.$ac_ext
8464 cat >>conftest.$ac_ext <<_ACEOF
8465 /* end confdefs.h. */
8466 $ac_includes_default
8467 #if HAVE_SYS_SOCKET_H
8468 #include <sys/socket.h>
8477 static struct ifreq ac_aggr;
8478 if (sizeof ac_aggr.ifr_hwaddr)
8484 rm -f conftest.$ac_objext
8485 if { (ac_try="$ac_compile"
8487 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8488 *) ac_try_echo
=$ac_try;;
8490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8491 (eval "$ac_compile") 2>conftest.er1
8493 grep -v '^ *+' conftest.er1
>conftest.err
8495 cat conftest.err
>&5
8496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497 (exit $ac_status); } && {
8498 test -z "$ac_c_werror_flag" ||
8499 test ! -s conftest.err
8500 } && test -s conftest.
$ac_objext; then
8501 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8503 echo "$as_me: failed program was:" >&5
8504 sed 's/^/| /' conftest.
$ac_ext >&5
8506 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8509 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8512 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8514 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8515 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8516 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8518 cat >>confdefs.h
<<_ACEOF
8519 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8524 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8525 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8526 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8527 echo $ECHO_N "(cached) $ECHO_C" >&6
8529 cat >conftest.
$ac_ext <<_ACEOF
8532 cat confdefs.h
>>conftest.
$ac_ext
8533 cat >>conftest.
$ac_ext <<_ACEOF
8534 /* end confdefs.h. */
8535 $ac_includes_default
8536 #if HAVE_SYS_SOCKET_H
8537 #include <sys/socket.h>
8546 static struct ifreq ac_aggr;
8547 if (ac_aggr.ifr_netmask)
8553 rm -f conftest.
$ac_objext
8554 if { (ac_try
="$ac_compile"
8556 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8557 *) ac_try_echo=$ac_try;;
8559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8560 (eval "$ac_compile") 2>conftest.er1
8562 grep -v '^ *+' conftest.er1 >conftest.err
8564 cat conftest.err >&5
8565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566 (exit $ac_status); } && {
8567 test -z "$ac_c_werror_flag" ||
8568 test ! -s conftest.err
8569 } && test -s conftest.$ac_objext; then
8570 ac_cv_member_struct_ifreq_ifr_netmask=yes
8572 echo "$as_me: failed program was:" >&5
8573 sed 's/^/| /' conftest.$ac_ext >&5
8575 cat >conftest.$ac_ext <<_ACEOF
8578 cat confdefs.h >>conftest.$ac_ext
8579 cat >>conftest.$ac_ext <<_ACEOF
8580 /* end confdefs.h. */
8581 $ac_includes_default
8582 #if HAVE_SYS_SOCKET_H
8583 #include <sys/socket.h>
8592 static struct ifreq ac_aggr;
8593 if (sizeof ac_aggr.ifr_netmask)
8599 rm -f conftest.$ac_objext
8600 if { (ac_try="$ac_compile"
8602 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8603 *) ac_try_echo
=$ac_try;;
8605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8606 (eval "$ac_compile") 2>conftest.er1
8608 grep -v '^ *+' conftest.er1
>conftest.err
8610 cat conftest.err
>&5
8611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612 (exit $ac_status); } && {
8613 test -z "$ac_c_werror_flag" ||
8614 test ! -s conftest.err
8615 } && test -s conftest.
$ac_objext; then
8616 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8618 echo "$as_me: failed program was:" >&5
8619 sed 's/^/| /' conftest.
$ac_ext >&5
8621 ac_cv_member_struct_ifreq_ifr_netmask
=no
8624 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8627 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8629 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8630 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8631 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8633 cat >>confdefs.h
<<_ACEOF
8634 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8639 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8640 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8641 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8642 echo $ECHO_N "(cached) $ECHO_C" >&6
8644 cat >conftest.
$ac_ext <<_ACEOF
8647 cat confdefs.h
>>conftest.
$ac_ext
8648 cat >>conftest.
$ac_ext <<_ACEOF
8649 /* end confdefs.h. */
8650 $ac_includes_default
8651 #if HAVE_SYS_SOCKET_H
8652 #include <sys/socket.h>
8661 static struct ifreq ac_aggr;
8662 if (ac_aggr.ifr_broadaddr)
8668 rm -f conftest.
$ac_objext
8669 if { (ac_try
="$ac_compile"
8671 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8672 *) ac_try_echo=$ac_try;;
8674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8675 (eval "$ac_compile") 2>conftest.er1
8677 grep -v '^ *+' conftest.er1 >conftest.err
8679 cat conftest.err >&5
8680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8681 (exit $ac_status); } && {
8682 test -z "$ac_c_werror_flag" ||
8683 test ! -s conftest.err
8684 } && test -s conftest.$ac_objext; then
8685 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8687 echo "$as_me: failed program was:" >&5
8688 sed 's/^/| /' conftest.$ac_ext >&5
8690 cat >conftest.$ac_ext <<_ACEOF
8693 cat confdefs.h >>conftest.$ac_ext
8694 cat >>conftest.$ac_ext <<_ACEOF
8695 /* end confdefs.h. */
8696 $ac_includes_default
8697 #if HAVE_SYS_SOCKET_H
8698 #include <sys/socket.h>
8707 static struct ifreq ac_aggr;
8708 if (sizeof ac_aggr.ifr_broadaddr)
8714 rm -f conftest.$ac_objext
8715 if { (ac_try="$ac_compile"
8717 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8718 *) ac_try_echo
=$ac_try;;
8720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8721 (eval "$ac_compile") 2>conftest.er1
8723 grep -v '^ *+' conftest.er1
>conftest.err
8725 cat conftest.err
>&5
8726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727 (exit $ac_status); } && {
8728 test -z "$ac_c_werror_flag" ||
8729 test ! -s conftest.err
8730 } && test -s conftest.
$ac_objext; then
8731 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
8733 echo "$as_me: failed program was:" >&5
8734 sed 's/^/| /' conftest.
$ac_ext >&5
8736 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
8739 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8742 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8744 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8745 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8746 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8748 cat >>confdefs.h
<<_ACEOF
8749 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8754 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8755 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8756 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8757 echo $ECHO_N "(cached) $ECHO_C" >&6
8759 cat >conftest.
$ac_ext <<_ACEOF
8762 cat confdefs.h
>>conftest.
$ac_ext
8763 cat >>conftest.
$ac_ext <<_ACEOF
8764 /* end confdefs.h. */
8765 $ac_includes_default
8766 #if HAVE_SYS_SOCKET_H
8767 #include <sys/socket.h>
8776 static struct ifreq ac_aggr;
8777 if (ac_aggr.ifr_addr)
8783 rm -f conftest.
$ac_objext
8784 if { (ac_try
="$ac_compile"
8786 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8787 *) ac_try_echo=$ac_try;;
8789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8790 (eval "$ac_compile") 2>conftest.er1
8792 grep -v '^ *+' conftest.er1 >conftest.err
8794 cat conftest.err >&5
8795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8796 (exit $ac_status); } && {
8797 test -z "$ac_c_werror_flag" ||
8798 test ! -s conftest.err
8799 } && test -s conftest.$ac_objext; then
8800 ac_cv_member_struct_ifreq_ifr_addr=yes
8802 echo "$as_me: failed program was:" >&5
8803 sed 's/^/| /' conftest.$ac_ext >&5
8805 cat >conftest.$ac_ext <<_ACEOF
8808 cat confdefs.h >>conftest.$ac_ext
8809 cat >>conftest.$ac_ext <<_ACEOF
8810 /* end confdefs.h. */
8811 $ac_includes_default
8812 #if HAVE_SYS_SOCKET_H
8813 #include <sys/socket.h>
8822 static struct ifreq ac_aggr;
8823 if (sizeof ac_aggr.ifr_addr)
8829 rm -f conftest.$ac_objext
8830 if { (ac_try="$ac_compile"
8832 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8833 *) ac_try_echo
=$ac_try;;
8835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8836 (eval "$ac_compile") 2>conftest.er1
8838 grep -v '^ *+' conftest.er1
>conftest.err
8840 cat conftest.err
>&5
8841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8842 (exit $ac_status); } && {
8843 test -z "$ac_c_werror_flag" ||
8844 test ! -s conftest.err
8845 } && test -s conftest.
$ac_objext; then
8846 ac_cv_member_struct_ifreq_ifr_addr
=yes
8848 echo "$as_me: failed program was:" >&5
8849 sed 's/^/| /' conftest.
$ac_ext >&5
8851 ac_cv_member_struct_ifreq_ifr_addr
=no
8854 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8857 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8859 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8860 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8861 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8863 cat >>confdefs.h
<<_ACEOF
8864 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8872 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8873 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8874 if test "$ac_cv_prog_cc_c89" != no
; then
8875 { echo "$as_me:$LINENO: result: yes" >&5
8876 echo "${ECHO_T}yes" >&6; }
8878 cat >>confdefs.h
<<\_ACEOF
8879 #define PROTOTYPES 1
8883 cat >>confdefs.h
<<\_ACEOF
8884 #define __PROTOTYPES 1
8888 { echo "$as_me:$LINENO: result: no" >&5
8889 echo "${ECHO_T}no" >&6; }
8892 { echo "$as_me:$LINENO: checking for working volatile" >&5
8893 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8894 if test "${ac_cv_c_volatile+set}" = set; then
8895 echo $ECHO_N "(cached) $ECHO_C" >&6
8897 cat >conftest.
$ac_ext <<_ACEOF
8900 cat confdefs.h
>>conftest.
$ac_ext
8901 cat >>conftest.
$ac_ext <<_ACEOF
8902 /* end confdefs.h. */
8909 int * volatile y = (int *) 0;
8915 rm -f conftest.
$ac_objext
8916 if { (ac_try
="$ac_compile"
8918 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8919 *) ac_try_echo=$ac_try;;
8921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8922 (eval "$ac_compile") 2>conftest.er1
8924 grep -v '^ *+' conftest.er1 >conftest.err
8926 cat conftest.err >&5
8927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928 (exit $ac_status); } && {
8929 test -z "$ac_c_werror_flag" ||
8930 test ! -s conftest.err
8931 } && test -s conftest.$ac_objext; then
8932 ac_cv_c_volatile=yes
8934 echo "$as_me: failed program was:" >&5
8935 sed 's/^/| /' conftest.$ac_ext >&5
8940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8942 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8943 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8944 if test $ac_cv_c_volatile = no; then
8946 cat >>confdefs.h <<\_ACEOF
8952 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8953 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8954 if test "${ac_cv_c_const+set}" = set; then
8955 echo $ECHO_N "(cached) $ECHO_C" >&6
8957 cat >conftest.$ac_ext <<_ACEOF
8960 cat confdefs.h >>conftest.$ac_ext
8961 cat >>conftest.$ac_ext <<_ACEOF
8962 /* end confdefs.h. */
8967 /* FIXME: Include the comments suggested by Paul. */
8969 /* Ultrix mips cc rejects this. */
8970 typedef int charset[2];
8972 /* SunOS 4.1.1 cc rejects this. */
8973 char const *const *pcpcc;
8975 /* NEC SVR4.0.2 mips cc rejects this. */
8976 struct point {int x, y;};
8977 static struct point const zero = {0,0};
8978 /* AIX XL C 1.02.0.0 rejects this.
8979 It does not let you subtract one const X* pointer from another in
8980 an arm of an if-expression whose if-part is not a constant
8982 const char *g = "string";
8983 pcpcc = &g + (g ? g-g : 0);
8984 /* HPUX 7.0 cc rejects these. */
8986 ppc = (char**) pcpcc;
8987 pcpcc = (char const *const *) ppc;
8988 { /* SCO 3.2v4 cc rejects this. */
8990 char const *s = 0 ? (char *) 0 : (char const *) 0;
8995 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8997 const int *foo = &x[0];
9000 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9001 typedef const int *iptr;
9005 { /* AIX XL C 1.02.0.0 rejects this saying
9006 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9007 struct s { int j; const int *ap[3]; };
9008 struct s *b; b->j = 5;
9010 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9014 return !cs[0] && !zero.x;
9021 rm -f conftest.$ac_objext
9022 if { (ac_try="$ac_compile"
9024 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9025 *) ac_try_echo
=$ac_try;;
9027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9028 (eval "$ac_compile") 2>conftest.er1
9030 grep -v '^ *+' conftest.er1
>conftest.err
9032 cat conftest.err
>&5
9033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9034 (exit $ac_status); } && {
9035 test -z "$ac_c_werror_flag" ||
9036 test ! -s conftest.err
9037 } && test -s conftest.
$ac_objext; then
9040 echo "$as_me: failed program was:" >&5
9041 sed 's/^/| /' conftest.
$ac_ext >&5
9046 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9048 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9049 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9050 if test $ac_cv_c_const = no
; then
9052 cat >>confdefs.h
<<\_ACEOF
9058 { echo "$as_me:$LINENO: checking for void * support" >&5
9059 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
9060 if test "${emacs_cv_void_star+set}" = set; then
9061 echo $ECHO_N "(cached) $ECHO_C" >&6
9063 cat >conftest.
$ac_ext <<_ACEOF
9066 cat confdefs.h
>>conftest.
$ac_ext
9067 cat >>conftest.
$ac_ext <<_ACEOF
9068 /* end confdefs.h. */
9078 rm -f conftest.
$ac_objext
9079 if { (ac_try
="$ac_compile"
9081 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9082 *) ac_try_echo=$ac_try;;
9084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9085 (eval "$ac_compile") 2>conftest.er1
9087 grep -v '^ *+' conftest.er1 >conftest.err
9089 cat conftest.err >&5
9090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9091 (exit $ac_status); } && {
9092 test -z "$ac_c_werror_flag" ||
9093 test ! -s conftest.err
9094 } && test -s conftest.$ac_objext; then
9095 emacs_cv_void_star=yes
9097 echo "$as_me: failed program was:" >&5
9098 sed 's/^/| /' conftest.$ac_ext >&5
9100 emacs_cv_void_star=no
9103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9105 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9106 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
9107 if test $emacs_cv_void_star = yes; then
9108 cat >>confdefs.h <<\_ACEOF
9109 #define POINTER_TYPE void
9113 cat >>confdefs.h <<\_ACEOF
9114 #define POINTER_TYPE char
9123 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9124 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
9125 set x ${MAKE-make}; ac_make=`echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9126 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9127 echo $ECHO_N "(cached) $ECHO_C" >&6
9129 cat >conftest.make <<\_ACEOF
9132 @echo '@@@%%%=$(MAKE)=@@@%%%'
9134 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9135 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
9137 eval ac_cv_prog_make_${ac_make}_set=yes;;
9139 eval ac_cv_prog_make_${ac_make}_set=no;;
9143 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9144 { echo "$as_me:$LINENO: result: yes" >&5
9145 echo "${ECHO_T}yes" >&6; }
9148 { echo "$as_me:$LINENO: result: no" >&5
9149 echo "${ECHO_T}no" >&6; }
9150 SET_MAKE="MAKE=${MAKE-make}"
9154 { echo "$as_me:$LINENO: checking for long file names" >&5
9155 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
9156 if test "${ac_cv_sys_long_file_names+set}" = set; then
9157 echo $ECHO_N "(cached) $ECHO_C" >&6
9159 ac_cv_sys_long_file_names=yes
9160 # Test for long file names in all the places we know might matter:
9161 # . the current directory, where building will happen
9162 # $prefix/lib where we will be installing things
9163 # $exec_prefix/lib likewise
9164 # $TMPDIR if set, where it might want to write temporary files
9165 # /tmp where it might want to write temporary files
9168 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9169 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9170 # in the usual case where exec_prefix is '${prefix}'.
9172 . | /* | ?:[\\/]*) ;; #(
9175 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9176 ac_xdir=$ac_dir/cf$$
9177 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9178 ac_tf1=$ac_xdir/conftest9012345
9179 ac_tf2=$ac_xdir/conftest9012346
9180 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9181 ac_cv_sys_long_file_names=no
9182 rm -f -r "$ac_xdir" 2>/dev/null
9183 test $ac_cv_sys_long_file_names = no && break
9186 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9187 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9188 if test $ac_cv_sys_long_file_names = yes; then
9190 cat >>confdefs.h <<\_ACEOF
9191 #define HAVE_LONG_FILE_NAMES 1
9197 #### Choose a window system.
9199 { echo "$as_me:$LINENO: checking for X" >&5
9200 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9203 # Check whether --with-x was given.
9204 if test "${with_x+set}" = set; then
9208 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9209 if test "x$with_x" = xno; then
9210 # The user explicitly disabled X.
9213 case $x_includes,$x_libraries in #(
9214 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9215 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9216 { (exit 1); exit 1; }; };; #(
9217 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9218 echo $ECHO_N "(cached) $ECHO_C" >&6
9220 # One or both of the vars are not set, and there is no cached value.
9221 ac_x_includes=no ac_x_libraries=no
9222 rm -f -r conftest.dir
9223 if mkdir conftest.dir; then
9225 cat >Imakefile <<'_ACEOF'
9227 @echo incroot='${INCROOT}'
9229 @echo usrlibdir='${USRLIBDIR}'
9231 @echo libdir='${LIBDIR}'
9233 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9234 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9235 for ac_var in incroot usrlibdir libdir; do
9236 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
9238 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9239 for ac_extension in a so sl; do
9240 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9241 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9242 ac_im_usrlibdir=$ac_im_libdir; break
9245 # Screen out bogus values from the imake configuration. They are
9246 # bogus both because they are the default anyway, and because
9247 # using them would break gcc on systems where it needs fixed includes.
9248 case $ac_im_incroot in
9249 /usr/include) ac_x_includes= ;;
9250 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9252 case $ac_im_usrlibdir in
9254 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9258 rm -f -r conftest.dir
9261 # Standard set of common directories for X headers.
9262 # Check X11 before X11Rn because it is often a symlink to the current release.
9274 /usr/local/X11/include
9275 /usr/local/X11R6/include
9276 /usr/local/X11R5/include
9277 /usr/local/X11R4/include
9279 /usr/local/include/X11
9280 /usr/local/include/X11R6
9281 /usr/local/include/X11R5
9282 /usr/local/include/X11R4
9286 /usr/XFree86/include/X11
9290 /usr/unsupported/include
9292 /usr/local/x11r5/include
9293 /usr/lpp/Xamples/include
9295 /usr/openwin/include
9296 /usr/openwin/share/include'
9298 if test "$ac_x_includes" = no; then
9299 # Guess where to find include files, by looking for Xlib.h.
9300 # First, try using that file with no special directory specified.
9301 cat >conftest.$ac_ext <<_ACEOF
9304 cat confdefs.h >>conftest.$ac_ext
9305 cat >>conftest.$ac_ext <<_ACEOF
9306 /* end confdefs.h. */
9307 #include <X11/Xlib.h>
9309 if { (ac_try="$ac_cpp conftest.$ac_ext"
9311 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9312 *) ac_try_echo
=$ac_try;;
9314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9315 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9317 grep -v '^ *+' conftest.er1
>conftest.err
9319 cat conftest.err
>&5
9320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9321 (exit $ac_status); } >/dev
/null
&& {
9322 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9323 test ! -s conftest.err
9325 # We can compile using X headers with no special include directory.
9328 echo "$as_me: failed program was:" >&5
9329 sed 's/^/| /' conftest.
$ac_ext >&5
9331 for ac_dir
in $ac_x_header_dirs; do
9332 if test -r "$ac_dir/X11/Xlib.h"; then
9333 ac_x_includes
=$ac_dir
9339 rm -f conftest.err conftest.
$ac_ext
9340 fi # $ac_x_includes = no
9342 if test "$ac_x_libraries" = no
; then
9343 # Check for the libraries.
9344 # See if we find them without any special options.
9345 # Don't add to $LIBS permanently.
9348 cat >conftest.
$ac_ext <<_ACEOF
9351 cat confdefs.h
>>conftest.
$ac_ext
9352 cat >>conftest.
$ac_ext <<_ACEOF
9353 /* end confdefs.h. */
9354 #include <X11/Xlib.h>
9363 rm -f conftest.
$ac_objext conftest
$ac_exeext
9364 if { (ac_try
="$ac_link"
9366 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9367 *) ac_try_echo=$ac_try;;
9369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9370 (eval "$ac_link") 2>conftest.er1
9372 grep -v '^ *+' conftest.er1 >conftest.err
9374 cat conftest.err >&5
9375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9376 (exit $ac_status); } && {
9377 test -z "$ac_c_werror_flag" ||
9378 test ! -s conftest.err
9379 } && test -s conftest$ac_exeext &&
9380 $as_test_x conftest$ac_exeext; then
9382 # We can link X programs with no special library path.
9385 echo "$as_me: failed program was:" >&5
9386 sed 's/^/| /' conftest.$ac_ext >&5
9389 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
9391 # Don't even attempt the hair of trying to link an X program!
9392 for ac_extension in a so sl; do
9393 if test -r "$ac_dir/libX11.$ac_extension"; then
9394 ac_x_libraries=$ac_dir
9401 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9402 conftest$ac_exeext conftest.$ac_ext
9403 fi # $ac_x_libraries = no
9405 case $ac_x_includes,$ac_x_libraries in #(
9407 # Didn't find X, or a directory has "'" in its name.
9408 ac_cv_have_x="have_x=no";; #(
9410 # Record where we found X for the cache.
9411 ac_cv_have_x="have_x=yes\
9412 ac_x_includes='$ac_x_includes'\
9413 ac_x_libraries='$ac_x_libraries'"
9419 eval "$ac_cv_have_x"
9422 if test "$have_x" != yes; then
9423 { echo "$as_me:$LINENO: result: $have_x" >&5
9424 echo "${ECHO_T}$have_x" >&6; }
9427 # If each of the values was on the command line, it overrides each guess.
9428 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9429 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9430 # Update the cache value to reflect the command line values.
9431 ac_cv_have_x="have_x=yes\
9432 ac_x_includes='$x_includes'\
9433 ac_x_libraries='$x_libraries'"
9434 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9435 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9438 if test "$no_x" = yes; then
9444 if test "${x_libraries}" != NONE; then
9445 if test -n "${x_libraries}"; then
9446 LD_SWITCH_X_SITE=-L`echo ${x_libraries} |
sed -e "s/:/ -L/g"`
9447 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} |
sed -e "s/:/ -R/g"`
9449 x_default_search_path=""
9450 x_search_path=${x_libraries}
9451 if test -z "${x_search_path}"; then
9452 x_search_path=/usr/lib
9454 for x_library in `echo ${x_search_path}: | \
9455 sed -e "s/:/ /g" -e p
-e "s:/lib[^ /]* :/share :g"`; do
9457 ${x_library}/X11/%L/%T/%N%C%S:\
9458 ${x_library}/X11/%l/%T/%N%C%S:\
9459 ${x_library}/X11/%T/%N%C%S:\
9460 ${x_library}/X11/%L/%T/%N%S:\
9461 ${x_library}/X11/%l/%T/%N%S:\
9462 ${x_library}/X11/%T/%N%S"
9463 if test x"${x_default_search_path}" = x; then
9464 x_default_search_path=${x_search_path}
9466 x_default_search_path="${x_search_path}:${x_default_search_path}"
9470 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9471 C_SWITCH_X_SITE=-I`echo ${x_includes} |
sed -e "s/:/ -I/g"`
9474 if test x"${x_includes}" = x; then
9475 bitmapdir=/usr/include/X11/bitmaps
9477 # accumulate include directories that have X11 bitmap subdirectories
9479 for bmd in `echo ${x_includes} |
sed -e "s/:/ /g"`; do
9480 if test -d "${bmd}/X11/bitmaps"; then
9481 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9483 if test -d "${bmd}/bitmaps"; then
9484 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9487 if test ${bmd_acc} != "dummyval"; then
9488 bitmapdir=`echo ${bmd_acc} |
sed -e "s/^dummyval://"`
9493 if test "${with_carbon}" != no; then
9494 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9495 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9496 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9497 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9498 echo $ECHO_N "(cached) $ECHO_C" >&6
9500 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9501 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9503 # Is the header compilable?
9504 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9505 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9506 cat >conftest.$ac_ext <<_ACEOF
9509 cat confdefs.h >>conftest.$ac_ext
9510 cat >>conftest.$ac_ext <<_ACEOF
9511 /* end confdefs.h. */
9512 $ac_includes_default
9513 #include <Carbon/Carbon.h>
9515 rm -f conftest.$ac_objext
9516 if { (ac_try="$ac_compile"
9518 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9519 *) ac_try_echo
=$ac_try;;
9521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9522 (eval "$ac_compile") 2>conftest.er1
9524 grep -v '^ *+' conftest.er1
>conftest.err
9526 cat conftest.err
>&5
9527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9528 (exit $ac_status); } && {
9529 test -z "$ac_c_werror_flag" ||
9530 test ! -s conftest.err
9531 } && test -s conftest.
$ac_objext; then
9532 ac_header_compiler
=yes
9534 echo "$as_me: failed program was:" >&5
9535 sed 's/^/| /' conftest.
$ac_ext >&5
9537 ac_header_compiler
=no
9540 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9541 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9542 echo "${ECHO_T}$ac_header_compiler" >&6; }
9544 # Is the header present?
9545 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9546 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9547 cat >conftest.
$ac_ext <<_ACEOF
9550 cat confdefs.h
>>conftest.
$ac_ext
9551 cat >>conftest.
$ac_ext <<_ACEOF
9552 /* end confdefs.h. */
9553 #include <Carbon/Carbon.h>
9555 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9557 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9558 *) ac_try_echo=$ac_try;;
9560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9561 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9563 grep -v '^ *+' conftest.er1 >conftest.err
9565 cat conftest.err >&5
9566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567 (exit $ac_status); } >/dev/null && {
9568 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9569 test ! -s conftest.err
9571 ac_header_preproc=yes
9573 echo "$as_me: failed program was:" >&5
9574 sed 's/^/| /' conftest.$ac_ext >&5
9576 ac_header_preproc=no
9579 rm -f conftest.err conftest.$ac_ext
9580 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9581 echo "${ECHO_T}$ac_header_preproc" >&6; }
9583 # So? What about this header?
9584 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9586 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9587 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9588 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9589 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9590 ac_header_preproc=yes
9593 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9594 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9595 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9596 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9597 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9598 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9599 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9600 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9601 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9602 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9603 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9604 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9608 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9609 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9610 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9611 echo $ECHO_N "(cached) $ECHO_C" >&6
9613 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9615 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9616 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9619 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9625 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9626 if test "${with_carbon+set}" != set \
9627 && test "${carbon_appdir_x+set}" != set; then
9628 for var in with_x with_x_toolkit with_gtk with_xim \
9629 with_xpm with_jpeg with_tiff with_gif with_png; do
9630 if eval test \"\${$var+set}\" = set; then
9637 if test "${HAVE_CARBON}" = yes; then
9641 case "${window_system}" in
9645 case "${with_x_toolkit}" in
9646 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9647 motif ) USE_X_TOOLKIT=MOTIF ;;
9649 USE_X_TOOLKIT=none ;;
9650 no ) USE_X_TOOLKIT=none ;;
9652 if test x"$with_gtk" = xyes; then
9667 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9668 # Extract the first word of "X", so it can be a program name with args.
9669 set dummy X; ac_word=$2
9670 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9672 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9673 echo $ECHO_N "(cached) $ECHO_C" >&6
9675 if test -n "$HAVE_XSERVER"; then
9676 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9682 test -z "$as_dir" && as_dir=.
9683 for ac_exec_ext in '' $ac_executable_extensions; do
9684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9685 ac_cv_prog_HAVE_XSERVER="true"
9686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9693 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9696 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9697 if test -n "$HAVE_XSERVER"; then
9698 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9699 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9701 { echo "$as_me:$LINENO: result: no" >&5
9702 echo "${ECHO_T}no" >&6; }
9706 if test "$HAVE_XSERVER" = true ||
9707 test -n "$DISPLAY" ||
9708 test "`echo /usr
/lib
/libX11.
*`" != "/usr/lib/libX11.*"; then
9709 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9710 were found. You should install the relevant development files for X
9711 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9712 sure you have development files for image handling, i.e.
9713 tiff, gif, jpeg, png and xpm.
9714 If you are sure you want Emacs compiled without X window support, pass
9717 echo "$as_me: error: You seem to be running X, but no X development libraries
9718 were found. You should install the relevant development files for X
9719 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9720 sure you have development files for image handling, i.e.
9721 tiff, gif, jpeg, png and xpm.
9722 If you are sure you want Emacs compiled without X window support, pass
9724 to configure." >&2;}
9725 { (exit 1); exit 1; }; }
9729 ### If we're using X11, we should use the X menu package.
9732 yes ) HAVE_MENUS=yes ;;
9735 if test "${opsys}" = "hpux9"; then
9736 case "${x_libraries}" in
9738 opsysfile="s/hpux9-x11r4.h"
9743 if test "${opsys}" = "hpux9shr"; then
9744 case "${x_libraries}" in
9746 opsysfile="s/hpux9shxr4.h"
9751 ### Compute the unexec source name from the object name.
9752 UNEXEC_SRC="`echo ${unexec} |
sed 's/\.o/.c/'`"
9754 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9755 # Assume not, until told otherwise.
9758 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9759 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9760 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9761 echo $ECHO_N "(cached) $ECHO_C" >&6
9763 cat >conftest.$ac_ext <<_ACEOF
9766 cat confdefs.h >>conftest.$ac_ext
9767 cat >>conftest.$ac_ext <<_ACEOF
9768 /* end confdefs.h. */
9769 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9770 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9771 #define malloc_get_state innocuous_malloc_get_state
9773 /* System header to define __stub macros and hopefully few prototypes,
9774 which can conflict with char malloc_get_state (); below.
9775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9776 <limits.h> exists even on freestanding compilers. */
9779 # include <limits.h>
9781 # include <assert.h>
9784 #undef malloc_get_state
9786 /* Override any GCC internal prototype to avoid an error.
9787 Use char because int might match the return type of a GCC
9788 builtin and then its argument prototype would still apply. */
9792 char malloc_get_state ();
9793 /* The GNU C library defines this for functions which it implements
9794 to always fail with ENOSYS. Some functions are actually named
9795 something starting with __ and the normal name is an alias. */
9796 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9803 return malloc_get_state ();
9808 rm -f conftest.$ac_objext conftest$ac_exeext
9809 if { (ac_try="$ac_link"
9811 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9812 *) ac_try_echo
=$ac_try;;
9814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9815 (eval "$ac_link") 2>conftest.er1
9817 grep -v '^ *+' conftest.er1
>conftest.err
9819 cat conftest.err
>&5
9820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9821 (exit $ac_status); } && {
9822 test -z "$ac_c_werror_flag" ||
9823 test ! -s conftest.err
9824 } && test -s conftest
$ac_exeext &&
9825 $as_test_x conftest
$ac_exeext; then
9826 ac_cv_func_malloc_get_state
=yes
9828 echo "$as_me: failed program was:" >&5
9829 sed 's/^/| /' conftest.
$ac_ext >&5
9831 ac_cv_func_malloc_get_state
=no
9834 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9835 conftest
$ac_exeext conftest.
$ac_ext
9837 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9838 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9839 if test $ac_cv_func_malloc_get_state = yes; then
9845 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9846 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9847 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9848 echo $ECHO_N "(cached) $ECHO_C" >&6
9850 cat >conftest.
$ac_ext <<_ACEOF
9853 cat confdefs.h
>>conftest.
$ac_ext
9854 cat >>conftest.
$ac_ext <<_ACEOF
9855 /* end confdefs.h. */
9856 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9857 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9858 #define malloc_set_state innocuous_malloc_set_state
9860 /* System header to define __stub macros and hopefully few prototypes,
9861 which can conflict with char malloc_set_state (); below.
9862 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9863 <limits.h> exists even on freestanding compilers. */
9866 # include <limits.h>
9868 # include <assert.h>
9871 #undef malloc_set_state
9873 /* Override any GCC internal prototype to avoid an error.
9874 Use char because int might match the return type of a GCC
9875 builtin and then its argument prototype would still apply. */
9879 char malloc_set_state ();
9880 /* The GNU C library defines this for functions which it implements
9881 to always fail with ENOSYS. Some functions are actually named
9882 something starting with __ and the normal name is an alias. */
9883 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9890 return malloc_set_state ();
9895 rm -f conftest.
$ac_objext conftest
$ac_exeext
9896 if { (ac_try
="$ac_link"
9898 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9899 *) ac_try_echo=$ac_try;;
9901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9902 (eval "$ac_link") 2>conftest.er1
9904 grep -v '^ *+' conftest.er1 >conftest.err
9906 cat conftest.err >&5
9907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908 (exit $ac_status); } && {
9909 test -z "$ac_c_werror_flag" ||
9910 test ! -s conftest.err
9911 } && test -s conftest$ac_exeext &&
9912 $as_test_x conftest$ac_exeext; then
9913 ac_cv_func_malloc_set_state=yes
9915 echo "$as_me: failed program was:" >&5
9916 sed 's/^/| /' conftest.$ac_ext >&5
9918 ac_cv_func_malloc_set_state=no
9921 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9922 conftest$ac_exeext conftest.$ac_ext
9924 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9925 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9926 if test $ac_cv_func_malloc_set_state = yes; then
9932 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9933 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9934 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9935 echo $ECHO_N "(cached) $ECHO_C" >&6
9937 cat >conftest.$ac_ext <<_ACEOF
9940 cat confdefs.h >>conftest.$ac_ext
9941 cat >>conftest.$ac_ext <<_ACEOF
9942 /* end confdefs.h. */
9943 extern void (* __after_morecore_hook)();
9947 __after_morecore_hook = 0
9952 rm -f conftest.$ac_objext conftest$ac_exeext
9953 if { (ac_try="$ac_link"
9955 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9956 *) ac_try_echo
=$ac_try;;
9958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9959 (eval "$ac_link") 2>conftest.er1
9961 grep -v '^ *+' conftest.er1
>conftest.err
9963 cat conftest.err
>&5
9964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965 (exit $ac_status); } && {
9966 test -z "$ac_c_werror_flag" ||
9967 test ! -s conftest.err
9968 } && test -s conftest
$ac_exeext &&
9969 $as_test_x conftest
$ac_exeext; then
9970 emacs_cv_var___after_morecore_hook
=yes
9972 echo "$as_me: failed program was:" >&5
9973 sed 's/^/| /' conftest.
$ac_ext >&5
9975 emacs_cv_var___after_morecore_hook
=no
9978 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9979 conftest
$ac_exeext conftest.
$ac_ext
9981 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9982 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9983 if test $emacs_cv_var___after_morecore_hook = no
; then
9986 if test "${system_malloc}" = "yes"; then
9989 (The GNU allocators don't work with this system configuration.)"
9991 if test "$doug_lea_malloc" = "yes" ; then
9992 if test "$GNU_MALLOC" = yes ; then
9994 (Using Doug Lea's new malloc from the GNU C Library.)"
9997 cat >>confdefs.h
<<\_ACEOF
9998 #define DOUG_LEA_MALLOC 1
10003 if test x
"${REL_ALLOC}" = x
; then
10004 REL_ALLOC
=${GNU_MALLOC}
10010 for ac_header
in stdlib.h unistd.h
10012 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10013 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10014 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10015 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10016 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10017 echo $ECHO_N "(cached) $ECHO_C" >&6
10019 ac_res
=`eval echo '${'$as_ac_Header'}'`
10020 { echo "$as_me:$LINENO: result: $ac_res" >&5
10021 echo "${ECHO_T}$ac_res" >&6; }
10023 # Is the header compilable?
10024 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10025 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10026 cat >conftest.
$ac_ext <<_ACEOF
10029 cat confdefs.h
>>conftest.
$ac_ext
10030 cat >>conftest.
$ac_ext <<_ACEOF
10031 /* end confdefs.h. */
10032 $ac_includes_default
10033 #include <$ac_header>
10035 rm -f conftest.
$ac_objext
10036 if { (ac_try
="$ac_compile"
10037 case "(($ac_try" in
10038 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10039 *) ac_try_echo=$ac_try;;
10041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10042 (eval "$ac_compile") 2>conftest.er1
10044 grep -v '^ *+' conftest.er1 >conftest.err
10046 cat conftest.err >&5
10047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10048 (exit $ac_status); } && {
10049 test -z "$ac_c_werror_flag" ||
10050 test ! -s conftest.err
10051 } && test -s conftest.$ac_objext; then
10052 ac_header_compiler=yes
10054 echo "$as_me: failed program was:" >&5
10055 sed 's/^/| /' conftest.$ac_ext >&5
10057 ac_header_compiler=no
10060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10061 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10062 echo "${ECHO_T}$ac_header_compiler" >&6; }
10064 # Is the header present?
10065 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10066 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10067 cat >conftest.$ac_ext <<_ACEOF
10070 cat confdefs.h >>conftest.$ac_ext
10071 cat >>conftest.$ac_ext <<_ACEOF
10072 /* end confdefs.h. */
10073 #include <$ac_header>
10075 if { (ac_try="$ac_cpp conftest.$ac_ext"
10076 case "(($ac_try" in
10077 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10078 *) ac_try_echo
=$ac_try;;
10080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10081 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10083 grep -v '^ *+' conftest.er1
>conftest.err
10085 cat conftest.err
>&5
10086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10087 (exit $ac_status); } >/dev
/null
&& {
10088 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10089 test ! -s conftest.err
10091 ac_header_preproc
=yes
10093 echo "$as_me: failed program was:" >&5
10094 sed 's/^/| /' conftest.
$ac_ext >&5
10096 ac_header_preproc
=no
10099 rm -f conftest.err conftest.
$ac_ext
10100 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10101 echo "${ECHO_T}$ac_header_preproc" >&6; }
10103 # So? What about this header?
10104 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10106 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10107 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10108 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10109 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10110 ac_header_preproc
=yes
10113 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10114 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10115 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10116 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10117 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10118 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10119 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10120 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10121 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10122 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10123 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10124 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10128 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10129 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10130 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10131 echo $ECHO_N "(cached) $ECHO_C" >&6
10133 eval "$as_ac_Header=\$ac_header_preproc"
10135 ac_res
=`eval echo '${'$as_ac_Header'}'`
10136 { echo "$as_me:$LINENO: result: $ac_res" >&5
10137 echo "${ECHO_T}$ac_res" >&6; }
10140 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10141 cat >>confdefs.h
<<_ACEOF
10142 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10150 for ac_func
in getpagesize
10152 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10153 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10154 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10155 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10156 echo $ECHO_N "(cached) $ECHO_C" >&6
10158 cat >conftest.
$ac_ext <<_ACEOF
10161 cat confdefs.h
>>conftest.
$ac_ext
10162 cat >>conftest.
$ac_ext <<_ACEOF
10163 /* end confdefs.h. */
10164 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10165 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10166 #define $ac_func innocuous_$ac_func
10168 /* System header to define __stub macros and hopefully few prototypes,
10169 which can conflict with char $ac_func (); below.
10170 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10171 <limits.h> exists even on freestanding compilers. */
10174 # include <limits.h>
10176 # include <assert.h>
10181 /* Override any GCC internal prototype to avoid an error.
10182 Use char because int might match the return type of a GCC
10183 builtin and then its argument prototype would still apply. */
10188 /* The GNU C library defines this for functions which it implements
10189 to always fail with ENOSYS. Some functions are actually named
10190 something starting with __ and the normal name is an alias. */
10191 #if defined __stub_$ac_func || defined __stub___$ac_func
10198 return $ac_func ();
10203 rm -f conftest.
$ac_objext conftest
$ac_exeext
10204 if { (ac_try
="$ac_link"
10205 case "(($ac_try" in
10206 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10207 *) ac_try_echo=$ac_try;;
10209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10210 (eval "$ac_link") 2>conftest.er1
10212 grep -v '^ *+' conftest.er1 >conftest.err
10214 cat conftest.err >&5
10215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10216 (exit $ac_status); } && {
10217 test -z "$ac_c_werror_flag" ||
10218 test ! -s conftest.err
10219 } && test -s conftest$ac_exeext &&
10220 $as_test_x conftest$ac_exeext; then
10221 eval "$as_ac_var=yes"
10223 echo "$as_me: failed program was:" >&5
10224 sed 's/^/| /' conftest.$ac_ext >&5
10226 eval "$as_ac_var=no"
10229 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10230 conftest$ac_exeext conftest.$ac_ext
10232 ac_res=`eval echo '${'$as_ac_var'}'`
10233 { echo "$as_me:$LINENO: result: $ac_res" >&5
10234 echo "${ECHO_T}$ac_res" >&6; }
10235 if test `eval echo '${'$as_ac_var'}'` = yes; then
10236 cat >>confdefs.h <<_ACEOF
10237 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10243 { echo "$as_me:$LINENO: checking for working mmap" >&5
10244 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10245 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10246 echo $ECHO_N "(cached) $ECHO_C" >&6
10248 if test "$cross_compiling" = yes; then
10249 ac_cv_func_mmap_fixed_mapped=no
10251 cat >conftest.$ac_ext <<_ACEOF
10254 cat confdefs.h >>conftest.$ac_ext
10255 cat >>conftest.$ac_ext <<_ACEOF
10256 /* end confdefs.h. */
10257 $ac_includes_default
10258 /* malloc might have been renamed as rpl_malloc. */
10261 /* Thanks to Mike Haertel and Jim Avera for this test.
10262 Here is a matrix of mmap possibilities:
10263 mmap private not fixed
10264 mmap private fixed at somewhere currently unmapped
10265 mmap private fixed at somewhere already mapped
10266 mmap shared not fixed
10267 mmap shared fixed at somewhere currently unmapped
10268 mmap shared fixed at somewhere already mapped
10269 For private mappings, we should verify that changes cannot be read()
10270 back from the file, nor mmap's back from the file at a different
10271 address. (There have been systems where private was not correctly
10272 implemented like the infamous i386 svr4.0, and systems where the
10273 VM page cache was not coherent with the file system buffer cache
10274 like early versions of FreeBSD and possibly contemporary NetBSD.)
10275 For shared mappings, we should conversely verify that changes get
10276 propagated back to all the places they're supposed to be.
10278 Grep wants private fixed already mapped.
10279 The main things grep needs to know about mmap are:
10280 * does it exist and is it safe to write into the mmap'd area
10281 * how to use it (BSD variants) */
10284 #include <sys/mman.h>
10286 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10290 /* This mess was copied from the GNU getpagesize.h. */
10291 #ifndef HAVE_GETPAGESIZE
10292 /* Assume that all systems that can run configure have sys/param.h. */
10293 # ifndef HAVE_SYS_PARAM_H
10294 # define HAVE_SYS_PARAM_H 1
10297 # ifdef _SC_PAGESIZE
10298 # define getpagesize() sysconf(_SC_PAGESIZE)
10299 # else /* no _SC_PAGESIZE */
10300 # ifdef HAVE_SYS_PARAM_H
10301 # include <sys/param.h>
10302 # ifdef EXEC_PAGESIZE
10303 # define getpagesize() EXEC_PAGESIZE
10304 # else /* no EXEC_PAGESIZE */
10306 # define getpagesize() NBPG * CLSIZE
10309 # endif /* no CLSIZE */
10310 # else /* no NBPG */
10312 # define getpagesize() NBPC
10313 # else /* no NBPC */
10315 # define getpagesize() PAGESIZE
10316 # endif /* PAGESIZE */
10317 # endif /* no NBPC */
10318 # endif /* no NBPG */
10319 # endif /* no EXEC_PAGESIZE */
10320 # else /* no HAVE_SYS_PARAM_H */
10321 # define getpagesize() 8192 /* punt totally */
10322 # endif /* no HAVE_SYS_PARAM_H */
10323 # endif /* no _SC_PAGESIZE */
10325 #endif /* no HAVE_GETPAGESIZE */
10330 char *data, *data2, *data3;
10334 pagesize = getpagesize ();
10336 /* First, make a file with some known garbage in it. */
10337 data = (char *) malloc (pagesize);
10340 for (i = 0; i < pagesize; ++i)
10341 *(data + i) = rand ();
10343 fd = creat ("conftest.mmap", 0600);
10346 if (write (fd, data, pagesize) != pagesize)
10350 /* Next, try to mmap the file at a fixed address which already has
10351 something else allocated at it. If we can, also make sure that
10352 we see the same garbage. */
10353 fd = open ("conftest.mmap", O_RDWR);
10356 data2 = (char *) malloc (2 * pagesize);
10359 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10360 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10361 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10363 for (i = 0; i < pagesize; ++i)
10364 if (*(data + i) != *(data2 + i))
10367 /* Finally, make sure that changes to the mapped area do not
10368 percolate back to the file as seen by read(). (This is a bug on
10369 some variants of i386 svr4.0.) */
10370 for (i = 0; i < pagesize; ++i)
10371 *(data2 + i) = *(data2 + i) + 1;
10372 data3 = (char *) malloc (pagesize);
10375 if (read (fd, data3, pagesize) != pagesize)
10377 for (i = 0; i < pagesize; ++i)
10378 if (*(data + i) != *(data3 + i))
10384 rm -f conftest$ac_exeext
10385 if { (ac_try="$ac_link"
10386 case "(($ac_try" in
10387 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10388 *) ac_try_echo
=$ac_try;;
10390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10391 (eval "$ac_link") 2>&5
10393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10395 { (case "(($ac_try" in
10396 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10397 *) ac_try_echo=$ac_try;;
10399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10400 (eval "$ac_try") 2>&5
10402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10403 (exit $ac_status); }; }; then
10404 ac_cv_func_mmap_fixed_mapped=yes
10406 echo "$as_me: program exited with status $ac_status" >&5
10407 echo "$as_me: failed program was:" >&5
10408 sed 's/^/| /' conftest.$ac_ext >&5
10410 ( exit $ac_status )
10411 ac_cv_func_mmap_fixed_mapped=no
10413 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10418 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10419 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10420 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10422 cat >>confdefs.h <<\_ACEOF
10423 #define HAVE_MMAP 1
10427 rm -f conftest.mmap
10429 if test $use_mmap_for_buffers = yes; then
10433 LIBS="$libsrc_libs $LIBS"
10436 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10437 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10438 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10439 echo $ECHO_N "(cached) $ECHO_C" >&6
10441 ac_check_lib_save_LIBS=$LIBS
10442 LIBS="-ldnet $LIBS"
10443 cat >conftest.$ac_ext <<_ACEOF
10446 cat confdefs.h >>conftest.$ac_ext
10447 cat >>conftest.$ac_ext <<_ACEOF
10448 /* end confdefs.h. */
10450 /* Override any GCC internal prototype to avoid an error.
10451 Use char because int might match the return type of a GCC
10452 builtin and then its argument prototype would still apply. */
10460 return dnet_ntoa ();
10465 rm -f conftest.$ac_objext conftest$ac_exeext
10466 if { (ac_try="$ac_link"
10467 case "(($ac_try" in
10468 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10469 *) ac_try_echo
=$ac_try;;
10471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10472 (eval "$ac_link") 2>conftest.er1
10474 grep -v '^ *+' conftest.er1
>conftest.err
10476 cat conftest.err
>&5
10477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10478 (exit $ac_status); } && {
10479 test -z "$ac_c_werror_flag" ||
10480 test ! -s conftest.err
10481 } && test -s conftest
$ac_exeext &&
10482 $as_test_x conftest
$ac_exeext; then
10483 ac_cv_lib_dnet_dnet_ntoa
=yes
10485 echo "$as_me: failed program was:" >&5
10486 sed 's/^/| /' conftest.
$ac_ext >&5
10488 ac_cv_lib_dnet_dnet_ntoa
=no
10491 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10492 conftest
$ac_exeext conftest.
$ac_ext
10493 LIBS
=$ac_check_lib_save_LIBS
10495 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10496 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10497 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10498 cat >>confdefs.h
<<_ACEOF
10499 #define HAVE_LIBDNET 1
10502 LIBS
="-ldnet $LIBS"
10507 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10508 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10509 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10510 echo $ECHO_N "(cached) $ECHO_C" >&6
10512 ac_check_lib_save_LIBS
=$LIBS
10513 LIBS
="-lXbsd $LIBS"
10514 cat >conftest.
$ac_ext <<_ACEOF
10517 cat confdefs.h
>>conftest.
$ac_ext
10518 cat >>conftest.
$ac_ext <<_ACEOF
10519 /* end confdefs.h. */
10530 rm -f conftest.
$ac_objext conftest
$ac_exeext
10531 if { (ac_try
="$ac_link"
10532 case "(($ac_try" in
10533 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10534 *) ac_try_echo=$ac_try;;
10536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10537 (eval "$ac_link") 2>conftest.er1
10539 grep -v '^ *+' conftest.er1 >conftest.err
10541 cat conftest.err >&5
10542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10543 (exit $ac_status); } && {
10544 test -z "$ac_c_werror_flag" ||
10545 test ! -s conftest.err
10546 } && test -s conftest$ac_exeext &&
10547 $as_test_x conftest$ac_exeext; then
10548 ac_cv_lib_Xbsd_main=yes
10550 echo "$as_me: failed program was:" >&5
10551 sed 's/^/| /' conftest.$ac_ext >&5
10553 ac_cv_lib_Xbsd_main=no
10556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10557 conftest$ac_exeext conftest.$ac_ext
10558 LIBS=$ac_check_lib_save_LIBS
10560 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10561 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10562 if test $ac_cv_lib_Xbsd_main = yes; then
10563 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10568 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10569 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10570 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10571 echo $ECHO_N "(cached) $ECHO_C" >&6
10573 ac_check_lib_save_LIBS=$LIBS
10574 LIBS="-lpthreads $LIBS"
10575 cat >conftest.$ac_ext <<_ACEOF
10578 cat confdefs.h >>conftest.$ac_ext
10579 cat >>conftest.$ac_ext <<_ACEOF
10580 /* end confdefs.h. */
10582 /* Override any GCC internal prototype to avoid an error.
10583 Use char because int might match the return type of a GCC
10584 builtin and then its argument prototype would still apply. */
10592 return cma_open ();
10597 rm -f conftest.$ac_objext conftest$ac_exeext
10598 if { (ac_try="$ac_link"
10599 case "(($ac_try" in
10600 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10601 *) ac_try_echo
=$ac_try;;
10603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10604 (eval "$ac_link") 2>conftest.er1
10606 grep -v '^ *+' conftest.er1
>conftest.err
10608 cat conftest.err
>&5
10609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610 (exit $ac_status); } && {
10611 test -z "$ac_c_werror_flag" ||
10612 test ! -s conftest.err
10613 } && test -s conftest
$ac_exeext &&
10614 $as_test_x conftest
$ac_exeext; then
10615 ac_cv_lib_pthreads_cma_open
=yes
10617 echo "$as_me: failed program was:" >&5
10618 sed 's/^/| /' conftest.
$ac_ext >&5
10620 ac_cv_lib_pthreads_cma_open
=no
10623 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10624 conftest
$ac_exeext conftest.
$ac_ext
10625 LIBS
=$ac_check_lib_save_LIBS
10627 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10628 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10629 if test $ac_cv_lib_pthreads_cma_open = yes; then
10630 cat >>confdefs.h
<<_ACEOF
10631 #define HAVE_LIBPTHREADS 1
10634 LIBS
="-lpthreads $LIBS"
10639 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10640 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10641 if test -d /usr
/X386
/include
; then
10643 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10647 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10648 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10653 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10654 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10655 if test "${gdb_cv_bigtoc+set}" = set; then
10656 echo $ECHO_N "(cached) $ECHO_C" >&6
10660 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10661 *) gdb_cv_bigtoc
=-bbigtoc ;;
10664 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10665 cat >conftest.
$ac_ext <<_ACEOF
10668 cat confdefs.h
>>conftest.
$ac_ext
10669 cat >>conftest.
$ac_ext <<_ACEOF
10670 /* end confdefs.h. */
10680 rm -f conftest.
$ac_objext conftest
$ac_exeext
10681 if { (ac_try
="$ac_link"
10682 case "(($ac_try" in
10683 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10684 *) ac_try_echo=$ac_try;;
10686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10687 (eval "$ac_link") 2>conftest.er1
10689 grep -v '^ *+' conftest.er1 >conftest.err
10691 cat conftest.err >&5
10692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10693 (exit $ac_status); } && {
10694 test -z "$ac_c_werror_flag" ||
10695 test ! -s conftest.err
10696 } && test -s conftest$ac_exeext &&
10697 $as_test_x conftest$ac_exeext; then
10700 echo "$as_me: failed program was:" >&5
10701 sed 's/^/| /' conftest.$ac_ext >&5
10706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10707 conftest$ac_exeext conftest.$ac_ext
10710 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10711 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10715 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10716 # used for the tests that follow. We set them back to REAL_CFLAGS and
10717 # REAL_CPPFLAGS later on.
10719 REAL_CPPFLAGS="$CPPFLAGS"
10721 if test "${HAVE_X11}" = "yes"; then
10722 DEFS="$C_SWITCH_X_SITE $DEFS"
10723 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10725 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10726 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10728 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10729 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10730 # but it's more convenient here to set LD_RUN_PATH
10731 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10732 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10733 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10737 if test "${opsys}" = "gnu-linux"; then
10738 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10739 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10740 cat >conftest.$ac_ext <<_ACEOF
10743 cat confdefs.h >>conftest.$ac_ext
10744 cat >>conftest.$ac_ext <<_ACEOF
10745 /* end confdefs.h. */
10750 XOpenDisplay ("foo");
10755 rm -f conftest.$ac_objext conftest$ac_exeext
10756 if { (ac_try="$ac_link"
10757 case "(($ac_try" in
10758 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10759 *) ac_try_echo
=$ac_try;;
10761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10762 (eval "$ac_link") 2>conftest.er1
10764 grep -v '^ *+' conftest.er1
>conftest.err
10766 cat conftest.err
>&5
10767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768 (exit $ac_status); } && {
10769 test -z "$ac_c_werror_flag" ||
10770 test ! -s conftest.err
10771 } && test -s conftest
$ac_exeext &&
10772 $as_test_x conftest
$ac_exeext; then
10773 xlinux_first_failure
=no
10775 echo "$as_me: failed program was:" >&5
10776 sed 's/^/| /' conftest.
$ac_ext >&5
10778 xlinux_first_failure
=yes
10781 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10782 conftest
$ac_exeext conftest.
$ac_ext
10783 if test "${xlinux_first_failure}" = "yes"; then
10784 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10785 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10786 OLD_CPPFLAGS
="$CPPFLAGS"
10788 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10789 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10790 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10791 LIBS
="$LIBS -b i486-linuxaout"
10792 cat >conftest.
$ac_ext <<_ACEOF
10795 cat confdefs.h
>>conftest.
$ac_ext
10796 cat >>conftest.
$ac_ext <<_ACEOF
10797 /* end confdefs.h. */
10802 XOpenDisplay ("foo");
10807 rm -f conftest.
$ac_objext conftest
$ac_exeext
10808 if { (ac_try
="$ac_link"
10809 case "(($ac_try" in
10810 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10811 *) ac_try_echo=$ac_try;;
10813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10814 (eval "$ac_link") 2>conftest.er1
10816 grep -v '^ *+' conftest.er1 >conftest.err
10818 cat conftest.err >&5
10819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820 (exit $ac_status); } && {
10821 test -z "$ac_c_werror_flag" ||
10822 test ! -s conftest.err
10823 } && test -s conftest$ac_exeext &&
10824 $as_test_x conftest$ac_exeext; then
10825 xlinux_second_failure=no
10827 echo "$as_me: failed program was:" >&5
10828 sed 's/^/| /' conftest.$ac_ext >&5
10830 xlinux_second_failure=yes
10833 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10834 conftest$ac_exeext conftest.$ac_ext
10835 if test "${xlinux_second_failure}" = "yes"; then
10836 # If we get the same failure with -b, there is no use adding -b.
10837 # So take it out. This plays safe.
10838 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10839 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10840 CPPFLAGS="$OLD_CPPFLAGS"
10842 { echo "$as_me:$LINENO: result: no" >&5
10843 echo "${ECHO_T}no" >&6; }
10845 { echo "$as_me:$LINENO: result: yes" >&5
10846 echo "${ECHO_T}yes" >&6; }
10849 { echo "$as_me:$LINENO: result: no" >&5
10850 echo "${ECHO_T}no" >&6; }
10854 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10855 # header files included from there.
10856 { echo "$as_me:$LINENO: checking for Xkb" >&5
10857 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10858 cat >conftest.$ac_ext <<_ACEOF
10861 cat confdefs.h >>conftest.$ac_ext
10862 cat >>conftest.$ac_ext <<_ACEOF
10863 /* end confdefs.h. */
10864 #include <X11/Xlib.h>
10865 #include <X11/XKBlib.h>
10869 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10874 rm -f conftest.$ac_objext conftest$ac_exeext
10875 if { (ac_try="$ac_link"
10876 case "(($ac_try" in
10877 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10878 *) ac_try_echo
=$ac_try;;
10880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10881 (eval "$ac_link") 2>conftest.er1
10883 grep -v '^ *+' conftest.er1
>conftest.err
10885 cat conftest.err
>&5
10886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10887 (exit $ac_status); } && {
10888 test -z "$ac_c_werror_flag" ||
10889 test ! -s conftest.err
10890 } && test -s conftest
$ac_exeext &&
10891 $as_test_x conftest
$ac_exeext; then
10894 echo "$as_me: failed program was:" >&5
10895 sed 's/^/| /' conftest.
$ac_ext >&5
10900 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10901 conftest
$ac_exeext conftest.
$ac_ext
10902 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10903 echo "${ECHO_T}$emacs_xkb" >&6; }
10904 if test $emacs_xkb = yes; then
10906 cat >>confdefs.h
<<\_ACEOF
10907 #define HAVE_XKBGETKEYBOARD 1
10916 for ac_func
in XrmSetDatabase XScreenResourceString \
10917 XScreenNumberOfScreen XSetWMProtocols
10919 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10920 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10921 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10922 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10923 echo $ECHO_N "(cached) $ECHO_C" >&6
10925 cat >conftest.
$ac_ext <<_ACEOF
10928 cat confdefs.h
>>conftest.
$ac_ext
10929 cat >>conftest.
$ac_ext <<_ACEOF
10930 /* end confdefs.h. */
10931 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10932 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10933 #define $ac_func innocuous_$ac_func
10935 /* System header to define __stub macros and hopefully few prototypes,
10936 which can conflict with char $ac_func (); below.
10937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10938 <limits.h> exists even on freestanding compilers. */
10941 # include <limits.h>
10943 # include <assert.h>
10948 /* Override any GCC internal prototype to avoid an error.
10949 Use char because int might match the return type of a GCC
10950 builtin and then its argument prototype would still apply. */
10955 /* The GNU C library defines this for functions which it implements
10956 to always fail with ENOSYS. Some functions are actually named
10957 something starting with __ and the normal name is an alias. */
10958 #if defined __stub_$ac_func || defined __stub___$ac_func
10965 return $ac_func ();
10970 rm -f conftest.
$ac_objext conftest
$ac_exeext
10971 if { (ac_try
="$ac_link"
10972 case "(($ac_try" in
10973 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10974 *) ac_try_echo=$ac_try;;
10976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10977 (eval "$ac_link") 2>conftest.er1
10979 grep -v '^ *+' conftest.er1 >conftest.err
10981 cat conftest.err >&5
10982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10983 (exit $ac_status); } && {
10984 test -z "$ac_c_werror_flag" ||
10985 test ! -s conftest.err
10986 } && test -s conftest$ac_exeext &&
10987 $as_test_x conftest$ac_exeext; then
10988 eval "$as_ac_var=yes"
10990 echo "$as_me: failed program was:" >&5
10991 sed 's/^/| /' conftest.$ac_ext >&5
10993 eval "$as_ac_var=no"
10996 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10997 conftest$ac_exeext conftest.$ac_ext
10999 ac_res=`eval echo '${'$as_ac_var'}'`
11000 { echo "$as_me:$LINENO: result: $ac_res" >&5
11001 echo "${ECHO_T}$ac_res" >&6; }
11002 if test `eval echo '${'$as_ac_var'}'` = yes; then
11003 cat >>confdefs.h <<_ACEOF
11004 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11012 if test "${window_system}" = "x11"; then
11013 { echo "$as_me:$LINENO: checking X11 version 6" >&5
11014 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
11015 if test "${emacs_cv_x11_version_6+set}" = set; then
11016 echo $ECHO_N "(cached) $ECHO_C" >&6
11018 cat >conftest.$ac_ext <<_ACEOF
11021 cat confdefs.h >>conftest.$ac_ext
11022 cat >>conftest.$ac_ext <<_ACEOF
11023 /* end confdefs.h. */
11024 #include <X11/Xlib.h>
11028 #if XlibSpecificationRelease < 6
11036 rm -f conftest.$ac_objext conftest$ac_exeext
11037 if { (ac_try="$ac_link"
11038 case "(($ac_try" in
11039 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11040 *) ac_try_echo
=$ac_try;;
11042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11043 (eval "$ac_link") 2>conftest.er1
11045 grep -v '^ *+' conftest.er1
>conftest.err
11047 cat conftest.err
>&5
11048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049 (exit $ac_status); } && {
11050 test -z "$ac_c_werror_flag" ||
11051 test ! -s conftest.err
11052 } && test -s conftest
$ac_exeext &&
11053 $as_test_x conftest
$ac_exeext; then
11054 emacs_cv_x11_version_6
=yes
11056 echo "$as_me: failed program was:" >&5
11057 sed 's/^/| /' conftest.
$ac_ext >&5
11059 emacs_cv_x11_version_6
=no
11062 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11063 conftest
$ac_exeext conftest.
$ac_ext
11066 if test $emacs_cv_x11_version_6 = yes; then
11067 { echo "$as_me:$LINENO: result: 6 or newer" >&5
11068 echo "${ECHO_T}6 or newer" >&6; }
11070 cat >>confdefs.h
<<\_ACEOF
11071 #define HAVE_X11R6 1
11075 { echo "$as_me:$LINENO: result: before 6" >&5
11076 echo "${ECHO_T}before 6" >&6; }
11080 if test "${window_system}" = "x11"; then
11081 { echo "$as_me:$LINENO: checking X11 version 5" >&5
11082 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6; }
11083 if test "${emacs_cv_x11_version_5+set}" = set; then
11084 echo $ECHO_N "(cached) $ECHO_C" >&6
11086 cat >conftest.
$ac_ext <<_ACEOF
11089 cat confdefs.h
>>conftest.
$ac_ext
11090 cat >>conftest.
$ac_ext <<_ACEOF
11091 /* end confdefs.h. */
11092 #include <X11/Xlib.h>
11096 #if XlibSpecificationRelease < 5
11104 rm -f conftest.
$ac_objext conftest
$ac_exeext
11105 if { (ac_try
="$ac_link"
11106 case "(($ac_try" in
11107 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11108 *) ac_try_echo=$ac_try;;
11110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11111 (eval "$ac_link") 2>conftest.er1
11113 grep -v '^ *+' conftest.er1 >conftest.err
11115 cat conftest.err >&5
11116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117 (exit $ac_status); } && {
11118 test -z "$ac_c_werror_flag" ||
11119 test ! -s conftest.err
11120 } && test -s conftest$ac_exeext &&
11121 $as_test_x conftest$ac_exeext; then
11122 emacs_cv_x11_version_5=yes
11124 echo "$as_me: failed program was:" >&5
11125 sed 's/^/| /' conftest.$ac_ext >&5
11127 emacs_cv_x11_version_5=no
11130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11131 conftest$ac_exeext conftest.$ac_ext
11134 if test $emacs_cv_x11_version_5 = yes; then
11135 { echo "$as_me:$LINENO: result: 5 or newer" >&5
11136 echo "${ECHO_T}5 or newer" >&6; }
11139 cat >>confdefs.h <<\_ACEOF
11140 #define HAVE_X11R5 1
11145 { echo "$as_me:$LINENO: result: before 5" >&5
11146 echo "${ECHO_T}before 5" >&6; }
11150 ### Use -lrsvg-2 if available, unless `--with-rsvg=no
' is specified.
11152 if test "${HAVE_X11}" = "yes" || test "${HAVE_CARBON}" = "yes"; then
11153 if test "${with_rsvg}" != "no"; then
11154 if test "X${with_pkg_config_prog}" != X; then
11155 PKG_CONFIG="${with_pkg_config_prog}"
11158 RSVG_REQUIRED=2.0.0
11159 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
11164 if test -z "$PKG_CONFIG"; then
11165 # Extract the first word of "pkg-config", so it can be a program name with args.
11166 set dummy pkg-config; ac_word=$2
11167 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11169 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11170 echo $ECHO_N "(cached) $ECHO_C" >&6
11172 case $PKG_CONFIG in
11174 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11178 for as_dir in $PATH
11181 test -z "$as_dir" && as_dir=.
11182 for ac_exec_ext in '' $ac_executable_extensions; do
11183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11184 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11192 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11196 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11197 if test -n "$PKG_CONFIG"; then
11198 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11199 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11201 { echo "$as_me:$LINENO: result: no" >&5
11202 echo "${ECHO_T}no" >&6; }
11208 if test "$PKG_CONFIG" = "no" ; then
11211 PKG_CONFIG_MIN_VERSION=0.9.0
11212 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11213 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
11214 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
11216 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11217 { echo "$as_me:$LINENO: result: yes" >&5
11218 echo "${ECHO_T}yes" >&6; }
11221 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
11222 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
11223 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's
,///*,/,g
'`
11224 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
11225 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
11227 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
11228 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
11229 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's
,///*,/,g
'`
11230 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
11231 echo "${ECHO_T}$RSVG_LIBS" >&6; }
11233 { echo "$as_me:$LINENO: result: no" >&5
11234 echo "${ECHO_T}no" >&6; }
11237 ## If we have a custom action on failure, don't print errors
, but
11238 ## do set a variable so people can do so.
11239 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11246 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11247 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11251 if test $succeeded = yes; then
11260 if test ".${RSVG_CFLAGS}" != "."; then
11263 cat >>confdefs.h
<<\_ACEOF
11264 #define HAVE_RSVG 1
11267 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
11268 LIBS
="$RSVG_LIBS $LIBS"
11275 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
11278 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "gtk" || \
11279 test "$USE_X_TOOLKIT" = "maybe"; then
11280 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
11281 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
11282 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
11283 { (exit 1); exit 1; }; };
11287 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11289 if test "X${with_pkg_config_prog}" != X
; then
11290 PKG_CONFIG
="${with_pkg_config_prog}"
11295 if test -z "$PKG_CONFIG"; then
11296 # Extract the first word of "pkg-config", so it can be a program name with args.
11297 set dummy pkg-config
; ac_word
=$2
11298 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11300 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11301 echo $ECHO_N "(cached) $ECHO_C" >&6
11303 case $PKG_CONFIG in
11305 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11308 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11309 for as_dir
in $PATH
11312 test -z "$as_dir" && as_dir
=.
11313 for ac_exec_ext
in '' $ac_executable_extensions; do
11314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11315 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11323 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11327 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11328 if test -n "$PKG_CONFIG"; then
11329 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11330 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11332 { echo "$as_me:$LINENO: result: no" >&5
11333 echo "${ECHO_T}no" >&6; }
11339 if test "$PKG_CONFIG" = "no" ; then
11342 PKG_CONFIG_MIN_VERSION
=0.9.0
11343 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11344 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11345 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
11347 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11348 { echo "$as_me:$LINENO: result: yes" >&5
11349 echo "${ECHO_T}yes" >&6; }
11352 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11353 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
11354 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11355 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11356 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11358 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11359 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11360 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11361 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11362 echo "${ECHO_T}$GTK_LIBS" >&6; }
11364 { echo "$as_me:$LINENO: result: no" >&5
11365 echo "${ECHO_T}no" >&6; }
11368 ## If we have a custom action on failure, don't print errors, but
11369 ## do set a variable so people can do so.
11370 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11377 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11378 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11382 if test $succeeded = yes; then
11388 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11389 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11390 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11391 { (exit 1); exit 1; }; }
11396 if test x
"$pkg_check_gtk" = xyes
; then
11400 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
11401 CFLAGS
="$CFLAGS $GTK_CFLAGS"
11402 LIBS
="$GTK_LIBS $LIBS"
11405 for ac_func
in gtk_main
11407 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11408 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11409 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11410 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11411 echo $ECHO_N "(cached) $ECHO_C" >&6
11413 cat >conftest.
$ac_ext <<_ACEOF
11416 cat confdefs.h
>>conftest.
$ac_ext
11417 cat >>conftest.
$ac_ext <<_ACEOF
11418 /* end confdefs.h. */
11419 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11420 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11421 #define $ac_func innocuous_$ac_func
11423 /* System header to define __stub macros and hopefully few prototypes,
11424 which can conflict with char $ac_func (); below.
11425 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11426 <limits.h> exists even on freestanding compilers. */
11429 # include <limits.h>
11431 # include <assert.h>
11436 /* Override any GCC internal prototype to avoid an error.
11437 Use char because int might match the return type of a GCC
11438 builtin and then its argument prototype would still apply. */
11443 /* The GNU C library defines this for functions which it implements
11444 to always fail with ENOSYS. Some functions are actually named
11445 something starting with __ and the normal name is an alias. */
11446 #if defined __stub_$ac_func || defined __stub___$ac_func
11453 return $ac_func ();
11458 rm -f conftest.
$ac_objext conftest
$ac_exeext
11459 if { (ac_try
="$ac_link"
11460 case "(($ac_try" in
11461 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11462 *) ac_try_echo=$ac_try;;
11464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11465 (eval "$ac_link") 2>conftest.er1
11467 grep -v '^ *+' conftest.er1 >conftest.err
11469 cat conftest.err >&5
11470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11471 (exit $ac_status); } && {
11472 test -z "$ac_c_werror_flag" ||
11473 test ! -s conftest.err
11474 } && test -s conftest$ac_exeext &&
11475 $as_test_x conftest$ac_exeext; then
11476 eval "$as_ac_var=yes"
11478 echo "$as_me: failed program was:" >&5
11479 sed 's/^/| /' conftest.$ac_ext >&5
11481 eval "$as_ac_var=no"
11484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11485 conftest$ac_exeext conftest.$ac_ext
11487 ac_res=`eval echo '${'$as_ac_var'}'`
11488 { echo "$as_me:$LINENO: result: $ac_res" >&5
11489 echo "${ECHO_T}$ac_res" >&6; }
11490 if test `eval echo '${'$as_ac_var'}'` = yes; then
11491 cat >>confdefs.h <<_ACEOF
11492 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11498 if test "${GTK_COMPILES}" != "yes"; then
11499 if test "$USE_X_TOOLKIT" != "maybe"; then
11500 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11501 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11502 { (exit 1); exit 1; }; };
11507 cat >>confdefs.h <<\_ACEOF
11517 if test "${HAVE_GTK}" = "yes"; then
11519 if test "$with_toolkit_scroll_bars" != no; then
11520 with_toolkit_scroll_bars=yes
11523 HAVE_GTK_MULTIDISPLAY=no
11525 for ac_func in gdk_display_open
11527 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11528 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11529 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11530 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11531 echo $ECHO_N "(cached) $ECHO_C" >&6
11533 cat >conftest.$ac_ext <<_ACEOF
11536 cat confdefs.h >>conftest.$ac_ext
11537 cat >>conftest.$ac_ext <<_ACEOF
11538 /* end confdefs.h. */
11539 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11540 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11541 #define $ac_func innocuous_$ac_func
11543 /* System header to define __stub macros and hopefully few prototypes,
11544 which can conflict with char $ac_func (); below.
11545 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11546 <limits.h> exists even on freestanding compilers. */
11549 # include <limits.h>
11551 # include <assert.h>
11556 /* Override any GCC internal prototype to avoid an error.
11557 Use char because int might match the return type of a GCC
11558 builtin and then its argument prototype would still apply. */
11563 /* The GNU C library defines this for functions which it implements
11564 to always fail with ENOSYS. Some functions are actually named
11565 something starting with __ and the normal name is an alias. */
11566 #if defined __stub_$ac_func || defined __stub___$ac_func
11573 return $ac_func ();
11578 rm -f conftest.$ac_objext conftest$ac_exeext
11579 if { (ac_try="$ac_link"
11580 case "(($ac_try" in
11581 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11582 *) ac_try_echo
=$ac_try;;
11584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11585 (eval "$ac_link") 2>conftest.er1
11587 grep -v '^ *+' conftest.er1
>conftest.err
11589 cat conftest.err
>&5
11590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11591 (exit $ac_status); } && {
11592 test -z "$ac_c_werror_flag" ||
11593 test ! -s conftest.err
11594 } && test -s conftest
$ac_exeext &&
11595 $as_test_x conftest
$ac_exeext; then
11596 eval "$as_ac_var=yes"
11598 echo "$as_me: failed program was:" >&5
11599 sed 's/^/| /' conftest.
$ac_ext >&5
11601 eval "$as_ac_var=no"
11604 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11605 conftest
$ac_exeext conftest.
$ac_ext
11607 ac_res
=`eval echo '${'$as_ac_var'}'`
11608 { echo "$as_me:$LINENO: result: $ac_res" >&5
11609 echo "${ECHO_T}$ac_res" >&6; }
11610 if test `eval echo '${'$as_ac_var'}'` = yes; then
11611 cat >>confdefs.h
<<_ACEOF
11612 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11614 HAVE_GTK_MULTIDISPLAY
=yes
11618 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11620 cat >>confdefs.h
<<\_ACEOF
11621 #define HAVE_GTK_MULTIDISPLAY 1
11626 HAVE_GTK_FILE_SELECTION
=no
11628 for ac_func
in gtk_file_selection_new
11630 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11631 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11632 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11633 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11634 echo $ECHO_N "(cached) $ECHO_C" >&6
11636 cat >conftest.
$ac_ext <<_ACEOF
11639 cat confdefs.h
>>conftest.
$ac_ext
11640 cat >>conftest.
$ac_ext <<_ACEOF
11641 /* end confdefs.h. */
11642 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11643 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11644 #define $ac_func innocuous_$ac_func
11646 /* System header to define __stub macros and hopefully few prototypes,
11647 which can conflict with char $ac_func (); below.
11648 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11649 <limits.h> exists even on freestanding compilers. */
11652 # include <limits.h>
11654 # include <assert.h>
11659 /* Override any GCC internal prototype to avoid an error.
11660 Use char because int might match the return type of a GCC
11661 builtin and then its argument prototype would still apply. */
11666 /* The GNU C library defines this for functions which it implements
11667 to always fail with ENOSYS. Some functions are actually named
11668 something starting with __ and the normal name is an alias. */
11669 #if defined __stub_$ac_func || defined __stub___$ac_func
11676 return $ac_func ();
11681 rm -f conftest.
$ac_objext conftest
$ac_exeext
11682 if { (ac_try
="$ac_link"
11683 case "(($ac_try" in
11684 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11685 *) ac_try_echo=$ac_try;;
11687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11688 (eval "$ac_link") 2>conftest.er1
11690 grep -v '^ *+' conftest.er1 >conftest.err
11692 cat conftest.err >&5
11693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11694 (exit $ac_status); } && {
11695 test -z "$ac_c_werror_flag" ||
11696 test ! -s conftest.err
11697 } && test -s conftest$ac_exeext &&
11698 $as_test_x conftest$ac_exeext; then
11699 eval "$as_ac_var=yes"
11701 echo "$as_me: failed program was:" >&5
11702 sed 's/^/| /' conftest.$ac_ext >&5
11704 eval "$as_ac_var=no"
11707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11708 conftest$ac_exeext conftest.$ac_ext
11710 ac_res=`eval echo '${'$as_ac_var'}'`
11711 { echo "$as_me:$LINENO: result: $ac_res" >&5
11712 echo "${ECHO_T}$ac_res" >&6; }
11713 if test `eval echo '${'$as_ac_var'}'` = yes; then
11714 cat >>confdefs.h <<_ACEOF
11715 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11717 HAVE_GTK_FILE_SELECTION=yes
11722 HAVE_GTK_FILE_CHOOSER=no
11724 for ac_func in gtk_file_chooser_dialog_new
11726 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11727 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11728 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11729 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11730 echo $ECHO_N "(cached) $ECHO_C" >&6
11732 cat >conftest.$ac_ext <<_ACEOF
11735 cat confdefs.h >>conftest.$ac_ext
11736 cat >>conftest.$ac_ext <<_ACEOF
11737 /* end confdefs.h. */
11738 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11739 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11740 #define $ac_func innocuous_$ac_func
11742 /* System header to define __stub macros and hopefully few prototypes,
11743 which can conflict with char $ac_func (); below.
11744 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11745 <limits.h> exists even on freestanding compilers. */
11748 # include <limits.h>
11750 # include <assert.h>
11755 /* Override any GCC internal prototype to avoid an error.
11756 Use char because int might match the return type of a GCC
11757 builtin and then its argument prototype would still apply. */
11762 /* The GNU C library defines this for functions which it implements
11763 to always fail with ENOSYS. Some functions are actually named
11764 something starting with __ and the normal name is an alias. */
11765 #if defined __stub_$ac_func || defined __stub___$ac_func
11772 return $ac_func ();
11777 rm -f conftest.$ac_objext conftest$ac_exeext
11778 if { (ac_try="$ac_link"
11779 case "(($ac_try" in
11780 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11781 *) ac_try_echo
=$ac_try;;
11783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11784 (eval "$ac_link") 2>conftest.er1
11786 grep -v '^ *+' conftest.er1
>conftest.err
11788 cat conftest.err
>&5
11789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790 (exit $ac_status); } && {
11791 test -z "$ac_c_werror_flag" ||
11792 test ! -s conftest.err
11793 } && test -s conftest
$ac_exeext &&
11794 $as_test_x conftest
$ac_exeext; then
11795 eval "$as_ac_var=yes"
11797 echo "$as_me: failed program was:" >&5
11798 sed 's/^/| /' conftest.
$ac_ext >&5
11800 eval "$as_ac_var=no"
11803 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11804 conftest
$ac_exeext conftest.
$ac_ext
11806 ac_res
=`eval echo '${'$as_ac_var'}'`
11807 { echo "$as_me:$LINENO: result: $ac_res" >&5
11808 echo "${ECHO_T}$ac_res" >&6; }
11809 if test `eval echo '${'$as_ac_var'}'` = yes; then
11810 cat >>confdefs.h
<<_ACEOF
11811 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11813 HAVE_GTK_FILE_CHOOSER
=yes
11818 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11819 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11821 cat >>confdefs.h
<<\_ACEOF
11822 #define HAVE_GTK_FILE_BOTH 1
11827 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11828 HAVE_GTK_AND_PTHREAD
=no
11830 for ac_header
in pthread.h
11832 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11833 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11834 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11835 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11836 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11837 echo $ECHO_N "(cached) $ECHO_C" >&6
11839 ac_res
=`eval echo '${'$as_ac_Header'}'`
11840 { echo "$as_me:$LINENO: result: $ac_res" >&5
11841 echo "${ECHO_T}$ac_res" >&6; }
11843 # Is the header compilable?
11844 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11845 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11846 cat >conftest.
$ac_ext <<_ACEOF
11849 cat confdefs.h
>>conftest.
$ac_ext
11850 cat >>conftest.
$ac_ext <<_ACEOF
11851 /* end confdefs.h. */
11852 $ac_includes_default
11853 #include <$ac_header>
11855 rm -f conftest.
$ac_objext
11856 if { (ac_try
="$ac_compile"
11857 case "(($ac_try" in
11858 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11859 *) ac_try_echo=$ac_try;;
11861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11862 (eval "$ac_compile") 2>conftest.er1
11864 grep -v '^ *+' conftest.er1 >conftest.err
11866 cat conftest.err >&5
11867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868 (exit $ac_status); } && {
11869 test -z "$ac_c_werror_flag" ||
11870 test ! -s conftest.err
11871 } && test -s conftest.$ac_objext; then
11872 ac_header_compiler=yes
11874 echo "$as_me: failed program was:" >&5
11875 sed 's/^/| /' conftest.$ac_ext >&5
11877 ac_header_compiler=no
11880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11881 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11882 echo "${ECHO_T}$ac_header_compiler" >&6; }
11884 # Is the header present?
11885 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11886 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11887 cat >conftest.$ac_ext <<_ACEOF
11890 cat confdefs.h >>conftest.$ac_ext
11891 cat >>conftest.$ac_ext <<_ACEOF
11892 /* end confdefs.h. */
11893 #include <$ac_header>
11895 if { (ac_try="$ac_cpp conftest.$ac_ext"
11896 case "(($ac_try" in
11897 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11898 *) ac_try_echo
=$ac_try;;
11900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11901 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11903 grep -v '^ *+' conftest.er1
>conftest.err
11905 cat conftest.err
>&5
11906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907 (exit $ac_status); } >/dev
/null
&& {
11908 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11909 test ! -s conftest.err
11911 ac_header_preproc
=yes
11913 echo "$as_me: failed program was:" >&5
11914 sed 's/^/| /' conftest.
$ac_ext >&5
11916 ac_header_preproc
=no
11919 rm -f conftest.err conftest.
$ac_ext
11920 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11921 echo "${ECHO_T}$ac_header_preproc" >&6; }
11923 # So? What about this header?
11924 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11926 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11927 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11928 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11929 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11930 ac_header_preproc
=yes
11933 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11934 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11935 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11936 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11937 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11938 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11939 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11940 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11941 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11942 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11943 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11944 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11948 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11949 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11950 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11951 echo $ECHO_N "(cached) $ECHO_C" >&6
11953 eval "$as_ac_Header=\$ac_header_preproc"
11955 ac_res
=`eval echo '${'$as_ac_Header'}'`
11956 { echo "$as_me:$LINENO: result: $ac_res" >&5
11957 echo "${ECHO_T}$ac_res" >&6; }
11960 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11961 cat >>confdefs.h
<<_ACEOF
11962 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11969 if test "$ac_cv_header_pthread_h"; then
11970 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11971 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11972 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11973 echo $ECHO_N "(cached) $ECHO_C" >&6
11975 ac_check_lib_save_LIBS
=$LIBS
11976 LIBS
="-lpthread $LIBS"
11977 cat >conftest.
$ac_ext <<_ACEOF
11980 cat confdefs.h
>>conftest.
$ac_ext
11981 cat >>conftest.
$ac_ext <<_ACEOF
11982 /* end confdefs.h. */
11984 /* Override any GCC internal prototype to avoid an error.
11985 Use char because int might match the return type of a GCC
11986 builtin and then its argument prototype would still apply. */
11990 char pthread_self ();
11994 return pthread_self ();
11999 rm -f conftest.
$ac_objext conftest
$ac_exeext
12000 if { (ac_try
="$ac_link"
12001 case "(($ac_try" in
12002 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12003 *) ac_try_echo=$ac_try;;
12005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12006 (eval "$ac_link") 2>conftest.er1
12008 grep -v '^ *+' conftest.er1 >conftest.err
12010 cat conftest.err >&5
12011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12012 (exit $ac_status); } && {
12013 test -z "$ac_c_werror_flag" ||
12014 test ! -s conftest.err
12015 } && test -s conftest$ac_exeext &&
12016 $as_test_x conftest$ac_exeext; then
12017 ac_cv_lib_pthread_pthread_self=yes
12019 echo "$as_me: failed program was:" >&5
12020 sed 's/^/| /' conftest.$ac_ext >&5
12022 ac_cv_lib_pthread_pthread_self=no
12025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12026 conftest$ac_exeext conftest.$ac_ext
12027 LIBS=$ac_check_lib_save_LIBS
12029 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
12030 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
12031 if test $ac_cv_lib_pthread_pthread_self = yes; then
12032 HAVE_GTK_AND_PTHREAD=yes
12036 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
12037 GTK_LIBS="$GTK_LIBS -lpthread"
12039 cat >>confdefs.h <<\_ACEOF
12040 #define HAVE_GTK_AND_PTHREAD 1
12047 ### Link with -lXft if available to work around a bug.
12049 if test "${HAVE_GTK}" = "yes"; then
12050 if test "X${with_pkg_config_prog}" != X; then
12051 PKG_CONFIG="${with_pkg_config_prog}"
12057 if test -z "$PKG_CONFIG"; then
12058 # Extract the first word of "pkg-config", so it can be a program name with args.
12059 set dummy pkg-config; ac_word=$2
12060 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12062 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12063 echo $ECHO_N "(cached) $ECHO_C" >&6
12065 case $PKG_CONFIG in
12067 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12071 for as_dir in $PATH
12074 test -z "$as_dir" && as_dir=.
12075 for ac_exec_ext in '' $ac_executable_extensions; do
12076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12077 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12085 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12089 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12090 if test -n "$PKG_CONFIG"; then
12091 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12092 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12094 { echo "$as_me:$LINENO: result: no" >&5
12095 echo "${ECHO_T}no" >&6; }
12101 if test "$PKG_CONFIG" = "no" ; then
12104 PKG_CONFIG_MIN_VERSION=0.9.0
12105 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12106 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12107 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12109 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12110 { echo "$as_me:$LINENO: result: yes" >&5
12111 echo "${ECHO_T}yes" >&6; }
12114 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12115 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12116 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|
sed -e 's,///*,/,g'`
12117 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12118 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12120 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12121 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12122 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|
sed -e 's,///*,/,g'`
12123 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12124 echo "${ECHO_T}$XFT_LIBS" >&6; }
12126 { echo "$as_me:$LINENO: result: no" >&5
12127 echo "${ECHO_T}no" >&6; }
12130 ## If we have a custom action on failure, don't print errors, but
12131 ## do set a variable so people can do so.
12132 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12139 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12140 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12144 if test $succeeded = yes; then
12150 if test "$HAVE_XFT" != no; then
12151 OLD_CFLAGS="$CPPFLAGS"
12152 OLD_CPPFLAGS="$CFLAGS"
12154 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12155 CFLAGS="$CFLAGS $XFT_CFLAGS"
12156 LIBS="$XFT_LIBS $LIBS"
12157 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12158 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12159 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12160 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12161 echo $ECHO_N "(cached) $ECHO_C" >&6
12163 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12164 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12166 # Is the header compilable?
12167 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12168 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12169 cat >conftest.$ac_ext <<_ACEOF
12172 cat confdefs.h >>conftest.$ac_ext
12173 cat >>conftest.$ac_ext <<_ACEOF
12174 /* end confdefs.h. */
12175 $ac_includes_default
12176 #include <X11/Xft/Xft.h>
12178 rm -f conftest.$ac_objext
12179 if { (ac_try="$ac_compile"
12180 case "(($ac_try" in
12181 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12182 *) ac_try_echo
=$ac_try;;
12184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12185 (eval "$ac_compile") 2>conftest.er1
12187 grep -v '^ *+' conftest.er1
>conftest.err
12189 cat conftest.err
>&5
12190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191 (exit $ac_status); } && {
12192 test -z "$ac_c_werror_flag" ||
12193 test ! -s conftest.err
12194 } && test -s conftest.
$ac_objext; then
12195 ac_header_compiler
=yes
12197 echo "$as_me: failed program was:" >&5
12198 sed 's/^/| /' conftest.
$ac_ext >&5
12200 ac_header_compiler
=no
12203 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12204 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12205 echo "${ECHO_T}$ac_header_compiler" >&6; }
12207 # Is the header present?
12208 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12209 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12210 cat >conftest.
$ac_ext <<_ACEOF
12213 cat confdefs.h
>>conftest.
$ac_ext
12214 cat >>conftest.
$ac_ext <<_ACEOF
12215 /* end confdefs.h. */
12216 #include <X11/Xft/Xft.h>
12218 if { (ac_try
="$ac_cpp conftest.$ac_ext"
12219 case "(($ac_try" in
12220 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12221 *) ac_try_echo=$ac_try;;
12223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12224 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12226 grep -v '^ *+' conftest.er1 >conftest.err
12228 cat conftest.err >&5
12229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12230 (exit $ac_status); } >/dev/null && {
12231 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12232 test ! -s conftest.err
12234 ac_header_preproc=yes
12236 echo "$as_me: failed program was:" >&5
12237 sed 's/^/| /' conftest.$ac_ext >&5
12239 ac_header_preproc=no
12242 rm -f conftest.err conftest.$ac_ext
12243 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12244 echo "${ECHO_T}$ac_header_preproc" >&6; }
12246 # So? What about this header?
12247 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12249 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12250 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12251 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12252 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12253 ac_header_preproc=yes
12256 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12257 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12258 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12259 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12260 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12261 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12262 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12263 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12264 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12265 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12266 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12267 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12271 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12272 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12273 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12274 echo $ECHO_N "(cached) $ECHO_C" >&6
12276 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
12278 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12279 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12282 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12283 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12284 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12285 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12286 echo $ECHO_N "(cached) $ECHO_C" >&6
12288 ac_check_lib_save_LIBS=$LIBS
12289 LIBS="-lXft $XFT_LIBS $LIBS"
12290 cat >conftest.$ac_ext <<_ACEOF
12293 cat confdefs.h >>conftest.$ac_ext
12294 cat >>conftest.$ac_ext <<_ACEOF
12295 /* end confdefs.h. */
12297 /* Override any GCC internal prototype to avoid an error.
12298 Use char because int might match the return type of a GCC
12299 builtin and then its argument prototype would still apply. */
12303 char XftFontOpen ();
12307 return XftFontOpen ();
12312 rm -f conftest.$ac_objext conftest$ac_exeext
12313 if { (ac_try="$ac_link"
12314 case "(($ac_try" in
12315 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12316 *) ac_try_echo
=$ac_try;;
12318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12319 (eval "$ac_link") 2>conftest.er1
12321 grep -v '^ *+' conftest.er1
>conftest.err
12323 cat conftest.err
>&5
12324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325 (exit $ac_status); } && {
12326 test -z "$ac_c_werror_flag" ||
12327 test ! -s conftest.err
12328 } && test -s conftest
$ac_exeext &&
12329 $as_test_x conftest
$ac_exeext; then
12330 ac_cv_lib_Xft_XftFontOpen
=yes
12332 echo "$as_me: failed program was:" >&5
12333 sed 's/^/| /' conftest.
$ac_ext >&5
12335 ac_cv_lib_Xft_XftFontOpen
=no
12338 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12339 conftest
$ac_exeext conftest.
$ac_ext
12340 LIBS
=$ac_check_lib_save_LIBS
12342 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12343 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12344 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12352 if test "${HAVE_XFT}" = "yes"; then
12354 cat >>confdefs.h
<<\_ACEOF
12359 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
12361 CFLAGS
="$OLD_CPPFLAGS"
12362 CFLAGS
="$OLD_CFLAGS"
12369 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
12370 if test x
"${HAVE_X11R5}" != xyes
; then
12373 if test "$with_xaw3d" != no
; then
12374 { echo "$as_me:$LINENO: checking for xaw3d" >&5
12375 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
12376 if test "${emacs_cv_xaw3d+set}" = set; then
12377 echo $ECHO_N "(cached) $ECHO_C" >&6
12379 cat >conftest.
$ac_ext <<_ACEOF
12382 cat confdefs.h
>>conftest.
$ac_ext
12383 cat >>conftest.
$ac_ext <<_ACEOF
12384 /* end confdefs.h. */
12386 #include <X11/Intrinsic.h>
12387 #include <X11/Xaw3d/Simple.h>
12396 rm -f conftest.
$ac_objext conftest
$ac_exeext
12397 if { (ac_try
="$ac_link"
12398 case "(($ac_try" in
12399 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12400 *) ac_try_echo=$ac_try;;
12402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12403 (eval "$ac_link") 2>conftest.er1
12405 grep -v '^ *+' conftest.er1 >conftest.err
12407 cat conftest.err >&5
12408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12409 (exit $ac_status); } && {
12410 test -z "$ac_c_werror_flag" ||
12411 test ! -s conftest.err
12412 } && test -s conftest$ac_exeext &&
12413 $as_test_x conftest$ac_exeext; then
12416 echo "$as_me: failed program was:" >&5
12417 sed 's/^/| /' conftest.$ac_ext >&5
12422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12423 conftest$ac_exeext conftest.$ac_ext
12429 if test $emacs_cv_xaw3d = yes; then
12430 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12431 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12432 USE_X_TOOLKIT=LUCID
12435 cat >>confdefs.h <<\_ACEOF
12436 #define HAVE_XAW3D 1
12440 { echo "$as_me:$LINENO: result: no" >&5
12441 echo "${ECHO_T}no" >&6; }
12442 { echo "$as_me:$LINENO: checking for libXaw" >&5
12443 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
12444 if test "${emacs_cv_xaw+set}" = set; then
12445 echo $ECHO_N "(cached) $ECHO_C" >&6
12447 cat >conftest.$ac_ext <<_ACEOF
12450 cat confdefs.h >>conftest.$ac_ext
12451 cat >>conftest.$ac_ext <<_ACEOF
12452 /* end confdefs.h. */
12454 #include <X11/Intrinsic.h>
12455 #include <X11/Xaw/Simple.h>
12464 rm -f conftest.$ac_objext conftest$ac_exeext
12465 if { (ac_try="$ac_link"
12466 case "(($ac_try" in
12467 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12468 *) ac_try_echo
=$ac_try;;
12470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12471 (eval "$ac_link") 2>conftest.er1
12473 grep -v '^ *+' conftest.er1
>conftest.err
12475 cat conftest.err
>&5
12476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12477 (exit $ac_status); } && {
12478 test -z "$ac_c_werror_flag" ||
12479 test ! -s conftest.err
12480 } && test -s conftest
$ac_exeext &&
12481 $as_test_x conftest
$ac_exeext; then
12484 echo "$as_me: failed program was:" >&5
12485 sed 's/^/| /' conftest.
$ac_ext >&5
12490 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12491 conftest
$ac_exeext conftest.
$ac_ext
12494 if test $emacs_cv_xaw = yes; then
12495 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12496 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12497 USE_X_TOOLKIT
=LUCID
12498 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
12499 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12500 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12501 { (exit 1); exit 1; }; }
12503 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
12504 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
12511 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
12513 if test "${USE_X_TOOLKIT}" != "none"; then
12514 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12515 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
12516 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12517 echo $ECHO_N "(cached) $ECHO_C" >&6
12519 cat >conftest.
$ac_ext <<_ACEOF
12522 cat confdefs.h
>>conftest.
$ac_ext
12523 cat >>conftest.
$ac_ext <<_ACEOF
12524 /* end confdefs.h. */
12525 #include <X11/Intrinsic.h>
12529 #if XtSpecificationRelease < 6
12537 rm -f conftest.
$ac_objext conftest
$ac_exeext
12538 if { (ac_try
="$ac_link"
12539 case "(($ac_try" in
12540 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12541 *) ac_try_echo=$ac_try;;
12543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12544 (eval "$ac_link") 2>conftest.er1
12546 grep -v '^ *+' conftest.er1 >conftest.err
12548 cat conftest.err >&5
12549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550 (exit $ac_status); } && {
12551 test -z "$ac_c_werror_flag" ||
12552 test ! -s conftest.err
12553 } && test -s conftest$ac_exeext &&
12554 $as_test_x conftest$ac_exeext; then
12555 emacs_cv_x11_toolkit_version_6=yes
12557 echo "$as_me: failed program was:" >&5
12558 sed 's/^/| /' conftest.$ac_ext >&5
12560 emacs_cv_x11_toolkit_version_6=no
12563 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12564 conftest$ac_exeext conftest.$ac_ext
12567 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12568 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12569 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12570 echo "${ECHO_T}6 or newer" >&6; }
12572 cat >>confdefs.h <<\_ACEOF
12573 #define HAVE_X11XTR6 1
12577 { echo "$as_me:$LINENO: result: before 6" >&5
12578 echo "${ECHO_T}before 6" >&6; }
12582 if test x$HAVE_X11XTR6 = xyes; then
12583 LIBS="-lXt -lSM -lICE $LIBS"
12588 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12589 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12590 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12591 echo $ECHO_N "(cached) $ECHO_C" >&6
12593 ac_check_lib_save_LIBS=$LIBS
12595 cat >conftest.$ac_ext <<_ACEOF
12598 cat confdefs.h >>conftest.$ac_ext
12599 cat >>conftest.$ac_ext <<_ACEOF
12600 /* end confdefs.h. */
12602 /* Override any GCC internal prototype to avoid an error.
12603 Use char because int might match the return type of a GCC
12604 builtin and then its argument prototype would still apply. */
12608 char XmuConvertStandardSelection ();
12612 return XmuConvertStandardSelection ();
12617 rm -f conftest.$ac_objext conftest$ac_exeext
12618 if { (ac_try="$ac_link"
12619 case "(($ac_try" in
12620 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12621 *) ac_try_echo
=$ac_try;;
12623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12624 (eval "$ac_link") 2>conftest.er1
12626 grep -v '^ *+' conftest.er1
>conftest.err
12628 cat conftest.err
>&5
12629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12630 (exit $ac_status); } && {
12631 test -z "$ac_c_werror_flag" ||
12632 test ! -s conftest.err
12633 } && test -s conftest
$ac_exeext &&
12634 $as_test_x conftest
$ac_exeext; then
12635 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
12637 echo "$as_me: failed program was:" >&5
12638 sed 's/^/| /' conftest.
$ac_ext >&5
12640 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
12643 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12644 conftest
$ac_exeext conftest.
$ac_ext
12645 LIBS
=$ac_check_lib_save_LIBS
12647 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12648 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12649 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12650 cat >>confdefs.h
<<_ACEOF
12651 #define HAVE_LIBXMU 1
12658 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
12661 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12662 if test "${HAVE_X11}" = "yes"; then
12663 if test "${USE_X_TOOLKIT}" != "none"; then
12665 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12666 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12667 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12668 echo $ECHO_N "(cached) $ECHO_C" >&6
12670 ac_check_lib_save_LIBS
=$LIBS
12671 LIBS
="-lXext $LIBS"
12672 cat >conftest.
$ac_ext <<_ACEOF
12675 cat confdefs.h
>>conftest.
$ac_ext
12676 cat >>conftest.
$ac_ext <<_ACEOF
12677 /* end confdefs.h. */
12679 /* Override any GCC internal prototype to avoid an error.
12680 Use char because int might match the return type of a GCC
12681 builtin and then its argument prototype would still apply. */
12685 char XShapeQueryExtension ();
12689 return XShapeQueryExtension ();
12694 rm -f conftest.
$ac_objext conftest
$ac_exeext
12695 if { (ac_try
="$ac_link"
12696 case "(($ac_try" in
12697 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12698 *) ac_try_echo=$ac_try;;
12700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12701 (eval "$ac_link") 2>conftest.er1
12703 grep -v '^ *+' conftest.er1 >conftest.err
12705 cat conftest.err >&5
12706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12707 (exit $ac_status); } && {
12708 test -z "$ac_c_werror_flag" ||
12709 test ! -s conftest.err
12710 } && test -s conftest$ac_exeext &&
12711 $as_test_x conftest$ac_exeext; then
12712 ac_cv_lib_Xext_XShapeQueryExtension=yes
12714 echo "$as_me: failed program was:" >&5
12715 sed 's/^/| /' conftest.$ac_ext >&5
12717 ac_cv_lib_Xext_XShapeQueryExtension=no
12720 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12721 conftest$ac_exeext conftest.$ac_ext
12722 LIBS=$ac_check_lib_save_LIBS
12724 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12725 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12726 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12727 cat >>confdefs.h <<_ACEOF
12728 #define HAVE_LIBXEXT 1
12731 LIBS="-lXext $LIBS"
12738 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12739 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12740 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12741 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12742 echo $ECHO_N "(cached) $ECHO_C" >&6
12744 cat >conftest.$ac_ext <<_ACEOF
12747 cat confdefs.h >>conftest.$ac_ext
12748 cat >>conftest.$ac_ext <<_ACEOF
12749 /* end confdefs.h. */
12754 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12757 Motif version prior to 2.1.
12763 rm -f conftest.$ac_objext
12764 if { (ac_try="$ac_compile"
12765 case "(($ac_try" in
12766 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12767 *) ac_try_echo
=$ac_try;;
12769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12770 (eval "$ac_compile") 2>conftest.er1
12772 grep -v '^ *+' conftest.er1
>conftest.err
12774 cat conftest.err
>&5
12775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12776 (exit $ac_status); } && {
12777 test -z "$ac_c_werror_flag" ||
12778 test ! -s conftest.err
12779 } && test -s conftest.
$ac_objext; then
12780 emacs_cv_motif_version_2_1
=yes
12782 echo "$as_me: failed program was:" >&5
12783 sed 's/^/| /' conftest.
$ac_ext >&5
12785 emacs_cv_motif_version_2_1
=no
12788 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12790 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12791 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12792 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
12793 if test $emacs_cv_motif_version_2_1 = yes; then
12796 cat >>confdefs.h
<<\_ACEOF
12797 #define HAVE_MOTIF_2_1 1
12800 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12801 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12802 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12803 echo $ECHO_N "(cached) $ECHO_C" >&6
12805 ac_check_lib_save_LIBS
=$LIBS
12807 cat >conftest.
$ac_ext <<_ACEOF
12810 cat confdefs.h
>>conftest.
$ac_ext
12811 cat >>conftest.
$ac_ext <<_ACEOF
12812 /* end confdefs.h. */
12814 /* Override any GCC internal prototype to avoid an error.
12815 Use char because int might match the return type of a GCC
12816 builtin and then its argument prototype would still apply. */
12820 char XpCreateContext ();
12824 return XpCreateContext ();
12829 rm -f conftest.
$ac_objext conftest
$ac_exeext
12830 if { (ac_try
="$ac_link"
12831 case "(($ac_try" in
12832 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12833 *) ac_try_echo=$ac_try;;
12835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12836 (eval "$ac_link") 2>conftest.er1
12838 grep -v '^ *+' conftest.er1 >conftest.err
12840 cat conftest.err >&5
12841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12842 (exit $ac_status); } && {
12843 test -z "$ac_c_werror_flag" ||
12844 test ! -s conftest.err
12845 } && test -s conftest$ac_exeext &&
12846 $as_test_x conftest$ac_exeext; then
12847 ac_cv_lib_Xp_XpCreateContext=yes
12849 echo "$as_me: failed program was:" >&5
12850 sed 's/^/| /' conftest.$ac_ext >&5
12852 ac_cv_lib_Xp_XpCreateContext=no
12855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12856 conftest$ac_exeext conftest.$ac_ext
12857 LIBS=$ac_check_lib_save_LIBS
12859 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12860 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12861 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12865 if test ${HAVE_LIBXP} = yes; then
12867 cat >>confdefs.h <<\_ACEOF
12868 #define HAVE_LIBXP 1
12873 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12874 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12875 if test "${emacs_cv_lesstif+set}" = set; then
12876 echo $ECHO_N "(cached) $ECHO_C" >&6
12878 # We put this in CFLAGS temporarily to precede other -I options
12879 # that might be in CFLAGS temporarily.
12880 # We put this in CPPFLAGS where it precedes the other -I options.
12881 OLD_CPPFLAGS=$CPPFLAGS
12883 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12884 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12885 cat >conftest.$ac_ext <<_ACEOF
12888 cat confdefs.h >>conftest.$ac_ext
12889 cat >>conftest.$ac_ext <<_ACEOF
12890 /* end confdefs.h. */
12891 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12900 rm -f conftest.$ac_objext
12901 if { (ac_try="$ac_compile"
12902 case "(($ac_try" in
12903 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12904 *) ac_try_echo
=$ac_try;;
12906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12907 (eval "$ac_compile") 2>conftest.er1
12909 grep -v '^ *+' conftest.er1
>conftest.err
12911 cat conftest.err
>&5
12912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913 (exit $ac_status); } && {
12914 test -z "$ac_c_werror_flag" ||
12915 test ! -s conftest.err
12916 } && test -s conftest.
$ac_objext; then
12917 emacs_cv_lesstif
=yes
12919 echo "$as_me: failed program was:" >&5
12920 sed 's/^/| /' conftest.
$ac_ext >&5
12922 emacs_cv_lesstif
=no
12925 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12927 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12928 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12929 if test $emacs_cv_lesstif = yes; then
12930 # Make sure this -I option remains in CPPFLAGS after it is set
12931 # back to REAL_CPPFLAGS.
12932 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12933 # have those other -I options anyway. Ultimately, having this
12934 # directory ultimately in CPPFLAGS will be enough.
12935 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12936 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12939 CPPFLAGS
=$OLD_CPPFLAGS
12946 USE_TOOLKIT_SCROLL_BARS
=no
12947 if test "${with_toolkit_scroll_bars}" != "no"; then
12948 if test "${USE_X_TOOLKIT}" != "none"; then
12949 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12950 cat >>confdefs.h
<<\_ACEOF
12951 #define USE_TOOLKIT_SCROLL_BARS 1
12955 USE_TOOLKIT_SCROLL_BARS
=yes
12956 elif test "${HAVE_XAW3D}" = "yes"; then
12957 cat >>confdefs.h
<<\_ACEOF
12958 #define USE_TOOLKIT_SCROLL_BARS 1
12961 USE_TOOLKIT_SCROLL_BARS
=yes
12963 elif test "${HAVE_GTK}" = "yes"; then
12964 cat >>confdefs.h
<<\_ACEOF
12965 #define USE_TOOLKIT_SCROLL_BARS 1
12968 USE_TOOLKIT_SCROLL_BARS
=yes
12969 elif test "${HAVE_CARBON}" = "yes"; then
12970 cat >>confdefs.h
<<\_ACEOF
12971 #define USE_TOOLKIT_SCROLL_BARS 1
12974 USE_TOOLKIT_SCROLL_BARS
=yes
12978 cat >conftest.
$ac_ext <<_ACEOF
12981 cat confdefs.h
>>conftest.
$ac_ext
12982 cat >>conftest.
$ac_ext <<_ACEOF
12983 /* end confdefs.h. */
12985 #include <X11/Xlib.h>
12986 #include <X11/Xresource.h>
12995 rm -f conftest.
$ac_objext
12996 if { (ac_try
="$ac_compile"
12997 case "(($ac_try" in
12998 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12999 *) ac_try_echo=$ac_try;;
13001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13002 (eval "$ac_compile") 2>conftest.er1
13004 grep -v '^ *+' conftest.er1 >conftest.err
13006 cat conftest.err >&5
13007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13008 (exit $ac_status); } && {
13009 test -z "$ac_c_werror_flag" ||
13010 test ! -s conftest.err
13011 } && test -s conftest.$ac_objext; then
13014 cat >>confdefs.h <<\_ACEOF
13019 echo "$as_me: failed program was:" >&5
13020 sed 's/^/| /' conftest.$ac_ext >&5
13025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13028 if test "${with_xim}" != "no"; then
13030 cat >>confdefs.h <<\_ACEOF
13037 if test "${HAVE_XIM}" != "no"; then
13038 late_CFLAGS=$CFLAGS
13039 if test "$GCC" = yes; then
13040 CFLAGS="$CFLAGS --pedantic-errors"
13042 cat >conftest.$ac_ext <<_ACEOF
13045 cat confdefs.h >>conftest.$ac_ext
13046 cat >>conftest.$ac_ext <<_ACEOF
13047 /* end confdefs.h. */
13049 #include <X11/Xlib.h>
13050 #include <X11/Xresource.h>
13059 XPointer *client_data;
13061 /* If we're not using GCC, it's probably not XFree86, and this is
13062 probably right, but we can't use something like --pedantic-errors. */
13063 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
13064 char*, XIMProc, XPointer*);
13066 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
13072 rm -f conftest.$ac_objext
13073 if { (ac_try="$ac_compile"
13074 case "(($ac_try" in
13075 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13076 *) ac_try_echo
=$ac_try;;
13078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13079 (eval "$ac_compile") 2>conftest.er1
13081 grep -v '^ *+' conftest.er1
>conftest.err
13083 cat conftest.err
>&5
13084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085 (exit $ac_status); } && {
13086 test -z "$ac_c_werror_flag" ||
13087 test ! -s conftest.err
13088 } && test -s conftest.
$ac_objext; then
13089 emacs_cv_arg6_star
=yes
13091 echo "$as_me: failed program was:" >&5
13092 sed 's/^/| /' conftest.
$ac_ext >&5
13097 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13099 if test "$emacs_cv_arg6_star" = yes; then
13100 cat >>confdefs.h
<<\_ACEOF
13101 #define XRegisterIMInstantiateCallback_arg6 XPointer*
13105 cat >>confdefs.h
<<\_ACEOF
13106 #define XRegisterIMInstantiateCallback_arg6 XPointer
13110 CFLAGS
=$late_CFLAGS
13113 ### Use -lXpm if available, unless `--with-xpm=no'.
13115 if test "${HAVE_X11}" = "yes"; then
13116 if test "${with_xpm}" != "no"; then
13117 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13118 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13119 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13120 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13121 echo $ECHO_N "(cached) $ECHO_C" >&6
13123 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13124 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13126 # Is the header compilable?
13127 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13128 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13129 cat >conftest.
$ac_ext <<_ACEOF
13132 cat confdefs.h
>>conftest.
$ac_ext
13133 cat >>conftest.
$ac_ext <<_ACEOF
13134 /* end confdefs.h. */
13135 $ac_includes_default
13136 #include <X11/xpm.h>
13138 rm -f conftest.
$ac_objext
13139 if { (ac_try
="$ac_compile"
13140 case "(($ac_try" in
13141 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13142 *) ac_try_echo=$ac_try;;
13144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13145 (eval "$ac_compile") 2>conftest.er1
13147 grep -v '^ *+' conftest.er1 >conftest.err
13149 cat conftest.err >&5
13150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151 (exit $ac_status); } && {
13152 test -z "$ac_c_werror_flag" ||
13153 test ! -s conftest.err
13154 } && test -s conftest.$ac_objext; then
13155 ac_header_compiler=yes
13157 echo "$as_me: failed program was:" >&5
13158 sed 's/^/| /' conftest.$ac_ext >&5
13160 ac_header_compiler=no
13163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13164 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13165 echo "${ECHO_T}$ac_header_compiler" >&6; }
13167 # Is the header present?
13168 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13169 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13170 cat >conftest.$ac_ext <<_ACEOF
13173 cat confdefs.h >>conftest.$ac_ext
13174 cat >>conftest.$ac_ext <<_ACEOF
13175 /* end confdefs.h. */
13176 #include <X11/xpm.h>
13178 if { (ac_try="$ac_cpp conftest.$ac_ext"
13179 case "(($ac_try" in
13180 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13181 *) ac_try_echo
=$ac_try;;
13183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13184 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13186 grep -v '^ *+' conftest.er1
>conftest.err
13188 cat conftest.err
>&5
13189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13190 (exit $ac_status); } >/dev
/null
&& {
13191 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13192 test ! -s conftest.err
13194 ac_header_preproc
=yes
13196 echo "$as_me: failed program was:" >&5
13197 sed 's/^/| /' conftest.
$ac_ext >&5
13199 ac_header_preproc
=no
13202 rm -f conftest.err conftest.
$ac_ext
13203 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13204 echo "${ECHO_T}$ac_header_preproc" >&6; }
13206 # So? What about this header?
13207 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13209 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13210 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13211 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13212 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13213 ac_header_preproc
=yes
13216 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13217 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13218 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13219 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13220 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13221 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13222 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13223 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13224 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13225 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13226 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13227 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13231 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13232 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13233 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13234 echo $ECHO_N "(cached) $ECHO_C" >&6
13236 ac_cv_header_X11_xpm_h
=$ac_header_preproc
13238 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13239 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13242 if test $ac_cv_header_X11_xpm_h = yes; then
13243 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13244 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13245 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13246 echo $ECHO_N "(cached) $ECHO_C" >&6
13248 ac_check_lib_save_LIBS
=$LIBS
13249 LIBS
="-lXpm -lX11 $LIBS"
13250 cat >conftest.
$ac_ext <<_ACEOF
13253 cat confdefs.h
>>conftest.
$ac_ext
13254 cat >>conftest.
$ac_ext <<_ACEOF
13255 /* end confdefs.h. */
13257 /* Override any GCC internal prototype to avoid an error.
13258 Use char because int might match the return type of a GCC
13259 builtin and then its argument prototype would still apply. */
13263 char XpmReadFileToPixmap ();
13267 return XpmReadFileToPixmap ();
13272 rm -f conftest.
$ac_objext conftest
$ac_exeext
13273 if { (ac_try
="$ac_link"
13274 case "(($ac_try" in
13275 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13276 *) ac_try_echo=$ac_try;;
13278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13279 (eval "$ac_link") 2>conftest.er1
13281 grep -v '^ *+' conftest.er1 >conftest.err
13283 cat conftest.err >&5
13284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13285 (exit $ac_status); } && {
13286 test -z "$ac_c_werror_flag" ||
13287 test ! -s conftest.err
13288 } && test -s conftest$ac_exeext &&
13289 $as_test_x conftest$ac_exeext; then
13290 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13292 echo "$as_me: failed program was:" >&5
13293 sed 's/^/| /' conftest.$ac_ext >&5
13295 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13299 conftest$ac_exeext conftest.$ac_ext
13300 LIBS=$ac_check_lib_save_LIBS
13302 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13303 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13304 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13311 if test "${HAVE_XPM}" = "yes"; then
13312 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13313 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13314 cat >conftest.$ac_ext <<_ACEOF
13317 cat confdefs.h >>conftest.$ac_ext
13318 cat >>conftest.$ac_ext <<_ACEOF
13319 /* end confdefs.h. */
13320 #include "X11/xpm.h"
13321 #ifndef XpmReturnAllocPixels
13322 no_return_alloc_pixels
13326 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13327 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13335 if test "${HAVE_XPM}" = "yes"; then
13336 { echo "$as_me:$LINENO: result: yes" >&5
13337 echo "${ECHO_T}yes" >&6; }
13339 { echo "$as_me:$LINENO: result: no" >&5
13340 echo "${ECHO_T}no" >&6; }
13345 if test "${HAVE_XPM}" = "yes"; then
13347 cat >>confdefs.h <<\_ACEOF
13354 ### Use -ljpeg if available, unless `--with-jpeg=no
'.
13356 if test "${HAVE_X11}" = "yes"; then
13357 if test "${with_jpeg}" != "no"; then
13358 if test "${ac_cv_header_jerror_h+set}" = set; then
13359 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13360 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13361 if test "${ac_cv_header_jerror_h+set}" = set; then
13362 echo $ECHO_N "(cached) $ECHO_C" >&6
13364 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13365 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13367 # Is the header compilable?
13368 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13369 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13370 cat >conftest.$ac_ext <<_ACEOF
13373 cat confdefs.h >>conftest.$ac_ext
13374 cat >>conftest.$ac_ext <<_ACEOF
13375 /* end confdefs.h. */
13376 $ac_includes_default
13377 #include <jerror.h>
13379 rm -f conftest.$ac_objext
13380 if { (ac_try="$ac_compile"
13381 case "(($ac_try" in
13382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13383 *) ac_try_echo=$ac_try;;
13385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13386 (eval "$ac_compile") 2>conftest.er1
13388 grep -v '^
*+' conftest.er1 >conftest.err
13390 cat conftest.err >&5
13391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13392 (exit $ac_status); } && {
13393 test -z "$ac_c_werror_flag" ||
13394 test ! -s conftest.err
13395 } && test -s conftest.$ac_objext; then
13396 ac_header_compiler=yes
13398 echo "$as_me: failed program was:" >&5
13399 sed 's
/^
/|
/' conftest.$ac_ext >&5
13401 ac_header_compiler=no
13404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13405 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13406 echo "${ECHO_T}$ac_header_compiler" >&6; }
13408 # Is the header present?
13409 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13410 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13411 cat >conftest.$ac_ext <<_ACEOF
13414 cat confdefs.h >>conftest.$ac_ext
13415 cat >>conftest.$ac_ext <<_ACEOF
13416 /* end confdefs.h. */
13417 #include <jerror.h>
13419 if { (ac_try="$ac_cpp conftest.$ac_ext"
13420 case "(($ac_try" in
13421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13422 *) ac_try_echo=$ac_try;;
13424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13425 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13427 grep -v '^
*+' conftest.er1 >conftest.err
13429 cat conftest.err >&5
13430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431 (exit $ac_status); } >/dev/null && {
13432 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13433 test ! -s conftest.err
13435 ac_header_preproc=yes
13437 echo "$as_me: failed program was:" >&5
13438 sed 's
/^
/|
/' conftest.$ac_ext >&5
13440 ac_header_preproc=no
13443 rm -f conftest.err conftest.$ac_ext
13444 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13445 echo "${ECHO_T}$ac_header_preproc" >&6; }
13447 # So? What about this header?
13448 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13450 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13451 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13452 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result
" >&5
13453 echo "$as_me: WARNING
: jerror.h
: proceeding with the compiler
's result" >&2;}
13454 ac_header_preproc=yes
13457 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13458 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13459 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13460 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13461 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13462 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13463 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13464 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13465 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result
" >&5
13466 echo "$as_me: WARNING
: jerror.h
: proceeding with the preprocessor
's result" >&2;}
13467 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13468 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13472 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13473 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13474 if test "${ac_cv_header_jerror_h+set}" = set; then
13475 echo $ECHO_N "(cached) $ECHO_C" >&6
13477 ac_cv_header_jerror_h=$ac_header_preproc
13479 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13480 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13483 if test $ac_cv_header_jerror_h = yes; then
13484 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13485 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13486 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13487 echo $ECHO_N "(cached) $ECHO_C" >&6
13489 ac_check_lib_save_LIBS=$LIBS
13490 LIBS="-ljpeg $LIBS"
13491 cat >conftest.$ac_ext <<_ACEOF
13494 cat confdefs.h >>conftest.$ac_ext
13495 cat >>conftest.$ac_ext <<_ACEOF
13496 /* end confdefs.h. */
13498 /* Override any GCC internal prototype to avoid an error.
13499 Use char because int might match the return type of a GCC
13500 builtin and then its argument prototype would still apply. */
13504 char jpeg_destroy_compress ();
13508 return jpeg_destroy_compress ();
13513 rm -f conftest.$ac_objext conftest$ac_exeext
13514 if { (ac_try="$ac_link"
13515 case "(($ac_try" in
13516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13517 *) ac_try_echo=$ac_try;;
13519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13520 (eval "$ac_link") 2>conftest.er1
13522 grep -v '^
*+' conftest.er1 >conftest.err
13524 cat conftest.err >&5
13525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526 (exit $ac_status); } && {
13527 test -z "$ac_c_werror_flag" ||
13528 test ! -s conftest.err
13529 } && test -s conftest$ac_exeext &&
13530 $as_test_x conftest$ac_exeext; then
13531 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13533 echo "$as_me: failed program was:" >&5
13534 sed 's
/^
/|
/' conftest.$ac_ext >&5
13536 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13539 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13540 conftest$ac_exeext conftest.$ac_ext
13541 LIBS=$ac_check_lib_save_LIBS
13543 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13544 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13545 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13555 if test "${HAVE_JPEG}" = "yes"; then
13556 cat >>confdefs.h <<\_ACEOF
13557 #define HAVE_JPEG 1
13560 cat >conftest.$ac_ext <<_ACEOF
13563 cat confdefs.h >>conftest.$ac_ext
13564 cat >>conftest.$ac_ext <<_ACEOF
13565 /* end confdefs.h. */
13566 #include <jpeglib.h>
13567 version=JPEG_LIB_VERSION
13570 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13571 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13572 cat >>confdefs.h <<\_ACEOF
13573 #define HAVE_JPEG 1
13577 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13578 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13586 ### Use -lpng if available, unless `--with-png=no'.
13588 if test "${HAVE_X11}" = "yes"; then
13589 if test "${with_png}" != "no"; then
13590 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13591 # in /usr/include/libpng.
13594 for ac_header
in png.h libpng
/png.h
13596 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13597 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13598 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13600 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13601 echo $ECHO_N "(cached) $ECHO_C" >&6
13603 ac_res
=`eval echo '${'$as_ac_Header'}'`
13604 { echo "$as_me:$LINENO: result: $ac_res" >&5
13605 echo "${ECHO_T}$ac_res" >&6; }
13607 # Is the header compilable?
13608 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13609 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13610 cat >conftest.
$ac_ext <<_ACEOF
13613 cat confdefs.h
>>conftest.
$ac_ext
13614 cat >>conftest.
$ac_ext <<_ACEOF
13615 /* end confdefs.h. */
13616 $ac_includes_default
13617 #include <$ac_header>
13619 rm -f conftest.
$ac_objext
13620 if { (ac_try
="$ac_compile"
13621 case "(($ac_try" in
13622 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13623 *) ac_try_echo=$ac_try;;
13625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13626 (eval "$ac_compile") 2>conftest.er1
13628 grep -v '^ *+' conftest.er1 >conftest.err
13630 cat conftest.err >&5
13631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632 (exit $ac_status); } && {
13633 test -z "$ac_c_werror_flag" ||
13634 test ! -s conftest.err
13635 } && test -s conftest.$ac_objext; then
13636 ac_header_compiler=yes
13638 echo "$as_me: failed program was:" >&5
13639 sed 's/^/| /' conftest.$ac_ext >&5
13641 ac_header_compiler=no
13644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13645 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13646 echo "${ECHO_T}$ac_header_compiler" >&6; }
13648 # Is the header present?
13649 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13650 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13651 cat >conftest.$ac_ext <<_ACEOF
13654 cat confdefs.h >>conftest.$ac_ext
13655 cat >>conftest.$ac_ext <<_ACEOF
13656 /* end confdefs.h. */
13657 #include <$ac_header>
13659 if { (ac_try="$ac_cpp conftest.$ac_ext"
13660 case "(($ac_try" in
13661 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13662 *) ac_try_echo
=$ac_try;;
13664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13665 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13667 grep -v '^ *+' conftest.er1
>conftest.err
13669 cat conftest.err
>&5
13670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13671 (exit $ac_status); } >/dev
/null
&& {
13672 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13673 test ! -s conftest.err
13675 ac_header_preproc
=yes
13677 echo "$as_me: failed program was:" >&5
13678 sed 's/^/| /' conftest.
$ac_ext >&5
13680 ac_header_preproc
=no
13683 rm -f conftest.err conftest.
$ac_ext
13684 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13685 echo "${ECHO_T}$ac_header_preproc" >&6; }
13687 # So? What about this header?
13688 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13690 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13691 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13692 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13693 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13694 ac_header_preproc
=yes
13697 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13698 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13699 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13700 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13701 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13702 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13703 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13704 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13706 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13707 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13708 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13712 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13714 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13715 echo $ECHO_N "(cached) $ECHO_C" >&6
13717 eval "$as_ac_Header=\$ac_header_preproc"
13719 ac_res
=`eval echo '${'$as_ac_Header'}'`
13720 { echo "$as_me:$LINENO: result: $ac_res" >&5
13721 echo "${ECHO_T}$ac_res" >&6; }
13724 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13725 cat >>confdefs.h
<<_ACEOF
13726 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13733 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
13734 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13735 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13736 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13737 echo $ECHO_N "(cached) $ECHO_C" >&6
13739 ac_check_lib_save_LIBS
=$LIBS
13740 LIBS
="-lpng -lz -lm $LIBS"
13741 cat >conftest.
$ac_ext <<_ACEOF
13744 cat confdefs.h
>>conftest.
$ac_ext
13745 cat >>conftest.
$ac_ext <<_ACEOF
13746 /* end confdefs.h. */
13748 /* Override any GCC internal prototype to avoid an error.
13749 Use char because int might match the return type of a GCC
13750 builtin and then its argument prototype would still apply. */
13754 char png_get_channels ();
13758 return png_get_channels ();
13763 rm -f conftest.
$ac_objext conftest
$ac_exeext
13764 if { (ac_try
="$ac_link"
13765 case "(($ac_try" in
13766 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13767 *) ac_try_echo=$ac_try;;
13769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13770 (eval "$ac_link") 2>conftest.er1
13772 grep -v '^ *+' conftest.er1 >conftest.err
13774 cat conftest.err >&5
13775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776 (exit $ac_status); } && {
13777 test -z "$ac_c_werror_flag" ||
13778 test ! -s conftest.err
13779 } && test -s conftest$ac_exeext &&
13780 $as_test_x conftest$ac_exeext; then
13781 ac_cv_lib_png_png_get_channels=yes
13783 echo "$as_me: failed program was:" >&5
13784 sed 's/^/| /' conftest.$ac_ext >&5
13786 ac_cv_lib_png_png_get_channels=no
13789 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13790 conftest$ac_exeext conftest.$ac_ext
13791 LIBS=$ac_check_lib_save_LIBS
13793 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13794 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13795 if test $ac_cv_lib_png_png_get_channels = yes; then
13802 if test "${HAVE_PNG}" = "yes"; then
13804 cat >>confdefs.h <<\_ACEOF
13811 ### Use -ltiff if available, unless `--with-tiff=no
'.
13813 if test "${HAVE_X11}" = "yes"; then
13814 if test "${with_tiff}" != "no"; then
13815 if test "${ac_cv_header_tiffio_h+set}" = set; then
13816 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13817 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13818 if test "${ac_cv_header_tiffio_h+set}" = set; then
13819 echo $ECHO_N "(cached) $ECHO_C" >&6
13821 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13822 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13824 # Is the header compilable?
13825 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13826 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13827 cat >conftest.$ac_ext <<_ACEOF
13830 cat confdefs.h >>conftest.$ac_ext
13831 cat >>conftest.$ac_ext <<_ACEOF
13832 /* end confdefs.h. */
13833 $ac_includes_default
13834 #include <tiffio.h>
13836 rm -f conftest.$ac_objext
13837 if { (ac_try="$ac_compile"
13838 case "(($ac_try" in
13839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13840 *) ac_try_echo=$ac_try;;
13842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13843 (eval "$ac_compile") 2>conftest.er1
13845 grep -v '^
*+' conftest.er1 >conftest.err
13847 cat conftest.err >&5
13848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13849 (exit $ac_status); } && {
13850 test -z "$ac_c_werror_flag" ||
13851 test ! -s conftest.err
13852 } && test -s conftest.$ac_objext; then
13853 ac_header_compiler=yes
13855 echo "$as_me: failed program was:" >&5
13856 sed 's
/^
/|
/' conftest.$ac_ext >&5
13858 ac_header_compiler=no
13861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13862 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13863 echo "${ECHO_T}$ac_header_compiler" >&6; }
13865 # Is the header present?
13866 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13867 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13868 cat >conftest.$ac_ext <<_ACEOF
13871 cat confdefs.h >>conftest.$ac_ext
13872 cat >>conftest.$ac_ext <<_ACEOF
13873 /* end confdefs.h. */
13874 #include <tiffio.h>
13876 if { (ac_try="$ac_cpp conftest.$ac_ext"
13877 case "(($ac_try" in
13878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13879 *) ac_try_echo=$ac_try;;
13881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13882 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13884 grep -v '^
*+' conftest.er1 >conftest.err
13886 cat conftest.err >&5
13887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13888 (exit $ac_status); } >/dev/null && {
13889 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13890 test ! -s conftest.err
13892 ac_header_preproc=yes
13894 echo "$as_me: failed program was:" >&5
13895 sed 's
/^
/|
/' conftest.$ac_ext >&5
13897 ac_header_preproc=no
13900 rm -f conftest.err conftest.$ac_ext
13901 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13902 echo "${ECHO_T}$ac_header_preproc" >&6; }
13904 # So? What about this header?
13905 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13907 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13908 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13909 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result
" >&5
13910 echo "$as_me: WARNING
: tiffio.h
: proceeding with the compiler
's result" >&2;}
13911 ac_header_preproc=yes
13914 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13915 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13916 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13917 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13918 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13919 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13920 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13921 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13922 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result
" >&5
13923 echo "$as_me: WARNING
: tiffio.h
: proceeding with the preprocessor
's result" >&2;}
13924 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13925 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13929 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13930 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13931 if test "${ac_cv_header_tiffio_h+set}" = set; then
13932 echo $ECHO_N "(cached) $ECHO_C" >&6
13934 ac_cv_header_tiffio_h=$ac_header_preproc
13936 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13937 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13940 if test $ac_cv_header_tiffio_h = yes; then
13942 # At least one tiff package requires the jpeg library.
13943 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13944 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
13945 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
13946 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
13947 echo $ECHO_N "(cached) $ECHO_C" >&6
13949 ac_check_lib_save_LIBS=$LIBS
13950 LIBS="-ltiff $tifflibs $LIBS"
13951 cat >conftest.$ac_ext <<_ACEOF
13954 cat confdefs.h >>conftest.$ac_ext
13955 cat >>conftest.$ac_ext <<_ACEOF
13956 /* end confdefs.h. */
13958 /* Override any GCC internal prototype to avoid an error.
13959 Use char because int might match the return type of a GCC
13960 builtin and then its argument prototype would still apply. */
13964 char TIFFGetVersion ();
13968 return TIFFGetVersion ();
13973 rm -f conftest.$ac_objext conftest$ac_exeext
13974 if { (ac_try="$ac_link"
13975 case "(($ac_try" in
13976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13977 *) ac_try_echo=$ac_try;;
13979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13980 (eval "$ac_link") 2>conftest.er1
13982 grep -v '^
*+' conftest.er1 >conftest.err
13984 cat conftest.err >&5
13985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13986 (exit $ac_status); } && {
13987 test -z "$ac_c_werror_flag" ||
13988 test ! -s conftest.err
13989 } && test -s conftest$ac_exeext &&
13990 $as_test_x conftest$ac_exeext; then
13991 ac_cv_lib_tiff_TIFFGetVersion=yes
13993 echo "$as_me: failed program was:" >&5
13994 sed 's
/^
/|
/' conftest.$ac_ext >&5
13996 ac_cv_lib_tiff_TIFFGetVersion=no
13999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14000 conftest$ac_exeext conftest.$ac_ext
14001 LIBS=$ac_check_lib_save_LIBS
14003 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14004 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14005 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14014 if test "${HAVE_TIFF}" = "yes"; then
14016 cat >>confdefs.h <<\_ACEOF
14017 #define HAVE_TIFF 1
14023 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14025 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14026 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14027 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14028 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14029 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14030 echo $ECHO_N "(cached) $ECHO_C" >&6
14032 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14033 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14035 # Is the header compilable?
14036 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14037 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14038 cat >conftest.
$ac_ext <<_ACEOF
14041 cat confdefs.h
>>conftest.
$ac_ext
14042 cat >>conftest.
$ac_ext <<_ACEOF
14043 /* end confdefs.h. */
14044 $ac_includes_default
14045 #include <gif_lib.h>
14047 rm -f conftest.
$ac_objext
14048 if { (ac_try
="$ac_compile"
14049 case "(($ac_try" in
14050 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14051 *) ac_try_echo=$ac_try;;
14053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14054 (eval "$ac_compile") 2>conftest.er1
14056 grep -v '^ *+' conftest.er1 >conftest.err
14058 cat conftest.err >&5
14059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14060 (exit $ac_status); } && {
14061 test -z "$ac_c_werror_flag" ||
14062 test ! -s conftest.err
14063 } && test -s conftest.$ac_objext; then
14064 ac_header_compiler=yes
14066 echo "$as_me: failed program was:" >&5
14067 sed 's/^/| /' conftest.$ac_ext >&5
14069 ac_header_compiler=no
14072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14073 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14074 echo "${ECHO_T}$ac_header_compiler" >&6; }
14076 # Is the header present?
14077 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14078 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14079 cat >conftest.$ac_ext <<_ACEOF
14082 cat confdefs.h >>conftest.$ac_ext
14083 cat >>conftest.$ac_ext <<_ACEOF
14084 /* end confdefs.h. */
14085 #include <gif_lib.h>
14087 if { (ac_try="$ac_cpp conftest.$ac_ext"
14088 case "(($ac_try" in
14089 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14090 *) ac_try_echo
=$ac_try;;
14092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14093 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14095 grep -v '^ *+' conftest.er1
>conftest.err
14097 cat conftest.err
>&5
14098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14099 (exit $ac_status); } >/dev
/null
&& {
14100 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14101 test ! -s conftest.err
14103 ac_header_preproc
=yes
14105 echo "$as_me: failed program was:" >&5
14106 sed 's/^/| /' conftest.
$ac_ext >&5
14108 ac_header_preproc
=no
14111 rm -f conftest.err conftest.
$ac_ext
14112 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14113 echo "${ECHO_T}$ac_header_preproc" >&6; }
14115 # So? What about this header?
14116 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14118 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14119 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14120 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14121 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14122 ac_header_preproc
=yes
14125 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14126 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14127 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14128 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14129 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14130 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14131 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14132 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14133 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14134 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14135 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14136 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14140 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14141 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14142 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14143 echo $ECHO_N "(cached) $ECHO_C" >&6
14145 ac_cv_header_gif_lib_h
=$ac_header_preproc
14147 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14148 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14151 if test $ac_cv_header_gif_lib_h = yes; then
14152 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14153 # Earlier versions can crash Emacs.
14154 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14155 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
14156 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14157 echo $ECHO_N "(cached) $ECHO_C" >&6
14159 ac_check_lib_save_LIBS
=$LIBS
14161 cat >conftest.
$ac_ext <<_ACEOF
14164 cat confdefs.h
>>conftest.
$ac_ext
14165 cat >>conftest.
$ac_ext <<_ACEOF
14166 /* end confdefs.h. */
14168 /* Override any GCC internal prototype to avoid an error.
14169 Use char because int might match the return type of a GCC
14170 builtin and then its argument prototype would still apply. */
14174 char EGifPutExtensionLast ();
14178 return EGifPutExtensionLast ();
14183 rm -f conftest.
$ac_objext conftest
$ac_exeext
14184 if { (ac_try
="$ac_link"
14185 case "(($ac_try" in
14186 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14187 *) ac_try_echo=$ac_try;;
14189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14190 (eval "$ac_link") 2>conftest.er1
14192 grep -v '^ *+' conftest.er1 >conftest.err
14194 cat conftest.err >&5
14195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14196 (exit $ac_status); } && {
14197 test -z "$ac_c_werror_flag" ||
14198 test ! -s conftest.err
14199 } && test -s conftest$ac_exeext &&
14200 $as_test_x conftest$ac_exeext; then
14201 ac_cv_lib_gif_EGifPutExtensionLast=yes
14203 echo "$as_me: failed program was:" >&5
14204 sed 's/^/| /' conftest.$ac_ext >&5
14206 ac_cv_lib_gif_EGifPutExtensionLast=no
14209 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14210 conftest$ac_exeext conftest.$ac_ext
14211 LIBS=$ac_check_lib_save_LIBS
14213 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14214 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14215 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14225 if test "$HAVE_GIF" = yes; then
14226 ac_gif_lib_name="-lgif"
14229 # If gif_lib.h but no libgif, try libungif.
14230 if test x"$try_libungif" = xyes; then
14231 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14232 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14233 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14234 echo $ECHO_N "(cached) $ECHO_C" >&6
14236 ac_check_lib_save_LIBS=$LIBS
14237 LIBS="-lungif $LIBS"
14238 cat >conftest.$ac_ext <<_ACEOF
14241 cat confdefs.h >>conftest.$ac_ext
14242 cat >>conftest.$ac_ext <<_ACEOF
14243 /* end confdefs.h. */
14245 /* Override any GCC internal prototype to avoid an error.
14246 Use char because int might match the return type of a GCC
14247 builtin and then its argument prototype would still apply. */
14251 char EGifPutExtensionLast ();
14255 return EGifPutExtensionLast ();
14260 rm -f conftest.$ac_objext conftest$ac_exeext
14261 if { (ac_try="$ac_link"
14262 case "(($ac_try" in
14263 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14264 *) ac_try_echo
=$ac_try;;
14266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14267 (eval "$ac_link") 2>conftest.er1
14269 grep -v '^ *+' conftest.er1
>conftest.err
14271 cat conftest.err
>&5
14272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14273 (exit $ac_status); } && {
14274 test -z "$ac_c_werror_flag" ||
14275 test ! -s conftest.err
14276 } && test -s conftest
$ac_exeext &&
14277 $as_test_x conftest
$ac_exeext; then
14278 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
14280 echo "$as_me: failed program was:" >&5
14281 sed 's/^/| /' conftest.
$ac_ext >&5
14283 ac_cv_lib_ungif_EGifPutExtensionLast
=no
14286 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14287 conftest
$ac_exeext conftest.
$ac_ext
14288 LIBS
=$ac_check_lib_save_LIBS
14290 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14291 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14292 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14297 if test "$HAVE_GIF" = yes; then
14299 cat >>confdefs.h
<<\_ACEOF
14300 #define LIBGIF -lungif
14303 ac_gif_lib_name
="-lungif"
14307 if test "${HAVE_GIF}" = "yes"; then
14309 cat >>confdefs.h
<<\_ACEOF
14316 if test "${HAVE_X11}" = "yes"; then
14319 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14320 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
14321 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14322 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
14323 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14324 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
14325 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14326 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
14327 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14328 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
14330 if test "X${MISSING}" != X
; then
14331 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
14333 Maybe some development libraries/packages are missing?
14334 If you don't want to link with them give
14336 as options to configure" >&5
14337 echo "$as_me: error: The following required libraries were not found:
14339 Maybe some development libraries/packages are missing?
14340 If you don't want to link with them give
14342 as options to configure" >&2;}
14343 { (exit 1); exit 1; }; }
14347 ### Use -lgpm if available, unless `--with-gpm=no'.
14349 if test "${with_gpm}" != "no"; then
14350 if test "${ac_cv_header_gpm_h+set}" = set; then
14351 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14352 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14353 if test "${ac_cv_header_gpm_h+set}" = set; then
14354 echo $ECHO_N "(cached) $ECHO_C" >&6
14356 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14357 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14359 # Is the header compilable?
14360 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14361 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14362 cat >conftest.
$ac_ext <<_ACEOF
14365 cat confdefs.h
>>conftest.
$ac_ext
14366 cat >>conftest.
$ac_ext <<_ACEOF
14367 /* end confdefs.h. */
14368 $ac_includes_default
14371 rm -f conftest.
$ac_objext
14372 if { (ac_try
="$ac_compile"
14373 case "(($ac_try" in
14374 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14375 *) ac_try_echo=$ac_try;;
14377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14378 (eval "$ac_compile") 2>conftest.er1
14380 grep -v '^ *+' conftest.er1 >conftest.err
14382 cat conftest.err >&5
14383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384 (exit $ac_status); } && {
14385 test -z "$ac_c_werror_flag" ||
14386 test ! -s conftest.err
14387 } && test -s conftest.$ac_objext; then
14388 ac_header_compiler=yes
14390 echo "$as_me: failed program was:" >&5
14391 sed 's/^/| /' conftest.$ac_ext >&5
14393 ac_header_compiler=no
14396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14397 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14398 echo "${ECHO_T}$ac_header_compiler" >&6; }
14400 # Is the header present?
14401 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14402 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14403 cat >conftest.$ac_ext <<_ACEOF
14406 cat confdefs.h >>conftest.$ac_ext
14407 cat >>conftest.$ac_ext <<_ACEOF
14408 /* end confdefs.h. */
14411 if { (ac_try="$ac_cpp conftest.$ac_ext"
14412 case "(($ac_try" in
14413 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14414 *) ac_try_echo
=$ac_try;;
14416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14417 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14419 grep -v '^ *+' conftest.er1
>conftest.err
14421 cat conftest.err
>&5
14422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14423 (exit $ac_status); } >/dev
/null
&& {
14424 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14425 test ! -s conftest.err
14427 ac_header_preproc
=yes
14429 echo "$as_me: failed program was:" >&5
14430 sed 's/^/| /' conftest.
$ac_ext >&5
14432 ac_header_preproc
=no
14435 rm -f conftest.err conftest.
$ac_ext
14436 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14437 echo "${ECHO_T}$ac_header_preproc" >&6; }
14439 # So? What about this header?
14440 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14442 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14443 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14444 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14445 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14446 ac_header_preproc
=yes
14449 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14450 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14451 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14452 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14453 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14454 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14455 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14456 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14457 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14458 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14459 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14460 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14464 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14465 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14466 if test "${ac_cv_header_gpm_h+set}" = set; then
14467 echo $ECHO_N "(cached) $ECHO_C" >&6
14469 ac_cv_header_gpm_h
=$ac_header_preproc
14471 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14472 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14475 if test $ac_cv_header_gpm_h = yes; then
14476 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14477 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14478 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14479 echo $ECHO_N "(cached) $ECHO_C" >&6
14481 ac_check_lib_save_LIBS
=$LIBS
14483 cat >conftest.
$ac_ext <<_ACEOF
14486 cat confdefs.h
>>conftest.
$ac_ext
14487 cat >>conftest.
$ac_ext <<_ACEOF
14488 /* end confdefs.h. */
14490 /* Override any GCC internal prototype to avoid an error.
14491 Use char because int might match the return type of a GCC
14492 builtin and then its argument prototype would still apply. */
14500 return Gpm_Open ();
14505 rm -f conftest.
$ac_objext conftest
$ac_exeext
14506 if { (ac_try
="$ac_link"
14507 case "(($ac_try" in
14508 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14509 *) ac_try_echo=$ac_try;;
14511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14512 (eval "$ac_link") 2>conftest.er1
14514 grep -v '^ *+' conftest.er1 >conftest.err
14516 cat conftest.err >&5
14517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14518 (exit $ac_status); } && {
14519 test -z "$ac_c_werror_flag" ||
14520 test ! -s conftest.err
14521 } && test -s conftest$ac_exeext &&
14522 $as_test_x conftest$ac_exeext; then
14523 ac_cv_lib_gpm_Gpm_Open=yes
14525 echo "$as_me: failed program was:" >&5
14526 sed 's/^/| /' conftest.$ac_ext >&5
14528 ac_cv_lib_gpm_Gpm_Open=no
14531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14532 conftest$ac_exeext conftest.$ac_ext
14533 LIBS=$ac_check_lib_save_LIBS
14535 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14536 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14537 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14546 if test "${HAVE_GPM}" = "yes"; then
14548 cat >>confdefs.h <<\_ACEOF
14554 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14555 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14556 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14557 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14558 echo $ECHO_N "(cached) $ECHO_C" >&6
14560 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14561 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14563 # Is the header compilable?
14564 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14565 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14566 cat >conftest.$ac_ext <<_ACEOF
14569 cat confdefs.h >>conftest.$ac_ext
14570 cat >>conftest.$ac_ext <<_ACEOF
14571 /* end confdefs.h. */
14572 $ac_includes_default
14573 #include <malloc/malloc.h>
14575 rm -f conftest.$ac_objext
14576 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
14592 ac_header_compiler
=yes
14594 echo "$as_me: failed program was:" >&5
14595 sed 's/^/| /' conftest.
$ac_ext >&5
14597 ac_header_compiler
=no
14600 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14601 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14602 echo "${ECHO_T}$ac_header_compiler" >&6; }
14604 # Is the header present?
14605 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14606 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14607 cat >conftest.
$ac_ext <<_ACEOF
14610 cat confdefs.h
>>conftest.
$ac_ext
14611 cat >>conftest.
$ac_ext <<_ACEOF
14612 /* end confdefs.h. */
14613 #include <malloc/malloc.h>
14615 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14616 case "(($ac_try" in
14617 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14618 *) ac_try_echo=$ac_try;;
14620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14621 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14623 grep -v '^ *+' conftest.er1 >conftest.err
14625 cat conftest.err >&5
14626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627 (exit $ac_status); } >/dev/null && {
14628 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14629 test ! -s conftest.err
14631 ac_header_preproc=yes
14633 echo "$as_me: failed program was:" >&5
14634 sed 's/^/| /' conftest.$ac_ext >&5
14636 ac_header_preproc=no
14639 rm -f conftest.err conftest.$ac_ext
14640 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14641 echo "${ECHO_T}$ac_header_preproc" >&6; }
14643 # So? What about this header?
14644 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14646 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14647 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14648 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14649 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14650 ac_header_preproc=yes
14653 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14654 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14655 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14656 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14657 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14658 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14659 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14660 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14661 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14662 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14663 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14664 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14668 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14669 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14670 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14671 echo $ECHO_N "(cached) $ECHO_C" >&6
14673 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14675 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14676 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14679 if test $ac_cv_header_malloc_malloc_h = yes; then
14681 cat >>confdefs.h <<\_ACEOF
14682 #define HAVE_MALLOC_MALLOC_H 1
14689 ### Use Mac OS X Carbon API to implement GUI.
14690 if test "${HAVE_CARBON}" = "yes"; then
14692 cat >>confdefs.h <<\_ACEOF
14693 #define HAVE_CARBON 1
14696 ## Specify the install directory
14698 if test "${carbon_appdir_x}" != ""; then
14699 case ${carbon_appdir_x} in
14700 y | ye | yes) carbon_appdir=/Applications ;;
14701 * ) carbon_appdir=${carbon_appdir_x} ;;
14704 # We also have mouse menus.
14708 ### Use session management (-lSM -lICE) if available
14710 if test "${HAVE_X11}" = "yes"; then
14711 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14712 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14713 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14714 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14715 echo $ECHO_N "(cached) $ECHO_C" >&6
14717 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14718 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14720 # Is the header compilable?
14721 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14722 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14723 cat >conftest.$ac_ext <<_ACEOF
14726 cat confdefs.h >>conftest.$ac_ext
14727 cat >>conftest.$ac_ext <<_ACEOF
14728 /* end confdefs.h. */
14729 $ac_includes_default
14730 #include <X11/SM/SMlib.h>
14732 rm -f conftest.$ac_objext
14733 if { (ac_try="$ac_compile"
14734 case "(($ac_try" in
14735 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14736 *) ac_try_echo
=$ac_try;;
14738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14739 (eval "$ac_compile") 2>conftest.er1
14741 grep -v '^ *+' conftest.er1
>conftest.err
14743 cat conftest.err
>&5
14744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745 (exit $ac_status); } && {
14746 test -z "$ac_c_werror_flag" ||
14747 test ! -s conftest.err
14748 } && test -s conftest.
$ac_objext; then
14749 ac_header_compiler
=yes
14751 echo "$as_me: failed program was:" >&5
14752 sed 's/^/| /' conftest.
$ac_ext >&5
14754 ac_header_compiler
=no
14757 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14758 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14759 echo "${ECHO_T}$ac_header_compiler" >&6; }
14761 # Is the header present?
14762 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14763 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14764 cat >conftest.
$ac_ext <<_ACEOF
14767 cat confdefs.h
>>conftest.
$ac_ext
14768 cat >>conftest.
$ac_ext <<_ACEOF
14769 /* end confdefs.h. */
14770 #include <X11/SM/SMlib.h>
14772 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14773 case "(($ac_try" in
14774 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14775 *) ac_try_echo=$ac_try;;
14777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14778 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14780 grep -v '^ *+' conftest.er1 >conftest.err
14782 cat conftest.err >&5
14783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14784 (exit $ac_status); } >/dev/null && {
14785 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14786 test ! -s conftest.err
14788 ac_header_preproc=yes
14790 echo "$as_me: failed program was:" >&5
14791 sed 's/^/| /' conftest.$ac_ext >&5
14793 ac_header_preproc=no
14796 rm -f conftest.err conftest.$ac_ext
14797 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14798 echo "${ECHO_T}$ac_header_preproc" >&6; }
14800 # So? What about this header?
14801 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14803 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14804 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14805 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14806 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14807 ac_header_preproc=yes
14810 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14811 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14812 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14813 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14814 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14815 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14816 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14817 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14818 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14819 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14820 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14821 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14825 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14826 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14827 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14828 echo $ECHO_N "(cached) $ECHO_C" >&6
14830 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14832 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14833 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14836 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14837 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14838 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14839 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14840 echo $ECHO_N "(cached) $ECHO_C" >&6
14842 ac_check_lib_save_LIBS=$LIBS
14843 LIBS="-lSM -lICE $LIBS"
14844 cat >conftest.$ac_ext <<_ACEOF
14847 cat confdefs.h >>conftest.$ac_ext
14848 cat >>conftest.$ac_ext <<_ACEOF
14849 /* end confdefs.h. */
14851 /* Override any GCC internal prototype to avoid an error.
14852 Use char because int might match the return type of a GCC
14853 builtin and then its argument prototype would still apply. */
14857 char SmcOpenConnection ();
14861 return SmcOpenConnection ();
14866 rm -f conftest.$ac_objext conftest$ac_exeext
14867 if { (ac_try="$ac_link"
14868 case "(($ac_try" in
14869 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14870 *) ac_try_echo
=$ac_try;;
14872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14873 (eval "$ac_link") 2>conftest.er1
14875 grep -v '^ *+' conftest.er1
>conftest.err
14877 cat conftest.err
>&5
14878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14879 (exit $ac_status); } && {
14880 test -z "$ac_c_werror_flag" ||
14881 test ! -s conftest.err
14882 } && test -s conftest
$ac_exeext &&
14883 $as_test_x conftest
$ac_exeext; then
14884 ac_cv_lib_SM_SmcOpenConnection
=yes
14886 echo "$as_me: failed program was:" >&5
14887 sed 's/^/| /' conftest.
$ac_ext >&5
14889 ac_cv_lib_SM_SmcOpenConnection
=no
14892 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14893 conftest
$ac_exeext conftest.
$ac_ext
14894 LIBS
=$ac_check_lib_save_LIBS
14896 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14897 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14898 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14906 if test "${HAVE_X_SM}" = "yes"; then
14908 cat >>confdefs.h
<<\_ACEOF
14909 #define HAVE_X_SM 1
14914 *) LIBS
="-lSM -lICE $LIBS" ;;
14919 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14920 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14921 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14922 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14923 echo $ECHO_N "(cached) $ECHO_C" >&6
14925 cat >conftest.
$ac_ext <<_ACEOF
14928 cat confdefs.h
>>conftest.
$ac_ext
14929 cat >>conftest.
$ac_ext <<_ACEOF
14930 /* end confdefs.h. */
14940 rm -f conftest.
$ac_objext conftest
$ac_exeext
14941 if { (ac_try
="$ac_link"
14942 case "(($ac_try" in
14943 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14944 *) ac_try_echo=$ac_try;;
14946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14947 (eval "$ac_link") 2>conftest.er1
14949 grep -v '^ *+' conftest.er1 >conftest.err
14951 cat conftest.err >&5
14952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14953 (exit $ac_status); } && {
14954 test -z "$ac_c_werror_flag" ||
14955 test ! -s conftest.err
14956 } && test -s conftest$ac_exeext &&
14957 $as_test_x conftest$ac_exeext; then
14958 emacs_cv_netdb_declares_h_errno=yes
14960 echo "$as_me: failed program was:" >&5
14961 sed 's/^/| /' conftest.$ac_ext >&5
14963 emacs_cv_netdb_declares_h_errno=no
14966 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14967 conftest$ac_exeext conftest.$ac_ext
14969 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
14970 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
14971 if test $emacs_cv_netdb_declares_h_errno = yes; then
14973 cat >>confdefs.h <<\_ACEOF
14974 #define HAVE_H_ERRNO 1
14979 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14980 # for constant arguments. Useless!
14981 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
14982 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
14983 if test "${ac_cv_working_alloca_h+set}" = set; then
14984 echo $ECHO_N "(cached) $ECHO_C" >&6
14986 cat >conftest.$ac_ext <<_ACEOF
14989 cat confdefs.h >>conftest.$ac_ext
14990 cat >>conftest.$ac_ext <<_ACEOF
14991 /* end confdefs.h. */
14992 #include <alloca.h>
14996 char *p = (char *) alloca (2 * sizeof (int));
15002 rm -f conftest.$ac_objext conftest$ac_exeext
15003 if { (ac_try="$ac_link"
15004 case "(($ac_try" in
15005 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15006 *) ac_try_echo
=$ac_try;;
15008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15009 (eval "$ac_link") 2>conftest.er1
15011 grep -v '^ *+' conftest.er1
>conftest.err
15013 cat conftest.err
>&5
15014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15015 (exit $ac_status); } && {
15016 test -z "$ac_c_werror_flag" ||
15017 test ! -s conftest.err
15018 } && test -s conftest
$ac_exeext &&
15019 $as_test_x conftest
$ac_exeext; then
15020 ac_cv_working_alloca_h
=yes
15022 echo "$as_me: failed program was:" >&5
15023 sed 's/^/| /' conftest.
$ac_ext >&5
15025 ac_cv_working_alloca_h
=no
15028 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15029 conftest
$ac_exeext conftest.
$ac_ext
15031 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15032 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15033 if test $ac_cv_working_alloca_h = yes; then
15035 cat >>confdefs.h
<<\_ACEOF
15036 #define HAVE_ALLOCA_H 1
15041 { echo "$as_me:$LINENO: checking for alloca" >&5
15042 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15043 if test "${ac_cv_func_alloca_works+set}" = set; then
15044 echo $ECHO_N "(cached) $ECHO_C" >&6
15046 cat >conftest.
$ac_ext <<_ACEOF
15049 cat confdefs.h
>>conftest.
$ac_ext
15050 cat >>conftest.
$ac_ext <<_ACEOF
15051 /* end confdefs.h. */
15053 # define alloca __builtin_alloca
15056 # include <malloc.h>
15057 # define alloca _alloca
15059 # ifdef HAVE_ALLOCA_H
15060 # include <alloca.h>
15065 # ifndef alloca /* predefined by HP cc +Olibcalls */
15076 char *p = (char *) alloca (1);
15082 rm -f conftest.
$ac_objext conftest
$ac_exeext
15083 if { (ac_try
="$ac_link"
15084 case "(($ac_try" in
15085 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15086 *) ac_try_echo=$ac_try;;
15088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15089 (eval "$ac_link") 2>conftest.er1
15091 grep -v '^ *+' conftest.er1 >conftest.err
15093 cat conftest.err >&5
15094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15095 (exit $ac_status); } && {
15096 test -z "$ac_c_werror_flag" ||
15097 test ! -s conftest.err
15098 } && test -s conftest$ac_exeext &&
15099 $as_test_x conftest$ac_exeext; then
15100 ac_cv_func_alloca_works=yes
15102 echo "$as_me: failed program was:" >&5
15103 sed 's/^/| /' conftest.$ac_ext >&5
15105 ac_cv_func_alloca_works=no
15108 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15109 conftest$ac_exeext conftest.$ac_ext
15111 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15112 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15114 if test $ac_cv_func_alloca_works = yes; then
15116 cat >>confdefs.h <<\_ACEOF
15117 #define HAVE_ALLOCA 1
15121 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15122 # that cause trouble. Some versions do not even contain alloca or
15123 # contain a buggy version. If you still want to use their alloca,
15124 # use ar to extract alloca.o from them instead of compiling alloca.c.
15126 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15128 cat >>confdefs.h <<\_ACEOF
15133 { echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
15134 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks...
$ECHO_C" >&6; }
15135 if test "${ac_cv_os_cray+set}" = set; then
15136 echo $ECHO_N "(cached
) $ECHO_C" >&6
15138 cat >conftest.$ac_ext <<_ACEOF
15141 cat confdefs.h >>conftest.$ac_ext
15142 cat >>conftest.$ac_ext <<_ACEOF
15143 /* end confdefs.h. */
15144 #if defined CRAY && ! defined CRAY2
15151 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
15152 $EGREP "webecray
" >/dev/null 2>&1; then
15160 { echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
15161 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15162 if test $ac_cv_os_cray = yes; then
15163 for ac_func in _getb67 GETB67 getb67; do
15164 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15165 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15166 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15167 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15168 echo $ECHO_N "(cached
) $ECHO_C" >&6
15170 cat >conftest.$ac_ext <<_ACEOF
15173 cat confdefs.h >>conftest.$ac_ext
15174 cat >>conftest.$ac_ext <<_ACEOF
15175 /* end confdefs.h. */
15176 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15177 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15178 #define $ac_func innocuous_$ac_func
15180 /* System header to define __stub macros and hopefully few prototypes,
15181 which can conflict with char $ac_func (); below.
15182 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15183 <limits.h> exists even on freestanding compilers. */
15186 # include <limits.h>
15188 # include <assert.h>
15193 /* Override any GCC internal prototype to avoid an error.
15194 Use char because int might match the return type of a GCC
15195 builtin and then its argument prototype would still apply. */
15200 /* The GNU C library defines this for functions which it implements
15201 to always fail with ENOSYS. Some functions are actually named
15202 something starting with __ and the normal name is an alias. */
15203 #if defined __stub_$ac_func || defined __stub___$ac_func
15210 return $ac_func ();
15215 rm -f conftest.$ac_objext conftest$ac_exeext
15216 if { (ac_try="$ac_link"
15217 case "(($ac_try" in
15218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15219 *) ac_try_echo=$ac_try;;
15221 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15222 (eval "$ac_link") 2>conftest.er1
15224 grep -v '^ *+' conftest.er1 >conftest.err
15226 cat conftest.err >&5
15227 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15228 (exit $ac_status); } && {
15229 test -z "$ac_c_werror_flag" ||
15230 test ! -s conftest.err
15231 } && test -s conftest$ac_exeext &&
15232 $as_test_x conftest$ac_exeext; then
15233 eval "$as_ac_var=yes"
15235 echo "$as_me: failed program was
:" >&5
15236 sed 's/^/| /' conftest.$ac_ext >&5
15238 eval "$as_ac_var=no
"
15241 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15242 conftest$ac_exeext conftest.$ac_ext
15244 ac_res=`eval echo '${'$as_ac_var'}'`
15245 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15246 echo "${ECHO_T}$ac_res" >&6; }
15247 if test `eval echo '${'$as_ac_var'}'` = yes; then
15249 cat >>confdefs.h <<_ACEOF
15250 #define CRAY_STACKSEG_END $ac_func
15259 { echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
15260 echo $ECHO_N "checking stack direction
for C alloca...
$ECHO_C" >&6; }
15261 if test "${ac_cv_c_stack_direction+set}" = set; then
15262 echo $ECHO_N "(cached
) $ECHO_C" >&6
15264 if test "$cross_compiling" = yes; then
15265 ac_cv_c_stack_direction=0
15267 cat >conftest.$ac_ext <<_ACEOF
15270 cat confdefs.h >>conftest.$ac_ext
15271 cat >>conftest.$ac_ext <<_ACEOF
15272 /* end confdefs.h. */
15273 $ac_includes_default
15275 find_stack_direction ()
15277 static char *addr = 0;
15282 return find_stack_direction ();
15285 return (&dummy > addr) ? 1 : -1;
15291 return find_stack_direction () < 0;
15294 rm -f conftest$ac_exeext
15295 if { (ac_try="$ac_link"
15296 case "(($ac_try" in
15297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15298 *) ac_try_echo=$ac_try;;
15300 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15301 (eval "$ac_link") 2>&5
15303 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15304 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15305 { (case "(($ac_try" in
15306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15307 *) ac_try_echo=$ac_try;;
15309 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15310 (eval "$ac_try") 2>&5
15312 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15313 (exit $ac_status); }; }; then
15314 ac_cv_c_stack_direction=1
15316 echo "$as_me: program exited with status
$ac_status" >&5
15317 echo "$as_me: failed program was
:" >&5
15318 sed 's/^/| /' conftest.$ac_ext >&5
15320 ( exit $ac_status )
15321 ac_cv_c_stack_direction=-1
15323 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15328 { echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
15329 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15331 cat >>confdefs.h <<_ACEOF
15332 #define STACK_DIRECTION $ac_cv_c_stack_direction
15339 # fmod, logb, and frexp are found in -lm on most systems.
15340 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15342 { echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
15343 echo $ECHO_N "checking
for sqrt
in -lm...
$ECHO_C" >&6; }
15344 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15345 echo $ECHO_N "(cached
) $ECHO_C" >&6
15347 ac_check_lib_save_LIBS=$LIBS
15349 cat >conftest.$ac_ext <<_ACEOF
15352 cat confdefs.h >>conftest.$ac_ext
15353 cat >>conftest.$ac_ext <<_ACEOF
15354 /* end confdefs.h. */
15356 /* Override any GCC internal prototype to avoid an error.
15357 Use char because int might match the return type of a GCC
15358 builtin and then its argument prototype would still apply. */
15371 rm -f conftest.$ac_objext conftest$ac_exeext
15372 if { (ac_try="$ac_link"
15373 case "(($ac_try" in
15374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15375 *) ac_try_echo=$ac_try;;
15377 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15378 (eval "$ac_link") 2>conftest.er1
15380 grep -v '^ *+' conftest.er1 >conftest.err
15382 cat conftest.err >&5
15383 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15384 (exit $ac_status); } && {
15385 test -z "$ac_c_werror_flag" ||
15386 test ! -s conftest.err
15387 } && test -s conftest$ac_exeext &&
15388 $as_test_x conftest$ac_exeext; then
15389 ac_cv_lib_m_sqrt=yes
15391 echo "$as_me: failed program was
:" >&5
15392 sed 's/^/| /' conftest.$ac_ext >&5
15394 ac_cv_lib_m_sqrt=no
15397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15398 conftest$ac_exeext conftest.$ac_ext
15399 LIBS=$ac_check_lib_save_LIBS
15401 { echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
15402 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15403 if test $ac_cv_lib_m_sqrt = yes; then
15404 cat >>confdefs.h <<_ACEOF
15405 #define HAVE_LIBM 1
15413 # Check for mail-locking functions in a "mail" library. Probably this should
15414 # have the same check as for liblockfile below.
15416 { echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
15417 echo $ECHO_N "checking
for maillock
in -lmail...
$ECHO_C" >&6; }
15418 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15419 echo $ECHO_N "(cached
) $ECHO_C" >&6
15421 ac_check_lib_save_LIBS=$LIBS
15422 LIBS="-lmail $LIBS"
15423 cat >conftest.$ac_ext <<_ACEOF
15426 cat confdefs.h >>conftest.$ac_ext
15427 cat >>conftest.$ac_ext <<_ACEOF
15428 /* end confdefs.h. */
15430 /* Override any GCC internal prototype to avoid an error.
15431 Use char because int might match the return type of a GCC
15432 builtin and then its argument prototype would still apply. */
15440 return maillock ();
15445 rm -f conftest.$ac_objext conftest$ac_exeext
15446 if { (ac_try="$ac_link"
15447 case "(($ac_try" in
15448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15449 *) ac_try_echo=$ac_try;;
15451 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15452 (eval "$ac_link") 2>conftest.er1
15454 grep -v '^ *+' conftest.er1 >conftest.err
15456 cat conftest.err >&5
15457 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15458 (exit $ac_status); } && {
15459 test -z "$ac_c_werror_flag" ||
15460 test ! -s conftest.err
15461 } && test -s conftest$ac_exeext &&
15462 $as_test_x conftest$ac_exeext; then
15463 ac_cv_lib_mail_maillock=yes
15465 echo "$as_me: failed program was
:" >&5
15466 sed 's/^/| /' conftest.$ac_ext >&5
15468 ac_cv_lib_mail_maillock=no
15471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15472 conftest$ac_exeext conftest.$ac_ext
15473 LIBS=$ac_check_lib_save_LIBS
15475 { echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
15476 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15477 if test $ac_cv_lib_mail_maillock = yes; then
15478 cat >>confdefs.h <<_ACEOF
15479 #define HAVE_LIBMAIL 1
15482 LIBS="-lmail $LIBS"
15487 { echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
15488 echo $ECHO_N "checking
for maillock
in -llockfile...
$ECHO_C" >&6; }
15489 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15490 echo $ECHO_N "(cached
) $ECHO_C" >&6
15492 ac_check_lib_save_LIBS=$LIBS
15493 LIBS="-llockfile $LIBS"
15494 cat >conftest.$ac_ext <<_ACEOF
15497 cat confdefs.h >>conftest.$ac_ext
15498 cat >>conftest.$ac_ext <<_ACEOF
15499 /* end confdefs.h. */
15501 /* Override any GCC internal prototype to avoid an error.
15502 Use char because int might match the return type of a GCC
15503 builtin and then its argument prototype would still apply. */
15511 return maillock ();
15516 rm -f conftest.$ac_objext conftest$ac_exeext
15517 if { (ac_try="$ac_link"
15518 case "(($ac_try" in
15519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15520 *) ac_try_echo=$ac_try;;
15522 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15523 (eval "$ac_link") 2>conftest.er1
15525 grep -v '^ *+' conftest.er1 >conftest.err
15527 cat conftest.err >&5
15528 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15529 (exit $ac_status); } && {
15530 test -z "$ac_c_werror_flag" ||
15531 test ! -s conftest.err
15532 } && test -s conftest$ac_exeext &&
15533 $as_test_x conftest$ac_exeext; then
15534 ac_cv_lib_lockfile_maillock=yes
15536 echo "$as_me: failed program was
:" >&5
15537 sed 's/^/| /' conftest.$ac_ext >&5
15539 ac_cv_lib_lockfile_maillock=no
15542 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15543 conftest$ac_exeext conftest.$ac_ext
15544 LIBS=$ac_check_lib_save_LIBS
15546 { echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
15547 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15548 if test $ac_cv_lib_lockfile_maillock = yes; then
15549 cat >>confdefs.h <<_ACEOF
15550 #define HAVE_LIBLOCKFILE 1
15553 LIBS="-llockfile $LIBS"
15557 # If we have the shared liblockfile, assume we must use it for mail
15558 # locking (e.g. Debian). If we couldn't link against liblockfile
15559 # (no liblockfile.a installed), ensure that we don't need to.
15560 if test "$ac_cv_lib_lockfile_maillock" = no; then
15561 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
15562 set dummy liblockfile.so; ac_word=$2
15563 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
15564 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
15565 if test "${ac_cv_prog_liblockfile+set}" = set; then
15566 echo $ECHO_N "(cached
) $ECHO_C" >&6
15568 if test -n "$liblockfile"; then
15569 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15572 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
15573 for as_dir in $as_dummy
15576 test -z "$as_dir" && as_dir=.
15577 for ac_exec_ext in '' $ac_executable_extensions; do
15578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15579 ac_cv_prog_liblockfile="yes"
15580 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15587 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
15590 liblockfile=$ac_cv_prog_liblockfile
15591 if test -n "$liblockfile"; then
15592 { echo "$as_me:$LINENO: result
: $liblockfile" >&5
15593 echo "${ECHO_T}$liblockfile" >&6; }
15595 { echo "$as_me:$LINENO: result
: no
" >&5
15596 echo "${ECHO_T}no
" >&6; }
15600 if test $ac_cv_prog_liblockfile = yes; then
15601 { { echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
15602 This probably means that movemail could lose mail.
15603 There may be a \`development' package to
install containing liblockfile.
" >&5
15604 echo "$as_me: error
: Shared liblockfile found but can
't link against it.
15605 This probably means that movemail could lose mail.
15606 There may be a \`development' package to
install containing liblockfile.
" >&2;}
15607 { (exit 1); exit 1; }; }
15612 for ac_func in touchlock
15614 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15615 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15616 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15617 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15618 echo $ECHO_N "(cached
) $ECHO_C" >&6
15620 cat >conftest.$ac_ext <<_ACEOF
15623 cat confdefs.h >>conftest.$ac_ext
15624 cat >>conftest.$ac_ext <<_ACEOF
15625 /* end confdefs.h. */
15626 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15627 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15628 #define $ac_func innocuous_$ac_func
15630 /* System header to define __stub macros and hopefully few prototypes,
15631 which can conflict with char $ac_func (); below.
15632 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15633 <limits.h> exists even on freestanding compilers. */
15636 # include <limits.h>
15638 # include <assert.h>
15643 /* Override any GCC internal prototype to avoid an error.
15644 Use char because int might match the return type of a GCC
15645 builtin and then its argument prototype would still apply. */
15650 /* The GNU C library defines this for functions which it implements
15651 to always fail with ENOSYS. Some functions are actually named
15652 something starting with __ and the normal name is an alias. */
15653 #if defined __stub_$ac_func || defined __stub___$ac_func
15660 return $ac_func ();
15665 rm -f conftest.$ac_objext conftest$ac_exeext
15666 if { (ac_try="$ac_link"
15667 case "(($ac_try" in
15668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15669 *) ac_try_echo=$ac_try;;
15671 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15672 (eval "$ac_link") 2>conftest.er1
15674 grep -v '^ *+' conftest.er1 >conftest.err
15676 cat conftest.err >&5
15677 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15678 (exit $ac_status); } && {
15679 test -z "$ac_c_werror_flag" ||
15680 test ! -s conftest.err
15681 } && test -s conftest$ac_exeext &&
15682 $as_test_x conftest$ac_exeext; then
15683 eval "$as_ac_var=yes"
15685 echo "$as_me: failed program was
:" >&5
15686 sed 's/^/| /' conftest.$ac_ext >&5
15688 eval "$as_ac_var=no
"
15691 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15692 conftest$ac_exeext conftest.$ac_ext
15694 ac_res=`eval echo '${'$as_ac_var'}'`
15695 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15696 echo "${ECHO_T}$ac_res" >&6; }
15697 if test `eval echo '${'$as_ac_var'}'` = yes; then
15698 cat >>confdefs.h <<_ACEOF
15699 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15706 for ac_header in maillock.h
15708 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15709 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15710 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15711 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15712 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15713 echo $ECHO_N "(cached
) $ECHO_C" >&6
15715 ac_res=`eval echo '${'$as_ac_Header'}'`
15716 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15717 echo "${ECHO_T}$ac_res" >&6; }
15719 # Is the header compilable?
15720 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15721 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15722 cat >conftest.$ac_ext <<_ACEOF
15725 cat confdefs.h >>conftest.$ac_ext
15726 cat >>conftest.$ac_ext <<_ACEOF
15727 /* end confdefs.h. */
15728 $ac_includes_default
15729 #include <$ac_header>
15731 rm -f conftest.$ac_objext
15732 if { (ac_try="$ac_compile"
15733 case "(($ac_try" in
15734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15735 *) ac_try_echo=$ac_try;;
15737 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15738 (eval "$ac_compile") 2>conftest.er1
15740 grep -v '^ *+' conftest.er1 >conftest.err
15742 cat conftest.err >&5
15743 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15744 (exit $ac_status); } && {
15745 test -z "$ac_c_werror_flag" ||
15746 test ! -s conftest.err
15747 } && test -s conftest.$ac_objext; then
15748 ac_header_compiler=yes
15750 echo "$as_me: failed program was
:" >&5
15751 sed 's/^/| /' conftest.$ac_ext >&5
15753 ac_header_compiler=no
15756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15757 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15758 echo "${ECHO_T}$ac_header_compiler" >&6; }
15760 # Is the header present?
15761 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15762 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15763 cat >conftest.$ac_ext <<_ACEOF
15766 cat confdefs.h >>conftest.$ac_ext
15767 cat >>conftest.$ac_ext <<_ACEOF
15768 /* end confdefs.h. */
15769 #include <$ac_header>
15771 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15772 case "(($ac_try" in
15773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15774 *) ac_try_echo=$ac_try;;
15776 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15777 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15779 grep -v '^ *+' conftest.er1 >conftest.err
15781 cat conftest.err >&5
15782 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15783 (exit $ac_status); } >/dev/null && {
15784 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15785 test ! -s conftest.err
15787 ac_header_preproc=yes
15789 echo "$as_me: failed program was
:" >&5
15790 sed 's/^/| /' conftest.$ac_ext >&5
15792 ac_header_preproc=no
15795 rm -f conftest.err conftest.$ac_ext
15796 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15797 echo "${ECHO_T}$ac_header_preproc" >&6; }
15799 # So? What about this header?
15800 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15802 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15803 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15804 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15805 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15806 ac_header_preproc=yes
15809 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15810 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15811 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15812 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15813 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15814 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15815 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15816 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15817 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15818 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15819 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15820 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15824 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15825 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15826 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15827 echo $ECHO_N "(cached
) $ECHO_C" >&6
15829 eval "$as_ac_Header=\
$ac_header_preproc"
15831 ac_res=`eval echo '${'$as_ac_Header'}'`
15832 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15833 echo "${ECHO_T}$ac_res" >&6; }
15836 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15837 cat >>confdefs.h <<_ACEOF
15838 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15915 for ac_func in gethostname getdomainname dup2 \
15916 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15917 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
15918 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15919 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15920 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15921 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15922 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15923 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15925 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15926 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15927 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15928 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15929 echo $ECHO_N "(cached
) $ECHO_C" >&6
15931 cat >conftest.$ac_ext <<_ACEOF
15934 cat confdefs.h >>conftest.$ac_ext
15935 cat >>conftest.$ac_ext <<_ACEOF
15936 /* end confdefs.h. */
15937 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15938 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15939 #define $ac_func innocuous_$ac_func
15941 /* System header to define __stub macros and hopefully few prototypes,
15942 which can conflict with char $ac_func (); below.
15943 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15944 <limits.h> exists even on freestanding compilers. */
15947 # include <limits.h>
15949 # include <assert.h>
15954 /* Override any GCC internal prototype to avoid an error.
15955 Use char because int might match the return type of a GCC
15956 builtin and then its argument prototype would still apply. */
15961 /* The GNU C library defines this for functions which it implements
15962 to always fail with ENOSYS. Some functions are actually named
15963 something starting with __ and the normal name is an alias. */
15964 #if defined __stub_$ac_func || defined __stub___$ac_func
15971 return $ac_func ();
15976 rm -f conftest.$ac_objext conftest$ac_exeext
15977 if { (ac_try="$ac_link"
15978 case "(($ac_try" in
15979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15980 *) ac_try_echo=$ac_try;;
15982 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15983 (eval "$ac_link") 2>conftest.er1
15985 grep -v '^ *+' conftest.er1 >conftest.err
15987 cat conftest.err >&5
15988 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15989 (exit $ac_status); } && {
15990 test -z "$ac_c_werror_flag" ||
15991 test ! -s conftest.err
15992 } && test -s conftest$ac_exeext &&
15993 $as_test_x conftest$ac_exeext; then
15994 eval "$as_ac_var=yes"
15996 echo "$as_me: failed program was
:" >&5
15997 sed 's/^/| /' conftest.$ac_ext >&5
15999 eval "$as_ac_var=no
"
16002 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16003 conftest$ac_exeext conftest.$ac_ext
16005 ac_res=`eval echo '${'$as_ac_var'}'`
16006 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16007 echo "${ECHO_T}$ac_res" >&6; }
16008 if test `eval echo '${'$as_ac_var'}'` = yes; then
16009 cat >>confdefs.h <<_ACEOF
16010 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16018 for ac_header in sys/un.h
16020 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16021 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16022 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16023 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16024 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16025 echo $ECHO_N "(cached
) $ECHO_C" >&6
16027 ac_res=`eval echo '${'$as_ac_Header'}'`
16028 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16029 echo "${ECHO_T}$ac_res" >&6; }
16031 # Is the header compilable?
16032 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16033 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16034 cat >conftest.$ac_ext <<_ACEOF
16037 cat confdefs.h >>conftest.$ac_ext
16038 cat >>conftest.$ac_ext <<_ACEOF
16039 /* end confdefs.h. */
16040 $ac_includes_default
16041 #include <$ac_header>
16043 rm -f conftest.$ac_objext
16044 if { (ac_try="$ac_compile"
16045 case "(($ac_try" in
16046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16047 *) ac_try_echo=$ac_try;;
16049 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16050 (eval "$ac_compile") 2>conftest.er1
16052 grep -v '^ *+' conftest.er1 >conftest.err
16054 cat conftest.err >&5
16055 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16056 (exit $ac_status); } && {
16057 test -z "$ac_c_werror_flag" ||
16058 test ! -s conftest.err
16059 } && test -s conftest.$ac_objext; then
16060 ac_header_compiler=yes
16062 echo "$as_me: failed program was
:" >&5
16063 sed 's/^/| /' conftest.$ac_ext >&5
16065 ac_header_compiler=no
16068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16069 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16070 echo "${ECHO_T}$ac_header_compiler" >&6; }
16072 # Is the header present?
16073 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16074 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16075 cat >conftest.$ac_ext <<_ACEOF
16078 cat confdefs.h >>conftest.$ac_ext
16079 cat >>conftest.$ac_ext <<_ACEOF
16080 /* end confdefs.h. */
16081 #include <$ac_header>
16083 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16084 case "(($ac_try" in
16085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16086 *) ac_try_echo=$ac_try;;
16088 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16089 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16091 grep -v '^ *+' conftest.er1 >conftest.err
16093 cat conftest.err >&5
16094 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16095 (exit $ac_status); } >/dev/null && {
16096 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16097 test ! -s conftest.err
16099 ac_header_preproc=yes
16101 echo "$as_me: failed program was
:" >&5
16102 sed 's/^/| /' conftest.$ac_ext >&5
16104 ac_header_preproc=no
16107 rm -f conftest.err conftest.$ac_ext
16108 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16109 echo "${ECHO_T}$ac_header_preproc" >&6; }
16111 # So? What about this header?
16112 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16114 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16115 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16116 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16117 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16118 ac_header_preproc=yes
16121 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16122 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16123 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16124 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16125 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16126 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16127 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16128 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16129 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16130 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16131 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16132 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16136 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16137 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16138 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16139 echo $ECHO_N "(cached
) $ECHO_C" >&6
16141 eval "$as_ac_Header=\
$ac_header_preproc"
16143 ac_res=`eval echo '${'$as_ac_Header'}'`
16144 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16145 echo "${ECHO_T}$ac_res" >&6; }
16148 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16149 cat >>confdefs.h <<_ACEOF
16150 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16162 for ac_header in $ac_header_list
16164 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16165 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16166 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16167 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16168 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16169 echo $ECHO_N "(cached
) $ECHO_C" >&6
16171 ac_res=`eval echo '${'$as_ac_Header'}'`
16172 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16173 echo "${ECHO_T}$ac_res" >&6; }
16175 # Is the header compilable?
16176 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16177 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16178 cat >conftest.$ac_ext <<_ACEOF
16181 cat confdefs.h >>conftest.$ac_ext
16182 cat >>conftest.$ac_ext <<_ACEOF
16183 /* end confdefs.h. */
16184 $ac_includes_default
16185 #include <$ac_header>
16187 rm -f conftest.$ac_objext
16188 if { (ac_try="$ac_compile"
16189 case "(($ac_try" in
16190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16191 *) ac_try_echo=$ac_try;;
16193 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16194 (eval "$ac_compile") 2>conftest.er1
16196 grep -v '^ *+' conftest.er1 >conftest.err
16198 cat conftest.err >&5
16199 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16200 (exit $ac_status); } && {
16201 test -z "$ac_c_werror_flag" ||
16202 test ! -s conftest.err
16203 } && test -s conftest.$ac_objext; then
16204 ac_header_compiler=yes
16206 echo "$as_me: failed program was
:" >&5
16207 sed 's/^/| /' conftest.$ac_ext >&5
16209 ac_header_compiler=no
16212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16213 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16214 echo "${ECHO_T}$ac_header_compiler" >&6; }
16216 # Is the header present?
16217 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16218 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16219 cat >conftest.$ac_ext <<_ACEOF
16222 cat confdefs.h >>conftest.$ac_ext
16223 cat >>conftest.$ac_ext <<_ACEOF
16224 /* end confdefs.h. */
16225 #include <$ac_header>
16227 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16228 case "(($ac_try" in
16229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16230 *) ac_try_echo=$ac_try;;
16232 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16233 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16235 grep -v '^ *+' conftest.er1 >conftest.err
16237 cat conftest.err >&5
16238 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16239 (exit $ac_status); } >/dev/null && {
16240 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16241 test ! -s conftest.err
16243 ac_header_preproc=yes
16245 echo "$as_me: failed program was
:" >&5
16246 sed 's/^/| /' conftest.$ac_ext >&5
16248 ac_header_preproc=no
16251 rm -f conftest.err conftest.$ac_ext
16252 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16253 echo "${ECHO_T}$ac_header_preproc" >&6; }
16255 # So? What about this header?
16256 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16258 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16259 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16260 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16261 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16262 ac_header_preproc=yes
16265 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16266 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16267 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16268 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16269 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16270 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16271 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16272 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16273 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16274 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16275 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16276 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16280 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16281 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16282 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16283 echo $ECHO_N "(cached
) $ECHO_C" >&6
16285 eval "$as_ac_Header=\
$ac_header_preproc"
16287 ac_res=`eval echo '${'$as_ac_Header'}'`
16288 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16289 echo "${ECHO_T}$ac_res" >&6; }
16292 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16293 cat >>confdefs.h <<_ACEOF
16294 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16309 for ac_func in $ac_func_list
16311 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16312 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16313 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16314 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16315 echo $ECHO_N "(cached
) $ECHO_C" >&6
16317 cat >conftest.$ac_ext <<_ACEOF
16320 cat confdefs.h >>conftest.$ac_ext
16321 cat >>conftest.$ac_ext <<_ACEOF
16322 /* end confdefs.h. */
16323 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16324 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16325 #define $ac_func innocuous_$ac_func
16327 /* System header to define __stub macros and hopefully few prototypes,
16328 which can conflict with char $ac_func (); below.
16329 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16330 <limits.h> exists even on freestanding compilers. */
16333 # include <limits.h>
16335 # include <assert.h>
16340 /* Override any GCC internal prototype to avoid an error.
16341 Use char because int might match the return type of a GCC
16342 builtin and then its argument prototype would still apply. */
16347 /* The GNU C library defines this for functions which it implements
16348 to always fail with ENOSYS. Some functions are actually named
16349 something starting with __ and the normal name is an alias. */
16350 #if defined __stub_$ac_func || defined __stub___$ac_func
16357 return $ac_func ();
16362 rm -f conftest.$ac_objext conftest$ac_exeext
16363 if { (ac_try="$ac_link"
16364 case "(($ac_try" in
16365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16366 *) ac_try_echo=$ac_try;;
16368 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16369 (eval "$ac_link") 2>conftest.er1
16371 grep -v '^ *+' conftest.er1 >conftest.err
16373 cat conftest.err >&5
16374 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16375 (exit $ac_status); } && {
16376 test -z "$ac_c_werror_flag" ||
16377 test ! -s conftest.err
16378 } && test -s conftest$ac_exeext &&
16379 $as_test_x conftest$ac_exeext; then
16380 eval "$as_ac_var=yes"
16382 echo "$as_me: failed program was
:" >&5
16383 sed 's/^/| /' conftest.$ac_ext >&5
16385 eval "$as_ac_var=no
"
16388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16389 conftest$ac_exeext conftest.$ac_ext
16391 ac_res=`eval echo '${'$as_ac_var'}'`
16392 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16393 echo "${ECHO_T}$ac_res" >&6; }
16394 if test `eval echo '${'$as_ac_var'}'` = yes; then
16395 cat >>confdefs.h <<_ACEOF
16396 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16418 { echo "$as_me:$LINENO: checking
for working mktime
" >&5
16419 echo $ECHO_N "checking
for working mktime...
$ECHO_C" >&6; }
16420 if test "${ac_cv_func_working_mktime+set}" = set; then
16421 echo $ECHO_N "(cached
) $ECHO_C" >&6
16423 if test "$cross_compiling" = yes; then
16424 ac_cv_func_working_mktime=no
16426 cat >conftest.$ac_ext <<_ACEOF
16429 cat confdefs.h >>conftest.$ac_ext
16430 cat >>conftest.$ac_ext <<_ACEOF
16431 /* end confdefs.h. */
16432 /* Test program from Paul Eggert and Tony Leneis. */
16433 #ifdef TIME_WITH_SYS_TIME
16434 # include <sys/time.h>
16437 # ifdef HAVE_SYS_TIME_H
16438 # include <sys/time.h>
16444 #include <stdlib.h>
16446 #ifdef HAVE_UNISTD_H
16447 # include <unistd.h>
16451 # define alarm(X) /* empty */
16454 /* Work around redefinition to rpl_putenv by other config tests. */
16457 static time_t time_t_max;
16458 static time_t time_t_min;
16460 /* Values we'll use to set the TZ environment variable. */
16461 static char *tz_strings[] = {
16462 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
16463 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
16465 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16467 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16468 Based on a problem report from Andreas Jaeger. */
16470 spring_forward_gap ()
16472 /* glibc (up to about 1998-10-07) failed this test. */
16475 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16476 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16477 on systems that don't support the Olson extension, or don't have the
16478 full zoneinfo tables installed. */
16479 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16488 return mktime (&tm) != (time_t) -1;
16496 return ! (lt = localtime (&now)) || mktime (lt) == now;
16503 return (mktime_test1 (now)
16504 && mktime_test1 ((time_t) (time_t_max - now))
16505 && mktime_test1 ((time_t) (time_t_min + now)));
16511 /* Based on code from Ariel Faigon. */
16521 return tm.tm_mon == 2 && tm.tm_mday == 31;
16530 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16531 now = mktime (&tm);
16532 if (now != (time_t) -1)
16534 struct tm *lt = localtime (&now);
16536 && lt->tm_year == tm.tm_year
16537 && lt->tm_mon == tm.tm_mon
16538 && lt->tm_mday == tm.tm_mday
16539 && lt->tm_hour == tm.tm_hour
16540 && lt->tm_min == tm.tm_min
16541 && lt->tm_sec == tm.tm_sec
16542 && lt->tm_yday == tm.tm_yday
16543 && lt->tm_wday == tm.tm_wday
16544 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16545 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16554 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16555 ignoring leap seconds. */
16556 unsigned long int answer = 2527315200UL;
16560 tm.tm_year = 2050 - 1900;
16563 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16566 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16567 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16568 on systems that don't support the Olson extension, or don't have the
16569 full zoneinfo tables installed. */
16570 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16574 /* Check that the result is either a failure, or close enough
16575 to the correct answer that we can assume the discrepancy is
16576 due to leap seconds. */
16577 return (t == (time_t) -1
16578 || (0 < t && answer - 120 <= t && t <= answer + 120));
16587 /* This test makes some buggy mktime implementations loop.
16588 Give up after 60 seconds; a mktime slower than that
16589 isn't worth using anyway. */
16592 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16595 if ((time_t) -1 < 0)
16596 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16598 delta = time_t_max / 997; /* a suitable prime number */
16599 for (i = 0; i < N_STRINGS; i++)
16602 putenv (tz_strings[i]);
16604 for (t = 0; t <= time_t_max - delta; t += delta)
16605 if (! mktime_test (t))
16607 if (! (mktime_test ((time_t) 1)
16608 && mktime_test ((time_t) (60 * 60))
16609 && mktime_test ((time_t) (60 * 60 * 24))))
16612 for (j = 1; 0 < j; j *= 2)
16613 if (! bigtime_test (j))
16615 if (! bigtime_test (j - 1))
16618 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16621 rm -f conftest$ac_exeext
16622 if { (ac_try="$ac_link"
16623 case "(($ac_try" in
16624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16625 *) ac_try_echo=$ac_try;;
16627 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16628 (eval "$ac_link") 2>&5
16630 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16631 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16632 { (case "(($ac_try" in
16633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16634 *) ac_try_echo=$ac_try;;
16636 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16637 (eval "$ac_try") 2>&5
16639 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16640 (exit $ac_status); }; }; then
16641 ac_cv_func_working_mktime=yes
16643 echo "$as_me: program exited with status
$ac_status" >&5
16644 echo "$as_me: failed program was
:" >&5
16645 sed 's/^/| /' conftest.$ac_ext >&5
16647 ( exit $ac_status )
16648 ac_cv_func_working_mktime=no
16650 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16655 { echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
16656 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16657 if test $ac_cv_func_working_mktime = no; then
16658 case " $LIBOBJS " in
16659 *" mktime.
$ac_objext "* ) ;;
16660 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
16666 if test "$ac_cv_func_working_mktime" = no; then
16668 cat >>confdefs.h <<\_ACEOF
16669 #define BROKEN_MKTIME 1
16674 ac_have_func=no # yes means we've found a way to get the load average.
16676 # Make sure getloadavg.c is where it belongs, at configure-time.
16677 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
16678 { { echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
16679 echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
16680 { (exit 1); exit 1; }; }
16684 # Check for getloadavg, but be sure not to touch the cache variable.
16685 ({ echo "$as_me:$LINENO: checking
for getloadavg
" >&5
16686 echo $ECHO_N "checking
for getloadavg...
$ECHO_C" >&6; }
16687 if test "${ac_cv_func_getloadavg+set}" = set; then
16688 echo $ECHO_N "(cached
) $ECHO_C" >&6
16690 cat >conftest.$ac_ext <<_ACEOF
16693 cat confdefs.h >>conftest.$ac_ext
16694 cat >>conftest.$ac_ext <<_ACEOF
16695 /* end confdefs.h. */
16696 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16697 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16698 #define getloadavg innocuous_getloadavg
16700 /* System header to define __stub macros and hopefully few prototypes,
16701 which can conflict with char getloadavg (); below.
16702 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16703 <limits.h> exists even on freestanding compilers. */
16706 # include <limits.h>
16708 # include <assert.h>
16713 /* Override any GCC internal prototype to avoid an error.
16714 Use char because int might match the return type of a GCC
16715 builtin and then its argument prototype would still apply. */
16719 char getloadavg ();
16720 /* The GNU C library defines this for functions which it implements
16721 to always fail with ENOSYS. Some functions are actually named
16722 something starting with __ and the normal name is an alias. */
16723 #if defined __stub_getloadavg || defined __stub___getloadavg
16730 return getloadavg ();
16735 rm -f conftest.$ac_objext conftest$ac_exeext
16736 if { (ac_try="$ac_link"
16737 case "(($ac_try" in
16738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16739 *) ac_try_echo=$ac_try;;
16741 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16742 (eval "$ac_link") 2>conftest.er1
16744 grep -v '^ *+' conftest.er1 >conftest.err
16746 cat conftest.err >&5
16747 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16748 (exit $ac_status); } && {
16749 test -z "$ac_c_werror_flag" ||
16750 test ! -s conftest.err
16751 } && test -s conftest$ac_exeext &&
16752 $as_test_x conftest$ac_exeext; then
16753 ac_cv_func_getloadavg=yes
16755 echo "$as_me: failed program was
:" >&5
16756 sed 's/^/| /' conftest.$ac_ext >&5
16758 ac_cv_func_getloadavg=no
16761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16762 conftest$ac_exeext conftest.$ac_ext
16764 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
16765 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16766 if test $ac_cv_func_getloadavg = yes; then
16771 ) && ac_have_func=yes
16773 # On HPUX9, an unprivileged user can get load averages through this function.
16775 for ac_func in pstat_getdynamic
16777 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16778 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16779 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16780 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16781 echo $ECHO_N "(cached
) $ECHO_C" >&6
16783 cat >conftest.$ac_ext <<_ACEOF
16786 cat confdefs.h >>conftest.$ac_ext
16787 cat >>conftest.$ac_ext <<_ACEOF
16788 /* end confdefs.h. */
16789 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16790 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16791 #define $ac_func innocuous_$ac_func
16793 /* System header to define __stub macros and hopefully few prototypes,
16794 which can conflict with char $ac_func (); below.
16795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16796 <limits.h> exists even on freestanding compilers. */
16799 # include <limits.h>
16801 # include <assert.h>
16806 /* Override any GCC internal prototype to avoid an error.
16807 Use char because int might match the return type of a GCC
16808 builtin and then its argument prototype would still apply. */
16813 /* The GNU C library defines this for functions which it implements
16814 to always fail with ENOSYS. Some functions are actually named
16815 something starting with __ and the normal name is an alias. */
16816 #if defined __stub_$ac_func || defined __stub___$ac_func
16823 return $ac_func ();
16828 rm -f conftest.$ac_objext conftest$ac_exeext
16829 if { (ac_try="$ac_link"
16830 case "(($ac_try" in
16831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16832 *) ac_try_echo=$ac_try;;
16834 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16835 (eval "$ac_link") 2>conftest.er1
16837 grep -v '^ *+' conftest.er1 >conftest.err
16839 cat conftest.err >&5
16840 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16841 (exit $ac_status); } && {
16842 test -z "$ac_c_werror_flag" ||
16843 test ! -s conftest.err
16844 } && test -s conftest$ac_exeext &&
16845 $as_test_x conftest$ac_exeext; then
16846 eval "$as_ac_var=yes"
16848 echo "$as_me: failed program was
:" >&5
16849 sed 's/^/| /' conftest.$ac_ext >&5
16851 eval "$as_ac_var=no
"
16854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16855 conftest$ac_exeext conftest.$ac_ext
16857 ac_res=`eval echo '${'$as_ac_var'}'`
16858 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16859 echo "${ECHO_T}$ac_res" >&6; }
16860 if test `eval echo '${'$as_ac_var'}'` = yes; then
16861 cat >>confdefs.h <<_ACEOF
16862 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16869 # Solaris has libkstat which does not require root.
16871 { echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
16872 echo $ECHO_N "checking
for kstat_open
in -lkstat...
$ECHO_C" >&6; }
16873 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16874 echo $ECHO_N "(cached
) $ECHO_C" >&6
16876 ac_check_lib_save_LIBS=$LIBS
16877 LIBS="-lkstat $LIBS"
16878 cat >conftest.$ac_ext <<_ACEOF
16881 cat confdefs.h >>conftest.$ac_ext
16882 cat >>conftest.$ac_ext <<_ACEOF
16883 /* end confdefs.h. */
16885 /* Override any GCC internal prototype to avoid an error.
16886 Use char because int might match the return type of a GCC
16887 builtin and then its argument prototype would still apply. */
16891 char kstat_open ();
16895 return kstat_open ();
16900 rm -f conftest.$ac_objext conftest$ac_exeext
16901 if { (ac_try="$ac_link"
16902 case "(($ac_try" in
16903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16904 *) ac_try_echo=$ac_try;;
16906 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16907 (eval "$ac_link") 2>conftest.er1
16909 grep -v '^ *+' conftest.er1 >conftest.err
16911 cat conftest.err >&5
16912 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16913 (exit $ac_status); } && {
16914 test -z "$ac_c_werror_flag" ||
16915 test ! -s conftest.err
16916 } && test -s conftest$ac_exeext &&
16917 $as_test_x conftest$ac_exeext; then
16918 ac_cv_lib_kstat_kstat_open=yes
16920 echo "$as_me: failed program was
:" >&5
16921 sed 's/^/| /' conftest.$ac_ext >&5
16923 ac_cv_lib_kstat_kstat_open=no
16926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16927 conftest$ac_exeext conftest.$ac_ext
16928 LIBS=$ac_check_lib_save_LIBS
16930 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
16931 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16932 if test $ac_cv_lib_kstat_kstat_open = yes; then
16933 cat >>confdefs.h <<_ACEOF
16934 #define HAVE_LIBKSTAT 1
16937 LIBS="-lkstat $LIBS"
16941 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
16943 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16944 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16945 # to get the right answer into the cache.
16946 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16947 if test $ac_have_func = no; then
16948 { echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
16949 echo $ECHO_N "checking
for elf_begin
in -lelf...
$ECHO_C" >&6; }
16950 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
16951 echo $ECHO_N "(cached
) $ECHO_C" >&6
16953 ac_check_lib_save_LIBS=$LIBS
16955 cat >conftest.$ac_ext <<_ACEOF
16958 cat confdefs.h >>conftest.$ac_ext
16959 cat >>conftest.$ac_ext <<_ACEOF
16960 /* end confdefs.h. */
16962 /* Override any GCC internal prototype to avoid an error.
16963 Use char because int might match the return type of a GCC
16964 builtin and then its argument prototype would still apply. */
16972 return elf_begin ();
16977 rm -f conftest.$ac_objext conftest$ac_exeext
16978 if { (ac_try="$ac_link"
16979 case "(($ac_try" in
16980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16981 *) ac_try_echo=$ac_try;;
16983 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16984 (eval "$ac_link") 2>conftest.er1
16986 grep -v '^ *+' conftest.er1 >conftest.err
16988 cat conftest.err >&5
16989 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16990 (exit $ac_status); } && {
16991 test -z "$ac_c_werror_flag" ||
16992 test ! -s conftest.err
16993 } && test -s conftest$ac_exeext &&
16994 $as_test_x conftest$ac_exeext; then
16995 ac_cv_lib_elf_elf_begin=yes
16997 echo "$as_me: failed program was
:" >&5
16998 sed 's/^/| /' conftest.$ac_ext >&5
17000 ac_cv_lib_elf_elf_begin=no
17003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17004 conftest$ac_exeext conftest.$ac_ext
17005 LIBS=$ac_check_lib_save_LIBS
17007 { echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
17008 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17009 if test $ac_cv_lib_elf_elf_begin = yes; then
17014 if test $ac_have_func = no; then
17015 { echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
17016 echo $ECHO_N "checking
for kvm_open
in -lkvm...
$ECHO_C" >&6; }
17017 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17018 echo $ECHO_N "(cached
) $ECHO_C" >&6
17020 ac_check_lib_save_LIBS=$LIBS
17022 cat >conftest.$ac_ext <<_ACEOF
17025 cat confdefs.h >>conftest.$ac_ext
17026 cat >>conftest.$ac_ext <<_ACEOF
17027 /* end confdefs.h. */
17029 /* Override any GCC internal prototype to avoid an error.
17030 Use char because int might match the return type of a GCC
17031 builtin and then its argument prototype would still apply. */
17039 return kvm_open ();
17044 rm -f conftest.$ac_objext conftest$ac_exeext
17045 if { (ac_try="$ac_link"
17046 case "(($ac_try" in
17047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17048 *) ac_try_echo=$ac_try;;
17050 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17051 (eval "$ac_link") 2>conftest.er1
17053 grep -v '^ *+' conftest.er1 >conftest.err
17055 cat conftest.err >&5
17056 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17057 (exit $ac_status); } && {
17058 test -z "$ac_c_werror_flag" ||
17059 test ! -s conftest.err
17060 } && test -s conftest$ac_exeext &&
17061 $as_test_x conftest$ac_exeext; then
17062 ac_cv_lib_kvm_kvm_open=yes
17064 echo "$as_me: failed program was
:" >&5
17065 sed 's/^/| /' conftest.$ac_ext >&5
17067 ac_cv_lib_kvm_kvm_open=no
17070 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17071 conftest$ac_exeext conftest.$ac_ext
17072 LIBS=$ac_check_lib_save_LIBS
17074 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
17075 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17076 if test $ac_cv_lib_kvm_kvm_open = yes; then
17080 # Check for the 4.4BSD definition of getloadavg.
17081 { echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
17082 echo $ECHO_N "checking
for getloadavg
in -lutil...
$ECHO_C" >&6; }
17083 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17084 echo $ECHO_N "(cached
) $ECHO_C" >&6
17086 ac_check_lib_save_LIBS=$LIBS
17087 LIBS="-lutil $LIBS"
17088 cat >conftest.$ac_ext <<_ACEOF
17091 cat confdefs.h >>conftest.$ac_ext
17092 cat >>conftest.$ac_ext <<_ACEOF
17093 /* end confdefs.h. */
17095 /* Override any GCC internal prototype to avoid an error.
17096 Use char because int might match the return type of a GCC
17097 builtin and then its argument prototype would still apply. */
17101 char getloadavg ();
17105 return getloadavg ();
17110 rm -f conftest.$ac_objext conftest$ac_exeext
17111 if { (ac_try="$ac_link"
17112 case "(($ac_try" in
17113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17114 *) ac_try_echo=$ac_try;;
17116 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17117 (eval "$ac_link") 2>conftest.er1
17119 grep -v '^ *+' conftest.er1 >conftest.err
17121 cat conftest.err >&5
17122 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17123 (exit $ac_status); } && {
17124 test -z "$ac_c_werror_flag" ||
17125 test ! -s conftest.err
17126 } && test -s conftest$ac_exeext &&
17127 $as_test_x conftest$ac_exeext; then
17128 ac_cv_lib_util_getloadavg=yes
17130 echo "$as_me: failed program was
:" >&5
17131 sed 's/^/| /' conftest.$ac_ext >&5
17133 ac_cv_lib_util_getloadavg=no
17136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17137 conftest$ac_exeext conftest.$ac_ext
17138 LIBS=$ac_check_lib_save_LIBS
17140 { echo "$as_me:$LINENO: result
: $ac_cv_lib_util_getloadavg" >&5
17141 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17142 if test $ac_cv_lib_util_getloadavg = yes; then
17143 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17148 if test $ac_have_func = no; then
17149 # There is a commonly available library for RS/6000 AIX.
17150 # Since it is not a standard part of AIX, it might be installed locally.
17151 ac_getloadavg_LIBS=$LIBS
17152 LIBS="-L/usr
/local
/lib
$LIBS"
17153 { echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
17154 echo $ECHO_N "checking
for getloadavg
in -lgetloadavg...
$ECHO_C" >&6; }
17155 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17156 echo $ECHO_N "(cached
) $ECHO_C" >&6
17158 ac_check_lib_save_LIBS=$LIBS
17159 LIBS="-lgetloadavg $LIBS"
17160 cat >conftest.$ac_ext <<_ACEOF
17163 cat confdefs.h >>conftest.$ac_ext
17164 cat >>conftest.$ac_ext <<_ACEOF
17165 /* end confdefs.h. */
17167 /* Override any GCC internal prototype to avoid an error.
17168 Use char because int might match the return type of a GCC
17169 builtin and then its argument prototype would still apply. */
17173 char getloadavg ();
17177 return getloadavg ();
17182 rm -f conftest.$ac_objext conftest$ac_exeext
17183 if { (ac_try="$ac_link"
17184 case "(($ac_try" in
17185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17186 *) ac_try_echo=$ac_try;;
17188 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17189 (eval "$ac_link") 2>conftest.er1
17191 grep -v '^ *+' conftest.er1 >conftest.err
17193 cat conftest.err >&5
17194 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17195 (exit $ac_status); } && {
17196 test -z "$ac_c_werror_flag" ||
17197 test ! -s conftest.err
17198 } && test -s conftest$ac_exeext &&
17199 $as_test_x conftest$ac_exeext; then
17200 ac_cv_lib_getloadavg_getloadavg=yes
17202 echo "$as_me: failed program was
:" >&5
17203 sed 's/^/| /' conftest.$ac_ext >&5
17205 ac_cv_lib_getloadavg_getloadavg=no
17208 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17209 conftest$ac_exeext conftest.$ac_ext
17210 LIBS=$ac_check_lib_save_LIBS
17212 { echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
17213 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17214 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17215 LIBS="-lgetloadavg $LIBS"
17217 LIBS=$ac_getloadavg_LIBS
17222 # Make sure it is really in the library, if we think we found it,
17223 # otherwise set up the replacement function.
17225 for ac_func in getloadavg
17227 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17228 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17229 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17230 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17231 echo $ECHO_N "(cached
) $ECHO_C" >&6
17233 cat >conftest.$ac_ext <<_ACEOF
17236 cat confdefs.h >>conftest.$ac_ext
17237 cat >>conftest.$ac_ext <<_ACEOF
17238 /* end confdefs.h. */
17239 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17240 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17241 #define $ac_func innocuous_$ac_func
17243 /* System header to define __stub macros and hopefully few prototypes,
17244 which can conflict with char $ac_func (); below.
17245 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17246 <limits.h> exists even on freestanding compilers. */
17249 # include <limits.h>
17251 # include <assert.h>
17256 /* Override any GCC internal prototype to avoid an error.
17257 Use char because int might match the return type of a GCC
17258 builtin and then its argument prototype would still apply. */
17263 /* The GNU C library defines this for functions which it implements
17264 to always fail with ENOSYS. Some functions are actually named
17265 something starting with __ and the normal name is an alias. */
17266 #if defined __stub_$ac_func || defined __stub___$ac_func
17273 return $ac_func ();
17278 rm -f conftest.$ac_objext conftest$ac_exeext
17279 if { (ac_try="$ac_link"
17280 case "(($ac_try" in
17281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17282 *) ac_try_echo=$ac_try;;
17284 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17285 (eval "$ac_link") 2>conftest.er1
17287 grep -v '^ *+' conftest.er1 >conftest.err
17289 cat conftest.err >&5
17290 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17291 (exit $ac_status); } && {
17292 test -z "$ac_c_werror_flag" ||
17293 test ! -s conftest.err
17294 } && test -s conftest$ac_exeext &&
17295 $as_test_x conftest$ac_exeext; then
17296 eval "$as_ac_var=yes"
17298 echo "$as_me: failed program was
:" >&5
17299 sed 's/^/| /' conftest.$ac_ext >&5
17301 eval "$as_ac_var=no
"
17304 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17305 conftest$ac_exeext conftest.$ac_ext
17307 ac_res=`eval echo '${'$as_ac_var'}'`
17308 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17309 echo "${ECHO_T}$ac_res" >&6; }
17310 if test `eval echo '${'$as_ac_var'}'` = yes; then
17311 cat >>confdefs.h <<_ACEOF
17312 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17316 case " $LIBOBJS " in
17317 *" getloadavg.
$ac_objext "* ) ;;
17318 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
17323 cat >>confdefs.h <<\_ACEOF
17324 #define C_GETLOADAVG 1
17327 # Figure out what our getloadavg.c needs.
17329 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17330 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17331 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17332 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17333 echo $ECHO_N "(cached
) $ECHO_C" >&6
17335 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17336 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17338 # Is the header compilable?
17339 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
17340 echo $ECHO_N "checking sys
/dg_sys_info.h usability...
$ECHO_C" >&6; }
17341 cat >conftest.$ac_ext <<_ACEOF
17344 cat confdefs.h >>conftest.$ac_ext
17345 cat >>conftest.$ac_ext <<_ACEOF
17346 /* end confdefs.h. */
17347 $ac_includes_default
17348 #include <sys/dg_sys_info.h>
17350 rm -f conftest.$ac_objext
17351 if { (ac_try="$ac_compile"
17352 case "(($ac_try" in
17353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17354 *) ac_try_echo=$ac_try;;
17356 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17357 (eval "$ac_compile") 2>conftest.er1
17359 grep -v '^ *+' conftest.er1 >conftest.err
17361 cat conftest.err >&5
17362 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17363 (exit $ac_status); } && {
17364 test -z "$ac_c_werror_flag" ||
17365 test ! -s conftest.err
17366 } && test -s conftest.$ac_objext; then
17367 ac_header_compiler=yes
17369 echo "$as_me: failed program was
:" >&5
17370 sed 's/^/| /' conftest.$ac_ext >&5
17372 ac_header_compiler=no
17375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17376 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17377 echo "${ECHO_T}$ac_header_compiler" >&6; }
17379 # Is the header present?
17380 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
17381 echo $ECHO_N "checking sys
/dg_sys_info.h presence...
$ECHO_C" >&6; }
17382 cat >conftest.$ac_ext <<_ACEOF
17385 cat confdefs.h >>conftest.$ac_ext
17386 cat >>conftest.$ac_ext <<_ACEOF
17387 /* end confdefs.h. */
17388 #include <sys/dg_sys_info.h>
17390 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17391 case "(($ac_try" in
17392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17393 *) ac_try_echo=$ac_try;;
17395 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17396 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17398 grep -v '^ *+' conftest.er1 >conftest.err
17400 cat conftest.err >&5
17401 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17402 (exit $ac_status); } >/dev/null && {
17403 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17404 test ! -s conftest.err
17406 ac_header_preproc=yes
17408 echo "$as_me: failed program was
:" >&5
17409 sed 's/^/| /' conftest.$ac_ext >&5
17411 ac_header_preproc=no
17414 rm -f conftest.err conftest.$ac_ext
17415 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17416 echo "${ECHO_T}$ac_header_preproc" >&6; }
17418 # So? What about this header?
17419 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17421 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17422 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17423 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
17424 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
17425 ac_header_preproc=yes
17428 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
17429 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
17430 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
17431 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
17432 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
17433 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
17434 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17435 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17436 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
17437 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
17438 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
17439 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
17443 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17444 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17445 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17446 echo $ECHO_N "(cached
) $ECHO_C" >&6
17448 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17450 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17451 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17454 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17457 cat >>confdefs.h <<\_ACEOF
17462 { echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
17463 echo $ECHO_N "checking
for dg_sys_info
in -ldgc...
$ECHO_C" >&6; }
17464 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17465 echo $ECHO_N "(cached
) $ECHO_C" >&6
17467 ac_check_lib_save_LIBS=$LIBS
17469 cat >conftest.$ac_ext <<_ACEOF
17472 cat confdefs.h >>conftest.$ac_ext
17473 cat >>conftest.$ac_ext <<_ACEOF
17474 /* end confdefs.h. */
17476 /* Override any GCC internal prototype to avoid an error.
17477 Use char because int might match the return type of a GCC
17478 builtin and then its argument prototype would still apply. */
17482 char dg_sys_info ();
17486 return dg_sys_info ();
17491 rm -f conftest.$ac_objext conftest$ac_exeext
17492 if { (ac_try="$ac_link"
17493 case "(($ac_try" in
17494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17495 *) ac_try_echo=$ac_try;;
17497 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17498 (eval "$ac_link") 2>conftest.er1
17500 grep -v '^ *+' conftest.er1 >conftest.err
17502 cat conftest.err >&5
17503 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17504 (exit $ac_status); } && {
17505 test -z "$ac_c_werror_flag" ||
17506 test ! -s conftest.err
17507 } && test -s conftest$ac_exeext &&
17508 $as_test_x conftest$ac_exeext; then
17509 ac_cv_lib_dgc_dg_sys_info=yes
17511 echo "$as_me: failed program was
:" >&5
17512 sed 's/^/| /' conftest.$ac_ext >&5
17514 ac_cv_lib_dgc_dg_sys_info=no
17517 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17518 conftest$ac_exeext conftest.$ac_ext
17519 LIBS=$ac_check_lib_save_LIBS
17521 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
17522 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17523 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17524 cat >>confdefs.h <<_ACEOF
17525 #define HAVE_LIBDGC 1
17536 if test "${ac_cv_header_locale_h+set}" = set; then
17537 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17538 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17539 if test "${ac_cv_header_locale_h+set}" = set; then
17540 echo $ECHO_N "(cached
) $ECHO_C" >&6
17542 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17543 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17545 # Is the header compilable?
17546 { echo "$as_me:$LINENO: checking locale.h usability
" >&5
17547 echo $ECHO_N "checking locale.h usability...
$ECHO_C" >&6; }
17548 cat >conftest.$ac_ext <<_ACEOF
17551 cat confdefs.h >>conftest.$ac_ext
17552 cat >>conftest.$ac_ext <<_ACEOF
17553 /* end confdefs.h. */
17554 $ac_includes_default
17555 #include <locale.h>
17557 rm -f conftest.$ac_objext
17558 if { (ac_try="$ac_compile"
17559 case "(($ac_try" in
17560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17561 *) ac_try_echo=$ac_try;;
17563 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17564 (eval "$ac_compile") 2>conftest.er1
17566 grep -v '^ *+' conftest.er1 >conftest.err
17568 cat conftest.err >&5
17569 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17570 (exit $ac_status); } && {
17571 test -z "$ac_c_werror_flag" ||
17572 test ! -s conftest.err
17573 } && test -s conftest.$ac_objext; then
17574 ac_header_compiler=yes
17576 echo "$as_me: failed program was
:" >&5
17577 sed 's/^/| /' conftest.$ac_ext >&5
17579 ac_header_compiler=no
17582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17583 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17584 echo "${ECHO_T}$ac_header_compiler" >&6; }
17586 # Is the header present?
17587 { echo "$as_me:$LINENO: checking locale.h presence
" >&5
17588 echo $ECHO_N "checking locale.h presence...
$ECHO_C" >&6; }
17589 cat >conftest.$ac_ext <<_ACEOF
17592 cat confdefs.h >>conftest.$ac_ext
17593 cat >>conftest.$ac_ext <<_ACEOF
17594 /* end confdefs.h. */
17595 #include <locale.h>
17597 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17598 case "(($ac_try" in
17599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17600 *) ac_try_echo=$ac_try;;
17602 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17603 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17605 grep -v '^ *+' conftest.er1 >conftest.err
17607 cat conftest.err >&5
17608 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17609 (exit $ac_status); } >/dev/null && {
17610 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17611 test ! -s conftest.err
17613 ac_header_preproc=yes
17615 echo "$as_me: failed program was
:" >&5
17616 sed 's/^/| /' conftest.$ac_ext >&5
17618 ac_header_preproc=no
17621 rm -f conftest.err conftest.$ac_ext
17622 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17623 echo "${ECHO_T}$ac_header_preproc" >&6; }
17625 # So? What about this header?
17626 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17628 { echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17629 echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17630 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
17631 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
17632 ac_header_preproc=yes
17635 { echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
17636 echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
17637 { echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
17638 echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
17639 { echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
17640 echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
17641 { echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17642 echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17643 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
17644 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
17645 { echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
17646 echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
17650 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17651 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17652 if test "${ac_cv_header_locale_h+set}" = set; then
17653 echo $ECHO_N "(cached
) $ECHO_C" >&6
17655 ac_cv_header_locale_h=$ac_header_preproc
17657 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17658 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17664 for ac_func in setlocale
17666 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17667 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17668 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17669 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17670 echo $ECHO_N "(cached
) $ECHO_C" >&6
17672 cat >conftest.$ac_ext <<_ACEOF
17675 cat confdefs.h >>conftest.$ac_ext
17676 cat >>conftest.$ac_ext <<_ACEOF
17677 /* end confdefs.h. */
17678 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17679 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17680 #define $ac_func innocuous_$ac_func
17682 /* System header to define __stub macros and hopefully few prototypes,
17683 which can conflict with char $ac_func (); below.
17684 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17685 <limits.h> exists even on freestanding compilers. */
17688 # include <limits.h>
17690 # include <assert.h>
17695 /* Override any GCC internal prototype to avoid an error.
17696 Use char because int might match the return type of a GCC
17697 builtin and then its argument prototype would still apply. */
17702 /* The GNU C library defines this for functions which it implements
17703 to always fail with ENOSYS. Some functions are actually named
17704 something starting with __ and the normal name is an alias. */
17705 #if defined __stub_$ac_func || defined __stub___$ac_func
17712 return $ac_func ();
17717 rm -f conftest.$ac_objext conftest$ac_exeext
17718 if { (ac_try="$ac_link"
17719 case "(($ac_try" in
17720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17721 *) ac_try_echo=$ac_try;;
17723 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17724 (eval "$ac_link") 2>conftest.er1
17726 grep -v '^ *+' conftest.er1 >conftest.err
17728 cat conftest.err >&5
17729 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17730 (exit $ac_status); } && {
17731 test -z "$ac_c_werror_flag" ||
17732 test ! -s conftest.err
17733 } && test -s conftest$ac_exeext &&
17734 $as_test_x conftest$ac_exeext; then
17735 eval "$as_ac_var=yes"
17737 echo "$as_me: failed program was
:" >&5
17738 sed 's/^/| /' conftest.$ac_ext >&5
17740 eval "$as_ac_var=no
"
17743 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17744 conftest$ac_exeext conftest.$ac_ext
17746 ac_res=`eval echo '${'$as_ac_var'}'`
17747 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17748 echo "${ECHO_T}$ac_res" >&6; }
17749 if test `eval echo '${'$as_ac_var'}'` = yes; then
17750 cat >>confdefs.h <<_ACEOF
17751 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17758 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17759 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17760 # Irix 4.0.5F has the header but not the library.
17761 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17764 cat >>confdefs.h <<\_ACEOF
17770 if test $ac_have_func = no; then
17771 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17772 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17773 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17774 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17775 echo $ECHO_N "(cached
) $ECHO_C" >&6
17777 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17778 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17780 # Is the header compilable?
17781 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
17782 echo $ECHO_N "checking inq_stats
/cpustats.h usability...
$ECHO_C" >&6; }
17783 cat >conftest.$ac_ext <<_ACEOF
17786 cat confdefs.h >>conftest.$ac_ext
17787 cat >>conftest.$ac_ext <<_ACEOF
17788 /* end confdefs.h. */
17789 $ac_includes_default
17790 #include <inq_stats/cpustats.h>
17792 rm -f conftest.$ac_objext
17793 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
17809 ac_header_compiler=yes
17811 echo "$as_me: failed program was
:" >&5
17812 sed 's/^/| /' conftest.$ac_ext >&5
17814 ac_header_compiler=no
17817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17818 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17819 echo "${ECHO_T}$ac_header_compiler" >&6; }
17821 # Is the header present?
17822 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
17823 echo $ECHO_N "checking inq_stats
/cpustats.h presence...
$ECHO_C" >&6; }
17824 cat >conftest.$ac_ext <<_ACEOF
17827 cat confdefs.h >>conftest.$ac_ext
17828 cat >>conftest.$ac_ext <<_ACEOF
17829 /* end confdefs.h. */
17830 #include <inq_stats/cpustats.h>
17832 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17833 case "(($ac_try" in
17834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17835 *) ac_try_echo=$ac_try;;
17837 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17838 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17840 grep -v '^ *+' conftest.er1 >conftest.err
17842 cat conftest.err >&5
17843 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17844 (exit $ac_status); } >/dev/null && {
17845 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17846 test ! -s conftest.err
17848 ac_header_preproc=yes
17850 echo "$as_me: failed program was
:" >&5
17851 sed 's/^/| /' conftest.$ac_ext >&5
17853 ac_header_preproc=no
17856 rm -f conftest.err conftest.$ac_ext
17857 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17858 echo "${ECHO_T}$ac_header_preproc" >&6; }
17860 # So? What about this header?
17861 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17863 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17864 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17865 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
17866 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
17867 ac_header_preproc=yes
17870 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
17871 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
17872 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
17873 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
17874 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
17875 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
17876 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17877 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17878 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
17879 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
17880 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
17881 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
17885 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17886 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17887 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17888 echo $ECHO_N "(cached
) $ECHO_C" >&6
17890 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17892 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17893 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17896 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17899 cat >>confdefs.h <<\_ACEOF
17904 cat >>confdefs.h <<\_ACEOF
17913 if test $ac_have_func = no; then
17914 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17915 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
17916 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
17917 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17918 echo $ECHO_N "(cached
) $ECHO_C" >&6
17920 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
17921 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17923 # Is the header compilable?
17924 { echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
17925 echo $ECHO_N "checking sys
/cpustats.h usability...
$ECHO_C" >&6; }
17926 cat >conftest.$ac_ext <<_ACEOF
17929 cat confdefs.h >>conftest.$ac_ext
17930 cat >>conftest.$ac_ext <<_ACEOF
17931 /* end confdefs.h. */
17932 $ac_includes_default
17933 #include <sys/cpustats.h>
17935 rm -f conftest.$ac_objext
17936 if { (ac_try="$ac_compile"
17937 case "(($ac_try" in
17938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17939 *) ac_try_echo=$ac_try;;
17941 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17942 (eval "$ac_compile") 2>conftest.er1
17944 grep -v '^ *+' conftest.er1 >conftest.err
17946 cat conftest.err >&5
17947 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17948 (exit $ac_status); } && {
17949 test -z "$ac_c_werror_flag" ||
17950 test ! -s conftest.err
17951 } && test -s conftest.$ac_objext; then
17952 ac_header_compiler=yes
17954 echo "$as_me: failed program was
:" >&5
17955 sed 's/^/| /' conftest.$ac_ext >&5
17957 ac_header_compiler=no
17960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17961 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17962 echo "${ECHO_T}$ac_header_compiler" >&6; }
17964 # Is the header present?
17965 { echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
17966 echo $ECHO_N "checking sys
/cpustats.h presence...
$ECHO_C" >&6; }
17967 cat >conftest.$ac_ext <<_ACEOF
17970 cat confdefs.h >>conftest.$ac_ext
17971 cat >>conftest.$ac_ext <<_ACEOF
17972 /* end confdefs.h. */
17973 #include <sys/cpustats.h>
17975 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17976 case "(($ac_try" in
17977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17978 *) ac_try_echo=$ac_try;;
17980 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17981 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17983 grep -v '^ *+' conftest.er1 >conftest.err
17985 cat conftest.err >&5
17986 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17987 (exit $ac_status); } >/dev/null && {
17988 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17989 test ! -s conftest.err
17991 ac_header_preproc=yes
17993 echo "$as_me: failed program was
:" >&5
17994 sed 's/^/| /' conftest.$ac_ext >&5
17996 ac_header_preproc=no
17999 rm -f conftest.err conftest.$ac_ext
18000 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18001 echo "${ECHO_T}$ac_header_preproc" >&6; }
18003 # So? What about this header?
18004 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18006 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
18007 echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18008 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
18009 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
18010 ac_header_preproc=yes
18013 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
18014 echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
18015 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
18016 echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
18017 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
18018 echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
18019 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
18020 echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
18021 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
18022 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
18023 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
18024 echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
18028 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
18029 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
18030 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18031 echo $ECHO_N "(cached
) $ECHO_C" >&6
18033 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18035 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
18036 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18039 if test $ac_cv_header_sys_cpustats_h = yes; then
18040 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18049 if test $ac_have_func = no; then
18051 for ac_header in mach/mach.h
18053 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18054 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18055 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18056 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18057 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18058 echo $ECHO_N "(cached
) $ECHO_C" >&6
18060 ac_res=`eval echo '${'$as_ac_Header'}'`
18061 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18062 echo "${ECHO_T}$ac_res" >&6; }
18064 # Is the header compilable?
18065 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18066 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18067 cat >conftest.$ac_ext <<_ACEOF
18070 cat confdefs.h >>conftest.$ac_ext
18071 cat >>conftest.$ac_ext <<_ACEOF
18072 /* end confdefs.h. */
18073 $ac_includes_default
18074 #include <$ac_header>
18076 rm -f conftest.$ac_objext
18077 if { (ac_try="$ac_compile"
18078 case "(($ac_try" in
18079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18080 *) ac_try_echo=$ac_try;;
18082 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18083 (eval "$ac_compile") 2>conftest.er1
18085 grep -v '^ *+' conftest.er1 >conftest.err
18087 cat conftest.err >&5
18088 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18089 (exit $ac_status); } && {
18090 test -z "$ac_c_werror_flag" ||
18091 test ! -s conftest.err
18092 } && test -s conftest.$ac_objext; then
18093 ac_header_compiler=yes
18095 echo "$as_me: failed program was
:" >&5
18096 sed 's/^/| /' conftest.$ac_ext >&5
18098 ac_header_compiler=no
18101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18102 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18103 echo "${ECHO_T}$ac_header_compiler" >&6; }
18105 # Is the header present?
18106 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18107 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18108 cat >conftest.$ac_ext <<_ACEOF
18111 cat confdefs.h >>conftest.$ac_ext
18112 cat >>conftest.$ac_ext <<_ACEOF
18113 /* end confdefs.h. */
18114 #include <$ac_header>
18116 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18117 case "(($ac_try" in
18118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18119 *) ac_try_echo=$ac_try;;
18121 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18122 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18124 grep -v '^ *+' conftest.er1 >conftest.err
18126 cat conftest.err >&5
18127 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18128 (exit $ac_status); } >/dev/null && {
18129 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18130 test ! -s conftest.err
18132 ac_header_preproc=yes
18134 echo "$as_me: failed program was
:" >&5
18135 sed 's/^/| /' conftest.$ac_ext >&5
18137 ac_header_preproc=no
18140 rm -f conftest.err conftest.$ac_ext
18141 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18142 echo "${ECHO_T}$ac_header_preproc" >&6; }
18144 # So? What about this header?
18145 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18147 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18148 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18149 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18150 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18151 ac_header_preproc=yes
18154 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18155 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18156 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18157 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18158 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18159 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18160 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18161 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18162 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18163 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18164 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18165 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18169 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18170 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18171 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18172 echo $ECHO_N "(cached
) $ECHO_C" >&6
18174 eval "$as_ac_Header=\
$ac_header_preproc"
18176 ac_res=`eval echo '${'$as_ac_Header'}'`
18177 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18178 echo "${ECHO_T}$ac_res" >&6; }
18181 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18182 cat >>confdefs.h <<_ACEOF
18183 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18193 for ac_header in nlist.h
18195 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18196 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18197 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18198 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18199 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18200 echo $ECHO_N "(cached
) $ECHO_C" >&6
18202 ac_res=`eval echo '${'$as_ac_Header'}'`
18203 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18204 echo "${ECHO_T}$ac_res" >&6; }
18206 # Is the header compilable?
18207 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18208 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18209 cat >conftest.$ac_ext <<_ACEOF
18212 cat confdefs.h >>conftest.$ac_ext
18213 cat >>conftest.$ac_ext <<_ACEOF
18214 /* end confdefs.h. */
18215 $ac_includes_default
18216 #include <$ac_header>
18218 rm -f conftest.$ac_objext
18219 if { (ac_try="$ac_compile"
18220 case "(($ac_try" in
18221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18222 *) ac_try_echo=$ac_try;;
18224 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18225 (eval "$ac_compile") 2>conftest.er1
18227 grep -v '^ *+' conftest.er1 >conftest.err
18229 cat conftest.err >&5
18230 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18231 (exit $ac_status); } && {
18232 test -z "$ac_c_werror_flag" ||
18233 test ! -s conftest.err
18234 } && test -s conftest.$ac_objext; then
18235 ac_header_compiler=yes
18237 echo "$as_me: failed program was
:" >&5
18238 sed 's/^/| /' conftest.$ac_ext >&5
18240 ac_header_compiler=no
18243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18244 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18245 echo "${ECHO_T}$ac_header_compiler" >&6; }
18247 # Is the header present?
18248 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18249 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18250 cat >conftest.$ac_ext <<_ACEOF
18253 cat confdefs.h >>conftest.$ac_ext
18254 cat >>conftest.$ac_ext <<_ACEOF
18255 /* end confdefs.h. */
18256 #include <$ac_header>
18258 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18259 case "(($ac_try" in
18260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18261 *) ac_try_echo=$ac_try;;
18263 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18264 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18266 grep -v '^ *+' conftest.er1 >conftest.err
18268 cat conftest.err >&5
18269 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18270 (exit $ac_status); } >/dev/null && {
18271 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18272 test ! -s conftest.err
18274 ac_header_preproc=yes
18276 echo "$as_me: failed program was
:" >&5
18277 sed 's/^/| /' conftest.$ac_ext >&5
18279 ac_header_preproc=no
18282 rm -f conftest.err conftest.$ac_ext
18283 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18284 echo "${ECHO_T}$ac_header_preproc" >&6; }
18286 # So? What about this header?
18287 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18289 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18290 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18291 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18292 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18293 ac_header_preproc=yes
18296 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18297 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18298 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18299 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18300 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18301 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18302 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18303 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18304 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18305 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18306 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18307 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18311 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18312 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18313 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18314 echo $ECHO_N "(cached
) $ECHO_C" >&6
18316 eval "$as_ac_Header=\
$ac_header_preproc"
18318 ac_res=`eval echo '${'$as_ac_Header'}'`
18319 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18320 echo "${ECHO_T}$ac_res" >&6; }
18323 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18324 cat >>confdefs.h <<_ACEOF
18325 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18327 { echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
18328 echo $ECHO_N "checking
for struct nlist.n_un.n_name...
$ECHO_C" >&6; }
18329 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18330 echo $ECHO_N "(cached
) $ECHO_C" >&6
18332 cat >conftest.$ac_ext <<_ACEOF
18335 cat confdefs.h >>conftest.$ac_ext
18336 cat >>conftest.$ac_ext <<_ACEOF
18337 /* end confdefs.h. */
18343 static struct nlist ac_aggr;
18344 if (ac_aggr.n_un.n_name)
18350 rm -f conftest.$ac_objext
18351 if { (ac_try="$ac_compile"
18352 case "(($ac_try" in
18353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18354 *) ac_try_echo=$ac_try;;
18356 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18357 (eval "$ac_compile") 2>conftest.er1
18359 grep -v '^ *+' conftest.er1 >conftest.err
18361 cat conftest.err >&5
18362 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18363 (exit $ac_status); } && {
18364 test -z "$ac_c_werror_flag" ||
18365 test ! -s conftest.err
18366 } && test -s conftest.$ac_objext; then
18367 ac_cv_member_struct_nlist_n_un_n_name=yes
18369 echo "$as_me: failed program was
:" >&5
18370 sed 's/^/| /' conftest.$ac_ext >&5
18372 cat >conftest.$ac_ext <<_ACEOF
18375 cat confdefs.h >>conftest.$ac_ext
18376 cat >>conftest.$ac_ext <<_ACEOF
18377 /* end confdefs.h. */
18383 static struct nlist ac_aggr;
18384 if (sizeof ac_aggr.n_un.n_name)
18390 rm -f conftest.$ac_objext
18391 if { (ac_try="$ac_compile"
18392 case "(($ac_try" in
18393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18394 *) ac_try_echo=$ac_try;;
18396 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18397 (eval "$ac_compile") 2>conftest.er1
18399 grep -v '^ *+' conftest.er1 >conftest.err
18401 cat conftest.err >&5
18402 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18403 (exit $ac_status); } && {
18404 test -z "$ac_c_werror_flag" ||
18405 test ! -s conftest.err
18406 } && test -s conftest.$ac_objext; then
18407 ac_cv_member_struct_nlist_n_un_n_name=yes
18409 echo "$as_me: failed program was
:" >&5
18410 sed 's/^/| /' conftest.$ac_ext >&5
18412 ac_cv_member_struct_nlist_n_un_n_name=no
18415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18420 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18421 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18422 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18424 cat >>confdefs.h <<_ACEOF
18425 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18429 cat >>confdefs.h <<\_ACEOF
18430 #define NLIST_NAME_UNION 1
18444 # Some definitions of getloadavg require that the program be installed setgid.
18445 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
18446 echo $ECHO_N "checking whether getloadavg requires setgid...
$ECHO_C" >&6; }
18447 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18448 echo $ECHO_N "(cached
) $ECHO_C" >&6
18450 cat >conftest.$ac_ext <<_ACEOF
18453 cat confdefs.h >>conftest.$ac_ext
18454 cat >>conftest.$ac_ext <<_ACEOF
18455 /* end confdefs.h. */
18456 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
18457 #ifdef LDAV_PRIVILEGED
18458 Yowza Am I SETGID yet
18461 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
18462 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
18463 ac_cv_func_getloadavg_setgid=yes
18465 ac_cv_func_getloadavg_setgid=no
18470 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
18471 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18472 if test $ac_cv_func_getloadavg_setgid = yes; then
18475 cat >>confdefs.h <<\_ACEOF
18476 #define GETLOADAVG_PRIVILEGED 1
18483 if test $ac_cv_func_getloadavg_setgid = yes; then
18484 { echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
18485 echo $ECHO_N "checking group of
/dev
/kmem...
$ECHO_C" >&6; }
18486 if test "${ac_cv_group_kmem+set}" = set; then
18487 echo $ECHO_N "(cached
) $ECHO_C" >&6
18489 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18490 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18491 # If we got an error (system does not support symlinks), try without -L.
18492 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18493 ac_cv_group_kmem=`echo $ac_ls_output \
18494 | sed -ne 's/[ ][ ]*/ /g;
18495 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18499 { echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
18500 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18501 KMEM_GROUP=$ac_cv_group_kmem
18503 if test "x
$ac_save_LIBS" = x; then
18504 GETLOADAVG_LIBS=$LIBS
18506 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s
!$ac_save_LIBS!!"`
18512 { echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
18513 echo $ECHO_N "checking
for _LARGEFILE_SOURCE value needed
for large files...
$ECHO_C" >&6; }
18514 if test "${ac_cv_sys_largefile_source+set}" = set; then
18515 echo $ECHO_N "(cached
) $ECHO_C" >&6
18518 cat >conftest.$ac_ext <<_ACEOF
18521 cat confdefs.h >>conftest.$ac_ext
18522 cat >>conftest.$ac_ext <<_ACEOF
18523 /* end confdefs.h. */
18528 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18533 rm -f conftest.$ac_objext conftest$ac_exeext
18534 if { (ac_try="$ac_link"
18535 case "(($ac_try" in
18536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18537 *) ac_try_echo=$ac_try;;
18539 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18540 (eval "$ac_link") 2>conftest.er1
18542 grep -v '^ *+' conftest.er1 >conftest.err
18544 cat conftest.err >&5
18545 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18546 (exit $ac_status); } && {
18547 test -z "$ac_c_werror_flag" ||
18548 test ! -s conftest.err
18549 } && test -s conftest$ac_exeext &&
18550 $as_test_x conftest$ac_exeext; then
18551 ac_cv_sys_largefile_source=no; break
18553 echo "$as_me: failed program was
:" >&5
18554 sed 's/^/| /' conftest.$ac_ext >&5
18559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18560 conftest$ac_exeext conftest.$ac_ext
18561 cat >conftest.$ac_ext <<_ACEOF
18564 cat confdefs.h >>conftest.$ac_ext
18565 cat >>conftest.$ac_ext <<_ACEOF
18566 /* end confdefs.h. */
18567 #define _LARGEFILE_SOURCE 1
18572 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18577 rm -f conftest.$ac_objext conftest$ac_exeext
18578 if { (ac_try="$ac_link"
18579 case "(($ac_try" in
18580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18581 *) ac_try_echo=$ac_try;;
18583 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18584 (eval "$ac_link") 2>conftest.er1
18586 grep -v '^ *+' conftest.er1 >conftest.err
18588 cat conftest.err >&5
18589 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18590 (exit $ac_status); } && {
18591 test -z "$ac_c_werror_flag" ||
18592 test ! -s conftest.err
18593 } && test -s conftest$ac_exeext &&
18594 $as_test_x conftest$ac_exeext; then
18595 ac_cv_sys_largefile_source=1; break
18597 echo "$as_me: failed program was
:" >&5
18598 sed 's/^/| /' conftest.$ac_ext >&5
18603 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18604 conftest$ac_exeext conftest.$ac_ext
18605 ac_cv_sys_largefile_source=unknown
18609 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
18610 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18611 case $ac_cv_sys_largefile_source in #(
18614 cat >>confdefs.h <<_ACEOF
18615 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18621 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18622 # in glibc 2.1.3, but that breaks too many other things.
18623 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18624 if test $ac_cv_sys_largefile_source != unknown; then
18626 cat >>confdefs.h <<\_ACEOF
18627 #define HAVE_FSEEKO 1
18633 # Configure getopt.
18634 # getopt.m4 serial 10
18636 # The getopt module assume you want GNU getopt, with getopt_long etc,
18637 # rather than vanilla POSIX getopt. This means your your code should
18638 # always include <getopt.h> for the getopt prototypes.
18650 # Prerequisites of lib/getopt*.
18657 for ac_header in getopt.h
18659 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18660 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18661 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18662 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18663 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18664 echo $ECHO_N "(cached
) $ECHO_C" >&6
18666 ac_res=`eval echo '${'$as_ac_Header'}'`
18667 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18668 echo "${ECHO_T}$ac_res" >&6; }
18670 # Is the header compilable?
18671 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18672 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18673 cat >conftest.$ac_ext <<_ACEOF
18676 cat confdefs.h >>conftest.$ac_ext
18677 cat >>conftest.$ac_ext <<_ACEOF
18678 /* end confdefs.h. */
18679 $ac_includes_default
18680 #include <$ac_header>
18682 rm -f conftest.$ac_objext
18683 if { (ac_try="$ac_compile"
18684 case "(($ac_try" in
18685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18686 *) ac_try_echo=$ac_try;;
18688 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18689 (eval "$ac_compile") 2>conftest.er1
18691 grep -v '^ *+' conftest.er1 >conftest.err
18693 cat conftest.err >&5
18694 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18695 (exit $ac_status); } && {
18696 test -z "$ac_c_werror_flag" ||
18697 test ! -s conftest.err
18698 } && test -s conftest.$ac_objext; then
18699 ac_header_compiler=yes
18701 echo "$as_me: failed program was
:" >&5
18702 sed 's/^/| /' conftest.$ac_ext >&5
18704 ac_header_compiler=no
18707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18708 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18709 echo "${ECHO_T}$ac_header_compiler" >&6; }
18711 # Is the header present?
18712 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18713 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18714 cat >conftest.$ac_ext <<_ACEOF
18717 cat confdefs.h >>conftest.$ac_ext
18718 cat >>conftest.$ac_ext <<_ACEOF
18719 /* end confdefs.h. */
18720 #include <$ac_header>
18722 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18723 case "(($ac_try" in
18724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18725 *) ac_try_echo=$ac_try;;
18727 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18728 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18730 grep -v '^ *+' conftest.er1 >conftest.err
18732 cat conftest.err >&5
18733 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18734 (exit $ac_status); } >/dev/null && {
18735 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18736 test ! -s conftest.err
18738 ac_header_preproc=yes
18740 echo "$as_me: failed program was
:" >&5
18741 sed 's/^/| /' conftest.$ac_ext >&5
18743 ac_header_preproc=no
18746 rm -f conftest.err conftest.$ac_ext
18747 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18748 echo "${ECHO_T}$ac_header_preproc" >&6; }
18750 # So? What about this header?
18751 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18753 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18754 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18755 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18756 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18757 ac_header_preproc=yes
18760 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18761 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18762 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18763 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18764 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18765 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18766 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18767 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18768 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18769 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18770 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18771 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18775 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18776 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18777 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18778 echo $ECHO_N "(cached
) $ECHO_C" >&6
18780 eval "$as_ac_Header=\
$ac_header_preproc"
18782 ac_res=`eval echo '${'$as_ac_Header'}'`
18783 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18784 echo "${ECHO_T}$ac_res" >&6; }
18787 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18788 cat >>confdefs.h <<_ACEOF
18789 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18798 if test -z "$GETOPT_H"; then
18800 for ac_func in getopt_long_only
18802 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18803 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18804 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18805 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18806 echo $ECHO_N "(cached
) $ECHO_C" >&6
18808 cat >conftest.$ac_ext <<_ACEOF
18811 cat confdefs.h >>conftest.$ac_ext
18812 cat >>conftest.$ac_ext <<_ACEOF
18813 /* end confdefs.h. */
18814 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18815 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18816 #define $ac_func innocuous_$ac_func
18818 /* System header to define __stub macros and hopefully few prototypes,
18819 which can conflict with char $ac_func (); below.
18820 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18821 <limits.h> exists even on freestanding compilers. */
18824 # include <limits.h>
18826 # include <assert.h>
18831 /* Override any GCC internal prototype to avoid an error.
18832 Use char because int might match the return type of a GCC
18833 builtin and then its argument prototype would still apply. */
18838 /* The GNU C library defines this for functions which it implements
18839 to always fail with ENOSYS. Some functions are actually named
18840 something starting with __ and the normal name is an alias. */
18841 #if defined __stub_$ac_func || defined __stub___$ac_func
18848 return $ac_func ();
18853 rm -f conftest.$ac_objext conftest$ac_exeext
18854 if { (ac_try="$ac_link"
18855 case "(($ac_try" in
18856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18857 *) ac_try_echo=$ac_try;;
18859 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18860 (eval "$ac_link") 2>conftest.er1
18862 grep -v '^ *+' conftest.er1 >conftest.err
18864 cat conftest.err >&5
18865 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18866 (exit $ac_status); } && {
18867 test -z "$ac_c_werror_flag" ||
18868 test ! -s conftest.err
18869 } && test -s conftest$ac_exeext &&
18870 $as_test_x conftest$ac_exeext; then
18871 eval "$as_ac_var=yes"
18873 echo "$as_me: failed program was
:" >&5
18874 sed 's/^/| /' conftest.$ac_ext >&5
18876 eval "$as_ac_var=no
"
18879 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18880 conftest$ac_exeext conftest.$ac_ext
18882 ac_res=`eval echo '${'$as_ac_var'}'`
18883 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18884 echo "${ECHO_T}$ac_res" >&6; }
18885 if test `eval echo '${'$as_ac_var'}'` = yes; then
18886 cat >>confdefs.h <<_ACEOF
18887 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18897 if test -z "$GETOPT_H"; then
18898 { echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
18899 echo $ECHO_N "checking whether optreset is declared...
$ECHO_C" >&6; }
18900 if test "${ac_cv_have_decl_optreset+set}" = set; then
18901 echo $ECHO_N "(cached
) $ECHO_C" >&6
18903 cat >conftest.$ac_ext <<_ACEOF
18906 cat confdefs.h >>conftest.$ac_ext
18907 cat >>conftest.$ac_ext <<_ACEOF
18908 /* end confdefs.h. */
18909 #include <getopt.h>
18922 rm -f conftest.$ac_objext
18923 if { (ac_try="$ac_compile"
18924 case "(($ac_try" in
18925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18926 *) ac_try_echo=$ac_try;;
18928 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18929 (eval "$ac_compile") 2>conftest.er1
18931 grep -v '^ *+' conftest.er1 >conftest.err
18933 cat conftest.err >&5
18934 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18935 (exit $ac_status); } && {
18936 test -z "$ac_c_werror_flag" ||
18937 test ! -s conftest.err
18938 } && test -s conftest.$ac_objext; then
18939 ac_cv_have_decl_optreset=yes
18941 echo "$as_me: failed program was
:" >&5
18942 sed 's/^/| /' conftest.$ac_ext >&5
18944 ac_cv_have_decl_optreset=no
18947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18949 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
18950 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
18951 if test $ac_cv_have_decl_optreset = yes; then
18957 if test -z "$GETOPT_H"; then
18958 { echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
18959 echo $ECHO_N "checking
for working GNU getopt
function...
$ECHO_C" >&6; }
18960 if test "${gl_cv_func_gnu_getopt+set}" = set; then
18961 echo $ECHO_N "(cached
) $ECHO_C" >&6
18963 if test "$cross_compiling" = yes; then
18964 { echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
18965 echo $ECHO_N "checking whether getopt_clip is declared...
$ECHO_C" >&6; }
18966 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
18967 echo $ECHO_N "(cached
) $ECHO_C" >&6
18969 cat >conftest.$ac_ext <<_ACEOF
18972 cat confdefs.h >>conftest.$ac_ext
18973 cat >>conftest.$ac_ext <<_ACEOF
18974 /* end confdefs.h. */
18975 #include <getopt.h>
18980 #ifndef getopt_clip
18981 (void) getopt_clip;
18988 rm -f conftest.$ac_objext
18989 if { (ac_try="$ac_compile"
18990 case "(($ac_try" in
18991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18992 *) ac_try_echo=$ac_try;;
18994 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18995 (eval "$ac_compile") 2>conftest.er1
18997 grep -v '^ *+' conftest.er1 >conftest.err
18999 cat conftest.err >&5
19000 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19001 (exit $ac_status); } && {
19002 test -z "$ac_c_werror_flag" ||
19003 test ! -s conftest.err
19004 } && test -s conftest.$ac_objext; then
19005 ac_cv_have_decl_getopt_clip=yes
19007 echo "$as_me: failed program was
:" >&5
19008 sed 's/^/| /' conftest.$ac_ext >&5
19010 ac_cv_have_decl_getopt_clip=no
19013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19015 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
19016 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19017 if test $ac_cv_have_decl_getopt_clip = yes; then
19018 gl_cv_func_gnu_getopt=no
19020 gl_cv_func_gnu_getopt=yes
19024 cat >conftest.$ac_ext <<_ACEOF
19027 cat confdefs.h >>conftest.$ac_ext
19028 cat >>conftest.$ac_ext <<_ACEOF
19029 /* end confdefs.h. */
19030 #include <getopt.h>
19036 myargv[0] = "conftest
";
19039 return getopt (2, myargv, "+a
") != '?';
19045 rm -f conftest$ac_exeext
19046 if { (ac_try="$ac_link"
19047 case "(($ac_try" in
19048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19049 *) ac_try_echo=$ac_try;;
19051 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19052 (eval "$ac_link") 2>&5
19054 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19055 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19056 { (case "(($ac_try" in
19057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19058 *) ac_try_echo=$ac_try;;
19060 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19061 (eval "$ac_try") 2>&5
19063 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19064 (exit $ac_status); }; }; then
19065 gl_cv_func_gnu_getopt=yes
19067 echo "$as_me: program exited with status
$ac_status" >&5
19068 echo "$as_me: failed program was
:" >&5
19069 sed 's/^/| /' conftest.$ac_ext >&5
19071 ( exit $ac_status )
19072 gl_cv_func_gnu_getopt=no
19074 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19079 { echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
19080 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19081 if test "$gl_cv_func_gnu_getopt" = "no
"; then
19088 if test -n "$GETOPT_H"; then
19093 cat >>confdefs.h <<\_ACEOF
19094 #define __GETOPT_PREFIX rpl_
19100 GETOPTOBJS='getopt.o getopt1.o'
19107 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
19108 echo $ECHO_N "checking whether getpgrp requires zero arguments...
$ECHO_C" >&6; }
19109 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19110 echo $ECHO_N "(cached
) $ECHO_C" >&6
19112 # Use it with a single arg.
19113 cat >conftest.$ac_ext <<_ACEOF
19116 cat confdefs.h >>conftest.$ac_ext
19117 cat >>conftest.$ac_ext <<_ACEOF
19118 /* end confdefs.h. */
19119 $ac_includes_default
19128 rm -f conftest.$ac_objext
19129 if { (ac_try="$ac_compile"
19130 case "(($ac_try" in
19131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19132 *) ac_try_echo=$ac_try;;
19134 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19135 (eval "$ac_compile") 2>conftest.er1
19137 grep -v '^ *+' conftest.er1 >conftest.err
19139 cat conftest.err >&5
19140 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19141 (exit $ac_status); } && {
19142 test -z "$ac_c_werror_flag" ||
19143 test ! -s conftest.err
19144 } && test -s conftest.$ac_objext; then
19145 ac_cv_func_getpgrp_void=no
19147 echo "$as_me: failed program was
:" >&5
19148 sed 's/^/| /' conftest.$ac_ext >&5
19150 ac_cv_func_getpgrp_void=yes
19153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19156 { echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
19157 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19158 if test $ac_cv_func_getpgrp_void = yes; then
19160 cat >>confdefs.h <<\_ACEOF
19161 #define GETPGRP_VOID 1
19168 for ac_func in strftime
19170 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19171 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19172 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19173 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19174 echo $ECHO_N "(cached
) $ECHO_C" >&6
19176 cat >conftest.$ac_ext <<_ACEOF
19179 cat confdefs.h >>conftest.$ac_ext
19180 cat >>conftest.$ac_ext <<_ACEOF
19181 /* end confdefs.h. */
19182 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19183 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19184 #define $ac_func innocuous_$ac_func
19186 /* System header to define __stub macros and hopefully few prototypes,
19187 which can conflict with char $ac_func (); below.
19188 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19189 <limits.h> exists even on freestanding compilers. */
19192 # include <limits.h>
19194 # include <assert.h>
19199 /* Override any GCC internal prototype to avoid an error.
19200 Use char because int might match the return type of a GCC
19201 builtin and then its argument prototype would still apply. */
19206 /* The GNU C library defines this for functions which it implements
19207 to always fail with ENOSYS. Some functions are actually named
19208 something starting with __ and the normal name is an alias. */
19209 #if defined __stub_$ac_func || defined __stub___$ac_func
19216 return $ac_func ();
19221 rm -f conftest.$ac_objext conftest$ac_exeext
19222 if { (ac_try="$ac_link"
19223 case "(($ac_try" in
19224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19225 *) ac_try_echo=$ac_try;;
19227 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19228 (eval "$ac_link") 2>conftest.er1
19230 grep -v '^ *+' conftest.er1 >conftest.err
19232 cat conftest.err >&5
19233 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19234 (exit $ac_status); } && {
19235 test -z "$ac_c_werror_flag" ||
19236 test ! -s conftest.err
19237 } && test -s conftest$ac_exeext &&
19238 $as_test_x conftest$ac_exeext; then
19239 eval "$as_ac_var=yes"
19241 echo "$as_me: failed program was
:" >&5
19242 sed 's/^/| /' conftest.$ac_ext >&5
19244 eval "$as_ac_var=no
"
19247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19248 conftest$ac_exeext conftest.$ac_ext
19250 ac_res=`eval echo '${'$as_ac_var'}'`
19251 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19252 echo "${ECHO_T}$ac_res" >&6; }
19253 if test `eval echo '${'$as_ac_var'}'` = yes; then
19254 cat >>confdefs.h <<_ACEOF
19255 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19259 # strftime is in -lintl on SCO UNIX.
19260 { echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
19261 echo $ECHO_N "checking
for strftime
in -lintl...
$ECHO_C" >&6; }
19262 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19263 echo $ECHO_N "(cached
) $ECHO_C" >&6
19265 ac_check_lib_save_LIBS=$LIBS
19266 LIBS="-lintl $LIBS"
19267 cat >conftest.$ac_ext <<_ACEOF
19270 cat confdefs.h >>conftest.$ac_ext
19271 cat >>conftest.$ac_ext <<_ACEOF
19272 /* end confdefs.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. */
19284 return strftime ();
19289 rm -f conftest.$ac_objext conftest$ac_exeext
19290 if { (ac_try="$ac_link"
19291 case "(($ac_try" in
19292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19293 *) ac_try_echo=$ac_try;;
19295 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19296 (eval "$ac_link") 2>conftest.er1
19298 grep -v '^ *+' conftest.er1 >conftest.err
19300 cat conftest.err >&5
19301 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19302 (exit $ac_status); } && {
19303 test -z "$ac_c_werror_flag" ||
19304 test ! -s conftest.err
19305 } && test -s conftest$ac_exeext &&
19306 $as_test_x conftest$ac_exeext; then
19307 ac_cv_lib_intl_strftime=yes
19309 echo "$as_me: failed program was
:" >&5
19310 sed 's/^/| /' conftest.$ac_ext >&5
19312 ac_cv_lib_intl_strftime=no
19315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19316 conftest$ac_exeext conftest.$ac_ext
19317 LIBS=$ac_check_lib_save_LIBS
19319 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
19320 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19321 if test $ac_cv_lib_intl_strftime = yes; then
19322 cat >>confdefs.h <<\_ACEOF
19323 #define HAVE_STRFTIME 1
19326 LIBS="-lintl $LIBS"
19335 for ac_func in grantpt
19337 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19338 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19339 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19340 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19341 echo $ECHO_N "(cached
) $ECHO_C" >&6
19343 cat >conftest.$ac_ext <<_ACEOF
19346 cat confdefs.h >>conftest.$ac_ext
19347 cat >>conftest.$ac_ext <<_ACEOF
19348 /* end confdefs.h. */
19349 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19350 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19351 #define $ac_func innocuous_$ac_func
19353 /* System header to define __stub macros and hopefully few prototypes,
19354 which can conflict with char $ac_func (); below.
19355 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19356 <limits.h> exists even on freestanding compilers. */
19359 # include <limits.h>
19361 # include <assert.h>
19366 /* Override any GCC internal prototype to avoid an error.
19367 Use char because int might match the return type of a GCC
19368 builtin and then its argument prototype would still apply. */
19373 /* The GNU C library defines this for functions which it implements
19374 to always fail with ENOSYS. Some functions are actually named
19375 something starting with __ and the normal name is an alias. */
19376 #if defined __stub_$ac_func || defined __stub___$ac_func
19383 return $ac_func ();
19388 rm -f conftest.$ac_objext conftest$ac_exeext
19389 if { (ac_try="$ac_link"
19390 case "(($ac_try" in
19391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19392 *) ac_try_echo=$ac_try;;
19394 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19395 (eval "$ac_link") 2>conftest.er1
19397 grep -v '^ *+' conftest.er1 >conftest.err
19399 cat conftest.err >&5
19400 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19401 (exit $ac_status); } && {
19402 test -z "$ac_c_werror_flag" ||
19403 test ! -s conftest.err
19404 } && test -s conftest$ac_exeext &&
19405 $as_test_x conftest$ac_exeext; then
19406 eval "$as_ac_var=yes"
19408 echo "$as_me: failed program was
:" >&5
19409 sed 's/^/| /' conftest.$ac_ext >&5
19411 eval "$as_ac_var=no
"
19414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19415 conftest$ac_exeext conftest.$ac_ext
19417 ac_res=`eval echo '${'$as_ac_var'}'`
19418 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19419 echo "${ECHO_T}$ac_res" >&6; }
19420 if test `eval echo '${'$as_ac_var'}'` = yes; then
19421 cat >>confdefs.h <<_ACEOF
19422 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19429 # PTY-related GNU extensions.
19431 for ac_func in getpt
19433 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19434 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19435 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19436 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19437 echo $ECHO_N "(cached
) $ECHO_C" >&6
19439 cat >conftest.$ac_ext <<_ACEOF
19442 cat confdefs.h >>conftest.$ac_ext
19443 cat >>conftest.$ac_ext <<_ACEOF
19444 /* end confdefs.h. */
19445 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19446 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19447 #define $ac_func innocuous_$ac_func
19449 /* System header to define __stub macros and hopefully few prototypes,
19450 which can conflict with char $ac_func (); below.
19451 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19452 <limits.h> exists even on freestanding compilers. */
19455 # include <limits.h>
19457 # include <assert.h>
19462 /* Override any GCC internal prototype to avoid an error.
19463 Use char because int might match the return type of a GCC
19464 builtin and then its argument prototype would still apply. */
19469 /* The GNU C library defines this for functions which it implements
19470 to always fail with ENOSYS. Some functions are actually named
19471 something starting with __ and the normal name is an alias. */
19472 #if defined __stub_$ac_func || defined __stub___$ac_func
19479 return $ac_func ();
19484 rm -f conftest.$ac_objext conftest$ac_exeext
19485 if { (ac_try="$ac_link"
19486 case "(($ac_try" in
19487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19488 *) ac_try_echo=$ac_try;;
19490 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19491 (eval "$ac_link") 2>conftest.er1
19493 grep -v '^ *+' conftest.er1 >conftest.err
19495 cat conftest.err >&5
19496 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19497 (exit $ac_status); } && {
19498 test -z "$ac_c_werror_flag" ||
19499 test ! -s conftest.err
19500 } && test -s conftest$ac_exeext &&
19501 $as_test_x conftest$ac_exeext; then
19502 eval "$as_ac_var=yes"
19504 echo "$as_me: failed program was
:" >&5
19505 sed 's/^/| /' conftest.$ac_ext >&5
19507 eval "$as_ac_var=no
"
19510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19511 conftest$ac_exeext conftest.$ac_ext
19513 ac_res=`eval echo '${'$as_ac_var'}'`
19514 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19515 echo "${ECHO_T}$ac_res" >&6; }
19516 if test `eval echo '${'$as_ac_var'}'` = yes; then
19517 cat >>confdefs.h <<_ACEOF
19518 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19525 # Check this now, so that we will NOT find the above functions in ncurses.
19526 # That is because we have not set up to link ncurses in lib-src.
19527 # It's better to believe a function is not available
19528 # than to expect to find it in ncurses.
19530 { echo "$as_me:$LINENO: checking
for tparm
in -lncurses" >&5
19531 echo $ECHO_N "checking
for tparm
in -lncurses...
$ECHO_C" >&6; }
19532 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19533 echo $ECHO_N "(cached
) $ECHO_C" >&6
19535 ac_check_lib_save_LIBS=$LIBS
19536 LIBS="-lncurses $LIBS"
19537 cat >conftest.$ac_ext <<_ACEOF
19540 cat confdefs.h >>conftest.$ac_ext
19541 cat >>conftest.$ac_ext <<_ACEOF
19542 /* end confdefs.h. */
19544 /* Override any GCC internal prototype to avoid an error.
19545 Use char because int might match the return type of a GCC
19546 builtin and then its argument prototype would still apply. */
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 ac_cv_lib_ncurses_tparm=yes
19579 echo "$as_me: failed program was
:" >&5
19580 sed 's/^/| /' conftest.$ac_ext >&5
19582 ac_cv_lib_ncurses_tparm=no
19585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19586 conftest$ac_exeext conftest.$ac_ext
19587 LIBS=$ac_check_lib_save_LIBS
19589 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ncurses_tparm" >&5
19590 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19591 if test $ac_cv_lib_ncurses_tparm = yes; then
19592 cat >>confdefs.h <<_ACEOF
19593 #define HAVE_LIBNCURSES 1
19596 LIBS="-lncurses $LIBS"
19601 # Do we need the Hesiod library to provide the support routines?
19602 if test "$with_hesiod" = yes ; then
19603 # Don't set $LIBS here -- see comments above.
19605 { echo "$as_me:$LINENO: checking
for res_send
" >&5
19606 echo $ECHO_N "checking
for res_send...
$ECHO_C" >&6; }
19607 if test "${ac_cv_func_res_send+set}" = set; then
19608 echo $ECHO_N "(cached
) $ECHO_C" >&6
19610 cat >conftest.$ac_ext <<_ACEOF
19613 cat confdefs.h >>conftest.$ac_ext
19614 cat >>conftest.$ac_ext <<_ACEOF
19615 /* end confdefs.h. */
19616 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19617 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19618 #define res_send innocuous_res_send
19620 /* System header to define __stub macros and hopefully few prototypes,
19621 which can conflict with char res_send (); below.
19622 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19623 <limits.h> exists even on freestanding compilers. */
19626 # include <limits.h>
19628 # include <assert.h>
19633 /* Override any GCC internal prototype to avoid an error.
19634 Use char because int might match the return type of a GCC
19635 builtin and then its argument prototype would still apply. */
19640 /* The GNU C library defines this for functions which it implements
19641 to always fail with ENOSYS. Some functions are actually named
19642 something starting with __ and the normal name is an alias. */
19643 #if defined __stub_res_send || defined __stub___res_send
19650 return res_send ();
19655 rm -f conftest.$ac_objext conftest$ac_exeext
19656 if { (ac_try="$ac_link"
19657 case "(($ac_try" in
19658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19659 *) ac_try_echo=$ac_try;;
19661 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19662 (eval "$ac_link") 2>conftest.er1
19664 grep -v '^ *+' conftest.er1 >conftest.err
19666 cat conftest.err >&5
19667 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19668 (exit $ac_status); } && {
19669 test -z "$ac_c_werror_flag" ||
19670 test ! -s conftest.err
19671 } && test -s conftest$ac_exeext &&
19672 $as_test_x conftest$ac_exeext; then
19673 ac_cv_func_res_send=yes
19675 echo "$as_me: failed program was
:" >&5
19676 sed 's/^/| /' conftest.$ac_ext >&5
19678 ac_cv_func_res_send=no
19681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19682 conftest$ac_exeext conftest.$ac_ext
19684 { echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
19685 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19686 if test $ac_cv_func_res_send = yes; then
19689 { echo "$as_me:$LINENO: checking
for __res_send
" >&5
19690 echo $ECHO_N "checking
for __res_send...
$ECHO_C" >&6; }
19691 if test "${ac_cv_func___res_send+set}" = set; then
19692 echo $ECHO_N "(cached
) $ECHO_C" >&6
19694 cat >conftest.$ac_ext <<_ACEOF
19697 cat confdefs.h >>conftest.$ac_ext
19698 cat >>conftest.$ac_ext <<_ACEOF
19699 /* end confdefs.h. */
19700 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19701 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19702 #define __res_send innocuous___res_send
19704 /* System header to define __stub macros and hopefully few prototypes,
19705 which can conflict with char __res_send (); below.
19706 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19707 <limits.h> exists even on freestanding compilers. */
19710 # include <limits.h>
19712 # include <assert.h>
19717 /* Override any GCC internal prototype to avoid an error.
19718 Use char because int might match the return type of a GCC
19719 builtin and then its argument prototype would still apply. */
19723 char __res_send ();
19724 /* The GNU C library defines this for functions which it implements
19725 to always fail with ENOSYS. Some functions are actually named
19726 something starting with __ and the normal name is an alias. */
19727 #if defined __stub___res_send || defined __stub_____res_send
19734 return __res_send ();
19739 rm -f conftest.$ac_objext conftest$ac_exeext
19740 if { (ac_try="$ac_link"
19741 case "(($ac_try" in
19742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19743 *) ac_try_echo=$ac_try;;
19745 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19746 (eval "$ac_link") 2>conftest.er1
19748 grep -v '^ *+' conftest.er1 >conftest.err
19750 cat conftest.err >&5
19751 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19752 (exit $ac_status); } && {
19753 test -z "$ac_c_werror_flag" ||
19754 test ! -s conftest.err
19755 } && test -s conftest$ac_exeext &&
19756 $as_test_x conftest$ac_exeext; then
19757 ac_cv_func___res_send=yes
19759 echo "$as_me: failed program was
:" >&5
19760 sed 's/^/| /' conftest.$ac_ext >&5
19762 ac_cv_func___res_send=no
19765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19766 conftest$ac_exeext conftest.$ac_ext
19768 { echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
19769 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19770 if test $ac_cv_func___res_send = yes; then
19773 { echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
19774 echo $ECHO_N "checking
for res_send
in -lresolv...
$ECHO_C" >&6; }
19775 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19776 echo $ECHO_N "(cached
) $ECHO_C" >&6
19778 ac_check_lib_save_LIBS=$LIBS
19779 LIBS="-lresolv $LIBS"
19780 cat >conftest.$ac_ext <<_ACEOF
19783 cat confdefs.h >>conftest.$ac_ext
19784 cat >>conftest.$ac_ext <<_ACEOF
19785 /* end confdefs.h. */
19787 /* Override any GCC internal prototype to avoid an error.
19788 Use char because int might match the return type of a GCC
19789 builtin and then its argument prototype would still apply. */
19797 return res_send ();
19802 rm -f conftest.$ac_objext conftest$ac_exeext
19803 if { (ac_try="$ac_link"
19804 case "(($ac_try" in
19805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19806 *) ac_try_echo=$ac_try;;
19808 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19809 (eval "$ac_link") 2>conftest.er1
19811 grep -v '^ *+' conftest.er1 >conftest.err
19813 cat conftest.err >&5
19814 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19815 (exit $ac_status); } && {
19816 test -z "$ac_c_werror_flag" ||
19817 test ! -s conftest.err
19818 } && test -s conftest$ac_exeext &&
19819 $as_test_x conftest$ac_exeext; then
19820 ac_cv_lib_resolv_res_send=yes
19822 echo "$as_me: failed program was
:" >&5
19823 sed 's/^/| /' conftest.$ac_ext >&5
19825 ac_cv_lib_resolv_res_send=no
19828 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19829 conftest$ac_exeext conftest.$ac_ext
19830 LIBS=$ac_check_lib_save_LIBS
19832 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
19833 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
19834 if test $ac_cv_lib_resolv_res_send = yes; then
19837 { echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
19838 echo $ECHO_N "checking
for __res_send
in -lresolv...
$ECHO_C" >&6; }
19839 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
19840 echo $ECHO_N "(cached
) $ECHO_C" >&6
19842 ac_check_lib_save_LIBS=$LIBS
19843 LIBS="-lresolv $LIBS"
19844 cat >conftest.$ac_ext <<_ACEOF
19847 cat confdefs.h >>conftest.$ac_ext
19848 cat >>conftest.$ac_ext <<_ACEOF
19849 /* end confdefs.h. */
19851 /* Override any GCC internal prototype to avoid an error.
19852 Use char because int might match the return type of a GCC
19853 builtin and then its argument prototype would still apply. */
19857 char __res_send ();
19861 return __res_send ();
19866 rm -f conftest.$ac_objext conftest$ac_exeext
19867 if { (ac_try="$ac_link"
19868 case "(($ac_try" in
19869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19870 *) ac_try_echo=$ac_try;;
19872 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19873 (eval "$ac_link") 2>conftest.er1
19875 grep -v '^ *+' conftest.er1 >conftest.err
19877 cat conftest.err >&5
19878 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19879 (exit $ac_status); } && {
19880 test -z "$ac_c_werror_flag" ||
19881 test ! -s conftest.err
19882 } && test -s conftest$ac_exeext &&
19883 $as_test_x conftest$ac_exeext; then
19884 ac_cv_lib_resolv___res_send=yes
19886 echo "$as_me: failed program was
:" >&5
19887 sed 's/^/| /' conftest.$ac_ext >&5
19889 ac_cv_lib_resolv___res_send=no
19892 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19893 conftest$ac_exeext conftest.$ac_ext
19894 LIBS=$ac_check_lib_save_LIBS
19896 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
19897 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
19898 if test $ac_cv_lib_resolv___res_send = yes; then
19908 if test "$resolv" = yes ; then
19911 cat >>confdefs.h <<\_ACEOF
19912 #define HAVE_LIBRESOLV 1
19918 { echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
19919 echo $ECHO_N "checking
for hes_getmailhost...
$ECHO_C" >&6; }
19920 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
19921 echo $ECHO_N "(cached
) $ECHO_C" >&6
19923 cat >conftest.$ac_ext <<_ACEOF
19926 cat confdefs.h >>conftest.$ac_ext
19927 cat >>conftest.$ac_ext <<_ACEOF
19928 /* end confdefs.h. */
19929 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
19930 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19931 #define hes_getmailhost innocuous_hes_getmailhost
19933 /* System header to define __stub macros and hopefully few prototypes,
19934 which can conflict with char hes_getmailhost (); below.
19935 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19936 <limits.h> exists even on freestanding compilers. */
19939 # include <limits.h>
19941 # include <assert.h>
19944 #undef hes_getmailhost
19946 /* Override any GCC internal prototype to avoid an error.
19947 Use char because int might match the return type of a GCC
19948 builtin and then its argument prototype would still apply. */
19952 char hes_getmailhost ();
19953 /* The GNU C library defines this for functions which it implements
19954 to always fail with ENOSYS. Some functions are actually named
19955 something starting with __ and the normal name is an alias. */
19956 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
19963 return hes_getmailhost ();
19968 rm -f conftest.$ac_objext conftest$ac_exeext
19969 if { (ac_try="$ac_link"
19970 case "(($ac_try" in
19971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19972 *) ac_try_echo=$ac_try;;
19974 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19975 (eval "$ac_link") 2>conftest.er1
19977 grep -v '^ *+' conftest.er1 >conftest.err
19979 cat conftest.err >&5
19980 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19981 (exit $ac_status); } && {
19982 test -z "$ac_c_werror_flag" ||
19983 test ! -s conftest.err
19984 } && test -s conftest$ac_exeext &&
19985 $as_test_x conftest$ac_exeext; then
19986 ac_cv_func_hes_getmailhost=yes
19988 echo "$as_me: failed program was
:" >&5
19989 sed 's/^/| /' conftest.$ac_ext >&5
19991 ac_cv_func_hes_getmailhost=no
19994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19995 conftest$ac_exeext conftest.$ac_ext
19997 { echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
19998 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
19999 if test $ac_cv_func_hes_getmailhost = yes; then
20002 { echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
20003 echo $ECHO_N "checking
for hes_getmailhost
in -lhesiod...
$ECHO_C" >&6; }
20004 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20005 echo $ECHO_N "(cached
) $ECHO_C" >&6
20007 ac_check_lib_save_LIBS=$LIBS
20008 LIBS="-lhesiod $RESOLVLIB $LIBS"
20009 cat >conftest.$ac_ext <<_ACEOF
20012 cat confdefs.h >>conftest.$ac_ext
20013 cat >>conftest.$ac_ext <<_ACEOF
20014 /* end confdefs.h. */
20016 /* Override any GCC internal prototype to avoid an error.
20017 Use char because int might match the return type of a GCC
20018 builtin and then its argument prototype would still apply. */
20022 char hes_getmailhost ();
20026 return hes_getmailhost ();
20031 rm -f conftest.$ac_objext conftest$ac_exeext
20032 if { (ac_try="$ac_link"
20033 case "(($ac_try" in
20034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20035 *) ac_try_echo=$ac_try;;
20037 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20038 (eval "$ac_link") 2>conftest.er1
20040 grep -v '^ *+' conftest.er1 >conftest.err
20042 cat conftest.err >&5
20043 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20044 (exit $ac_status); } && {
20045 test -z "$ac_c_werror_flag" ||
20046 test ! -s conftest.err
20047 } && test -s conftest$ac_exeext &&
20048 $as_test_x conftest$ac_exeext; then
20049 ac_cv_lib_hesiod_hes_getmailhost=yes
20051 echo "$as_me: failed program was
:" >&5
20052 sed 's/^/| /' conftest.$ac_ext >&5
20054 ac_cv_lib_hesiod_hes_getmailhost=no
20057 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20058 conftest$ac_exeext conftest.$ac_ext
20059 LIBS=$ac_check_lib_save_LIBS
20061 { echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20062 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20063 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20065 cat >>confdefs.h <<\_ACEOF
20066 #define HAVE_LIBHESIOD 1
20077 # These tell us which Kerberos-related libraries to use.
20078 if test "${with_kerberos+set}" = set; then
20080 { echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
20081 echo $ECHO_N "checking
for com_err
in -lcom_err...
$ECHO_C" >&6; }
20082 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20083 echo $ECHO_N "(cached
) $ECHO_C" >&6
20085 ac_check_lib_save_LIBS=$LIBS
20086 LIBS="-lcom_err $LIBS"
20087 cat >conftest.$ac_ext <<_ACEOF
20090 cat confdefs.h >>conftest.$ac_ext
20091 cat >>conftest.$ac_ext <<_ACEOF
20092 /* end confdefs.h. */
20094 /* Override any GCC internal prototype to avoid an error.
20095 Use char because int might match the return type of a GCC
20096 builtin and then its argument prototype would still apply. */
20109 rm -f conftest.$ac_objext conftest$ac_exeext
20110 if { (ac_try="$ac_link"
20111 case "(($ac_try" in
20112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20113 *) ac_try_echo=$ac_try;;
20115 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20116 (eval "$ac_link") 2>conftest.er1
20118 grep -v '^ *+' conftest.er1 >conftest.err
20120 cat conftest.err >&5
20121 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20122 (exit $ac_status); } && {
20123 test -z "$ac_c_werror_flag" ||
20124 test ! -s conftest.err
20125 } && test -s conftest$ac_exeext &&
20126 $as_test_x conftest$ac_exeext; then
20127 ac_cv_lib_com_err_com_err=yes
20129 echo "$as_me: failed program was
:" >&5
20130 sed 's/^/| /' conftest.$ac_ext >&5
20132 ac_cv_lib_com_err_com_err=no
20135 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20136 conftest$ac_exeext conftest.$ac_ext
20137 LIBS=$ac_check_lib_save_LIBS
20139 { echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
20140 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20141 if test $ac_cv_lib_com_err_com_err = yes; then
20142 cat >>confdefs.h <<_ACEOF
20143 #define HAVE_LIBCOM_ERR 1
20146 LIBS="-lcom_err $LIBS"
20151 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
20152 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lk5crypto...
$ECHO_C" >&6; }
20153 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20154 echo $ECHO_N "(cached
) $ECHO_C" >&6
20156 ac_check_lib_save_LIBS=$LIBS
20157 LIBS="-lk5crypto $LIBS"
20158 cat >conftest.$ac_ext <<_ACEOF
20161 cat confdefs.h >>conftest.$ac_ext
20162 cat >>conftest.$ac_ext <<_ACEOF
20163 /* end confdefs.h. */
20165 /* Override any GCC internal prototype to avoid an error.
20166 Use char because int might match the return type of a GCC
20167 builtin and then its argument prototype would still apply. */
20171 char mit_des_cbc_encrypt ();
20175 return mit_des_cbc_encrypt ();
20180 rm -f conftest.$ac_objext conftest$ac_exeext
20181 if { (ac_try="$ac_link"
20182 case "(($ac_try" in
20183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20184 *) ac_try_echo=$ac_try;;
20186 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20187 (eval "$ac_link") 2>conftest.er1
20189 grep -v '^ *+' conftest.er1 >conftest.err
20191 cat conftest.err >&5
20192 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20193 (exit $ac_status); } && {
20194 test -z "$ac_c_werror_flag" ||
20195 test ! -s conftest.err
20196 } && test -s conftest$ac_exeext &&
20197 $as_test_x conftest$ac_exeext; then
20198 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20200 echo "$as_me: failed program was
:" >&5
20201 sed 's/^/| /' conftest.$ac_ext >&5
20203 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20207 conftest$ac_exeext conftest.$ac_ext
20208 LIBS=$ac_check_lib_save_LIBS
20210 { echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20211 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20212 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20213 cat >>confdefs.h <<_ACEOF
20214 #define HAVE_LIBK5CRYPTO 1
20217 LIBS="-lk5crypto $LIBS"
20222 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
20223 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lcrypto...
$ECHO_C" >&6; }
20224 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20225 echo $ECHO_N "(cached
) $ECHO_C" >&6
20227 ac_check_lib_save_LIBS=$LIBS
20228 LIBS="-lcrypto $LIBS"
20229 cat >conftest.$ac_ext <<_ACEOF
20232 cat confdefs.h >>conftest.$ac_ext
20233 cat >>conftest.$ac_ext <<_ACEOF
20234 /* end confdefs.h. */
20236 /* Override any GCC internal prototype to avoid an error.
20237 Use char because int might match the return type of a GCC
20238 builtin and then its argument prototype would still apply. */
20242 char mit_des_cbc_encrypt ();
20246 return mit_des_cbc_encrypt ();
20251 rm -f conftest.$ac_objext conftest$ac_exeext
20252 if { (ac_try="$ac_link"
20253 case "(($ac_try" in
20254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20255 *) ac_try_echo=$ac_try;;
20257 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20258 (eval "$ac_link") 2>conftest.er1
20260 grep -v '^ *+' conftest.er1 >conftest.err
20262 cat conftest.err >&5
20263 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20264 (exit $ac_status); } && {
20265 test -z "$ac_c_werror_flag" ||
20266 test ! -s conftest.err
20267 } && test -s conftest$ac_exeext &&
20268 $as_test_x conftest$ac_exeext; then
20269 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20271 echo "$as_me: failed program was
:" >&5
20272 sed 's/^/| /' conftest.$ac_ext >&5
20274 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20277 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20278 conftest$ac_exeext conftest.$ac_ext
20279 LIBS=$ac_check_lib_save_LIBS
20281 { echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20282 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20283 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20284 cat >>confdefs.h <<_ACEOF
20285 #define HAVE_LIBCRYPTO 1
20288 LIBS="-lcrypto $LIBS"
20293 { echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
20294 echo $ECHO_N "checking
for krb5_init_context
in -lkrb5...
$ECHO_C" >&6; }
20295 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20296 echo $ECHO_N "(cached
) $ECHO_C" >&6
20298 ac_check_lib_save_LIBS=$LIBS
20299 LIBS="-lkrb5 $LIBS"
20300 cat >conftest.$ac_ext <<_ACEOF
20303 cat confdefs.h >>conftest.$ac_ext
20304 cat >>conftest.$ac_ext <<_ACEOF
20305 /* end confdefs.h. */
20307 /* Override any GCC internal prototype to avoid an error.
20308 Use char because int might match the return type of a GCC
20309 builtin and then its argument prototype would still apply. */
20313 char krb5_init_context ();
20317 return krb5_init_context ();
20322 rm -f conftest.$ac_objext conftest$ac_exeext
20323 if { (ac_try="$ac_link"
20324 case "(($ac_try" in
20325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20326 *) ac_try_echo=$ac_try;;
20328 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20329 (eval "$ac_link") 2>conftest.er1
20331 grep -v '^ *+' conftest.er1 >conftest.err
20333 cat conftest.err >&5
20334 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20335 (exit $ac_status); } && {
20336 test -z "$ac_c_werror_flag" ||
20337 test ! -s conftest.err
20338 } && test -s conftest$ac_exeext &&
20339 $as_test_x conftest$ac_exeext; then
20340 ac_cv_lib_krb5_krb5_init_context=yes
20342 echo "$as_me: failed program was
:" >&5
20343 sed 's/^/| /' conftest.$ac_ext >&5
20345 ac_cv_lib_krb5_krb5_init_context=no
20348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20349 conftest$ac_exeext conftest.$ac_ext
20350 LIBS=$ac_check_lib_save_LIBS
20352 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
20353 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20354 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20355 cat >>confdefs.h <<_ACEOF
20356 #define HAVE_LIBKRB5 1
20359 LIBS="-lkrb5 $LIBS"
20363 if test "${with_kerberos5+set}" != set; then
20365 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
20366 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes425...
$ECHO_C" >&6; }
20367 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20368 echo $ECHO_N "(cached
) $ECHO_C" >&6
20370 ac_check_lib_save_LIBS=$LIBS
20371 LIBS="-ldes425 $LIBS"
20372 cat >conftest.$ac_ext <<_ACEOF
20375 cat confdefs.h >>conftest.$ac_ext
20376 cat >>conftest.$ac_ext <<_ACEOF
20377 /* end confdefs.h. */
20379 /* Override any GCC internal prototype to avoid an error.
20380 Use char because int might match the return type of a GCC
20381 builtin and then its argument prototype would still apply. */
20385 char des_cbc_encrypt ();
20389 return des_cbc_encrypt ();
20394 rm -f conftest.$ac_objext conftest$ac_exeext
20395 if { (ac_try="$ac_link"
20396 case "(($ac_try" in
20397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20398 *) ac_try_echo=$ac_try;;
20400 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20401 (eval "$ac_link") 2>conftest.er1
20403 grep -v '^ *+' conftest.er1 >conftest.err
20405 cat conftest.err >&5
20406 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20407 (exit $ac_status); } && {
20408 test -z "$ac_c_werror_flag" ||
20409 test ! -s conftest.err
20410 } && test -s conftest$ac_exeext &&
20411 $as_test_x conftest$ac_exeext; then
20412 ac_cv_lib_des425_des_cbc_encrypt=yes
20414 echo "$as_me: failed program was
:" >&5
20415 sed 's/^/| /' conftest.$ac_ext >&5
20417 ac_cv_lib_des425_des_cbc_encrypt=no
20420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20421 conftest$ac_exeext conftest.$ac_ext
20422 LIBS=$ac_check_lib_save_LIBS
20424 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20425 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20426 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20427 cat >>confdefs.h <<_ACEOF
20428 #define HAVE_LIBDES425 1
20431 LIBS="-ldes425 $LIBS"
20435 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
20436 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes...
$ECHO_C" >&6; }
20437 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20438 echo $ECHO_N "(cached
) $ECHO_C" >&6
20440 ac_check_lib_save_LIBS=$LIBS
20442 cat >conftest.$ac_ext <<_ACEOF
20445 cat confdefs.h >>conftest.$ac_ext
20446 cat >>conftest.$ac_ext <<_ACEOF
20447 /* end confdefs.h. */
20449 /* Override any GCC internal prototype to avoid an error.
20450 Use char because int might match the return type of a GCC
20451 builtin and then its argument prototype would still apply. */
20455 char des_cbc_encrypt ();
20459 return des_cbc_encrypt ();
20464 rm -f conftest.$ac_objext conftest$ac_exeext
20465 if { (ac_try="$ac_link"
20466 case "(($ac_try" in
20467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20468 *) ac_try_echo=$ac_try;;
20470 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20471 (eval "$ac_link") 2>conftest.er1
20473 grep -v '^ *+' conftest.er1 >conftest.err
20475 cat conftest.err >&5
20476 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20477 (exit $ac_status); } && {
20478 test -z "$ac_c_werror_flag" ||
20479 test ! -s conftest.err
20480 } && test -s conftest$ac_exeext &&
20481 $as_test_x conftest$ac_exeext; then
20482 ac_cv_lib_des_des_cbc_encrypt=yes
20484 echo "$as_me: failed program was
:" >&5
20485 sed 's/^/| /' conftest.$ac_ext >&5
20487 ac_cv_lib_des_des_cbc_encrypt=no
20490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20491 conftest$ac_exeext conftest.$ac_ext
20492 LIBS=$ac_check_lib_save_LIBS
20494 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
20495 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20496 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20497 cat >>confdefs.h <<_ACEOF
20498 #define HAVE_LIBDES 1
20508 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
20509 echo $ECHO_N "checking
for krb_get_cred
in -lkrb4...
$ECHO_C" >&6; }
20510 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20511 echo $ECHO_N "(cached
) $ECHO_C" >&6
20513 ac_check_lib_save_LIBS=$LIBS
20514 LIBS="-lkrb4 $LIBS"
20515 cat >conftest.$ac_ext <<_ACEOF
20518 cat confdefs.h >>conftest.$ac_ext
20519 cat >>conftest.$ac_ext <<_ACEOF
20520 /* end confdefs.h. */
20522 /* Override any GCC internal prototype to avoid an error.
20523 Use char because int might match the return type of a GCC
20524 builtin and then its argument prototype would still apply. */
20528 char krb_get_cred ();
20532 return krb_get_cred ();
20537 rm -f conftest.$ac_objext conftest$ac_exeext
20538 if { (ac_try="$ac_link"
20539 case "(($ac_try" in
20540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20541 *) ac_try_echo=$ac_try;;
20543 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20544 (eval "$ac_link") 2>conftest.er1
20546 grep -v '^ *+' conftest.er1 >conftest.err
20548 cat conftest.err >&5
20549 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20550 (exit $ac_status); } && {
20551 test -z "$ac_c_werror_flag" ||
20552 test ! -s conftest.err
20553 } && test -s conftest$ac_exeext &&
20554 $as_test_x conftest$ac_exeext; then
20555 ac_cv_lib_krb4_krb_get_cred=yes
20557 echo "$as_me: failed program was
:" >&5
20558 sed 's/^/| /' conftest.$ac_ext >&5
20560 ac_cv_lib_krb4_krb_get_cred=no
20563 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20564 conftest$ac_exeext conftest.$ac_ext
20565 LIBS=$ac_check_lib_save_LIBS
20567 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
20568 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20569 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20570 cat >>confdefs.h <<_ACEOF
20571 #define HAVE_LIBKRB4 1
20574 LIBS="-lkrb4 $LIBS"
20578 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
20579 echo $ECHO_N "checking
for krb_get_cred
in -lkrb...
$ECHO_C" >&6; }
20580 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20581 echo $ECHO_N "(cached
) $ECHO_C" >&6
20583 ac_check_lib_save_LIBS=$LIBS
20585 cat >conftest.$ac_ext <<_ACEOF
20588 cat confdefs.h >>conftest.$ac_ext
20589 cat >>conftest.$ac_ext <<_ACEOF
20590 /* end confdefs.h. */
20592 /* Override any GCC internal prototype to avoid an error.
20593 Use char because int might match the return type of a GCC
20594 builtin and then its argument prototype would still apply. */
20598 char krb_get_cred ();
20602 return krb_get_cred ();
20607 rm -f conftest.$ac_objext conftest$ac_exeext
20608 if { (ac_try="$ac_link"
20609 case "(($ac_try" in
20610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20611 *) ac_try_echo=$ac_try;;
20613 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20614 (eval "$ac_link") 2>conftest.er1
20616 grep -v '^ *+' conftest.er1 >conftest.err
20618 cat conftest.err >&5
20619 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20620 (exit $ac_status); } && {
20621 test -z "$ac_c_werror_flag" ||
20622 test ! -s conftest.err
20623 } && test -s conftest$ac_exeext &&
20624 $as_test_x conftest$ac_exeext; then
20625 ac_cv_lib_krb_krb_get_cred=yes
20627 echo "$as_me: failed program was
:" >&5
20628 sed 's/^/| /' conftest.$ac_ext >&5
20630 ac_cv_lib_krb_krb_get_cred=no
20633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20634 conftest$ac_exeext conftest.$ac_ext
20635 LIBS=$ac_check_lib_save_LIBS
20637 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
20638 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20639 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20640 cat >>confdefs.h <<_ACEOF
20641 #define HAVE_LIBKRB 1
20652 if test "${with_kerberos5+set}" = set; then
20654 for ac_header in krb5.h
20656 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20657 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20658 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20659 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20660 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20661 echo $ECHO_N "(cached
) $ECHO_C" >&6
20663 ac_res=`eval echo '${'$as_ac_Header'}'`
20664 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20665 echo "${ECHO_T}$ac_res" >&6; }
20667 # Is the header compilable?
20668 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20669 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20670 cat >conftest.$ac_ext <<_ACEOF
20673 cat confdefs.h >>conftest.$ac_ext
20674 cat >>conftest.$ac_ext <<_ACEOF
20675 /* end confdefs.h. */
20676 $ac_includes_default
20677 #include <$ac_header>
20679 rm -f conftest.$ac_objext
20680 if { (ac_try="$ac_compile"
20681 case "(($ac_try" in
20682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20683 *) ac_try_echo=$ac_try;;
20685 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20686 (eval "$ac_compile") 2>conftest.er1
20688 grep -v '^ *+' conftest.er1 >conftest.err
20690 cat conftest.err >&5
20691 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20692 (exit $ac_status); } && {
20693 test -z "$ac_c_werror_flag" ||
20694 test ! -s conftest.err
20695 } && test -s conftest.$ac_objext; then
20696 ac_header_compiler=yes
20698 echo "$as_me: failed program was
:" >&5
20699 sed 's/^/| /' conftest.$ac_ext >&5
20701 ac_header_compiler=no
20704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20705 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20706 echo "${ECHO_T}$ac_header_compiler" >&6; }
20708 # Is the header present?
20709 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20710 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20711 cat >conftest.$ac_ext <<_ACEOF
20714 cat confdefs.h >>conftest.$ac_ext
20715 cat >>conftest.$ac_ext <<_ACEOF
20716 /* end confdefs.h. */
20717 #include <$ac_header>
20719 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20720 case "(($ac_try" in
20721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20722 *) ac_try_echo=$ac_try;;
20724 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20725 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20727 grep -v '^ *+' conftest.er1 >conftest.err
20729 cat conftest.err >&5
20730 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20731 (exit $ac_status); } >/dev/null && {
20732 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20733 test ! -s conftest.err
20735 ac_header_preproc=yes
20737 echo "$as_me: failed program was
:" >&5
20738 sed 's/^/| /' conftest.$ac_ext >&5
20740 ac_header_preproc=no
20743 rm -f conftest.err conftest.$ac_ext
20744 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20745 echo "${ECHO_T}$ac_header_preproc" >&6; }
20747 # So? What about this header?
20748 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20750 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20751 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20752 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20753 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20754 ac_header_preproc=yes
20757 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20758 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20759 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20760 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20761 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20762 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20763 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20764 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20765 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20766 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20767 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20768 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20772 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20773 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20774 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20775 echo $ECHO_N "(cached
) $ECHO_C" >&6
20777 eval "$as_ac_Header=\
$ac_header_preproc"
20779 ac_res=`eval echo '${'$as_ac_Header'}'`
20780 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20781 echo "${ECHO_T}$ac_res" >&6; }
20784 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20785 cat >>confdefs.h <<_ACEOF
20786 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20795 for ac_header in des.h
20797 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20798 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20799 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20800 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20801 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20802 echo $ECHO_N "(cached
) $ECHO_C" >&6
20804 ac_res=`eval echo '${'$as_ac_Header'}'`
20805 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20806 echo "${ECHO_T}$ac_res" >&6; }
20808 # Is the header compilable?
20809 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20810 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20811 cat >conftest.$ac_ext <<_ACEOF
20814 cat confdefs.h >>conftest.$ac_ext
20815 cat >>conftest.$ac_ext <<_ACEOF
20816 /* end confdefs.h. */
20817 $ac_includes_default
20818 #include <$ac_header>
20820 rm -f conftest.$ac_objext
20821 if { (ac_try="$ac_compile"
20822 case "(($ac_try" in
20823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20824 *) ac_try_echo=$ac_try;;
20826 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20827 (eval "$ac_compile") 2>conftest.er1
20829 grep -v '^ *+' conftest.er1 >conftest.err
20831 cat conftest.err >&5
20832 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20833 (exit $ac_status); } && {
20834 test -z "$ac_c_werror_flag" ||
20835 test ! -s conftest.err
20836 } && test -s conftest.$ac_objext; then
20837 ac_header_compiler=yes
20839 echo "$as_me: failed program was
:" >&5
20840 sed 's/^/| /' conftest.$ac_ext >&5
20842 ac_header_compiler=no
20845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20846 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20847 echo "${ECHO_T}$ac_header_compiler" >&6; }
20849 # Is the header present?
20850 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20851 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20852 cat >conftest.$ac_ext <<_ACEOF
20855 cat confdefs.h >>conftest.$ac_ext
20856 cat >>conftest.$ac_ext <<_ACEOF
20857 /* end confdefs.h. */
20858 #include <$ac_header>
20860 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20861 case "(($ac_try" in
20862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20863 *) ac_try_echo=$ac_try;;
20865 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20866 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20868 grep -v '^ *+' conftest.er1 >conftest.err
20870 cat conftest.err >&5
20871 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20872 (exit $ac_status); } >/dev/null && {
20873 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20874 test ! -s conftest.err
20876 ac_header_preproc=yes
20878 echo "$as_me: failed program was
:" >&5
20879 sed 's/^/| /' conftest.$ac_ext >&5
20881 ac_header_preproc=no
20884 rm -f conftest.err conftest.$ac_ext
20885 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20886 echo "${ECHO_T}$ac_header_preproc" >&6; }
20888 # So? What about this header?
20889 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20891 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20892 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20893 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20894 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20895 ac_header_preproc=yes
20898 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20899 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20900 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20901 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20902 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20903 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20904 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20905 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20906 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20907 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20908 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20909 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20913 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20914 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20915 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20916 echo $ECHO_N "(cached
) $ECHO_C" >&6
20918 eval "$as_ac_Header=\
$ac_header_preproc"
20920 ac_res=`eval echo '${'$as_ac_Header'}'`
20921 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20922 echo "${ECHO_T}$ac_res" >&6; }
20925 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20926 cat >>confdefs.h <<_ACEOF
20927 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20932 for ac_header in kerberosIV/des.h
20934 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20935 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20936 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20937 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20938 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20939 echo $ECHO_N "(cached
) $ECHO_C" >&6
20941 ac_res=`eval echo '${'$as_ac_Header'}'`
20942 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20943 echo "${ECHO_T}$ac_res" >&6; }
20945 # Is the header compilable?
20946 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20947 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20948 cat >conftest.$ac_ext <<_ACEOF
20951 cat confdefs.h >>conftest.$ac_ext
20952 cat >>conftest.$ac_ext <<_ACEOF
20953 /* end confdefs.h. */
20954 $ac_includes_default
20955 #include <$ac_header>
20957 rm -f conftest.$ac_objext
20958 if { (ac_try="$ac_compile"
20959 case "(($ac_try" in
20960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20961 *) ac_try_echo=$ac_try;;
20963 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20964 (eval "$ac_compile") 2>conftest.er1
20966 grep -v '^ *+' conftest.er1 >conftest.err
20968 cat conftest.err >&5
20969 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20970 (exit $ac_status); } && {
20971 test -z "$ac_c_werror_flag" ||
20972 test ! -s conftest.err
20973 } && test -s conftest.$ac_objext; then
20974 ac_header_compiler=yes
20976 echo "$as_me: failed program was
:" >&5
20977 sed 's/^/| /' conftest.$ac_ext >&5
20979 ac_header_compiler=no
20982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20983 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20984 echo "${ECHO_T}$ac_header_compiler" >&6; }
20986 # Is the header present?
20987 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20988 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20989 cat >conftest.$ac_ext <<_ACEOF
20992 cat confdefs.h >>conftest.$ac_ext
20993 cat >>conftest.$ac_ext <<_ACEOF
20994 /* end confdefs.h. */
20995 #include <$ac_header>
20997 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20998 case "(($ac_try" in
20999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21000 *) ac_try_echo=$ac_try;;
21002 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21003 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21005 grep -v '^ *+' conftest.er1 >conftest.err
21007 cat conftest.err >&5
21008 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21009 (exit $ac_status); } >/dev/null && {
21010 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21011 test ! -s conftest.err
21013 ac_header_preproc=yes
21015 echo "$as_me: failed program was
:" >&5
21016 sed 's/^/| /' conftest.$ac_ext >&5
21018 ac_header_preproc=no
21021 rm -f conftest.err conftest.$ac_ext
21022 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21023 echo "${ECHO_T}$ac_header_preproc" >&6; }
21025 # So? What about this header?
21026 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21028 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21029 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21030 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21031 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21032 ac_header_preproc=yes
21035 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21036 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21037 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21038 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21039 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21040 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21041 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21042 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21043 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21044 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21045 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21046 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21050 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21051 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21052 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21053 echo $ECHO_N "(cached
) $ECHO_C" >&6
21055 eval "$as_ac_Header=\
$ac_header_preproc"
21057 ac_res=`eval echo '${'$as_ac_Header'}'`
21058 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21059 echo "${ECHO_T}$ac_res" >&6; }
21062 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21063 cat >>confdefs.h <<_ACEOF
21064 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21069 for ac_header in kerberos/des.h
21071 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21072 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21073 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21074 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21075 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21076 echo $ECHO_N "(cached
) $ECHO_C" >&6
21078 ac_res=`eval echo '${'$as_ac_Header'}'`
21079 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21080 echo "${ECHO_T}$ac_res" >&6; }
21082 # Is the header compilable?
21083 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21084 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21085 cat >conftest.$ac_ext <<_ACEOF
21088 cat confdefs.h >>conftest.$ac_ext
21089 cat >>conftest.$ac_ext <<_ACEOF
21090 /* end confdefs.h. */
21091 $ac_includes_default
21092 #include <$ac_header>
21094 rm -f conftest.$ac_objext
21095 if { (ac_try="$ac_compile"
21096 case "(($ac_try" in
21097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21098 *) ac_try_echo=$ac_try;;
21100 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21101 (eval "$ac_compile") 2>conftest.er1
21103 grep -v '^ *+' conftest.er1 >conftest.err
21105 cat conftest.err >&5
21106 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21107 (exit $ac_status); } && {
21108 test -z "$ac_c_werror_flag" ||
21109 test ! -s conftest.err
21110 } && test -s conftest.$ac_objext; then
21111 ac_header_compiler=yes
21113 echo "$as_me: failed program was
:" >&5
21114 sed 's/^/| /' conftest.$ac_ext >&5
21116 ac_header_compiler=no
21119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21120 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21121 echo "${ECHO_T}$ac_header_compiler" >&6; }
21123 # Is the header present?
21124 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21125 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21126 cat >conftest.$ac_ext <<_ACEOF
21129 cat confdefs.h >>conftest.$ac_ext
21130 cat >>conftest.$ac_ext <<_ACEOF
21131 /* end confdefs.h. */
21132 #include <$ac_header>
21134 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21135 case "(($ac_try" in
21136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21137 *) ac_try_echo=$ac_try;;
21139 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21140 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21142 grep -v '^ *+' conftest.er1 >conftest.err
21144 cat conftest.err >&5
21145 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21146 (exit $ac_status); } >/dev/null && {
21147 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21148 test ! -s conftest.err
21150 ac_header_preproc=yes
21152 echo "$as_me: failed program was
:" >&5
21153 sed 's/^/| /' conftest.$ac_ext >&5
21155 ac_header_preproc=no
21158 rm -f conftest.err conftest.$ac_ext
21159 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21160 echo "${ECHO_T}$ac_header_preproc" >&6; }
21162 # So? What about this header?
21163 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21165 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21166 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21167 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21168 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21169 ac_header_preproc=yes
21172 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21173 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21174 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21175 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21176 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21177 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21178 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21179 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21180 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21181 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21182 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21183 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21187 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21188 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21189 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21190 echo $ECHO_N "(cached
) $ECHO_C" >&6
21192 eval "$as_ac_Header=\
$ac_header_preproc"
21194 ac_res=`eval echo '${'$as_ac_Header'}'`
21195 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21196 echo "${ECHO_T}$ac_res" >&6; }
21199 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21200 cat >>confdefs.h <<_ACEOF
21201 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21217 for ac_header in krb.h
21219 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21220 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21221 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21222 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21223 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21224 echo $ECHO_N "(cached
) $ECHO_C" >&6
21226 ac_res=`eval echo '${'$as_ac_Header'}'`
21227 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21228 echo "${ECHO_T}$ac_res" >&6; }
21230 # Is the header compilable?
21231 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21232 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21233 cat >conftest.$ac_ext <<_ACEOF
21236 cat confdefs.h >>conftest.$ac_ext
21237 cat >>conftest.$ac_ext <<_ACEOF
21238 /* end confdefs.h. */
21239 $ac_includes_default
21240 #include <$ac_header>
21242 rm -f conftest.$ac_objext
21243 if { (ac_try="$ac_compile"
21244 case "(($ac_try" in
21245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21246 *) ac_try_echo=$ac_try;;
21248 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21249 (eval "$ac_compile") 2>conftest.er1
21251 grep -v '^ *+' conftest.er1 >conftest.err
21253 cat conftest.err >&5
21254 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21255 (exit $ac_status); } && {
21256 test -z "$ac_c_werror_flag" ||
21257 test ! -s conftest.err
21258 } && test -s conftest.$ac_objext; then
21259 ac_header_compiler=yes
21261 echo "$as_me: failed program was
:" >&5
21262 sed 's/^/| /' conftest.$ac_ext >&5
21264 ac_header_compiler=no
21267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21268 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21269 echo "${ECHO_T}$ac_header_compiler" >&6; }
21271 # Is the header present?
21272 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21273 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21274 cat >conftest.$ac_ext <<_ACEOF
21277 cat confdefs.h >>conftest.$ac_ext
21278 cat >>conftest.$ac_ext <<_ACEOF
21279 /* end confdefs.h. */
21280 #include <$ac_header>
21282 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21283 case "(($ac_try" in
21284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21285 *) ac_try_echo=$ac_try;;
21287 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21288 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21290 grep -v '^ *+' conftest.er1 >conftest.err
21292 cat conftest.err >&5
21293 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21294 (exit $ac_status); } >/dev/null && {
21295 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21296 test ! -s conftest.err
21298 ac_header_preproc=yes
21300 echo "$as_me: failed program was
:" >&5
21301 sed 's/^/| /' conftest.$ac_ext >&5
21303 ac_header_preproc=no
21306 rm -f conftest.err conftest.$ac_ext
21307 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21308 echo "${ECHO_T}$ac_header_preproc" >&6; }
21310 # So? What about this header?
21311 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21313 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21314 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21315 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21316 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21317 ac_header_preproc=yes
21320 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21321 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21322 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21323 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21324 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21325 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21326 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21327 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21328 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21329 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21330 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21331 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21335 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21336 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21337 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21338 echo $ECHO_N "(cached
) $ECHO_C" >&6
21340 eval "$as_ac_Header=\
$ac_header_preproc"
21342 ac_res=`eval echo '${'$as_ac_Header'}'`
21343 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21344 echo "${ECHO_T}$ac_res" >&6; }
21347 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21348 cat >>confdefs.h <<_ACEOF
21349 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21354 for ac_header in kerberosIV/krb.h
21356 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21357 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21358 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21359 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21360 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21361 echo $ECHO_N "(cached
) $ECHO_C" >&6
21363 ac_res=`eval echo '${'$as_ac_Header'}'`
21364 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21365 echo "${ECHO_T}$ac_res" >&6; }
21367 # Is the header compilable?
21368 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21369 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21370 cat >conftest.$ac_ext <<_ACEOF
21373 cat confdefs.h >>conftest.$ac_ext
21374 cat >>conftest.$ac_ext <<_ACEOF
21375 /* end confdefs.h. */
21376 $ac_includes_default
21377 #include <$ac_header>
21379 rm -f conftest.$ac_objext
21380 if { (ac_try="$ac_compile"
21381 case "(($ac_try" in
21382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21383 *) ac_try_echo=$ac_try;;
21385 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21386 (eval "$ac_compile") 2>conftest.er1
21388 grep -v '^ *+' conftest.er1 >conftest.err
21390 cat conftest.err >&5
21391 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21392 (exit $ac_status); } && {
21393 test -z "$ac_c_werror_flag" ||
21394 test ! -s conftest.err
21395 } && test -s conftest.$ac_objext; then
21396 ac_header_compiler=yes
21398 echo "$as_me: failed program was
:" >&5
21399 sed 's/^/| /' conftest.$ac_ext >&5
21401 ac_header_compiler=no
21404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21405 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21406 echo "${ECHO_T}$ac_header_compiler" >&6; }
21408 # Is the header present?
21409 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21410 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21411 cat >conftest.$ac_ext <<_ACEOF
21414 cat confdefs.h >>conftest.$ac_ext
21415 cat >>conftest.$ac_ext <<_ACEOF
21416 /* end confdefs.h. */
21417 #include <$ac_header>
21419 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21420 case "(($ac_try" in
21421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21422 *) ac_try_echo=$ac_try;;
21424 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21425 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21427 grep -v '^ *+' conftest.er1 >conftest.err
21429 cat conftest.err >&5
21430 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21431 (exit $ac_status); } >/dev/null && {
21432 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21433 test ! -s conftest.err
21435 ac_header_preproc=yes
21437 echo "$as_me: failed program was
:" >&5
21438 sed 's/^/| /' conftest.$ac_ext >&5
21440 ac_header_preproc=no
21443 rm -f conftest.err conftest.$ac_ext
21444 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21445 echo "${ECHO_T}$ac_header_preproc" >&6; }
21447 # So? What about this header?
21448 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21450 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21451 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21452 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21453 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21454 ac_header_preproc=yes
21457 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21458 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21459 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21460 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21461 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21462 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21463 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21464 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21465 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21466 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21467 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21468 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21472 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21473 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21474 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21475 echo $ECHO_N "(cached
) $ECHO_C" >&6
21477 eval "$as_ac_Header=\
$ac_header_preproc"
21479 ac_res=`eval echo '${'$as_ac_Header'}'`
21480 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21481 echo "${ECHO_T}$ac_res" >&6; }
21484 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21485 cat >>confdefs.h <<_ACEOF
21486 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21491 for ac_header in kerberos/krb.h
21493 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21494 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21495 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21496 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21497 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21498 echo $ECHO_N "(cached
) $ECHO_C" >&6
21500 ac_res=`eval echo '${'$as_ac_Header'}'`
21501 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21502 echo "${ECHO_T}$ac_res" >&6; }
21504 # Is the header compilable?
21505 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21506 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21507 cat >conftest.$ac_ext <<_ACEOF
21510 cat confdefs.h >>conftest.$ac_ext
21511 cat >>conftest.$ac_ext <<_ACEOF
21512 /* end confdefs.h. */
21513 $ac_includes_default
21514 #include <$ac_header>
21516 rm -f conftest.$ac_objext
21517 if { (ac_try="$ac_compile"
21518 case "(($ac_try" in
21519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21520 *) ac_try_echo=$ac_try;;
21522 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21523 (eval "$ac_compile") 2>conftest.er1
21525 grep -v '^ *+' conftest.er1 >conftest.err
21527 cat conftest.err >&5
21528 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21529 (exit $ac_status); } && {
21530 test -z "$ac_c_werror_flag" ||
21531 test ! -s conftest.err
21532 } && test -s conftest.$ac_objext; then
21533 ac_header_compiler=yes
21535 echo "$as_me: failed program was
:" >&5
21536 sed 's/^/| /' conftest.$ac_ext >&5
21538 ac_header_compiler=no
21541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21542 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21543 echo "${ECHO_T}$ac_header_compiler" >&6; }
21545 # Is the header present?
21546 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21547 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21548 cat >conftest.$ac_ext <<_ACEOF
21551 cat confdefs.h >>conftest.$ac_ext
21552 cat >>conftest.$ac_ext <<_ACEOF
21553 /* end confdefs.h. */
21554 #include <$ac_header>
21556 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21557 case "(($ac_try" in
21558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21559 *) ac_try_echo=$ac_try;;
21561 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21562 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21564 grep -v '^ *+' conftest.er1 >conftest.err
21566 cat conftest.err >&5
21567 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21568 (exit $ac_status); } >/dev/null && {
21569 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21570 test ! -s conftest.err
21572 ac_header_preproc=yes
21574 echo "$as_me: failed program was
:" >&5
21575 sed 's/^/| /' conftest.$ac_ext >&5
21577 ac_header_preproc=no
21580 rm -f conftest.err conftest.$ac_ext
21581 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21582 echo "${ECHO_T}$ac_header_preproc" >&6; }
21584 # So? What about this header?
21585 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21587 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21588 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21589 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21590 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21591 ac_header_preproc=yes
21594 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21595 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21596 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21597 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21598 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21599 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21600 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21601 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21602 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21603 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21604 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21605 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21609 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21610 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21611 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21612 echo $ECHO_N "(cached
) $ECHO_C" >&6
21614 eval "$as_ac_Header=\
$ac_header_preproc"
21616 ac_res=`eval echo '${'$as_ac_Header'}'`
21617 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21618 echo "${ECHO_T}$ac_res" >&6; }
21621 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21622 cat >>confdefs.h <<_ACEOF
21623 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21640 for ac_header in com_err.h
21642 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21643 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21644 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21645 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21646 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21647 echo $ECHO_N "(cached
) $ECHO_C" >&6
21649 ac_res=`eval echo '${'$as_ac_Header'}'`
21650 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21651 echo "${ECHO_T}$ac_res" >&6; }
21653 # Is the header compilable?
21654 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21655 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21656 cat >conftest.$ac_ext <<_ACEOF
21659 cat confdefs.h >>conftest.$ac_ext
21660 cat >>conftest.$ac_ext <<_ACEOF
21661 /* end confdefs.h. */
21662 $ac_includes_default
21663 #include <$ac_header>
21665 rm -f conftest.$ac_objext
21666 if { (ac_try="$ac_compile"
21667 case "(($ac_try" in
21668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21669 *) ac_try_echo=$ac_try;;
21671 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21672 (eval "$ac_compile") 2>conftest.er1
21674 grep -v '^ *+' conftest.er1 >conftest.err
21676 cat conftest.err >&5
21677 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21678 (exit $ac_status); } && {
21679 test -z "$ac_c_werror_flag" ||
21680 test ! -s conftest.err
21681 } && test -s conftest.$ac_objext; then
21682 ac_header_compiler=yes
21684 echo "$as_me: failed program was
:" >&5
21685 sed 's/^/| /' conftest.$ac_ext >&5
21687 ac_header_compiler=no
21690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21691 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21692 echo "${ECHO_T}$ac_header_compiler" >&6; }
21694 # Is the header present?
21695 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21696 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21697 cat >conftest.$ac_ext <<_ACEOF
21700 cat confdefs.h >>conftest.$ac_ext
21701 cat >>conftest.$ac_ext <<_ACEOF
21702 /* end confdefs.h. */
21703 #include <$ac_header>
21705 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21706 case "(($ac_try" in
21707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21708 *) ac_try_echo=$ac_try;;
21710 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21711 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21713 grep -v '^ *+' conftest.er1 >conftest.err
21715 cat conftest.err >&5
21716 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21717 (exit $ac_status); } >/dev/null && {
21718 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21719 test ! -s conftest.err
21721 ac_header_preproc=yes
21723 echo "$as_me: failed program was
:" >&5
21724 sed 's/^/| /' conftest.$ac_ext >&5
21726 ac_header_preproc=no
21729 rm -f conftest.err conftest.$ac_ext
21730 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21731 echo "${ECHO_T}$ac_header_preproc" >&6; }
21733 # So? What about this header?
21734 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21736 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21737 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21738 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21739 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21740 ac_header_preproc=yes
21743 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21744 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21745 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21746 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21747 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21748 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21749 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21750 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21751 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21752 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21753 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21754 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21758 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21759 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21760 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21761 echo $ECHO_N "(cached
) $ECHO_C" >&6
21763 eval "$as_ac_Header=\
$ac_header_preproc"
21765 ac_res=`eval echo '${'$as_ac_Header'}'`
21766 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21767 echo "${ECHO_T}$ac_res" >&6; }
21770 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21771 cat >>confdefs.h <<_ACEOF
21772 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21781 # Solaris requires -lintl if you want strerror (which calls dgettext)
21782 # to return localized messages.
21784 { echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
21785 echo $ECHO_N "checking
for dgettext
in -lintl...
$ECHO_C" >&6; }
21786 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21787 echo $ECHO_N "(cached
) $ECHO_C" >&6
21789 ac_check_lib_save_LIBS=$LIBS
21790 LIBS="-lintl $LIBS"
21791 cat >conftest.$ac_ext <<_ACEOF
21794 cat confdefs.h >>conftest.$ac_ext
21795 cat >>conftest.$ac_ext <<_ACEOF
21796 /* end confdefs.h. */
21798 /* Override any GCC internal prototype to avoid an error.
21799 Use char because int might match the return type of a GCC
21800 builtin and then its argument prototype would still apply. */
21808 return dgettext ();
21813 rm -f conftest.$ac_objext conftest$ac_exeext
21814 if { (ac_try="$ac_link"
21815 case "(($ac_try" in
21816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21817 *) ac_try_echo=$ac_try;;
21819 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21820 (eval "$ac_link") 2>conftest.er1
21822 grep -v '^ *+' conftest.er1 >conftest.err
21824 cat conftest.err >&5
21825 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21826 (exit $ac_status); } && {
21827 test -z "$ac_c_werror_flag" ||
21828 test ! -s conftest.err
21829 } && test -s conftest$ac_exeext &&
21830 $as_test_x conftest$ac_exeext; then
21831 ac_cv_lib_intl_dgettext=yes
21833 echo "$as_me: failed program was
:" >&5
21834 sed 's/^/| /' conftest.$ac_ext >&5
21836 ac_cv_lib_intl_dgettext=no
21839 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21840 conftest$ac_exeext conftest.$ac_ext
21841 LIBS=$ac_check_lib_save_LIBS
21843 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
21844 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
21845 if test $ac_cv_lib_intl_dgettext = yes; then
21846 cat >>confdefs.h <<_ACEOF
21847 #define HAVE_LIBINTL 1
21850 LIBS="-lintl $LIBS"
21855 { echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
21856 echo $ECHO_N "checking whether localtime caches TZ...
$ECHO_C" >&6; }
21857 if test "${emacs_cv_localtime_cache+set}" = set; then
21858 echo $ECHO_N "(cached
) $ECHO_C" >&6
21860 if test x$ac_cv_func_tzset = xyes; then
21861 if test "$cross_compiling" = yes; then
21862 # If we have tzset, assume the worst when cross-compiling.
21863 emacs_cv_localtime_cache=yes
21865 cat >conftest.$ac_ext <<_ACEOF
21868 cat confdefs.h >>conftest.$ac_ext
21869 cat >>conftest.$ac_ext <<_ACEOF
21870 /* end confdefs.h. */
21872 extern char **environ;
21876 for (to = from = environ; (*to = *from); from++)
21877 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
21880 char TZ_GMT0[] = "TZ
=GMT0
";
21881 char TZ_PST8[] = "TZ
=PST8
";
21884 time_t now = time ((time_t *) 0);
21885 int hour_GMT0, hour_unset;
21886 if (putenv (TZ_GMT0) != 0)
21888 hour_GMT0 = localtime (&now)->tm_hour;
21890 hour_unset = localtime (&now)->tm_hour;
21891 if (putenv (TZ_PST8) != 0)
21893 if (localtime (&now)->tm_hour == hour_GMT0)
21896 if (localtime (&now)->tm_hour != hour_unset)
21901 rm -f conftest$ac_exeext
21902 if { (ac_try="$ac_link"
21903 case "(($ac_try" in
21904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21905 *) ac_try_echo=$ac_try;;
21907 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21908 (eval "$ac_link") 2>&5
21910 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21911 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21912 { (case "(($ac_try" in
21913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21914 *) ac_try_echo=$ac_try;;
21916 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21917 (eval "$ac_try") 2>&5
21919 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21920 (exit $ac_status); }; }; then
21921 emacs_cv_localtime_cache=no
21923 echo "$as_me: program exited with status
$ac_status" >&5
21924 echo "$as_me: failed program was
:" >&5
21925 sed 's/^/| /' conftest.$ac_ext >&5
21927 ( exit $ac_status )
21928 emacs_cv_localtime_cache=yes
21930 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21935 # If we lack tzset, report that localtime does not cache TZ,
21936 # since we can't invalidate the cache if we don't have tzset.
21937 emacs_cv_localtime_cache=no
21940 { echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
21941 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
21942 if test $emacs_cv_localtime_cache = yes; then
21944 cat >>confdefs.h <<\_ACEOF
21945 #define LOCALTIME_CACHE 1
21950 if test "x
$HAVE_TIMEVAL" = xyes; then
21952 for ac_func in gettimeofday
21954 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
21955 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
21956 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
21957 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
21958 echo $ECHO_N "(cached
) $ECHO_C" >&6
21960 cat >conftest.$ac_ext <<_ACEOF
21963 cat confdefs.h >>conftest.$ac_ext
21964 cat >>conftest.$ac_ext <<_ACEOF
21965 /* end confdefs.h. */
21966 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21967 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21968 #define $ac_func innocuous_$ac_func
21970 /* System header to define __stub macros and hopefully few prototypes,
21971 which can conflict with char $ac_func (); below.
21972 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21973 <limits.h> exists even on freestanding compilers. */
21976 # include <limits.h>
21978 # include <assert.h>
21983 /* Override any GCC internal prototype to avoid an error.
21984 Use char because int might match the return type of a GCC
21985 builtin and then its argument prototype would still apply. */
21990 /* The GNU C library defines this for functions which it implements
21991 to always fail with ENOSYS. Some functions are actually named
21992 something starting with __ and the normal name is an alias. */
21993 #if defined __stub_$ac_func || defined __stub___$ac_func
22000 return $ac_func ();
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 eval "$as_ac_var=yes"
22025 echo "$as_me: failed program was
:" >&5
22026 sed 's/^/| /' conftest.$ac_ext >&5
22028 eval "$as_ac_var=no
"
22031 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22032 conftest$ac_exeext conftest.$ac_ext
22034 ac_res=`eval echo '${'$as_ac_var'}'`
22035 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22036 echo "${ECHO_T}$ac_res" >&6; }
22037 if test `eval echo '${'$as_ac_var'}'` = yes; then
22038 cat >>confdefs.h <<_ACEOF
22039 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
22045 if test $ac_cv_func_gettimeofday = yes; then
22046 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
22047 echo $ECHO_N "checking whether gettimeofday can accept two arguments...
$ECHO_C" >&6; }
22048 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22049 echo $ECHO_N "(cached
) $ECHO_C" >&6
22051 cat >conftest.$ac_ext <<_ACEOF
22054 cat confdefs.h >>conftest.$ac_ext
22055 cat >>conftest.$ac_ext <<_ACEOF
22056 /* end confdefs.h. */
22058 #ifdef TIME_WITH_SYS_TIME
22059 #include <sys/time.h>
22062 #ifdef HAVE_SYS_TIME_H
22063 #include <sys/time.h>
22071 struct timeval time;
22072 gettimeofday (&time, 0);
22077 rm -f conftest.$ac_objext
22078 if { (ac_try="$ac_compile"
22079 case "(($ac_try" in
22080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22081 *) ac_try_echo=$ac_try;;
22083 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22084 (eval "$ac_compile") 2>conftest.er1
22086 grep -v '^ *+' conftest.er1 >conftest.err
22088 cat conftest.err >&5
22089 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22090 (exit $ac_status); } && {
22091 test -z "$ac_c_werror_flag" ||
22092 test ! -s conftest.err
22093 } && test -s conftest.$ac_objext; then
22094 emacs_cv_gettimeofday_two_arguments=yes
22096 echo "$as_me: failed program was
:" >&5
22097 sed 's/^/| /' conftest.$ac_ext >&5
22099 emacs_cv_gettimeofday_two_arguments=no
22102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22104 { echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
22105 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22106 if test $emacs_cv_gettimeofday_two_arguments = no; then
22108 cat >>confdefs.h <<\_ACEOF
22109 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22117 { echo "$as_me:$LINENO: checking
for socket
" >&5
22118 echo $ECHO_N "checking
for socket...
$ECHO_C" >&6; }
22119 if test "${ac_cv_func_socket+set}" = set; then
22120 echo $ECHO_N "(cached
) $ECHO_C" >&6
22122 cat >conftest.$ac_ext <<_ACEOF
22125 cat confdefs.h >>conftest.$ac_ext
22126 cat >>conftest.$ac_ext <<_ACEOF
22127 /* end confdefs.h. */
22128 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22129 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22130 #define socket innocuous_socket
22132 /* System header to define __stub macros and hopefully few prototypes,
22133 which can conflict with char socket (); below.
22134 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22135 <limits.h> exists even on freestanding compilers. */
22138 # include <limits.h>
22140 # include <assert.h>
22145 /* Override any GCC internal prototype to avoid an error.
22146 Use char because int might match the return type of a GCC
22147 builtin and then its argument prototype would still apply. */
22152 /* The GNU C library defines this for functions which it implements
22153 to always fail with ENOSYS. Some functions are actually named
22154 something starting with __ and the normal name is an alias. */
22155 #if defined __stub_socket || defined __stub___socket
22167 rm -f conftest.$ac_objext conftest$ac_exeext
22168 if { (ac_try="$ac_link"
22169 case "(($ac_try" in
22170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22171 *) ac_try_echo=$ac_try;;
22173 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22174 (eval "$ac_link") 2>conftest.er1
22176 grep -v '^ *+' conftest.er1 >conftest.err
22178 cat conftest.err >&5
22179 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22180 (exit $ac_status); } && {
22181 test -z "$ac_c_werror_flag" ||
22182 test ! -s conftest.err
22183 } && test -s conftest$ac_exeext &&
22184 $as_test_x conftest$ac_exeext; then
22185 ac_cv_func_socket=yes
22187 echo "$as_me: failed program was
:" >&5
22188 sed 's/^/| /' conftest.$ac_ext >&5
22190 ac_cv_func_socket=no
22193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22194 conftest$ac_exeext conftest.$ac_ext
22196 { echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
22197 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22198 if test $ac_cv_func_socket = yes; then
22204 if test $ok_so_far = yes; then
22205 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22206 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
22207 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
22208 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22209 echo $ECHO_N "(cached
) $ECHO_C" >&6
22211 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
22212 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22214 # Is the header compilable?
22215 { echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
22216 echo $ECHO_N "checking netinet
/in.h usability...
$ECHO_C" >&6; }
22217 cat >conftest.$ac_ext <<_ACEOF
22220 cat confdefs.h >>conftest.$ac_ext
22221 cat >>conftest.$ac_ext <<_ACEOF
22222 /* end confdefs.h. */
22223 $ac_includes_default
22224 #include <netinet/in.h>
22226 rm -f conftest.$ac_objext
22227 if { (ac_try="$ac_compile"
22228 case "(($ac_try" in
22229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22230 *) ac_try_echo=$ac_try;;
22232 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22233 (eval "$ac_compile") 2>conftest.er1
22235 grep -v '^ *+' conftest.er1 >conftest.err
22237 cat conftest.err >&5
22238 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22239 (exit $ac_status); } && {
22240 test -z "$ac_c_werror_flag" ||
22241 test ! -s conftest.err
22242 } && test -s conftest.$ac_objext; then
22243 ac_header_compiler=yes
22245 echo "$as_me: failed program was
:" >&5
22246 sed 's/^/| /' conftest.$ac_ext >&5
22248 ac_header_compiler=no
22251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22252 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22253 echo "${ECHO_T}$ac_header_compiler" >&6; }
22255 # Is the header present?
22256 { echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
22257 echo $ECHO_N "checking netinet
/in.h presence...
$ECHO_C" >&6; }
22258 cat >conftest.$ac_ext <<_ACEOF
22261 cat confdefs.h >>conftest.$ac_ext
22262 cat >>conftest.$ac_ext <<_ACEOF
22263 /* end confdefs.h. */
22264 #include <netinet/in.h>
22266 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22267 case "(($ac_try" in
22268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22269 *) ac_try_echo=$ac_try;;
22271 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22272 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22274 grep -v '^ *+' conftest.er1 >conftest.err
22276 cat conftest.err >&5
22277 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22278 (exit $ac_status); } >/dev/null && {
22279 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22280 test ! -s conftest.err
22282 ac_header_preproc=yes
22284 echo "$as_me: failed program was
:" >&5
22285 sed 's/^/| /' conftest.$ac_ext >&5
22287 ac_header_preproc=no
22290 rm -f conftest.err conftest.$ac_ext
22291 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22292 echo "${ECHO_T}$ac_header_preproc" >&6; }
22294 # So? What about this header?
22295 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22297 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22298 echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22299 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
22300 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
22301 ac_header_preproc=yes
22304 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
22305 echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
22306 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
22307 echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
22308 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
22309 echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
22310 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22311 echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22312 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
22313 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
22314 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
22315 echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
22319 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
22320 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
22321 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22322 echo $ECHO_N "(cached
) $ECHO_C" >&6
22324 ac_cv_header_netinet_in_h=$ac_header_preproc
22326 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
22327 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22330 if test $ac_cv_header_netinet_in_h = yes; then
22338 if test $ok_so_far = yes; then
22339 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22340 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22341 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22342 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22343 echo $ECHO_N "(cached
) $ECHO_C" >&6
22345 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22346 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22348 # Is the header compilable?
22349 { echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
22350 echo $ECHO_N "checking arpa
/inet.h usability...
$ECHO_C" >&6; }
22351 cat >conftest.$ac_ext <<_ACEOF
22354 cat confdefs.h >>conftest.$ac_ext
22355 cat >>conftest.$ac_ext <<_ACEOF
22356 /* end confdefs.h. */
22357 $ac_includes_default
22358 #include <arpa/inet.h>
22360 rm -f conftest.$ac_objext
22361 if { (ac_try="$ac_compile"
22362 case "(($ac_try" in
22363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22364 *) ac_try_echo=$ac_try;;
22366 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22367 (eval "$ac_compile") 2>conftest.er1
22369 grep -v '^ *+' conftest.er1 >conftest.err
22371 cat conftest.err >&5
22372 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22373 (exit $ac_status); } && {
22374 test -z "$ac_c_werror_flag" ||
22375 test ! -s conftest.err
22376 } && test -s conftest.$ac_objext; then
22377 ac_header_compiler=yes
22379 echo "$as_me: failed program was
:" >&5
22380 sed 's/^/| /' conftest.$ac_ext >&5
22382 ac_header_compiler=no
22385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22386 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22387 echo "${ECHO_T}$ac_header_compiler" >&6; }
22389 # Is the header present?
22390 { echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
22391 echo $ECHO_N "checking arpa
/inet.h presence...
$ECHO_C" >&6; }
22392 cat >conftest.$ac_ext <<_ACEOF
22395 cat confdefs.h >>conftest.$ac_ext
22396 cat >>conftest.$ac_ext <<_ACEOF
22397 /* end confdefs.h. */
22398 #include <arpa/inet.h>
22400 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22401 case "(($ac_try" in
22402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22403 *) ac_try_echo=$ac_try;;
22405 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22406 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22408 grep -v '^ *+' conftest.er1 >conftest.err
22410 cat conftest.err >&5
22411 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22412 (exit $ac_status); } >/dev/null && {
22413 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22414 test ! -s conftest.err
22416 ac_header_preproc=yes
22418 echo "$as_me: failed program was
:" >&5
22419 sed 's/^/| /' conftest.$ac_ext >&5
22421 ac_header_preproc=no
22424 rm -f conftest.err conftest.$ac_ext
22425 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22426 echo "${ECHO_T}$ac_header_preproc" >&6; }
22428 # So? What about this header?
22429 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22431 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22432 echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22433 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
22434 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
22435 ac_header_preproc=yes
22438 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
22439 echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
22440 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
22441 echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
22442 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
22443 echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
22444 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22445 echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22446 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
22447 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
22448 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
22449 echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
22453 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22454 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22455 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22456 echo $ECHO_N "(cached
) $ECHO_C" >&6
22458 ac_cv_header_arpa_inet_h=$ac_header_preproc
22460 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22461 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22464 if test $ac_cv_header_arpa_inet_h = yes; then
22472 if test $ok_so_far = yes; then
22474 cat >>confdefs.h <<\_ACEOF
22475 #define HAVE_INET_SOCKETS 1
22481 for ac_header in sys/ioctl.h
22483 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22484 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22485 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22486 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22487 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22488 echo $ECHO_N "(cached
) $ECHO_C" >&6
22490 ac_res=`eval echo '${'$as_ac_Header'}'`
22491 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22492 echo "${ECHO_T}$ac_res" >&6; }
22494 # Is the header compilable?
22495 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22496 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22497 cat >conftest.$ac_ext <<_ACEOF
22500 cat confdefs.h >>conftest.$ac_ext
22501 cat >>conftest.$ac_ext <<_ACEOF
22502 /* end confdefs.h. */
22503 $ac_includes_default
22504 #include <$ac_header>
22506 rm -f conftest.$ac_objext
22507 if { (ac_try="$ac_compile"
22508 case "(($ac_try" in
22509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22510 *) ac_try_echo=$ac_try;;
22512 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22513 (eval "$ac_compile") 2>conftest.er1
22515 grep -v '^ *+' conftest.er1 >conftest.err
22517 cat conftest.err >&5
22518 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22519 (exit $ac_status); } && {
22520 test -z "$ac_c_werror_flag" ||
22521 test ! -s conftest.err
22522 } && test -s conftest.$ac_objext; then
22523 ac_header_compiler=yes
22525 echo "$as_me: failed program was
:" >&5
22526 sed 's/^/| /' conftest.$ac_ext >&5
22528 ac_header_compiler=no
22531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22532 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22533 echo "${ECHO_T}$ac_header_compiler" >&6; }
22535 # Is the header present?
22536 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22537 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22538 cat >conftest.$ac_ext <<_ACEOF
22541 cat confdefs.h >>conftest.$ac_ext
22542 cat >>conftest.$ac_ext <<_ACEOF
22543 /* end confdefs.h. */
22544 #include <$ac_header>
22546 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22547 case "(($ac_try" in
22548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22549 *) ac_try_echo=$ac_try;;
22551 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22552 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22554 grep -v '^ *+' conftest.er1 >conftest.err
22556 cat conftest.err >&5
22557 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22558 (exit $ac_status); } >/dev/null && {
22559 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22560 test ! -s conftest.err
22562 ac_header_preproc=yes
22564 echo "$as_me: failed program was
:" >&5
22565 sed 's/^/| /' conftest.$ac_ext >&5
22567 ac_header_preproc=no
22570 rm -f conftest.err conftest.$ac_ext
22571 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22572 echo "${ECHO_T}$ac_header_preproc" >&6; }
22574 # So? What about this header?
22575 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22577 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22578 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22579 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22580 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22581 ac_header_preproc=yes
22584 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22585 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22586 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22587 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22588 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22589 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22590 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22591 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22592 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22593 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22594 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22595 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22599 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22600 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22601 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22602 echo $ECHO_N "(cached
) $ECHO_C" >&6
22604 eval "$as_ac_Header=\
$ac_header_preproc"
22606 ac_res=`eval echo '${'$as_ac_Header'}'`
22607 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22608 echo "${ECHO_T}$ac_res" >&6; }
22611 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22612 cat >>confdefs.h <<_ACEOF
22613 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22621 if test -f /usr/lpp/X11/bin/smt.exp; then
22623 cat >>confdefs.h <<\_ACEOF
22624 #define HAVE_AIX_SMT_EXP 1
22629 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
22630 echo $ECHO_N "checking whether system supports dynamic ptys...
$ECHO_C" >&6; }
22631 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22632 { echo "$as_me:$LINENO: result
: yes" >&5
22633 echo "${ECHO_T}yes" >&6; }
22635 cat >>confdefs.h <<\_ACEOF
22636 #define HAVE_DEV_PTMX 1
22640 { echo "$as_me:$LINENO: result
: no
" >&5
22641 echo "${ECHO_T}no
" >&6; }
22644 { echo "$as_me:$LINENO: checking
for pid_t
" >&5
22645 echo $ECHO_N "checking
for pid_t...
$ECHO_C" >&6; }
22646 if test "${ac_cv_type_pid_t+set}" = set; then
22647 echo $ECHO_N "(cached
) $ECHO_C" >&6
22649 cat >conftest.$ac_ext <<_ACEOF
22652 cat confdefs.h >>conftest.$ac_ext
22653 cat >>conftest.$ac_ext <<_ACEOF
22654 /* end confdefs.h. */
22655 $ac_includes_default
22656 typedef pid_t ac__type_new_;
22660 if ((ac__type_new_ *) 0)
22662 if (sizeof (ac__type_new_))
22668 rm -f conftest.$ac_objext
22669 if { (ac_try="$ac_compile"
22670 case "(($ac_try" in
22671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22672 *) ac_try_echo=$ac_try;;
22674 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22675 (eval "$ac_compile") 2>conftest.er1
22677 grep -v '^ *+' conftest.er1 >conftest.err
22679 cat conftest.err >&5
22680 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22681 (exit $ac_status); } && {
22682 test -z "$ac_c_werror_flag" ||
22683 test ! -s conftest.err
22684 } && test -s conftest.$ac_objext; then
22685 ac_cv_type_pid_t=yes
22687 echo "$as_me: failed program was
:" >&5
22688 sed 's/^/| /' conftest.$ac_ext >&5
22690 ac_cv_type_pid_t=no
22693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22695 { echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
22696 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22697 if test $ac_cv_type_pid_t = yes; then
22701 cat >>confdefs.h <<_ACEOF
22708 for ac_header in vfork.h
22710 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22711 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22712 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22713 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22714 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22715 echo $ECHO_N "(cached
) $ECHO_C" >&6
22717 ac_res=`eval echo '${'$as_ac_Header'}'`
22718 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22719 echo "${ECHO_T}$ac_res" >&6; }
22721 # Is the header compilable?
22722 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22723 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22724 cat >conftest.$ac_ext <<_ACEOF
22727 cat confdefs.h >>conftest.$ac_ext
22728 cat >>conftest.$ac_ext <<_ACEOF
22729 /* end confdefs.h. */
22730 $ac_includes_default
22731 #include <$ac_header>
22733 rm -f conftest.$ac_objext
22734 if { (ac_try="$ac_compile"
22735 case "(($ac_try" in
22736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22737 *) ac_try_echo=$ac_try;;
22739 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22740 (eval "$ac_compile") 2>conftest.er1
22742 grep -v '^ *+' conftest.er1 >conftest.err
22744 cat conftest.err >&5
22745 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22746 (exit $ac_status); } && {
22747 test -z "$ac_c_werror_flag" ||
22748 test ! -s conftest.err
22749 } && test -s conftest.$ac_objext; then
22750 ac_header_compiler=yes
22752 echo "$as_me: failed program was
:" >&5
22753 sed 's/^/| /' conftest.$ac_ext >&5
22755 ac_header_compiler=no
22758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22759 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22760 echo "${ECHO_T}$ac_header_compiler" >&6; }
22762 # Is the header present?
22763 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22764 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22765 cat >conftest.$ac_ext <<_ACEOF
22768 cat confdefs.h >>conftest.$ac_ext
22769 cat >>conftest.$ac_ext <<_ACEOF
22770 /* end confdefs.h. */
22771 #include <$ac_header>
22773 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22774 case "(($ac_try" in
22775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22776 *) ac_try_echo=$ac_try;;
22778 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22779 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22781 grep -v '^ *+' conftest.er1 >conftest.err
22783 cat conftest.err >&5
22784 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22785 (exit $ac_status); } >/dev/null && {
22786 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22787 test ! -s conftest.err
22789 ac_header_preproc=yes
22791 echo "$as_me: failed program was
:" >&5
22792 sed 's/^/| /' conftest.$ac_ext >&5
22794 ac_header_preproc=no
22797 rm -f conftest.err conftest.$ac_ext
22798 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22799 echo "${ECHO_T}$ac_header_preproc" >&6; }
22801 # So? What about this header?
22802 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22804 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22805 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22806 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22807 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22808 ac_header_preproc=yes
22811 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22812 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22813 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22814 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22815 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22816 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22817 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22818 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22819 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22820 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22821 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22822 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22826 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22827 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22828 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22829 echo $ECHO_N "(cached
) $ECHO_C" >&6
22831 eval "$as_ac_Header=\
$ac_header_preproc"
22833 ac_res=`eval echo '${'$as_ac_Header'}'`
22834 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22835 echo "${ECHO_T}$ac_res" >&6; }
22838 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22839 cat >>confdefs.h <<_ACEOF
22840 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22849 for ac_func in fork vfork
22851 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
22852 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
22853 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
22854 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
22855 echo $ECHO_N "(cached
) $ECHO_C" >&6
22857 cat >conftest.$ac_ext <<_ACEOF
22860 cat confdefs.h >>conftest.$ac_ext
22861 cat >>conftest.$ac_ext <<_ACEOF
22862 /* end confdefs.h. */
22863 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22864 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22865 #define $ac_func innocuous_$ac_func
22867 /* System header to define __stub macros and hopefully few prototypes,
22868 which can conflict with char $ac_func (); below.
22869 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22870 <limits.h> exists even on freestanding compilers. */
22873 # include <limits.h>
22875 # include <assert.h>
22880 /* Override any GCC internal prototype to avoid an error.
22881 Use char because int might match the return type of a GCC
22882 builtin and then its argument prototype would still apply. */
22887 /* The GNU C library defines this for functions which it implements
22888 to always fail with ENOSYS. Some functions are actually named
22889 something starting with __ and the normal name is an alias. */
22890 #if defined __stub_$ac_func || defined __stub___$ac_func
22897 return $ac_func ();
22902 rm -f conftest.$ac_objext conftest$ac_exeext
22903 if { (ac_try="$ac_link"
22904 case "(($ac_try" in
22905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22906 *) ac_try_echo=$ac_try;;
22908 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22909 (eval "$ac_link") 2>conftest.er1
22911 grep -v '^ *+' conftest.er1 >conftest.err
22913 cat conftest.err >&5
22914 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22915 (exit $ac_status); } && {
22916 test -z "$ac_c_werror_flag" ||
22917 test ! -s conftest.err
22918 } && test -s conftest$ac_exeext &&
22919 $as_test_x conftest$ac_exeext; then
22920 eval "$as_ac_var=yes"
22922 echo "$as_me: failed program was
:" >&5
22923 sed 's/^/| /' conftest.$ac_ext >&5
22925 eval "$as_ac_var=no
"
22928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22929 conftest$ac_exeext conftest.$ac_ext
22931 ac_res=`eval echo '${'$as_ac_var'}'`
22932 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22933 echo "${ECHO_T}$ac_res" >&6; }
22934 if test `eval echo '${'$as_ac_var'}'` = yes; then
22935 cat >>confdefs.h <<_ACEOF
22936 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
22942 if test "x
$ac_cv_func_fork" = xyes; then
22943 { echo "$as_me:$LINENO: checking
for working fork
" >&5
22944 echo $ECHO_N "checking
for working fork...
$ECHO_C" >&6; }
22945 if test "${ac_cv_func_fork_works+set}" = set; then
22946 echo $ECHO_N "(cached
) $ECHO_C" >&6
22948 if test "$cross_compiling" = yes; then
22949 ac_cv_func_fork_works=cross
22951 cat >conftest.$ac_ext <<_ACEOF
22954 cat confdefs.h >>conftest.$ac_ext
22955 cat >>conftest.$ac_ext <<_ACEOF
22956 /* end confdefs.h. */
22957 $ac_includes_default
22962 /* By Ruediger Kuhlmann. */
22963 return fork () < 0;
22969 rm -f conftest$ac_exeext
22970 if { (ac_try="$ac_link"
22971 case "(($ac_try" in
22972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22973 *) ac_try_echo=$ac_try;;
22975 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22976 (eval "$ac_link") 2>&5
22978 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22979 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22980 { (case "(($ac_try" in
22981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22982 *) ac_try_echo=$ac_try;;
22984 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22985 (eval "$ac_try") 2>&5
22987 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22988 (exit $ac_status); }; }; then
22989 ac_cv_func_fork_works=yes
22991 echo "$as_me: program exited with status
$ac_status" >&5
22992 echo "$as_me: failed program was
:" >&5
22993 sed 's/^/| /' conftest.$ac_ext >&5
22995 ( exit $ac_status )
22996 ac_cv_func_fork_works=no
22998 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23003 { echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
23004 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23007 ac_cv_func_fork_works=$ac_cv_func_fork
23009 if test "x
$ac_cv_func_fork_works" = xcross; then
23011 *-*-amigaos* | *-*-msdosdjgpp*)
23012 # Override, as these systems have only a dummy fork() stub
23013 ac_cv_func_fork_works=no
23016 ac_cv_func_fork_works=yes
23019 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
23020 echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
23022 ac_cv_func_vfork_works=$ac_cv_func_vfork
23023 if test "x
$ac_cv_func_vfork" = xyes; then
23024 { echo "$as_me:$LINENO: checking
for working vfork
" >&5
23025 echo $ECHO_N "checking
for working vfork...
$ECHO_C" >&6; }
23026 if test "${ac_cv_func_vfork_works+set}" = set; then
23027 echo $ECHO_N "(cached
) $ECHO_C" >&6
23029 if test "$cross_compiling" = yes; then
23030 ac_cv_func_vfork_works=cross
23032 cat >conftest.$ac_ext <<_ACEOF
23035 cat confdefs.h >>conftest.$ac_ext
23036 cat >>conftest.$ac_ext <<_ACEOF
23037 /* end confdefs.h. */
23038 /* Thanks to Paul Eggert for this test. */
23039 $ac_includes_default
23040 #include <sys/wait.h>
23041 #ifdef HAVE_VFORK_H
23042 # include <vfork.h>
23044 /* On some sparc systems, changes by the child to local and incoming
23045 argument registers are propagated back to the parent. The compiler
23046 is told about this with #include <vfork.h>, but some compilers
23047 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23048 static variable whose address is put into a register that is
23049 clobbered by the vfork. */
23052 sparc_address_test (int arg)
23054 sparc_address_test (arg) int arg;
23057 static pid_t child;
23075 pid_t parent = getpid ();
23078 sparc_address_test (0);
23083 /* Here is another test for sparc vfork register problems. This
23084 test uses lots of local variables, at least as many local
23085 variables as main has allocated so far including compiler
23086 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23087 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23088 reuse the register of parent for one of the local variables,
23089 since it will think that parent can't possibly be used any more
23090 in this routine. Assigning to the local variable will thus
23091 munge parent in the parent process. */
23093 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23094 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23095 /* Convince the compiler that p..p7 are live; otherwise, it might
23096 use the same hardware register for all 8 local variables. */
23097 if (p != p1 || p != p2 || p != p3 || p != p4
23098 || p != p5 || p != p6 || p != p7)
23101 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23102 from child file descriptors. If the child closes a descriptor
23103 before it execs or exits, this munges the parent's descriptor
23104 as well. Test for this by closing stdout in the child. */
23105 _exit(close(fileno(stdout)) != 0);
23110 while (wait(&status) != child)
23113 /* Was there some problem with vforking? */
23116 /* Did the child fail? (This shouldn't happen.) */
23119 /* Did the vfork/compiler bug occur? */
23120 || parent != getpid()
23122 /* Did the file descriptor bug occur? */
23123 || fstat(fileno(stdout), &st) != 0
23128 rm -f conftest$ac_exeext
23129 if { (ac_try="$ac_link"
23130 case "(($ac_try" in
23131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23132 *) ac_try_echo=$ac_try;;
23134 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23135 (eval "$ac_link") 2>&5
23137 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23138 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23139 { (case "(($ac_try" in
23140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23141 *) ac_try_echo=$ac_try;;
23143 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23144 (eval "$ac_try") 2>&5
23146 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23147 (exit $ac_status); }; }; then
23148 ac_cv_func_vfork_works=yes
23150 echo "$as_me: program exited with status
$ac_status" >&5
23151 echo "$as_me: failed program was
:" >&5
23152 sed 's/^/| /' conftest.$ac_ext >&5
23154 ( exit $ac_status )
23155 ac_cv_func_vfork_works=no
23157 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23162 { echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
23163 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23166 if test "x
$ac_cv_func_fork_works" = xcross; then
23167 ac_cv_func_vfork_works=$ac_cv_func_vfork
23168 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
23169 echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
23172 if test "x
$ac_cv_func_vfork_works" = xyes; then
23174 cat >>confdefs.h <<\_ACEOF
23175 #define HAVE_WORKING_VFORK 1
23180 cat >>confdefs.h <<\_ACEOF
23185 if test "x
$ac_cv_func_fork_works" = xyes; then
23187 cat >>confdefs.h <<\_ACEOF
23188 #define HAVE_WORKING_FORK 1
23194 { echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
23195 echo $ECHO_N "checking
for nl_langinfo and CODESET...
$ECHO_C" >&6; }
23196 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23197 echo $ECHO_N "(cached
) $ECHO_C" >&6
23199 cat >conftest.$ac_ext <<_ACEOF
23202 cat confdefs.h >>conftest.$ac_ext
23203 cat >>conftest.$ac_ext <<_ACEOF
23204 /* end confdefs.h. */
23205 #include <langinfo.h>
23209 char* cs = nl_langinfo(CODESET);
23214 rm -f conftest.$ac_objext conftest$ac_exeext
23215 if { (ac_try="$ac_link"
23216 case "(($ac_try" in
23217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23218 *) ac_try_echo=$ac_try;;
23220 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23221 (eval "$ac_link") 2>conftest.er1
23223 grep -v '^ *+' conftest.er1 >conftest.err
23225 cat conftest.err >&5
23226 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23227 (exit $ac_status); } && {
23228 test -z "$ac_c_werror_flag" ||
23229 test ! -s conftest.err
23230 } && test -s conftest$ac_exeext &&
23231 $as_test_x conftest$ac_exeext; then
23232 emacs_cv_langinfo_codeset=yes
23234 echo "$as_me: failed program was
:" >&5
23235 sed 's/^/| /' conftest.$ac_ext >&5
23237 emacs_cv_langinfo_codeset=no
23240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23241 conftest$ac_exeext conftest.$ac_ext
23244 { echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
23245 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23246 if test $emacs_cv_langinfo_codeset = yes; then
23248 cat >>confdefs.h <<\_ACEOF
23249 #define HAVE_LANGINFO_CODESET 1
23254 { echo "$as_me:$LINENO: checking
for size_t
" >&5
23255 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
23256 if test "${ac_cv_type_size_t+set}" = set; then
23257 echo $ECHO_N "(cached
) $ECHO_C" >&6
23259 cat >conftest.$ac_ext <<_ACEOF
23262 cat confdefs.h >>conftest.$ac_ext
23263 cat >>conftest.$ac_ext <<_ACEOF
23264 /* end confdefs.h. */
23265 $ac_includes_default
23266 typedef size_t ac__type_new_;
23270 if ((ac__type_new_ *) 0)
23272 if (sizeof (ac__type_new_))
23278 rm -f conftest.$ac_objext
23279 if { (ac_try="$ac_compile"
23280 case "(($ac_try" in
23281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23282 *) ac_try_echo=$ac_try;;
23284 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23285 (eval "$ac_compile") 2>conftest.er1
23287 grep -v '^ *+' conftest.er1 >conftest.err
23289 cat conftest.err >&5
23290 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23291 (exit $ac_status); } && {
23292 test -z "$ac_c_werror_flag" ||
23293 test ! -s conftest.err
23294 } && test -s conftest.$ac_objext; then
23295 ac_cv_type_size_t=yes
23297 echo "$as_me: failed program was
:" >&5
23298 sed 's/^/| /' conftest.$ac_ext >&5
23300 ac_cv_type_size_t=no
23303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23305 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
23306 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23307 if test $ac_cv_type_size_t = yes; then
23309 cat >>confdefs.h <<_ACEOF
23310 #define HAVE_SIZE_T 1
23317 { echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
23318 echo $ECHO_N "checking
for mbstate_t...
$ECHO_C" >&6; }
23319 if test "${ac_cv_type_mbstate_t+set}" = set; then
23320 echo $ECHO_N "(cached
) $ECHO_C" >&6
23322 cat >conftest.$ac_ext <<_ACEOF
23325 cat confdefs.h >>conftest.$ac_ext
23326 cat >>conftest.$ac_ext <<_ACEOF
23327 /* end confdefs.h. */
23328 $ac_includes_default
23329 # include <wchar.h>
23333 mbstate_t x; return sizeof x;
23338 rm -f conftest.$ac_objext
23339 if { (ac_try="$ac_compile"
23340 case "(($ac_try" in
23341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23342 *) ac_try_echo=$ac_try;;
23344 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23345 (eval "$ac_compile") 2>conftest.er1
23347 grep -v '^ *+' conftest.er1 >conftest.err
23349 cat conftest.err >&5
23350 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23351 (exit $ac_status); } && {
23352 test -z "$ac_c_werror_flag" ||
23353 test ! -s conftest.err
23354 } && test -s conftest.$ac_objext; then
23355 ac_cv_type_mbstate_t=yes
23357 echo "$as_me: failed program was
:" >&5
23358 sed 's/^/| /' conftest.$ac_ext >&5
23360 ac_cv_type_mbstate_t=no
23363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23365 { echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
23366 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23367 if test $ac_cv_type_mbstate_t = yes; then
23369 cat >>confdefs.h <<\_ACEOF
23370 #define HAVE_MBSTATE_T 1
23375 cat >>confdefs.h <<\_ACEOF
23376 #define mbstate_t int
23381 { echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
23382 echo $ECHO_N "checking
for C restrict keyword...
$ECHO_C" >&6; }
23383 if test "${emacs_cv_c_restrict+set}" = set; then
23384 echo $ECHO_N "(cached
) $ECHO_C" >&6
23386 cat >conftest.$ac_ext <<_ACEOF
23389 cat confdefs.h >>conftest.$ac_ext
23390 cat >>conftest.$ac_ext <<_ACEOF
23391 /* end confdefs.h. */
23392 void fred (int *restrict x);
23401 rm -f conftest.$ac_objext
23402 if { (ac_try="$ac_compile"
23403 case "(($ac_try" in
23404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23405 *) ac_try_echo=$ac_try;;
23407 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23408 (eval "$ac_compile") 2>conftest.er1
23410 grep -v '^ *+' conftest.er1 >conftest.err
23412 cat conftest.err >&5
23413 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23414 (exit $ac_status); } && {
23415 test -z "$ac_c_werror_flag" ||
23416 test ! -s conftest.err
23417 } && test -s conftest.$ac_objext; then
23418 emacs_cv_c_restrict=yes
23420 echo "$as_me: failed program was
:" >&5
23421 sed 's/^/| /' conftest.$ac_ext >&5
23423 cat >conftest.$ac_ext <<_ACEOF
23426 cat confdefs.h >>conftest.$ac_ext
23427 cat >>conftest.$ac_ext <<_ACEOF
23428 /* end confdefs.h. */
23429 void fred (int *__restrict x);
23438 rm -f conftest.$ac_objext
23439 if { (ac_try="$ac_compile"
23440 case "(($ac_try" in
23441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23442 *) ac_try_echo=$ac_try;;
23444 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23445 (eval "$ac_compile") 2>conftest.er1
23447 grep -v '^ *+' conftest.er1 >conftest.err
23449 cat conftest.err >&5
23450 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23451 (exit $ac_status); } && {
23452 test -z "$ac_c_werror_flag" ||
23453 test ! -s conftest.err
23454 } && test -s conftest.$ac_objext; then
23455 emacs_cv_c_restrict=__restrict
23457 echo "$as_me: failed program was
:" >&5
23458 sed 's/^/| /' conftest.$ac_ext >&5
23460 emacs_cv_c_restrict=no
23463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23468 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
23469 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23470 case "$emacs_cv_c_restrict" in
23471 yes) emacs_restrict=restrict;;
23472 no) emacs_restrict="";;
23473 *) emacs_restrict="$emacs_cv_c_restrict";;
23475 if test "$emacs_restrict" != __restrict; then
23477 cat >>confdefs.h <<_ACEOF
23478 #define __restrict $emacs_restrict
23483 { echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
23484 echo $ECHO_N "checking
for C restricted array declarations...
$ECHO_C" >&6; }
23485 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23486 echo $ECHO_N "(cached
) $ECHO_C" >&6
23488 cat >conftest.$ac_ext <<_ACEOF
23491 cat confdefs.h >>conftest.$ac_ext
23492 cat >>conftest.$ac_ext <<_ACEOF
23493 /* end confdefs.h. */
23494 void fred (int x[__restrict]);
23503 rm -f conftest.$ac_objext
23504 if { (ac_try="$ac_compile"
23505 case "(($ac_try" in
23506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23507 *) ac_try_echo=$ac_try;;
23509 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23510 (eval "$ac_compile") 2>conftest.er1
23512 grep -v '^ *+' conftest.er1 >conftest.err
23514 cat conftest.err >&5
23515 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23516 (exit $ac_status); } && {
23517 test -z "$ac_c_werror_flag" ||
23518 test ! -s conftest.err
23519 } && test -s conftest.$ac_objext; then
23520 emacs_cv_c_restrict_arr=yes
23522 echo "$as_me: failed program was
:" >&5
23523 sed 's/^/| /' conftest.$ac_ext >&5
23525 emacs_cv_c_restrict_arr=no
23528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23530 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
23531 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23532 if test "$emacs_cv_c_restrict_arr" = yes; then
23534 cat >>confdefs.h <<\_ACEOF
23535 #define __restrict_arr __restrict
23542 # Set up the CFLAGS for real compilation, so we can substitute it.
23543 CFLAGS="$REAL_CFLAGS"
23544 CPPFLAGS="$REAL_CPPFLAGS"
23546 #### Find out which version of Emacs this is.
23547 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23548 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
23549 if test x"${version}" = x; then
23550 { { echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&5
23551 echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&2;}
23552 { (exit 1); exit 1; }; }
23555 ### Specify what sort of things we'll be editing into Makefile and config.h.
23556 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23592 cat >>confdefs.h <<_ACEOF
23593 #define EMACS_CONFIGURATION "${canonical}"
23597 cat >>confdefs.h <<_ACEOF
23598 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23602 cat >>confdefs.h <<_ACEOF
23603 #define config_machfile "${machfile}"
23607 cat >>confdefs.h <<_ACEOF
23608 #define config_opsysfile "${opsysfile}"
23612 cat >>confdefs.h <<_ACEOF
23613 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23617 cat >>confdefs.h <<_ACEOF
23618 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23622 cat >>confdefs.h <<_ACEOF
23623 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23627 cat >>confdefs.h <<_ACEOF
23628 #define UNEXEC_SRC ${UNEXEC_SRC}
23632 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23634 cat >>confdefs.h <<\_ACEOF
23635 #define HAVE_X_WINDOWS 1
23639 if test "${USE_X_TOOLKIT}" != "none
" ; then
23641 cat >>confdefs.h <<\_ACEOF
23642 #define USE_X_TOOLKIT 1
23646 if test "${HAVE_X11}" = "yes" ; then
23648 cat >>confdefs.h <<\_ACEOF
23653 if test "${HAVE_XFREE386}" = "yes" ; then
23655 cat >>confdefs.h <<\_ACEOF
23656 #define HAVE_XFREE386 1
23660 if test "${HAVE_MENUS}" = "yes" ; then
23662 cat >>confdefs.h <<\_ACEOF
23663 #define HAVE_MENUS 1
23667 if test "${GNU_MALLOC}" = "yes" ; then
23669 cat >>confdefs.h <<\_ACEOF
23670 #define GNU_MALLOC 1
23674 if test "${REL_ALLOC}" = "yes" ; then
23676 cat >>confdefs.h <<\_ACEOF
23677 #define REL_ALLOC 1
23687 #### Report on what we decided to do.
23688 #### Report GTK as a toolkit, even if it doesn't use Xt.
23689 #### It makes printing result more understandable as using GTK sets
23690 #### toolkit_scroll_bars to yes by default.
23691 if test "${HAVE_GTK}" = "yes"; then
23696 Configured
for \
`${canonical}'.
23698 Where should the build process find the source code? ${srcdir}
23699 What operating system and machine description files should Emacs use?
23700 \`${opsysfile}' and \`${machfile}'
23701 What compiler should emacs be built with?
${CC} ${CFLAGS}
23702 Should Emacs use the GNU version of malloc?
${GNU_MALLOC}${GNU_MALLOC_reason}
23703 Should Emacs use a relocating allocator
for buffers?
${REL_ALLOC}
23704 Should Emacs use mmap
(2) for buffer allocation?
$use_mmap_for_buffers
23705 What window system should Emacs use?
${window_system}
23706 What toolkit should Emacs use?
${USE_X_TOOLKIT}"
23708 if test -n "${x_includes}"; then
23709 echo " Where
do we
find X Windows header files?
${x_includes}"
23711 echo " Where
do we
find X Windows header files? Standard
dirs"
23713 if test -n "${x_libraries}"; then
23714 echo " Where
do we
find X Windows libraries?
${x_libraries}"
23716 echo " Where
do we
find X Windows libraries? Standard
dirs"
23719 echo " Does Emacs use
-lXaw3d?
${HAVE_XAW3D}"
23720 echo " Does Emacs use
-lXpm?
${HAVE_XPM}"
23721 echo " Does Emacs use
-ljpeg?
${HAVE_JPEG}"
23722 echo " Does Emacs use
-ltiff?
${HAVE_TIFF}"
23723 echo " Does Emacs use a gif library?
${HAVE_GIF} $ac_gif_lib_name"
23724 echo " Does Emacs use
-lpng?
${HAVE_PNG}"
23725 echo " Does Emacs use
-lrsvg-2?
${HAVE_RSVG}"
23726 echo " Does Emacs use
-lgpm?
${HAVE_GPM}"
23727 echo " Does Emacs use X toolkit scroll bars?
${USE_TOOLKIT_SCROLL_BARS}"
23730 if test $USE_XASSERTS = yes; then
23731 echo " Compiling with asserts turned on.
"
23732 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23736 if test "$USE_X_TOOLKIT" = GTK; then
23737 case "$canonical" in
23739 echo "There are known problems with Emacs and Gtk
+ on cygwin
, so you
23740 will probably get a crash on startup. If this happens
, please use another
23741 toolkit
for Emacs. See etc
/PROBLEMS
for more information.
"
23748 # Remove any trailing slashes in these variables.
23749 test "${prefix}" != NONE &&
23750 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23751 test "${exec_prefix}" != NONE &&
23752 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23754 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23755 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23756 ## from Makefile.c can correctly provide the arg `-traditional' to the
23759 cat >conftest.$ac_ext <<_ACEOF
23762 cat confdefs.h >>conftest.$ac_ext
23763 cat >>conftest.$ac_ext <<_ACEOF
23764 /* end confdefs.h. */
23767 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
23768 $EGREP "yes..
yes" >/dev/null 2>&1; then
23769 CPP_NEED_TRADITIONAL=no
23771 CPP_NEED_TRADITIONAL=yes
23776 ac_config_files="$ac_config_files Makefile lib-src
/Makefile.c
:lib-src
/Makefile.
in oldXMenu
/Makefile man
/Makefile lwlib
/Makefile src
/Makefile.c
:src
/Makefile.
in lisp
/Makefile lispref
/Makefile lispintro
/Makefile leim
/Makefile
"
23778 ac_config_commands="$ac_config_commands default
"
23780 cat >confcache <<\_ACEOF
23781 # This file is a shell script that caches the results of configure
23782 # tests run on this system so they can be shared between configure
23783 # scripts and configure runs, see configure's option --config-cache.
23784 # It is not useful on other systems. If it contains results you don't
23785 # want to keep, you may remove or edit it.
23787 # config.status only pays attention to the cache file if you give it
23788 # the --recheck option to rerun configure.
23790 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23791 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23792 # following values.
23796 # The following way of writing the cache mishandles newlines in values,
23797 # but we know of no workaround that is simple, portable, and efficient.
23798 # So, we kill variables containing newlines.
23799 # Ultrix sh set writes to stderr and can't be redirected directly,
23800 # and sets the high bit in the cache file unless we assign to the vars.
23802 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23803 eval ac_val=\$$ac_var
23807 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
23808 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
23811 _ | IFS | as_nl) ;; #(
23812 *) $as_unset $ac_var ;;
23818 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23819 *${as_nl}ac_space=\ *)
23820 # `set' does not quote correctly, so add quotes (double-quote
23821 # substitution turns \\\\ into \\, and sed turns \\ into \).
23824 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
23827 # `set' quotes correctly as required by POSIX, so do not add quotes.
23828 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
23837 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23839 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23841 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23842 if test -w "$cache_file"; then
23843 test "x
$cache_file" != "x
/dev
/null
" &&
23844 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
23845 echo "$as_me: updating cache
$cache_file" >&6;}
23846 cat confcache >$cache_file
23848 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
23849 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
23854 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
23855 # Let make expand exec_prefix.
23856 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
23858 DEFS=-DHAVE_CONFIG_H
23862 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
23863 # 1. Remove the extension, and $U if already installed.
23864 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23865 ac_i=`echo "$ac_i" | sed "$ac_script"`
23866 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23867 # will be set to the directory where LIBOBJS objects are built.
23868 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
23869 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
23871 LIBOBJS=$ac_libobjs
23873 LTLIBOBJS=$ac_ltlibobjs
23877 : ${CONFIG_STATUS=./config.status}
23878 ac_clean_files_save=$ac_clean_files
23879 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23880 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
23881 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
23882 cat >$CONFIG_STATUS <<_ACEOF
23884 # Generated by $as_me.
23885 # Run this file to recreate the current configuration.
23886 # Compiler output produced by configure, useful for debugging
23887 # configure, is in config.log if it exists.
23890 ac_cs_recheck=false
23892 SHELL=\${CONFIG_SHELL-$SHELL}
23895 cat >>$CONFIG_STATUS <<\_ACEOF
23896 ## --------------------- ##
23897 ## M4sh Initialization. ##
23898 ## --------------------- ##
23900 # Be more Bourne compatible
23901 DUALCASE=1; export DUALCASE # for MKS sh
23902 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23905 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23906 # is contrary to our usage. Disable this feature.
23907 alias -g '${1+"$@"}'='"$@
"'
23908 setopt NO_GLOB_SUBST
23910 case `(set -o) 2>/dev/null` in
23911 *posix*) set -o posix ;;
23920 # Avoid depending upon Character Ranges.
23921 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23922 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23923 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23924 as_cr_digits='0123456789'
23925 as_cr_alnum=$as_cr_Letters$as_cr_digits
23927 # The user is always right.
23928 if test "${PATH_SEPARATOR+set}" != set; then
23929 echo "#! /bin/sh" >conf$$.sh
23930 echo "exit 0" >>conf$$.sh
23932 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
23940 # Support unset when possible.
23941 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
23949 # We need space, tab and new line, in precisely that order. Quoting is
23950 # there to prevent editors from complaining about space-tab.
23951 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23952 # splitting by setting IFS to empty value.)
23957 # Find who we are. Look in the path if we contain no directory separator.
23959 *[\\/]* ) as_myself
=$0 ;;
23960 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23961 for as_dir
in $PATH
23964 test -z "$as_dir" && as_dir
=.
23965 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
23971 # We did not find ourselves, most probably we were run as `sh COMMAND'
23972 # in which case we are not to be found in the path.
23973 if test "x$as_myself" = x
; then
23976 if test ! -f "$as_myself"; then
23977 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23978 { (exit 1); exit 1; }
23981 # Work around bugs in pre-3.0 UWIN ksh.
23982 for as_var
in ENV MAIL MAILPATH
23983 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
23991 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23992 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23993 LC_TELEPHONE LC_TIME
23995 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23996 eval $as_var=C
; export $as_var
23998 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24002 # Required to use basename.
24003 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24004 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24010 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24011 as_basename
=basename
24017 # Name of the executable.
24018 as_me
=`$as_basename -- "$0" ||
24019 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24020 X"$0" : 'X\(//\)$' \| \
24021 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24023 sed '/^.*\/\([^/][^/]*\)\/*$/{
24042 as_lineno_1
=$LINENO
24043 as_lineno_2
=$LINENO
24044 test "x$as_lineno_1" != "x$as_lineno_2" &&
24045 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
24047 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24048 # uniformly replaced by the line number. The first 'sed' inserts a
24049 # line-number line after each line using $LINENO; the second 'sed'
24050 # does the real work. The second script uses 'N' to pair each
24051 # line-number line with the line containing $LINENO, and appends
24052 # trailing '-' during substitution so that $LINENO is not a special
24053 # case at line end.
24054 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24055 # scripts with optimization help from Paolo Bonzini. Blame Lee
24056 # E. McMahon (1931-1989) for sed's syntax. :-)
24068 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24071 ' >$as_me.lineno
&&
24072 chmod +x
"$as_me.lineno" ||
24073 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24074 { (exit 1); exit 1; }; }
24076 # Don't try to exec as it changes $[0], causing all sort of problems
24077 # (the dirname of $[0] is not the place where we might find the
24078 # original and so on. Autoconf is especially sensitive to this).
24079 .
"./$as_me.lineno"
24080 # Exit status is that of the last command.
24085 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
24091 ECHO_C
= ECHO_N
= ECHO_T
=
24092 case `echo -n x` in
24094 case `echo 'x\c'` in
24095 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
24102 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24103 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24109 rm -f conf$$ conf$$.exe conf$$.
file
24110 if test -d conf$$.dir
; then
24111 rm -f conf$$.dir
/conf$$.
file
24117 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
24119 # ... but there are two gotchas:
24120 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24121 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24122 # In both cases, we have to default to `cp -p'.
24123 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
24125 elif ln conf$$.
file conf$$
2>/dev
/null
; then
24130 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
24131 rmdir conf$$.dir
2>/dev
/null
24133 if mkdir
-p .
2>/dev
/null
; then
24136 test -d .
/-p && rmdir .
/-p
24140 if test -x / >/dev
/null
2>&1; then
24141 as_test_x
='test -x'
24143 if ls -dL / >/dev
/null
2>&1; then
24150 if test -d "$1"; then
24156 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24157 ???[sx]*):;;*)false;;esac;fi
24161 as_executable_p
=$as_test_x
24163 # Sed expression to map a string onto a valid CPP name.
24164 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24166 # Sed expression to map a string onto a valid variable name.
24167 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24172 # Save the log message, to keep $[0] and so on meaningful, and to
24173 # report actual input values of CONFIG_FILES etc. instead of their
24174 # values after options handling.
24176 This file was extended by $as_me, which was
24177 generated by GNU Autoconf 2.61. Invocation command line was
24179 CONFIG_FILES = $CONFIG_FILES
24180 CONFIG_HEADERS = $CONFIG_HEADERS
24181 CONFIG_LINKS = $CONFIG_LINKS
24182 CONFIG_COMMANDS = $CONFIG_COMMANDS
24185 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24190 cat >>$CONFIG_STATUS <<_ACEOF
24191 # Files that config.status was made for.
24192 config_files="$ac_config_files"
24193 config_headers="$ac_config_headers"
24194 config_commands="$ac_config_commands"
24198 cat >>$CONFIG_STATUS <<\_ACEOF
24200 \`$as_me' instantiates files from templates according to the
24201 current configuration.
24203 Usage: $0 [OPTIONS] [FILE]...
24205 -h, --help print this help, then exit
24206 -V, --version print version number and configuration settings, then exit
24207 -q, --quiet do not print progress messages
24208 -d, --debug don't remove temporary files
24209 --recheck update $as_me by reconfiguring in the same conditions
24210 --file=FILE[:TEMPLATE]
24211 instantiate the configuration file FILE
24212 --header=FILE[:TEMPLATE]
24213 instantiate the configuration header FILE
24215 Configuration files:
24218 Configuration headers:
24221 Configuration commands:
24224 Report bugs to <bug-autoconf@gnu.org>."
24227 cat >>$CONFIG_STATUS <<_ACEOF
24230 configured by $0, generated by GNU Autoconf 2.61,
24231 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24233 Copyright (C) 2006 Free Software Foundation, Inc.
24234 This config.status script is free software; the Free Software Foundation
24235 gives unlimited permission to copy, distribute and modify it."
24242 cat >>$CONFIG_STATUS <<\_ACEOF
24243 # If no file are specified by the user, then we need to provide default
24244 # value. By we need to know if files were specified by the user.
24250 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
24251 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
24262 # Handling of the options.
24263 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
24265 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
24266 echo "$ac_cs_version"; exit ;;
24267 --debug |
--debu |
--deb |
--de |
--d |
-d )
24269 --file |
--fil |
--fi |
--f )
24271 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
24272 ac_need_defaults
=false
;;
24273 --header |
--heade |
--head |
--hea )
24275 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
24276 ac_need_defaults
=false
;;
24278 # Conflict between --help and --header
24279 { echo "$as_me: error: ambiguous option: $1
24280 Try \`$0 --help' for more information." >&2
24281 { (exit 1); exit 1; }; };;
24282 --help |
--hel |
-h )
24283 echo "$ac_cs_usage"; exit ;;
24284 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
24285 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
24288 # This is an error.
24289 -*) { echo "$as_me: error: unrecognized option: $1
24290 Try \`$0 --help' for more information." >&2
24291 { (exit 1); exit 1; }; } ;;
24293 *) ac_config_targets
="$ac_config_targets $1"
24294 ac_need_defaults
=false
;;
24300 ac_configure_extra_args
=
24302 if $ac_cs_silent; then
24304 ac_configure_extra_args
="$ac_configure_extra_args --silent"
24308 cat >>$CONFIG_STATUS <<_ACEOF
24309 if \$ac_cs_recheck; then
24310 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24311 CONFIG_SHELL=$SHELL
24312 export CONFIG_SHELL
24313 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24317 cat >>$CONFIG_STATUS <<\_ACEOF
24321 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24322 ## Running $as_me. ##
24328 cat >>$CONFIG_STATUS <<_ACEOF
24332 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
24336 cat >>$CONFIG_STATUS <<\_ACEOF
24338 # Handling of arguments.
24339 for ac_config_target
in $ac_config_targets
24341 case $ac_config_target in
24342 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24343 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
24344 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24345 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
24346 "man/Makefile") CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
24347 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
24348 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24349 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
24350 "lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
24351 "lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
24352 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
24353 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
24355 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24356 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24357 { (exit 1); exit 1; }; };;
24362 # If the user did not use the arguments to specify the items to instantiate,
24363 # then the envvar interface is used. Set only those that are not.
24364 # We use the long form for the default assignment because of an extremely
24365 # bizarre bug on SunOS 4.1.3.
24366 if $ac_need_defaults; then
24367 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
24368 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
24369 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
24372 # Have a temporary directory for convenience. Make it in the build tree
24373 # simply because there is no reason against having it here, and in addition,
24374 # creating and moving files from /tmp can sometimes cause problems.
24375 # Hook for its removal unless debugging.
24376 # Note that there is a small window in which the directory will not be cleaned:
24377 # after its creation but before its name has been assigned to `$tmp'.
24381 trap 'exit_status=$?
24382 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24384 trap '{ (exit 1); exit 1; }' 1 2 13 15
24386 # Create a (secure) tmp directory for tmp files.
24389 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24390 test -n "$tmp" && test -d "$tmp"
24393 tmp
=.
/conf$$
-$RANDOM
24394 (umask 077 && mkdir
"$tmp")
24397 echo "$me: cannot create a temporary directory in ." >&2
24398 { (exit 1); exit 1; }
24402 # Set up the sed scripts for CONFIG_FILES section.
24405 # No need to generate the scripts if there are no CONFIG_FILES.
24406 # This happens for instance when ./config.status config.h
24407 if test -n "$CONFIG_FILES"; then
24414 for ac_last_try
in false false false false false
:; do
24415 cat >conf$
$subs.
sed <<_ACEOF
24416 SHELL!$SHELL$ac_delim
24417 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24418 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24419 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24420 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24421 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24422 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24423 exec_prefix!$exec_prefix$ac_delim
24424 prefix!$prefix$ac_delim
24425 program_transform_name!$program_transform_name$ac_delim
24426 bindir!$bindir$ac_delim
24427 sbindir!$sbindir$ac_delim
24428 libexecdir!$libexecdir$ac_delim
24429 datarootdir!$datarootdir$ac_delim
24430 datadir!$datadir$ac_delim
24431 sysconfdir!$sysconfdir$ac_delim
24432 sharedstatedir!$sharedstatedir$ac_delim
24433 localstatedir!$localstatedir$ac_delim
24434 includedir!$includedir$ac_delim
24435 oldincludedir!$oldincludedir$ac_delim
24436 docdir!$docdir$ac_delim
24437 infodir!$infodir$ac_delim
24438 htmldir!$htmldir$ac_delim
24439 dvidir!$dvidir$ac_delim
24440 pdfdir!$pdfdir$ac_delim
24441 psdir!$psdir$ac_delim
24442 libdir!$libdir$ac_delim
24443 localedir!$localedir$ac_delim
24444 mandir!$mandir$ac_delim
24445 DEFS!$DEFS$ac_delim
24446 ECHO_C!$ECHO_C$ac_delim
24447 ECHO_N!$ECHO_N$ac_delim
24448 ECHO_T!$ECHO_T$ac_delim
24449 LIBS!$LIBS$ac_delim
24450 build_alias!$build_alias$ac_delim
24451 host_alias!$host_alias$ac_delim
24452 target_alias!$target_alias$ac_delim
24453 MAINT!$MAINT$ac_delim
24454 build!$build$ac_delim
24455 build_cpu!$build_cpu$ac_delim
24456 build_vendor!$build_vendor$ac_delim
24457 build_os!$build_os$ac_delim
24458 host!$host$ac_delim
24459 host_cpu!$host_cpu$ac_delim
24460 host_vendor!$host_vendor$ac_delim
24461 host_os!$host_os$ac_delim
24463 CFLAGS!$CFLAGS$ac_delim
24464 LDFLAGS!$LDFLAGS$ac_delim
24465 CPPFLAGS!$CPPFLAGS$ac_delim
24466 ac_ct_CC!$ac_ct_CC$ac_delim
24467 EXEEXT!$EXEEXT$ac_delim
24468 OBJEXT!$OBJEXT$ac_delim
24470 GREP!$GREP$ac_delim
24471 EGREP!$EGREP$ac_delim
24472 LN_S!$LN_S$ac_delim
24473 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24474 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24475 INSTALL_DATA!$INSTALL_DATA$ac_delim
24476 RANLIB!$RANLIB$ac_delim
24477 INSTALL_INFO!$INSTALL_INFO$ac_delim
24478 GZIP_PROG!$GZIP_PROG$ac_delim
24479 MAKEINFO!$MAKEINFO$ac_delim
24480 LIBSOUND!$LIBSOUND$ac_delim
24481 PKG_CONFIG!$PKG_CONFIG$ac_delim
24482 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24483 ALSA_LIBS!$ALSA_LIBS$ac_delim
24484 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24485 SET_MAKE!$SET_MAKE$ac_delim
24486 XMKMF!$XMKMF$ac_delim
24487 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
24488 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
24489 RSVG_LIBS!$RSVG_LIBS$ac_delim
24490 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24491 GTK_LIBS!$GTK_LIBS$ac_delim
24492 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24493 XFT_LIBS!$XFT_LIBS$ac_delim
24494 ALLOCA!$ALLOCA$ac_delim
24495 liblockfile!$liblockfile$ac_delim
24496 LIBOBJS!$LIBOBJS$ac_delim
24497 NEED_SETGID!$NEED_SETGID$ac_delim
24498 KMEM_GROUP!$KMEM_GROUP$ac_delim
24499 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24500 GETOPT_H!$GETOPT_H$ac_delim
24501 GETOPTOBJS!$GETOPTOBJS$ac_delim
24502 version!$version$ac_delim
24503 configuration!$configuration$ac_delim
24504 canonical!$canonical$ac_delim
24505 srcdir!$srcdir$ac_delim
24506 lispdir!$lispdir$ac_delim
24507 locallisppath!$locallisppath$ac_delim
24508 lisppath!$lisppath$ac_delim
24509 x_default_search_path!$x_default_search_path$ac_delim
24510 etcdir!$etcdir$ac_delim
24511 archlibdir!$archlibdir$ac_delim
24512 bitmapdir!$bitmapdir$ac_delim
24515 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24517 elif $ac_last_try; then
24518 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24519 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24520 { (exit 1); exit 1; }; }
24522 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24526 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24527 if test -n "$ac_eof"; then
24528 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24529 ac_eof
=`expr $ac_eof + 1`
24532 cat >>$CONFIG_STATUS <<_ACEOF
24533 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24534 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24537 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24538 s/^/s,@/; s/!/@,|#_!!_#|/
24541 s/'"$ac_delim"'$/,g/; t
24543 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24544 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24545 rm -f conf$
$subs.
sed
24546 cat >>$CONFIG_STATUS <<_ACEOF
24552 for ac_last_try
in false false false false false
:; do
24553 cat >conf$
$subs.
sed <<_ACEOF
24554 gamedir!$gamedir$ac_delim
24555 gameuser!$gameuser$ac_delim
24556 c_switch_system!$c_switch_system$ac_delim
24557 c_switch_machine!$c_switch_machine$ac_delim
24558 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
24559 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
24560 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
24561 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
24562 machfile!$machfile$ac_delim
24563 opsysfile!$opsysfile$ac_delim
24564 carbon_appdir!$carbon_appdir$ac_delim
24565 LTLIBOBJS!$LTLIBOBJS$ac_delim
24568 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 12; then
24570 elif $ac_last_try; then
24571 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24572 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24573 { (exit 1); exit 1; }; }
24575 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24579 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24580 if test -n "$ac_eof"; then
24581 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24582 ac_eof
=`expr $ac_eof + 1`
24585 cat >>$CONFIG_STATUS <<_ACEOF
24586 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24587 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24590 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24591 s/^/s,@/; s/!/@,|#_!!_#|/
24594 s/'"$ac_delim"'$/,g/; t
24596 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24597 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24598 rm -f conf$
$subs.
sed
24599 cat >>$CONFIG_STATUS <<_ACEOF
24606 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24607 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24608 # trailing colons and then remove the whole line if VPATH becomes empty
24609 # (actually we leave an empty line to preserve line numbers).
24610 if test "x$srcdir" = x.
; then
24611 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
24612 s/:*\$(srcdir):*/:/
24613 s/:*\${srcdir}:*/:/
24615 s/^\([^=]*=[ ]*\):*/\1/
24621 cat >>$CONFIG_STATUS <<\_ACEOF
24622 fi # test -n "$CONFIG_FILES"
24625 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
24628 :[FHLC
]) ac_mode
=$ac_tag; continue;;
24630 case $ac_mode$ac_tag in
24632 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24633 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24634 { (exit 1); exit 1; }; };;
24635 :[FH
]-) ac_tag
=-:-;;
24636 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
24653 -) ac_f
="$tmp/stdin";;
24654 *) # Look for the file first in the build tree, then in the source tree
24655 # (if the path is not absolute). The absolute path cannot be DOS-style,
24656 # because $ac_f cannot contain `:'.
24660 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
24662 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24663 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24664 { (exit 1); exit 1; }; };;
24666 ac_file_inputs
="$ac_file_inputs $ac_f"
24669 # Let's still pretend it is `configure' which instantiates (i.e., don't
24670 # use $as_me), people would be surprised to read:
24671 # /* config.h. Generated by config.status. */
24672 configure_input
="Generated from "`IFS=:
24673 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24674 if test x
"$ac_file" != x-
; then
24675 configure_input
="$ac_file. $configure_input"
24676 { echo "$as_me:$LINENO: creating $ac_file" >&5
24677 echo "$as_me: creating $ac_file" >&6;}
24681 *:-:* |
*:-) cat >"$tmp/stdin";;
24686 ac_dir
=`$as_dirname -- "$ac_file" ||
24687 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24688 X"$ac_file" : 'X\(//\)[^/]' \| \
24689 X"$ac_file" : 'X\(//\)$' \| \
24690 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24692 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24696 /^X\(\/\/\)[^/].*/{
24711 -*) as_dir
=.
/$as_dir;;
24713 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
24717 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24718 *) as_qdir
=$as_dir;;
24720 as_dirs
="'$as_qdir' $as_dirs"
24721 as_dir
=`$as_dirname -- "$as_dir" ||
24722 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24723 X"$as_dir" : 'X\(//\)[^/]' \| \
24724 X"$as_dir" : 'X\(//\)$' \| \
24725 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24727 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24731 /^X\(\/\/\)[^/].*/{
24744 test -d "$as_dir" && break
24746 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
24747 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24748 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24749 { (exit 1); exit 1; }; }; }
24753 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24755 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24756 # A ".." for each directory in $ac_dir_suffix.
24757 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24758 case $ac_top_builddir_sub in
24759 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24760 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
24763 ac_abs_top_builddir
=$ac_pwd
24764 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
24765 # for backward compatibility:
24766 ac_top_builddir
=$ac_top_build_prefix
24769 .
) # We are building in place.
24771 ac_top_srcdir
=$ac_top_builddir_sub
24772 ac_abs_top_srcdir
=$ac_pwd ;;
24773 [\\/]* | ?
:[\\/]* ) # Absolute name.
24774 ac_srcdir
=$srcdir$ac_dir_suffix;
24775 ac_top_srcdir
=$srcdir
24776 ac_abs_top_srcdir
=$srcdir ;;
24777 *) # Relative name.
24778 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
24779 ac_top_srcdir
=$ac_top_build_prefix$srcdir
24780 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
24782 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
24792 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
24793 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
24797 cat >>$CONFIG_STATUS <<\_ACEOF
24798 # If the template does not know about datarootdir, expand it.
24799 # FIXME: This hack should be removed a few years after 2.60.
24800 ac_datarootdir_hack
=; ac_datarootdir_seen
=
24802 case `sed -n '/datarootdir/ {
24811 ' $ac_file_inputs` in
24812 *datarootdir
*) ac_datarootdir_seen
=yes;;
24813 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
24814 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24815 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24817 cat >>$CONFIG_STATUS <<_ACEOF
24818 ac_datarootdir_hack='
24819 s&@datadir@&$datadir&g
24820 s&@docdir@&$docdir&g
24821 s&@infodir@&$infodir&g
24822 s&@localedir@&$localedir&g
24823 s&@mandir@&$mandir&g
24824 s&\\\${datarootdir}&$datarootdir&g' ;;
24828 # Neutralize VPATH when `$srcdir' = `.'.
24829 # Shell code in configure.ac might set extrasub.
24830 # FIXME: do we really want to maintain this feature?
24831 cat >>$CONFIG_STATUS <<_ACEOF
24835 cat >>$CONFIG_STATUS <<\_ACEOF
24837 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
24838 s
&@configure_input@
&$configure_input&;t t
24839 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
24840 s
&@srcdir@
&$ac_srcdir&;t t
24841 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
24842 s
&@top_srcdir@
&$ac_top_srcdir&;t t
24843 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
24844 s
&@builddir@
&$ac_builddir&;t t
24845 s
&@abs_builddir@
&$ac_abs_builddir&;t t
24846 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
24847 s
&@INSTALL@
&$ac_INSTALL&;t t
24848 $ac_datarootdir_hack
24849 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
24851 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24852 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
24853 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
24854 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
24855 which seems to be undefined. Please make sure it is defined." >&5
24856 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
24857 which seems to be undefined. Please make sure it is defined." >&2;}
24861 -) cat "$tmp/out"; rm -f "$tmp/out";;
24862 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24871 # Transform confdefs.h into a sed script `conftest.defines', that
24872 # substitutes the proper values into config.h.in to produce config.h.
24873 rm -f conftest.defines conftest.
tail
24874 # First, append a space to every undef/define line, to ease matching.
24875 echo 's/$/ /' >conftest.defines
24876 # Then, protect against being on the right side of a sed subst, or in
24877 # an unquoted here document, in config.status. If some macros were
24878 # called several times there might be several #defines for the same
24879 # symbol, which is useless. But do not sort them, since the last
24880 # AC_DEFINE must be honored.
24881 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
24882 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24883 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24884 # PARAMS is the parameter list in the macro definition--in most cases, it's
24885 # just an empty string.
24886 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24887 ac_dB
='\\)[ (].*,\\1define\\2'
24895 s/^[ ]*#[ ]*define[ ][ ]*//
24900 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24901 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24902 ' >>conftest.defines
24904 # Remove the space that was appended to ease matching.
24905 # Then replace #undef with comments. This is necessary, for
24906 # example, in the case of _POSIX_SOURCE, which is predefined and required
24907 # on some systems where configure will not decide to define it.
24908 # (The regexp can be short, since the line contains either #define or #undef.)
24910 s,^[ #]*u.*,/* & */,' >>conftest.defines
24912 # Break up conftest.defines:
24913 ac_max_sed_lines
=50
24915 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24916 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24917 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24919 ac_in
='$ac_file_inputs'
24920 ac_out
='"$tmp/out1"'
24921 ac_nxt
='"$tmp/out2"'
24925 # Write a here document:
24926 cat >>$CONFIG_STATUS <<_ACEOF
24927 # First, check the format of the line:
24928 cat >"\$tmp/defines.sed" <<\\CEOF
24929 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24930 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24934 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
24936 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24937 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
24938 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
24939 grep . conftest.
tail >/dev
/null ||
break
24940 rm -f conftest.defines
24941 mv conftest.
tail conftest.defines
24943 rm -f conftest.defines conftest.
tail
24945 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24946 cat >>$CONFIG_STATUS <<\_ACEOF
24947 if test x
"$ac_file" != x-
; then
24948 echo "/* $configure_input */" >"$tmp/config.h"
24949 cat "$ac_result" >>"$tmp/config.h"
24950 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
24951 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24952 echo "$as_me: $ac_file is unchanged" >&6;}
24955 mv "$tmp/config.h" $ac_file
24958 echo "/* $configure_input */"
24964 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24965 echo "$as_me: executing $ac_file commands" >&6;}
24970 case $ac_file$ac_mode in
24973 ### Make the necessary directories, if they don't exist.
24974 for dir
in etc lisp
; do
24975 test -d ${dir} || mkdir
${dir}
24978 # Build src/Makefile from ${srcdir}/src/Makefile.c
24979 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24980 # This must be done after src/config.h is built, since we rely on that file.
24982 # Now get this: Some word that is part of the ${srcdir} directory name
24983 # or the ${configuration} value might, just might, happen to be an
24984 # identifier like `sun4' or `i386' or something, and be predefined by
24985 # the C preprocessor to some helpful value like 1, or maybe the empty
24986 # string. Needless to say consequent macro substitutions are less
24987 # than conducive to the makefile finding the correct directory.
24988 undefs
="`echo $top_srcdir $configuration $canonical |
24989 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24990 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24993 echo creating src
/epaths.h
24994 ${MAKE-make} epaths-force
24996 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24997 # `..' to `. .' unless invoked with -traditional
24999 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
25000 CPPFLAGS
="$CPPFLAGS -traditional"
25003 echo creating lib-src
/Makefile
25005 rm -f junk.c junk1.c junk2.c
25006 sed -e '/start of cpp stuff/q' \
25007 < Makefile.c
> junk1.c
25008 sed -e '1,/start of cpp stuff/d'\
25009 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25010 < Makefile.c
> junk.c
25011 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
25012 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25013 cat junk1.c junk2.c
> Makefile.new
25014 rm -f junk.c junk1.c junk2.c
25015 chmod 444 Makefile.new
25016 mv -f Makefile.new Makefile
25019 echo creating src
/Makefile
25021 rm -f junk.c junk1.c junk2.c
25022 sed -e '/start of cpp stuff/q' \
25023 < Makefile.c
> junk1.c
25024 sed -e '1,/start of cpp stuff/d'\
25025 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25026 < Makefile.c
> junk.c
25027 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
25028 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25029 cat junk1.c junk2.c
> Makefile.new
25030 rm -f junk.c junk1.c junk2.c
25031 chmod 444 Makefile.new
25032 mv -f Makefile.new Makefile
25035 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
25036 echo creating src
/.gdbinit
25037 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
25040 # This is how we know whether to re-run configure in certain cases.
25041 touch src
/config.stamp
25049 { (exit 0); exit 0; }
25051 chmod +x
$CONFIG_STATUS
25052 ac_clean_files
=$ac_clean_files_save
25055 # configure is writing to config.log, and then calls config.status.
25056 # config.status does its own redirection, appending to config.log.
25057 # Unfortunately, on DOS this fails, as config.log is still kept open
25058 # by configure, so config.status won't be able to write to it; its
25059 # output is simply discarded. So we exec the FD to /dev/null,
25060 # effectively closing config.log, so it can be properly (re)opened and
25061 # appended to by config.status. When coming back to configure, we
25062 # need to make the FD available again.
25063 if test "$no_create" != yes; then
25065 ac_config_status_args
=
25066 test "$silent" = yes &&
25067 ac_config_status_args
="$ac_config_status_args --quiet"
25069 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
25071 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25072 # would make configure fail if this is the last instruction.
25073 $ac_cs_success ||
{ (exit 1); exit 1; }