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
]
1321 specify
install directory
for Emacs.app on Mac OS X
1323 --enable-asserts compile code with asserts enabled
1324 --enable-maintainer-mode
1325 enable make rules and dependencies not useful
(and
1326 sometimes confusing
) to the casual installer
1327 --enable-locallisppath=PATH
1328 directories Emacs should search
for lisp files
1329 specific to this site
1330 --disable-largefile omit support
for large files
1333 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1334 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1335 --without-gcc don
't use GCC to compile Emacs if GCC is found
1336 --without-pop don't support POP
mail retrieval with movemail
1337 --with-kerberos support Kerberos-authenticated POP
1338 --with-kerberos5 support Kerberos version
5 authenticated POP
1339 --with-hesiod support Hesiod to get the POP server
host
1340 --without-sound don
't compile with sound support
1341 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes, lucid, athena,
1343 --with-xpm use -lXpm for displaying XPM images
1344 --with-jpeg use -ljpeg for displaying JPEG images
1345 --with-tiff use -ltiff for displaying TIFF images
1346 --with-gif use -lgif (or -lungif) for displaying GIF images
1347 --with-png use -lpng for displaying PNG images
1348 --with-gpm use -lgpm for mouse support on a GNU/Linux console
1349 --with-rsvg use -lrsvg-2 for displaying SVG images
1350 --with-gtk use GTK (same as --with-x-toolkit=gtk)
1351 --with-pkg-config-prog Path to pkg-config for finding GTK and librsvg
1352 --without-toolkit-scroll-bars
1353 don't use Motif or Xaw3d scroll bars
1354 --without-xaw3d don
't use Xaw3d
1355 --without-xim don't use X11 XIM
1356 --without-carbon don
't use Carbon GUI on Mac OS X
1357 --with-x use the X Window System
1359 Some influential environment variables:
1360 CC C compiler command
1361 CFLAGS C compiler flags
1362 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1363 nonstandard directory <lib dir>
1364 LIBS libraries to pass to the linker, e.g. -l<library>
1365 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1366 you have headers in a nonstandard directory <include dir>
1368 XMKMF Path to xmkmf, Makefile generator for X Window System
1370 Use these variables to override the choices made by `configure' or to
help
1371 it to
find libraries and programs with nonstandard names
/locations.
1377 if test "$ac_init_help" = "recursive"; then
1378 # If there are subdirs, report their specific --help.
1379 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1380 test -d "$ac_dir" ||
continue
1384 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1386 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1387 # A ".." for each directory in $ac_dir_suffix.
1388 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1389 case $ac_top_builddir_sub in
1390 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1391 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1394 ac_abs_top_builddir
=$ac_pwd
1395 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1396 # for backward compatibility:
1397 ac_top_builddir
=$ac_top_build_prefix
1400 .
) # We are building in place.
1402 ac_top_srcdir
=$ac_top_builddir_sub
1403 ac_abs_top_srcdir
=$ac_pwd ;;
1404 [\\/]* | ?
:[\\/]* ) # Absolute name.
1405 ac_srcdir
=$srcdir$ac_dir_suffix;
1406 ac_top_srcdir
=$srcdir
1407 ac_abs_top_srcdir
=$srcdir ;;
1409 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1410 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1411 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1413 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1415 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1416 # Check for guested configure.
1417 if test -f "$ac_srcdir/configure.gnu"; then
1419 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1420 elif test -f "$ac_srcdir/configure"; then
1422 $SHELL "$ac_srcdir/configure" --help=recursive
1424 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1426 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1430 test -n "$ac_init_help" && exit $ac_status
1431 if $ac_init_version; then
1434 generated by GNU Autoconf
2.61
1436 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1437 2002, 2003, 2004, 2005, 2006 Free Software Foundation
, Inc.
1438 This configure
script is free software
; the Free Software Foundation
1439 gives unlimited permission to copy
, distribute and modify it.
1443 cat >config.log
<<_ACEOF
1444 This file contains any messages produced by compilers while
1445 running configure, to aid debugging if configure makes a mistake.
1447 It was created by $as_me, which was
1448 generated by GNU Autoconf 2.61. Invocation command line was
1460 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1461 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1462 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1463 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1464 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1466 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1467 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1469 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1470 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1471 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1472 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1473 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1474 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1475 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1479 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1483 test -z "$as_dir" && as_dir
=.
1484 echo "PATH: $as_dir"
1500 # Keep a trace of the command line.
1501 # Strip out --no-create and --no-recursion so they do not pile up.
1502 # Strip out --silent because we don't want to record it for future runs.
1503 # Also quote any args containing shell meta-characters.
1504 # Make two passes to allow for proper duplicate-argument suppression.
1508 ac_must_keep_next
=false
1514 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1515 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1516 |
-silent |
--silent |
--silen |
--sile |
--sil)
1519 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1522 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1524 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1525 if test $ac_must_keep_next = true
; then
1526 ac_must_keep_next
=false
# Got value, back to normal.
1529 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1530 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1531 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1532 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1533 case "$ac_configure_args0 " in
1534 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1537 -* ) ac_must_keep_next
=true
;;
1540 ac_configure_args
="$ac_configure_args '$ac_arg'"
1545 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1546 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1548 # When interrupted or exit'd, cleanup temporary files, and complete
1549 # config.log. We remove comments because anyway the quotes in there
1550 # would cause problems or look ugly.
1551 # WARNING: Use '\'' to represent an apostrophe within the trap.
1552 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1553 trap 'exit_status=$?
1554 # Save into config.log some information that might help in debugging.
1559 ## ---------------- ##
1560 ## Cache variables. ##
1561 ## ---------------- ##
1564 # The following way of writing the cache mishandles newlines in values,
1566 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1567 eval ac_val=\$$ac_var
1571 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1572 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1575 _ | IFS | as_nl) ;; #(
1576 *) $as_unset $ac_var ;;
1581 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1582 *${as_nl}ac_space=\ *)
1584 "s/'\''/'\''\\\\'\'''\''/g;
1585 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1588 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1596 ## ----------------- ##
1597 ## Output variables. ##
1598 ## ----------------- ##
1601 for ac_var in $ac_subst_vars
1603 eval ac_val=\$$ac_var
1605 *\'\''*) ac_val
=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1607 echo "$ac_var='\''$ac_val'\''"
1611 if test -n "$ac_subst_files"; then
1613 ## ------------------- ##
1614 ## File substitutions. ##
1615 ## ------------------- ##
1618 for ac_var
in $ac_subst_files
1620 eval ac_val
=\$
$ac_var
1622 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1624 echo "$ac_var='\''$ac_val'\''"
1629 if test -s confdefs.h; then
1639 test "$ac_signal" != 0 &&
1640 echo "$as_me: caught signal $ac_signal"
1641 echo "$as_me: exit $exit_status"
1643 rm -f core *.core core.conftest.* &&
1644 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1647 for ac_signal
in 1 2 13 15; do
1648 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1652 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1653 rm -f -r conftest
* confdefs.h
1655 # Predefined preprocessor variables.
1657 cat >>confdefs.h
<<_ACEOF
1658 #define PACKAGE_NAME "$PACKAGE_NAME"
1662 cat >>confdefs.h
<<_ACEOF
1663 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1667 cat >>confdefs.h
<<_ACEOF
1668 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1672 cat >>confdefs.h
<<_ACEOF
1673 #define PACKAGE_STRING "$PACKAGE_STRING"
1677 cat >>confdefs.h
<<_ACEOF
1678 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1682 # Let the site file select an alternate cache file if it wants to.
1683 # Prefer explicitly selected file to automatically selected ones.
1684 if test -n "$CONFIG_SITE"; then
1685 set x
"$CONFIG_SITE"
1686 elif test "x$prefix" != xNONE
; then
1687 set x
"$prefix/share/config.site" "$prefix/etc/config.site"
1689 set x
"$ac_default_prefix/share/config.site" \
1690 "$ac_default_prefix/etc/config.site"
1695 if test -r "$ac_site_file"; then
1696 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1697 echo "$as_me: loading site script $ac_site_file" >&6;}
1698 sed 's/^/| /' "$ac_site_file" >&5
1703 if test -r "$cache_file"; then
1704 # Some versions of bash will fail to source /dev/null (special
1705 # files actually), so we avoid doing that.
1706 if test -f "$cache_file"; then
1707 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1708 echo "$as_me: loading cache $cache_file" >&6;}
1710 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
1711 *) .
"./$cache_file";;
1715 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1716 echo "$as_me: creating cache $cache_file" >&6;}
1720 ac_header_list
="$ac_header_list sys/time.h"
1721 ac_header_list
="$ac_header_list unistd.h"
1722 ac_func_list
="$ac_func_list alarm"
1723 # Check that the precious variables saved in the cache have kept the same
1725 ac_cache_corrupted
=false
1726 for ac_var
in $ac_precious_vars; do
1727 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1728 eval ac_new_set
=\
$ac_env_${ac_var}_set
1729 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
1730 eval ac_new_val
=\
$ac_env_${ac_var}_value
1731 case $ac_old_set,$ac_new_set in
1733 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1734 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1735 ac_cache_corrupted
=: ;;
1737 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1738 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1739 ac_cache_corrupted
=: ;;
1742 if test "x$ac_old_val" != "x$ac_new_val"; then
1743 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1744 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1745 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1746 echo "$as_me: former value: $ac_old_val" >&2;}
1747 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1748 echo "$as_me: current value: $ac_new_val" >&2;}
1749 ac_cache_corrupted
=:
1752 # Pass precious variables to config.status.
1753 if test "$ac_new_set" = set; then
1755 *\'*) ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1756 *) ac_arg
=$ac_var=$ac_new_val ;;
1758 case " $ac_configure_args " in
1759 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1760 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1764 if $ac_cache_corrupted; then
1765 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1766 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1767 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1768 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1769 { (exit 1); exit 1; }; }
1789 ac_cpp
='$CPP $CPPFLAGS'
1790 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1791 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1792 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1795 ac_config_headers
="$ac_config_headers src/config.h:src/config.in"
1798 test "$program_prefix" != NONE
&&
1799 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
1800 # Use a double $ so make ignores it.
1801 test "$program_suffix" != NONE
&&
1802 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
1803 # Double any \ or $. echo might interpret backslashes.
1804 # By default was `s,x,x', remove it if useless.
1805 cat <<\_ACEOF
>conftest.
sed
1806 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1808 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1812 lispdir
='${datadir}/emacs/${version}/lisp'
1813 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
1814 '${datadir}/emacs/site-lisp'
1815 lisppath
='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1816 etcdir
='${datadir}/emacs/${version}/etc'
1817 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
1818 docdir
='${datadir}/emacs/${version}/etc'
1819 gamedir
='${localstatedir}/games/emacs'
1825 # Check whether --with-gcc was given.
1826 if test "${with_gcc+set}" = set; then
1832 # Check whether --with-pop was given.
1833 if test "${with_pop+set}" = set; then
1834 withval
=$with_pop; if test "$withval" = yes; then
1835 cat >>confdefs.h
<<\_ACEOF
1836 #define MAIL_USE_POP 1
1842 cat >>confdefs.h
<<\_ACEOF
1843 #define MAIL_USE_POP 1
1851 # Check whether --with-kerberos was given.
1852 if test "${with_kerberos+set}" = set; then
1853 withval
=$with_kerberos; if test "$withval" = yes; then
1854 cat >>confdefs.h
<<\_ACEOF
1864 # Check whether --with-kerberos5 was given.
1865 if test "${with_kerberos5+set}" = set; then
1866 withval
=$with_kerberos5; if test "${with_kerberos5+set}" = set; then
1867 if test "${with_kerberos+set}" != set; then
1869 cat >>confdefs.h
<<\_ACEOF
1875 cat >>confdefs.h
<<\_ACEOF
1884 # Check whether --with-hesiod was given.
1885 if test "${with_hesiod+set}" = set; then
1886 withval
=$with_hesiod; if test "$withval" = yes; then
1888 cat >>confdefs.h
<<\_ACEOF
1897 # Check whether --with-sound was given.
1898 if test "${with_sound+set}" = set; then
1899 withval
=$with_sound;
1904 # Check whether --with-x-toolkit was given.
1905 if test "${with_x_toolkit+set}" = set; then
1906 withval
=$with_x_toolkit; case "${withval}" in
1907 y | ye |
yes ) val
=gtk
;;
1909 l | lu | luc | luci | lucid
) val
=lucid
;;
1910 a |
at | ath | athe | athen | athena
) val
=athena
;;
1911 m | mo | mot | moti | motif
) val
=motif
;;
1912 g | gt | gtk
) val
=gtk
;;
1914 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
1915 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1916 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
1917 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
1918 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1919 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
1920 { (exit 1); exit 1; }; }
1929 # Check whether --with-xpm was given.
1930 if test "${with_xpm+set}" = set; then
1935 # Check whether --with-jpeg was given.
1936 if test "${with_jpeg+set}" = set; then
1941 # Check whether --with-tiff was given.
1942 if test "${with_tiff+set}" = set; then
1947 # Check whether --with-gif was given.
1948 if test "${with_gif+set}" = set; then
1953 # Check whether --with-png was given.
1954 if test "${with_png+set}" = set; then
1959 # Check whether --with-gpm was given.
1960 if test "${with_gpm+set}" = set; then
1965 # Check whether --with-rsvg was given.
1966 if test "${with_rsvg+set}" = set; then
1971 # Check whether --with-gtk was given.
1972 if test "${with_gtk+set}" = set; then
1977 # Check whether --with-pkg-config-prog was given.
1978 if test "${with_pkg_config_prog+set}" = set; then
1979 withval
=$with_pkg_config_prog;
1983 # Check whether --with-toolkit-scroll-bars was given.
1984 if test "${with_toolkit_scroll_bars+set}" = set; then
1985 withval
=$with_toolkit_scroll_bars;
1989 # Check whether --with-xaw3d was given.
1990 if test "${with_xaw3d+set}" = set; then
1991 withval
=$with_xaw3d;
1995 # Check whether --with-xim was given.
1996 if test "${with_xim+set}" = set; then
2001 # Check whether --with-carbon was given.
2002 if test "${with_carbon+set}" = set; then
2003 withval
=$with_carbon;
2007 # Check whether --enable-carbon-app was given.
2008 if test "${enable_carbon_app+set}" = set; then
2009 enableval
=$enable_carbon_app; carbon_appdir_x
=${enableval}
2013 # Check whether --enable-asserts was given.
2014 if test "${enable_asserts+set}" = set; then
2015 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
2021 # Check whether --enable-maintainer-mode was given.
2022 if test "${enable_maintainer_mode+set}" = set; then
2023 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2025 USE_MAINTAINER_MODE
=no
2028 if test $USE_MAINTAINER_MODE = yes; then
2035 # Check whether --enable-locallisppath was given.
2036 if test "${enable_locallisppath+set}" = set; then
2037 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
2039 elif test "${enableval}" != "yes"; then
2040 locallisppath
=${enableval}
2045 #### Make srcdir absolute, if it isn't already. It's important to
2046 #### avoid running the path through pwd unnecessarily, since pwd can
2047 #### give you automounter prefixes, which can go away. We do all this
2048 #### so Emacs can find its files when run uninstalled.
2049 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2054 ## We may be able to use the $PWD environment variable to make this
2055 ## absolute. But sometimes PWD is inaccurate.
2056 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2057 ## but that tested only for a well-formed and valid PWD,
2058 ## it did not object when PWD was well-formed and valid but just wrong.
2059 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2063 srcdir
="`(cd ${srcdir}; pwd)`"
2066 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2069 #### Check if the source directory already has a configured system in it.
2070 if test `pwd` != `(cd ${srcdir} && pwd)` \
2071 && test -f "${srcdir}/src/config.h" ; then
2072 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2073 as a build directory right now; it has been configured in its own
2074 right. To configure in another directory as well, you MUST
2075 use GNU make. If you do not have GNU make, then you must
2076 now do \`make distclean' in ${srcdir},
2077 and then run $0 again." >&5
2078 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2079 as a build directory right now; it has been configured in its own
2080 right. To configure in another directory as well, you MUST
2081 use GNU make. If you do not have GNU make, then you must
2082 now do \`make distclean' in ${srcdir},
2083 and then run $0 again." >&2;}
2086 #### Given the configuration name, set machfile and opsysfile to the
2087 #### names of the m/*.h and s/*.h files we should use.
2089 ### Canonicalize the configuration name.
2092 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2093 if test -f "$ac_dir/install-sh"; then
2095 ac_install_sh
="$ac_aux_dir/install-sh -c"
2097 elif test -f "$ac_dir/install.sh"; then
2099 ac_install_sh
="$ac_aux_dir/install.sh -c"
2101 elif test -f "$ac_dir/shtool"; then
2103 ac_install_sh
="$ac_aux_dir/shtool install -c"
2107 if test -z "$ac_aux_dir"; then
2108 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2109 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2110 { (exit 1); exit 1; }; }
2113 # These three variables are undocumented and unsupported,
2114 # and are intended to be withdrawn in a future Autoconf release.
2115 # They can cause serious problems if a builder's source tree is in a directory
2116 # whose full name contains unusual characters.
2117 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2118 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2119 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2122 # Make sure we can run config.sub.
2123 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2124 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2125 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2126 { (exit 1); exit 1; }; }
2128 { echo "$as_me:$LINENO: checking build system type" >&5
2129 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2130 if test "${ac_cv_build+set}" = set; then
2131 echo $ECHO_N "(cached) $ECHO_C" >&6
2133 ac_build_alias
=$build_alias
2134 test "x$ac_build_alias" = x
&&
2135 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2136 test "x$ac_build_alias" = x
&&
2137 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2138 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2139 { (exit 1); exit 1; }; }
2140 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2141 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2142 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2143 { (exit 1); exit 1; }; }
2146 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2147 echo "${ECHO_T}$ac_cv_build" >&6; }
2148 case $ac_cv_build in
2150 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2151 echo "$as_me: error: invalid value of canonical build" >&2;}
2152 { (exit 1); exit 1; }; };;
2155 ac_save_IFS
=$IFS; IFS
='-'
2161 # Remember, the first character of IFS is used to create $*,
2162 # except with old shells:
2165 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2168 { echo "$as_me:$LINENO: checking host system type" >&5
2169 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2170 if test "${ac_cv_host+set}" = set; then
2171 echo $ECHO_N "(cached) $ECHO_C" >&6
2173 if test "x$host_alias" = x
; then
2174 ac_cv_host
=$ac_cv_build
2176 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2177 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2178 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2179 { (exit 1); exit 1; }; }
2183 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2184 echo "${ECHO_T}$ac_cv_host" >&6; }
2187 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2188 echo "$as_me: error: invalid value of canonical host" >&2;}
2189 { (exit 1); exit 1; }; };;
2192 ac_save_IFS
=$IFS; IFS
='-'
2198 # Remember, the first character of IFS is used to create $*,
2199 # except with old shells:
2202 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2206 configuration
=${host_alias-${build_alias-$host}}
2210 ### If you add support for a new configuration, add code to this
2211 ### switch statement to recognize your configuration name and select
2212 ### the appropriate operating system and machine description files.
2214 ### You would hope that you could choose an m/*.h file pretty much
2215 ### based on the machine portion of the configuration name, and an s-
2216 ### file based on the operating system portion. However, it turns out
2217 ### that each m/*.h file is pretty manufacturer-specific - for
2218 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
2219 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
2220 ### machines. So we basically have to have a special case for each
2221 ### configuration name.
2223 ### As far as handling version numbers on operating systems is
2224 ### concerned, make sure things will fail in a fixable way. If
2225 ### /etc/MACHINES doesn't say anything about version numbers, be
2226 ### prepared to handle anything reasonably. If version numbers
2227 ### matter, be sure /etc/MACHINES says something about it.
2229 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2230 ### "System V Release 4"; he writes, "The old convention encouraged
2231 ### confusion between `system' and `release' levels'."
2233 machine
='' opsys
='' unported
=no
2234 case "${canonical}" in
2239 case "${canonical}" in
2240 alpha
*-*-freebsd*) machine
=alpha
;;
2241 ia64-
*-freebsd*) machine
=ia64
;;
2242 sparc64-
*-freebsd*) machine
=sparc
;;
2243 powerpc-
*-freebsd*) machine
=macppc
;;
2244 i
[3456]86-*-freebsd*) machine
=intel386
;;
2245 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2252 if test -f /usr
/lib
/crti.o
; then
2254 cat >>confdefs.h
<<\_ACEOF
2260 case "${canonical}" in
2261 alpha
*-*-netbsd*) machine
=alpha
;;
2262 i
[3456]86-*-netbsd*) machine
=intel386
;;
2264 # This is somewhat bogus.
2265 machine
=hp9000s300
;;
2266 mips-
*-netbsd*) machine
=pmax
;;
2267 mipsel-
*-netbsd*) machine
=pmax
;;
2268 mipseb-
*-netbsd*) machine
=pmax
;;
2269 ns32k-
*-netbsd*) machine
=ns32000
;;
2270 powerpc-
*-netbsd*) machine
=macppc
;;
2271 sparc
*-*-netbsd*) machine
=sparc
;;
2272 vax-
*-netbsd*) machine
=vax
;;
2273 arm-
*-netbsd*) machine
=arm
;;
2274 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2275 hppa-
*-netbsd*) machine
=hp800
;;
2276 shle-
*-netbsd*) machine
=sh3el
;;
2283 case "${canonical}" in
2284 alpha
*-*-openbsd*) machine
=alpha
;;
2285 arm-
*-openbsd*) machine
=arm
;;
2286 hppa-
*-openbsd*) machine
=hp9000s300
;;
2287 i386-
*-openbsd*) machine
=intel386
;;
2288 m68k-
*-openbsd*) machine
=hp9000s300
;;
2289 m88k-
*-openbsd*) machine
=aviion
;;
2290 mips64-
*-openbsd*) machine
=mips64
;;
2291 powerpc-
*-openbsd*) machine
=macppc
;;
2292 sh-
*-openbsd*) machine
=sh3el
;;
2293 sparc
*-*-openbsd*) machine
=sparc
;;
2294 vax-
*-openbsd*) machine
=vax
;;
2295 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2302 case "${canonical}" in
2303 i
[3456]86-*-lynxos*) machine
=intel386
;;
2304 powerpc-
*-lynxos*) machine
=powerpc
;;
2309 arm-acorn-riscix1.1
* )
2310 machine
=acorn opsys
=riscix1-1
2312 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
2313 ## This name is riscix12 instead of riscix1.2
2314 ## to avoid a file name conflict on MSDOS.
2315 machine
=acorn opsys
=riscix12
2321 case "${canonical}" in
2322 i
[345]86-*-bsdi*) machine
=intel386
;;
2323 sparc-
*-bsdi*) machine
=sparc
;;
2324 powerpc-
*-bsdi*) machine
=macppc
;;
2326 case "${canonical}" in
2327 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
2328 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
2329 *-*-bsdi2* ) opsys
=bsdos2-1
;;
2330 *-*-bsdi3* ) opsys
=bsdos3
;;
2331 *-*-bsdi[45]* ) opsys
=bsdos4
;;
2336 ## Strictly speaking, we need the version of the alliant operating
2337 ## system to choose the right machine file, but currently the
2338 ## configuration name doesn't tell us enough to choose the right
2339 ## one; we need to give alliants their own operating system name to
2340 ## do this right. When someone cares, they can help us.
2342 machine
=alliant4 opsys
=bsd4-2
2345 machine
=alliant-2800 opsys
=bsd4-3
2348 ## Alpha (DEC) machines.
2350 machine
=alpha opsys
=osf1
2351 # This is needed to find X11R6.1 libraries for certain tests.
2352 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2353 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2354 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2355 # due to non-traditional preprocessing with the current compiler
2356 # defaults. OSF 4 can also have that compiler version, and there
2357 # seems always to have been a usable /usr/bin/cpp.
2358 NON_GNU_CPP
=/usr
/bin
/cpp
2359 case "${canonical}" in
2360 alpha
*-dec-osf[5-9]*)
2365 alpha
*-*-linux-gnu* )
2366 machine
=alpha opsys
=gnu-linux
2370 machine
=arm opsys
=gnu-linux
2375 machine
=altos opsys
=usg5-2
2380 machine
=amdahl opsys
=usg5-2-2
2383 ## Apollo, Domain/OS
2385 machine
=apollo opsys
=bsd4-3
2388 ## Apple Darwin / Mac OS X
2390 case "${canonical}" in
2391 i
[3456]86-* ) machine
=intel386
;;
2392 powerpc-
* ) machine
=powermac
;;
2396 # Define CPP as follows to make autoconf work correctly.
2397 CPP
="${CC-cc} -E -no-cpp-precomp"
2398 # Use fink packages if available.
2399 if test -d /sw
/include
&& test -d /sw
/lib
; then
2400 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2401 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2402 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2406 ## AT&T 3b2, 3b5, 3b15, 3b20
2408 machine
=att3b opsys
=usg5-2-2
2411 ## AT&T 3b1 - The Mighty Unix PC!
2413 machine
=7300 opsys
=usg5-2-2
2418 machine
=ibmrs6000 opsys
=aix3-2
2423 machine
=dpx2 opsys
=usg5-3
2428 machine
=sps7 opsys
=usg5-2
2431 ## CCI 5/32, 6/32 -- see "Tahoe".
2434 ## I don't know what configuration name to use for this; config.sub
2435 ## doesn't seem to know anything about it. Hey, Celerity users, get
2436 ## in touch with us!
2437 celerity-celerity-bsd
* )
2438 machine
=celerity opsys
=bsd4-2
2442 ## What operating systems does this chip run that Emacs has been
2446 ## We'll use the catch-all code at the bottom to guess the
2447 ## operating system.
2451 mips-compaq-nonstopux
* )
2452 machine
=nonstopux opsys
=nonstopux
2456 *-convex-bsd* |
*-convex-convexos* )
2457 machine
=convex opsys
=bsd4-3
2458 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2459 NON_GNU_CPP
="cc -E -P"
2463 i
[3456]86-cubix-sysv* )
2464 machine
=intel386 opsys
=usg5-3
2468 cydra
*-cydrome-sysv* )
2469 machine
=cydra5 opsys
=usg5-3
2472 ## Data General AViiON Machines
2473 ## DG changed naming conventions with the release of 5.4.4.10, they
2474 ## dropped the initial 5.4 but left the intervening R. Because of the
2475 ## R this shouldn't conflict with older versions of the OS (which I
2476 ## think were named like dgux4.*). In addition, DG new AViiONs series
2477 ## uses either Motorola M88k or Intel Pentium CPUs.
2478 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
2479 machine
=aviion opsys
=dgux4
2481 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
2482 ## This name is dgux5-4-3 instead of dgux5-4r3
2483 ## to avoid a file name conflict on MSDOS.
2484 machine
=aviion opsys
=dgux5-4-3
2486 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
2487 machine
=aviion opsys
=dgux5-4r2
2490 machine
=aviion opsys
=dgux
2493 ## Data General AViiON Intel (x86) Machines
2494 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2495 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2496 i
[345]86-dg-dguxR4* )
2497 machine
=aviion-intel opsys
=dgux4
2501 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
2502 machine
=pmax opsys
=bsd4-2
2504 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
2505 machine
=pmax opsys
=bsd4-3
2508 machine
=pmax opsys
=ultrix4-3
2511 machine
=pmax opsys
=osf1
2513 mips-dec-mach_bsd4.3
* )
2514 machine
=pmax opsys
=mach-bsd4-3
2517 ## Motorola Delta machines
2518 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
2519 machine
=delta opsys
=usg5-3
2520 if test -z "`type gnucc | grep 'not found'`"
2522 if test -s /etc
/167config
2523 then CC
="gnucc -m68040"
2524 else CC
="gnucc -m68881"
2527 if test -z "`type gcc | grep 'not found'`"
2533 m88k-motorola-sysv4
* )
2534 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2535 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2536 # I hope there are not other 4.0 versions for this machine
2537 # which really need usg5-4 instead.
2538 machine
=delta88k opsys
=usg5-4-2
2540 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
2541 machine
=delta88k opsys
=usg5-3
2546 machine
=dual opsys
=usg5-2
2548 m68
*-dual-uniplus* )
2549 machine
=dual opsys
=unipl5-2
2554 machine
=elxsi opsys
=usg5-2
2559 machine
=ns16000 opsys
=umax
2562 ## The GEC 63 - apparently, this port isn't really finished yet.
2563 # I'm sure we finished off the last of the machines, though. -- fx
2565 ## Gould Power Node and NP1
2567 machine
=gould opsys
=bsd4-2
2570 machine
=gould opsys
=bsd4-3
2573 machine
=gould-np1 opsys
=bsd4-3
2576 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2577 ## as far as Emacs is concerned).
2579 # Build needs to be different on 7.0 and later releases
2580 case "`uname -r`" in
2581 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
2582 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
2584 NON_GNU_CPP
="/lib/cpp"
2586 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2588 machine
=nh3000 opsys
=cxux
2590 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2591 powerpc-harris-powerunix
)
2592 machine
=nh6000 opsys
=powerunix
2593 NON_GNU_CPP
="cc -Xo -E -P"
2595 ## SR2001/SR2201 running HI-UX/MPP
2596 hppa1.1
-hitachi-hiuxmpp* )
2597 machine
=sr2k opsys
=hiuxmpp
2599 hppa1.1
-hitachi-hiuxwe2* )
2600 machine
=sr2k opsys
=hiuxwe2
2603 xps
*-honeywell-sysv* )
2604 machine
=xps100 opsys
=usg5-2
2607 ## HP 9000 series 200 or 300
2609 machine
=hp9000s300 opsys
=bsd4-3
2611 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2613 case "`uname -r`" in
2614 ## Someone's system reports A.B8.05 for this.
2615 ## I wonder what other possibilities there are.
2616 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2617 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2618 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2619 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2620 *) machine
=hp9000s300 opsys
=hpux
;;
2624 ## HP 9000 series 700 and 800, running HP/UX
2626 machine
=hp800 opsys
=hpux
2629 machine
=hp800 opsys
=hpux8
2631 hppa
*-hp-hpux9shr* )
2632 machine
=hp800 opsys
=hpux9shr
2635 machine
=hp800 opsys
=hpux9
2637 hppa
*-hp-hpux10.2
* )
2638 machine
=hp800 opsys
=hpux10-20
2641 machine
=hp800 opsys
=hpux10
2643 hppa
*-hp-hpux1[1-9]* )
2644 machine
=hp800 opsys
=hpux11
2645 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2648 hppa
*-*-linux-gnu* )
2649 machine
=hp800 opsys
=gnu-linux
2652 ## HP 9000 series 700 and 800, running HP/UX
2654 ## Cross-compilation? Nah!
2655 case "`uname -r`" in
2656 ## Someone's system reports A.B8.05 for this.
2657 ## I wonder what other possibilities there are.
2658 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2659 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2660 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2661 *) machine
=hp800 opsys
=hpux10
;;
2665 machine
=hp800 opsys
=nextstep
2670 machine
=orion opsys
=bsd4-2
2672 clipper-orion-bsd
* )
2673 machine
=orion105 opsys
=bsd4-2
2677 i
[3456]86-ibm-aix1.1
* )
2678 machine
=ibmps2-aix opsys
=usg5-2-2
2680 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2681 machine
=ibmps2-aix opsys
=usg5-3
2684 machine
=ibm370aix opsys
=usg5-3
2687 machine
=ibms390 opsys
=gnu-linux
2689 s390x-
*-linux-gnu* )
2690 machine
=ibms390x opsys
=gnu-linux
2692 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2693 machine
=ibmrs6000 opsys
=aix3-1
2695 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2696 machine
=ibmrs6000 opsys
=aix3-2-5
2698 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2699 machine
=ibmrs6000 opsys
=aix4-1
2701 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2702 machine
=ibmrs6000 opsys
=aix4-2
2704 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
2705 machine
=ibmrs6000 opsys
=aix4-2
2707 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2708 machine
=ibmrs6000 opsys
=aix4-2
2710 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2711 machine
=ibmrs6000 opsys
=aix4
2713 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2714 machine
=ibmrs6000 opsys
=aix4-1
2716 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2717 machine
=ibmrs6000 opsys
=aix3-2
2720 machine
=ibmrt opsys
=bsd4-3
2723 machine
=ibmrt opsys
=bsd4-2
2726 machine
=ibmrt opsys
=bsd4-3
2729 machine
=ibmrt opsys
=bsd4-2
2732 machine
=ibmrt opsys
=bsd4-3
2735 machine
=ibmrt opsys
=bsd4-3
2738 machine
=ibmrt-aix opsys
=usg5-2-2
2741 ## Integrated Solutions `Optimum V'
2743 machine
=isi-ov opsys
=bsd4-2
2746 machine
=isi-ov opsys
=bsd4-3
2749 ## Intel 386 machines where we do care about the manufacturer
2750 i
[3456]86-intsys-sysv* )
2751 machine
=is386 opsys
=usg5-2-2
2755 i
[3456]86-prime-sysv* )
2756 machine
=i386 opsys
=usg5-3
2759 ## Sequent Symmetry running Dynix
2760 i
[3456]86-sequent-bsd* )
2761 machine
=symmetry opsys
=bsd4-3
2764 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2765 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2766 machine
=sequent-ptx opsys
=ptx4
2767 NON_GNU_CPP
=/lib
/cpp
2770 ## Sequent Symmetry running DYNIX/ptx
2771 ## Use the old cpp rather than the newer ANSI one.
2772 i
[3456]86-sequent-ptx* )
2773 machine
=sequent-ptx opsys
=ptx
2774 NON_GNU_CPP
="/lib/cpp"
2777 ## ncr machine running svr4.3.
2778 i
[3456]86-ncr-sysv4.3
)
2779 machine
=ncr386 opsys
=usg5-4-3
2782 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2783 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2784 i
[3456]86-ncr-sysv* )
2785 machine
=ncr386 opsys
=usg5-4-2
2788 ## Intel Paragon OSF/1
2790 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2795 machine
=i860 opsys
=usg5-4
2796 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2797 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2800 ## Macintosh PowerPC
2801 powerpc
*-*-linux-gnu* )
2802 machine
=macppc opsys
=gnu-linux
2805 ## Masscomp machines
2806 m68
*-masscomp-rtu* )
2807 machine
=masscomp opsys
=rtu
2810 ## Megatest machines
2811 m68
*-megatest-bsd* )
2812 machine
=mega68 opsys
=bsd4-2
2815 ## Workstations sold by MIPS
2816 ## This is not necessarily all workstations using the MIPS processor -
2817 ## Irises are produced by SGI, and DECstations by DEC.
2819 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2820 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2821 ## it gives for choosing between the alternatives seems to be "Use
2822 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2823 ## the BSD world." I'll assume that these are instructions for
2824 ## handling two odd situations, and that every other situation
2825 ## should use mips.h and usg5-2-2, they being listed first.
2828 ## Fall through to the general code at the bottom to decide on the OS.
2830 mips-mips-riscos4
* )
2831 machine
=mips4 opsys
=bsd4-3
2832 NON_GNU_CC
="cc -systype bsd43"
2833 NON_GNU_CPP
="cc -systype bsd43 -E"
2835 mips-mips-riscos5
* )
2836 machine
=mips4 opsys
=riscos5
2837 NON_GNU_CC
="cc -systype bsd43"
2838 NON_GNU_CPP
="cc -systype bsd43 -E"
2841 machine
=mips opsys
=bsd4-3
2844 machine
=mips opsys
=usg5-2-2
2848 m68
*-next-* | m68k-
*-nextstep* )
2849 machine
=m68k opsys
=nextstep
2852 ## The complete machine from National Semiconductor
2854 machine
=ns32000 opsys
=usg5-2
2858 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2859 machine
=tower32 opsys
=usg5-2-2
2861 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2862 machine
=tower32v3 opsys
=usg5-3
2867 machine
=ews4800 opsys
=ux4800
2870 ## Nixdorf Targon 31
2871 m68
*-nixdorf-sysv* )
2872 machine
=targon31 opsys
=usg5-2-2
2877 machine
=nu opsys
=usg5-2
2882 machine
=plexus opsys
=usg5-2
2886 ## I don't really have any idea what sort of processor the Pyramid has,
2887 ## so I'm assuming it is its own architecture.
2888 pyramid-pyramid-bsd
* )
2889 machine
=pyramid opsys
=bsd4-2
2893 ns32k-sequent-bsd4.2
* )
2894 machine
=sequent opsys
=bsd4-2
2896 ns32k-sequent-bsd4.3
* )
2897 machine
=sequent opsys
=bsd4-3
2901 mips-siemens-sysv
* | mips-sni-sysv
*)
2902 machine
=mips-siemens opsys
=usg5-4
2903 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2904 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2907 ## Silicon Graphics machines
2908 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2910 machine
=irist opsys
=iris3-5
2912 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2913 machine
=irist opsys
=iris3-6
2917 machine
=iris4d opsys
=irix3-3
2920 machine
=iris4d opsys
=irix4-0
2923 machine
=iris4d opsys
=irix6-5
2924 # Without defining _LANGUAGE_C, things get masked out in the headers
2925 # so that, for instance, grepping for `free' in stdlib.h fails and
2926 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2927 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2928 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2931 machine
=iris4d opsys
=irix6-0
2932 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2933 # but presumably it does no harm.
2934 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2935 # -32 probably isn't necessary in later v.6s -- anyone know which?
2936 NON_GCC_TEST_OPTIONS
=-32
2938 mips-sgi-irix5.
[01]* )
2939 machine
=iris4d opsys
=irix5-0
2941 mips-sgi-irix5
* | mips-sgi-irix
* )
2942 machine
=iris4d opsys
=irix5-2
2947 machine
=news opsys
=bsd4-2
2950 machine
=news opsys
=bsd4-3
2952 m68
*-sony-newsos3* | m68
*-sony-news3*)
2953 machine
=news opsys
=bsd4-3
2955 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2956 machine
=news-risc opsys
=bsd4-3
2958 mips-sony-newsos6
* )
2959 machine
=news-r6 opsys
=newsos6
2962 machine
=news-risc opsys
=newsos5
2967 machine
=stride opsys
=usg5-2
2971 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2972 machine
=sparc opsys
=gnu-linux
2975 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2976 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2977 | rs6000-
*-solaris2*)
2978 case "${canonical}" in
2979 m68
*-sunos1* ) machine
=sun1
;;
2980 m68
*-sunos2* ) machine
=sun2
;;
2981 m68
* ) machine
=sun3
;;
2982 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2983 i
[3456]86-*-* ) machine
=intel386
;;
2984 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2985 powerpcle
* ) machine
=powerpcle
;;
2986 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2987 sparc
* ) machine
=sparc
;;
2990 case "${canonical}" in
2991 ## The Sun386 didn't get past 4.0.
2992 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2993 *-sunos4.0
* ) opsys
=sunos4-0
;;
2994 *-sunos4.1.
[3-9]*noshare
)
2995 ## This name is sunos413 instead of sunos4-1-3
2996 ## to avoid a file name conflict on MSDOS.
2998 NON_GNU_CPP
=/usr
/lib
/cpp
2999 NON_GCC_TEST_OPTIONS
=-Bstatic
3000 GCC_TEST_OPTIONS
=-static
3002 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
3004 NON_GNU_CPP
=/usr
/lib
/cpp
3006 *-sunos4* |
*-sunos )
3008 NON_GCC_TEST_OPTIONS
=-Bstatic
3009 GCC_TEST_OPTIONS
=-static
3011 *-sunos5.3
* |
*-solaris2.3
* )
3013 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3015 *-sunos5.4
* |
*-solaris2.4
* )
3017 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3020 *-sunos5.5
* |
*-solaris2.5
* )
3022 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3025 *-sunos5.6
* |
*-solaris2.6
* )
3027 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3030 *-sunos5* |
*-solaris* )
3032 emacs_check_sunpro_c
=yes
3033 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3037 ## Watch out for a compiler that we know will not work.
3038 case "${canonical}" in
3039 *-solaris* |
*-sunos5* )
3040 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
3041 ## /usr/ucb/cc doesn't work;
3042 ## we should find some other compiler that does work.
3050 machine
=sparc opsys
=nextstep
3054 m68
*-tadpole-sysv* )
3055 machine
=tad68k opsys
=usg5-3
3059 tahoe-tahoe-bsd4.2
* )
3060 machine
=tahoe opsys
=bsd4-2
3062 tahoe-tahoe-bsd4.3
* )
3063 machine
=tahoe opsys
=bsd4-3
3066 ## Tandem Integrity S2
3068 machine
=tandem-s2 opsys
=usg5-3
3072 m88k-tektronix-sysv3
* )
3073 machine
=tekxd88 opsys
=usg5-3
3076 ## Tektronix 16000 box (6130?)
3077 ns16k-tektronix-bsd
* )
3078 machine
=ns16000 opsys
=bsd4-2
3081 ## src/m/tek4300.h hints that this is a m68k machine.
3082 m68
*-tektronix-bsd* )
3083 machine
=tek4300 opsys
=bsd4-3
3087 ## We seem to have lost the machine-description file titan.h!
3089 machine
=titan opsys
=usg5-3
3092 ## Ustation E30 (SS5E)
3093 m68
*-unisys-uniplus* )
3094 machine
=ustation opsystem
=unipl5-2
3100 case "${canonical}" in
3101 *-bsd4.1
* ) opsys
=bsd4-1
;;
3102 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
3103 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
3104 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
3105 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
3106 *-vms* ) opsys
=vms
;;
3112 ns16k-whitechapel-
* )
3114 ## We don't know what sort of OS runs on these; we'll let the
3115 ## operating system guessing code below try.
3120 machine
=wicat opsys
=usg5-2
3125 machine
=ia64 opsys
=gnu-linux
3128 ## Intel 386 machines where we don't care about the manufacturer
3131 case "${canonical}" in
3132 *-cygwin ) opsys
=cygwin
;;
3133 *-darwin* ) opsys
=darwin
3134 CPP
="${CC-cc} -E -no-cpp-precomp"
3136 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
3137 *-isc2.2
* ) opsys
=isc2-2
;;
3138 *-isc4.0
* ) opsys
=isc4-0
;;
3139 *-isc4.
* ) opsys
=isc4-1
3140 GCC_TEST_OPTIONS
=-posix
3141 NON_GCC_TEST_OPTIONS
=-Xp
3143 *-isc* ) opsys
=isc3-0
;;
3144 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
3145 *-esix* ) opsys
=esix
;;
3146 *-xenix* ) opsys
=xenix
;;
3147 *-linux-gnu* ) opsys
=gnu-linux
;;
3148 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
3149 *-sco3.2v5
* ) opsys
=sco5
3150 NON_GNU_CPP
=/lib
/cpp
3151 # Prevent -belf from being passed to $CPP.
3152 # /lib/cpp does not accept it.
3153 OVERRIDE_CPPFLAGS
=" "
3155 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3156 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3157 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3158 *-386bsd* ) opsys
=386bsd
;;
3159 *-nextstep* ) opsys
=nextstep
;;
3160 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3164 ## m68k Linux-based GNU system
3166 machine
=m68k opsys
=gnu-linux
3169 ## Mips Linux-based GNU system
3170 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
3171 machine
=mips opsys
=gnu-linux
3175 sparc-fujitsu-sysv4
* )
3176 machine
=sparc opsys
=uxpds
3177 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3182 f301-fujitsu-uxpv4.1
)
3183 machine
=f301 opsys
=uxpv
3186 ## AMD x86-64 Linux-based GNU system
3187 x86_64-
*-linux-gnu* )
3188 machine
=amdx86-64 opsys
=gnu-linux
3191 ## Tensilica Xtensa Linux-based GNU system
3192 xtensa-
*-linux-gnu* )
3193 machine
=xtensa opsys
=gnu-linux
3201 ### If the code above didn't choose an operating system, just choose
3202 ### an operating system based on the configuration name. You really
3203 ### only want to use this when you have no idea what the right
3204 ### operating system is; if you know what operating systems a machine
3205 ### runs, it's cleaner to make it explicit in the case statement
3207 if test x
"${opsys}" = x
; then
3208 case "${canonical}" in
3209 *-gnu* ) opsys
=gnu
;;
3210 *-bsd4.
[01] ) opsys
=bsd4-1
;;
3211 *-bsd4.2
) opsys
=bsd4-2
;;
3212 *-bsd4.3
) opsys
=bsd4-3
;;
3213 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
3214 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
3215 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
3216 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
3217 *-sysv4.2uw
* ) opsys
=unixware
;;
3218 *-sysv5uw* ) opsys
=unixware
;;
3219 *-sysv5OpenUNIX* ) opsys
=unixware
;;
3220 *-sysv4.1
* |
*-sysvr4.1
* )
3221 NON_GNU_CPP
=/usr
/lib
/cpp
3223 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
3224 if [ x
$NON_GNU_CPP = x
]; then
3225 if [ -f /usr
/ccs
/lib
/cpp
]; then
3226 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3228 NON_GNU_CPP
=/lib
/cpp
3232 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
3241 if test $unported = yes; then
3242 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3243 Check \`etc/MACHINES' for recognized configuration names." >&5
3244 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3245 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3246 { (exit 1); exit 1; }; }
3249 machfile
="m/${machine}.h"
3250 opsysfile
="s/${opsys}.h"
3253 #### Choose a compiler.
3254 test -n "$CC" && cc_specified
=yes
3256 # Save the value of CFLAGS that the user specified.
3257 SPECIFIED_CFLAGS
="$CFLAGS"
3260 "yes" ) CC
="gcc" GCC
=yes ;;
3261 "no" ) : ${CC=cc} ;;
3265 ac_cpp
='$CPP $CPPFLAGS'
3266 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3267 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3268 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3269 if test -n "$ac_tool_prefix"; then
3270 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3271 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3272 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3274 if test "${ac_cv_prog_CC+set}" = set; then
3275 echo $ECHO_N "(cached) $ECHO_C" >&6
3277 if test -n "$CC"; then
3278 ac_cv_prog_CC
="$CC" # Let the user override the test.
3280 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3284 test -z "$as_dir" && as_dir
=.
3285 for ac_exec_ext
in '' $ac_executable_extensions; do
3286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3287 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3298 if test -n "$CC"; then
3299 { echo "$as_me:$LINENO: result: $CC" >&5
3300 echo "${ECHO_T}$CC" >&6; }
3302 { echo "$as_me:$LINENO: result: no" >&5
3303 echo "${ECHO_T}no" >&6; }
3308 if test -z "$ac_cv_prog_CC"; then
3310 # Extract the first word of "gcc", so it can be a program name with args.
3311 set dummy gcc
; ac_word
=$2
3312 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3314 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3315 echo $ECHO_N "(cached) $ECHO_C" >&6
3317 if test -n "$ac_ct_CC"; then
3318 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3320 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3324 test -z "$as_dir" && as_dir
=.
3325 for ac_exec_ext
in '' $ac_executable_extensions; do
3326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3327 ac_cv_prog_ac_ct_CC
="gcc"
3328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3337 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3338 if test -n "$ac_ct_CC"; then
3339 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3340 echo "${ECHO_T}$ac_ct_CC" >&6; }
3342 { echo "$as_me:$LINENO: result: no" >&5
3343 echo "${ECHO_T}no" >&6; }
3346 if test "x$ac_ct_CC" = x
; then
3349 case $cross_compiling:$ac_tool_warned in
3351 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3352 whose name does not start with the host triplet. If you think this
3353 configuration is useful to you, please write to autoconf@gnu.org." >&5
3354 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3355 whose name does not start with the host triplet. If you think this
3356 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3357 ac_tool_warned
=yes ;;
3365 if test -z "$CC"; then
3366 if test -n "$ac_tool_prefix"; then
3367 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3368 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3369 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3371 if test "${ac_cv_prog_CC+set}" = set; then
3372 echo $ECHO_N "(cached) $ECHO_C" >&6
3374 if test -n "$CC"; then
3375 ac_cv_prog_CC
="$CC" # Let the user override the test.
3377 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3381 test -z "$as_dir" && as_dir
=.
3382 for ac_exec_ext
in '' $ac_executable_extensions; do
3383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3384 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3395 if test -n "$CC"; then
3396 { echo "$as_me:$LINENO: result: $CC" >&5
3397 echo "${ECHO_T}$CC" >&6; }
3399 { echo "$as_me:$LINENO: result: no" >&5
3400 echo "${ECHO_T}no" >&6; }
3406 if test -z "$CC"; then
3407 # Extract the first word of "cc", so it can be a program name with args.
3408 set dummy cc
; ac_word
=$2
3409 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3411 if test "${ac_cv_prog_CC+set}" = set; then
3412 echo $ECHO_N "(cached) $ECHO_C" >&6
3414 if test -n "$CC"; then
3415 ac_cv_prog_CC
="$CC" # Let the user override the test.
3418 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3422 test -z "$as_dir" && as_dir
=.
3423 for ac_exec_ext
in '' $ac_executable_extensions; do
3424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3425 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3426 ac_prog_rejected
=yes
3430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3437 if test $ac_prog_rejected = yes; then
3438 # We found a bogon in the path, so make sure we never use it.
3439 set dummy
$ac_cv_prog_CC
3441 if test $# != 0; then
3442 # We chose a different compiler from the bogus one.
3443 # However, it has the same basename, so the bogon will be chosen
3444 # first if we set CC to just the basename; use the full file name.
3446 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3452 if test -n "$CC"; then
3453 { echo "$as_me:$LINENO: result: $CC" >&5
3454 echo "${ECHO_T}$CC" >&6; }
3456 { echo "$as_me:$LINENO: result: no" >&5
3457 echo "${ECHO_T}no" >&6; }
3462 if test -z "$CC"; then
3463 if test -n "$ac_tool_prefix"; then
3464 for ac_prog
in cl.exe
3466 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3467 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3468 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3470 if test "${ac_cv_prog_CC+set}" = set; then
3471 echo $ECHO_N "(cached) $ECHO_C" >&6
3473 if test -n "$CC"; then
3474 ac_cv_prog_CC
="$CC" # Let the user override the test.
3476 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3480 test -z "$as_dir" && as_dir
=.
3481 for ac_exec_ext
in '' $ac_executable_extensions; do
3482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3483 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3494 if test -n "$CC"; then
3495 { echo "$as_me:$LINENO: result: $CC" >&5
3496 echo "${ECHO_T}$CC" >&6; }
3498 { echo "$as_me:$LINENO: result: no" >&5
3499 echo "${ECHO_T}no" >&6; }
3503 test -n "$CC" && break
3506 if test -z "$CC"; then
3508 for ac_prog
in cl.exe
3510 # Extract the first word of "$ac_prog", so it can be a program name with args.
3511 set dummy
$ac_prog; ac_word
=$2
3512 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3514 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3515 echo $ECHO_N "(cached) $ECHO_C" >&6
3517 if test -n "$ac_ct_CC"; then
3518 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3520 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3524 test -z "$as_dir" && as_dir
=.
3525 for ac_exec_ext
in '' $ac_executable_extensions; do
3526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3527 ac_cv_prog_ac_ct_CC
="$ac_prog"
3528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3537 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3538 if test -n "$ac_ct_CC"; then
3539 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3540 echo "${ECHO_T}$ac_ct_CC" >&6; }
3542 { echo "$as_me:$LINENO: result: no" >&5
3543 echo "${ECHO_T}no" >&6; }
3547 test -n "$ac_ct_CC" && break
3550 if test "x$ac_ct_CC" = x
; then
3553 case $cross_compiling:$ac_tool_warned in
3555 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3556 whose name does not start with the host triplet. If you think this
3557 configuration is useful to you, please write to autoconf@gnu.org." >&5
3558 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3559 whose name does not start with the host triplet. If you think this
3560 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3561 ac_tool_warned
=yes ;;
3570 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3571 See \`config.log' for more details." >&5
3572 echo "$as_me: error: no acceptable C compiler found in \$PATH
3573 See \`config.log' for more details." >&2;}
3574 { (exit 1); exit 1; }; }
3576 # Provide some information about the compiler.
3577 echo "$as_me:$LINENO: checking for C compiler version" >&5
3578 ac_compiler
=`set X $ac_compile; echo $2`
3579 { (ac_try
="$ac_compiler --version >&5"
3581 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3582 *) ac_try_echo=$ac_try;;
3584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3585 (eval "$ac_compiler --version >&5") 2>&5
3587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588 (exit $ac_status); }
3589 { (ac_try="$ac_compiler -v >&5"
3591 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3592 *) ac_try_echo
=$ac_try;;
3594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3595 (eval "$ac_compiler -v >&5") 2>&5
3597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598 (exit $ac_status); }
3599 { (ac_try
="$ac_compiler -V >&5"
3601 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3602 *) ac_try_echo=$ac_try;;
3604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3605 (eval "$ac_compiler -V >&5") 2>&5
3607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608 (exit $ac_status); }
3610 cat >conftest.$ac_ext <<_ACEOF
3613 cat confdefs.h >>conftest.$ac_ext
3614 cat >>conftest.$ac_ext <<_ACEOF
3615 /* end confdefs.h. */
3625 ac_clean_files_save=$ac_clean_files
3626 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3627 # Try to create an executable without -o first, disregard a.out.
3628 # It will help us diagnose broken compilers, and finding out an intuition
3630 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3631 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3632 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3634 # List of possible output files, starting from the most likely.
3635 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
3636 # only as a last resort. b.out is created by i960 compilers.
3637 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
3639 # The IRIX 6 linker writes into existing files which may not be
3640 # executable, retaining their permissions. Remove them first so a
3641 # subsequent execution test works.
3643 for ac_file in $ac_files
3646 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3647 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3652 if { (ac_try="$ac_link_default"
3654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3655 *) ac_try_echo=$ac_try;;
3657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3658 (eval "$ac_link_default") 2>&5
3660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3661 (exit $ac_status); }; then
3662 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3663 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3664 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3665 # so that the user can short-circuit this test for compilers unknown to
3667 for ac_file
in $ac_files ''
3669 test -f "$ac_file" ||
continue
3671 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
3674 # We found the default executable, but exeext='' is most
3678 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3680 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3682 # We set ac_cv_exeext here because the later test for it is not
3683 # safe: cross compilers may not add the suffix if given an `-o'
3684 # argument, so we may need to know it at that point already.
3685 # Even if this section looks crufty: it has the advantage of
3692 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3698 { echo "$as_me:$LINENO: result: $ac_file" >&5
3699 echo "${ECHO_T}$ac_file" >&6; }
3700 if test -z "$ac_file"; then
3701 echo "$as_me: failed program was:" >&5
3702 sed 's/^/| /' conftest.
$ac_ext >&5
3704 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3705 See \`config.log' for more details." >&5
3706 echo "$as_me: error: C compiler cannot create executables
3707 See \`config.log' for more details." >&2;}
3708 { (exit 77); exit 77; }; }
3711 ac_exeext
=$ac_cv_exeext
3713 # Check that the compiler produces executables we can run. If not, either
3714 # the compiler is broken, or we cross compile.
3715 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3716 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3717 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3718 # If not cross compiling, check that we can run a simple program.
3719 if test "$cross_compiling" != yes; then
3720 if { ac_try
='./$ac_file'
3721 { (case "(($ac_try" in
3722 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3723 *) ac_try_echo=$ac_try;;
3725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3726 (eval "$ac_try") 2>&5
3728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729 (exit $ac_status); }; }; then
3732 if test "$cross_compiling" = maybe; then
3735 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3736 If you meant to cross compile, use \`--host'.
3737 See \`config.log' for more details.
" >&5
3738 echo "$as_me: error
: cannot run C compiled programs.
3739 If you meant to cross compile
, use \
`--host'.
3740 See \`config.log
' for more details." >&2;}
3741 { (exit 1); exit 1; }; }
3745 { echo "$as_me:$LINENO: result: yes" >&5
3746 echo "${ECHO_T}yes" >&6; }
3748 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3749 ac_clean_files=$ac_clean_files_save
3750 # Check that the compiler produces executables we can run. If not, either
3751 # the compiler is broken, or we cross compile.
3752 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3753 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3754 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3755 echo "${ECHO_T}$cross_compiling" >&6; }
3757 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3758 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3759 if { (ac_try="$ac_link"
3761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3762 *) ac_try_echo=$ac_try;;
3764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3765 (eval "$ac_link") 2>&5
3767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768 (exit $ac_status); }; then
3769 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3770 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3771 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3773 for ac_file
in conftest.exe conftest conftest.
*; do
3774 test -f "$ac_file" ||
continue
3776 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
3777 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3783 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3784 See \`config.log' for more details." >&5
3785 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3786 See \`config.log' for more details." >&2;}
3787 { (exit 1); exit 1; }; }
3790 rm -f conftest
$ac_cv_exeext
3791 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3792 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3794 rm -f conftest.
$ac_ext
3795 EXEEXT
=$ac_cv_exeext
3797 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3798 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3799 if test "${ac_cv_objext+set}" = set; then
3800 echo $ECHO_N "(cached) $ECHO_C" >&6
3802 cat >conftest.
$ac_ext <<_ACEOF
3805 cat confdefs.h
>>conftest.
$ac_ext
3806 cat >>conftest.
$ac_ext <<_ACEOF
3807 /* end confdefs.h. */
3817 rm -f conftest.o conftest.obj
3818 if { (ac_try
="$ac_compile"
3820 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3821 *) ac_try_echo=$ac_try;;
3823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3824 (eval "$ac_compile") 2>&5
3826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827 (exit $ac_status); }; then
3828 for ac_file in conftest.o conftest.obj conftest.*; do
3829 test -f "$ac_file" || continue;
3831 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3832 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3837 echo "$as_me: failed program was:" >&5
3838 sed 's/^/| /' conftest.$ac_ext >&5
3840 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3841 See \`config.log
' for more details." >&5
3842 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3843 See \`config.log' for more details.
" >&2;}
3844 { (exit 1); exit 1; }; }
3847 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3849 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3850 echo "${ECHO_T}$ac_cv_objext" >&6; }
3851 OBJEXT=$ac_cv_objext
3853 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3854 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3855 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3856 echo $ECHO_N "(cached
) $ECHO_C" >&6
3858 cat >conftest.$ac_ext <<_ACEOF
3861 cat confdefs.h >>conftest.$ac_ext
3862 cat >>conftest.$ac_ext <<_ACEOF
3863 /* end confdefs.h. */
3876 rm -f conftest.$ac_objext
3877 if { (ac_try="$ac_compile"
3879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3880 *) ac_try_echo=$ac_try;;
3882 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3883 (eval "$ac_compile") 2>conftest.er1
3885 grep -v '^ *+' conftest.er1 >conftest.err
3887 cat conftest.err >&5
3888 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3889 (exit $ac_status); } && {
3890 test -z "$ac_c_werror_flag" ||
3891 test ! -s conftest.err
3892 } && test -s conftest.$ac_objext; then
3895 echo "$as_me: failed program was
:" >&5
3896 sed 's/^/| /' conftest.$ac_ext >&5
3901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3902 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3905 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3906 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3907 GCC=`test $ac_compiler_gnu = yes && echo yes`
3908 ac_test_CFLAGS=${CFLAGS+set}
3909 ac_save_CFLAGS=$CFLAGS
3910 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3911 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3912 if test "${ac_cv_prog_cc_g+set}" = set; then
3913 echo $ECHO_N "(cached
) $ECHO_C" >&6
3915 ac_save_c_werror_flag=$ac_c_werror_flag
3916 ac_c_werror_flag=yes
3919 cat >conftest.$ac_ext <<_ACEOF
3922 cat confdefs.h >>conftest.$ac_ext
3923 cat >>conftest.$ac_ext <<_ACEOF
3924 /* end confdefs.h. */
3934 rm -f conftest.$ac_objext
3935 if { (ac_try="$ac_compile"
3937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3938 *) ac_try_echo=$ac_try;;
3940 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3941 (eval "$ac_compile") 2>conftest.er1
3943 grep -v '^ *+' conftest.er1 >conftest.err
3945 cat conftest.err >&5
3946 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3947 (exit $ac_status); } && {
3948 test -z "$ac_c_werror_flag" ||
3949 test ! -s conftest.err
3950 } && test -s conftest.$ac_objext; then
3953 echo "$as_me: failed program was
:" >&5
3954 sed 's/^/| /' conftest.$ac_ext >&5
3957 cat >conftest.$ac_ext <<_ACEOF
3960 cat confdefs.h >>conftest.$ac_ext
3961 cat >>conftest.$ac_ext <<_ACEOF
3962 /* end confdefs.h. */
3972 rm -f conftest.$ac_objext
3973 if { (ac_try="$ac_compile"
3975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3976 *) ac_try_echo=$ac_try;;
3978 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3979 (eval "$ac_compile") 2>conftest.er1
3981 grep -v '^ *+' conftest.er1 >conftest.err
3983 cat conftest.err >&5
3984 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3985 (exit $ac_status); } && {
3986 test -z "$ac_c_werror_flag" ||
3987 test ! -s conftest.err
3988 } && test -s conftest.$ac_objext; then
3991 echo "$as_me: failed program was
:" >&5
3992 sed 's/^/| /' conftest.$ac_ext >&5
3994 ac_c_werror_flag=$ac_save_c_werror_flag
3996 cat >conftest.$ac_ext <<_ACEOF
3999 cat confdefs.h >>conftest.$ac_ext
4000 cat >>conftest.$ac_ext <<_ACEOF
4001 /* end confdefs.h. */
4011 rm -f conftest.$ac_objext
4012 if { (ac_try="$ac_compile"
4014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4015 *) ac_try_echo=$ac_try;;
4017 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4018 (eval "$ac_compile") 2>conftest.er1
4020 grep -v '^ *+' conftest.er1 >conftest.err
4022 cat conftest.err >&5
4023 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4024 (exit $ac_status); } && {
4025 test -z "$ac_c_werror_flag" ||
4026 test ! -s conftest.err
4027 } && test -s conftest.$ac_objext; then
4030 echo "$as_me: failed program was
:" >&5
4031 sed 's/^/| /' conftest.$ac_ext >&5
4036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4043 ac_c_werror_flag=$ac_save_c_werror_flag
4045 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
4046 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4047 if test "$ac_test_CFLAGS" = set; then
4048 CFLAGS=$ac_save_CFLAGS
4049 elif test $ac_cv_prog_cc_g = yes; then
4050 if test "$GCC" = yes; then
4056 if test "$GCC" = yes; then
4062 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
4063 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
4064 if test "${ac_cv_prog_cc_c89+set}" = set; then
4065 echo $ECHO_N "(cached
) $ECHO_C" >&6
4067 ac_cv_prog_cc_c89=no
4069 cat >conftest.$ac_ext <<_ACEOF
4072 cat confdefs.h >>conftest.$ac_ext
4073 cat >>conftest.$ac_ext <<_ACEOF
4074 /* end confdefs.h. */
4077 #include <sys/types.h>
4078 #include <sys/stat.h>
4079 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4080 struct buf { int x; };
4081 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4082 static char *e (p, i)
4088 static char *f (char * (*g) (char **, int), char **p, ...)
4093 s = g (p, va_arg (v,int));
4098 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4099 function prototypes and stuff, but not '\xHH' hex character constants.
4100 These don't provoke an error unfortunately, instead are silently treated
4101 as 'x'. The following induces an error, until -std is added to get
4102 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4103 array size at least. It's necessary to write '\x00'==0 to get something
4104 that's true only with -std. */
4105 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4107 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4108 inside strings and character constants. */
4110 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4112 int test (int i, double x);
4113 struct s1 {int (*f) (int a);};
4114 struct s2 {int (*f) (double a);};
4115 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4121 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4126 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4127 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4129 CC="$ac_save_CC $ac_arg"
4130 rm -f conftest.$ac_objext
4131 if { (ac_try="$ac_compile"
4133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4134 *) ac_try_echo=$ac_try;;
4136 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4137 (eval "$ac_compile") 2>conftest.er1
4139 grep -v '^ *+' conftest.er1 >conftest.err
4141 cat conftest.err >&5
4142 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4143 (exit $ac_status); } && {
4144 test -z "$ac_c_werror_flag" ||
4145 test ! -s conftest.err
4146 } && test -s conftest.$ac_objext; then
4147 ac_cv_prog_cc_c89=$ac_arg
4149 echo "$as_me: failed program was
:" >&5
4150 sed 's/^/| /' conftest.$ac_ext >&5
4155 rm -f core conftest.err conftest.$ac_objext
4156 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
4158 rm -f conftest.$ac_ext
4163 case "x
$ac_cv_prog_cc_c89" in
4165 { echo "$as_me:$LINENO: result
: none needed
" >&5
4166 echo "${ECHO_T}none needed
" >&6; } ;;
4168 { echo "$as_me:$LINENO: result
: unsupported
" >&5
4169 echo "${ECHO_T}unsupported
" >&6; } ;;
4171 CC="$CC $ac_cv_prog_cc_c89"
4172 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
4173 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4178 ac_cpp='$CPP $CPPFLAGS'
4179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4184 # On Suns, sometimes $CPP names a directory.
4185 if test -n "$CPP" && test -d "$CPP"; then
4189 ## If not using gcc, and on Solaris, and no CPP specified, see if
4190 ## using a Sun compiler, which needs -Xs to prevent whitespace.
4191 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
4192 test x"$CPP" = x; then
4193 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler
" >&5
4194 echo $ECHO_N "checking whether we are using a Sun C compiler...
$ECHO_C" >&6; }
4196 if test "${emacs_cv_sunpro_c+set}" = set; then
4197 echo $ECHO_N "(cached
) $ECHO_C" >&6
4199 cat >conftest.$ac_ext <<_ACEOF
4202 cat confdefs.h >>conftest.$ac_ext
4203 cat >>conftest.$ac_ext <<_ACEOF
4204 /* end confdefs.h. */
4217 rm -f conftest.$ac_objext conftest$ac_exeext
4218 if { (ac_try="$ac_link"
4220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4221 *) ac_try_echo=$ac_try;;
4223 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4224 (eval "$ac_link") 2>conftest.er1
4226 grep -v '^ *+' conftest.er1 >conftest.err
4228 cat conftest.err >&5
4229 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4230 (exit $ac_status); } && {
4231 test -z "$ac_c_werror_flag" ||
4232 test ! -s conftest.err
4233 } && test -s conftest$ac_exeext &&
4234 $as_test_x conftest$ac_exeext; then
4235 emacs_cv_sunpro_c=yes
4237 echo "$as_me: failed program was
:" >&5
4238 sed 's/^/| /' conftest.$ac_ext >&5
4240 emacs_cv_sunpro_c=no
4243 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4244 conftest$ac_exeext conftest.$ac_ext
4247 { echo "$as_me:$LINENO: result
: $emacs_cv_sunpro_c" >&5
4248 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
4250 if test x"$emacs_cv_sunpro_c" = xyes; then
4251 NON_GNU_CPP="$CC -E -Xs"
4255 #### Some systems specify a CPP to use unless we are using GCC.
4256 #### Now that we know whether we are using GCC, we can decide whether
4257 #### to use that one.
4258 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
4263 #### Some systems specify a CC to use unless we are using GCC.
4264 #### Now that we know whether we are using GCC, we can decide whether
4265 #### to use that one.
4266 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
4267 test x$cc_specified != xyes
4272 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
4274 CC="$CC $GCC_TEST_OPTIONS"
4277 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
4279 CC="$CC $NON_GCC_TEST_OPTIONS"
4283 ac_cpp='$CPP $CPPFLAGS'
4284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4287 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
4288 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
4289 # On Suns, sometimes $CPP names a directory.
4290 if test -n "$CPP" && test -d "$CPP"; then
4293 if test -z "$CPP"; then
4294 if test "${ac_cv_prog_CPP+set}" = set; then
4295 echo $ECHO_N "(cached
) $ECHO_C" >&6
4297 # Double quotes because CPP needs to be expanded
4298 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
4301 for ac_c_preproc_warn_flag in '' yes
4303 # Use a header file that comes with gcc, so configuring glibc
4304 # with a fresh cross-compiler works.
4305 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4306 # <limits.h> exists even on freestanding compilers.
4307 # On the NeXT, cc -E runs the code through the compiler's parser,
4308 # not just through cpp. "Syntax error
" is here to catch this case.
4309 cat >conftest.$ac_ext <<_ACEOF
4312 cat confdefs.h >>conftest.$ac_ext
4313 cat >>conftest.$ac_ext <<_ACEOF
4314 /* end confdefs.h. */
4316 # include <limits.h>
4318 # include <assert.h>
4322 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4325 *) ac_try_echo=$ac_try;;
4327 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4328 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4330 grep -v '^ *+' conftest.er1 >conftest.err
4332 cat conftest.err >&5
4333 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4334 (exit $ac_status); } >/dev/null && {
4335 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4336 test ! -s conftest.err
4340 echo "$as_me: failed program was
:" >&5
4341 sed 's/^/| /' conftest.$ac_ext >&5
4343 # Broken: fails on valid input.
4347 rm -f conftest.err conftest.$ac_ext
4349 # OK, works on sane cases. Now check whether nonexistent headers
4350 # can be detected and how.
4351 cat >conftest.$ac_ext <<_ACEOF
4354 cat confdefs.h >>conftest.$ac_ext
4355 cat >>conftest.$ac_ext <<_ACEOF
4356 /* end confdefs.h. */
4357 #include <ac_nonexistent.h>
4359 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4362 *) ac_try_echo=$ac_try;;
4364 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4365 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4367 grep -v '^ *+' conftest.er1 >conftest.err
4369 cat conftest.err >&5
4370 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4371 (exit $ac_status); } >/dev/null && {
4372 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4373 test ! -s conftest.err
4375 # Broken: success on invalid input.
4378 echo "$as_me: failed program was
:" >&5
4379 sed 's/^/| /' conftest.$ac_ext >&5
4381 # Passes both tests.
4386 rm -f conftest.err conftest.$ac_ext
4389 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4390 rm -f conftest.err conftest.$ac_ext
4391 if $ac_preproc_ok; then
4403 { echo "$as_me:$LINENO: result
: $CPP" >&5
4404 echo "${ECHO_T}$CPP" >&6; }
4406 for ac_c_preproc_warn_flag in '' yes
4408 # Use a header file that comes with gcc, so configuring glibc
4409 # with a fresh cross-compiler works.
4410 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4411 # <limits.h> exists even on freestanding compilers.
4412 # On the NeXT, cc -E runs the code through the compiler's parser,
4413 # not just through cpp. "Syntax error
" is here to catch this case.
4414 cat >conftest.$ac_ext <<_ACEOF
4417 cat confdefs.h >>conftest.$ac_ext
4418 cat >>conftest.$ac_ext <<_ACEOF
4419 /* end confdefs.h. */
4421 # include <limits.h>
4423 # include <assert.h>
4427 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4430 *) ac_try_echo=$ac_try;;
4432 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4433 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4435 grep -v '^ *+' conftest.er1 >conftest.err
4437 cat conftest.err >&5
4438 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4439 (exit $ac_status); } >/dev/null && {
4440 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4441 test ! -s conftest.err
4445 echo "$as_me: failed program was
:" >&5
4446 sed 's/^/| /' conftest.$ac_ext >&5
4448 # Broken: fails on valid input.
4452 rm -f conftest.err conftest.$ac_ext
4454 # OK, works on sane cases. Now check whether nonexistent headers
4455 # can be detected and how.
4456 cat >conftest.$ac_ext <<_ACEOF
4459 cat confdefs.h >>conftest.$ac_ext
4460 cat >>conftest.$ac_ext <<_ACEOF
4461 /* end confdefs.h. */
4462 #include <ac_nonexistent.h>
4464 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4467 *) ac_try_echo=$ac_try;;
4469 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4470 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4472 grep -v '^ *+' conftest.er1 >conftest.err
4474 cat conftest.err >&5
4475 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4476 (exit $ac_status); } >/dev/null && {
4477 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4478 test ! -s conftest.err
4480 # Broken: success on invalid input.
4483 echo "$as_me: failed program was
:" >&5
4484 sed 's/^/| /' conftest.$ac_ext >&5
4486 # Passes both tests.
4491 rm -f conftest.err conftest.$ac_ext
4494 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4495 rm -f conftest.err conftest.$ac_ext
4496 if $ac_preproc_ok; then
4499 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4500 See \
`config.log' for more details." >&5
4501 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4502 See \`config.log
' for more details." >&2;}
4503 { (exit 1); exit 1; }; }
4507 ac_cpp='$CPP $CPPFLAGS'
4508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4509 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4513 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4514 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4515 if test "${ac_cv_path_GREP+set}" = set; then
4516 echo $ECHO_N "(cached) $ECHO_C" >&6
4518 # Extract the first word of "grep ggrep" to use in msg output
4519 if test -z "$GREP"; then
4520 set dummy grep ggrep; ac_prog_name=$2
4521 if test "${ac_cv_path_GREP+set}" = set; then
4522 echo $ECHO_N "(cached) $ECHO_C" >&6
4524 ac_path_GREP_found=false
4525 # Loop through the user's path and
test for each of PROGNAME-LIST
4526 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4527 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4530 test -z "$as_dir" && as_dir
=.
4531 for ac_prog
in grep ggrep
; do
4532 for ac_exec_ext
in '' $ac_executable_extensions; do
4533 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4534 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4535 # Check for GNU ac_path_GREP and select it if it is found.
4536 # Check for GNU $ac_path_GREP
4537 case `"$ac_path_GREP" --version 2>&1` in
4539 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4542 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4545 cat "conftest.in" "conftest.in" >"conftest.tmp"
4546 mv "conftest.tmp" "conftest.in"
4547 cp "conftest.in" "conftest.nl"
4548 echo 'GREP' >> "conftest.nl"
4549 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4550 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4551 ac_count
=`expr $ac_count + 1`
4552 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4553 # Best one so far, save it but keep looking for a better one
4554 ac_cv_path_GREP
="$ac_path_GREP"
4555 ac_path_GREP_max
=$ac_count
4557 # 10*(2^10) chars as input seems more than enough
4558 test $ac_count -gt 10 && break
4560 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4564 $ac_path_GREP_found && break 3
4574 GREP
="$ac_cv_path_GREP"
4575 if test -z "$GREP"; then
4576 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4577 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4578 { (exit 1); exit 1; }; }
4582 ac_cv_path_GREP
=$GREP
4587 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4588 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4589 GREP
="$ac_cv_path_GREP"
4592 { echo "$as_me:$LINENO: checking for egrep" >&5
4593 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4594 if test "${ac_cv_path_EGREP+set}" = set; then
4595 echo $ECHO_N "(cached) $ECHO_C" >&6
4597 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4598 then ac_cv_path_EGREP
="$GREP -E"
4600 # Extract the first word of "egrep" to use in msg output
4601 if test -z "$EGREP"; then
4602 set dummy
egrep; ac_prog_name
=$2
4603 if test "${ac_cv_path_EGREP+set}" = set; then
4604 echo $ECHO_N "(cached) $ECHO_C" >&6
4606 ac_path_EGREP_found
=false
4607 # Loop through the user's path and test for each of PROGNAME-LIST
4608 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4609 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4612 test -z "$as_dir" && as_dir
=.
4613 for ac_prog
in egrep; do
4614 for ac_exec_ext
in '' $ac_executable_extensions; do
4615 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4616 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4617 # Check for GNU ac_path_EGREP and select it if it is found.
4618 # Check for GNU $ac_path_EGREP
4619 case `"$ac_path_EGREP" --version 2>&1` in
4621 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4624 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4627 cat "conftest.in" "conftest.in" >"conftest.tmp"
4628 mv "conftest.tmp" "conftest.in"
4629 cp "conftest.in" "conftest.nl"
4630 echo 'EGREP' >> "conftest.nl"
4631 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4632 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4633 ac_count
=`expr $ac_count + 1`
4634 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4635 # Best one so far, save it but keep looking for a better one
4636 ac_cv_path_EGREP
="$ac_path_EGREP"
4637 ac_path_EGREP_max
=$ac_count
4639 # 10*(2^10) chars as input seems more than enough
4640 test $ac_count -gt 10 && break
4642 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4646 $ac_path_EGREP_found && break 3
4656 EGREP
="$ac_cv_path_EGREP"
4657 if test -z "$EGREP"; then
4658 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4659 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4660 { (exit 1); exit 1; }; }
4664 ac_cv_path_EGREP
=$EGREP
4670 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4671 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4672 EGREP
="$ac_cv_path_EGREP"
4676 { echo "$as_me:$LINENO: checking for AIX" >&5
4677 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4678 cat >conftest.
$ac_ext <<_ACEOF
4681 cat confdefs.h
>>conftest.
$ac_ext
4682 cat >>conftest.
$ac_ext <<_ACEOF
4683 /* end confdefs.h. */
4689 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4690 $EGREP "yes" >/dev
/null
2>&1; then
4691 { echo "$as_me:$LINENO: result: yes" >&5
4692 echo "${ECHO_T}yes" >&6; }
4693 cat >>confdefs.h
<<\_ACEOF
4694 #define _ALL_SOURCE 1
4698 { echo "$as_me:$LINENO: result: no" >&5
4699 echo "${ECHO_T}no" >&6; }
4705 cat >>confdefs.h
<<\_ACEOF
4706 #define _GNU_SOURCE 1
4711 ### Use -Wno-pointer-sign if the compiler supports it
4712 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4713 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4714 SAVE_CFLAGS
="$CFLAGS"
4715 CFLAGS
="$CFLAGS -Wno-pointer-sign"
4716 cat >conftest.
$ac_ext <<_ACEOF
4719 cat confdefs.h
>>conftest.
$ac_ext
4720 cat >>conftest.
$ac_ext <<_ACEOF
4721 /* end confdefs.h. */
4731 rm -f conftest.
$ac_objext
4732 if { (ac_try
="$ac_compile"
4734 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4735 *) ac_try_echo=$ac_try;;
4737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4738 (eval "$ac_compile") 2>conftest.er1
4740 grep -v '^ *+' conftest.er1 >conftest.err
4742 cat conftest.err >&5
4743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744 (exit $ac_status); } && {
4745 test -z "$ac_c_werror_flag" ||
4746 test ! -s conftest.err
4747 } && test -s conftest.$ac_objext; then
4750 echo "$as_me: failed program was:" >&5
4751 sed 's/^/| /' conftest.$ac_ext >&5
4756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4757 if test $has_option = yes; then
4758 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4760 { echo "$as_me:$LINENO: result: $has_option" >&5
4761 echo "${ECHO_T}$has_option" >&6; }
4762 CFLAGS="$SAVE_CFLAGS"
4766 #### Some other nice autoconf tests.
4768 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4769 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4771 if test "$LN_S" = "ln -s"; then
4772 { echo "$as_me:$LINENO: result: yes" >&5
4773 echo "${ECHO_T}yes" >&6; }
4775 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4776 echo "${ECHO_T}no, using $LN_S" >&6; }
4780 ac_cpp='$CPP $CPPFLAGS'
4781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4784 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4785 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4786 # On Suns, sometimes $CPP names a directory.
4787 if test -n "$CPP" && test -d "$CPP"; then
4790 if test -z "$CPP"; then
4791 if test "${ac_cv_prog_CPP+set}" = set; then
4792 echo $ECHO_N "(cached) $ECHO_C" >&6
4794 # Double quotes because CPP needs to be expanded
4795 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4798 for ac_c_preproc_warn_flag in '' yes
4800 # Use a header file that comes with gcc, so configuring glibc
4801 # with a fresh cross-compiler works.
4802 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4803 # <limits.h> exists even on freestanding compilers.
4804 # On the NeXT, cc -E runs the code through the compiler's parser,
4805 # not just through cpp. "Syntax error" is here to catch this case.
4806 cat >conftest.$ac_ext <<_ACEOF
4809 cat confdefs.h >>conftest.$ac_ext
4810 cat >>conftest.$ac_ext <<_ACEOF
4811 /* end confdefs.h. */
4813 # include <limits.h>
4815 # include <assert.h>
4819 if { (ac_try="$ac_cpp conftest.$ac_ext"
4821 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4822 *) ac_try_echo
=$ac_try;;
4824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4825 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4827 grep -v '^ *+' conftest.er1
>conftest.err
4829 cat conftest.err
>&5
4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831 (exit $ac_status); } >/dev
/null
&& {
4832 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4833 test ! -s conftest.err
4837 echo "$as_me: failed program was:" >&5
4838 sed 's/^/| /' conftest.
$ac_ext >&5
4840 # Broken: fails on valid input.
4844 rm -f conftest.err conftest.
$ac_ext
4846 # OK, works on sane cases. Now check whether nonexistent headers
4847 # can be detected and how.
4848 cat >conftest.
$ac_ext <<_ACEOF
4851 cat confdefs.h
>>conftest.
$ac_ext
4852 cat >>conftest.
$ac_ext <<_ACEOF
4853 /* end confdefs.h. */
4854 #include <ac_nonexistent.h>
4856 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4858 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4859 *) ac_try_echo=$ac_try;;
4861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4862 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4864 grep -v '^ *+' conftest.er1 >conftest.err
4866 cat conftest.err >&5
4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); } >/dev/null && {
4869 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4870 test ! -s conftest.err
4872 # Broken: success on invalid input.
4875 echo "$as_me: failed program was:" >&5
4876 sed 's/^/| /' conftest.$ac_ext >&5
4878 # Passes both tests.
4883 rm -f conftest.err conftest.$ac_ext
4886 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4887 rm -f conftest.err conftest.
$ac_ext
4888 if $ac_preproc_ok; then
4900 { echo "$as_me:$LINENO: result: $CPP" >&5
4901 echo "${ECHO_T}$CPP" >&6; }
4903 for ac_c_preproc_warn_flag
in '' yes
4905 # Use a header file that comes with gcc, so configuring glibc
4906 # with a fresh cross-compiler works.
4907 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4908 # <limits.h> exists even on freestanding compilers.
4909 # On the NeXT, cc -E runs the code through the compiler's parser,
4910 # not just through cpp. "Syntax error" is here to catch this case.
4911 cat >conftest.
$ac_ext <<_ACEOF
4914 cat confdefs.h
>>conftest.
$ac_ext
4915 cat >>conftest.
$ac_ext <<_ACEOF
4916 /* end confdefs.h. */
4918 # include <limits.h>
4920 # include <assert.h>
4924 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4926 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4927 *) ac_try_echo=$ac_try;;
4929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4930 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4932 grep -v '^ *+' conftest.er1 >conftest.err
4934 cat conftest.err >&5
4935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936 (exit $ac_status); } >/dev/null && {
4937 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4938 test ! -s conftest.err
4942 echo "$as_me: failed program was:" >&5
4943 sed 's/^/| /' conftest.$ac_ext >&5
4945 # Broken: fails on valid input.
4949 rm -f conftest.err conftest.$ac_ext
4951 # OK, works on sane cases. Now check whether nonexistent headers
4952 # can be detected and how.
4953 cat >conftest.$ac_ext <<_ACEOF
4956 cat confdefs.h >>conftest.$ac_ext
4957 cat >>conftest.$ac_ext <<_ACEOF
4958 /* end confdefs.h. */
4959 #include <ac_nonexistent.h>
4961 if { (ac_try="$ac_cpp conftest.$ac_ext"
4963 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4964 *) ac_try_echo
=$ac_try;;
4966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4967 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4969 grep -v '^ *+' conftest.er1
>conftest.err
4971 cat conftest.err
>&5
4972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973 (exit $ac_status); } >/dev
/null
&& {
4974 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4975 test ! -s conftest.err
4977 # Broken: success on invalid input.
4980 echo "$as_me: failed program was:" >&5
4981 sed 's/^/| /' conftest.
$ac_ext >&5
4983 # Passes both tests.
4988 rm -f conftest.err conftest.
$ac_ext
4991 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4992 rm -f conftest.err conftest.
$ac_ext
4993 if $ac_preproc_ok; then
4996 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4997 See \`config.log' for more details." >&5
4998 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4999 See \`config.log' for more details." >&2;}
5000 { (exit 1); exit 1; }; }
5004 ac_cpp
='$CPP $CPPFLAGS'
5005 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5006 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5007 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5009 # Find a good install program. We prefer a C program (faster),
5010 # so one script is as good as another. But avoid the broken or
5011 # incompatible versions:
5012 # SysV /etc/install, /usr/sbin/install
5013 # SunOS /usr/etc/install
5014 # IRIX /sbin/install
5016 # AmigaOS /C/install, which installs bootblocks on floppy discs
5017 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5018 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5019 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5020 # OS/2's system install, which has a completely different semantic
5021 # ./install, which can be erroneously created by make from ./install.sh.
5022 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5023 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5024 if test -z "$INSTALL"; then
5025 if test "${ac_cv_path_install+set}" = set; then
5026 echo $ECHO_N "(cached) $ECHO_C" >&6
5028 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5032 test -z "$as_dir" && as_dir
=.
5033 # Account for people who put trailing slashes in PATH elements.
5035 .
/ | .
// |
/cC
/* | \
5036 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
5037 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
5040 # OSF1 and SCO ODT 3.0 have their own names for install.
5041 # Don't use installbsd from OSF since it installs stuff as root
5043 for ac_prog
in ginstall scoinst
install; do
5044 for ac_exec_ext
in '' $ac_executable_extensions; do
5045 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5046 if test $ac_prog = install &&
5047 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5048 # AIX install. It has an incompatible calling convention.
5050 elif test $ac_prog = install &&
5051 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5052 # program-specific install script used by HP pwplus--don't use.
5055 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5068 if test "${ac_cv_path_install+set}" = set; then
5069 INSTALL
=$ac_cv_path_install
5071 # As a last resort, use the slow shell script. Don't cache a
5072 # value for INSTALL within a source directory, because that will
5073 # break other packages using the cache if that directory is
5074 # removed, or if the value is a relative name.
5075 INSTALL
=$ac_install_sh
5078 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5079 echo "${ECHO_T}$INSTALL" >&6; }
5081 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5082 # It thinks the first close brace ends the variable substitution.
5083 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5085 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5087 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5089 if test "x$RANLIB" = x
; then
5090 if test -n "$ac_tool_prefix"; then
5091 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5092 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5093 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5095 if test "${ac_cv_prog_RANLIB+set}" = set; then
5096 echo $ECHO_N "(cached) $ECHO_C" >&6
5098 if test -n "$RANLIB"; then
5099 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5101 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5105 test -z "$as_dir" && as_dir
=.
5106 for ac_exec_ext
in '' $ac_executable_extensions; do
5107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5108 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5118 RANLIB
=$ac_cv_prog_RANLIB
5119 if test -n "$RANLIB"; then
5120 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5121 echo "${ECHO_T}$RANLIB" >&6; }
5123 { echo "$as_me:$LINENO: result: no" >&5
5124 echo "${ECHO_T}no" >&6; }
5129 if test -z "$ac_cv_prog_RANLIB"; then
5130 ac_ct_RANLIB
=$RANLIB
5131 # Extract the first word of "ranlib", so it can be a program name with args.
5132 set dummy ranlib
; ac_word
=$2
5133 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5135 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5136 echo $ECHO_N "(cached) $ECHO_C" >&6
5138 if test -n "$ac_ct_RANLIB"; then
5139 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5141 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5145 test -z "$as_dir" && as_dir
=.
5146 for ac_exec_ext
in '' $ac_executable_extensions; do
5147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5148 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5158 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5159 if test -n "$ac_ct_RANLIB"; then
5160 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5161 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5163 { echo "$as_me:$LINENO: result: no" >&5
5164 echo "${ECHO_T}no" >&6; }
5167 if test "x$ac_ct_RANLIB" = x
; then
5170 case $cross_compiling:$ac_tool_warned in
5172 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5173 whose name does not start with the host triplet. If you think this
5174 configuration is useful to you, please write to autoconf@gnu.org." >&5
5175 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5176 whose name does not start with the host triplet. If you think this
5177 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5178 ac_tool_warned
=yes ;;
5180 RANLIB
=$ac_ct_RANLIB
5183 RANLIB
="$ac_cv_prog_RANLIB"
5187 # Extract the first word of "install-info", so it can be a program name with args.
5188 set dummy install-info
; ac_word
=$2
5189 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5191 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5192 echo $ECHO_N "(cached) $ECHO_C" >&6
5194 case $INSTALL_INFO in
5196 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5199 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5203 test -z "$as_dir" && as_dir
=.
5204 for ac_exec_ext
in '' $ac_executable_extensions; do
5205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5206 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5217 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5218 if test -n "$INSTALL_INFO"; then
5219 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5220 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5222 { echo "$as_me:$LINENO: result: no" >&5
5223 echo "${ECHO_T}no" >&6; }
5227 # Extract the first word of "install-info", so it can be a program name with args.
5228 set dummy install-info
; ac_word
=$2
5229 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5231 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5232 echo $ECHO_N "(cached) $ECHO_C" >&6
5234 case $INSTALL_INFO in
5236 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5239 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5240 for as_dir
in /usr
/sbin
5243 test -z "$as_dir" && as_dir
=.
5244 for ac_exec_ext
in '' $ac_executable_extensions; do
5245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5246 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5257 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5258 if test -n "$INSTALL_INFO"; then
5259 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5260 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5262 { echo "$as_me:$LINENO: result: no" >&5
5263 echo "${ECHO_T}no" >&6; }
5267 # Extract the first word of "install-info", so it can be a program name with args.
5268 set dummy install-info
; ac_word
=$2
5269 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5271 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5272 echo $ECHO_N "(cached) $ECHO_C" >&6
5274 case $INSTALL_INFO in
5276 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5279 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5283 test -z "$as_dir" && as_dir
=.
5284 for ac_exec_ext
in '' $ac_executable_extensions; do
5285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5286 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5294 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5298 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5299 if test -n "$INSTALL_INFO"; then
5300 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5301 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5303 { echo "$as_me:$LINENO: result: no" >&5
5304 echo "${ECHO_T}no" >&6; }
5308 # Extract the first word of "gzip", so it can be a program name with args.
5309 set dummy
gzip; ac_word
=$2
5310 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5312 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5313 echo $ECHO_N "(cached) $ECHO_C" >&6
5317 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5320 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5324 test -z "$as_dir" && as_dir
=.
5325 for ac_exec_ext
in '' $ac_executable_extensions; do
5326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5327 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5338 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5339 if test -n "$GZIP_PROG"; then
5340 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5341 echo "${ECHO_T}$GZIP_PROG" >&6; }
5343 { echo "$as_me:$LINENO: result: no" >&5
5344 echo "${ECHO_T}no" >&6; }
5350 ## Need makeinfo >= 4.6 (?) to build the manuals.
5351 # Extract the first word of "makeinfo", so it can be a program name with args.
5352 set dummy makeinfo
; ac_word
=$2
5353 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5355 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5356 echo $ECHO_N "(cached) $ECHO_C" >&6
5360 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
5363 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5367 test -z "$as_dir" && as_dir
=.
5368 for ac_exec_ext
in '' $ac_executable_extensions; do
5369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5370 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
5371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5378 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
5382 MAKEINFO
=$ac_cv_path_MAKEINFO
5383 if test -n "$MAKEINFO"; then
5384 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5385 echo "${ECHO_T}$MAKEINFO" >&6; }
5387 { echo "$as_me:$LINENO: result: no" >&5
5388 echo "${ECHO_T}no" >&6; }
5392 if test "$MAKEINFO" != "no" && \
5393 test x
"`$MAKEINFO --version 2> /dev/null | $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[6-9]|4\.[1-5][0-9]+)'`" = x
; then
5397 if test "$MAKEINFO" = "no"; then
5398 { { echo "$as_me:$LINENO: error: makeinfo >= 4.6 is required " >&5
5399 echo "$as_me: error: makeinfo >= 4.6 is required " >&2;}
5400 { (exit 1); exit 1; }; }
5405 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5407 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5410 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5412 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5416 late_LDFLAGS
=$LDFLAGS
5417 if test "$GCC" = yes; then
5418 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5420 LDFLAGS
="$LDFLAGS -znocombreloc"
5423 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5424 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5425 cat >conftest.
$ac_ext <<_ACEOF
5428 rm -f conftest.
$ac_objext conftest
$ac_exeext
5429 if { (ac_try
="$ac_link"
5431 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5432 *) ac_try_echo=$ac_try;;
5434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5435 (eval "$ac_link") 2>conftest.er1
5437 grep -v '^ *+' conftest.er1 >conftest.err
5439 cat conftest.err >&5
5440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441 (exit $ac_status); } && {
5442 test -z "$ac_c_werror_flag" ||
5443 test ! -s conftest.err
5444 } && test -s conftest$ac_exeext &&
5445 $as_test_x conftest$ac_exeext; then
5446 { echo "$as_me:$LINENO: result: yes" >&5
5447 echo "${ECHO_T}yes" >&6; }
5449 echo "$as_me: failed program was:" >&5
5450 sed 's/^/| /' conftest.$ac_ext >&5
5452 LDFLAGS=$late_LDFLAGS
5453 { echo "$as_me:$LINENO: result: no" >&5
5454 echo "${ECHO_T}no" >&6; }
5457 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5458 conftest$ac_exeext conftest.$ac_ext
5460 #### Extract some information from the operating system and machine files.
5462 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5463 - which libraries the lib-src programs will want, and
5464 - whether the GNU malloc routines are usable..." >&5
5465 echo "$as_me: checking the machine- and system-dependent files to find out
5466 - which libraries the lib-src programs will want, and
5467 - whether the GNU malloc routines are usable..." >&6;}
5469 ### First figure out CFLAGS (which we use for running the compiler here)
5470 ### and REAL_CFLAGS (which we use for real compilation).
5471 ### The two are the same except on a few systems, where they are made
5472 ### different to work around various lossages. For example,
5473 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5474 ### as implying static linking.
5476 ### If the CFLAGS env var is specified, we use that value
5477 ### instead of the default.
5479 ### It's not important that this name contain the PID; you can't run
5480 ### two configures in the same directory and have anything work
5482 tempcname="conftest.c"
5485 #include "'${srcdir}'/src/'${opsysfile}'"
5486 #include "'${srcdir}'/src/'${machfile}'"
5487 #ifndef LIBS_MACHINE
5488 #define LIBS_MACHINE
5493 #ifndef C_SWITCH_SYSTEM
5494 #define C_SWITCH_SYSTEM
5496 #ifndef C_SWITCH_MACHINE
5497 #define C_SWITCH_MACHINE
5499 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5500 configure___ c_switch_system=C_SWITCH_SYSTEM
5501 configure___ c_switch_machine=C_SWITCH_MACHINE
5504 #define LIB_X11_LIB -lX11
5507 #ifndef LIBX11_MACHINE
5508 #define LIBX11_MACHINE
5511 #ifndef LIBX11_SYSTEM
5512 #define LIBX11_SYSTEM
5514 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5517 configure___ unexec=UNEXEC
5519 configure___ unexec=unexec.o
5522 #ifdef SYSTEM_MALLOC
5523 configure___ system_malloc=yes
5525 configure___ system_malloc=no
5528 #ifdef USE_MMAP_FOR_BUFFERS
5529 configure___ use_mmap_for_buffers=yes
5531 configure___ use_mmap_for_buffers=no
5534 #ifndef C_DEBUG_SWITCH
5535 #define C_DEBUG_SWITCH -g
5538 #ifndef C_OPTIMIZE_SWITCH
5540 #define C_OPTIMIZE_SWITCH -O2
5542 #define C_OPTIMIZE_SWITCH -O
5546 #ifndef C_WARNINGS_SWITCH
5547 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5550 #ifndef LD_SWITCH_MACHINE
5551 #define LD_SWITCH_MACHINE
5554 #ifndef LD_SWITCH_SYSTEM
5555 #define LD_SWITCH_SYSTEM
5558 #ifndef LD_SWITCH_X_SITE_AUX
5559 #define LD_SWITCH_X_SITE_AUX
5562 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5563 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5565 #ifdef THIS_IS_CONFIGURE
5567 /* Get the CFLAGS for tests in configure. */
5569 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5571 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5574 #else /* not THIS_IS_CONFIGURE */
5576 /* Get the CFLAGS for real compilation. */
5578 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5580 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5583 #endif /* not THIS_IS_CONFIGURE */
5586 # The value of CPP is a quoted variable reference, so we need to do this
5587 # to get its actual value...
5588 CPP=`eval "echo $CPP"`
5589 eval `${CPP} -Isrc ${tempcname} \
5590 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5591 if test "x$SPECIFIED_CFLAGS" = x; then
5592 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5593 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5595 REAL_CFLAGS="$CFLAGS"
5599 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5601 ### Make sure subsequent tests use flags consistent with the build flags.
5603 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5604 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5606 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5611 # Check whether --enable-largefile was given.
5612 if test "${enable_largefile+set}" = set; then
5613 enableval=$enable_largefile;
5616 if test "$enable_largefile" != no; then
5618 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5619 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5620 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5621 echo $ECHO_N "(cached) $ECHO_C" >&6
5623 ac_cv_sys_largefile_CC=no
5624 if test "$GCC" != yes; then
5627 # IRIX 6.2 and later do not support large files by default,
5628 # so use the C compiler's -n32 option if that helps.
5629 cat >conftest.$ac_ext <<_ACEOF
5632 cat confdefs.h >>conftest.$ac_ext
5633 cat >>conftest.$ac_ext <<_ACEOF
5634 /* end confdefs.h. */
5635 #include <sys/types.h>
5636 /* Check that off_t can represent 2**63 - 1 correctly.
5637 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5638 since some C++ compilers masquerading as C compilers
5639 incorrectly reject 9223372036854775807. */
5640 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5641 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5642 && LARGE_OFF_T % 2147483647 == 1)
5652 rm -f conftest.$ac_objext
5653 if { (ac_try="$ac_compile"
5655 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5656 *) ac_try_echo
=$ac_try;;
5658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5659 (eval "$ac_compile") 2>conftest.er1
5661 grep -v '^ *+' conftest.er1
>conftest.err
5663 cat conftest.err
>&5
5664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665 (exit $ac_status); } && {
5666 test -z "$ac_c_werror_flag" ||
5667 test ! -s conftest.err
5668 } && test -s conftest.
$ac_objext; then
5671 echo "$as_me: failed program was:" >&5
5672 sed 's/^/| /' conftest.
$ac_ext >&5
5677 rm -f core conftest.err conftest.
$ac_objext
5679 rm -f conftest.
$ac_objext
5680 if { (ac_try
="$ac_compile"
5682 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5683 *) ac_try_echo=$ac_try;;
5685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5686 (eval "$ac_compile") 2>conftest.er1
5688 grep -v '^ *+' conftest.er1 >conftest.err
5690 cat conftest.err >&5
5691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5692 (exit $ac_status); } && {
5693 test -z "$ac_c_werror_flag" ||
5694 test ! -s conftest.err
5695 } && test -s conftest.$ac_objext; then
5696 ac_cv_sys_largefile_CC=' -n32'; break
5698 echo "$as_me: failed program was:" >&5
5699 sed 's/^/| /' conftest.$ac_ext >&5
5704 rm -f core conftest.err conftest.$ac_objext
5708 rm -f conftest.$ac_ext
5711 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5712 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5713 if test "$ac_cv_sys_largefile_CC" != no; then
5714 CC=$CC$ac_cv_sys_largefile_CC
5717 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5718 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5719 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5720 echo $ECHO_N "(cached) $ECHO_C" >&6
5723 cat >conftest.$ac_ext <<_ACEOF
5726 cat confdefs.h >>conftest.$ac_ext
5727 cat >>conftest.$ac_ext <<_ACEOF
5728 /* end confdefs.h. */
5729 #include <sys/types.h>
5730 /* Check that off_t can represent 2**63 - 1 correctly.
5731 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5732 since some C++ compilers masquerading as C compilers
5733 incorrectly reject 9223372036854775807. */
5734 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5735 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5736 && LARGE_OFF_T % 2147483647 == 1)
5746 rm -f conftest.$ac_objext
5747 if { (ac_try="$ac_compile"
5749 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5750 *) ac_try_echo
=$ac_try;;
5752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5753 (eval "$ac_compile") 2>conftest.er1
5755 grep -v '^ *+' conftest.er1
>conftest.err
5757 cat conftest.err
>&5
5758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759 (exit $ac_status); } && {
5760 test -z "$ac_c_werror_flag" ||
5761 test ! -s conftest.err
5762 } && test -s conftest.
$ac_objext; then
5763 ac_cv_sys_file_offset_bits
=no
; break
5765 echo "$as_me: failed program was:" >&5
5766 sed 's/^/| /' conftest.
$ac_ext >&5
5771 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5772 cat >conftest.
$ac_ext <<_ACEOF
5775 cat confdefs.h
>>conftest.
$ac_ext
5776 cat >>conftest.
$ac_ext <<_ACEOF
5777 /* end confdefs.h. */
5778 #define _FILE_OFFSET_BITS 64
5779 #include <sys/types.h>
5780 /* Check that off_t can represent 2**63 - 1 correctly.
5781 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5782 since some C++ compilers masquerading as C compilers
5783 incorrectly reject 9223372036854775807. */
5784 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5785 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5786 && LARGE_OFF_T % 2147483647 == 1)
5796 rm -f conftest.
$ac_objext
5797 if { (ac_try
="$ac_compile"
5799 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5800 *) ac_try_echo=$ac_try;;
5802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5803 (eval "$ac_compile") 2>conftest.er1
5805 grep -v '^ *+' conftest.er1 >conftest.err
5807 cat conftest.err >&5
5808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5809 (exit $ac_status); } && {
5810 test -z "$ac_c_werror_flag" ||
5811 test ! -s conftest.err
5812 } && test -s conftest.$ac_objext; then
5813 ac_cv_sys_file_offset_bits=64; break
5815 echo "$as_me: failed program was:" >&5
5816 sed 's/^/| /' conftest.$ac_ext >&5
5821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5822 ac_cv_sys_file_offset_bits=unknown
5826 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5827 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5828 case $ac_cv_sys_file_offset_bits in #(
5831 cat >>confdefs.h <<_ACEOF
5832 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5837 if test $ac_cv_sys_file_offset_bits = unknown; then
5838 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5839 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5840 if test "${ac_cv_sys_large_files+set}" = set; then
5841 echo $ECHO_N "(cached) $ECHO_C" >&6
5844 cat >conftest.$ac_ext <<_ACEOF
5847 cat confdefs.h >>conftest.$ac_ext
5848 cat >>conftest.$ac_ext <<_ACEOF
5849 /* end confdefs.h. */
5850 #include <sys/types.h>
5851 /* Check that off_t can represent 2**63 - 1 correctly.
5852 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5853 since some C++ compilers masquerading as C compilers
5854 incorrectly reject 9223372036854775807. */
5855 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5856 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5857 && LARGE_OFF_T % 2147483647 == 1)
5867 rm -f conftest.$ac_objext
5868 if { (ac_try="$ac_compile"
5870 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5871 *) ac_try_echo
=$ac_try;;
5873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5874 (eval "$ac_compile") 2>conftest.er1
5876 grep -v '^ *+' conftest.er1
>conftest.err
5878 cat conftest.err
>&5
5879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880 (exit $ac_status); } && {
5881 test -z "$ac_c_werror_flag" ||
5882 test ! -s conftest.err
5883 } && test -s conftest.
$ac_objext; then
5884 ac_cv_sys_large_files
=no
; break
5886 echo "$as_me: failed program was:" >&5
5887 sed 's/^/| /' conftest.
$ac_ext >&5
5892 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5893 cat >conftest.
$ac_ext <<_ACEOF
5896 cat confdefs.h
>>conftest.
$ac_ext
5897 cat >>conftest.
$ac_ext <<_ACEOF
5898 /* end confdefs.h. */
5899 #define _LARGE_FILES 1
5900 #include <sys/types.h>
5901 /* Check that off_t can represent 2**63 - 1 correctly.
5902 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5903 since some C++ compilers masquerading as C compilers
5904 incorrectly reject 9223372036854775807. */
5905 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5906 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5907 && LARGE_OFF_T % 2147483647 == 1)
5917 rm -f conftest.
$ac_objext
5918 if { (ac_try
="$ac_compile"
5920 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5921 *) ac_try_echo=$ac_try;;
5923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5924 (eval "$ac_compile") 2>conftest.er1
5926 grep -v '^ *+' conftest.er1 >conftest.err
5928 cat conftest.err >&5
5929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930 (exit $ac_status); } && {
5931 test -z "$ac_c_werror_flag" ||
5932 test ! -s conftest.err
5933 } && test -s conftest.$ac_objext; then
5934 ac_cv_sys_large_files=1; break
5936 echo "$as_me: failed program was:" >&5
5937 sed 's/^/| /' conftest.$ac_ext >&5
5942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5943 ac_cv_sys_large_files=unknown
5947 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5948 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5949 case $ac_cv_sys_large_files in #(
5952 cat >>confdefs.h <<_ACEOF
5953 #define _LARGE_FILES $ac_cv_sys_large_files
5963 ### The standard library on x86-64 GNU/Linux distributions can
5964 ### be located in either /usr/lib64 or /usr/lib.
5965 case "${canonical}" in
5966 x86_64-*-linux-gnu* )
5967 if test -d /usr/lib64; then
5969 cat >>confdefs.h <<\_ACEOF
5970 #define HAVE_X86_64_LIB64_DIR 1
5979 if test "${with_sound}" != "no"; then
5980 # Sound support for GNU/Linux and the free BSDs.
5981 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5982 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5983 if test "${ac_cv_header_stdc+set}" = set; then
5984 echo $ECHO_N "(cached) $ECHO_C" >&6
5986 cat >conftest.$ac_ext <<_ACEOF
5989 cat confdefs.h >>conftest.$ac_ext
5990 cat >>conftest.$ac_ext <<_ACEOF
5991 /* end confdefs.h. */
6005 rm -f conftest.$ac_objext
6006 if { (ac_try="$ac_compile"
6008 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6009 *) ac_try_echo
=$ac_try;;
6011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6012 (eval "$ac_compile") 2>conftest.er1
6014 grep -v '^ *+' conftest.er1
>conftest.err
6016 cat conftest.err
>&5
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); } && {
6019 test -z "$ac_c_werror_flag" ||
6020 test ! -s conftest.err
6021 } && test -s conftest.
$ac_objext; then
6022 ac_cv_header_stdc
=yes
6024 echo "$as_me: failed program was:" >&5
6025 sed 's/^/| /' conftest.
$ac_ext >&5
6027 ac_cv_header_stdc
=no
6030 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6032 if test $ac_cv_header_stdc = yes; then
6033 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6034 cat >conftest.
$ac_ext <<_ACEOF
6037 cat confdefs.h
>>conftest.
$ac_ext
6038 cat >>conftest.
$ac_ext <<_ACEOF
6039 /* end confdefs.h. */
6043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6044 $EGREP "memchr" >/dev
/null
2>&1; then
6047 ac_cv_header_stdc
=no
6053 if test $ac_cv_header_stdc = yes; then
6054 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6055 cat >conftest.
$ac_ext <<_ACEOF
6058 cat confdefs.h
>>conftest.
$ac_ext
6059 cat >>conftest.
$ac_ext <<_ACEOF
6060 /* end confdefs.h. */
6064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6065 $EGREP "free" >/dev
/null
2>&1; then
6068 ac_cv_header_stdc
=no
6074 if test $ac_cv_header_stdc = yes; then
6075 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6076 if test "$cross_compiling" = yes; then
6079 cat >conftest.
$ac_ext <<_ACEOF
6082 cat confdefs.h
>>conftest.
$ac_ext
6083 cat >>conftest.
$ac_ext <<_ACEOF
6084 /* end confdefs.h. */
6087 #if ((' ' & 0x0FF) == 0x020)
6088 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6089 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6091 # define ISLOWER(c) \
6092 (('a' <= (c) && (c) <= 'i') \
6093 || ('j' <= (c) && (c) <= 'r') \
6094 || ('s' <= (c) && (c) <= 'z'))
6095 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6098 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6103 for (i = 0; i < 256; i++)
6104 if (XOR (islower (i), ISLOWER (i))
6105 || toupper (i) != TOUPPER (i))
6110 rm -f conftest
$ac_exeext
6111 if { (ac_try
="$ac_link"
6113 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6114 *) ac_try_echo=$ac_try;;
6116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6117 (eval "$ac_link") 2>&5
6119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6121 { (case "(($ac_try" in
6122 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6123 *) ac_try_echo
=$ac_try;;
6125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6126 (eval "$ac_try") 2>&5
6128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129 (exit $ac_status); }; }; then
6132 echo "$as_me: program exited with status $ac_status" >&5
6133 echo "$as_me: failed program was:" >&5
6134 sed 's/^/| /' conftest.
$ac_ext >&5
6137 ac_cv_header_stdc
=no
6139 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6145 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6146 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6147 if test $ac_cv_header_stdc = yes; then
6149 cat >>confdefs.h
<<\_ACEOF
6150 #define STDC_HEADERS 1
6155 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6165 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6166 inttypes.h stdint.h unistd.h
6168 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6169 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6170 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6171 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6172 echo $ECHO_N "(cached) $ECHO_C" >&6
6174 cat >conftest.
$ac_ext <<_ACEOF
6177 cat confdefs.h
>>conftest.
$ac_ext
6178 cat >>conftest.
$ac_ext <<_ACEOF
6179 /* end confdefs.h. */
6180 $ac_includes_default
6182 #include <$ac_header>
6184 rm -f conftest.
$ac_objext
6185 if { (ac_try
="$ac_compile"
6187 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6188 *) ac_try_echo=$ac_try;;
6190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6191 (eval "$ac_compile") 2>conftest.er1
6193 grep -v '^ *+' conftest.er1 >conftest.err
6195 cat conftest.err >&5
6196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197 (exit $ac_status); } && {
6198 test -z "$ac_c_werror_flag" ||
6199 test ! -s conftest.err
6200 } && test -s conftest.$ac_objext; then
6201 eval "$as_ac_Header=yes"
6203 echo "$as_me: failed program was:" >&5
6204 sed 's/^/| /' conftest.$ac_ext >&5
6206 eval "$as_ac_Header=no"
6209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6211 ac_res=`eval echo '${'$as_ac_Header'}'`
6212 { echo "$as_me:$LINENO: result: $ac_res" >&5
6213 echo "${ECHO_T}$ac_res" >&6; }
6214 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6215 cat >>confdefs.h <<_ACEOF
6216 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6227 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6229 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6230 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6231 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6232 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6233 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6234 echo $ECHO_N "(cached) $ECHO_C" >&6
6236 ac_res=`eval echo '${'$as_ac_Header'}'`
6237 { echo "$as_me:$LINENO: result: $ac_res" >&5
6238 echo "${ECHO_T}$ac_res" >&6; }
6240 # Is the header compilable?
6241 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6242 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6243 cat >conftest.$ac_ext <<_ACEOF
6246 cat confdefs.h >>conftest.$ac_ext
6247 cat >>conftest.$ac_ext <<_ACEOF
6248 /* end confdefs.h. */
6249 $ac_includes_default
6250 #include <$ac_header>
6252 rm -f conftest.$ac_objext
6253 if { (ac_try="$ac_compile"
6255 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6256 *) ac_try_echo
=$ac_try;;
6258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6259 (eval "$ac_compile") 2>conftest.er1
6261 grep -v '^ *+' conftest.er1
>conftest.err
6263 cat conftest.err
>&5
6264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265 (exit $ac_status); } && {
6266 test -z "$ac_c_werror_flag" ||
6267 test ! -s conftest.err
6268 } && test -s conftest.
$ac_objext; then
6269 ac_header_compiler
=yes
6271 echo "$as_me: failed program was:" >&5
6272 sed 's/^/| /' conftest.
$ac_ext >&5
6274 ac_header_compiler
=no
6277 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6278 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6279 echo "${ECHO_T}$ac_header_compiler" >&6; }
6281 # Is the header present?
6282 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6283 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6284 cat >conftest.
$ac_ext <<_ACEOF
6287 cat confdefs.h
>>conftest.
$ac_ext
6288 cat >>conftest.
$ac_ext <<_ACEOF
6289 /* end confdefs.h. */
6290 #include <$ac_header>
6292 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6294 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6295 *) ac_try_echo=$ac_try;;
6297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6298 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6300 grep -v '^ *+' conftest.er1 >conftest.err
6302 cat conftest.err >&5
6303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304 (exit $ac_status); } >/dev/null && {
6305 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6306 test ! -s conftest.err
6308 ac_header_preproc=yes
6310 echo "$as_me: failed program was:" >&5
6311 sed 's/^/| /' conftest.$ac_ext >&5
6313 ac_header_preproc=no
6316 rm -f conftest.err conftest.$ac_ext
6317 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6318 echo "${ECHO_T}$ac_header_preproc" >&6; }
6320 # So? What about this header?
6321 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6323 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6324 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6325 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6326 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6327 ac_header_preproc=yes
6330 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6331 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6332 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6333 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6334 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6335 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6336 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6337 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6338 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6339 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6340 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6341 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6345 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6346 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6347 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6348 echo $ECHO_N "(cached) $ECHO_C" >&6
6350 eval "$as_ac_Header=\$ac_header_preproc"
6352 ac_res=`eval echo '${'$as_ac_Header'}'`
6353 { echo "$as_me:$LINENO: result: $ac_res" >&5
6354 echo "${ECHO_T}$ac_res" >&6; }
6357 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6358 cat >>confdefs.h <<_ACEOF
6359 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6366 # Emulation library used on NetBSD.
6367 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6368 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6369 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6370 echo $ECHO_N "(cached) $ECHO_C" >&6
6372 ac_check_lib_save_LIBS=$LIBS
6373 LIBS="-lossaudio $LIBS"
6374 cat >conftest.$ac_ext <<_ACEOF
6377 cat confdefs.h >>conftest.$ac_ext
6378 cat >>conftest.$ac_ext <<_ACEOF
6379 /* end confdefs.h. */
6381 /* Override any GCC internal prototype to avoid an error.
6382 Use char because int might match the return type of a GCC
6383 builtin and then its argument prototype would still apply. */
6391 return _oss_ioctl ();
6396 rm -f conftest.$ac_objext conftest$ac_exeext
6397 if { (ac_try="$ac_link"
6399 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6400 *) ac_try_echo
=$ac_try;;
6402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6403 (eval "$ac_link") 2>conftest.er1
6405 grep -v '^ *+' conftest.er1
>conftest.err
6407 cat conftest.err
>&5
6408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409 (exit $ac_status); } && {
6410 test -z "$ac_c_werror_flag" ||
6411 test ! -s conftest.err
6412 } && test -s conftest
$ac_exeext &&
6413 $as_test_x conftest
$ac_exeext; then
6414 ac_cv_lib_ossaudio__oss_ioctl
=yes
6416 echo "$as_me: failed program was:" >&5
6417 sed 's/^/| /' conftest.
$ac_ext >&5
6419 ac_cv_lib_ossaudio__oss_ioctl
=no
6422 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6423 conftest
$ac_exeext conftest.
$ac_ext
6424 LIBS
=$ac_check_lib_save_LIBS
6426 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6427 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6428 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6437 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6438 if test "X${with_pkg_config_prog}" != X
; then
6439 PKG_CONFIG
="${with_pkg_config_prog}"
6444 if test -z "$PKG_CONFIG"; then
6445 # Extract the first word of "pkg-config", so it can be a program name with args.
6446 set dummy pkg-config
; ac_word
=$2
6447 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6449 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6450 echo $ECHO_N "(cached) $ECHO_C" >&6
6454 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6457 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6461 test -z "$as_dir" && as_dir
=.
6462 for ac_exec_ext
in '' $ac_executable_extensions; do
6463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6464 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6472 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6476 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6477 if test -n "$PKG_CONFIG"; then
6478 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6479 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6481 { echo "$as_me:$LINENO: result: no" >&5
6482 echo "${ECHO_T}no" >&6; }
6488 if test "$PKG_CONFIG" = "no" ; then
6491 PKG_CONFIG_MIN_VERSION
=0.9.0
6492 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6493 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6494 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6496 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6497 { echo "$as_me:$LINENO: result: yes" >&5
6498 echo "${ECHO_T}yes" >&6; }
6501 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6502 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6503 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6504 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6505 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6507 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6508 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6509 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6510 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6511 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6513 { echo "$as_me:$LINENO: result: no" >&5
6514 echo "${ECHO_T}no" >&6; }
6517 ## If we have a custom action on failure, don't print errors, but
6518 ## do set a variable so people can do so.
6519 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6526 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6527 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6531 if test $succeeded = yes; then
6537 if test $HAVE_ALSA = yes; then
6538 SAVE_CFLAGS
="$CFLAGS"
6539 SAVE_LDFLAGS
="$LDFLAGS"
6540 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6541 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6542 cat >conftest.
$ac_ext <<_ACEOF
6545 cat confdefs.h
>>conftest.
$ac_ext
6546 cat >>conftest.
$ac_ext <<_ACEOF
6547 /* end confdefs.h. */
6548 #include <asoundlib.h>
6552 snd_lib_error_set_handler (0);
6557 rm -f conftest.
$ac_objext
6558 if { (ac_try
="$ac_compile"
6560 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6561 *) ac_try_echo=$ac_try;;
6563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6564 (eval "$ac_compile") 2>conftest.er1
6566 grep -v '^ *+' conftest.er1 >conftest.err
6568 cat conftest.err >&5
6569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570 (exit $ac_status); } && {
6571 test -z "$ac_c_werror_flag" ||
6572 test ! -s conftest.err
6573 } && test -s conftest.$ac_objext; then
6574 emacs_alsa_normal=yes
6576 echo "$as_me: failed program was:" >&5
6577 sed 's/^/| /' conftest.$ac_ext >&5
6579 emacs_alsa_normal=no
6582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6583 if test "$emacs_alsa_normal" != yes; then
6584 cat >conftest.$ac_ext <<_ACEOF
6587 cat confdefs.h >>conftest.$ac_ext
6588 cat >>conftest.$ac_ext <<_ACEOF
6589 /* end confdefs.h. */
6590 #include <alsa/asoundlib.h>
6594 snd_lib_error_set_handler (0);
6599 rm -f conftest.$ac_objext
6600 if { (ac_try="$ac_compile"
6602 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6603 *) ac_try_echo
=$ac_try;;
6605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6606 (eval "$ac_compile") 2>conftest.er1
6608 grep -v '^ *+' conftest.er1
>conftest.err
6610 cat conftest.err
>&5
6611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612 (exit $ac_status); } && {
6613 test -z "$ac_c_werror_flag" ||
6614 test ! -s conftest.err
6615 } && test -s conftest.
$ac_objext; then
6616 emacs_alsa_subdir
=yes
6618 echo "$as_me: failed program was:" >&5
6619 sed 's/^/| /' conftest.
$ac_ext >&5
6621 emacs_alsa_subdir
=no
6624 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6625 if test "$emacs_alsa_subdir" != yes; then
6626 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6627 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6628 { (exit 1); exit 1; }; }
6630 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6633 CFLAGS
="$SAVE_CFLAGS"
6634 LDFLAGS
="$SAVE_LDFLAGS"
6635 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6636 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6638 cat >>confdefs.h
<<\_ACEOF
6671 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6672 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6673 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6674 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6677 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6678 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6679 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6680 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6681 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6682 echo $ECHO_N "(cached) $ECHO_C" >&6
6684 ac_res
=`eval echo '${'$as_ac_Header'}'`
6685 { echo "$as_me:$LINENO: result: $ac_res" >&5
6686 echo "${ECHO_T}$ac_res" >&6; }
6688 # Is the header compilable?
6689 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6690 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6691 cat >conftest.
$ac_ext <<_ACEOF
6694 cat confdefs.h
>>conftest.
$ac_ext
6695 cat >>conftest.
$ac_ext <<_ACEOF
6696 /* end confdefs.h. */
6697 $ac_includes_default
6698 #include <$ac_header>
6700 rm -f conftest.
$ac_objext
6701 if { (ac_try
="$ac_compile"
6703 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6704 *) ac_try_echo=$ac_try;;
6706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6707 (eval "$ac_compile") 2>conftest.er1
6709 grep -v '^ *+' conftest.er1 >conftest.err
6711 cat conftest.err >&5
6712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6713 (exit $ac_status); } && {
6714 test -z "$ac_c_werror_flag" ||
6715 test ! -s conftest.err
6716 } && test -s conftest.$ac_objext; then
6717 ac_header_compiler=yes
6719 echo "$as_me: failed program was:" >&5
6720 sed 's/^/| /' conftest.$ac_ext >&5
6722 ac_header_compiler=no
6725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6726 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6727 echo "${ECHO_T}$ac_header_compiler" >&6; }
6729 # Is the header present?
6730 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6731 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6732 cat >conftest.$ac_ext <<_ACEOF
6735 cat confdefs.h >>conftest.$ac_ext
6736 cat >>conftest.$ac_ext <<_ACEOF
6737 /* end confdefs.h. */
6738 #include <$ac_header>
6740 if { (ac_try="$ac_cpp conftest.$ac_ext"
6742 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6743 *) ac_try_echo
=$ac_try;;
6745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6746 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6748 grep -v '^ *+' conftest.er1
>conftest.err
6750 cat conftest.err
>&5
6751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752 (exit $ac_status); } >/dev
/null
&& {
6753 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6754 test ! -s conftest.err
6756 ac_header_preproc
=yes
6758 echo "$as_me: failed program was:" >&5
6759 sed 's/^/| /' conftest.
$ac_ext >&5
6761 ac_header_preproc
=no
6764 rm -f conftest.err conftest.
$ac_ext
6765 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6766 echo "${ECHO_T}$ac_header_preproc" >&6; }
6768 # So? What about this header?
6769 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6771 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6772 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6773 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6774 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6775 ac_header_preproc
=yes
6778 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6779 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6780 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6781 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6782 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6783 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6784 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6785 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6786 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6787 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6788 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6789 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6793 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6794 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6795 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6796 echo $ECHO_N "(cached) $ECHO_C" >&6
6798 eval "$as_ac_Header=\$ac_header_preproc"
6800 ac_res
=`eval echo '${'$as_ac_Header'}'`
6801 { echo "$as_me:$LINENO: result: $ac_res" >&5
6802 echo "${ECHO_T}$ac_res" >&6; }
6805 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6806 cat >>confdefs.h
<<_ACEOF
6807 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6815 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6816 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6817 cat >conftest.
$ac_ext <<_ACEOF
6820 cat confdefs.h
>>conftest.
$ac_ext
6821 cat >>conftest.
$ac_ext <<_ACEOF
6822 /* end confdefs.h. */
6823 #include <sys/personality.h>
6827 personality (PER_LINUX32)
6832 rm -f conftest.
$ac_objext
6833 if { (ac_try
="$ac_compile"
6835 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6836 *) ac_try_echo=$ac_try;;
6838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6839 (eval "$ac_compile") 2>conftest.er1
6841 grep -v '^ *+' conftest.er1 >conftest.err
6843 cat conftest.err >&5
6844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6845 (exit $ac_status); } && {
6846 test -z "$ac_c_werror_flag" ||
6847 test ! -s conftest.err
6848 } && test -s conftest.$ac_objext; then
6849 emacs_cv_personality_linux32=yes
6851 echo "$as_me: failed program was:" >&5
6852 sed 's/^/| /' conftest.$ac_ext >&5
6854 emacs_cv_personality_linux32=no
6857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6858 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6859 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6861 if test $emacs_cv_personality_linux32 = yes; then
6863 cat >>confdefs.h <<\_ACEOF
6864 #define HAVE_PERSONALITY_LINUX32 1
6870 for ac_header in term.h
6872 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6873 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6875 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6876 echo $ECHO_N "(cached) $ECHO_C" >&6
6878 cat >conftest.$ac_ext <<_ACEOF
6881 cat confdefs.h >>conftest.$ac_ext
6882 cat >>conftest.$ac_ext <<_ACEOF
6883 /* end confdefs.h. */
6884 #include <$ac_header>
6886 if { (ac_try="$ac_cpp conftest.$ac_ext"
6888 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6889 *) ac_try_echo
=$ac_try;;
6891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6892 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6894 grep -v '^ *+' conftest.er1
>conftest.err
6896 cat conftest.err
>&5
6897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898 (exit $ac_status); } >/dev
/null
&& {
6899 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6900 test ! -s conftest.err
6902 eval "$as_ac_Header=yes"
6904 echo "$as_me: failed program was:" >&5
6905 sed 's/^/| /' conftest.
$ac_ext >&5
6907 eval "$as_ac_Header=no"
6910 rm -f conftest.err conftest.
$ac_ext
6912 ac_res
=`eval echo '${'$as_ac_Header'}'`
6913 { echo "$as_me:$LINENO: result: $ac_res" >&5
6914 echo "${ECHO_T}$ac_res" >&6; }
6915 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6916 cat >>confdefs.h
<<_ACEOF
6917 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6924 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6925 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6926 if test "${ac_cv_header_stdc+set}" = set; then
6927 echo $ECHO_N "(cached) $ECHO_C" >&6
6929 cat >conftest.
$ac_ext <<_ACEOF
6932 cat confdefs.h
>>conftest.
$ac_ext
6933 cat >>conftest.
$ac_ext <<_ACEOF
6934 /* end confdefs.h. */
6948 rm -f conftest.
$ac_objext
6949 if { (ac_try
="$ac_compile"
6951 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6952 *) ac_try_echo=$ac_try;;
6954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6955 (eval "$ac_compile") 2>conftest.er1
6957 grep -v '^ *+' conftest.er1 >conftest.err
6959 cat conftest.err >&5
6960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961 (exit $ac_status); } && {
6962 test -z "$ac_c_werror_flag" ||
6963 test ! -s conftest.err
6964 } && test -s conftest.$ac_objext; then
6965 ac_cv_header_stdc=yes
6967 echo "$as_me: failed program was:" >&5
6968 sed 's/^/| /' conftest.$ac_ext >&5
6970 ac_cv_header_stdc=no
6973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6975 if test $ac_cv_header_stdc = yes; then
6976 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6977 cat >conftest.$ac_ext <<_ACEOF
6980 cat confdefs.h >>conftest.$ac_ext
6981 cat >>conftest.$ac_ext <<_ACEOF
6982 /* end confdefs.h. */
6986 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6987 $EGREP "memchr" >/dev/null 2>&1; then
6990 ac_cv_header_stdc=no
6996 if test $ac_cv_header_stdc = yes; then
6997 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6998 cat >conftest.$ac_ext <<_ACEOF
7001 cat confdefs.h >>conftest.$ac_ext
7002 cat >>conftest.$ac_ext <<_ACEOF
7003 /* end confdefs.h. */
7007 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7008 $EGREP "free" >/dev/null 2>&1; then
7011 ac_cv_header_stdc=no
7017 if test $ac_cv_header_stdc = yes; then
7018 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7019 if test "$cross_compiling" = yes; then
7022 cat >conftest.$ac_ext <<_ACEOF
7025 cat confdefs.h >>conftest.$ac_ext
7026 cat >>conftest.$ac_ext <<_ACEOF
7027 /* end confdefs.h. */
7030 #if ((' ' & 0x0FF) == 0x020)
7031 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7032 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7034 # define ISLOWER(c) \
7035 (('a' <= (c) && (c) <= 'i') \
7036 || ('j' <= (c) && (c) <= 'r') \
7037 || ('s' <= (c) && (c) <= 'z'))
7038 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7041 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7046 for (i = 0; i < 256; i++)
7047 if (XOR (islower (i), ISLOWER (i))
7048 || toupper (i) != TOUPPER (i))
7053 rm -f conftest$ac_exeext
7054 if { (ac_try="$ac_link"
7056 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7057 *) ac_try_echo
=$ac_try;;
7059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7060 (eval "$ac_link") 2>&5
7062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7063 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7064 { (case "(($ac_try" in
7065 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7066 *) ac_try_echo=$ac_try;;
7068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7069 (eval "$ac_try") 2>&5
7071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072 (exit $ac_status); }; }; then
7075 echo "$as_me: program exited with status $ac_status" >&5
7076 echo "$as_me: failed program was:" >&5
7077 sed 's/^/| /' conftest.$ac_ext >&5
7080 ac_cv_header_stdc=no
7082 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7088 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7089 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7090 if test $ac_cv_header_stdc = yes; then
7092 cat >>confdefs.h <<\_ACEOF
7093 #define STDC_HEADERS 1
7098 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7099 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
7100 if test "${ac_cv_header_time+set}" = set; then
7101 echo $ECHO_N "(cached) $ECHO_C" >&6
7103 cat >conftest.$ac_ext <<_ACEOF
7106 cat confdefs.h >>conftest.$ac_ext
7107 cat >>conftest.$ac_ext <<_ACEOF
7108 /* end confdefs.h. */
7109 #include <sys/types.h>
7110 #include <sys/time.h>
7116 if ((struct tm *) 0)
7122 rm -f conftest.$ac_objext
7123 if { (ac_try="$ac_compile"
7125 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7126 *) ac_try_echo
=$ac_try;;
7128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7129 (eval "$ac_compile") 2>conftest.er1
7131 grep -v '^ *+' conftest.er1
>conftest.err
7133 cat conftest.err
>&5
7134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7135 (exit $ac_status); } && {
7136 test -z "$ac_c_werror_flag" ||
7137 test ! -s conftest.err
7138 } && test -s conftest.
$ac_objext; then
7139 ac_cv_header_time
=yes
7141 echo "$as_me: failed program was:" >&5
7142 sed 's/^/| /' conftest.
$ac_ext >&5
7144 ac_cv_header_time
=no
7147 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7149 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7150 echo "${ECHO_T}$ac_cv_header_time" >&6; }
7151 if test $ac_cv_header_time = yes; then
7153 cat >>confdefs.h
<<\_ACEOF
7154 #define TIME_WITH_SYS_TIME 1
7159 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7160 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
7161 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7162 echo $ECHO_N "(cached) $ECHO_C" >&6
7164 cat >conftest.
$ac_ext <<_ACEOF
7167 cat confdefs.h
>>conftest.
$ac_ext
7168 cat >>conftest.
$ac_ext <<_ACEOF
7169 /* end confdefs.h. */
7170 $ac_includes_default
7182 rm -f conftest.
$ac_objext
7183 if { (ac_try
="$ac_compile"
7185 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7186 *) ac_try_echo=$ac_try;;
7188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7189 (eval "$ac_compile") 2>conftest.er1
7191 grep -v '^ *+' conftest.er1 >conftest.err
7193 cat conftest.err >&5
7194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7195 (exit $ac_status); } && {
7196 test -z "$ac_c_werror_flag" ||
7197 test ! -s conftest.err
7198 } && test -s conftest.$ac_objext; then
7199 ac_cv_have_decl_sys_siglist=yes
7201 echo "$as_me: failed program was:" >&5
7202 sed 's/^/| /' conftest.$ac_ext >&5
7204 ac_cv_have_decl_sys_siglist=no
7207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7209 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7210 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7211 if test $ac_cv_have_decl_sys_siglist = yes; then
7213 cat >>confdefs.h <<_ACEOF
7214 #define HAVE_DECL_SYS_SIGLIST 1
7219 cat >>confdefs.h <<_ACEOF
7220 #define HAVE_DECL_SYS_SIGLIST 0
7227 if test $ac_cv_have_decl_sys_siglist != yes; then
7228 # For Tru64, at least:
7229 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7230 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7231 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7232 echo $ECHO_N "(cached) $ECHO_C" >&6
7234 cat >conftest.$ac_ext <<_ACEOF
7237 cat confdefs.h >>conftest.$ac_ext
7238 cat >>conftest.$ac_ext <<_ACEOF
7239 /* end confdefs.h. */
7240 $ac_includes_default
7244 #ifndef __sys_siglist
7245 (void) __sys_siglist;
7252 rm -f conftest.$ac_objext
7253 if { (ac_try="$ac_compile"
7255 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7256 *) ac_try_echo
=$ac_try;;
7258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7259 (eval "$ac_compile") 2>conftest.er1
7261 grep -v '^ *+' conftest.er1
>conftest.err
7263 cat conftest.err
>&5
7264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7265 (exit $ac_status); } && {
7266 test -z "$ac_c_werror_flag" ||
7267 test ! -s conftest.err
7268 } && test -s conftest.
$ac_objext; then
7269 ac_cv_have_decl___sys_siglist
=yes
7271 echo "$as_me: failed program was:" >&5
7272 sed 's/^/| /' conftest.
$ac_ext >&5
7274 ac_cv_have_decl___sys_siglist
=no
7277 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7279 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7280 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7281 if test $ac_cv_have_decl___sys_siglist = yes; then
7283 cat >>confdefs.h
<<_ACEOF
7284 #define HAVE_DECL___SYS_SIGLIST 1
7289 cat >>confdefs.h
<<_ACEOF
7290 #define HAVE_DECL___SYS_SIGLIST 0
7297 if test $ac_cv_have_decl___sys_siglist = yes; then
7299 cat >>confdefs.h
<<\_ACEOF
7300 #define sys_siglist __sys_siglist
7305 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7306 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7307 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7308 echo $ECHO_N "(cached) $ECHO_C" >&6
7310 cat >conftest.
$ac_ext <<_ACEOF
7313 cat confdefs.h
>>conftest.
$ac_ext
7314 cat >>conftest.
$ac_ext <<_ACEOF
7315 /* end confdefs.h. */
7316 #include <sys/types.h>
7317 #include <sys/wait.h>
7319 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7322 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7330 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7335 rm -f conftest.
$ac_objext
7336 if { (ac_try
="$ac_compile"
7338 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7339 *) ac_try_echo=$ac_try;;
7341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7342 (eval "$ac_compile") 2>conftest.er1
7344 grep -v '^ *+' conftest.er1 >conftest.err
7346 cat conftest.err >&5
7347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7348 (exit $ac_status); } && {
7349 test -z "$ac_c_werror_flag" ||
7350 test ! -s conftest.err
7351 } && test -s conftest.$ac_objext; then
7352 ac_cv_header_sys_wait_h=yes
7354 echo "$as_me: failed program was:" >&5
7355 sed 's/^/| /' conftest.$ac_ext >&5
7357 ac_cv_header_sys_wait_h=no
7360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7362 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7363 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7364 if test $ac_cv_header_sys_wait_h = yes; then
7366 cat >>confdefs.h <<\_ACEOF
7367 #define HAVE_SYS_WAIT_H 1
7373 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7374 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7375 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7376 echo $ECHO_N "(cached) $ECHO_C" >&6
7378 cat >conftest.$ac_ext <<_ACEOF
7381 cat confdefs.h >>conftest.$ac_ext
7382 cat >>conftest.$ac_ext <<_ACEOF
7383 /* end confdefs.h. */
7384 #ifdef TIME_WITH_SYS_TIME
7385 #include <sys/time.h>
7388 #ifdef HAVE_SYS_TIME_H
7389 #include <sys/time.h>
7400 static struct utimbuf x; x.actime = x.modtime;
7405 rm -f conftest.$ac_objext
7406 if { (ac_try="$ac_compile"
7408 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7409 *) ac_try_echo
=$ac_try;;
7411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7412 (eval "$ac_compile") 2>conftest.er1
7414 grep -v '^ *+' conftest.er1
>conftest.err
7416 cat conftest.err
>&5
7417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7418 (exit $ac_status); } && {
7419 test -z "$ac_c_werror_flag" ||
7420 test ! -s conftest.err
7421 } && test -s conftest.
$ac_objext; then
7422 emacs_cv_struct_utimbuf
=yes
7424 echo "$as_me: failed program was:" >&5
7425 sed 's/^/| /' conftest.
$ac_ext >&5
7427 emacs_cv_struct_utimbuf
=no
7430 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7432 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7433 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7434 if test $emacs_cv_struct_utimbuf = yes; then
7436 cat >>confdefs.h
<<\_ACEOF
7437 #define HAVE_STRUCT_UTIMBUF 1
7442 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7443 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7444 if test "${ac_cv_type_signal+set}" = set; then
7445 echo $ECHO_N "(cached) $ECHO_C" >&6
7447 cat >conftest.
$ac_ext <<_ACEOF
7450 cat confdefs.h
>>conftest.
$ac_ext
7451 cat >>conftest.
$ac_ext <<_ACEOF
7452 /* end confdefs.h. */
7453 #include <sys/types.h>
7459 return *(signal (0, 0)) (0) == 1;
7464 rm -f conftest.
$ac_objext
7465 if { (ac_try
="$ac_compile"
7467 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7468 *) ac_try_echo=$ac_try;;
7470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7471 (eval "$ac_compile") 2>conftest.er1
7473 grep -v '^ *+' conftest.er1 >conftest.err
7475 cat conftest.err >&5
7476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7477 (exit $ac_status); } && {
7478 test -z "$ac_c_werror_flag" ||
7479 test ! -s conftest.err
7480 } && test -s conftest.$ac_objext; then
7481 ac_cv_type_signal=int
7483 echo "$as_me: failed program was:" >&5
7484 sed 's/^/| /' conftest.$ac_ext >&5
7486 ac_cv_type_signal=void
7489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7491 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7492 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7494 cat >>confdefs.h <<_ACEOF
7495 #define RETSIGTYPE $ac_cv_type_signal
7500 { echo "$as_me:$LINENO: checking for speed_t" >&5
7501 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7502 if test "${emacs_cv_speed_t+set}" = set; then
7503 echo $ECHO_N "(cached) $ECHO_C" >&6
7505 cat >conftest.$ac_ext <<_ACEOF
7508 cat confdefs.h >>conftest.$ac_ext
7509 cat >>conftest.$ac_ext <<_ACEOF
7510 /* end confdefs.h. */
7511 #include <termios.h>
7520 rm -f conftest.$ac_objext
7521 if { (ac_try="$ac_compile"
7523 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7524 *) ac_try_echo
=$ac_try;;
7526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7527 (eval "$ac_compile") 2>conftest.er1
7529 grep -v '^ *+' conftest.er1
>conftest.err
7531 cat conftest.err
>&5
7532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7533 (exit $ac_status); } && {
7534 test -z "$ac_c_werror_flag" ||
7535 test ! -s conftest.err
7536 } && test -s conftest.
$ac_objext; then
7537 emacs_cv_speed_t
=yes
7539 echo "$as_me: failed program was:" >&5
7540 sed 's/^/| /' conftest.
$ac_ext >&5
7545 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7547 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7548 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7549 if test $emacs_cv_speed_t = yes; then
7551 cat >>confdefs.h
<<\_ACEOF
7552 #define HAVE_SPEED_T 1
7557 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7558 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7559 if test "${emacs_cv_struct_timeval+set}" = set; then
7560 echo $ECHO_N "(cached) $ECHO_C" >&6
7562 cat >conftest.
$ac_ext <<_ACEOF
7565 cat confdefs.h
>>conftest.
$ac_ext
7566 cat >>conftest.
$ac_ext <<_ACEOF
7567 /* end confdefs.h. */
7568 #ifdef TIME_WITH_SYS_TIME
7569 #include <sys/time.h>
7572 #ifdef HAVE_SYS_TIME_H
7573 #include <sys/time.h>
7581 static struct timeval x; x.tv_sec = x.tv_usec;
7586 rm -f conftest.
$ac_objext
7587 if { (ac_try
="$ac_compile"
7589 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7590 *) ac_try_echo=$ac_try;;
7592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7593 (eval "$ac_compile") 2>conftest.er1
7595 grep -v '^ *+' conftest.er1 >conftest.err
7597 cat conftest.err >&5
7598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599 (exit $ac_status); } && {
7600 test -z "$ac_c_werror_flag" ||
7601 test ! -s conftest.err
7602 } && test -s conftest.$ac_objext; then
7603 emacs_cv_struct_timeval=yes
7605 echo "$as_me: failed program was:" >&5
7606 sed 's/^/| /' conftest.$ac_ext >&5
7608 emacs_cv_struct_timeval=no
7611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7613 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7614 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7615 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7616 if test $emacs_cv_struct_timeval = yes; then
7618 cat >>confdefs.h <<\_ACEOF
7619 #define HAVE_TIMEVAL 1
7624 { echo "$as_me:$LINENO: checking for struct exception" >&5
7625 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7626 if test "${emacs_cv_struct_exception+set}" = set; then
7627 echo $ECHO_N "(cached) $ECHO_C" >&6
7629 cat >conftest.$ac_ext <<_ACEOF
7632 cat confdefs.h >>conftest.$ac_ext
7633 cat >>conftest.$ac_ext <<_ACEOF
7634 /* end confdefs.h. */
7639 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7644 rm -f conftest.$ac_objext
7645 if { (ac_try="$ac_compile"
7647 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7648 *) ac_try_echo
=$ac_try;;
7650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7651 (eval "$ac_compile") 2>conftest.er1
7653 grep -v '^ *+' conftest.er1
>conftest.err
7655 cat conftest.err
>&5
7656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7657 (exit $ac_status); } && {
7658 test -z "$ac_c_werror_flag" ||
7659 test ! -s conftest.err
7660 } && test -s conftest.
$ac_objext; then
7661 emacs_cv_struct_exception
=yes
7663 echo "$as_me: failed program was:" >&5
7664 sed 's/^/| /' conftest.
$ac_ext >&5
7666 emacs_cv_struct_exception
=no
7669 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7671 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7672 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7673 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7674 if test $emacs_cv_struct_exception != yes; then
7676 cat >>confdefs.h
<<\_ACEOF
7677 #define NO_MATHERR 1
7683 for ac_header
in sys
/socket.h
7685 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7686 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7687 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7689 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7690 echo $ECHO_N "(cached) $ECHO_C" >&6
7692 ac_res
=`eval echo '${'$as_ac_Header'}'`
7693 { echo "$as_me:$LINENO: result: $ac_res" >&5
7694 echo "${ECHO_T}$ac_res" >&6; }
7696 # Is the header compilable?
7697 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7698 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7699 cat >conftest.
$ac_ext <<_ACEOF
7702 cat confdefs.h
>>conftest.
$ac_ext
7703 cat >>conftest.
$ac_ext <<_ACEOF
7704 /* end confdefs.h. */
7705 $ac_includes_default
7706 #include <$ac_header>
7708 rm -f conftest.
$ac_objext
7709 if { (ac_try
="$ac_compile"
7711 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7712 *) ac_try_echo=$ac_try;;
7714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7715 (eval "$ac_compile") 2>conftest.er1
7717 grep -v '^ *+' conftest.er1 >conftest.err
7719 cat conftest.err >&5
7720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7721 (exit $ac_status); } && {
7722 test -z "$ac_c_werror_flag" ||
7723 test ! -s conftest.err
7724 } && test -s conftest.$ac_objext; then
7725 ac_header_compiler=yes
7727 echo "$as_me: failed program was:" >&5
7728 sed 's/^/| /' conftest.$ac_ext >&5
7730 ac_header_compiler=no
7733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7734 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7735 echo "${ECHO_T}$ac_header_compiler" >&6; }
7737 # Is the header present?
7738 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7739 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7740 cat >conftest.$ac_ext <<_ACEOF
7743 cat confdefs.h >>conftest.$ac_ext
7744 cat >>conftest.$ac_ext <<_ACEOF
7745 /* end confdefs.h. */
7746 #include <$ac_header>
7748 if { (ac_try="$ac_cpp conftest.$ac_ext"
7750 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7751 *) ac_try_echo
=$ac_try;;
7753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7754 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7756 grep -v '^ *+' conftest.er1
>conftest.err
7758 cat conftest.err
>&5
7759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7760 (exit $ac_status); } >/dev
/null
&& {
7761 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7762 test ! -s conftest.err
7764 ac_header_preproc
=yes
7766 echo "$as_me: failed program was:" >&5
7767 sed 's/^/| /' conftest.
$ac_ext >&5
7769 ac_header_preproc
=no
7772 rm -f conftest.err conftest.
$ac_ext
7773 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7774 echo "${ECHO_T}$ac_header_preproc" >&6; }
7776 # So? What about this header?
7777 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7779 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7780 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7781 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7782 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7783 ac_header_preproc
=yes
7786 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7787 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7788 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7789 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7790 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7791 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7792 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7793 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7794 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7795 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7796 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7797 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7801 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7802 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7803 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7804 echo $ECHO_N "(cached) $ECHO_C" >&6
7806 eval "$as_ac_Header=\$ac_header_preproc"
7808 ac_res
=`eval echo '${'$as_ac_Header'}'`
7809 { echo "$as_me:$LINENO: result: $ac_res" >&5
7810 echo "${ECHO_T}$ac_res" >&6; }
7813 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7814 cat >>confdefs.h
<<_ACEOF
7815 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7823 for ac_header
in net
/if.h
7825 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7826 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7827 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7828 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7829 echo $ECHO_N "(cached) $ECHO_C" >&6
7831 cat >conftest.
$ac_ext <<_ACEOF
7834 cat confdefs.h
>>conftest.
$ac_ext
7835 cat >>conftest.
$ac_ext <<_ACEOF
7836 /* end confdefs.h. */
7837 $ac_includes_default
7838 #if HAVE_SYS_SOCKET_H
7839 #include <sys/socket.h>
7842 #include <$ac_header>
7844 rm -f conftest.
$ac_objext
7845 if { (ac_try
="$ac_compile"
7847 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7848 *) ac_try_echo=$ac_try;;
7850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7851 (eval "$ac_compile") 2>conftest.er1
7853 grep -v '^ *+' conftest.er1 >conftest.err
7855 cat conftest.err >&5
7856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7857 (exit $ac_status); } && {
7858 test -z "$ac_c_werror_flag" ||
7859 test ! -s conftest.err
7860 } && test -s conftest.$ac_objext; then
7861 eval "$as_ac_Header=yes"
7863 echo "$as_me: failed program was:" >&5
7864 sed 's/^/| /' conftest.$ac_ext >&5
7866 eval "$as_ac_Header=no"
7869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7871 ac_res=`eval echo '${'$as_ac_Header'}'`
7872 { echo "$as_me:$LINENO: result: $ac_res" >&5
7873 echo "${ECHO_T}$ac_res" >&6; }
7874 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7875 cat >>confdefs.h <<_ACEOF
7876 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7884 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7885 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7886 if test "${ac_cv_struct_tm+set}" = set; then
7887 echo $ECHO_N "(cached) $ECHO_C" >&6
7889 cat >conftest.$ac_ext <<_ACEOF
7892 cat confdefs.h >>conftest.$ac_ext
7893 cat >>conftest.$ac_ext <<_ACEOF
7894 /* end confdefs.h. */
7895 #include <sys/types.h>
7902 int *p = &tm.tm_sec;
7908 rm -f conftest.$ac_objext
7909 if { (ac_try="$ac_compile"
7911 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7912 *) ac_try_echo
=$ac_try;;
7914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7915 (eval "$ac_compile") 2>conftest.er1
7917 grep -v '^ *+' conftest.er1
>conftest.err
7919 cat conftest.err
>&5
7920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7921 (exit $ac_status); } && {
7922 test -z "$ac_c_werror_flag" ||
7923 test ! -s conftest.err
7924 } && test -s conftest.
$ac_objext; then
7925 ac_cv_struct_tm
=time.h
7927 echo "$as_me: failed program was:" >&5
7928 sed 's/^/| /' conftest.
$ac_ext >&5
7930 ac_cv_struct_tm
=sys
/time.h
7933 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7935 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7936 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7937 if test $ac_cv_struct_tm = sys
/time.h
; then
7939 cat >>confdefs.h
<<\_ACEOF
7940 #define TM_IN_SYS_TIME 1
7945 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7946 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7947 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7948 echo $ECHO_N "(cached) $ECHO_C" >&6
7950 cat >conftest.
$ac_ext <<_ACEOF
7953 cat confdefs.h
>>conftest.
$ac_ext
7954 cat >>conftest.
$ac_ext <<_ACEOF
7955 /* end confdefs.h. */
7956 #include <sys/types.h>
7957 #include <$ac_cv_struct_tm>
7963 static struct tm ac_aggr;
7964 if (ac_aggr.tm_zone)
7970 rm -f conftest.
$ac_objext
7971 if { (ac_try
="$ac_compile"
7973 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7974 *) ac_try_echo=$ac_try;;
7976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7977 (eval "$ac_compile") 2>conftest.er1
7979 grep -v '^ *+' conftest.er1 >conftest.err
7981 cat conftest.err >&5
7982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983 (exit $ac_status); } && {
7984 test -z "$ac_c_werror_flag" ||
7985 test ! -s conftest.err
7986 } && test -s conftest.$ac_objext; then
7987 ac_cv_member_struct_tm_tm_zone=yes
7989 echo "$as_me: failed program was:" >&5
7990 sed 's/^/| /' conftest.$ac_ext >&5
7992 cat >conftest.$ac_ext <<_ACEOF
7995 cat confdefs.h >>conftest.$ac_ext
7996 cat >>conftest.$ac_ext <<_ACEOF
7997 /* end confdefs.h. */
7998 #include <sys/types.h>
7999 #include <$ac_cv_struct_tm>
8005 static struct tm ac_aggr;
8006 if (sizeof ac_aggr.tm_zone)
8012 rm -f conftest.$ac_objext
8013 if { (ac_try="$ac_compile"
8015 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8016 *) ac_try_echo
=$ac_try;;
8018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8019 (eval "$ac_compile") 2>conftest.er1
8021 grep -v '^ *+' conftest.er1
>conftest.err
8023 cat conftest.err
>&5
8024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025 (exit $ac_status); } && {
8026 test -z "$ac_c_werror_flag" ||
8027 test ! -s conftest.err
8028 } && test -s conftest.
$ac_objext; then
8029 ac_cv_member_struct_tm_tm_zone
=yes
8031 echo "$as_me: failed program was:" >&5
8032 sed 's/^/| /' conftest.
$ac_ext >&5
8034 ac_cv_member_struct_tm_tm_zone
=no
8037 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8040 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8042 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8043 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
8044 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8046 cat >>confdefs.h
<<_ACEOF
8047 #define HAVE_STRUCT_TM_TM_ZONE 1
8053 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8055 cat >>confdefs.h
<<\_ACEOF
8056 #define HAVE_TM_ZONE 1
8060 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8061 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
8062 if test "${ac_cv_have_decl_tzname+set}" = set; then
8063 echo $ECHO_N "(cached) $ECHO_C" >&6
8065 cat >conftest.
$ac_ext <<_ACEOF
8068 cat confdefs.h
>>conftest.
$ac_ext
8069 cat >>conftest.
$ac_ext <<_ACEOF
8070 /* end confdefs.h. */
8084 rm -f conftest.
$ac_objext
8085 if { (ac_try
="$ac_compile"
8087 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8088 *) ac_try_echo=$ac_try;;
8090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8091 (eval "$ac_compile") 2>conftest.er1
8093 grep -v '^ *+' conftest.er1 >conftest.err
8095 cat conftest.err >&5
8096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8097 (exit $ac_status); } && {
8098 test -z "$ac_c_werror_flag" ||
8099 test ! -s conftest.err
8100 } && test -s conftest.$ac_objext; then
8101 ac_cv_have_decl_tzname=yes
8103 echo "$as_me: failed program was:" >&5
8104 sed 's/^/| /' conftest.$ac_ext >&5
8106 ac_cv_have_decl_tzname=no
8109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8111 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8112 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
8113 if test $ac_cv_have_decl_tzname = yes; then
8115 cat >>confdefs.h <<_ACEOF
8116 #define HAVE_DECL_TZNAME 1
8121 cat >>confdefs.h <<_ACEOF
8122 #define HAVE_DECL_TZNAME 0
8129 { echo "$as_me:$LINENO: checking for tzname" >&5
8130 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
8131 if test "${ac_cv_var_tzname+set}" = set; then
8132 echo $ECHO_N "(cached) $ECHO_C" >&6
8134 cat >conftest.$ac_ext <<_ACEOF
8137 cat confdefs.h >>conftest.$ac_ext
8138 cat >>conftest.$ac_ext <<_ACEOF
8139 /* end confdefs.h. */
8141 #if !HAVE_DECL_TZNAME
8142 extern char *tzname[];
8148 return tzname[0][0];
8153 rm -f conftest.$ac_objext conftest$ac_exeext
8154 if { (ac_try="$ac_link"
8156 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8157 *) ac_try_echo
=$ac_try;;
8159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8160 (eval "$ac_link") 2>conftest.er1
8162 grep -v '^ *+' conftest.er1
>conftest.err
8164 cat conftest.err
>&5
8165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8166 (exit $ac_status); } && {
8167 test -z "$ac_c_werror_flag" ||
8168 test ! -s conftest.err
8169 } && test -s conftest
$ac_exeext &&
8170 $as_test_x conftest
$ac_exeext; then
8171 ac_cv_var_tzname
=yes
8173 echo "$as_me: failed program was:" >&5
8174 sed 's/^/| /' conftest.
$ac_ext >&5
8179 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8180 conftest
$ac_exeext conftest.
$ac_ext
8182 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8183 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
8184 if test $ac_cv_var_tzname = yes; then
8186 cat >>confdefs.h
<<\_ACEOF
8187 #define HAVE_TZNAME 1
8193 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8194 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
8195 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8196 echo $ECHO_N "(cached) $ECHO_C" >&6
8198 cat >conftest.
$ac_ext <<_ACEOF
8201 cat confdefs.h
>>conftest.
$ac_ext
8202 cat >>conftest.
$ac_ext <<_ACEOF
8203 /* end confdefs.h. */
8209 static struct tm ac_aggr;
8210 if (ac_aggr.tm_gmtoff)
8216 rm -f conftest.
$ac_objext
8217 if { (ac_try
="$ac_compile"
8219 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8220 *) ac_try_echo=$ac_try;;
8222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8223 (eval "$ac_compile") 2>conftest.er1
8225 grep -v '^ *+' conftest.er1 >conftest.err
8227 cat conftest.err >&5
8228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229 (exit $ac_status); } && {
8230 test -z "$ac_c_werror_flag" ||
8231 test ! -s conftest.err
8232 } && test -s conftest.$ac_objext; then
8233 ac_cv_member_struct_tm_tm_gmtoff=yes
8235 echo "$as_me: failed program was:" >&5
8236 sed 's/^/| /' conftest.$ac_ext >&5
8238 cat >conftest.$ac_ext <<_ACEOF
8241 cat confdefs.h >>conftest.$ac_ext
8242 cat >>conftest.$ac_ext <<_ACEOF
8243 /* end confdefs.h. */
8249 static struct tm ac_aggr;
8250 if (sizeof ac_aggr.tm_gmtoff)
8256 rm -f conftest.$ac_objext
8257 if { (ac_try="$ac_compile"
8259 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8260 *) ac_try_echo
=$ac_try;;
8262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8263 (eval "$ac_compile") 2>conftest.er1
8265 grep -v '^ *+' conftest.er1
>conftest.err
8267 cat conftest.err
>&5
8268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8269 (exit $ac_status); } && {
8270 test -z "$ac_c_werror_flag" ||
8271 test ! -s conftest.err
8272 } && test -s conftest.
$ac_objext; then
8273 ac_cv_member_struct_tm_tm_gmtoff
=yes
8275 echo "$as_me: failed program was:" >&5
8276 sed 's/^/| /' conftest.
$ac_ext >&5
8278 ac_cv_member_struct_tm_tm_gmtoff
=no
8281 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8284 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8286 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8287 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8288 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8290 cat >>confdefs.h
<<\_ACEOF
8291 #define HAVE_TM_GMTOFF 1
8296 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8297 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8298 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8299 echo $ECHO_N "(cached) $ECHO_C" >&6
8301 cat >conftest.
$ac_ext <<_ACEOF
8304 cat confdefs.h
>>conftest.
$ac_ext
8305 cat >>conftest.
$ac_ext <<_ACEOF
8306 /* end confdefs.h. */
8307 $ac_includes_default
8308 #if HAVE_SYS_SOCKET_H
8309 #include <sys/socket.h>
8318 static struct ifreq ac_aggr;
8319 if (ac_aggr.ifr_flags)
8325 rm -f conftest.
$ac_objext
8326 if { (ac_try
="$ac_compile"
8328 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8329 *) ac_try_echo=$ac_try;;
8331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8332 (eval "$ac_compile") 2>conftest.er1
8334 grep -v '^ *+' conftest.er1 >conftest.err
8336 cat conftest.err >&5
8337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338 (exit $ac_status); } && {
8339 test -z "$ac_c_werror_flag" ||
8340 test ! -s conftest.err
8341 } && test -s conftest.$ac_objext; then
8342 ac_cv_member_struct_ifreq_ifr_flags=yes
8344 echo "$as_me: failed program was:" >&5
8345 sed 's/^/| /' conftest.$ac_ext >&5
8347 cat >conftest.$ac_ext <<_ACEOF
8350 cat confdefs.h >>conftest.$ac_ext
8351 cat >>conftest.$ac_ext <<_ACEOF
8352 /* end confdefs.h. */
8353 $ac_includes_default
8354 #if HAVE_SYS_SOCKET_H
8355 #include <sys/socket.h>
8364 static struct ifreq ac_aggr;
8365 if (sizeof ac_aggr.ifr_flags)
8371 rm -f conftest.$ac_objext
8372 if { (ac_try="$ac_compile"
8374 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8375 *) ac_try_echo
=$ac_try;;
8377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8378 (eval "$ac_compile") 2>conftest.er1
8380 grep -v '^ *+' conftest.er1
>conftest.err
8382 cat conftest.err
>&5
8383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384 (exit $ac_status); } && {
8385 test -z "$ac_c_werror_flag" ||
8386 test ! -s conftest.err
8387 } && test -s conftest.
$ac_objext; then
8388 ac_cv_member_struct_ifreq_ifr_flags
=yes
8390 echo "$as_me: failed program was:" >&5
8391 sed 's/^/| /' conftest.
$ac_ext >&5
8393 ac_cv_member_struct_ifreq_ifr_flags
=no
8396 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8399 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8401 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8402 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8403 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8405 cat >>confdefs.h
<<_ACEOF
8406 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8411 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8412 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8413 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8414 echo $ECHO_N "(cached) $ECHO_C" >&6
8416 cat >conftest.
$ac_ext <<_ACEOF
8419 cat confdefs.h
>>conftest.
$ac_ext
8420 cat >>conftest.
$ac_ext <<_ACEOF
8421 /* end confdefs.h. */
8422 $ac_includes_default
8423 #if HAVE_SYS_SOCKET_H
8424 #include <sys/socket.h>
8433 static struct ifreq ac_aggr;
8434 if (ac_aggr.ifr_hwaddr)
8440 rm -f conftest.
$ac_objext
8441 if { (ac_try
="$ac_compile"
8443 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8444 *) ac_try_echo=$ac_try;;
8446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8447 (eval "$ac_compile") 2>conftest.er1
8449 grep -v '^ *+' conftest.er1 >conftest.err
8451 cat conftest.err >&5
8452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453 (exit $ac_status); } && {
8454 test -z "$ac_c_werror_flag" ||
8455 test ! -s conftest.err
8456 } && test -s conftest.$ac_objext; then
8457 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8459 echo "$as_me: failed program was:" >&5
8460 sed 's/^/| /' conftest.$ac_ext >&5
8462 cat >conftest.$ac_ext <<_ACEOF
8465 cat confdefs.h >>conftest.$ac_ext
8466 cat >>conftest.$ac_ext <<_ACEOF
8467 /* end confdefs.h. */
8468 $ac_includes_default
8469 #if HAVE_SYS_SOCKET_H
8470 #include <sys/socket.h>
8479 static struct ifreq ac_aggr;
8480 if (sizeof ac_aggr.ifr_hwaddr)
8486 rm -f conftest.$ac_objext
8487 if { (ac_try="$ac_compile"
8489 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8490 *) ac_try_echo
=$ac_try;;
8492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8493 (eval "$ac_compile") 2>conftest.er1
8495 grep -v '^ *+' conftest.er1
>conftest.err
8497 cat conftest.err
>&5
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); } && {
8500 test -z "$ac_c_werror_flag" ||
8501 test ! -s conftest.err
8502 } && test -s conftest.
$ac_objext; then
8503 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8505 echo "$as_me: failed program was:" >&5
8506 sed 's/^/| /' conftest.
$ac_ext >&5
8508 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8511 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8514 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8516 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8517 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8518 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8520 cat >>confdefs.h
<<_ACEOF
8521 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8526 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8527 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8528 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8529 echo $ECHO_N "(cached) $ECHO_C" >&6
8531 cat >conftest.
$ac_ext <<_ACEOF
8534 cat confdefs.h
>>conftest.
$ac_ext
8535 cat >>conftest.
$ac_ext <<_ACEOF
8536 /* end confdefs.h. */
8537 $ac_includes_default
8538 #if HAVE_SYS_SOCKET_H
8539 #include <sys/socket.h>
8548 static struct ifreq ac_aggr;
8549 if (ac_aggr.ifr_netmask)
8555 rm -f conftest.
$ac_objext
8556 if { (ac_try
="$ac_compile"
8558 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8559 *) ac_try_echo=$ac_try;;
8561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8562 (eval "$ac_compile") 2>conftest.er1
8564 grep -v '^ *+' conftest.er1 >conftest.err
8566 cat conftest.err >&5
8567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568 (exit $ac_status); } && {
8569 test -z "$ac_c_werror_flag" ||
8570 test ! -s conftest.err
8571 } && test -s conftest.$ac_objext; then
8572 ac_cv_member_struct_ifreq_ifr_netmask=yes
8574 echo "$as_me: failed program was:" >&5
8575 sed 's/^/| /' conftest.$ac_ext >&5
8577 cat >conftest.$ac_ext <<_ACEOF
8580 cat confdefs.h >>conftest.$ac_ext
8581 cat >>conftest.$ac_ext <<_ACEOF
8582 /* end confdefs.h. */
8583 $ac_includes_default
8584 #if HAVE_SYS_SOCKET_H
8585 #include <sys/socket.h>
8594 static struct ifreq ac_aggr;
8595 if (sizeof ac_aggr.ifr_netmask)
8601 rm -f conftest.$ac_objext
8602 if { (ac_try="$ac_compile"
8604 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8605 *) ac_try_echo
=$ac_try;;
8607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8608 (eval "$ac_compile") 2>conftest.er1
8610 grep -v '^ *+' conftest.er1
>conftest.err
8612 cat conftest.err
>&5
8613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614 (exit $ac_status); } && {
8615 test -z "$ac_c_werror_flag" ||
8616 test ! -s conftest.err
8617 } && test -s conftest.
$ac_objext; then
8618 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8620 echo "$as_me: failed program was:" >&5
8621 sed 's/^/| /' conftest.
$ac_ext >&5
8623 ac_cv_member_struct_ifreq_ifr_netmask
=no
8626 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8629 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8631 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8632 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8633 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8635 cat >>confdefs.h
<<_ACEOF
8636 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8641 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8642 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8643 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8644 echo $ECHO_N "(cached) $ECHO_C" >&6
8646 cat >conftest.
$ac_ext <<_ACEOF
8649 cat confdefs.h
>>conftest.
$ac_ext
8650 cat >>conftest.
$ac_ext <<_ACEOF
8651 /* end confdefs.h. */
8652 $ac_includes_default
8653 #if HAVE_SYS_SOCKET_H
8654 #include <sys/socket.h>
8663 static struct ifreq ac_aggr;
8664 if (ac_aggr.ifr_broadaddr)
8670 rm -f conftest.
$ac_objext
8671 if { (ac_try
="$ac_compile"
8673 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8674 *) ac_try_echo=$ac_try;;
8676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8677 (eval "$ac_compile") 2>conftest.er1
8679 grep -v '^ *+' conftest.er1 >conftest.err
8681 cat conftest.err >&5
8682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683 (exit $ac_status); } && {
8684 test -z "$ac_c_werror_flag" ||
8685 test ! -s conftest.err
8686 } && test -s conftest.$ac_objext; then
8687 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8689 echo "$as_me: failed program was:" >&5
8690 sed 's/^/| /' conftest.$ac_ext >&5
8692 cat >conftest.$ac_ext <<_ACEOF
8695 cat confdefs.h >>conftest.$ac_ext
8696 cat >>conftest.$ac_ext <<_ACEOF
8697 /* end confdefs.h. */
8698 $ac_includes_default
8699 #if HAVE_SYS_SOCKET_H
8700 #include <sys/socket.h>
8709 static struct ifreq ac_aggr;
8710 if (sizeof ac_aggr.ifr_broadaddr)
8716 rm -f conftest.$ac_objext
8717 if { (ac_try="$ac_compile"
8719 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8720 *) ac_try_echo
=$ac_try;;
8722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8723 (eval "$ac_compile") 2>conftest.er1
8725 grep -v '^ *+' conftest.er1
>conftest.err
8727 cat conftest.err
>&5
8728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729 (exit $ac_status); } && {
8730 test -z "$ac_c_werror_flag" ||
8731 test ! -s conftest.err
8732 } && test -s conftest.
$ac_objext; then
8733 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
8735 echo "$as_me: failed program was:" >&5
8736 sed 's/^/| /' conftest.
$ac_ext >&5
8738 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
8741 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8744 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8746 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8747 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8748 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8750 cat >>confdefs.h
<<_ACEOF
8751 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8756 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8757 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8758 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8759 echo $ECHO_N "(cached) $ECHO_C" >&6
8761 cat >conftest.
$ac_ext <<_ACEOF
8764 cat confdefs.h
>>conftest.
$ac_ext
8765 cat >>conftest.
$ac_ext <<_ACEOF
8766 /* end confdefs.h. */
8767 $ac_includes_default
8768 #if HAVE_SYS_SOCKET_H
8769 #include <sys/socket.h>
8778 static struct ifreq ac_aggr;
8779 if (ac_aggr.ifr_addr)
8785 rm -f conftest.
$ac_objext
8786 if { (ac_try
="$ac_compile"
8788 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8789 *) ac_try_echo=$ac_try;;
8791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8792 (eval "$ac_compile") 2>conftest.er1
8794 grep -v '^ *+' conftest.er1 >conftest.err
8796 cat conftest.err >&5
8797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8798 (exit $ac_status); } && {
8799 test -z "$ac_c_werror_flag" ||
8800 test ! -s conftest.err
8801 } && test -s conftest.$ac_objext; then
8802 ac_cv_member_struct_ifreq_ifr_addr=yes
8804 echo "$as_me: failed program was:" >&5
8805 sed 's/^/| /' conftest.$ac_ext >&5
8807 cat >conftest.$ac_ext <<_ACEOF
8810 cat confdefs.h >>conftest.$ac_ext
8811 cat >>conftest.$ac_ext <<_ACEOF
8812 /* end confdefs.h. */
8813 $ac_includes_default
8814 #if HAVE_SYS_SOCKET_H
8815 #include <sys/socket.h>
8824 static struct ifreq ac_aggr;
8825 if (sizeof ac_aggr.ifr_addr)
8831 rm -f conftest.$ac_objext
8832 if { (ac_try="$ac_compile"
8834 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8835 *) ac_try_echo
=$ac_try;;
8837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8838 (eval "$ac_compile") 2>conftest.er1
8840 grep -v '^ *+' conftest.er1
>conftest.err
8842 cat conftest.err
>&5
8843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844 (exit $ac_status); } && {
8845 test -z "$ac_c_werror_flag" ||
8846 test ! -s conftest.err
8847 } && test -s conftest.
$ac_objext; then
8848 ac_cv_member_struct_ifreq_ifr_addr
=yes
8850 echo "$as_me: failed program was:" >&5
8851 sed 's/^/| /' conftest.
$ac_ext >&5
8853 ac_cv_member_struct_ifreq_ifr_addr
=no
8856 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8859 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8861 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8862 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8863 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8865 cat >>confdefs.h
<<_ACEOF
8866 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8874 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8875 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8876 if test "$ac_cv_prog_cc_c89" != no
; then
8877 { echo "$as_me:$LINENO: result: yes" >&5
8878 echo "${ECHO_T}yes" >&6; }
8880 cat >>confdefs.h
<<\_ACEOF
8881 #define PROTOTYPES 1
8885 cat >>confdefs.h
<<\_ACEOF
8886 #define __PROTOTYPES 1
8890 { echo "$as_me:$LINENO: result: no" >&5
8891 echo "${ECHO_T}no" >&6; }
8894 { echo "$as_me:$LINENO: checking for working volatile" >&5
8895 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8896 if test "${ac_cv_c_volatile+set}" = set; then
8897 echo $ECHO_N "(cached) $ECHO_C" >&6
8899 cat >conftest.
$ac_ext <<_ACEOF
8902 cat confdefs.h
>>conftest.
$ac_ext
8903 cat >>conftest.
$ac_ext <<_ACEOF
8904 /* end confdefs.h. */
8911 int * volatile y = (int *) 0;
8917 rm -f conftest.
$ac_objext
8918 if { (ac_try
="$ac_compile"
8920 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8921 *) ac_try_echo=$ac_try;;
8923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8924 (eval "$ac_compile") 2>conftest.er1
8926 grep -v '^ *+' conftest.er1 >conftest.err
8928 cat conftest.err >&5
8929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930 (exit $ac_status); } && {
8931 test -z "$ac_c_werror_flag" ||
8932 test ! -s conftest.err
8933 } && test -s conftest.$ac_objext; then
8934 ac_cv_c_volatile=yes
8936 echo "$as_me: failed program was:" >&5
8937 sed 's/^/| /' conftest.$ac_ext >&5
8942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8944 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8945 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8946 if test $ac_cv_c_volatile = no; then
8948 cat >>confdefs.h <<\_ACEOF
8954 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8955 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8956 if test "${ac_cv_c_const+set}" = set; then
8957 echo $ECHO_N "(cached) $ECHO_C" >&6
8959 cat >conftest.$ac_ext <<_ACEOF
8962 cat confdefs.h >>conftest.$ac_ext
8963 cat >>conftest.$ac_ext <<_ACEOF
8964 /* end confdefs.h. */
8969 /* FIXME: Include the comments suggested by Paul. */
8971 /* Ultrix mips cc rejects this. */
8972 typedef int charset[2];
8974 /* SunOS 4.1.1 cc rejects this. */
8975 char const *const *pcpcc;
8977 /* NEC SVR4.0.2 mips cc rejects this. */
8978 struct point {int x, y;};
8979 static struct point const zero = {0,0};
8980 /* AIX XL C 1.02.0.0 rejects this.
8981 It does not let you subtract one const X* pointer from another in
8982 an arm of an if-expression whose if-part is not a constant
8984 const char *g = "string";
8985 pcpcc = &g + (g ? g-g : 0);
8986 /* HPUX 7.0 cc rejects these. */
8988 ppc = (char**) pcpcc;
8989 pcpcc = (char const *const *) ppc;
8990 { /* SCO 3.2v4 cc rejects this. */
8992 char const *s = 0 ? (char *) 0 : (char const *) 0;
8997 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8999 const int *foo = &x[0];
9002 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9003 typedef const int *iptr;
9007 { /* AIX XL C 1.02.0.0 rejects this saying
9008 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9009 struct s { int j; const int *ap[3]; };
9010 struct s *b; b->j = 5;
9012 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9016 return !cs[0] && !zero.x;
9023 rm -f conftest.$ac_objext
9024 if { (ac_try="$ac_compile"
9026 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9027 *) ac_try_echo
=$ac_try;;
9029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9030 (eval "$ac_compile") 2>conftest.er1
9032 grep -v '^ *+' conftest.er1
>conftest.err
9034 cat conftest.err
>&5
9035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9036 (exit $ac_status); } && {
9037 test -z "$ac_c_werror_flag" ||
9038 test ! -s conftest.err
9039 } && test -s conftest.
$ac_objext; then
9042 echo "$as_me: failed program was:" >&5
9043 sed 's/^/| /' conftest.
$ac_ext >&5
9048 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9050 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9051 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9052 if test $ac_cv_c_const = no
; then
9054 cat >>confdefs.h
<<\_ACEOF
9060 { echo "$as_me:$LINENO: checking for void * support" >&5
9061 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
9062 if test "${emacs_cv_void_star+set}" = set; then
9063 echo $ECHO_N "(cached) $ECHO_C" >&6
9065 cat >conftest.
$ac_ext <<_ACEOF
9068 cat confdefs.h
>>conftest.
$ac_ext
9069 cat >>conftest.
$ac_ext <<_ACEOF
9070 /* end confdefs.h. */
9080 rm -f conftest.
$ac_objext
9081 if { (ac_try
="$ac_compile"
9083 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9084 *) ac_try_echo=$ac_try;;
9086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9087 (eval "$ac_compile") 2>conftest.er1
9089 grep -v '^ *+' conftest.er1 >conftest.err
9091 cat conftest.err >&5
9092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9093 (exit $ac_status); } && {
9094 test -z "$ac_c_werror_flag" ||
9095 test ! -s conftest.err
9096 } && test -s conftest.$ac_objext; then
9097 emacs_cv_void_star=yes
9099 echo "$as_me: failed program was:" >&5
9100 sed 's/^/| /' conftest.$ac_ext >&5
9102 emacs_cv_void_star=no
9105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9107 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9108 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
9109 if test $emacs_cv_void_star = yes; then
9110 cat >>confdefs.h <<\_ACEOF
9111 #define POINTER_TYPE void
9115 cat >>confdefs.h <<\_ACEOF
9116 #define POINTER_TYPE char
9125 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9126 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
9127 set x ${MAKE-make}; ac_make=`echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9128 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9129 echo $ECHO_N "(cached) $ECHO_C" >&6
9131 cat >conftest.make <<\_ACEOF
9134 @echo '@@@%%%=$(MAKE)=@@@%%%'
9136 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9137 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
9139 eval ac_cv_prog_make_${ac_make}_set=yes;;
9141 eval ac_cv_prog_make_${ac_make}_set=no;;
9145 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9146 { echo "$as_me:$LINENO: result: yes" >&5
9147 echo "${ECHO_T}yes" >&6; }
9150 { echo "$as_me:$LINENO: result: no" >&5
9151 echo "${ECHO_T}no" >&6; }
9152 SET_MAKE="MAKE=${MAKE-make}"
9156 { echo "$as_me:$LINENO: checking for long file names" >&5
9157 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
9158 if test "${ac_cv_sys_long_file_names+set}" = set; then
9159 echo $ECHO_N "(cached) $ECHO_C" >&6
9161 ac_cv_sys_long_file_names=yes
9162 # Test for long file names in all the places we know might matter:
9163 # . the current directory, where building will happen
9164 # $prefix/lib where we will be installing things
9165 # $exec_prefix/lib likewise
9166 # $TMPDIR if set, where it might want to write temporary files
9167 # /tmp where it might want to write temporary files
9170 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9171 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9172 # in the usual case where exec_prefix is '${prefix}'.
9174 . | /* | ?:[\\/]*) ;; #(
9177 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9178 ac_xdir=$ac_dir/cf$$
9179 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9180 ac_tf1=$ac_xdir/conftest9012345
9181 ac_tf2=$ac_xdir/conftest9012346
9182 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9183 ac_cv_sys_long_file_names=no
9184 rm -f -r "$ac_xdir" 2>/dev/null
9185 test $ac_cv_sys_long_file_names = no && break
9188 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9189 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9190 if test $ac_cv_sys_long_file_names = yes; then
9192 cat >>confdefs.h <<\_ACEOF
9193 #define HAVE_LONG_FILE_NAMES 1
9199 #### Choose a window system.
9201 { echo "$as_me:$LINENO: checking for X" >&5
9202 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9205 # Check whether --with-x was given.
9206 if test "${with_x+set}" = set; then
9210 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9211 if test "x$with_x" = xno; then
9212 # The user explicitly disabled X.
9215 case $x_includes,$x_libraries in #(
9216 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9217 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9218 { (exit 1); exit 1; }; };; #(
9219 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9220 echo $ECHO_N "(cached) $ECHO_C" >&6
9222 # One or both of the vars are not set, and there is no cached value.
9223 ac_x_includes=no ac_x_libraries=no
9224 rm -f -r conftest.dir
9225 if mkdir conftest.dir; then
9227 cat >Imakefile <<'_ACEOF'
9229 @echo incroot='${INCROOT}'
9231 @echo usrlibdir='${USRLIBDIR}'
9233 @echo libdir='${LIBDIR}'
9235 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9236 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9237 for ac_var in incroot usrlibdir libdir; do
9238 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
9240 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9241 for ac_extension in a so sl; do
9242 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9243 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9244 ac_im_usrlibdir=$ac_im_libdir; break
9247 # Screen out bogus values from the imake configuration. They are
9248 # bogus both because they are the default anyway, and because
9249 # using them would break gcc on systems where it needs fixed includes.
9250 case $ac_im_incroot in
9251 /usr/include) ac_x_includes= ;;
9252 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9254 case $ac_im_usrlibdir in
9256 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9260 rm -f -r conftest.dir
9263 # Standard set of common directories for X headers.
9264 # Check X11 before X11Rn because it is often a symlink to the current release.
9276 /usr/local/X11/include
9277 /usr/local/X11R6/include
9278 /usr/local/X11R5/include
9279 /usr/local/X11R4/include
9281 /usr/local/include/X11
9282 /usr/local/include/X11R6
9283 /usr/local/include/X11R5
9284 /usr/local/include/X11R4
9288 /usr/XFree86/include/X11
9292 /usr/unsupported/include
9294 /usr/local/x11r5/include
9295 /usr/lpp/Xamples/include
9297 /usr/openwin/include
9298 /usr/openwin/share/include'
9300 if test "$ac_x_includes" = no; then
9301 # Guess where to find include files, by looking for Xlib.h.
9302 # First, try using that file with no special directory specified.
9303 cat >conftest.$ac_ext <<_ACEOF
9306 cat confdefs.h >>conftest.$ac_ext
9307 cat >>conftest.$ac_ext <<_ACEOF
9308 /* end confdefs.h. */
9309 #include <X11/Xlib.h>
9311 if { (ac_try="$ac_cpp conftest.$ac_ext"
9313 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9314 *) ac_try_echo
=$ac_try;;
9316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9317 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9319 grep -v '^ *+' conftest.er1
>conftest.err
9321 cat conftest.err
>&5
9322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323 (exit $ac_status); } >/dev
/null
&& {
9324 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9325 test ! -s conftest.err
9327 # We can compile using X headers with no special include directory.
9330 echo "$as_me: failed program was:" >&5
9331 sed 's/^/| /' conftest.
$ac_ext >&5
9333 for ac_dir
in $ac_x_header_dirs; do
9334 if test -r "$ac_dir/X11/Xlib.h"; then
9335 ac_x_includes
=$ac_dir
9341 rm -f conftest.err conftest.
$ac_ext
9342 fi # $ac_x_includes = no
9344 if test "$ac_x_libraries" = no
; then
9345 # Check for the libraries.
9346 # See if we find them without any special options.
9347 # Don't add to $LIBS permanently.
9350 cat >conftest.
$ac_ext <<_ACEOF
9353 cat confdefs.h
>>conftest.
$ac_ext
9354 cat >>conftest.
$ac_ext <<_ACEOF
9355 /* end confdefs.h. */
9356 #include <X11/Xlib.h>
9365 rm -f conftest.
$ac_objext conftest
$ac_exeext
9366 if { (ac_try
="$ac_link"
9368 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9369 *) ac_try_echo=$ac_try;;
9371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9372 (eval "$ac_link") 2>conftest.er1
9374 grep -v '^ *+' conftest.er1 >conftest.err
9376 cat conftest.err >&5
9377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378 (exit $ac_status); } && {
9379 test -z "$ac_c_werror_flag" ||
9380 test ! -s conftest.err
9381 } && test -s conftest$ac_exeext &&
9382 $as_test_x conftest$ac_exeext; then
9384 # We can link X programs with no special library path.
9387 echo "$as_me: failed program was:" >&5
9388 sed 's/^/| /' conftest.$ac_ext >&5
9391 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
9393 # Don't even attempt the hair of trying to link an X program!
9394 for ac_extension in a so sl; do
9395 if test -r "$ac_dir/libX11.$ac_extension"; then
9396 ac_x_libraries=$ac_dir
9403 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9404 conftest$ac_exeext conftest.$ac_ext
9405 fi # $ac_x_libraries = no
9407 case $ac_x_includes,$ac_x_libraries in #(
9409 # Didn't find X, or a directory has "'" in its name.
9410 ac_cv_have_x="have_x=no";; #(
9412 # Record where we found X for the cache.
9413 ac_cv_have_x="have_x=yes\
9414 ac_x_includes='$ac_x_includes'\
9415 ac_x_libraries='$ac_x_libraries'"
9421 eval "$ac_cv_have_x"
9424 if test "$have_x" != yes; then
9425 { echo "$as_me:$LINENO: result: $have_x" >&5
9426 echo "${ECHO_T}$have_x" >&6; }
9429 # If each of the values was on the command line, it overrides each guess.
9430 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9431 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9432 # Update the cache value to reflect the command line values.
9433 ac_cv_have_x="have_x=yes\
9434 ac_x_includes='$x_includes'\
9435 ac_x_libraries='$x_libraries'"
9436 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9437 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9440 if test "$no_x" = yes; then
9446 if test "${x_libraries}" != NONE; then
9447 if test -n "${x_libraries}"; then
9448 LD_SWITCH_X_SITE=-L`echo ${x_libraries} |
sed -e "s/:/ -L/g"`
9449 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} |
sed -e "s/:/ -R/g"`
9451 x_default_search_path=""
9452 x_search_path=${x_libraries}
9453 if test -z "${x_search_path}"; then
9454 x_search_path=/usr/lib
9456 for x_library in `echo ${x_search_path}: | \
9457 sed -e "s/:/ /g" -e p
-e "s:/lib[^ /]* :/share :g"`; do
9459 ${x_library}/X11/%L/%T/%N%C%S:\
9460 ${x_library}/X11/%l/%T/%N%C%S:\
9461 ${x_library}/X11/%T/%N%C%S:\
9462 ${x_library}/X11/%L/%T/%N%S:\
9463 ${x_library}/X11/%l/%T/%N%S:\
9464 ${x_library}/X11/%T/%N%S"
9465 if test x"${x_default_search_path}" = x; then
9466 x_default_search_path=${x_search_path}
9468 x_default_search_path="${x_search_path}:${x_default_search_path}"
9472 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9473 C_SWITCH_X_SITE=-I`echo ${x_includes} |
sed -e "s/:/ -I/g"`
9476 if test x"${x_includes}" = x; then
9477 bitmapdir=/usr/include/X11/bitmaps
9479 # accumulate include directories that have X11 bitmap subdirectories
9481 for bmd in `echo ${x_includes} |
sed -e "s/:/ /g"`; do
9482 if test -d "${bmd}/X11/bitmaps"; then
9483 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9485 if test -d "${bmd}/bitmaps"; then
9486 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9489 if test ${bmd_acc} != "dummyval"; then
9490 bitmapdir=`echo ${bmd_acc} |
sed -e "s/^dummyval://"`
9495 if test "${with_carbon}" != no; then
9496 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9497 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9498 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9499 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9500 echo $ECHO_N "(cached) $ECHO_C" >&6
9502 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9503 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9505 # Is the header compilable?
9506 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9507 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9508 cat >conftest.$ac_ext <<_ACEOF
9511 cat confdefs.h >>conftest.$ac_ext
9512 cat >>conftest.$ac_ext <<_ACEOF
9513 /* end confdefs.h. */
9514 $ac_includes_default
9515 #include <Carbon/Carbon.h>
9517 rm -f conftest.$ac_objext
9518 if { (ac_try="$ac_compile"
9520 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9521 *) ac_try_echo
=$ac_try;;
9523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9524 (eval "$ac_compile") 2>conftest.er1
9526 grep -v '^ *+' conftest.er1
>conftest.err
9528 cat conftest.err
>&5
9529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9530 (exit $ac_status); } && {
9531 test -z "$ac_c_werror_flag" ||
9532 test ! -s conftest.err
9533 } && test -s conftest.
$ac_objext; then
9534 ac_header_compiler
=yes
9536 echo "$as_me: failed program was:" >&5
9537 sed 's/^/| /' conftest.
$ac_ext >&5
9539 ac_header_compiler
=no
9542 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9543 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9544 echo "${ECHO_T}$ac_header_compiler" >&6; }
9546 # Is the header present?
9547 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9548 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9549 cat >conftest.
$ac_ext <<_ACEOF
9552 cat confdefs.h
>>conftest.
$ac_ext
9553 cat >>conftest.
$ac_ext <<_ACEOF
9554 /* end confdefs.h. */
9555 #include <Carbon/Carbon.h>
9557 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9559 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9560 *) ac_try_echo=$ac_try;;
9562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9563 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9565 grep -v '^ *+' conftest.er1 >conftest.err
9567 cat conftest.err >&5
9568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9569 (exit $ac_status); } >/dev/null && {
9570 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9571 test ! -s conftest.err
9573 ac_header_preproc=yes
9575 echo "$as_me: failed program was:" >&5
9576 sed 's/^/| /' conftest.$ac_ext >&5
9578 ac_header_preproc=no
9581 rm -f conftest.err conftest.$ac_ext
9582 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9583 echo "${ECHO_T}$ac_header_preproc" >&6; }
9585 # So? What about this header?
9586 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9588 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9589 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9590 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9591 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9592 ac_header_preproc=yes
9595 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9596 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9597 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9598 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9599 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9600 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9601 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9602 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9603 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9604 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9605 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9606 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9610 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9611 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9612 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9613 echo $ECHO_N "(cached) $ECHO_C" >&6
9615 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9617 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9618 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9621 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9627 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9628 if test "${with_carbon+set}" != set \
9629 && test "${carbon_appdir_x+set}" != set; then
9630 for var in with_x with_x_toolkit with_gtk with_xim \
9631 with_xpm with_jpeg with_tiff with_gif with_png; do
9632 if eval test \"\${$var+set}\" = set; then
9639 if test "${HAVE_CARBON}" = yes; then
9643 case "${window_system}" in
9647 case "${with_x_toolkit}" in
9648 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9649 motif ) USE_X_TOOLKIT=MOTIF ;;
9651 USE_X_TOOLKIT=none ;;
9652 no ) USE_X_TOOLKIT=none ;;
9654 if test x"$with_gtk" = xyes; then
9669 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9670 # Extract the first word of "X", so it can be a program name with args.
9671 set dummy X; ac_word=$2
9672 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9674 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9675 echo $ECHO_N "(cached) $ECHO_C" >&6
9677 if test -n "$HAVE_XSERVER"; then
9678 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9684 test -z "$as_dir" && as_dir=.
9685 for ac_exec_ext in '' $ac_executable_extensions; do
9686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9687 ac_cv_prog_HAVE_XSERVER="true"
9688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9695 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9698 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9699 if test -n "$HAVE_XSERVER"; then
9700 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9701 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9703 { echo "$as_me:$LINENO: result: no" >&5
9704 echo "${ECHO_T}no" >&6; }
9708 if test "$HAVE_XSERVER" = true ||
9709 test -n "$DISPLAY" ||
9710 test "`echo /usr
/lib
/libX11.
*`" != "/usr/lib/libX11.*"; then
9711 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9712 were found. You should install the relevant development files for X
9713 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9714 sure you have development files for image handling, i.e.
9715 tiff, gif, jpeg, png and xpm.
9716 If you are sure you want Emacs compiled without X window support, pass
9719 echo "$as_me: error: You seem to be running X, but no X development libraries
9720 were found. You should install the relevant development files for X
9721 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9722 sure you have development files for image handling, i.e.
9723 tiff, gif, jpeg, png and xpm.
9724 If you are sure you want Emacs compiled without X window support, pass
9726 to configure." >&2;}
9727 { (exit 1); exit 1; }; }
9731 ### If we're using X11, we should use the X menu package.
9734 yes ) HAVE_MENUS=yes ;;
9737 if test "${opsys}" = "hpux9"; then
9738 case "${x_libraries}" in
9740 opsysfile="s/hpux9-x11r4.h"
9745 if test "${opsys}" = "hpux9shr"; then
9746 case "${x_libraries}" in
9748 opsysfile="s/hpux9shxr4.h"
9753 ### Compute the unexec source name from the object name.
9754 UNEXEC_SRC="`echo ${unexec} |
sed 's/\.o/.c/'`"
9756 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9757 # Assume not, until told otherwise.
9760 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9761 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9762 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9763 echo $ECHO_N "(cached) $ECHO_C" >&6
9765 cat >conftest.$ac_ext <<_ACEOF
9768 cat confdefs.h >>conftest.$ac_ext
9769 cat >>conftest.$ac_ext <<_ACEOF
9770 /* end confdefs.h. */
9771 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9773 #define malloc_get_state innocuous_malloc_get_state
9775 /* System header to define __stub macros and hopefully few prototypes,
9776 which can conflict with char malloc_get_state (); below.
9777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9778 <limits.h> exists even on freestanding compilers. */
9781 # include <limits.h>
9783 # include <assert.h>
9786 #undef malloc_get_state
9788 /* Override any GCC internal prototype to avoid an error.
9789 Use char because int might match the return type of a GCC
9790 builtin and then its argument prototype would still apply. */
9794 char malloc_get_state ();
9795 /* The GNU C library defines this for functions which it implements
9796 to always fail with ENOSYS. Some functions are actually named
9797 something starting with __ and the normal name is an alias. */
9798 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9805 return malloc_get_state ();
9810 rm -f conftest.$ac_objext conftest$ac_exeext
9811 if { (ac_try="$ac_link"
9813 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9814 *) ac_try_echo
=$ac_try;;
9816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9817 (eval "$ac_link") 2>conftest.er1
9819 grep -v '^ *+' conftest.er1
>conftest.err
9821 cat conftest.err
>&5
9822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9823 (exit $ac_status); } && {
9824 test -z "$ac_c_werror_flag" ||
9825 test ! -s conftest.err
9826 } && test -s conftest
$ac_exeext &&
9827 $as_test_x conftest
$ac_exeext; then
9828 ac_cv_func_malloc_get_state
=yes
9830 echo "$as_me: failed program was:" >&5
9831 sed 's/^/| /' conftest.
$ac_ext >&5
9833 ac_cv_func_malloc_get_state
=no
9836 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9837 conftest
$ac_exeext conftest.
$ac_ext
9839 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9840 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9841 if test $ac_cv_func_malloc_get_state = yes; then
9847 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9848 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9849 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9850 echo $ECHO_N "(cached) $ECHO_C" >&6
9852 cat >conftest.
$ac_ext <<_ACEOF
9855 cat confdefs.h
>>conftest.
$ac_ext
9856 cat >>conftest.
$ac_ext <<_ACEOF
9857 /* end confdefs.h. */
9858 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9859 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9860 #define malloc_set_state innocuous_malloc_set_state
9862 /* System header to define __stub macros and hopefully few prototypes,
9863 which can conflict with char malloc_set_state (); below.
9864 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9865 <limits.h> exists even on freestanding compilers. */
9868 # include <limits.h>
9870 # include <assert.h>
9873 #undef malloc_set_state
9875 /* Override any GCC internal prototype to avoid an error.
9876 Use char because int might match the return type of a GCC
9877 builtin and then its argument prototype would still apply. */
9881 char malloc_set_state ();
9882 /* The GNU C library defines this for functions which it implements
9883 to always fail with ENOSYS. Some functions are actually named
9884 something starting with __ and the normal name is an alias. */
9885 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9892 return malloc_set_state ();
9897 rm -f conftest.
$ac_objext conftest
$ac_exeext
9898 if { (ac_try
="$ac_link"
9900 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9901 *) ac_try_echo=$ac_try;;
9903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9904 (eval "$ac_link") 2>conftest.er1
9906 grep -v '^ *+' conftest.er1 >conftest.err
9908 cat conftest.err >&5
9909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910 (exit $ac_status); } && {
9911 test -z "$ac_c_werror_flag" ||
9912 test ! -s conftest.err
9913 } && test -s conftest$ac_exeext &&
9914 $as_test_x conftest$ac_exeext; then
9915 ac_cv_func_malloc_set_state=yes
9917 echo "$as_me: failed program was:" >&5
9918 sed 's/^/| /' conftest.$ac_ext >&5
9920 ac_cv_func_malloc_set_state=no
9923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9924 conftest$ac_exeext conftest.$ac_ext
9926 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9927 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9928 if test $ac_cv_func_malloc_set_state = yes; then
9934 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9935 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9936 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9937 echo $ECHO_N "(cached) $ECHO_C" >&6
9939 cat >conftest.$ac_ext <<_ACEOF
9942 cat confdefs.h >>conftest.$ac_ext
9943 cat >>conftest.$ac_ext <<_ACEOF
9944 /* end confdefs.h. */
9945 extern void (* __after_morecore_hook)();
9949 __after_morecore_hook = 0
9954 rm -f conftest.$ac_objext conftest$ac_exeext
9955 if { (ac_try="$ac_link"
9957 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9958 *) ac_try_echo
=$ac_try;;
9960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9961 (eval "$ac_link") 2>conftest.er1
9963 grep -v '^ *+' conftest.er1
>conftest.err
9965 cat conftest.err
>&5
9966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9967 (exit $ac_status); } && {
9968 test -z "$ac_c_werror_flag" ||
9969 test ! -s conftest.err
9970 } && test -s conftest
$ac_exeext &&
9971 $as_test_x conftest
$ac_exeext; then
9972 emacs_cv_var___after_morecore_hook
=yes
9974 echo "$as_me: failed program was:" >&5
9975 sed 's/^/| /' conftest.
$ac_ext >&5
9977 emacs_cv_var___after_morecore_hook
=no
9980 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9981 conftest
$ac_exeext conftest.
$ac_ext
9983 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9984 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9985 if test $emacs_cv_var___after_morecore_hook = no
; then
9988 if test "${system_malloc}" = "yes"; then
9991 (The GNU allocators don't work with this system configuration.)"
9993 if test "$doug_lea_malloc" = "yes" ; then
9994 if test "$GNU_MALLOC" = yes ; then
9996 (Using Doug Lea's new malloc from the GNU C Library.)"
9999 cat >>confdefs.h
<<\_ACEOF
10000 #define DOUG_LEA_MALLOC 1
10005 if test x
"${REL_ALLOC}" = x
; then
10006 REL_ALLOC
=${GNU_MALLOC}
10012 for ac_header
in stdlib.h unistd.h
10014 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10015 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10016 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10017 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10018 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10019 echo $ECHO_N "(cached) $ECHO_C" >&6
10021 ac_res
=`eval echo '${'$as_ac_Header'}'`
10022 { echo "$as_me:$LINENO: result: $ac_res" >&5
10023 echo "${ECHO_T}$ac_res" >&6; }
10025 # Is the header compilable?
10026 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10027 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10028 cat >conftest.
$ac_ext <<_ACEOF
10031 cat confdefs.h
>>conftest.
$ac_ext
10032 cat >>conftest.
$ac_ext <<_ACEOF
10033 /* end confdefs.h. */
10034 $ac_includes_default
10035 #include <$ac_header>
10037 rm -f conftest.
$ac_objext
10038 if { (ac_try
="$ac_compile"
10039 case "(($ac_try" in
10040 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10041 *) ac_try_echo=$ac_try;;
10043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10044 (eval "$ac_compile") 2>conftest.er1
10046 grep -v '^ *+' conftest.er1 >conftest.err
10048 cat conftest.err >&5
10049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050 (exit $ac_status); } && {
10051 test -z "$ac_c_werror_flag" ||
10052 test ! -s conftest.err
10053 } && test -s conftest.$ac_objext; then
10054 ac_header_compiler=yes
10056 echo "$as_me: failed program was:" >&5
10057 sed 's/^/| /' conftest.$ac_ext >&5
10059 ac_header_compiler=no
10062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10063 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10064 echo "${ECHO_T}$ac_header_compiler" >&6; }
10066 # Is the header present?
10067 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10068 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10069 cat >conftest.$ac_ext <<_ACEOF
10072 cat confdefs.h >>conftest.$ac_ext
10073 cat >>conftest.$ac_ext <<_ACEOF
10074 /* end confdefs.h. */
10075 #include <$ac_header>
10077 if { (ac_try="$ac_cpp conftest.$ac_ext"
10078 case "(($ac_try" in
10079 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10080 *) ac_try_echo
=$ac_try;;
10082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10083 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10085 grep -v '^ *+' conftest.er1
>conftest.err
10087 cat conftest.err
>&5
10088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10089 (exit $ac_status); } >/dev
/null
&& {
10090 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10091 test ! -s conftest.err
10093 ac_header_preproc
=yes
10095 echo "$as_me: failed program was:" >&5
10096 sed 's/^/| /' conftest.
$ac_ext >&5
10098 ac_header_preproc
=no
10101 rm -f conftest.err conftest.
$ac_ext
10102 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10103 echo "${ECHO_T}$ac_header_preproc" >&6; }
10105 # So? What about this header?
10106 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10108 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10109 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10111 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10112 ac_header_preproc
=yes
10115 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10116 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10117 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10118 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10119 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10120 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10121 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10122 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10124 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10125 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10126 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10130 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10131 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10132 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10133 echo $ECHO_N "(cached) $ECHO_C" >&6
10135 eval "$as_ac_Header=\$ac_header_preproc"
10137 ac_res
=`eval echo '${'$as_ac_Header'}'`
10138 { echo "$as_me:$LINENO: result: $ac_res" >&5
10139 echo "${ECHO_T}$ac_res" >&6; }
10142 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10143 cat >>confdefs.h
<<_ACEOF
10144 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10152 for ac_func
in getpagesize
10154 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10155 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10156 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10157 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10158 echo $ECHO_N "(cached) $ECHO_C" >&6
10160 cat >conftest.
$ac_ext <<_ACEOF
10163 cat confdefs.h
>>conftest.
$ac_ext
10164 cat >>conftest.
$ac_ext <<_ACEOF
10165 /* end confdefs.h. */
10166 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10167 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10168 #define $ac_func innocuous_$ac_func
10170 /* System header to define __stub macros and hopefully few prototypes,
10171 which can conflict with char $ac_func (); below.
10172 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10173 <limits.h> exists even on freestanding compilers. */
10176 # include <limits.h>
10178 # include <assert.h>
10183 /* Override any GCC internal prototype to avoid an error.
10184 Use char because int might match the return type of a GCC
10185 builtin and then its argument prototype would still apply. */
10190 /* The GNU C library defines this for functions which it implements
10191 to always fail with ENOSYS. Some functions are actually named
10192 something starting with __ and the normal name is an alias. */
10193 #if defined __stub_$ac_func || defined __stub___$ac_func
10200 return $ac_func ();
10205 rm -f conftest.
$ac_objext conftest
$ac_exeext
10206 if { (ac_try
="$ac_link"
10207 case "(($ac_try" in
10208 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10209 *) ac_try_echo=$ac_try;;
10211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10212 (eval "$ac_link") 2>conftest.er1
10214 grep -v '^ *+' conftest.er1 >conftest.err
10216 cat conftest.err >&5
10217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218 (exit $ac_status); } && {
10219 test -z "$ac_c_werror_flag" ||
10220 test ! -s conftest.err
10221 } && test -s conftest$ac_exeext &&
10222 $as_test_x conftest$ac_exeext; then
10223 eval "$as_ac_var=yes"
10225 echo "$as_me: failed program was:" >&5
10226 sed 's/^/| /' conftest.$ac_ext >&5
10228 eval "$as_ac_var=no"
10231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10232 conftest$ac_exeext conftest.$ac_ext
10234 ac_res=`eval echo '${'$as_ac_var'}'`
10235 { echo "$as_me:$LINENO: result: $ac_res" >&5
10236 echo "${ECHO_T}$ac_res" >&6; }
10237 if test `eval echo '${'$as_ac_var'}'` = yes; then
10238 cat >>confdefs.h <<_ACEOF
10239 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10245 { echo "$as_me:$LINENO: checking for working mmap" >&5
10246 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10247 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10248 echo $ECHO_N "(cached) $ECHO_C" >&6
10250 if test "$cross_compiling" = yes; then
10251 ac_cv_func_mmap_fixed_mapped=no
10253 cat >conftest.$ac_ext <<_ACEOF
10256 cat confdefs.h >>conftest.$ac_ext
10257 cat >>conftest.$ac_ext <<_ACEOF
10258 /* end confdefs.h. */
10259 $ac_includes_default
10260 /* malloc might have been renamed as rpl_malloc. */
10263 /* Thanks to Mike Haertel and Jim Avera for this test.
10264 Here is a matrix of mmap possibilities:
10265 mmap private not fixed
10266 mmap private fixed at somewhere currently unmapped
10267 mmap private fixed at somewhere already mapped
10268 mmap shared not fixed
10269 mmap shared fixed at somewhere currently unmapped
10270 mmap shared fixed at somewhere already mapped
10271 For private mappings, we should verify that changes cannot be read()
10272 back from the file, nor mmap's back from the file at a different
10273 address. (There have been systems where private was not correctly
10274 implemented like the infamous i386 svr4.0, and systems where the
10275 VM page cache was not coherent with the file system buffer cache
10276 like early versions of FreeBSD and possibly contemporary NetBSD.)
10277 For shared mappings, we should conversely verify that changes get
10278 propagated back to all the places they're supposed to be.
10280 Grep wants private fixed already mapped.
10281 The main things grep needs to know about mmap are:
10282 * does it exist and is it safe to write into the mmap'd area
10283 * how to use it (BSD variants) */
10286 #include <sys/mman.h>
10288 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10292 /* This mess was copied from the GNU getpagesize.h. */
10293 #ifndef HAVE_GETPAGESIZE
10294 /* Assume that all systems that can run configure have sys/param.h. */
10295 # ifndef HAVE_SYS_PARAM_H
10296 # define HAVE_SYS_PARAM_H 1
10299 # ifdef _SC_PAGESIZE
10300 # define getpagesize() sysconf(_SC_PAGESIZE)
10301 # else /* no _SC_PAGESIZE */
10302 # ifdef HAVE_SYS_PARAM_H
10303 # include <sys/param.h>
10304 # ifdef EXEC_PAGESIZE
10305 # define getpagesize() EXEC_PAGESIZE
10306 # else /* no EXEC_PAGESIZE */
10308 # define getpagesize() NBPG * CLSIZE
10311 # endif /* no CLSIZE */
10312 # else /* no NBPG */
10314 # define getpagesize() NBPC
10315 # else /* no NBPC */
10317 # define getpagesize() PAGESIZE
10318 # endif /* PAGESIZE */
10319 # endif /* no NBPC */
10320 # endif /* no NBPG */
10321 # endif /* no EXEC_PAGESIZE */
10322 # else /* no HAVE_SYS_PARAM_H */
10323 # define getpagesize() 8192 /* punt totally */
10324 # endif /* no HAVE_SYS_PARAM_H */
10325 # endif /* no _SC_PAGESIZE */
10327 #endif /* no HAVE_GETPAGESIZE */
10332 char *data, *data2, *data3;
10336 pagesize = getpagesize ();
10338 /* First, make a file with some known garbage in it. */
10339 data = (char *) malloc (pagesize);
10342 for (i = 0; i < pagesize; ++i)
10343 *(data + i) = rand ();
10345 fd = creat ("conftest.mmap", 0600);
10348 if (write (fd, data, pagesize) != pagesize)
10352 /* Next, try to mmap the file at a fixed address which already has
10353 something else allocated at it. If we can, also make sure that
10354 we see the same garbage. */
10355 fd = open ("conftest.mmap", O_RDWR);
10358 data2 = (char *) malloc (2 * pagesize);
10361 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10362 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10363 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10365 for (i = 0; i < pagesize; ++i)
10366 if (*(data + i) != *(data2 + i))
10369 /* Finally, make sure that changes to the mapped area do not
10370 percolate back to the file as seen by read(). (This is a bug on
10371 some variants of i386 svr4.0.) */
10372 for (i = 0; i < pagesize; ++i)
10373 *(data2 + i) = *(data2 + i) + 1;
10374 data3 = (char *) malloc (pagesize);
10377 if (read (fd, data3, pagesize) != pagesize)
10379 for (i = 0; i < pagesize; ++i)
10380 if (*(data + i) != *(data3 + i))
10386 rm -f conftest$ac_exeext
10387 if { (ac_try="$ac_link"
10388 case "(($ac_try" in
10389 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10390 *) ac_try_echo
=$ac_try;;
10392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10393 (eval "$ac_link") 2>&5
10395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10397 { (case "(($ac_try" in
10398 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10399 *) ac_try_echo=$ac_try;;
10401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10402 (eval "$ac_try") 2>&5
10404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10405 (exit $ac_status); }; }; then
10406 ac_cv_func_mmap_fixed_mapped=yes
10408 echo "$as_me: program exited with status $ac_status" >&5
10409 echo "$as_me: failed program was:" >&5
10410 sed 's/^/| /' conftest.$ac_ext >&5
10412 ( exit $ac_status )
10413 ac_cv_func_mmap_fixed_mapped=no
10415 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10420 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10421 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10422 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10424 cat >>confdefs.h <<\_ACEOF
10425 #define HAVE_MMAP 1
10429 rm -f conftest.mmap
10431 if test $use_mmap_for_buffers = yes; then
10435 LIBS="$libsrc_libs $LIBS"
10438 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10439 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10440 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10441 echo $ECHO_N "(cached) $ECHO_C" >&6
10443 ac_check_lib_save_LIBS=$LIBS
10444 LIBS="-ldnet $LIBS"
10445 cat >conftest.$ac_ext <<_ACEOF
10448 cat confdefs.h >>conftest.$ac_ext
10449 cat >>conftest.$ac_ext <<_ACEOF
10450 /* end confdefs.h. */
10452 /* Override any GCC internal prototype to avoid an error.
10453 Use char because int might match the return type of a GCC
10454 builtin and then its argument prototype would still apply. */
10462 return dnet_ntoa ();
10467 rm -f conftest.$ac_objext conftest$ac_exeext
10468 if { (ac_try="$ac_link"
10469 case "(($ac_try" in
10470 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10471 *) ac_try_echo
=$ac_try;;
10473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10474 (eval "$ac_link") 2>conftest.er1
10476 grep -v '^ *+' conftest.er1
>conftest.err
10478 cat conftest.err
>&5
10479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480 (exit $ac_status); } && {
10481 test -z "$ac_c_werror_flag" ||
10482 test ! -s conftest.err
10483 } && test -s conftest
$ac_exeext &&
10484 $as_test_x conftest
$ac_exeext; then
10485 ac_cv_lib_dnet_dnet_ntoa
=yes
10487 echo "$as_me: failed program was:" >&5
10488 sed 's/^/| /' conftest.
$ac_ext >&5
10490 ac_cv_lib_dnet_dnet_ntoa
=no
10493 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10494 conftest
$ac_exeext conftest.
$ac_ext
10495 LIBS
=$ac_check_lib_save_LIBS
10497 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10498 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10499 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10500 cat >>confdefs.h
<<_ACEOF
10501 #define HAVE_LIBDNET 1
10504 LIBS
="-ldnet $LIBS"
10509 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10510 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10511 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10512 echo $ECHO_N "(cached) $ECHO_C" >&6
10514 ac_check_lib_save_LIBS
=$LIBS
10515 LIBS
="-lXbsd $LIBS"
10516 cat >conftest.
$ac_ext <<_ACEOF
10519 cat confdefs.h
>>conftest.
$ac_ext
10520 cat >>conftest.
$ac_ext <<_ACEOF
10521 /* end confdefs.h. */
10532 rm -f conftest.
$ac_objext conftest
$ac_exeext
10533 if { (ac_try
="$ac_link"
10534 case "(($ac_try" in
10535 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10536 *) ac_try_echo=$ac_try;;
10538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10539 (eval "$ac_link") 2>conftest.er1
10541 grep -v '^ *+' conftest.er1 >conftest.err
10543 cat conftest.err >&5
10544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545 (exit $ac_status); } && {
10546 test -z "$ac_c_werror_flag" ||
10547 test ! -s conftest.err
10548 } && test -s conftest$ac_exeext &&
10549 $as_test_x conftest$ac_exeext; then
10550 ac_cv_lib_Xbsd_main=yes
10552 echo "$as_me: failed program was:" >&5
10553 sed 's/^/| /' conftest.$ac_ext >&5
10555 ac_cv_lib_Xbsd_main=no
10558 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10559 conftest$ac_exeext conftest.$ac_ext
10560 LIBS=$ac_check_lib_save_LIBS
10562 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10563 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10564 if test $ac_cv_lib_Xbsd_main = yes; then
10565 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10570 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10571 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10572 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10573 echo $ECHO_N "(cached) $ECHO_C" >&6
10575 ac_check_lib_save_LIBS=$LIBS
10576 LIBS="-lpthreads $LIBS"
10577 cat >conftest.$ac_ext <<_ACEOF
10580 cat confdefs.h >>conftest.$ac_ext
10581 cat >>conftest.$ac_ext <<_ACEOF
10582 /* end confdefs.h. */
10584 /* Override any GCC internal prototype to avoid an error.
10585 Use char because int might match the return type of a GCC
10586 builtin and then its argument prototype would still apply. */
10594 return cma_open ();
10599 rm -f conftest.$ac_objext conftest$ac_exeext
10600 if { (ac_try="$ac_link"
10601 case "(($ac_try" in
10602 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10603 *) ac_try_echo
=$ac_try;;
10605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10606 (eval "$ac_link") 2>conftest.er1
10608 grep -v '^ *+' conftest.er1
>conftest.err
10610 cat conftest.err
>&5
10611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10612 (exit $ac_status); } && {
10613 test -z "$ac_c_werror_flag" ||
10614 test ! -s conftest.err
10615 } && test -s conftest
$ac_exeext &&
10616 $as_test_x conftest
$ac_exeext; then
10617 ac_cv_lib_pthreads_cma_open
=yes
10619 echo "$as_me: failed program was:" >&5
10620 sed 's/^/| /' conftest.
$ac_ext >&5
10622 ac_cv_lib_pthreads_cma_open
=no
10625 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10626 conftest
$ac_exeext conftest.
$ac_ext
10627 LIBS
=$ac_check_lib_save_LIBS
10629 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10630 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10631 if test $ac_cv_lib_pthreads_cma_open = yes; then
10632 cat >>confdefs.h
<<_ACEOF
10633 #define HAVE_LIBPTHREADS 1
10636 LIBS
="-lpthreads $LIBS"
10641 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10642 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10643 if test -d /usr
/X386
/include
; then
10645 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10649 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10650 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10655 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10656 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10657 if test "${gdb_cv_bigtoc+set}" = set; then
10658 echo $ECHO_N "(cached) $ECHO_C" >&6
10662 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10663 *) gdb_cv_bigtoc
=-bbigtoc ;;
10666 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10667 cat >conftest.
$ac_ext <<_ACEOF
10670 cat confdefs.h
>>conftest.
$ac_ext
10671 cat >>conftest.
$ac_ext <<_ACEOF
10672 /* end confdefs.h. */
10682 rm -f conftest.
$ac_objext conftest
$ac_exeext
10683 if { (ac_try
="$ac_link"
10684 case "(($ac_try" in
10685 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10686 *) ac_try_echo=$ac_try;;
10688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10689 (eval "$ac_link") 2>conftest.er1
10691 grep -v '^ *+' conftest.er1 >conftest.err
10693 cat conftest.err >&5
10694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10695 (exit $ac_status); } && {
10696 test -z "$ac_c_werror_flag" ||
10697 test ! -s conftest.err
10698 } && test -s conftest$ac_exeext &&
10699 $as_test_x conftest$ac_exeext; then
10702 echo "$as_me: failed program was:" >&5
10703 sed 's/^/| /' conftest.$ac_ext >&5
10708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10709 conftest$ac_exeext conftest.$ac_ext
10712 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10713 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10717 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10718 # used for the tests that follow. We set them back to REAL_CFLAGS and
10719 # REAL_CPPFLAGS later on.
10721 REAL_CPPFLAGS="$CPPFLAGS"
10723 if test "${HAVE_X11}" = "yes"; then
10724 DEFS="$C_SWITCH_X_SITE $DEFS"
10725 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10727 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10728 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10730 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10731 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10732 # but it's more convenient here to set LD_RUN_PATH
10733 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10734 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10735 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10739 if test "${opsys}" = "gnu-linux"; then
10740 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10741 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10742 cat >conftest.$ac_ext <<_ACEOF
10745 cat confdefs.h >>conftest.$ac_ext
10746 cat >>conftest.$ac_ext <<_ACEOF
10747 /* end confdefs.h. */
10752 XOpenDisplay ("foo");
10757 rm -f conftest.$ac_objext conftest$ac_exeext
10758 if { (ac_try="$ac_link"
10759 case "(($ac_try" in
10760 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10761 *) ac_try_echo
=$ac_try;;
10763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10764 (eval "$ac_link") 2>conftest.er1
10766 grep -v '^ *+' conftest.er1
>conftest.err
10768 cat conftest.err
>&5
10769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10770 (exit $ac_status); } && {
10771 test -z "$ac_c_werror_flag" ||
10772 test ! -s conftest.err
10773 } && test -s conftest
$ac_exeext &&
10774 $as_test_x conftest
$ac_exeext; then
10775 xlinux_first_failure
=no
10777 echo "$as_me: failed program was:" >&5
10778 sed 's/^/| /' conftest.
$ac_ext >&5
10780 xlinux_first_failure
=yes
10783 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10784 conftest
$ac_exeext conftest.
$ac_ext
10785 if test "${xlinux_first_failure}" = "yes"; then
10786 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10787 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10788 OLD_CPPFLAGS
="$CPPFLAGS"
10790 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10791 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10792 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10793 LIBS
="$LIBS -b i486-linuxaout"
10794 cat >conftest.
$ac_ext <<_ACEOF
10797 cat confdefs.h
>>conftest.
$ac_ext
10798 cat >>conftest.
$ac_ext <<_ACEOF
10799 /* end confdefs.h. */
10804 XOpenDisplay ("foo");
10809 rm -f conftest.
$ac_objext conftest
$ac_exeext
10810 if { (ac_try
="$ac_link"
10811 case "(($ac_try" in
10812 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10813 *) ac_try_echo=$ac_try;;
10815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10816 (eval "$ac_link") 2>conftest.er1
10818 grep -v '^ *+' conftest.er1 >conftest.err
10820 cat conftest.err >&5
10821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822 (exit $ac_status); } && {
10823 test -z "$ac_c_werror_flag" ||
10824 test ! -s conftest.err
10825 } && test -s conftest$ac_exeext &&
10826 $as_test_x conftest$ac_exeext; then
10827 xlinux_second_failure=no
10829 echo "$as_me: failed program was:" >&5
10830 sed 's/^/| /' conftest.$ac_ext >&5
10832 xlinux_second_failure=yes
10835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10836 conftest$ac_exeext conftest.$ac_ext
10837 if test "${xlinux_second_failure}" = "yes"; then
10838 # If we get the same failure with -b, there is no use adding -b.
10839 # So take it out. This plays safe.
10840 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10841 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10842 CPPFLAGS="$OLD_CPPFLAGS"
10844 { echo "$as_me:$LINENO: result: no" >&5
10845 echo "${ECHO_T}no" >&6; }
10847 { echo "$as_me:$LINENO: result: yes" >&5
10848 echo "${ECHO_T}yes" >&6; }
10851 { echo "$as_me:$LINENO: result: no" >&5
10852 echo "${ECHO_T}no" >&6; }
10856 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10857 # header files included from there.
10858 { echo "$as_me:$LINENO: checking for Xkb" >&5
10859 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10860 cat >conftest.$ac_ext <<_ACEOF
10863 cat confdefs.h >>conftest.$ac_ext
10864 cat >>conftest.$ac_ext <<_ACEOF
10865 /* end confdefs.h. */
10866 #include <X11/Xlib.h>
10867 #include <X11/XKBlib.h>
10871 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10876 rm -f conftest.$ac_objext conftest$ac_exeext
10877 if { (ac_try="$ac_link"
10878 case "(($ac_try" in
10879 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10880 *) ac_try_echo
=$ac_try;;
10882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10883 (eval "$ac_link") 2>conftest.er1
10885 grep -v '^ *+' conftest.er1
>conftest.err
10887 cat conftest.err
>&5
10888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10889 (exit $ac_status); } && {
10890 test -z "$ac_c_werror_flag" ||
10891 test ! -s conftest.err
10892 } && test -s conftest
$ac_exeext &&
10893 $as_test_x conftest
$ac_exeext; then
10896 echo "$as_me: failed program was:" >&5
10897 sed 's/^/| /' conftest.
$ac_ext >&5
10902 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10903 conftest
$ac_exeext conftest.
$ac_ext
10904 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10905 echo "${ECHO_T}$emacs_xkb" >&6; }
10906 if test $emacs_xkb = yes; then
10908 cat >>confdefs.h
<<\_ACEOF
10909 #define HAVE_XKBGETKEYBOARD 1
10918 for ac_func
in XrmSetDatabase XScreenResourceString \
10919 XScreenNumberOfScreen XSetWMProtocols
10921 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10922 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10923 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10924 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10925 echo $ECHO_N "(cached) $ECHO_C" >&6
10927 cat >conftest.
$ac_ext <<_ACEOF
10930 cat confdefs.h
>>conftest.
$ac_ext
10931 cat >>conftest.
$ac_ext <<_ACEOF
10932 /* end confdefs.h. */
10933 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10934 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10935 #define $ac_func innocuous_$ac_func
10937 /* System header to define __stub macros and hopefully few prototypes,
10938 which can conflict with char $ac_func (); below.
10939 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10940 <limits.h> exists even on freestanding compilers. */
10943 # include <limits.h>
10945 # include <assert.h>
10950 /* Override any GCC internal prototype to avoid an error.
10951 Use char because int might match the return type of a GCC
10952 builtin and then its argument prototype would still apply. */
10957 /* The GNU C library defines this for functions which it implements
10958 to always fail with ENOSYS. Some functions are actually named
10959 something starting with __ and the normal name is an alias. */
10960 #if defined __stub_$ac_func || defined __stub___$ac_func
10967 return $ac_func ();
10972 rm -f conftest.
$ac_objext conftest
$ac_exeext
10973 if { (ac_try
="$ac_link"
10974 case "(($ac_try" in
10975 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10976 *) ac_try_echo=$ac_try;;
10978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10979 (eval "$ac_link") 2>conftest.er1
10981 grep -v '^ *+' conftest.er1 >conftest.err
10983 cat conftest.err >&5
10984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10985 (exit $ac_status); } && {
10986 test -z "$ac_c_werror_flag" ||
10987 test ! -s conftest.err
10988 } && test -s conftest$ac_exeext &&
10989 $as_test_x conftest$ac_exeext; then
10990 eval "$as_ac_var=yes"
10992 echo "$as_me: failed program was:" >&5
10993 sed 's/^/| /' conftest.$ac_ext >&5
10995 eval "$as_ac_var=no"
10998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10999 conftest$ac_exeext conftest.$ac_ext
11001 ac_res=`eval echo '${'$as_ac_var'}'`
11002 { echo "$as_me:$LINENO: result: $ac_res" >&5
11003 echo "${ECHO_T}$ac_res" >&6; }
11004 if test `eval echo '${'$as_ac_var'}'` = yes; then
11005 cat >>confdefs.h <<_ACEOF
11006 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11014 if test "${window_system}" = "x11"; then
11015 { echo "$as_me:$LINENO: checking X11 version 6" >&5
11016 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
11017 if test "${emacs_cv_x11_version_6+set}" = set; then
11018 echo $ECHO_N "(cached) $ECHO_C" >&6
11020 cat >conftest.$ac_ext <<_ACEOF
11023 cat confdefs.h >>conftest.$ac_ext
11024 cat >>conftest.$ac_ext <<_ACEOF
11025 /* end confdefs.h. */
11026 #include <X11/Xlib.h>
11030 #if XlibSpecificationRelease < 6
11038 rm -f conftest.$ac_objext conftest$ac_exeext
11039 if { (ac_try="$ac_link"
11040 case "(($ac_try" in
11041 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11042 *) ac_try_echo
=$ac_try;;
11044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11045 (eval "$ac_link") 2>conftest.er1
11047 grep -v '^ *+' conftest.er1
>conftest.err
11049 cat conftest.err
>&5
11050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051 (exit $ac_status); } && {
11052 test -z "$ac_c_werror_flag" ||
11053 test ! -s conftest.err
11054 } && test -s conftest
$ac_exeext &&
11055 $as_test_x conftest
$ac_exeext; then
11056 emacs_cv_x11_version_6
=yes
11058 echo "$as_me: failed program was:" >&5
11059 sed 's/^/| /' conftest.
$ac_ext >&5
11061 emacs_cv_x11_version_6
=no
11064 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11065 conftest
$ac_exeext conftest.
$ac_ext
11068 if test $emacs_cv_x11_version_6 = yes; then
11069 { echo "$as_me:$LINENO: result: 6 or newer" >&5
11070 echo "${ECHO_T}6 or newer" >&6; }
11072 cat >>confdefs.h
<<\_ACEOF
11073 #define HAVE_X11R6 1
11077 { echo "$as_me:$LINENO: result: before 6" >&5
11078 echo "${ECHO_T}before 6" >&6; }
11082 if test "${window_system}" = "x11"; then
11083 { echo "$as_me:$LINENO: checking X11 version 5" >&5
11084 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6; }
11085 if test "${emacs_cv_x11_version_5+set}" = set; then
11086 echo $ECHO_N "(cached) $ECHO_C" >&6
11088 cat >conftest.
$ac_ext <<_ACEOF
11091 cat confdefs.h
>>conftest.
$ac_ext
11092 cat >>conftest.
$ac_ext <<_ACEOF
11093 /* end confdefs.h. */
11094 #include <X11/Xlib.h>
11098 #if XlibSpecificationRelease < 5
11106 rm -f conftest.
$ac_objext conftest
$ac_exeext
11107 if { (ac_try
="$ac_link"
11108 case "(($ac_try" in
11109 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11110 *) ac_try_echo=$ac_try;;
11112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11113 (eval "$ac_link") 2>conftest.er1
11115 grep -v '^ *+' conftest.er1 >conftest.err
11117 cat conftest.err >&5
11118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11119 (exit $ac_status); } && {
11120 test -z "$ac_c_werror_flag" ||
11121 test ! -s conftest.err
11122 } && test -s conftest$ac_exeext &&
11123 $as_test_x conftest$ac_exeext; then
11124 emacs_cv_x11_version_5=yes
11126 echo "$as_me: failed program was:" >&5
11127 sed 's/^/| /' conftest.$ac_ext >&5
11129 emacs_cv_x11_version_5=no
11132 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11133 conftest$ac_exeext conftest.$ac_ext
11136 if test $emacs_cv_x11_version_5 = yes; then
11137 { echo "$as_me:$LINENO: result: 5 or newer" >&5
11138 echo "${ECHO_T}5 or newer" >&6; }
11141 cat >>confdefs.h <<\_ACEOF
11142 #define HAVE_X11R5 1
11147 { echo "$as_me:$LINENO: result: before 5" >&5
11148 echo "${ECHO_T}before 5" >&6; }
11152 ### Use -lrsvg-2 if available, unless `--with-rsvg=no
' is specified.
11154 if test "${HAVE_X11}" = "yes" || test "${HAVE_CARBON}" = "yes"; then
11155 if test "${with_rsvg}" != "no"; then
11156 if test "X${with_pkg_config_prog}" != X; then
11157 PKG_CONFIG="${with_pkg_config_prog}"
11160 RSVG_REQUIRED=2.0.0
11161 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
11166 if test -z "$PKG_CONFIG"; then
11167 # Extract the first word of "pkg-config", so it can be a program name with args.
11168 set dummy pkg-config; ac_word=$2
11169 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11171 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11172 echo $ECHO_N "(cached) $ECHO_C" >&6
11174 case $PKG_CONFIG in
11176 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11180 for as_dir in $PATH
11183 test -z "$as_dir" && as_dir=.
11184 for ac_exec_ext in '' $ac_executable_extensions; do
11185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11186 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11194 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11198 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11199 if test -n "$PKG_CONFIG"; then
11200 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11201 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11203 { echo "$as_me:$LINENO: result: no" >&5
11204 echo "${ECHO_T}no" >&6; }
11210 if test "$PKG_CONFIG" = "no" ; then
11213 PKG_CONFIG_MIN_VERSION=0.9.0
11214 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11215 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
11216 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
11218 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11219 { echo "$as_me:$LINENO: result: yes" >&5
11220 echo "${ECHO_T}yes" >&6; }
11223 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
11224 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
11225 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's
,///*,/,g
'`
11226 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
11227 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
11229 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
11230 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
11231 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's
,///*,/,g
'`
11232 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
11233 echo "${ECHO_T}$RSVG_LIBS" >&6; }
11235 { echo "$as_me:$LINENO: result: no" >&5
11236 echo "${ECHO_T}no" >&6; }
11239 ## If we have a custom action on failure, don't print errors
, but
11240 ## do set a variable so people can do so.
11241 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11248 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11249 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11253 if test $succeeded = yes; then
11262 if test ".${RSVG_CFLAGS}" != "."; then
11265 cat >>confdefs.h
<<\_ACEOF
11266 #define HAVE_RSVG 1
11269 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
11270 LIBS
="$RSVG_LIBS $LIBS"
11277 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
11280 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "gtk" || \
11281 test "$USE_X_TOOLKIT" = "maybe"; then
11282 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
11283 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
11284 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
11285 { (exit 1); exit 1; }; };
11289 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11291 if test "X${with_pkg_config_prog}" != X
; then
11292 PKG_CONFIG
="${with_pkg_config_prog}"
11297 if test -z "$PKG_CONFIG"; then
11298 # Extract the first word of "pkg-config", so it can be a program name with args.
11299 set dummy pkg-config
; ac_word
=$2
11300 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11302 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11303 echo $ECHO_N "(cached) $ECHO_C" >&6
11305 case $PKG_CONFIG in
11307 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11310 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11311 for as_dir
in $PATH
11314 test -z "$as_dir" && as_dir
=.
11315 for ac_exec_ext
in '' $ac_executable_extensions; do
11316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11317 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11325 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11329 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11330 if test -n "$PKG_CONFIG"; then
11331 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11332 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11334 { echo "$as_me:$LINENO: result: no" >&5
11335 echo "${ECHO_T}no" >&6; }
11341 if test "$PKG_CONFIG" = "no" ; then
11344 PKG_CONFIG_MIN_VERSION
=0.9.0
11345 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11346 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11347 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
11349 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11350 { echo "$as_me:$LINENO: result: yes" >&5
11351 echo "${ECHO_T}yes" >&6; }
11354 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11355 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
11356 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11357 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11358 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11360 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11361 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11362 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11363 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11364 echo "${ECHO_T}$GTK_LIBS" >&6; }
11366 { echo "$as_me:$LINENO: result: no" >&5
11367 echo "${ECHO_T}no" >&6; }
11370 ## If we have a custom action on failure, don't print errors, but
11371 ## do set a variable so people can do so.
11372 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11379 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11380 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11384 if test $succeeded = yes; then
11390 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11391 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11392 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11393 { (exit 1); exit 1; }; }
11398 if test x
"$pkg_check_gtk" = xyes
; then
11402 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
11403 CFLAGS
="$CFLAGS $GTK_CFLAGS"
11404 LIBS
="$GTK_LIBS $LIBS"
11407 for ac_func
in gtk_main
11409 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11410 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11411 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11412 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11413 echo $ECHO_N "(cached) $ECHO_C" >&6
11415 cat >conftest.
$ac_ext <<_ACEOF
11418 cat confdefs.h
>>conftest.
$ac_ext
11419 cat >>conftest.
$ac_ext <<_ACEOF
11420 /* end confdefs.h. */
11421 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11422 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11423 #define $ac_func innocuous_$ac_func
11425 /* System header to define __stub macros and hopefully few prototypes,
11426 which can conflict with char $ac_func (); below.
11427 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11428 <limits.h> exists even on freestanding compilers. */
11431 # include <limits.h>
11433 # include <assert.h>
11438 /* Override any GCC internal prototype to avoid an error.
11439 Use char because int might match the return type of a GCC
11440 builtin and then its argument prototype would still apply. */
11445 /* The GNU C library defines this for functions which it implements
11446 to always fail with ENOSYS. Some functions are actually named
11447 something starting with __ and the normal name is an alias. */
11448 #if defined __stub_$ac_func || defined __stub___$ac_func
11455 return $ac_func ();
11460 rm -f conftest.
$ac_objext conftest
$ac_exeext
11461 if { (ac_try
="$ac_link"
11462 case "(($ac_try" in
11463 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11464 *) ac_try_echo=$ac_try;;
11466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11467 (eval "$ac_link") 2>conftest.er1
11469 grep -v '^ *+' conftest.er1 >conftest.err
11471 cat conftest.err >&5
11472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473 (exit $ac_status); } && {
11474 test -z "$ac_c_werror_flag" ||
11475 test ! -s conftest.err
11476 } && test -s conftest$ac_exeext &&
11477 $as_test_x conftest$ac_exeext; then
11478 eval "$as_ac_var=yes"
11480 echo "$as_me: failed program was:" >&5
11481 sed 's/^/| /' conftest.$ac_ext >&5
11483 eval "$as_ac_var=no"
11486 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11487 conftest$ac_exeext conftest.$ac_ext
11489 ac_res=`eval echo '${'$as_ac_var'}'`
11490 { echo "$as_me:$LINENO: result: $ac_res" >&5
11491 echo "${ECHO_T}$ac_res" >&6; }
11492 if test `eval echo '${'$as_ac_var'}'` = yes; then
11493 cat >>confdefs.h <<_ACEOF
11494 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11500 if test "${GTK_COMPILES}" != "yes"; then
11501 if test "$USE_X_TOOLKIT" != "maybe"; then
11502 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11503 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11504 { (exit 1); exit 1; }; };
11509 cat >>confdefs.h <<\_ACEOF
11519 if test "${HAVE_GTK}" = "yes"; then
11521 if test "$with_toolkit_scroll_bars" != no; then
11522 with_toolkit_scroll_bars=yes
11525 HAVE_GTK_MULTIDISPLAY=no
11527 for ac_func in gdk_display_open
11529 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11530 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11531 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11532 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11533 echo $ECHO_N "(cached) $ECHO_C" >&6
11535 cat >conftest.$ac_ext <<_ACEOF
11538 cat confdefs.h >>conftest.$ac_ext
11539 cat >>conftest.$ac_ext <<_ACEOF
11540 /* end confdefs.h. */
11541 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11542 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11543 #define $ac_func innocuous_$ac_func
11545 /* System header to define __stub macros and hopefully few prototypes,
11546 which can conflict with char $ac_func (); below.
11547 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11548 <limits.h> exists even on freestanding compilers. */
11551 # include <limits.h>
11553 # include <assert.h>
11558 /* Override any GCC internal prototype to avoid an error.
11559 Use char because int might match the return type of a GCC
11560 builtin and then its argument prototype would still apply. */
11565 /* The GNU C library defines this for functions which it implements
11566 to always fail with ENOSYS. Some functions are actually named
11567 something starting with __ and the normal name is an alias. */
11568 #if defined __stub_$ac_func || defined __stub___$ac_func
11575 return $ac_func ();
11580 rm -f conftest.$ac_objext conftest$ac_exeext
11581 if { (ac_try="$ac_link"
11582 case "(($ac_try" in
11583 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11584 *) ac_try_echo
=$ac_try;;
11586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11587 (eval "$ac_link") 2>conftest.er1
11589 grep -v '^ *+' conftest.er1
>conftest.err
11591 cat conftest.err
>&5
11592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11593 (exit $ac_status); } && {
11594 test -z "$ac_c_werror_flag" ||
11595 test ! -s conftest.err
11596 } && test -s conftest
$ac_exeext &&
11597 $as_test_x conftest
$ac_exeext; then
11598 eval "$as_ac_var=yes"
11600 echo "$as_me: failed program was:" >&5
11601 sed 's/^/| /' conftest.
$ac_ext >&5
11603 eval "$as_ac_var=no"
11606 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11607 conftest
$ac_exeext conftest.
$ac_ext
11609 ac_res
=`eval echo '${'$as_ac_var'}'`
11610 { echo "$as_me:$LINENO: result: $ac_res" >&5
11611 echo "${ECHO_T}$ac_res" >&6; }
11612 if test `eval echo '${'$as_ac_var'}'` = yes; then
11613 cat >>confdefs.h
<<_ACEOF
11614 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11616 HAVE_GTK_MULTIDISPLAY
=yes
11620 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11622 cat >>confdefs.h
<<\_ACEOF
11623 #define HAVE_GTK_MULTIDISPLAY 1
11628 HAVE_GTK_FILE_SELECTION
=no
11630 for ac_func
in gtk_file_selection_new
11632 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11633 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11634 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11635 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11636 echo $ECHO_N "(cached) $ECHO_C" >&6
11638 cat >conftest.
$ac_ext <<_ACEOF
11641 cat confdefs.h
>>conftest.
$ac_ext
11642 cat >>conftest.
$ac_ext <<_ACEOF
11643 /* end confdefs.h. */
11644 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11645 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11646 #define $ac_func innocuous_$ac_func
11648 /* System header to define __stub macros and hopefully few prototypes,
11649 which can conflict with char $ac_func (); below.
11650 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11651 <limits.h> exists even on freestanding compilers. */
11654 # include <limits.h>
11656 # include <assert.h>
11661 /* Override any GCC internal prototype to avoid an error.
11662 Use char because int might match the return type of a GCC
11663 builtin and then its argument prototype would still apply. */
11668 /* The GNU C library defines this for functions which it implements
11669 to always fail with ENOSYS. Some functions are actually named
11670 something starting with __ and the normal name is an alias. */
11671 #if defined __stub_$ac_func || defined __stub___$ac_func
11678 return $ac_func ();
11683 rm -f conftest.
$ac_objext conftest
$ac_exeext
11684 if { (ac_try
="$ac_link"
11685 case "(($ac_try" in
11686 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11687 *) ac_try_echo=$ac_try;;
11689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11690 (eval "$ac_link") 2>conftest.er1
11692 grep -v '^ *+' conftest.er1 >conftest.err
11694 cat conftest.err >&5
11695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11696 (exit $ac_status); } && {
11697 test -z "$ac_c_werror_flag" ||
11698 test ! -s conftest.err
11699 } && test -s conftest$ac_exeext &&
11700 $as_test_x conftest$ac_exeext; then
11701 eval "$as_ac_var=yes"
11703 echo "$as_me: failed program was:" >&5
11704 sed 's/^/| /' conftest.$ac_ext >&5
11706 eval "$as_ac_var=no"
11709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11710 conftest$ac_exeext conftest.$ac_ext
11712 ac_res=`eval echo '${'$as_ac_var'}'`
11713 { echo "$as_me:$LINENO: result: $ac_res" >&5
11714 echo "${ECHO_T}$ac_res" >&6; }
11715 if test `eval echo '${'$as_ac_var'}'` = yes; then
11716 cat >>confdefs.h <<_ACEOF
11717 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11719 HAVE_GTK_FILE_SELECTION=yes
11724 HAVE_GTK_FILE_CHOOSER=no
11726 for ac_func in gtk_file_chooser_dialog_new
11728 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11729 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11730 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11731 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11732 echo $ECHO_N "(cached) $ECHO_C" >&6
11734 cat >conftest.$ac_ext <<_ACEOF
11737 cat confdefs.h >>conftest.$ac_ext
11738 cat >>conftest.$ac_ext <<_ACEOF
11739 /* end confdefs.h. */
11740 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11741 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11742 #define $ac_func innocuous_$ac_func
11744 /* System header to define __stub macros and hopefully few prototypes,
11745 which can conflict with char $ac_func (); below.
11746 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11747 <limits.h> exists even on freestanding compilers. */
11750 # include <limits.h>
11752 # include <assert.h>
11757 /* Override any GCC internal prototype to avoid an error.
11758 Use char because int might match the return type of a GCC
11759 builtin and then its argument prototype would still apply. */
11764 /* The GNU C library defines this for functions which it implements
11765 to always fail with ENOSYS. Some functions are actually named
11766 something starting with __ and the normal name is an alias. */
11767 #if defined __stub_$ac_func || defined __stub___$ac_func
11774 return $ac_func ();
11779 rm -f conftest.$ac_objext conftest$ac_exeext
11780 if { (ac_try="$ac_link"
11781 case "(($ac_try" in
11782 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11783 *) ac_try_echo
=$ac_try;;
11785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11786 (eval "$ac_link") 2>conftest.er1
11788 grep -v '^ *+' conftest.er1
>conftest.err
11790 cat conftest.err
>&5
11791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792 (exit $ac_status); } && {
11793 test -z "$ac_c_werror_flag" ||
11794 test ! -s conftest.err
11795 } && test -s conftest
$ac_exeext &&
11796 $as_test_x conftest
$ac_exeext; then
11797 eval "$as_ac_var=yes"
11799 echo "$as_me: failed program was:" >&5
11800 sed 's/^/| /' conftest.
$ac_ext >&5
11802 eval "$as_ac_var=no"
11805 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11806 conftest
$ac_exeext conftest.
$ac_ext
11808 ac_res
=`eval echo '${'$as_ac_var'}'`
11809 { echo "$as_me:$LINENO: result: $ac_res" >&5
11810 echo "${ECHO_T}$ac_res" >&6; }
11811 if test `eval echo '${'$as_ac_var'}'` = yes; then
11812 cat >>confdefs.h
<<_ACEOF
11813 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11815 HAVE_GTK_FILE_CHOOSER
=yes
11820 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11821 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11823 cat >>confdefs.h
<<\_ACEOF
11824 #define HAVE_GTK_FILE_BOTH 1
11829 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11830 HAVE_GTK_AND_PTHREAD
=no
11832 for ac_header
in pthread.h
11834 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11835 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11836 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11837 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11838 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11839 echo $ECHO_N "(cached) $ECHO_C" >&6
11841 ac_res
=`eval echo '${'$as_ac_Header'}'`
11842 { echo "$as_me:$LINENO: result: $ac_res" >&5
11843 echo "${ECHO_T}$ac_res" >&6; }
11845 # Is the header compilable?
11846 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11847 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11848 cat >conftest.
$ac_ext <<_ACEOF
11851 cat confdefs.h
>>conftest.
$ac_ext
11852 cat >>conftest.
$ac_ext <<_ACEOF
11853 /* end confdefs.h. */
11854 $ac_includes_default
11855 #include <$ac_header>
11857 rm -f conftest.
$ac_objext
11858 if { (ac_try
="$ac_compile"
11859 case "(($ac_try" in
11860 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11861 *) ac_try_echo=$ac_try;;
11863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11864 (eval "$ac_compile") 2>conftest.er1
11866 grep -v '^ *+' conftest.er1 >conftest.err
11868 cat conftest.err >&5
11869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11870 (exit $ac_status); } && {
11871 test -z "$ac_c_werror_flag" ||
11872 test ! -s conftest.err
11873 } && test -s conftest.$ac_objext; then
11874 ac_header_compiler=yes
11876 echo "$as_me: failed program was:" >&5
11877 sed 's/^/| /' conftest.$ac_ext >&5
11879 ac_header_compiler=no
11882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11883 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11884 echo "${ECHO_T}$ac_header_compiler" >&6; }
11886 # Is the header present?
11887 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11888 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11889 cat >conftest.$ac_ext <<_ACEOF
11892 cat confdefs.h >>conftest.$ac_ext
11893 cat >>conftest.$ac_ext <<_ACEOF
11894 /* end confdefs.h. */
11895 #include <$ac_header>
11897 if { (ac_try="$ac_cpp conftest.$ac_ext"
11898 case "(($ac_try" in
11899 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11900 *) ac_try_echo
=$ac_try;;
11902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11903 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11905 grep -v '^ *+' conftest.er1
>conftest.err
11907 cat conftest.err
>&5
11908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909 (exit $ac_status); } >/dev
/null
&& {
11910 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11911 test ! -s conftest.err
11913 ac_header_preproc
=yes
11915 echo "$as_me: failed program was:" >&5
11916 sed 's/^/| /' conftest.
$ac_ext >&5
11918 ac_header_preproc
=no
11921 rm -f conftest.err conftest.
$ac_ext
11922 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11923 echo "${ECHO_T}$ac_header_preproc" >&6; }
11925 # So? What about this header?
11926 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11928 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11929 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11930 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11931 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11932 ac_header_preproc
=yes
11935 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11936 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11937 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11938 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11939 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11940 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11941 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11942 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11943 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11944 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11945 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11946 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11950 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11952 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11953 echo $ECHO_N "(cached) $ECHO_C" >&6
11955 eval "$as_ac_Header=\$ac_header_preproc"
11957 ac_res
=`eval echo '${'$as_ac_Header'}'`
11958 { echo "$as_me:$LINENO: result: $ac_res" >&5
11959 echo "${ECHO_T}$ac_res" >&6; }
11962 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11963 cat >>confdefs.h
<<_ACEOF
11964 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11971 if test "$ac_cv_header_pthread_h"; then
11972 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11973 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11974 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11975 echo $ECHO_N "(cached) $ECHO_C" >&6
11977 ac_check_lib_save_LIBS
=$LIBS
11978 LIBS
="-lpthread $LIBS"
11979 cat >conftest.
$ac_ext <<_ACEOF
11982 cat confdefs.h
>>conftest.
$ac_ext
11983 cat >>conftest.
$ac_ext <<_ACEOF
11984 /* end confdefs.h. */
11986 /* Override any GCC internal prototype to avoid an error.
11987 Use char because int might match the return type of a GCC
11988 builtin and then its argument prototype would still apply. */
11992 char pthread_self ();
11996 return pthread_self ();
12001 rm -f conftest.
$ac_objext conftest
$ac_exeext
12002 if { (ac_try
="$ac_link"
12003 case "(($ac_try" in
12004 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12005 *) ac_try_echo=$ac_try;;
12007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12008 (eval "$ac_link") 2>conftest.er1
12010 grep -v '^ *+' conftest.er1 >conftest.err
12012 cat conftest.err >&5
12013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12014 (exit $ac_status); } && {
12015 test -z "$ac_c_werror_flag" ||
12016 test ! -s conftest.err
12017 } && test -s conftest$ac_exeext &&
12018 $as_test_x conftest$ac_exeext; then
12019 ac_cv_lib_pthread_pthread_self=yes
12021 echo "$as_me: failed program was:" >&5
12022 sed 's/^/| /' conftest.$ac_ext >&5
12024 ac_cv_lib_pthread_pthread_self=no
12027 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12028 conftest$ac_exeext conftest.$ac_ext
12029 LIBS=$ac_check_lib_save_LIBS
12031 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
12032 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
12033 if test $ac_cv_lib_pthread_pthread_self = yes; then
12034 HAVE_GTK_AND_PTHREAD=yes
12038 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
12039 case "${canonical}" in
12041 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
12044 cat >>confdefs.h <<\_ACEOF
12045 #define HAVE_GTK_AND_PTHREAD 1
12052 ### Link with -lXft if available to work around a bug.
12054 if test "${HAVE_GTK}" = "yes"; then
12055 if test "X${with_pkg_config_prog}" != X; then
12056 PKG_CONFIG="${with_pkg_config_prog}"
12062 if test -z "$PKG_CONFIG"; then
12063 # Extract the first word of "pkg-config", so it can be a program name with args.
12064 set dummy pkg-config; ac_word=$2
12065 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12067 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12068 echo $ECHO_N "(cached) $ECHO_C" >&6
12070 case $PKG_CONFIG in
12072 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12076 for as_dir in $PATH
12079 test -z "$as_dir" && as_dir=.
12080 for ac_exec_ext in '' $ac_executable_extensions; do
12081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12082 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12090 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12094 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12095 if test -n "$PKG_CONFIG"; then
12096 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12097 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12099 { echo "$as_me:$LINENO: result: no" >&5
12100 echo "${ECHO_T}no" >&6; }
12106 if test "$PKG_CONFIG" = "no" ; then
12109 PKG_CONFIG_MIN_VERSION=0.9.0
12110 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12111 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12112 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12114 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12115 { echo "$as_me:$LINENO: result: yes" >&5
12116 echo "${ECHO_T}yes" >&6; }
12119 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12120 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12121 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|
sed -e 's,///*,/,g'`
12122 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12123 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12125 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12126 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12127 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|
sed -e 's,///*,/,g'`
12128 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12129 echo "${ECHO_T}$XFT_LIBS" >&6; }
12131 { echo "$as_me:$LINENO: result: no" >&5
12132 echo "${ECHO_T}no" >&6; }
12135 ## If we have a custom action on failure, don't print errors, but
12136 ## do set a variable so people can do so.
12137 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12144 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12145 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12149 if test $succeeded = yes; then
12155 if test "$HAVE_XFT" != no; then
12156 OLD_CFLAGS="$CPPFLAGS"
12157 OLD_CPPFLAGS="$CFLAGS"
12159 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12160 CFLAGS="$CFLAGS $XFT_CFLAGS"
12161 LIBS="$XFT_LIBS $LIBS"
12162 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12163 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12164 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12165 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12166 echo $ECHO_N "(cached) $ECHO_C" >&6
12168 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12169 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12171 # Is the header compilable?
12172 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12173 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12174 cat >conftest.$ac_ext <<_ACEOF
12177 cat confdefs.h >>conftest.$ac_ext
12178 cat >>conftest.$ac_ext <<_ACEOF
12179 /* end confdefs.h. */
12180 $ac_includes_default
12181 #include <X11/Xft/Xft.h>
12183 rm -f conftest.$ac_objext
12184 if { (ac_try="$ac_compile"
12185 case "(($ac_try" in
12186 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12187 *) ac_try_echo
=$ac_try;;
12189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12190 (eval "$ac_compile") 2>conftest.er1
12192 grep -v '^ *+' conftest.er1
>conftest.err
12194 cat conftest.err
>&5
12195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12196 (exit $ac_status); } && {
12197 test -z "$ac_c_werror_flag" ||
12198 test ! -s conftest.err
12199 } && test -s conftest.
$ac_objext; then
12200 ac_header_compiler
=yes
12202 echo "$as_me: failed program was:" >&5
12203 sed 's/^/| /' conftest.
$ac_ext >&5
12205 ac_header_compiler
=no
12208 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12209 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12210 echo "${ECHO_T}$ac_header_compiler" >&6; }
12212 # Is the header present?
12213 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12214 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12215 cat >conftest.
$ac_ext <<_ACEOF
12218 cat confdefs.h
>>conftest.
$ac_ext
12219 cat >>conftest.
$ac_ext <<_ACEOF
12220 /* end confdefs.h. */
12221 #include <X11/Xft/Xft.h>
12223 if { (ac_try
="$ac_cpp conftest.$ac_ext"
12224 case "(($ac_try" in
12225 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12226 *) ac_try_echo=$ac_try;;
12228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12229 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12231 grep -v '^ *+' conftest.er1 >conftest.err
12233 cat conftest.err >&5
12234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12235 (exit $ac_status); } >/dev/null && {
12236 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12237 test ! -s conftest.err
12239 ac_header_preproc=yes
12241 echo "$as_me: failed program was:" >&5
12242 sed 's/^/| /' conftest.$ac_ext >&5
12244 ac_header_preproc=no
12247 rm -f conftest.err conftest.$ac_ext
12248 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12249 echo "${ECHO_T}$ac_header_preproc" >&6; }
12251 # So? What about this header?
12252 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12254 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12255 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12256 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12257 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12258 ac_header_preproc=yes
12261 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12262 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12263 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12264 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12265 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12266 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12267 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12268 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12269 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12270 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12271 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12272 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12276 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12277 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12278 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12279 echo $ECHO_N "(cached) $ECHO_C" >&6
12281 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
12283 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12284 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12287 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12288 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12289 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12290 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12291 echo $ECHO_N "(cached) $ECHO_C" >&6
12293 ac_check_lib_save_LIBS=$LIBS
12294 LIBS="-lXft $XFT_LIBS $LIBS"
12295 cat >conftest.$ac_ext <<_ACEOF
12298 cat confdefs.h >>conftest.$ac_ext
12299 cat >>conftest.$ac_ext <<_ACEOF
12300 /* end confdefs.h. */
12302 /* Override any GCC internal prototype to avoid an error.
12303 Use char because int might match the return type of a GCC
12304 builtin and then its argument prototype would still apply. */
12308 char XftFontOpen ();
12312 return XftFontOpen ();
12317 rm -f conftest.$ac_objext conftest$ac_exeext
12318 if { (ac_try="$ac_link"
12319 case "(($ac_try" in
12320 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12321 *) ac_try_echo
=$ac_try;;
12323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12324 (eval "$ac_link") 2>conftest.er1
12326 grep -v '^ *+' conftest.er1
>conftest.err
12328 cat conftest.err
>&5
12329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12330 (exit $ac_status); } && {
12331 test -z "$ac_c_werror_flag" ||
12332 test ! -s conftest.err
12333 } && test -s conftest
$ac_exeext &&
12334 $as_test_x conftest
$ac_exeext; then
12335 ac_cv_lib_Xft_XftFontOpen
=yes
12337 echo "$as_me: failed program was:" >&5
12338 sed 's/^/| /' conftest.
$ac_ext >&5
12340 ac_cv_lib_Xft_XftFontOpen
=no
12343 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12344 conftest
$ac_exeext conftest.
$ac_ext
12345 LIBS
=$ac_check_lib_save_LIBS
12347 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12348 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12349 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12357 if test "${HAVE_XFT}" = "yes"; then
12359 cat >>confdefs.h
<<\_ACEOF
12364 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
12366 CFLAGS
="$OLD_CPPFLAGS"
12367 CFLAGS
="$OLD_CFLAGS"
12374 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
12375 if test x
"${HAVE_X11R5}" != xyes
; then
12378 if test "$with_xaw3d" != no
; then
12379 { echo "$as_me:$LINENO: checking for xaw3d" >&5
12380 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
12381 if test "${emacs_cv_xaw3d+set}" = set; then
12382 echo $ECHO_N "(cached) $ECHO_C" >&6
12384 cat >conftest.
$ac_ext <<_ACEOF
12387 cat confdefs.h
>>conftest.
$ac_ext
12388 cat >>conftest.
$ac_ext <<_ACEOF
12389 /* end confdefs.h. */
12391 #include <X11/Intrinsic.h>
12392 #include <X11/Xaw3d/Simple.h>
12401 rm -f conftest.
$ac_objext conftest
$ac_exeext
12402 if { (ac_try
="$ac_link"
12403 case "(($ac_try" in
12404 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12405 *) ac_try_echo=$ac_try;;
12407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12408 (eval "$ac_link") 2>conftest.er1
12410 grep -v '^ *+' conftest.er1 >conftest.err
12412 cat conftest.err >&5
12413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12414 (exit $ac_status); } && {
12415 test -z "$ac_c_werror_flag" ||
12416 test ! -s conftest.err
12417 } && test -s conftest$ac_exeext &&
12418 $as_test_x conftest$ac_exeext; then
12421 echo "$as_me: failed program was:" >&5
12422 sed 's/^/| /' conftest.$ac_ext >&5
12427 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12428 conftest$ac_exeext conftest.$ac_ext
12434 if test $emacs_cv_xaw3d = yes; then
12435 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12436 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12437 USE_X_TOOLKIT=LUCID
12440 cat >>confdefs.h <<\_ACEOF
12441 #define HAVE_XAW3D 1
12445 { echo "$as_me:$LINENO: result: no" >&5
12446 echo "${ECHO_T}no" >&6; }
12447 { echo "$as_me:$LINENO: checking for libXaw" >&5
12448 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
12449 if test "${emacs_cv_xaw+set}" = set; then
12450 echo $ECHO_N "(cached) $ECHO_C" >&6
12452 cat >conftest.$ac_ext <<_ACEOF
12455 cat confdefs.h >>conftest.$ac_ext
12456 cat >>conftest.$ac_ext <<_ACEOF
12457 /* end confdefs.h. */
12459 #include <X11/Intrinsic.h>
12460 #include <X11/Xaw/Simple.h>
12469 rm -f conftest.$ac_objext conftest$ac_exeext
12470 if { (ac_try="$ac_link"
12471 case "(($ac_try" in
12472 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12473 *) ac_try_echo
=$ac_try;;
12475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12476 (eval "$ac_link") 2>conftest.er1
12478 grep -v '^ *+' conftest.er1
>conftest.err
12480 cat conftest.err
>&5
12481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12482 (exit $ac_status); } && {
12483 test -z "$ac_c_werror_flag" ||
12484 test ! -s conftest.err
12485 } && test -s conftest
$ac_exeext &&
12486 $as_test_x conftest
$ac_exeext; then
12489 echo "$as_me: failed program was:" >&5
12490 sed 's/^/| /' conftest.
$ac_ext >&5
12495 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12496 conftest
$ac_exeext conftest.
$ac_ext
12499 if test $emacs_cv_xaw = yes; then
12500 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12501 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12502 USE_X_TOOLKIT
=LUCID
12503 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
12504 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12505 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12506 { (exit 1); exit 1; }; }
12508 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
12509 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
12516 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
12518 if test "${USE_X_TOOLKIT}" != "none"; then
12519 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12520 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
12521 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12522 echo $ECHO_N "(cached) $ECHO_C" >&6
12524 cat >conftest.
$ac_ext <<_ACEOF
12527 cat confdefs.h
>>conftest.
$ac_ext
12528 cat >>conftest.
$ac_ext <<_ACEOF
12529 /* end confdefs.h. */
12530 #include <X11/Intrinsic.h>
12534 #if XtSpecificationRelease < 6
12542 rm -f conftest.
$ac_objext conftest
$ac_exeext
12543 if { (ac_try
="$ac_link"
12544 case "(($ac_try" in
12545 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12546 *) ac_try_echo=$ac_try;;
12548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12549 (eval "$ac_link") 2>conftest.er1
12551 grep -v '^ *+' conftest.er1 >conftest.err
12553 cat conftest.err >&5
12554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555 (exit $ac_status); } && {
12556 test -z "$ac_c_werror_flag" ||
12557 test ! -s conftest.err
12558 } && test -s conftest$ac_exeext &&
12559 $as_test_x conftest$ac_exeext; then
12560 emacs_cv_x11_toolkit_version_6=yes
12562 echo "$as_me: failed program was:" >&5
12563 sed 's/^/| /' conftest.$ac_ext >&5
12565 emacs_cv_x11_toolkit_version_6=no
12568 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12569 conftest$ac_exeext conftest.$ac_ext
12572 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12573 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12574 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12575 echo "${ECHO_T}6 or newer" >&6; }
12577 cat >>confdefs.h <<\_ACEOF
12578 #define HAVE_X11XTR6 1
12582 { echo "$as_me:$LINENO: result: before 6" >&5
12583 echo "${ECHO_T}before 6" >&6; }
12587 if test x$HAVE_X11XTR6 = xyes; then
12588 LIBS="-lXt -lSM -lICE $LIBS"
12593 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12594 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12595 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12596 echo $ECHO_N "(cached) $ECHO_C" >&6
12598 ac_check_lib_save_LIBS=$LIBS
12600 cat >conftest.$ac_ext <<_ACEOF
12603 cat confdefs.h >>conftest.$ac_ext
12604 cat >>conftest.$ac_ext <<_ACEOF
12605 /* end confdefs.h. */
12607 /* Override any GCC internal prototype to avoid an error.
12608 Use char because int might match the return type of a GCC
12609 builtin and then its argument prototype would still apply. */
12613 char XmuConvertStandardSelection ();
12617 return XmuConvertStandardSelection ();
12622 rm -f conftest.$ac_objext conftest$ac_exeext
12623 if { (ac_try="$ac_link"
12624 case "(($ac_try" in
12625 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12626 *) ac_try_echo
=$ac_try;;
12628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12629 (eval "$ac_link") 2>conftest.er1
12631 grep -v '^ *+' conftest.er1
>conftest.err
12633 cat conftest.err
>&5
12634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12635 (exit $ac_status); } && {
12636 test -z "$ac_c_werror_flag" ||
12637 test ! -s conftest.err
12638 } && test -s conftest
$ac_exeext &&
12639 $as_test_x conftest
$ac_exeext; then
12640 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
12642 echo "$as_me: failed program was:" >&5
12643 sed 's/^/| /' conftest.
$ac_ext >&5
12645 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
12648 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12649 conftest
$ac_exeext conftest.
$ac_ext
12650 LIBS
=$ac_check_lib_save_LIBS
12652 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12653 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12654 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12655 cat >>confdefs.h
<<_ACEOF
12656 #define HAVE_LIBXMU 1
12663 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
12666 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12667 if test "${HAVE_X11}" = "yes"; then
12668 if test "${USE_X_TOOLKIT}" != "none"; then
12670 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12671 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12672 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12673 echo $ECHO_N "(cached) $ECHO_C" >&6
12675 ac_check_lib_save_LIBS
=$LIBS
12676 LIBS
="-lXext $LIBS"
12677 cat >conftest.
$ac_ext <<_ACEOF
12680 cat confdefs.h
>>conftest.
$ac_ext
12681 cat >>conftest.
$ac_ext <<_ACEOF
12682 /* end confdefs.h. */
12684 /* Override any GCC internal prototype to avoid an error.
12685 Use char because int might match the return type of a GCC
12686 builtin and then its argument prototype would still apply. */
12690 char XShapeQueryExtension ();
12694 return XShapeQueryExtension ();
12699 rm -f conftest.
$ac_objext conftest
$ac_exeext
12700 if { (ac_try
="$ac_link"
12701 case "(($ac_try" in
12702 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12703 *) ac_try_echo=$ac_try;;
12705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12706 (eval "$ac_link") 2>conftest.er1
12708 grep -v '^ *+' conftest.er1 >conftest.err
12710 cat conftest.err >&5
12711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712 (exit $ac_status); } && {
12713 test -z "$ac_c_werror_flag" ||
12714 test ! -s conftest.err
12715 } && test -s conftest$ac_exeext &&
12716 $as_test_x conftest$ac_exeext; then
12717 ac_cv_lib_Xext_XShapeQueryExtension=yes
12719 echo "$as_me: failed program was:" >&5
12720 sed 's/^/| /' conftest.$ac_ext >&5
12722 ac_cv_lib_Xext_XShapeQueryExtension=no
12725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12726 conftest$ac_exeext conftest.$ac_ext
12727 LIBS=$ac_check_lib_save_LIBS
12729 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12730 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12731 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12732 cat >>confdefs.h <<_ACEOF
12733 #define HAVE_LIBXEXT 1
12736 LIBS="-lXext $LIBS"
12743 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12744 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12745 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12746 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12747 echo $ECHO_N "(cached) $ECHO_C" >&6
12749 cat >conftest.$ac_ext <<_ACEOF
12752 cat confdefs.h >>conftest.$ac_ext
12753 cat >>conftest.$ac_ext <<_ACEOF
12754 /* end confdefs.h. */
12759 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12762 Motif version prior to 2.1.
12768 rm -f conftest.$ac_objext
12769 if { (ac_try="$ac_compile"
12770 case "(($ac_try" in
12771 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12772 *) ac_try_echo
=$ac_try;;
12774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12775 (eval "$ac_compile") 2>conftest.er1
12777 grep -v '^ *+' conftest.er1
>conftest.err
12779 cat conftest.err
>&5
12780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12781 (exit $ac_status); } && {
12782 test -z "$ac_c_werror_flag" ||
12783 test ! -s conftest.err
12784 } && test -s conftest.
$ac_objext; then
12785 emacs_cv_motif_version_2_1
=yes
12787 echo "$as_me: failed program was:" >&5
12788 sed 's/^/| /' conftest.
$ac_ext >&5
12790 emacs_cv_motif_version_2_1
=no
12793 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12795 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12796 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12797 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
12798 if test $emacs_cv_motif_version_2_1 = yes; then
12801 cat >>confdefs.h
<<\_ACEOF
12802 #define HAVE_MOTIF_2_1 1
12805 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12806 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12807 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12808 echo $ECHO_N "(cached) $ECHO_C" >&6
12810 ac_check_lib_save_LIBS
=$LIBS
12812 cat >conftest.
$ac_ext <<_ACEOF
12815 cat confdefs.h
>>conftest.
$ac_ext
12816 cat >>conftest.
$ac_ext <<_ACEOF
12817 /* end confdefs.h. */
12819 /* Override any GCC internal prototype to avoid an error.
12820 Use char because int might match the return type of a GCC
12821 builtin and then its argument prototype would still apply. */
12825 char XpCreateContext ();
12829 return XpCreateContext ();
12834 rm -f conftest.
$ac_objext conftest
$ac_exeext
12835 if { (ac_try
="$ac_link"
12836 case "(($ac_try" in
12837 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12838 *) ac_try_echo=$ac_try;;
12840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12841 (eval "$ac_link") 2>conftest.er1
12843 grep -v '^ *+' conftest.er1 >conftest.err
12845 cat conftest.err >&5
12846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12847 (exit $ac_status); } && {
12848 test -z "$ac_c_werror_flag" ||
12849 test ! -s conftest.err
12850 } && test -s conftest$ac_exeext &&
12851 $as_test_x conftest$ac_exeext; then
12852 ac_cv_lib_Xp_XpCreateContext=yes
12854 echo "$as_me: failed program was:" >&5
12855 sed 's/^/| /' conftest.$ac_ext >&5
12857 ac_cv_lib_Xp_XpCreateContext=no
12860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12861 conftest$ac_exeext conftest.$ac_ext
12862 LIBS=$ac_check_lib_save_LIBS
12864 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12865 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12866 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12870 if test ${HAVE_LIBXP} = yes; then
12872 cat >>confdefs.h <<\_ACEOF
12873 #define HAVE_LIBXP 1
12878 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12879 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12880 if test "${emacs_cv_lesstif+set}" = set; then
12881 echo $ECHO_N "(cached) $ECHO_C" >&6
12883 # We put this in CFLAGS temporarily to precede other -I options
12884 # that might be in CFLAGS temporarily.
12885 # We put this in CPPFLAGS where it precedes the other -I options.
12886 OLD_CPPFLAGS=$CPPFLAGS
12888 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12889 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12890 cat >conftest.$ac_ext <<_ACEOF
12893 cat confdefs.h >>conftest.$ac_ext
12894 cat >>conftest.$ac_ext <<_ACEOF
12895 /* end confdefs.h. */
12896 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12905 rm -f conftest.$ac_objext
12906 if { (ac_try="$ac_compile"
12907 case "(($ac_try" in
12908 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12909 *) ac_try_echo
=$ac_try;;
12911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12912 (eval "$ac_compile") 2>conftest.er1
12914 grep -v '^ *+' conftest.er1
>conftest.err
12916 cat conftest.err
>&5
12917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918 (exit $ac_status); } && {
12919 test -z "$ac_c_werror_flag" ||
12920 test ! -s conftest.err
12921 } && test -s conftest.
$ac_objext; then
12922 emacs_cv_lesstif
=yes
12924 echo "$as_me: failed program was:" >&5
12925 sed 's/^/| /' conftest.
$ac_ext >&5
12927 emacs_cv_lesstif
=no
12930 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12932 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12933 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12934 if test $emacs_cv_lesstif = yes; then
12935 # Make sure this -I option remains in CPPFLAGS after it is set
12936 # back to REAL_CPPFLAGS.
12937 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12938 # have those other -I options anyway. Ultimately, having this
12939 # directory ultimately in CPPFLAGS will be enough.
12940 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12941 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12944 CPPFLAGS
=$OLD_CPPFLAGS
12951 USE_TOOLKIT_SCROLL_BARS
=no
12952 if test "${with_toolkit_scroll_bars}" != "no"; then
12953 if test "${USE_X_TOOLKIT}" != "none"; then
12954 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12955 cat >>confdefs.h
<<\_ACEOF
12956 #define USE_TOOLKIT_SCROLL_BARS 1
12960 USE_TOOLKIT_SCROLL_BARS
=yes
12961 elif test "${HAVE_XAW3D}" = "yes"; then
12962 cat >>confdefs.h
<<\_ACEOF
12963 #define USE_TOOLKIT_SCROLL_BARS 1
12966 USE_TOOLKIT_SCROLL_BARS
=yes
12968 elif test "${HAVE_GTK}" = "yes"; then
12969 cat >>confdefs.h
<<\_ACEOF
12970 #define USE_TOOLKIT_SCROLL_BARS 1
12973 USE_TOOLKIT_SCROLL_BARS
=yes
12974 elif test "${HAVE_CARBON}" = "yes"; then
12975 cat >>confdefs.h
<<\_ACEOF
12976 #define USE_TOOLKIT_SCROLL_BARS 1
12979 USE_TOOLKIT_SCROLL_BARS
=yes
12983 cat >conftest.
$ac_ext <<_ACEOF
12986 cat confdefs.h
>>conftest.
$ac_ext
12987 cat >>conftest.
$ac_ext <<_ACEOF
12988 /* end confdefs.h. */
12990 #include <X11/Xlib.h>
12991 #include <X11/Xresource.h>
13000 rm -f conftest.
$ac_objext
13001 if { (ac_try
="$ac_compile"
13002 case "(($ac_try" in
13003 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13004 *) ac_try_echo=$ac_try;;
13006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13007 (eval "$ac_compile") 2>conftest.er1
13009 grep -v '^ *+' conftest.er1 >conftest.err
13011 cat conftest.err >&5
13012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13013 (exit $ac_status); } && {
13014 test -z "$ac_c_werror_flag" ||
13015 test ! -s conftest.err
13016 } && test -s conftest.$ac_objext; then
13019 cat >>confdefs.h <<\_ACEOF
13024 echo "$as_me: failed program was:" >&5
13025 sed 's/^/| /' conftest.$ac_ext >&5
13030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13033 if test "${with_xim}" != "no"; then
13035 cat >>confdefs.h <<\_ACEOF
13042 if test "${HAVE_XIM}" != "no"; then
13043 late_CFLAGS=$CFLAGS
13044 if test "$GCC" = yes; then
13045 CFLAGS="$CFLAGS --pedantic-errors"
13047 cat >conftest.$ac_ext <<_ACEOF
13050 cat confdefs.h >>conftest.$ac_ext
13051 cat >>conftest.$ac_ext <<_ACEOF
13052 /* end confdefs.h. */
13054 #include <X11/Xlib.h>
13055 #include <X11/Xresource.h>
13064 XPointer *client_data;
13066 /* If we're not using GCC, it's probably not XFree86, and this is
13067 probably right, but we can't use something like --pedantic-errors. */
13068 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
13069 char*, XIMProc, XPointer*);
13071 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
13077 rm -f conftest.$ac_objext
13078 if { (ac_try="$ac_compile"
13079 case "(($ac_try" in
13080 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13081 *) ac_try_echo
=$ac_try;;
13083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13084 (eval "$ac_compile") 2>conftest.er1
13086 grep -v '^ *+' conftest.er1
>conftest.err
13088 cat conftest.err
>&5
13089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13090 (exit $ac_status); } && {
13091 test -z "$ac_c_werror_flag" ||
13092 test ! -s conftest.err
13093 } && test -s conftest.
$ac_objext; then
13094 emacs_cv_arg6_star
=yes
13096 echo "$as_me: failed program was:" >&5
13097 sed 's/^/| /' conftest.
$ac_ext >&5
13102 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13104 if test "$emacs_cv_arg6_star" = yes; then
13105 cat >>confdefs.h
<<\_ACEOF
13106 #define XRegisterIMInstantiateCallback_arg6 XPointer*
13110 cat >>confdefs.h
<<\_ACEOF
13111 #define XRegisterIMInstantiateCallback_arg6 XPointer
13115 CFLAGS
=$late_CFLAGS
13118 ### Use -lXpm if available, unless `--with-xpm=no'.
13120 if test "${HAVE_X11}" = "yes"; then
13121 if test "${with_xpm}" != "no"; then
13122 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13123 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13124 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13125 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13126 echo $ECHO_N "(cached) $ECHO_C" >&6
13128 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13129 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13131 # Is the header compilable?
13132 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13133 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13134 cat >conftest.
$ac_ext <<_ACEOF
13137 cat confdefs.h
>>conftest.
$ac_ext
13138 cat >>conftest.
$ac_ext <<_ACEOF
13139 /* end confdefs.h. */
13140 $ac_includes_default
13141 #include <X11/xpm.h>
13143 rm -f conftest.
$ac_objext
13144 if { (ac_try
="$ac_compile"
13145 case "(($ac_try" in
13146 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13147 *) ac_try_echo=$ac_try;;
13149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13150 (eval "$ac_compile") 2>conftest.er1
13152 grep -v '^ *+' conftest.er1 >conftest.err
13154 cat conftest.err >&5
13155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156 (exit $ac_status); } && {
13157 test -z "$ac_c_werror_flag" ||
13158 test ! -s conftest.err
13159 } && test -s conftest.$ac_objext; then
13160 ac_header_compiler=yes
13162 echo "$as_me: failed program was:" >&5
13163 sed 's/^/| /' conftest.$ac_ext >&5
13165 ac_header_compiler=no
13168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13169 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13170 echo "${ECHO_T}$ac_header_compiler" >&6; }
13172 # Is the header present?
13173 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13174 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13175 cat >conftest.$ac_ext <<_ACEOF
13178 cat confdefs.h >>conftest.$ac_ext
13179 cat >>conftest.$ac_ext <<_ACEOF
13180 /* end confdefs.h. */
13181 #include <X11/xpm.h>
13183 if { (ac_try="$ac_cpp conftest.$ac_ext"
13184 case "(($ac_try" in
13185 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13186 *) ac_try_echo
=$ac_try;;
13188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13189 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13191 grep -v '^ *+' conftest.er1
>conftest.err
13193 cat conftest.err
>&5
13194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13195 (exit $ac_status); } >/dev
/null
&& {
13196 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13197 test ! -s conftest.err
13199 ac_header_preproc
=yes
13201 echo "$as_me: failed program was:" >&5
13202 sed 's/^/| /' conftest.
$ac_ext >&5
13204 ac_header_preproc
=no
13207 rm -f conftest.err conftest.
$ac_ext
13208 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13209 echo "${ECHO_T}$ac_header_preproc" >&6; }
13211 # So? What about this header?
13212 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13214 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13215 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13216 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13217 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13218 ac_header_preproc
=yes
13221 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13222 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13223 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13224 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13225 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13226 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13227 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13228 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13229 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13230 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13231 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13232 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13236 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13237 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13238 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13239 echo $ECHO_N "(cached) $ECHO_C" >&6
13241 ac_cv_header_X11_xpm_h
=$ac_header_preproc
13243 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13244 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13247 if test $ac_cv_header_X11_xpm_h = yes; then
13248 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13249 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13250 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13251 echo $ECHO_N "(cached) $ECHO_C" >&6
13253 ac_check_lib_save_LIBS
=$LIBS
13254 LIBS
="-lXpm -lX11 $LIBS"
13255 cat >conftest.
$ac_ext <<_ACEOF
13258 cat confdefs.h
>>conftest.
$ac_ext
13259 cat >>conftest.
$ac_ext <<_ACEOF
13260 /* end confdefs.h. */
13262 /* Override any GCC internal prototype to avoid an error.
13263 Use char because int might match the return type of a GCC
13264 builtin and then its argument prototype would still apply. */
13268 char XpmReadFileToPixmap ();
13272 return XpmReadFileToPixmap ();
13277 rm -f conftest.
$ac_objext conftest
$ac_exeext
13278 if { (ac_try
="$ac_link"
13279 case "(($ac_try" in
13280 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13281 *) ac_try_echo=$ac_try;;
13283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13284 (eval "$ac_link") 2>conftest.er1
13286 grep -v '^ *+' conftest.er1 >conftest.err
13288 cat conftest.err >&5
13289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13290 (exit $ac_status); } && {
13291 test -z "$ac_c_werror_flag" ||
13292 test ! -s conftest.err
13293 } && test -s conftest$ac_exeext &&
13294 $as_test_x conftest$ac_exeext; then
13295 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13297 echo "$as_me: failed program was:" >&5
13298 sed 's/^/| /' conftest.$ac_ext >&5
13300 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13304 conftest$ac_exeext conftest.$ac_ext
13305 LIBS=$ac_check_lib_save_LIBS
13307 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13308 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13309 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13316 if test "${HAVE_XPM}" = "yes"; then
13317 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13318 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13319 cat >conftest.$ac_ext <<_ACEOF
13322 cat confdefs.h >>conftest.$ac_ext
13323 cat >>conftest.$ac_ext <<_ACEOF
13324 /* end confdefs.h. */
13325 #include "X11/xpm.h"
13326 #ifndef XpmReturnAllocPixels
13327 no_return_alloc_pixels
13331 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13332 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13340 if test "${HAVE_XPM}" = "yes"; then
13341 { echo "$as_me:$LINENO: result: yes" >&5
13342 echo "${ECHO_T}yes" >&6; }
13344 { echo "$as_me:$LINENO: result: no" >&5
13345 echo "${ECHO_T}no" >&6; }
13350 if test "${HAVE_XPM}" = "yes"; then
13352 cat >>confdefs.h <<\_ACEOF
13359 ### Use -ljpeg if available, unless `--with-jpeg=no
'.
13361 if test "${HAVE_X11}" = "yes"; then
13362 if test "${with_jpeg}" != "no"; then
13363 if test "${ac_cv_header_jerror_h+set}" = set; then
13364 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13365 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13366 if test "${ac_cv_header_jerror_h+set}" = set; then
13367 echo $ECHO_N "(cached) $ECHO_C" >&6
13369 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13370 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13372 # Is the header compilable?
13373 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13374 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13375 cat >conftest.$ac_ext <<_ACEOF
13378 cat confdefs.h >>conftest.$ac_ext
13379 cat >>conftest.$ac_ext <<_ACEOF
13380 /* end confdefs.h. */
13381 $ac_includes_default
13382 #include <jerror.h>
13384 rm -f conftest.$ac_objext
13385 if { (ac_try="$ac_compile"
13386 case "(($ac_try" in
13387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13388 *) ac_try_echo=$ac_try;;
13390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13391 (eval "$ac_compile") 2>conftest.er1
13393 grep -v '^
*+' conftest.er1 >conftest.err
13395 cat conftest.err >&5
13396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13397 (exit $ac_status); } && {
13398 test -z "$ac_c_werror_flag" ||
13399 test ! -s conftest.err
13400 } && test -s conftest.$ac_objext; then
13401 ac_header_compiler=yes
13403 echo "$as_me: failed program was:" >&5
13404 sed 's
/^
/|
/' conftest.$ac_ext >&5
13406 ac_header_compiler=no
13409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13410 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13411 echo "${ECHO_T}$ac_header_compiler" >&6; }
13413 # Is the header present?
13414 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13415 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13416 cat >conftest.$ac_ext <<_ACEOF
13419 cat confdefs.h >>conftest.$ac_ext
13420 cat >>conftest.$ac_ext <<_ACEOF
13421 /* end confdefs.h. */
13422 #include <jerror.h>
13424 if { (ac_try="$ac_cpp conftest.$ac_ext"
13425 case "(($ac_try" in
13426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13427 *) ac_try_echo=$ac_try;;
13429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13430 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13432 grep -v '^
*+' conftest.er1 >conftest.err
13434 cat conftest.err >&5
13435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13436 (exit $ac_status); } >/dev/null && {
13437 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13438 test ! -s conftest.err
13440 ac_header_preproc=yes
13442 echo "$as_me: failed program was:" >&5
13443 sed 's
/^
/|
/' conftest.$ac_ext >&5
13445 ac_header_preproc=no
13448 rm -f conftest.err conftest.$ac_ext
13449 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13450 echo "${ECHO_T}$ac_header_preproc" >&6; }
13452 # So? What about this header?
13453 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13455 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13456 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13457 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result
" >&5
13458 echo "$as_me: WARNING
: jerror.h
: proceeding with the compiler
's result" >&2;}
13459 ac_header_preproc=yes
13462 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13463 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13464 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13465 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13466 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13467 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13468 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13469 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13470 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result
" >&5
13471 echo "$as_me: WARNING
: jerror.h
: proceeding with the preprocessor
's result" >&2;}
13472 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13473 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13477 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13478 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13479 if test "${ac_cv_header_jerror_h+set}" = set; then
13480 echo $ECHO_N "(cached) $ECHO_C" >&6
13482 ac_cv_header_jerror_h=$ac_header_preproc
13484 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13485 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13488 if test $ac_cv_header_jerror_h = yes; then
13489 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13490 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13491 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13492 echo $ECHO_N "(cached) $ECHO_C" >&6
13494 ac_check_lib_save_LIBS=$LIBS
13495 LIBS="-ljpeg $LIBS"
13496 cat >conftest.$ac_ext <<_ACEOF
13499 cat confdefs.h >>conftest.$ac_ext
13500 cat >>conftest.$ac_ext <<_ACEOF
13501 /* end confdefs.h. */
13503 /* Override any GCC internal prototype to avoid an error.
13504 Use char because int might match the return type of a GCC
13505 builtin and then its argument prototype would still apply. */
13509 char jpeg_destroy_compress ();
13513 return jpeg_destroy_compress ();
13518 rm -f conftest.$ac_objext conftest$ac_exeext
13519 if { (ac_try="$ac_link"
13520 case "(($ac_try" in
13521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13522 *) ac_try_echo=$ac_try;;
13524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13525 (eval "$ac_link") 2>conftest.er1
13527 grep -v '^
*+' conftest.er1 >conftest.err
13529 cat conftest.err >&5
13530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13531 (exit $ac_status); } && {
13532 test -z "$ac_c_werror_flag" ||
13533 test ! -s conftest.err
13534 } && test -s conftest$ac_exeext &&
13535 $as_test_x conftest$ac_exeext; then
13536 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13538 echo "$as_me: failed program was:" >&5
13539 sed 's
/^
/|
/' conftest.$ac_ext >&5
13541 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13545 conftest$ac_exeext conftest.$ac_ext
13546 LIBS=$ac_check_lib_save_LIBS
13548 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13549 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13550 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13560 if test "${HAVE_JPEG}" = "yes"; then
13561 cat >>confdefs.h <<\_ACEOF
13562 #define HAVE_JPEG 1
13565 cat >conftest.$ac_ext <<_ACEOF
13568 cat confdefs.h >>conftest.$ac_ext
13569 cat >>conftest.$ac_ext <<_ACEOF
13570 /* end confdefs.h. */
13571 #include <jpeglib.h>
13572 version=JPEG_LIB_VERSION
13575 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13576 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13577 cat >>confdefs.h <<\_ACEOF
13578 #define HAVE_JPEG 1
13582 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13583 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13591 ### Use -lpng if available, unless `--with-png=no'.
13593 if test "${HAVE_X11}" = "yes"; then
13594 if test "${with_png}" != "no"; then
13595 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13596 # in /usr/include/libpng.
13599 for ac_header
in png.h libpng
/png.h
13601 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13602 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13603 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13604 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13605 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13606 echo $ECHO_N "(cached) $ECHO_C" >&6
13608 ac_res
=`eval echo '${'$as_ac_Header'}'`
13609 { echo "$as_me:$LINENO: result: $ac_res" >&5
13610 echo "${ECHO_T}$ac_res" >&6; }
13612 # Is the header compilable?
13613 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13614 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13615 cat >conftest.
$ac_ext <<_ACEOF
13618 cat confdefs.h
>>conftest.
$ac_ext
13619 cat >>conftest.
$ac_ext <<_ACEOF
13620 /* end confdefs.h. */
13621 $ac_includes_default
13622 #include <$ac_header>
13624 rm -f conftest.
$ac_objext
13625 if { (ac_try
="$ac_compile"
13626 case "(($ac_try" in
13627 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13628 *) ac_try_echo=$ac_try;;
13630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13631 (eval "$ac_compile") 2>conftest.er1
13633 grep -v '^ *+' conftest.er1 >conftest.err
13635 cat conftest.err >&5
13636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637 (exit $ac_status); } && {
13638 test -z "$ac_c_werror_flag" ||
13639 test ! -s conftest.err
13640 } && test -s conftest.$ac_objext; then
13641 ac_header_compiler=yes
13643 echo "$as_me: failed program was:" >&5
13644 sed 's/^/| /' conftest.$ac_ext >&5
13646 ac_header_compiler=no
13649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13650 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13651 echo "${ECHO_T}$ac_header_compiler" >&6; }
13653 # Is the header present?
13654 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13655 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13656 cat >conftest.$ac_ext <<_ACEOF
13659 cat confdefs.h >>conftest.$ac_ext
13660 cat >>conftest.$ac_ext <<_ACEOF
13661 /* end confdefs.h. */
13662 #include <$ac_header>
13664 if { (ac_try="$ac_cpp conftest.$ac_ext"
13665 case "(($ac_try" in
13666 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13667 *) ac_try_echo
=$ac_try;;
13669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13670 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13672 grep -v '^ *+' conftest.er1
>conftest.err
13674 cat conftest.err
>&5
13675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13676 (exit $ac_status); } >/dev
/null
&& {
13677 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13678 test ! -s conftest.err
13680 ac_header_preproc
=yes
13682 echo "$as_me: failed program was:" >&5
13683 sed 's/^/| /' conftest.
$ac_ext >&5
13685 ac_header_preproc
=no
13688 rm -f conftest.err conftest.
$ac_ext
13689 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13690 echo "${ECHO_T}$ac_header_preproc" >&6; }
13692 # So? What about this header?
13693 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13695 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13696 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13697 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13698 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13699 ac_header_preproc
=yes
13702 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13703 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13704 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13705 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13706 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13707 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13708 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13709 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13710 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13711 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13712 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13713 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13717 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13718 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13719 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13720 echo $ECHO_N "(cached) $ECHO_C" >&6
13722 eval "$as_ac_Header=\$ac_header_preproc"
13724 ac_res
=`eval echo '${'$as_ac_Header'}'`
13725 { echo "$as_me:$LINENO: result: $ac_res" >&5
13726 echo "${ECHO_T}$ac_res" >&6; }
13729 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13730 cat >>confdefs.h
<<_ACEOF
13731 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13738 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
13739 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13740 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13741 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13742 echo $ECHO_N "(cached) $ECHO_C" >&6
13744 ac_check_lib_save_LIBS
=$LIBS
13745 LIBS
="-lpng -lz -lm $LIBS"
13746 cat >conftest.
$ac_ext <<_ACEOF
13749 cat confdefs.h
>>conftest.
$ac_ext
13750 cat >>conftest.
$ac_ext <<_ACEOF
13751 /* end confdefs.h. */
13753 /* Override any GCC internal prototype to avoid an error.
13754 Use char because int might match the return type of a GCC
13755 builtin and then its argument prototype would still apply. */
13759 char png_get_channels ();
13763 return png_get_channels ();
13768 rm -f conftest.
$ac_objext conftest
$ac_exeext
13769 if { (ac_try
="$ac_link"
13770 case "(($ac_try" in
13771 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13772 *) ac_try_echo=$ac_try;;
13774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13775 (eval "$ac_link") 2>conftest.er1
13777 grep -v '^ *+' conftest.er1 >conftest.err
13779 cat conftest.err >&5
13780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13781 (exit $ac_status); } && {
13782 test -z "$ac_c_werror_flag" ||
13783 test ! -s conftest.err
13784 } && test -s conftest$ac_exeext &&
13785 $as_test_x conftest$ac_exeext; then
13786 ac_cv_lib_png_png_get_channels=yes
13788 echo "$as_me: failed program was:" >&5
13789 sed 's/^/| /' conftest.$ac_ext >&5
13791 ac_cv_lib_png_png_get_channels=no
13794 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13795 conftest$ac_exeext conftest.$ac_ext
13796 LIBS=$ac_check_lib_save_LIBS
13798 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13799 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13800 if test $ac_cv_lib_png_png_get_channels = yes; then
13807 if test "${HAVE_PNG}" = "yes"; then
13809 cat >>confdefs.h <<\_ACEOF
13816 ### Use -ltiff if available, unless `--with-tiff=no
'.
13818 if test "${HAVE_X11}" = "yes"; then
13819 if test "${with_tiff}" != "no"; then
13820 if test "${ac_cv_header_tiffio_h+set}" = set; then
13821 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13822 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13823 if test "${ac_cv_header_tiffio_h+set}" = set; then
13824 echo $ECHO_N "(cached) $ECHO_C" >&6
13826 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13827 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13829 # Is the header compilable?
13830 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13831 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13832 cat >conftest.$ac_ext <<_ACEOF
13835 cat confdefs.h >>conftest.$ac_ext
13836 cat >>conftest.$ac_ext <<_ACEOF
13837 /* end confdefs.h. */
13838 $ac_includes_default
13839 #include <tiffio.h>
13841 rm -f conftest.$ac_objext
13842 if { (ac_try="$ac_compile"
13843 case "(($ac_try" in
13844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13845 *) ac_try_echo=$ac_try;;
13847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13848 (eval "$ac_compile") 2>conftest.er1
13850 grep -v '^
*+' conftest.er1 >conftest.err
13852 cat conftest.err >&5
13853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13854 (exit $ac_status); } && {
13855 test -z "$ac_c_werror_flag" ||
13856 test ! -s conftest.err
13857 } && test -s conftest.$ac_objext; then
13858 ac_header_compiler=yes
13860 echo "$as_me: failed program was:" >&5
13861 sed 's
/^
/|
/' conftest.$ac_ext >&5
13863 ac_header_compiler=no
13866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13867 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13868 echo "${ECHO_T}$ac_header_compiler" >&6; }
13870 # Is the header present?
13871 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13872 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13873 cat >conftest.$ac_ext <<_ACEOF
13876 cat confdefs.h >>conftest.$ac_ext
13877 cat >>conftest.$ac_ext <<_ACEOF
13878 /* end confdefs.h. */
13879 #include <tiffio.h>
13881 if { (ac_try="$ac_cpp conftest.$ac_ext"
13882 case "(($ac_try" in
13883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13884 *) ac_try_echo=$ac_try;;
13886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13887 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13889 grep -v '^
*+' conftest.er1 >conftest.err
13891 cat conftest.err >&5
13892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893 (exit $ac_status); } >/dev/null && {
13894 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13895 test ! -s conftest.err
13897 ac_header_preproc=yes
13899 echo "$as_me: failed program was:" >&5
13900 sed 's
/^
/|
/' conftest.$ac_ext >&5
13902 ac_header_preproc=no
13905 rm -f conftest.err conftest.$ac_ext
13906 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13907 echo "${ECHO_T}$ac_header_preproc" >&6; }
13909 # So? What about this header?
13910 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13912 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13913 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13914 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result
" >&5
13915 echo "$as_me: WARNING
: tiffio.h
: proceeding with the compiler
's result" >&2;}
13916 ac_header_preproc=yes
13919 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13920 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13921 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13922 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13923 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13924 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13925 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13926 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13927 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result
" >&5
13928 echo "$as_me: WARNING
: tiffio.h
: proceeding with the preprocessor
's result" >&2;}
13929 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13930 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13934 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13935 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13936 if test "${ac_cv_header_tiffio_h+set}" = set; then
13937 echo $ECHO_N "(cached) $ECHO_C" >&6
13939 ac_cv_header_tiffio_h=$ac_header_preproc
13941 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13942 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13945 if test $ac_cv_header_tiffio_h = yes; then
13947 # At least one tiff package requires the jpeg library.
13948 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13949 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
13950 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
13951 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
13952 echo $ECHO_N "(cached) $ECHO_C" >&6
13954 ac_check_lib_save_LIBS=$LIBS
13955 LIBS="-ltiff $tifflibs $LIBS"
13956 cat >conftest.$ac_ext <<_ACEOF
13959 cat confdefs.h >>conftest.$ac_ext
13960 cat >>conftest.$ac_ext <<_ACEOF
13961 /* end confdefs.h. */
13963 /* Override any GCC internal prototype to avoid an error.
13964 Use char because int might match the return type of a GCC
13965 builtin and then its argument prototype would still apply. */
13969 char TIFFGetVersion ();
13973 return TIFFGetVersion ();
13978 rm -f conftest.$ac_objext conftest$ac_exeext
13979 if { (ac_try="$ac_link"
13980 case "(($ac_try" in
13981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13982 *) ac_try_echo=$ac_try;;
13984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13985 (eval "$ac_link") 2>conftest.er1
13987 grep -v '^
*+' conftest.er1 >conftest.err
13989 cat conftest.err >&5
13990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13991 (exit $ac_status); } && {
13992 test -z "$ac_c_werror_flag" ||
13993 test ! -s conftest.err
13994 } && test -s conftest$ac_exeext &&
13995 $as_test_x conftest$ac_exeext; then
13996 ac_cv_lib_tiff_TIFFGetVersion=yes
13998 echo "$as_me: failed program was:" >&5
13999 sed 's
/^
/|
/' conftest.$ac_ext >&5
14001 ac_cv_lib_tiff_TIFFGetVersion=no
14004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14005 conftest$ac_exeext conftest.$ac_ext
14006 LIBS=$ac_check_lib_save_LIBS
14008 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14009 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14010 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14019 if test "${HAVE_TIFF}" = "yes"; then
14021 cat >>confdefs.h <<\_ACEOF
14022 #define HAVE_TIFF 1
14028 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14030 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14031 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14032 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14033 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14034 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14035 echo $ECHO_N "(cached) $ECHO_C" >&6
14037 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14038 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14040 # Is the header compilable?
14041 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14042 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14043 cat >conftest.
$ac_ext <<_ACEOF
14046 cat confdefs.h
>>conftest.
$ac_ext
14047 cat >>conftest.
$ac_ext <<_ACEOF
14048 /* end confdefs.h. */
14049 $ac_includes_default
14050 #include <gif_lib.h>
14052 rm -f conftest.
$ac_objext
14053 if { (ac_try
="$ac_compile"
14054 case "(($ac_try" in
14055 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14056 *) ac_try_echo=$ac_try;;
14058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14059 (eval "$ac_compile") 2>conftest.er1
14061 grep -v '^ *+' conftest.er1 >conftest.err
14063 cat conftest.err >&5
14064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065 (exit $ac_status); } && {
14066 test -z "$ac_c_werror_flag" ||
14067 test ! -s conftest.err
14068 } && test -s conftest.$ac_objext; then
14069 ac_header_compiler=yes
14071 echo "$as_me: failed program was:" >&5
14072 sed 's/^/| /' conftest.$ac_ext >&5
14074 ac_header_compiler=no
14077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14078 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14079 echo "${ECHO_T}$ac_header_compiler" >&6; }
14081 # Is the header present?
14082 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14083 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14084 cat >conftest.$ac_ext <<_ACEOF
14087 cat confdefs.h >>conftest.$ac_ext
14088 cat >>conftest.$ac_ext <<_ACEOF
14089 /* end confdefs.h. */
14090 #include <gif_lib.h>
14092 if { (ac_try="$ac_cpp conftest.$ac_ext"
14093 case "(($ac_try" in
14094 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14095 *) ac_try_echo
=$ac_try;;
14097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14098 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14100 grep -v '^ *+' conftest.er1
>conftest.err
14102 cat conftest.err
>&5
14103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14104 (exit $ac_status); } >/dev
/null
&& {
14105 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14106 test ! -s conftest.err
14108 ac_header_preproc
=yes
14110 echo "$as_me: failed program was:" >&5
14111 sed 's/^/| /' conftest.
$ac_ext >&5
14113 ac_header_preproc
=no
14116 rm -f conftest.err conftest.
$ac_ext
14117 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14118 echo "${ECHO_T}$ac_header_preproc" >&6; }
14120 # So? What about this header?
14121 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14123 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14124 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14125 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14126 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14127 ac_header_preproc
=yes
14130 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14131 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14132 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14133 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14134 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14135 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14136 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14137 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14138 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14139 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14140 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14141 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14145 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14146 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14147 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14148 echo $ECHO_N "(cached) $ECHO_C" >&6
14150 ac_cv_header_gif_lib_h
=$ac_header_preproc
14152 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14153 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14156 if test $ac_cv_header_gif_lib_h = yes; then
14157 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14158 # Earlier versions can crash Emacs.
14159 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14160 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
14161 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14162 echo $ECHO_N "(cached) $ECHO_C" >&6
14164 ac_check_lib_save_LIBS
=$LIBS
14166 cat >conftest.
$ac_ext <<_ACEOF
14169 cat confdefs.h
>>conftest.
$ac_ext
14170 cat >>conftest.
$ac_ext <<_ACEOF
14171 /* end confdefs.h. */
14173 /* Override any GCC internal prototype to avoid an error.
14174 Use char because int might match the return type of a GCC
14175 builtin and then its argument prototype would still apply. */
14179 char EGifPutExtensionLast ();
14183 return EGifPutExtensionLast ();
14188 rm -f conftest.
$ac_objext conftest
$ac_exeext
14189 if { (ac_try
="$ac_link"
14190 case "(($ac_try" in
14191 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14192 *) ac_try_echo=$ac_try;;
14194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14195 (eval "$ac_link") 2>conftest.er1
14197 grep -v '^ *+' conftest.er1 >conftest.err
14199 cat conftest.err >&5
14200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14201 (exit $ac_status); } && {
14202 test -z "$ac_c_werror_flag" ||
14203 test ! -s conftest.err
14204 } && test -s conftest$ac_exeext &&
14205 $as_test_x conftest$ac_exeext; then
14206 ac_cv_lib_gif_EGifPutExtensionLast=yes
14208 echo "$as_me: failed program was:" >&5
14209 sed 's/^/| /' conftest.$ac_ext >&5
14211 ac_cv_lib_gif_EGifPutExtensionLast=no
14214 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14215 conftest$ac_exeext conftest.$ac_ext
14216 LIBS=$ac_check_lib_save_LIBS
14218 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14219 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14220 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14230 if test "$HAVE_GIF" = yes; then
14231 ac_gif_lib_name="-lgif"
14234 # If gif_lib.h but no libgif, try libungif.
14235 if test x"$try_libungif" = xyes; then
14236 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14237 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14238 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14239 echo $ECHO_N "(cached) $ECHO_C" >&6
14241 ac_check_lib_save_LIBS=$LIBS
14242 LIBS="-lungif $LIBS"
14243 cat >conftest.$ac_ext <<_ACEOF
14246 cat confdefs.h >>conftest.$ac_ext
14247 cat >>conftest.$ac_ext <<_ACEOF
14248 /* end confdefs.h. */
14250 /* Override any GCC internal prototype to avoid an error.
14251 Use char because int might match the return type of a GCC
14252 builtin and then its argument prototype would still apply. */
14256 char EGifPutExtensionLast ();
14260 return EGifPutExtensionLast ();
14265 rm -f conftest.$ac_objext conftest$ac_exeext
14266 if { (ac_try="$ac_link"
14267 case "(($ac_try" in
14268 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14269 *) ac_try_echo
=$ac_try;;
14271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14272 (eval "$ac_link") 2>conftest.er1
14274 grep -v '^ *+' conftest.er1
>conftest.err
14276 cat conftest.err
>&5
14277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278 (exit $ac_status); } && {
14279 test -z "$ac_c_werror_flag" ||
14280 test ! -s conftest.err
14281 } && test -s conftest
$ac_exeext &&
14282 $as_test_x conftest
$ac_exeext; then
14283 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
14285 echo "$as_me: failed program was:" >&5
14286 sed 's/^/| /' conftest.
$ac_ext >&5
14288 ac_cv_lib_ungif_EGifPutExtensionLast
=no
14291 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14292 conftest
$ac_exeext conftest.
$ac_ext
14293 LIBS
=$ac_check_lib_save_LIBS
14295 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14296 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14297 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14302 if test "$HAVE_GIF" = yes; then
14304 cat >>confdefs.h
<<\_ACEOF
14305 #define LIBGIF -lungif
14308 ac_gif_lib_name
="-lungif"
14312 if test "${HAVE_GIF}" = "yes"; then
14314 cat >>confdefs.h
<<\_ACEOF
14321 if test "${HAVE_X11}" = "yes"; then
14324 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14325 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
14326 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14327 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
14328 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14329 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
14330 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14331 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
14332 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14333 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
14335 if test "X${MISSING}" != X
; then
14336 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
14338 Maybe some development libraries/packages are missing?
14339 If you don't want to link with them give
14341 as options to configure" >&5
14342 echo "$as_me: error: The following required libraries were not found:
14344 Maybe some development libraries/packages are missing?
14345 If you don't want to link with them give
14347 as options to configure" >&2;}
14348 { (exit 1); exit 1; }; }
14352 ### Use -lgpm if available, unless `--with-gpm=no'.
14354 if test "${with_gpm}" != "no"; then
14355 if test "${ac_cv_header_gpm_h+set}" = set; then
14356 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14357 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14358 if test "${ac_cv_header_gpm_h+set}" = set; then
14359 echo $ECHO_N "(cached) $ECHO_C" >&6
14361 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14362 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14364 # Is the header compilable?
14365 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14366 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14367 cat >conftest.
$ac_ext <<_ACEOF
14370 cat confdefs.h
>>conftest.
$ac_ext
14371 cat >>conftest.
$ac_ext <<_ACEOF
14372 /* end confdefs.h. */
14373 $ac_includes_default
14376 rm -f conftest.
$ac_objext
14377 if { (ac_try
="$ac_compile"
14378 case "(($ac_try" in
14379 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14380 *) ac_try_echo=$ac_try;;
14382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14383 (eval "$ac_compile") 2>conftest.er1
14385 grep -v '^ *+' conftest.er1 >conftest.err
14387 cat conftest.err >&5
14388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14389 (exit $ac_status); } && {
14390 test -z "$ac_c_werror_flag" ||
14391 test ! -s conftest.err
14392 } && test -s conftest.$ac_objext; then
14393 ac_header_compiler=yes
14395 echo "$as_me: failed program was:" >&5
14396 sed 's/^/| /' conftest.$ac_ext >&5
14398 ac_header_compiler=no
14401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14402 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14403 echo "${ECHO_T}$ac_header_compiler" >&6; }
14405 # Is the header present?
14406 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14407 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14408 cat >conftest.$ac_ext <<_ACEOF
14411 cat confdefs.h >>conftest.$ac_ext
14412 cat >>conftest.$ac_ext <<_ACEOF
14413 /* end confdefs.h. */
14416 if { (ac_try="$ac_cpp conftest.$ac_ext"
14417 case "(($ac_try" in
14418 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14419 *) ac_try_echo
=$ac_try;;
14421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14422 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14424 grep -v '^ *+' conftest.er1
>conftest.err
14426 cat conftest.err
>&5
14427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14428 (exit $ac_status); } >/dev
/null
&& {
14429 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14430 test ! -s conftest.err
14432 ac_header_preproc
=yes
14434 echo "$as_me: failed program was:" >&5
14435 sed 's/^/| /' conftest.
$ac_ext >&5
14437 ac_header_preproc
=no
14440 rm -f conftest.err conftest.
$ac_ext
14441 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14442 echo "${ECHO_T}$ac_header_preproc" >&6; }
14444 # So? What about this header?
14445 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14447 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14448 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14449 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14450 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14451 ac_header_preproc
=yes
14454 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14455 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14456 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14457 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14458 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14459 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14460 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14461 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14462 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14463 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14464 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14465 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14469 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14470 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14471 if test "${ac_cv_header_gpm_h+set}" = set; then
14472 echo $ECHO_N "(cached) $ECHO_C" >&6
14474 ac_cv_header_gpm_h
=$ac_header_preproc
14476 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14477 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14480 if test $ac_cv_header_gpm_h = yes; then
14481 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14482 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14483 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14484 echo $ECHO_N "(cached) $ECHO_C" >&6
14486 ac_check_lib_save_LIBS
=$LIBS
14488 cat >conftest.
$ac_ext <<_ACEOF
14491 cat confdefs.h
>>conftest.
$ac_ext
14492 cat >>conftest.
$ac_ext <<_ACEOF
14493 /* end confdefs.h. */
14495 /* Override any GCC internal prototype to avoid an error.
14496 Use char because int might match the return type of a GCC
14497 builtin and then its argument prototype would still apply. */
14505 return Gpm_Open ();
14510 rm -f conftest.
$ac_objext conftest
$ac_exeext
14511 if { (ac_try
="$ac_link"
14512 case "(($ac_try" in
14513 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14514 *) ac_try_echo=$ac_try;;
14516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14517 (eval "$ac_link") 2>conftest.er1
14519 grep -v '^ *+' conftest.er1 >conftest.err
14521 cat conftest.err >&5
14522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523 (exit $ac_status); } && {
14524 test -z "$ac_c_werror_flag" ||
14525 test ! -s conftest.err
14526 } && test -s conftest$ac_exeext &&
14527 $as_test_x conftest$ac_exeext; then
14528 ac_cv_lib_gpm_Gpm_Open=yes
14530 echo "$as_me: failed program was:" >&5
14531 sed 's/^/| /' conftest.$ac_ext >&5
14533 ac_cv_lib_gpm_Gpm_Open=no
14536 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14537 conftest$ac_exeext conftest.$ac_ext
14538 LIBS=$ac_check_lib_save_LIBS
14540 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14541 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14542 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14551 if test "${HAVE_GPM}" = "yes"; then
14553 cat >>confdefs.h <<\_ACEOF
14559 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14560 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14561 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14562 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14563 echo $ECHO_N "(cached) $ECHO_C" >&6
14565 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14566 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14568 # Is the header compilable?
14569 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14570 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14571 cat >conftest.$ac_ext <<_ACEOF
14574 cat confdefs.h >>conftest.$ac_ext
14575 cat >>conftest.$ac_ext <<_ACEOF
14576 /* end confdefs.h. */
14577 $ac_includes_default
14578 #include <malloc/malloc.h>
14580 rm -f conftest.$ac_objext
14581 if { (ac_try="$ac_compile"
14582 case "(($ac_try" in
14583 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14584 *) ac_try_echo
=$ac_try;;
14586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14587 (eval "$ac_compile") 2>conftest.er1
14589 grep -v '^ *+' conftest.er1
>conftest.err
14591 cat conftest.err
>&5
14592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14593 (exit $ac_status); } && {
14594 test -z "$ac_c_werror_flag" ||
14595 test ! -s conftest.err
14596 } && test -s conftest.
$ac_objext; then
14597 ac_header_compiler
=yes
14599 echo "$as_me: failed program was:" >&5
14600 sed 's/^/| /' conftest.
$ac_ext >&5
14602 ac_header_compiler
=no
14605 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14606 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14607 echo "${ECHO_T}$ac_header_compiler" >&6; }
14609 # Is the header present?
14610 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14611 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14612 cat >conftest.
$ac_ext <<_ACEOF
14615 cat confdefs.h
>>conftest.
$ac_ext
14616 cat >>conftest.
$ac_ext <<_ACEOF
14617 /* end confdefs.h. */
14618 #include <malloc/malloc.h>
14620 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14621 case "(($ac_try" in
14622 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14623 *) ac_try_echo=$ac_try;;
14625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14626 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14628 grep -v '^ *+' conftest.er1 >conftest.err
14630 cat conftest.err >&5
14631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14632 (exit $ac_status); } >/dev/null && {
14633 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14634 test ! -s conftest.err
14636 ac_header_preproc=yes
14638 echo "$as_me: failed program was:" >&5
14639 sed 's/^/| /' conftest.$ac_ext >&5
14641 ac_header_preproc=no
14644 rm -f conftest.err conftest.$ac_ext
14645 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14646 echo "${ECHO_T}$ac_header_preproc" >&6; }
14648 # So? What about this header?
14649 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14651 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14652 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14653 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14654 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14655 ac_header_preproc=yes
14658 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14659 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14660 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14661 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14662 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14663 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14664 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14665 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14666 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14667 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14668 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14669 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14673 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14674 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14675 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14676 echo $ECHO_N "(cached) $ECHO_C" >&6
14678 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14680 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14681 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14684 if test $ac_cv_header_malloc_malloc_h = yes; then
14686 cat >>confdefs.h <<\_ACEOF
14687 #define HAVE_MALLOC_MALLOC_H 1
14694 ### Use Mac OS X Carbon API to implement GUI.
14695 if test "${HAVE_CARBON}" = "yes"; then
14697 cat >>confdefs.h <<\_ACEOF
14698 #define HAVE_CARBON 1
14701 ## Specify the install directory
14703 if test "${carbon_appdir_x}" != ""; then
14704 case ${carbon_appdir_x} in
14705 y | ye | yes) carbon_appdir=/Applications ;;
14706 * ) carbon_appdir=${carbon_appdir_x} ;;
14709 # We also have mouse menus.
14713 ### Use session management (-lSM -lICE) if available
14715 if test "${HAVE_X11}" = "yes"; then
14716 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14717 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14718 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14719 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14720 echo $ECHO_N "(cached) $ECHO_C" >&6
14722 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14723 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14725 # Is the header compilable?
14726 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14727 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14728 cat >conftest.$ac_ext <<_ACEOF
14731 cat confdefs.h >>conftest.$ac_ext
14732 cat >>conftest.$ac_ext <<_ACEOF
14733 /* end confdefs.h. */
14734 $ac_includes_default
14735 #include <X11/SM/SMlib.h>
14737 rm -f conftest.$ac_objext
14738 if { (ac_try="$ac_compile"
14739 case "(($ac_try" in
14740 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14741 *) ac_try_echo
=$ac_try;;
14743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14744 (eval "$ac_compile") 2>conftest.er1
14746 grep -v '^ *+' conftest.er1
>conftest.err
14748 cat conftest.err
>&5
14749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750 (exit $ac_status); } && {
14751 test -z "$ac_c_werror_flag" ||
14752 test ! -s conftest.err
14753 } && test -s conftest.
$ac_objext; then
14754 ac_header_compiler
=yes
14756 echo "$as_me: failed program was:" >&5
14757 sed 's/^/| /' conftest.
$ac_ext >&5
14759 ac_header_compiler
=no
14762 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14763 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14764 echo "${ECHO_T}$ac_header_compiler" >&6; }
14766 # Is the header present?
14767 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14768 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14769 cat >conftest.
$ac_ext <<_ACEOF
14772 cat confdefs.h
>>conftest.
$ac_ext
14773 cat >>conftest.
$ac_ext <<_ACEOF
14774 /* end confdefs.h. */
14775 #include <X11/SM/SMlib.h>
14777 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14778 case "(($ac_try" in
14779 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14780 *) ac_try_echo=$ac_try;;
14782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14783 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14785 grep -v '^ *+' conftest.er1 >conftest.err
14787 cat conftest.err >&5
14788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14789 (exit $ac_status); } >/dev/null && {
14790 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14791 test ! -s conftest.err
14793 ac_header_preproc=yes
14795 echo "$as_me: failed program was:" >&5
14796 sed 's/^/| /' conftest.$ac_ext >&5
14798 ac_header_preproc=no
14801 rm -f conftest.err conftest.$ac_ext
14802 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14803 echo "${ECHO_T}$ac_header_preproc" >&6; }
14805 # So? What about this header?
14806 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14808 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14809 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14810 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14811 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14812 ac_header_preproc=yes
14815 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14816 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14817 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14818 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14819 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14820 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14821 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14822 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14823 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14824 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14825 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14826 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14830 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14831 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14832 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14833 echo $ECHO_N "(cached) $ECHO_C" >&6
14835 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14837 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14838 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14841 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14842 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14843 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14844 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14845 echo $ECHO_N "(cached) $ECHO_C" >&6
14847 ac_check_lib_save_LIBS=$LIBS
14848 LIBS="-lSM -lICE $LIBS"
14849 cat >conftest.$ac_ext <<_ACEOF
14852 cat confdefs.h >>conftest.$ac_ext
14853 cat >>conftest.$ac_ext <<_ACEOF
14854 /* end confdefs.h. */
14856 /* Override any GCC internal prototype to avoid an error.
14857 Use char because int might match the return type of a GCC
14858 builtin and then its argument prototype would still apply. */
14862 char SmcOpenConnection ();
14866 return SmcOpenConnection ();
14871 rm -f conftest.$ac_objext conftest$ac_exeext
14872 if { (ac_try="$ac_link"
14873 case "(($ac_try" in
14874 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14875 *) ac_try_echo
=$ac_try;;
14877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14878 (eval "$ac_link") 2>conftest.er1
14880 grep -v '^ *+' conftest.er1
>conftest.err
14882 cat conftest.err
>&5
14883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14884 (exit $ac_status); } && {
14885 test -z "$ac_c_werror_flag" ||
14886 test ! -s conftest.err
14887 } && test -s conftest
$ac_exeext &&
14888 $as_test_x conftest
$ac_exeext; then
14889 ac_cv_lib_SM_SmcOpenConnection
=yes
14891 echo "$as_me: failed program was:" >&5
14892 sed 's/^/| /' conftest.
$ac_ext >&5
14894 ac_cv_lib_SM_SmcOpenConnection
=no
14897 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14898 conftest
$ac_exeext conftest.
$ac_ext
14899 LIBS
=$ac_check_lib_save_LIBS
14901 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14902 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14903 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14911 if test "${HAVE_X_SM}" = "yes"; then
14913 cat >>confdefs.h
<<\_ACEOF
14914 #define HAVE_X_SM 1
14919 *) LIBS
="-lSM -lICE $LIBS" ;;
14924 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14925 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14926 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14927 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14928 echo $ECHO_N "(cached) $ECHO_C" >&6
14930 cat >conftest.
$ac_ext <<_ACEOF
14933 cat confdefs.h
>>conftest.
$ac_ext
14934 cat >>conftest.
$ac_ext <<_ACEOF
14935 /* end confdefs.h. */
14945 rm -f conftest.
$ac_objext conftest
$ac_exeext
14946 if { (ac_try
="$ac_link"
14947 case "(($ac_try" in
14948 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14949 *) ac_try_echo=$ac_try;;
14951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14952 (eval "$ac_link") 2>conftest.er1
14954 grep -v '^ *+' conftest.er1 >conftest.err
14956 cat conftest.err >&5
14957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14958 (exit $ac_status); } && {
14959 test -z "$ac_c_werror_flag" ||
14960 test ! -s conftest.err
14961 } && test -s conftest$ac_exeext &&
14962 $as_test_x conftest$ac_exeext; then
14963 emacs_cv_netdb_declares_h_errno=yes
14965 echo "$as_me: failed program was:" >&5
14966 sed 's/^/| /' conftest.$ac_ext >&5
14968 emacs_cv_netdb_declares_h_errno=no
14971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14972 conftest$ac_exeext conftest.$ac_ext
14974 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
14975 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
14976 if test $emacs_cv_netdb_declares_h_errno = yes; then
14978 cat >>confdefs.h <<\_ACEOF
14979 #define HAVE_H_ERRNO 1
14984 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14985 # for constant arguments. Useless!
14986 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
14987 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
14988 if test "${ac_cv_working_alloca_h+set}" = set; then
14989 echo $ECHO_N "(cached) $ECHO_C" >&6
14991 cat >conftest.$ac_ext <<_ACEOF
14994 cat confdefs.h >>conftest.$ac_ext
14995 cat >>conftest.$ac_ext <<_ACEOF
14996 /* end confdefs.h. */
14997 #include <alloca.h>
15001 char *p = (char *) alloca (2 * sizeof (int));
15007 rm -f conftest.$ac_objext conftest$ac_exeext
15008 if { (ac_try="$ac_link"
15009 case "(($ac_try" in
15010 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15011 *) ac_try_echo
=$ac_try;;
15013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15014 (eval "$ac_link") 2>conftest.er1
15016 grep -v '^ *+' conftest.er1
>conftest.err
15018 cat conftest.err
>&5
15019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15020 (exit $ac_status); } && {
15021 test -z "$ac_c_werror_flag" ||
15022 test ! -s conftest.err
15023 } && test -s conftest
$ac_exeext &&
15024 $as_test_x conftest
$ac_exeext; then
15025 ac_cv_working_alloca_h
=yes
15027 echo "$as_me: failed program was:" >&5
15028 sed 's/^/| /' conftest.
$ac_ext >&5
15030 ac_cv_working_alloca_h
=no
15033 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15034 conftest
$ac_exeext conftest.
$ac_ext
15036 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15037 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15038 if test $ac_cv_working_alloca_h = yes; then
15040 cat >>confdefs.h
<<\_ACEOF
15041 #define HAVE_ALLOCA_H 1
15046 { echo "$as_me:$LINENO: checking for alloca" >&5
15047 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15048 if test "${ac_cv_func_alloca_works+set}" = set; then
15049 echo $ECHO_N "(cached) $ECHO_C" >&6
15051 cat >conftest.
$ac_ext <<_ACEOF
15054 cat confdefs.h
>>conftest.
$ac_ext
15055 cat >>conftest.
$ac_ext <<_ACEOF
15056 /* end confdefs.h. */
15058 # define alloca __builtin_alloca
15061 # include <malloc.h>
15062 # define alloca _alloca
15064 # ifdef HAVE_ALLOCA_H
15065 # include <alloca.h>
15070 # ifndef alloca /* predefined by HP cc +Olibcalls */
15081 char *p = (char *) alloca (1);
15087 rm -f conftest.
$ac_objext conftest
$ac_exeext
15088 if { (ac_try
="$ac_link"
15089 case "(($ac_try" in
15090 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15091 *) ac_try_echo=$ac_try;;
15093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15094 (eval "$ac_link") 2>conftest.er1
15096 grep -v '^ *+' conftest.er1 >conftest.err
15098 cat conftest.err >&5
15099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15100 (exit $ac_status); } && {
15101 test -z "$ac_c_werror_flag" ||
15102 test ! -s conftest.err
15103 } && test -s conftest$ac_exeext &&
15104 $as_test_x conftest$ac_exeext; then
15105 ac_cv_func_alloca_works=yes
15107 echo "$as_me: failed program was:" >&5
15108 sed 's/^/| /' conftest.$ac_ext >&5
15110 ac_cv_func_alloca_works=no
15113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15114 conftest$ac_exeext conftest.$ac_ext
15116 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15117 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15119 if test $ac_cv_func_alloca_works = yes; then
15121 cat >>confdefs.h <<\_ACEOF
15122 #define HAVE_ALLOCA 1
15126 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15127 # that cause trouble. Some versions do not even contain alloca or
15128 # contain a buggy version. If you still want to use their alloca,
15129 # use ar to extract alloca.o from them instead of compiling alloca.c.
15131 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15133 cat >>confdefs.h <<\_ACEOF
15138 { echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
15139 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks...
$ECHO_C" >&6; }
15140 if test "${ac_cv_os_cray+set}" = set; then
15141 echo $ECHO_N "(cached
) $ECHO_C" >&6
15143 cat >conftest.$ac_ext <<_ACEOF
15146 cat confdefs.h >>conftest.$ac_ext
15147 cat >>conftest.$ac_ext <<_ACEOF
15148 /* end confdefs.h. */
15149 #if defined CRAY && ! defined CRAY2
15156 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
15157 $EGREP "webecray
" >/dev/null 2>&1; then
15165 { echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
15166 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15167 if test $ac_cv_os_cray = yes; then
15168 for ac_func in _getb67 GETB67 getb67; do
15169 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15170 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15171 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15172 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15173 echo $ECHO_N "(cached
) $ECHO_C" >&6
15175 cat >conftest.$ac_ext <<_ACEOF
15178 cat confdefs.h >>conftest.$ac_ext
15179 cat >>conftest.$ac_ext <<_ACEOF
15180 /* end confdefs.h. */
15181 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15182 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15183 #define $ac_func innocuous_$ac_func
15185 /* System header to define __stub macros and hopefully few prototypes,
15186 which can conflict with char $ac_func (); below.
15187 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15188 <limits.h> exists even on freestanding compilers. */
15191 # include <limits.h>
15193 # include <assert.h>
15198 /* Override any GCC internal prototype to avoid an error.
15199 Use char because int might match the return type of a GCC
15200 builtin and then its argument prototype would still apply. */
15205 /* The GNU C library defines this for functions which it implements
15206 to always fail with ENOSYS. Some functions are actually named
15207 something starting with __ and the normal name is an alias. */
15208 #if defined __stub_$ac_func || defined __stub___$ac_func
15215 return $ac_func ();
15220 rm -f conftest.$ac_objext conftest$ac_exeext
15221 if { (ac_try="$ac_link"
15222 case "(($ac_try" in
15223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15224 *) ac_try_echo=$ac_try;;
15226 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15227 (eval "$ac_link") 2>conftest.er1
15229 grep -v '^ *+' conftest.er1 >conftest.err
15231 cat conftest.err >&5
15232 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15233 (exit $ac_status); } && {
15234 test -z "$ac_c_werror_flag" ||
15235 test ! -s conftest.err
15236 } && test -s conftest$ac_exeext &&
15237 $as_test_x conftest$ac_exeext; then
15238 eval "$as_ac_var=yes"
15240 echo "$as_me: failed program was
:" >&5
15241 sed 's/^/| /' conftest.$ac_ext >&5
15243 eval "$as_ac_var=no
"
15246 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15247 conftest$ac_exeext conftest.$ac_ext
15249 ac_res=`eval echo '${'$as_ac_var'}'`
15250 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15251 echo "${ECHO_T}$ac_res" >&6; }
15252 if test `eval echo '${'$as_ac_var'}'` = yes; then
15254 cat >>confdefs.h <<_ACEOF
15255 #define CRAY_STACKSEG_END $ac_func
15264 { echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
15265 echo $ECHO_N "checking stack direction
for C alloca...
$ECHO_C" >&6; }
15266 if test "${ac_cv_c_stack_direction+set}" = set; then
15267 echo $ECHO_N "(cached
) $ECHO_C" >&6
15269 if test "$cross_compiling" = yes; then
15270 ac_cv_c_stack_direction=0
15272 cat >conftest.$ac_ext <<_ACEOF
15275 cat confdefs.h >>conftest.$ac_ext
15276 cat >>conftest.$ac_ext <<_ACEOF
15277 /* end confdefs.h. */
15278 $ac_includes_default
15280 find_stack_direction ()
15282 static char *addr = 0;
15287 return find_stack_direction ();
15290 return (&dummy > addr) ? 1 : -1;
15296 return find_stack_direction () < 0;
15299 rm -f conftest$ac_exeext
15300 if { (ac_try="$ac_link"
15301 case "(($ac_try" in
15302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15303 *) ac_try_echo=$ac_try;;
15305 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15306 (eval "$ac_link") 2>&5
15308 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15309 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15310 { (case "(($ac_try" in
15311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15312 *) ac_try_echo=$ac_try;;
15314 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15315 (eval "$ac_try") 2>&5
15317 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15318 (exit $ac_status); }; }; then
15319 ac_cv_c_stack_direction=1
15321 echo "$as_me: program exited with status
$ac_status" >&5
15322 echo "$as_me: failed program was
:" >&5
15323 sed 's/^/| /' conftest.$ac_ext >&5
15325 ( exit $ac_status )
15326 ac_cv_c_stack_direction=-1
15328 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15333 { echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
15334 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15336 cat >>confdefs.h <<_ACEOF
15337 #define STACK_DIRECTION $ac_cv_c_stack_direction
15344 if test x"$ac_cv_func_alloca_works" != xyes; then
15345 { { echo "$as_me:$LINENO: error
: a system implementation of alloca is required
" >&5
15346 echo "$as_me: error
: a system implementation of alloca is required
" >&2;}
15347 { (exit 1); exit 1; }; }
15350 # fmod, logb, and frexp are found in -lm on most systems.
15351 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15353 { echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
15354 echo $ECHO_N "checking
for sqrt
in -lm...
$ECHO_C" >&6; }
15355 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15356 echo $ECHO_N "(cached
) $ECHO_C" >&6
15358 ac_check_lib_save_LIBS=$LIBS
15360 cat >conftest.$ac_ext <<_ACEOF
15363 cat confdefs.h >>conftest.$ac_ext
15364 cat >>conftest.$ac_ext <<_ACEOF
15365 /* end confdefs.h. */
15367 /* Override any GCC internal prototype to avoid an error.
15368 Use char because int might match the return type of a GCC
15369 builtin and then its argument prototype would still apply. */
15382 rm -f conftest.$ac_objext conftest$ac_exeext
15383 if { (ac_try="$ac_link"
15384 case "(($ac_try" in
15385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15386 *) ac_try_echo=$ac_try;;
15388 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15389 (eval "$ac_link") 2>conftest.er1
15391 grep -v '^ *+' conftest.er1 >conftest.err
15393 cat conftest.err >&5
15394 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15395 (exit $ac_status); } && {
15396 test -z "$ac_c_werror_flag" ||
15397 test ! -s conftest.err
15398 } && test -s conftest$ac_exeext &&
15399 $as_test_x conftest$ac_exeext; then
15400 ac_cv_lib_m_sqrt=yes
15402 echo "$as_me: failed program was
:" >&5
15403 sed 's/^/| /' conftest.$ac_ext >&5
15405 ac_cv_lib_m_sqrt=no
15408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15409 conftest$ac_exeext conftest.$ac_ext
15410 LIBS=$ac_check_lib_save_LIBS
15412 { echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
15413 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15414 if test $ac_cv_lib_m_sqrt = yes; then
15415 cat >>confdefs.h <<_ACEOF
15416 #define HAVE_LIBM 1
15424 # Check for mail-locking functions in a "mail" library. Probably this should
15425 # have the same check as for liblockfile below.
15427 { echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
15428 echo $ECHO_N "checking
for maillock
in -lmail...
$ECHO_C" >&6; }
15429 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15430 echo $ECHO_N "(cached
) $ECHO_C" >&6
15432 ac_check_lib_save_LIBS=$LIBS
15433 LIBS="-lmail $LIBS"
15434 cat >conftest.$ac_ext <<_ACEOF
15437 cat confdefs.h >>conftest.$ac_ext
15438 cat >>conftest.$ac_ext <<_ACEOF
15439 /* end confdefs.h. */
15441 /* Override any GCC internal prototype to avoid an error.
15442 Use char because int might match the return type of a GCC
15443 builtin and then its argument prototype would still apply. */
15451 return maillock ();
15456 rm -f conftest.$ac_objext conftest$ac_exeext
15457 if { (ac_try="$ac_link"
15458 case "(($ac_try" in
15459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15460 *) ac_try_echo=$ac_try;;
15462 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15463 (eval "$ac_link") 2>conftest.er1
15465 grep -v '^ *+' conftest.er1 >conftest.err
15467 cat conftest.err >&5
15468 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15469 (exit $ac_status); } && {
15470 test -z "$ac_c_werror_flag" ||
15471 test ! -s conftest.err
15472 } && test -s conftest$ac_exeext &&
15473 $as_test_x conftest$ac_exeext; then
15474 ac_cv_lib_mail_maillock=yes
15476 echo "$as_me: failed program was
:" >&5
15477 sed 's/^/| /' conftest.$ac_ext >&5
15479 ac_cv_lib_mail_maillock=no
15482 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15483 conftest$ac_exeext conftest.$ac_ext
15484 LIBS=$ac_check_lib_save_LIBS
15486 { echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
15487 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15488 if test $ac_cv_lib_mail_maillock = yes; then
15489 cat >>confdefs.h <<_ACEOF
15490 #define HAVE_LIBMAIL 1
15493 LIBS="-lmail $LIBS"
15498 { echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
15499 echo $ECHO_N "checking
for maillock
in -llockfile...
$ECHO_C" >&6; }
15500 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15501 echo $ECHO_N "(cached
) $ECHO_C" >&6
15503 ac_check_lib_save_LIBS=$LIBS
15504 LIBS="-llockfile $LIBS"
15505 cat >conftest.$ac_ext <<_ACEOF
15508 cat confdefs.h >>conftest.$ac_ext
15509 cat >>conftest.$ac_ext <<_ACEOF
15510 /* end confdefs.h. */
15512 /* Override any GCC internal prototype to avoid an error.
15513 Use char because int might match the return type of a GCC
15514 builtin and then its argument prototype would still apply. */
15522 return maillock ();
15527 rm -f conftest.$ac_objext conftest$ac_exeext
15528 if { (ac_try="$ac_link"
15529 case "(($ac_try" in
15530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15531 *) ac_try_echo=$ac_try;;
15533 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15534 (eval "$ac_link") 2>conftest.er1
15536 grep -v '^ *+' conftest.er1 >conftest.err
15538 cat conftest.err >&5
15539 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15540 (exit $ac_status); } && {
15541 test -z "$ac_c_werror_flag" ||
15542 test ! -s conftest.err
15543 } && test -s conftest$ac_exeext &&
15544 $as_test_x conftest$ac_exeext; then
15545 ac_cv_lib_lockfile_maillock=yes
15547 echo "$as_me: failed program was
:" >&5
15548 sed 's/^/| /' conftest.$ac_ext >&5
15550 ac_cv_lib_lockfile_maillock=no
15553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15554 conftest$ac_exeext conftest.$ac_ext
15555 LIBS=$ac_check_lib_save_LIBS
15557 { echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
15558 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15559 if test $ac_cv_lib_lockfile_maillock = yes; then
15560 cat >>confdefs.h <<_ACEOF
15561 #define HAVE_LIBLOCKFILE 1
15564 LIBS="-llockfile $LIBS"
15568 # If we have the shared liblockfile, assume we must use it for mail
15569 # locking (e.g. Debian). If we couldn't link against liblockfile
15570 # (no liblockfile.a installed), ensure that we don't need to.
15571 if test "$ac_cv_lib_lockfile_maillock" = no; then
15572 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
15573 set dummy liblockfile.so; ac_word=$2
15574 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
15575 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
15576 if test "${ac_cv_prog_liblockfile+set}" = set; then
15577 echo $ECHO_N "(cached
) $ECHO_C" >&6
15579 if test -n "$liblockfile"; then
15580 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15583 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
15584 for as_dir in $as_dummy
15587 test -z "$as_dir" && as_dir=.
15588 for ac_exec_ext in '' $ac_executable_extensions; do
15589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15590 ac_cv_prog_liblockfile="yes"
15591 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15598 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
15601 liblockfile=$ac_cv_prog_liblockfile
15602 if test -n "$liblockfile"; then
15603 { echo "$as_me:$LINENO: result
: $liblockfile" >&5
15604 echo "${ECHO_T}$liblockfile" >&6; }
15606 { echo "$as_me:$LINENO: result
: no
" >&5
15607 echo "${ECHO_T}no
" >&6; }
15611 if test $ac_cv_prog_liblockfile = yes; then
15612 { { echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
15613 This probably means that movemail could lose mail.
15614 There may be a \`development' package to
install containing liblockfile.
" >&5
15615 echo "$as_me: error
: Shared liblockfile found but can
't link against it.
15616 This probably means that movemail could lose mail.
15617 There may be a \`development' package to
install containing liblockfile.
" >&2;}
15618 { (exit 1); exit 1; }; }
15623 for ac_func in touchlock
15625 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15626 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15627 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15628 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15629 echo $ECHO_N "(cached
) $ECHO_C" >&6
15631 cat >conftest.$ac_ext <<_ACEOF
15634 cat confdefs.h >>conftest.$ac_ext
15635 cat >>conftest.$ac_ext <<_ACEOF
15636 /* end confdefs.h. */
15637 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15638 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15639 #define $ac_func innocuous_$ac_func
15641 /* System header to define __stub macros and hopefully few prototypes,
15642 which can conflict with char $ac_func (); below.
15643 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15644 <limits.h> exists even on freestanding compilers. */
15647 # include <limits.h>
15649 # include <assert.h>
15654 /* Override any GCC internal prototype to avoid an error.
15655 Use char because int might match the return type of a GCC
15656 builtin and then its argument prototype would still apply. */
15661 /* The GNU C library defines this for functions which it implements
15662 to always fail with ENOSYS. Some functions are actually named
15663 something starting with __ and the normal name is an alias. */
15664 #if defined __stub_$ac_func || defined __stub___$ac_func
15671 return $ac_func ();
15676 rm -f conftest.$ac_objext conftest$ac_exeext
15677 if { (ac_try="$ac_link"
15678 case "(($ac_try" in
15679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15680 *) ac_try_echo=$ac_try;;
15682 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15683 (eval "$ac_link") 2>conftest.er1
15685 grep -v '^ *+' conftest.er1 >conftest.err
15687 cat conftest.err >&5
15688 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15689 (exit $ac_status); } && {
15690 test -z "$ac_c_werror_flag" ||
15691 test ! -s conftest.err
15692 } && test -s conftest$ac_exeext &&
15693 $as_test_x conftest$ac_exeext; then
15694 eval "$as_ac_var=yes"
15696 echo "$as_me: failed program was
:" >&5
15697 sed 's/^/| /' conftest.$ac_ext >&5
15699 eval "$as_ac_var=no
"
15702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15703 conftest$ac_exeext conftest.$ac_ext
15705 ac_res=`eval echo '${'$as_ac_var'}'`
15706 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15707 echo "${ECHO_T}$ac_res" >&6; }
15708 if test `eval echo '${'$as_ac_var'}'` = yes; then
15709 cat >>confdefs.h <<_ACEOF
15710 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15717 for ac_header in maillock.h
15719 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15720 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15721 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15722 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15723 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15724 echo $ECHO_N "(cached
) $ECHO_C" >&6
15726 ac_res=`eval echo '${'$as_ac_Header'}'`
15727 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15728 echo "${ECHO_T}$ac_res" >&6; }
15730 # Is the header compilable?
15731 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15732 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15733 cat >conftest.$ac_ext <<_ACEOF
15736 cat confdefs.h >>conftest.$ac_ext
15737 cat >>conftest.$ac_ext <<_ACEOF
15738 /* end confdefs.h. */
15739 $ac_includes_default
15740 #include <$ac_header>
15742 rm -f conftest.$ac_objext
15743 if { (ac_try="$ac_compile"
15744 case "(($ac_try" in
15745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15746 *) ac_try_echo=$ac_try;;
15748 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15749 (eval "$ac_compile") 2>conftest.er1
15751 grep -v '^ *+' conftest.er1 >conftest.err
15753 cat conftest.err >&5
15754 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15755 (exit $ac_status); } && {
15756 test -z "$ac_c_werror_flag" ||
15757 test ! -s conftest.err
15758 } && test -s conftest.$ac_objext; then
15759 ac_header_compiler=yes
15761 echo "$as_me: failed program was
:" >&5
15762 sed 's/^/| /' conftest.$ac_ext >&5
15764 ac_header_compiler=no
15767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15768 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15769 echo "${ECHO_T}$ac_header_compiler" >&6; }
15771 # Is the header present?
15772 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15773 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15774 cat >conftest.$ac_ext <<_ACEOF
15777 cat confdefs.h >>conftest.$ac_ext
15778 cat >>conftest.$ac_ext <<_ACEOF
15779 /* end confdefs.h. */
15780 #include <$ac_header>
15782 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15783 case "(($ac_try" in
15784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15785 *) ac_try_echo=$ac_try;;
15787 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15788 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15790 grep -v '^ *+' conftest.er1 >conftest.err
15792 cat conftest.err >&5
15793 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15794 (exit $ac_status); } >/dev/null && {
15795 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15796 test ! -s conftest.err
15798 ac_header_preproc=yes
15800 echo "$as_me: failed program was
:" >&5
15801 sed 's/^/| /' conftest.$ac_ext >&5
15803 ac_header_preproc=no
15806 rm -f conftest.err conftest.$ac_ext
15807 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15808 echo "${ECHO_T}$ac_header_preproc" >&6; }
15810 # So? What about this header?
15811 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15813 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15814 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15815 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15816 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15817 ac_header_preproc=yes
15820 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15821 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15822 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15823 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15824 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15825 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15826 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15827 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15828 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15829 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15830 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15831 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15835 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15836 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15837 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15838 echo $ECHO_N "(cached
) $ECHO_C" >&6
15840 eval "$as_ac_Header=\
$ac_header_preproc"
15842 ac_res=`eval echo '${'$as_ac_Header'}'`
15843 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15844 echo "${ECHO_T}$ac_res" >&6; }
15847 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15848 cat >>confdefs.h <<_ACEOF
15849 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15926 for ac_func in gethostname getdomainname dup2 \
15927 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15928 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
15929 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15930 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15931 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15932 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15933 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15934 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15936 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15937 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15938 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15939 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15940 echo $ECHO_N "(cached
) $ECHO_C" >&6
15942 cat >conftest.$ac_ext <<_ACEOF
15945 cat confdefs.h >>conftest.$ac_ext
15946 cat >>conftest.$ac_ext <<_ACEOF
15947 /* end confdefs.h. */
15948 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15949 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15950 #define $ac_func innocuous_$ac_func
15952 /* System header to define __stub macros and hopefully few prototypes,
15953 which can conflict with char $ac_func (); below.
15954 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15955 <limits.h> exists even on freestanding compilers. */
15958 # include <limits.h>
15960 # include <assert.h>
15965 /* Override any GCC internal prototype to avoid an error.
15966 Use char because int might match the return type of a GCC
15967 builtin and then its argument prototype would still apply. */
15972 /* The GNU C library defines this for functions which it implements
15973 to always fail with ENOSYS. Some functions are actually named
15974 something starting with __ and the normal name is an alias. */
15975 #if defined __stub_$ac_func || defined __stub___$ac_func
15982 return $ac_func ();
15987 rm -f conftest.$ac_objext conftest$ac_exeext
15988 if { (ac_try="$ac_link"
15989 case "(($ac_try" in
15990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15991 *) ac_try_echo=$ac_try;;
15993 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15994 (eval "$ac_link") 2>conftest.er1
15996 grep -v '^ *+' conftest.er1 >conftest.err
15998 cat conftest.err >&5
15999 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16000 (exit $ac_status); } && {
16001 test -z "$ac_c_werror_flag" ||
16002 test ! -s conftest.err
16003 } && test -s conftest$ac_exeext &&
16004 $as_test_x conftest$ac_exeext; then
16005 eval "$as_ac_var=yes"
16007 echo "$as_me: failed program was
:" >&5
16008 sed 's/^/| /' conftest.$ac_ext >&5
16010 eval "$as_ac_var=no
"
16013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16014 conftest$ac_exeext conftest.$ac_ext
16016 ac_res=`eval echo '${'$as_ac_var'}'`
16017 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16018 echo "${ECHO_T}$ac_res" >&6; }
16019 if test `eval echo '${'$as_ac_var'}'` = yes; then
16020 cat >>confdefs.h <<_ACEOF
16021 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16029 for ac_header in sys/un.h
16031 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16032 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16033 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16034 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16035 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16036 echo $ECHO_N "(cached
) $ECHO_C" >&6
16038 ac_res=`eval echo '${'$as_ac_Header'}'`
16039 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16040 echo "${ECHO_T}$ac_res" >&6; }
16042 # Is the header compilable?
16043 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16044 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16045 cat >conftest.$ac_ext <<_ACEOF
16048 cat confdefs.h >>conftest.$ac_ext
16049 cat >>conftest.$ac_ext <<_ACEOF
16050 /* end confdefs.h. */
16051 $ac_includes_default
16052 #include <$ac_header>
16054 rm -f conftest.$ac_objext
16055 if { (ac_try="$ac_compile"
16056 case "(($ac_try" in
16057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16058 *) ac_try_echo=$ac_try;;
16060 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16061 (eval "$ac_compile") 2>conftest.er1
16063 grep -v '^ *+' conftest.er1 >conftest.err
16065 cat conftest.err >&5
16066 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16067 (exit $ac_status); } && {
16068 test -z "$ac_c_werror_flag" ||
16069 test ! -s conftest.err
16070 } && test -s conftest.$ac_objext; then
16071 ac_header_compiler=yes
16073 echo "$as_me: failed program was
:" >&5
16074 sed 's/^/| /' conftest.$ac_ext >&5
16076 ac_header_compiler=no
16079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16080 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16081 echo "${ECHO_T}$ac_header_compiler" >&6; }
16083 # Is the header present?
16084 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16085 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16086 cat >conftest.$ac_ext <<_ACEOF
16089 cat confdefs.h >>conftest.$ac_ext
16090 cat >>conftest.$ac_ext <<_ACEOF
16091 /* end confdefs.h. */
16092 #include <$ac_header>
16094 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16095 case "(($ac_try" in
16096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16097 *) ac_try_echo=$ac_try;;
16099 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16100 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16102 grep -v '^ *+' conftest.er1 >conftest.err
16104 cat conftest.err >&5
16105 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16106 (exit $ac_status); } >/dev/null && {
16107 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16108 test ! -s conftest.err
16110 ac_header_preproc=yes
16112 echo "$as_me: failed program was
:" >&5
16113 sed 's/^/| /' conftest.$ac_ext >&5
16115 ac_header_preproc=no
16118 rm -f conftest.err conftest.$ac_ext
16119 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16120 echo "${ECHO_T}$ac_header_preproc" >&6; }
16122 # So? What about this header?
16123 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16125 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16126 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16127 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16128 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16129 ac_header_preproc=yes
16132 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16133 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16134 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16135 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16136 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16137 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16138 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16139 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16140 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16141 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16142 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16143 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16147 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16148 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16149 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16150 echo $ECHO_N "(cached
) $ECHO_C" >&6
16152 eval "$as_ac_Header=\
$ac_header_preproc"
16154 ac_res=`eval echo '${'$as_ac_Header'}'`
16155 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16156 echo "${ECHO_T}$ac_res" >&6; }
16159 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16160 cat >>confdefs.h <<_ACEOF
16161 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16173 for ac_header in $ac_header_list
16175 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16176 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16177 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16178 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16179 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16180 echo $ECHO_N "(cached
) $ECHO_C" >&6
16182 ac_res=`eval echo '${'$as_ac_Header'}'`
16183 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16184 echo "${ECHO_T}$ac_res" >&6; }
16186 # Is the header compilable?
16187 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16188 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16189 cat >conftest.$ac_ext <<_ACEOF
16192 cat confdefs.h >>conftest.$ac_ext
16193 cat >>conftest.$ac_ext <<_ACEOF
16194 /* end confdefs.h. */
16195 $ac_includes_default
16196 #include <$ac_header>
16198 rm -f conftest.$ac_objext
16199 if { (ac_try="$ac_compile"
16200 case "(($ac_try" in
16201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16202 *) ac_try_echo=$ac_try;;
16204 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16205 (eval "$ac_compile") 2>conftest.er1
16207 grep -v '^ *+' conftest.er1 >conftest.err
16209 cat conftest.err >&5
16210 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16211 (exit $ac_status); } && {
16212 test -z "$ac_c_werror_flag" ||
16213 test ! -s conftest.err
16214 } && test -s conftest.$ac_objext; then
16215 ac_header_compiler=yes
16217 echo "$as_me: failed program was
:" >&5
16218 sed 's/^/| /' conftest.$ac_ext >&5
16220 ac_header_compiler=no
16223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16224 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16225 echo "${ECHO_T}$ac_header_compiler" >&6; }
16227 # Is the header present?
16228 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16229 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16230 cat >conftest.$ac_ext <<_ACEOF
16233 cat confdefs.h >>conftest.$ac_ext
16234 cat >>conftest.$ac_ext <<_ACEOF
16235 /* end confdefs.h. */
16236 #include <$ac_header>
16238 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16239 case "(($ac_try" in
16240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16241 *) ac_try_echo=$ac_try;;
16243 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16244 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16246 grep -v '^ *+' conftest.er1 >conftest.err
16248 cat conftest.err >&5
16249 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16250 (exit $ac_status); } >/dev/null && {
16251 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16252 test ! -s conftest.err
16254 ac_header_preproc=yes
16256 echo "$as_me: failed program was
:" >&5
16257 sed 's/^/| /' conftest.$ac_ext >&5
16259 ac_header_preproc=no
16262 rm -f conftest.err conftest.$ac_ext
16263 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16264 echo "${ECHO_T}$ac_header_preproc" >&6; }
16266 # So? What about this header?
16267 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16269 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16270 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16271 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16272 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16273 ac_header_preproc=yes
16276 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16277 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16278 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16279 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16280 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16281 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16282 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16283 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16284 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16285 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16286 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16287 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16291 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16292 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16293 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16294 echo $ECHO_N "(cached
) $ECHO_C" >&6
16296 eval "$as_ac_Header=\
$ac_header_preproc"
16298 ac_res=`eval echo '${'$as_ac_Header'}'`
16299 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16300 echo "${ECHO_T}$ac_res" >&6; }
16303 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16304 cat >>confdefs.h <<_ACEOF
16305 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16320 for ac_func in $ac_func_list
16322 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16323 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16324 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16325 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16326 echo $ECHO_N "(cached
) $ECHO_C" >&6
16328 cat >conftest.$ac_ext <<_ACEOF
16331 cat confdefs.h >>conftest.$ac_ext
16332 cat >>conftest.$ac_ext <<_ACEOF
16333 /* end confdefs.h. */
16334 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16335 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16336 #define $ac_func innocuous_$ac_func
16338 /* System header to define __stub macros and hopefully few prototypes,
16339 which can conflict with char $ac_func (); below.
16340 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16341 <limits.h> exists even on freestanding compilers. */
16344 # include <limits.h>
16346 # include <assert.h>
16351 /* Override any GCC internal prototype to avoid an error.
16352 Use char because int might match the return type of a GCC
16353 builtin and then its argument prototype would still apply. */
16358 /* The GNU C library defines this for functions which it implements
16359 to always fail with ENOSYS. Some functions are actually named
16360 something starting with __ and the normal name is an alias. */
16361 #if defined __stub_$ac_func || defined __stub___$ac_func
16368 return $ac_func ();
16373 rm -f conftest.$ac_objext conftest$ac_exeext
16374 if { (ac_try="$ac_link"
16375 case "(($ac_try" in
16376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16377 *) ac_try_echo=$ac_try;;
16379 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16380 (eval "$ac_link") 2>conftest.er1
16382 grep -v '^ *+' conftest.er1 >conftest.err
16384 cat conftest.err >&5
16385 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16386 (exit $ac_status); } && {
16387 test -z "$ac_c_werror_flag" ||
16388 test ! -s conftest.err
16389 } && test -s conftest$ac_exeext &&
16390 $as_test_x conftest$ac_exeext; then
16391 eval "$as_ac_var=yes"
16393 echo "$as_me: failed program was
:" >&5
16394 sed 's/^/| /' conftest.$ac_ext >&5
16396 eval "$as_ac_var=no
"
16399 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16400 conftest$ac_exeext conftest.$ac_ext
16402 ac_res=`eval echo '${'$as_ac_var'}'`
16403 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16404 echo "${ECHO_T}$ac_res" >&6; }
16405 if test `eval echo '${'$as_ac_var'}'` = yes; then
16406 cat >>confdefs.h <<_ACEOF
16407 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16429 { echo "$as_me:$LINENO: checking
for working mktime
" >&5
16430 echo $ECHO_N "checking
for working mktime...
$ECHO_C" >&6; }
16431 if test "${ac_cv_func_working_mktime+set}" = set; then
16432 echo $ECHO_N "(cached
) $ECHO_C" >&6
16434 if test "$cross_compiling" = yes; then
16435 ac_cv_func_working_mktime=no
16437 cat >conftest.$ac_ext <<_ACEOF
16440 cat confdefs.h >>conftest.$ac_ext
16441 cat >>conftest.$ac_ext <<_ACEOF
16442 /* end confdefs.h. */
16443 /* Test program from Paul Eggert and Tony Leneis. */
16444 #ifdef TIME_WITH_SYS_TIME
16445 # include <sys/time.h>
16448 # ifdef HAVE_SYS_TIME_H
16449 # include <sys/time.h>
16455 #include <stdlib.h>
16457 #ifdef HAVE_UNISTD_H
16458 # include <unistd.h>
16462 # define alarm(X) /* empty */
16465 /* Work around redefinition to rpl_putenv by other config tests. */
16468 static time_t time_t_max;
16469 static time_t time_t_min;
16471 /* Values we'll use to set the TZ environment variable. */
16472 static char *tz_strings[] = {
16473 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
16474 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
16476 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16478 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16479 Based on a problem report from Andreas Jaeger. */
16481 spring_forward_gap ()
16483 /* glibc (up to about 1998-10-07) failed this test. */
16486 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16487 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16488 on systems that don't support the Olson extension, or don't have the
16489 full zoneinfo tables installed. */
16490 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16499 return mktime (&tm) != (time_t) -1;
16507 return ! (lt = localtime (&now)) || mktime (lt) == now;
16514 return (mktime_test1 (now)
16515 && mktime_test1 ((time_t) (time_t_max - now))
16516 && mktime_test1 ((time_t) (time_t_min + now)));
16522 /* Based on code from Ariel Faigon. */
16532 return tm.tm_mon == 2 && tm.tm_mday == 31;
16541 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16542 now = mktime (&tm);
16543 if (now != (time_t) -1)
16545 struct tm *lt = localtime (&now);
16547 && lt->tm_year == tm.tm_year
16548 && lt->tm_mon == tm.tm_mon
16549 && lt->tm_mday == tm.tm_mday
16550 && lt->tm_hour == tm.tm_hour
16551 && lt->tm_min == tm.tm_min
16552 && lt->tm_sec == tm.tm_sec
16553 && lt->tm_yday == tm.tm_yday
16554 && lt->tm_wday == tm.tm_wday
16555 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16556 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16565 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16566 ignoring leap seconds. */
16567 unsigned long int answer = 2527315200UL;
16571 tm.tm_year = 2050 - 1900;
16574 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16577 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16578 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16579 on systems that don't support the Olson extension, or don't have the
16580 full zoneinfo tables installed. */
16581 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16585 /* Check that the result is either a failure, or close enough
16586 to the correct answer that we can assume the discrepancy is
16587 due to leap seconds. */
16588 return (t == (time_t) -1
16589 || (0 < t && answer - 120 <= t && t <= answer + 120));
16598 /* This test makes some buggy mktime implementations loop.
16599 Give up after 60 seconds; a mktime slower than that
16600 isn't worth using anyway. */
16603 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16606 if ((time_t) -1 < 0)
16607 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16609 delta = time_t_max / 997; /* a suitable prime number */
16610 for (i = 0; i < N_STRINGS; i++)
16613 putenv (tz_strings[i]);
16615 for (t = 0; t <= time_t_max - delta; t += delta)
16616 if (! mktime_test (t))
16618 if (! (mktime_test ((time_t) 1)
16619 && mktime_test ((time_t) (60 * 60))
16620 && mktime_test ((time_t) (60 * 60 * 24))))
16623 for (j = 1; 0 < j; j *= 2)
16624 if (! bigtime_test (j))
16626 if (! bigtime_test (j - 1))
16629 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16632 rm -f conftest$ac_exeext
16633 if { (ac_try="$ac_link"
16634 case "(($ac_try" in
16635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16636 *) ac_try_echo=$ac_try;;
16638 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16639 (eval "$ac_link") 2>&5
16641 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16642 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16643 { (case "(($ac_try" in
16644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16645 *) ac_try_echo=$ac_try;;
16647 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16648 (eval "$ac_try") 2>&5
16650 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16651 (exit $ac_status); }; }; then
16652 ac_cv_func_working_mktime=yes
16654 echo "$as_me: program exited with status
$ac_status" >&5
16655 echo "$as_me: failed program was
:" >&5
16656 sed 's/^/| /' conftest.$ac_ext >&5
16658 ( exit $ac_status )
16659 ac_cv_func_working_mktime=no
16661 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16666 { echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
16667 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16668 if test $ac_cv_func_working_mktime = no; then
16669 case " $LIBOBJS " in
16670 *" mktime.
$ac_objext "* ) ;;
16671 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
16677 if test "$ac_cv_func_working_mktime" = no; then
16679 cat >>confdefs.h <<\_ACEOF
16680 #define BROKEN_MKTIME 1
16685 ac_have_func=no # yes means we've found a way to get the load average.
16687 # Make sure getloadavg.c is where it belongs, at configure-time.
16688 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
16689 { { echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
16690 echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
16691 { (exit 1); exit 1; }; }
16695 # Check for getloadavg, but be sure not to touch the cache variable.
16696 ({ echo "$as_me:$LINENO: checking
for getloadavg
" >&5
16697 echo $ECHO_N "checking
for getloadavg...
$ECHO_C" >&6; }
16698 if test "${ac_cv_func_getloadavg+set}" = set; then
16699 echo $ECHO_N "(cached
) $ECHO_C" >&6
16701 cat >conftest.$ac_ext <<_ACEOF
16704 cat confdefs.h >>conftest.$ac_ext
16705 cat >>conftest.$ac_ext <<_ACEOF
16706 /* end confdefs.h. */
16707 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16708 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16709 #define getloadavg innocuous_getloadavg
16711 /* System header to define __stub macros and hopefully few prototypes,
16712 which can conflict with char getloadavg (); below.
16713 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16714 <limits.h> exists even on freestanding compilers. */
16717 # include <limits.h>
16719 # include <assert.h>
16724 /* Override any GCC internal prototype to avoid an error.
16725 Use char because int might match the return type of a GCC
16726 builtin and then its argument prototype would still apply. */
16730 char getloadavg ();
16731 /* The GNU C library defines this for functions which it implements
16732 to always fail with ENOSYS. Some functions are actually named
16733 something starting with __ and the normal name is an alias. */
16734 #if defined __stub_getloadavg || defined __stub___getloadavg
16741 return getloadavg ();
16746 rm -f conftest.$ac_objext conftest$ac_exeext
16747 if { (ac_try="$ac_link"
16748 case "(($ac_try" in
16749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16750 *) ac_try_echo=$ac_try;;
16752 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16753 (eval "$ac_link") 2>conftest.er1
16755 grep -v '^ *+' conftest.er1 >conftest.err
16757 cat conftest.err >&5
16758 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16759 (exit $ac_status); } && {
16760 test -z "$ac_c_werror_flag" ||
16761 test ! -s conftest.err
16762 } && test -s conftest$ac_exeext &&
16763 $as_test_x conftest$ac_exeext; then
16764 ac_cv_func_getloadavg=yes
16766 echo "$as_me: failed program was
:" >&5
16767 sed 's/^/| /' conftest.$ac_ext >&5
16769 ac_cv_func_getloadavg=no
16772 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16773 conftest$ac_exeext conftest.$ac_ext
16775 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
16776 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16777 if test $ac_cv_func_getloadavg = yes; then
16782 ) && ac_have_func=yes
16784 # On HPUX9, an unprivileged user can get load averages through this function.
16786 for ac_func in pstat_getdynamic
16788 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16789 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16790 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16791 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16792 echo $ECHO_N "(cached
) $ECHO_C" >&6
16794 cat >conftest.$ac_ext <<_ACEOF
16797 cat confdefs.h >>conftest.$ac_ext
16798 cat >>conftest.$ac_ext <<_ACEOF
16799 /* end confdefs.h. */
16800 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16801 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16802 #define $ac_func innocuous_$ac_func
16804 /* System header to define __stub macros and hopefully few prototypes,
16805 which can conflict with char $ac_func (); below.
16806 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16807 <limits.h> exists even on freestanding compilers. */
16810 # include <limits.h>
16812 # include <assert.h>
16817 /* Override any GCC internal prototype to avoid an error.
16818 Use char because int might match the return type of a GCC
16819 builtin and then its argument prototype would still apply. */
16824 /* The GNU C library defines this for functions which it implements
16825 to always fail with ENOSYS. Some functions are actually named
16826 something starting with __ and the normal name is an alias. */
16827 #if defined __stub_$ac_func || defined __stub___$ac_func
16834 return $ac_func ();
16839 rm -f conftest.$ac_objext conftest$ac_exeext
16840 if { (ac_try="$ac_link"
16841 case "(($ac_try" in
16842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16843 *) ac_try_echo=$ac_try;;
16845 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16846 (eval "$ac_link") 2>conftest.er1
16848 grep -v '^ *+' conftest.er1 >conftest.err
16850 cat conftest.err >&5
16851 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16852 (exit $ac_status); } && {
16853 test -z "$ac_c_werror_flag" ||
16854 test ! -s conftest.err
16855 } && test -s conftest$ac_exeext &&
16856 $as_test_x conftest$ac_exeext; then
16857 eval "$as_ac_var=yes"
16859 echo "$as_me: failed program was
:" >&5
16860 sed 's/^/| /' conftest.$ac_ext >&5
16862 eval "$as_ac_var=no
"
16865 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16866 conftest$ac_exeext conftest.$ac_ext
16868 ac_res=`eval echo '${'$as_ac_var'}'`
16869 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16870 echo "${ECHO_T}$ac_res" >&6; }
16871 if test `eval echo '${'$as_ac_var'}'` = yes; then
16872 cat >>confdefs.h <<_ACEOF
16873 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16880 # Solaris has libkstat which does not require root.
16882 { echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
16883 echo $ECHO_N "checking
for kstat_open
in -lkstat...
$ECHO_C" >&6; }
16884 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16885 echo $ECHO_N "(cached
) $ECHO_C" >&6
16887 ac_check_lib_save_LIBS=$LIBS
16888 LIBS="-lkstat $LIBS"
16889 cat >conftest.$ac_ext <<_ACEOF
16892 cat confdefs.h >>conftest.$ac_ext
16893 cat >>conftest.$ac_ext <<_ACEOF
16894 /* end confdefs.h. */
16896 /* Override any GCC internal prototype to avoid an error.
16897 Use char because int might match the return type of a GCC
16898 builtin and then its argument prototype would still apply. */
16902 char kstat_open ();
16906 return kstat_open ();
16911 rm -f conftest.$ac_objext conftest$ac_exeext
16912 if { (ac_try="$ac_link"
16913 case "(($ac_try" in
16914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16915 *) ac_try_echo=$ac_try;;
16917 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16918 (eval "$ac_link") 2>conftest.er1
16920 grep -v '^ *+' conftest.er1 >conftest.err
16922 cat conftest.err >&5
16923 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16924 (exit $ac_status); } && {
16925 test -z "$ac_c_werror_flag" ||
16926 test ! -s conftest.err
16927 } && test -s conftest$ac_exeext &&
16928 $as_test_x conftest$ac_exeext; then
16929 ac_cv_lib_kstat_kstat_open=yes
16931 echo "$as_me: failed program was
:" >&5
16932 sed 's/^/| /' conftest.$ac_ext >&5
16934 ac_cv_lib_kstat_kstat_open=no
16937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16938 conftest$ac_exeext conftest.$ac_ext
16939 LIBS=$ac_check_lib_save_LIBS
16941 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
16942 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16943 if test $ac_cv_lib_kstat_kstat_open = yes; then
16944 cat >>confdefs.h <<_ACEOF
16945 #define HAVE_LIBKSTAT 1
16948 LIBS="-lkstat $LIBS"
16952 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
16954 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16955 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16956 # to get the right answer into the cache.
16957 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16958 if test $ac_have_func = no; then
16959 { echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
16960 echo $ECHO_N "checking
for elf_begin
in -lelf...
$ECHO_C" >&6; }
16961 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
16962 echo $ECHO_N "(cached
) $ECHO_C" >&6
16964 ac_check_lib_save_LIBS=$LIBS
16966 cat >conftest.$ac_ext <<_ACEOF
16969 cat confdefs.h >>conftest.$ac_ext
16970 cat >>conftest.$ac_ext <<_ACEOF
16971 /* end confdefs.h. */
16973 /* Override any GCC internal prototype to avoid an error.
16974 Use char because int might match the return type of a GCC
16975 builtin and then its argument prototype would still apply. */
16983 return elf_begin ();
16988 rm -f conftest.$ac_objext conftest$ac_exeext
16989 if { (ac_try="$ac_link"
16990 case "(($ac_try" in
16991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16992 *) ac_try_echo=$ac_try;;
16994 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16995 (eval "$ac_link") 2>conftest.er1
16997 grep -v '^ *+' conftest.er1 >conftest.err
16999 cat conftest.err >&5
17000 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17001 (exit $ac_status); } && {
17002 test -z "$ac_c_werror_flag" ||
17003 test ! -s conftest.err
17004 } && test -s conftest$ac_exeext &&
17005 $as_test_x conftest$ac_exeext; then
17006 ac_cv_lib_elf_elf_begin=yes
17008 echo "$as_me: failed program was
:" >&5
17009 sed 's/^/| /' conftest.$ac_ext >&5
17011 ac_cv_lib_elf_elf_begin=no
17014 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17015 conftest$ac_exeext conftest.$ac_ext
17016 LIBS=$ac_check_lib_save_LIBS
17018 { echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
17019 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17020 if test $ac_cv_lib_elf_elf_begin = yes; then
17025 if test $ac_have_func = no; then
17026 { echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
17027 echo $ECHO_N "checking
for kvm_open
in -lkvm...
$ECHO_C" >&6; }
17028 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17029 echo $ECHO_N "(cached
) $ECHO_C" >&6
17031 ac_check_lib_save_LIBS=$LIBS
17033 cat >conftest.$ac_ext <<_ACEOF
17036 cat confdefs.h >>conftest.$ac_ext
17037 cat >>conftest.$ac_ext <<_ACEOF
17038 /* end confdefs.h. */
17040 /* Override any GCC internal prototype to avoid an error.
17041 Use char because int might match the return type of a GCC
17042 builtin and then its argument prototype would still apply. */
17050 return kvm_open ();
17055 rm -f conftest.$ac_objext conftest$ac_exeext
17056 if { (ac_try="$ac_link"
17057 case "(($ac_try" in
17058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17059 *) ac_try_echo=$ac_try;;
17061 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17062 (eval "$ac_link") 2>conftest.er1
17064 grep -v '^ *+' conftest.er1 >conftest.err
17066 cat conftest.err >&5
17067 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17068 (exit $ac_status); } && {
17069 test -z "$ac_c_werror_flag" ||
17070 test ! -s conftest.err
17071 } && test -s conftest$ac_exeext &&
17072 $as_test_x conftest$ac_exeext; then
17073 ac_cv_lib_kvm_kvm_open=yes
17075 echo "$as_me: failed program was
:" >&5
17076 sed 's/^/| /' conftest.$ac_ext >&5
17078 ac_cv_lib_kvm_kvm_open=no
17081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17082 conftest$ac_exeext conftest.$ac_ext
17083 LIBS=$ac_check_lib_save_LIBS
17085 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
17086 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17087 if test $ac_cv_lib_kvm_kvm_open = yes; then
17091 # Check for the 4.4BSD definition of getloadavg.
17092 { echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
17093 echo $ECHO_N "checking
for getloadavg
in -lutil...
$ECHO_C" >&6; }
17094 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17095 echo $ECHO_N "(cached
) $ECHO_C" >&6
17097 ac_check_lib_save_LIBS=$LIBS
17098 LIBS="-lutil $LIBS"
17099 cat >conftest.$ac_ext <<_ACEOF
17102 cat confdefs.h >>conftest.$ac_ext
17103 cat >>conftest.$ac_ext <<_ACEOF
17104 /* end confdefs.h. */
17106 /* Override any GCC internal prototype to avoid an error.
17107 Use char because int might match the return type of a GCC
17108 builtin and then its argument prototype would still apply. */
17112 char getloadavg ();
17116 return getloadavg ();
17121 rm -f conftest.$ac_objext conftest$ac_exeext
17122 if { (ac_try="$ac_link"
17123 case "(($ac_try" in
17124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17125 *) ac_try_echo=$ac_try;;
17127 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17128 (eval "$ac_link") 2>conftest.er1
17130 grep -v '^ *+' conftest.er1 >conftest.err
17132 cat conftest.err >&5
17133 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17134 (exit $ac_status); } && {
17135 test -z "$ac_c_werror_flag" ||
17136 test ! -s conftest.err
17137 } && test -s conftest$ac_exeext &&
17138 $as_test_x conftest$ac_exeext; then
17139 ac_cv_lib_util_getloadavg=yes
17141 echo "$as_me: failed program was
:" >&5
17142 sed 's/^/| /' conftest.$ac_ext >&5
17144 ac_cv_lib_util_getloadavg=no
17147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17148 conftest$ac_exeext conftest.$ac_ext
17149 LIBS=$ac_check_lib_save_LIBS
17151 { echo "$as_me:$LINENO: result
: $ac_cv_lib_util_getloadavg" >&5
17152 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17153 if test $ac_cv_lib_util_getloadavg = yes; then
17154 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17159 if test $ac_have_func = no; then
17160 # There is a commonly available library for RS/6000 AIX.
17161 # Since it is not a standard part of AIX, it might be installed locally.
17162 ac_getloadavg_LIBS=$LIBS
17163 LIBS="-L/usr
/local
/lib
$LIBS"
17164 { echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
17165 echo $ECHO_N "checking
for getloadavg
in -lgetloadavg...
$ECHO_C" >&6; }
17166 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17167 echo $ECHO_N "(cached
) $ECHO_C" >&6
17169 ac_check_lib_save_LIBS=$LIBS
17170 LIBS="-lgetloadavg $LIBS"
17171 cat >conftest.$ac_ext <<_ACEOF
17174 cat confdefs.h >>conftest.$ac_ext
17175 cat >>conftest.$ac_ext <<_ACEOF
17176 /* end confdefs.h. */
17178 /* Override any GCC internal prototype to avoid an error.
17179 Use char because int might match the return type of a GCC
17180 builtin and then its argument prototype would still apply. */
17184 char getloadavg ();
17188 return getloadavg ();
17193 rm -f conftest.$ac_objext conftest$ac_exeext
17194 if { (ac_try="$ac_link"
17195 case "(($ac_try" in
17196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17197 *) ac_try_echo=$ac_try;;
17199 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17200 (eval "$ac_link") 2>conftest.er1
17202 grep -v '^ *+' conftest.er1 >conftest.err
17204 cat conftest.err >&5
17205 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17206 (exit $ac_status); } && {
17207 test -z "$ac_c_werror_flag" ||
17208 test ! -s conftest.err
17209 } && test -s conftest$ac_exeext &&
17210 $as_test_x conftest$ac_exeext; then
17211 ac_cv_lib_getloadavg_getloadavg=yes
17213 echo "$as_me: failed program was
:" >&5
17214 sed 's/^/| /' conftest.$ac_ext >&5
17216 ac_cv_lib_getloadavg_getloadavg=no
17219 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17220 conftest$ac_exeext conftest.$ac_ext
17221 LIBS=$ac_check_lib_save_LIBS
17223 { echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
17224 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17225 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17226 LIBS="-lgetloadavg $LIBS"
17228 LIBS=$ac_getloadavg_LIBS
17233 # Make sure it is really in the library, if we think we found it,
17234 # otherwise set up the replacement function.
17236 for ac_func in getloadavg
17238 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17239 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17240 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17241 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17242 echo $ECHO_N "(cached
) $ECHO_C" >&6
17244 cat >conftest.$ac_ext <<_ACEOF
17247 cat confdefs.h >>conftest.$ac_ext
17248 cat >>conftest.$ac_ext <<_ACEOF
17249 /* end confdefs.h. */
17250 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17251 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17252 #define $ac_func innocuous_$ac_func
17254 /* System header to define __stub macros and hopefully few prototypes,
17255 which can conflict with char $ac_func (); below.
17256 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17257 <limits.h> exists even on freestanding compilers. */
17260 # include <limits.h>
17262 # include <assert.h>
17267 /* Override any GCC internal prototype to avoid an error.
17268 Use char because int might match the return type of a GCC
17269 builtin and then its argument prototype would still apply. */
17274 /* The GNU C library defines this for functions which it implements
17275 to always fail with ENOSYS. Some functions are actually named
17276 something starting with __ and the normal name is an alias. */
17277 #if defined __stub_$ac_func || defined __stub___$ac_func
17284 return $ac_func ();
17289 rm -f conftest.$ac_objext conftest$ac_exeext
17290 if { (ac_try="$ac_link"
17291 case "(($ac_try" in
17292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17293 *) ac_try_echo=$ac_try;;
17295 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17296 (eval "$ac_link") 2>conftest.er1
17298 grep -v '^ *+' conftest.er1 >conftest.err
17300 cat conftest.err >&5
17301 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17302 (exit $ac_status); } && {
17303 test -z "$ac_c_werror_flag" ||
17304 test ! -s conftest.err
17305 } && test -s conftest$ac_exeext &&
17306 $as_test_x conftest$ac_exeext; then
17307 eval "$as_ac_var=yes"
17309 echo "$as_me: failed program was
:" >&5
17310 sed 's/^/| /' conftest.$ac_ext >&5
17312 eval "$as_ac_var=no
"
17315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17316 conftest$ac_exeext conftest.$ac_ext
17318 ac_res=`eval echo '${'$as_ac_var'}'`
17319 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17320 echo "${ECHO_T}$ac_res" >&6; }
17321 if test `eval echo '${'$as_ac_var'}'` = yes; then
17322 cat >>confdefs.h <<_ACEOF
17323 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17327 case " $LIBOBJS " in
17328 *" getloadavg.
$ac_objext "* ) ;;
17329 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
17334 cat >>confdefs.h <<\_ACEOF
17335 #define C_GETLOADAVG 1
17338 # Figure out what our getloadavg.c needs.
17340 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17341 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17342 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17343 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17344 echo $ECHO_N "(cached
) $ECHO_C" >&6
17346 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17347 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17349 # Is the header compilable?
17350 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
17351 echo $ECHO_N "checking sys
/dg_sys_info.h usability...
$ECHO_C" >&6; }
17352 cat >conftest.$ac_ext <<_ACEOF
17355 cat confdefs.h >>conftest.$ac_ext
17356 cat >>conftest.$ac_ext <<_ACEOF
17357 /* end confdefs.h. */
17358 $ac_includes_default
17359 #include <sys/dg_sys_info.h>
17361 rm -f conftest.$ac_objext
17362 if { (ac_try="$ac_compile"
17363 case "(($ac_try" in
17364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17365 *) ac_try_echo=$ac_try;;
17367 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17368 (eval "$ac_compile") 2>conftest.er1
17370 grep -v '^ *+' conftest.er1 >conftest.err
17372 cat conftest.err >&5
17373 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17374 (exit $ac_status); } && {
17375 test -z "$ac_c_werror_flag" ||
17376 test ! -s conftest.err
17377 } && test -s conftest.$ac_objext; then
17378 ac_header_compiler=yes
17380 echo "$as_me: failed program was
:" >&5
17381 sed 's/^/| /' conftest.$ac_ext >&5
17383 ac_header_compiler=no
17386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17387 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17388 echo "${ECHO_T}$ac_header_compiler" >&6; }
17390 # Is the header present?
17391 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
17392 echo $ECHO_N "checking sys
/dg_sys_info.h presence...
$ECHO_C" >&6; }
17393 cat >conftest.$ac_ext <<_ACEOF
17396 cat confdefs.h >>conftest.$ac_ext
17397 cat >>conftest.$ac_ext <<_ACEOF
17398 /* end confdefs.h. */
17399 #include <sys/dg_sys_info.h>
17401 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17402 case "(($ac_try" in
17403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17404 *) ac_try_echo=$ac_try;;
17406 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17407 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17409 grep -v '^ *+' conftest.er1 >conftest.err
17411 cat conftest.err >&5
17412 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17413 (exit $ac_status); } >/dev/null && {
17414 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17415 test ! -s conftest.err
17417 ac_header_preproc=yes
17419 echo "$as_me: failed program was
:" >&5
17420 sed 's/^/| /' conftest.$ac_ext >&5
17422 ac_header_preproc=no
17425 rm -f conftest.err conftest.$ac_ext
17426 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17427 echo "${ECHO_T}$ac_header_preproc" >&6; }
17429 # So? What about this header?
17430 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17432 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17433 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17434 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
17435 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
17436 ac_header_preproc=yes
17439 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
17440 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
17441 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
17442 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
17443 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
17444 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
17445 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17446 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17447 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
17448 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
17449 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
17450 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
17454 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17455 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17456 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17457 echo $ECHO_N "(cached
) $ECHO_C" >&6
17459 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17461 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17462 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17465 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17468 cat >>confdefs.h <<\_ACEOF
17473 { echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
17474 echo $ECHO_N "checking
for dg_sys_info
in -ldgc...
$ECHO_C" >&6; }
17475 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17476 echo $ECHO_N "(cached
) $ECHO_C" >&6
17478 ac_check_lib_save_LIBS=$LIBS
17480 cat >conftest.$ac_ext <<_ACEOF
17483 cat confdefs.h >>conftest.$ac_ext
17484 cat >>conftest.$ac_ext <<_ACEOF
17485 /* end confdefs.h. */
17487 /* Override any GCC internal prototype to avoid an error.
17488 Use char because int might match the return type of a GCC
17489 builtin and then its argument prototype would still apply. */
17493 char dg_sys_info ();
17497 return dg_sys_info ();
17502 rm -f conftest.$ac_objext conftest$ac_exeext
17503 if { (ac_try="$ac_link"
17504 case "(($ac_try" in
17505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17506 *) ac_try_echo=$ac_try;;
17508 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17509 (eval "$ac_link") 2>conftest.er1
17511 grep -v '^ *+' conftest.er1 >conftest.err
17513 cat conftest.err >&5
17514 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17515 (exit $ac_status); } && {
17516 test -z "$ac_c_werror_flag" ||
17517 test ! -s conftest.err
17518 } && test -s conftest$ac_exeext &&
17519 $as_test_x conftest$ac_exeext; then
17520 ac_cv_lib_dgc_dg_sys_info=yes
17522 echo "$as_me: failed program was
:" >&5
17523 sed 's/^/| /' conftest.$ac_ext >&5
17525 ac_cv_lib_dgc_dg_sys_info=no
17528 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17529 conftest$ac_exeext conftest.$ac_ext
17530 LIBS=$ac_check_lib_save_LIBS
17532 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
17533 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17534 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17535 cat >>confdefs.h <<_ACEOF
17536 #define HAVE_LIBDGC 1
17547 if test "${ac_cv_header_locale_h+set}" = set; then
17548 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17549 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17550 if test "${ac_cv_header_locale_h+set}" = set; then
17551 echo $ECHO_N "(cached
) $ECHO_C" >&6
17553 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17554 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17556 # Is the header compilable?
17557 { echo "$as_me:$LINENO: checking locale.h usability
" >&5
17558 echo $ECHO_N "checking locale.h usability...
$ECHO_C" >&6; }
17559 cat >conftest.$ac_ext <<_ACEOF
17562 cat confdefs.h >>conftest.$ac_ext
17563 cat >>conftest.$ac_ext <<_ACEOF
17564 /* end confdefs.h. */
17565 $ac_includes_default
17566 #include <locale.h>
17568 rm -f conftest.$ac_objext
17569 if { (ac_try="$ac_compile"
17570 case "(($ac_try" in
17571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17572 *) ac_try_echo=$ac_try;;
17574 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17575 (eval "$ac_compile") 2>conftest.er1
17577 grep -v '^ *+' conftest.er1 >conftest.err
17579 cat conftest.err >&5
17580 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17581 (exit $ac_status); } && {
17582 test -z "$ac_c_werror_flag" ||
17583 test ! -s conftest.err
17584 } && test -s conftest.$ac_objext; then
17585 ac_header_compiler=yes
17587 echo "$as_me: failed program was
:" >&5
17588 sed 's/^/| /' conftest.$ac_ext >&5
17590 ac_header_compiler=no
17593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17594 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17595 echo "${ECHO_T}$ac_header_compiler" >&6; }
17597 # Is the header present?
17598 { echo "$as_me:$LINENO: checking locale.h presence
" >&5
17599 echo $ECHO_N "checking locale.h presence...
$ECHO_C" >&6; }
17600 cat >conftest.$ac_ext <<_ACEOF
17603 cat confdefs.h >>conftest.$ac_ext
17604 cat >>conftest.$ac_ext <<_ACEOF
17605 /* end confdefs.h. */
17606 #include <locale.h>
17608 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17609 case "(($ac_try" in
17610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17611 *) ac_try_echo=$ac_try;;
17613 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17614 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17616 grep -v '^ *+' conftest.er1 >conftest.err
17618 cat conftest.err >&5
17619 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17620 (exit $ac_status); } >/dev/null && {
17621 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17622 test ! -s conftest.err
17624 ac_header_preproc=yes
17626 echo "$as_me: failed program was
:" >&5
17627 sed 's/^/| /' conftest.$ac_ext >&5
17629 ac_header_preproc=no
17632 rm -f conftest.err conftest.$ac_ext
17633 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17634 echo "${ECHO_T}$ac_header_preproc" >&6; }
17636 # So? What about this header?
17637 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17639 { echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17640 echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17641 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
17642 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
17643 ac_header_preproc=yes
17646 { echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
17647 echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
17648 { echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
17649 echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
17650 { echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
17651 echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
17652 { echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17653 echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17654 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
17655 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
17656 { echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
17657 echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
17661 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17662 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17663 if test "${ac_cv_header_locale_h+set}" = set; then
17664 echo $ECHO_N "(cached
) $ECHO_C" >&6
17666 ac_cv_header_locale_h=$ac_header_preproc
17668 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17669 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17675 for ac_func in setlocale
17677 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17678 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17679 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17680 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17681 echo $ECHO_N "(cached
) $ECHO_C" >&6
17683 cat >conftest.$ac_ext <<_ACEOF
17686 cat confdefs.h >>conftest.$ac_ext
17687 cat >>conftest.$ac_ext <<_ACEOF
17688 /* end confdefs.h. */
17689 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17690 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17691 #define $ac_func innocuous_$ac_func
17693 /* System header to define __stub macros and hopefully few prototypes,
17694 which can conflict with char $ac_func (); below.
17695 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17696 <limits.h> exists even on freestanding compilers. */
17699 # include <limits.h>
17701 # include <assert.h>
17706 /* Override any GCC internal prototype to avoid an error.
17707 Use char because int might match the return type of a GCC
17708 builtin and then its argument prototype would still apply. */
17713 /* The GNU C library defines this for functions which it implements
17714 to always fail with ENOSYS. Some functions are actually named
17715 something starting with __ and the normal name is an alias. */
17716 #if defined __stub_$ac_func || defined __stub___$ac_func
17723 return $ac_func ();
17728 rm -f conftest.$ac_objext conftest$ac_exeext
17729 if { (ac_try="$ac_link"
17730 case "(($ac_try" in
17731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17732 *) ac_try_echo=$ac_try;;
17734 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17735 (eval "$ac_link") 2>conftest.er1
17737 grep -v '^ *+' conftest.er1 >conftest.err
17739 cat conftest.err >&5
17740 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17741 (exit $ac_status); } && {
17742 test -z "$ac_c_werror_flag" ||
17743 test ! -s conftest.err
17744 } && test -s conftest$ac_exeext &&
17745 $as_test_x conftest$ac_exeext; then
17746 eval "$as_ac_var=yes"
17748 echo "$as_me: failed program was
:" >&5
17749 sed 's/^/| /' conftest.$ac_ext >&5
17751 eval "$as_ac_var=no
"
17754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17755 conftest$ac_exeext conftest.$ac_ext
17757 ac_res=`eval echo '${'$as_ac_var'}'`
17758 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17759 echo "${ECHO_T}$ac_res" >&6; }
17760 if test `eval echo '${'$as_ac_var'}'` = yes; then
17761 cat >>confdefs.h <<_ACEOF
17762 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17769 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17770 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17771 # Irix 4.0.5F has the header but not the library.
17772 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17775 cat >>confdefs.h <<\_ACEOF
17781 if test $ac_have_func = no; then
17782 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17783 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17784 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17785 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17786 echo $ECHO_N "(cached
) $ECHO_C" >&6
17788 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17789 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17791 # Is the header compilable?
17792 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
17793 echo $ECHO_N "checking inq_stats
/cpustats.h usability...
$ECHO_C" >&6; }
17794 cat >conftest.$ac_ext <<_ACEOF
17797 cat confdefs.h >>conftest.$ac_ext
17798 cat >>conftest.$ac_ext <<_ACEOF
17799 /* end confdefs.h. */
17800 $ac_includes_default
17801 #include <inq_stats/cpustats.h>
17803 rm -f conftest.$ac_objext
17804 if { (ac_try="$ac_compile"
17805 case "(($ac_try" in
17806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17807 *) ac_try_echo=$ac_try;;
17809 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17810 (eval "$ac_compile") 2>conftest.er1
17812 grep -v '^ *+' conftest.er1 >conftest.err
17814 cat conftest.err >&5
17815 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17816 (exit $ac_status); } && {
17817 test -z "$ac_c_werror_flag" ||
17818 test ! -s conftest.err
17819 } && test -s conftest.$ac_objext; then
17820 ac_header_compiler=yes
17822 echo "$as_me: failed program was
:" >&5
17823 sed 's/^/| /' conftest.$ac_ext >&5
17825 ac_header_compiler=no
17828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17829 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17830 echo "${ECHO_T}$ac_header_compiler" >&6; }
17832 # Is the header present?
17833 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
17834 echo $ECHO_N "checking inq_stats
/cpustats.h presence...
$ECHO_C" >&6; }
17835 cat >conftest.$ac_ext <<_ACEOF
17838 cat confdefs.h >>conftest.$ac_ext
17839 cat >>conftest.$ac_ext <<_ACEOF
17840 /* end confdefs.h. */
17841 #include <inq_stats/cpustats.h>
17843 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17844 case "(($ac_try" in
17845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17846 *) ac_try_echo=$ac_try;;
17848 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17849 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17851 grep -v '^ *+' conftest.er1 >conftest.err
17853 cat conftest.err >&5
17854 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17855 (exit $ac_status); } >/dev/null && {
17856 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17857 test ! -s conftest.err
17859 ac_header_preproc=yes
17861 echo "$as_me: failed program was
:" >&5
17862 sed 's/^/| /' conftest.$ac_ext >&5
17864 ac_header_preproc=no
17867 rm -f conftest.err conftest.$ac_ext
17868 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17869 echo "${ECHO_T}$ac_header_preproc" >&6; }
17871 # So? What about this header?
17872 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17874 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17875 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17876 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
17877 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
17878 ac_header_preproc=yes
17881 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
17882 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
17883 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
17884 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
17885 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
17886 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
17887 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17888 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17889 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
17890 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
17891 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
17892 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
17896 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17897 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17898 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17899 echo $ECHO_N "(cached
) $ECHO_C" >&6
17901 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17903 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17904 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17907 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17910 cat >>confdefs.h <<\_ACEOF
17915 cat >>confdefs.h <<\_ACEOF
17924 if test $ac_have_func = no; then
17925 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17926 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
17927 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
17928 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17929 echo $ECHO_N "(cached
) $ECHO_C" >&6
17931 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
17932 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17934 # Is the header compilable?
17935 { echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
17936 echo $ECHO_N "checking sys
/cpustats.h usability...
$ECHO_C" >&6; }
17937 cat >conftest.$ac_ext <<_ACEOF
17940 cat confdefs.h >>conftest.$ac_ext
17941 cat >>conftest.$ac_ext <<_ACEOF
17942 /* end confdefs.h. */
17943 $ac_includes_default
17944 #include <sys/cpustats.h>
17946 rm -f conftest.$ac_objext
17947 if { (ac_try="$ac_compile"
17948 case "(($ac_try" in
17949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17950 *) ac_try_echo=$ac_try;;
17952 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17953 (eval "$ac_compile") 2>conftest.er1
17955 grep -v '^ *+' conftest.er1 >conftest.err
17957 cat conftest.err >&5
17958 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17959 (exit $ac_status); } && {
17960 test -z "$ac_c_werror_flag" ||
17961 test ! -s conftest.err
17962 } && test -s conftest.$ac_objext; then
17963 ac_header_compiler=yes
17965 echo "$as_me: failed program was
:" >&5
17966 sed 's/^/| /' conftest.$ac_ext >&5
17968 ac_header_compiler=no
17971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17972 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17973 echo "${ECHO_T}$ac_header_compiler" >&6; }
17975 # Is the header present?
17976 { echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
17977 echo $ECHO_N "checking sys
/cpustats.h presence...
$ECHO_C" >&6; }
17978 cat >conftest.$ac_ext <<_ACEOF
17981 cat confdefs.h >>conftest.$ac_ext
17982 cat >>conftest.$ac_ext <<_ACEOF
17983 /* end confdefs.h. */
17984 #include <sys/cpustats.h>
17986 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17987 case "(($ac_try" in
17988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17989 *) ac_try_echo=$ac_try;;
17991 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17992 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17994 grep -v '^ *+' conftest.er1 >conftest.err
17996 cat conftest.err >&5
17997 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17998 (exit $ac_status); } >/dev/null && {
17999 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18000 test ! -s conftest.err
18002 ac_header_preproc=yes
18004 echo "$as_me: failed program was
:" >&5
18005 sed 's/^/| /' conftest.$ac_ext >&5
18007 ac_header_preproc=no
18010 rm -f conftest.err conftest.$ac_ext
18011 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18012 echo "${ECHO_T}$ac_header_preproc" >&6; }
18014 # So? What about this header?
18015 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18017 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
18018 echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18019 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
18020 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
18021 ac_header_preproc=yes
18024 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
18025 echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
18026 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
18027 echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
18028 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
18029 echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
18030 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
18031 echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
18032 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
18033 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
18034 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
18035 echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
18039 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
18040 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
18041 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18042 echo $ECHO_N "(cached
) $ECHO_C" >&6
18044 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18046 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
18047 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18050 if test $ac_cv_header_sys_cpustats_h = yes; then
18051 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18060 if test $ac_have_func = no; then
18062 for ac_header in mach/mach.h
18064 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18065 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18066 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18067 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18068 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18069 echo $ECHO_N "(cached
) $ECHO_C" >&6
18071 ac_res=`eval echo '${'$as_ac_Header'}'`
18072 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18073 echo "${ECHO_T}$ac_res" >&6; }
18075 # Is the header compilable?
18076 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18077 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18078 cat >conftest.$ac_ext <<_ACEOF
18081 cat confdefs.h >>conftest.$ac_ext
18082 cat >>conftest.$ac_ext <<_ACEOF
18083 /* end confdefs.h. */
18084 $ac_includes_default
18085 #include <$ac_header>
18087 rm -f conftest.$ac_objext
18088 if { (ac_try="$ac_compile"
18089 case "(($ac_try" in
18090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18091 *) ac_try_echo=$ac_try;;
18093 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18094 (eval "$ac_compile") 2>conftest.er1
18096 grep -v '^ *+' conftest.er1 >conftest.err
18098 cat conftest.err >&5
18099 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18100 (exit $ac_status); } && {
18101 test -z "$ac_c_werror_flag" ||
18102 test ! -s conftest.err
18103 } && test -s conftest.$ac_objext; then
18104 ac_header_compiler=yes
18106 echo "$as_me: failed program was
:" >&5
18107 sed 's/^/| /' conftest.$ac_ext >&5
18109 ac_header_compiler=no
18112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18113 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18114 echo "${ECHO_T}$ac_header_compiler" >&6; }
18116 # Is the header present?
18117 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18118 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18119 cat >conftest.$ac_ext <<_ACEOF
18122 cat confdefs.h >>conftest.$ac_ext
18123 cat >>conftest.$ac_ext <<_ACEOF
18124 /* end confdefs.h. */
18125 #include <$ac_header>
18127 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18128 case "(($ac_try" in
18129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18130 *) ac_try_echo=$ac_try;;
18132 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18133 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18135 grep -v '^ *+' conftest.er1 >conftest.err
18137 cat conftest.err >&5
18138 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18139 (exit $ac_status); } >/dev/null && {
18140 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18141 test ! -s conftest.err
18143 ac_header_preproc=yes
18145 echo "$as_me: failed program was
:" >&5
18146 sed 's/^/| /' conftest.$ac_ext >&5
18148 ac_header_preproc=no
18151 rm -f conftest.err conftest.$ac_ext
18152 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18153 echo "${ECHO_T}$ac_header_preproc" >&6; }
18155 # So? What about this header?
18156 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18158 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18159 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18160 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18161 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18162 ac_header_preproc=yes
18165 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18166 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18167 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18168 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18169 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18170 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18171 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18172 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18173 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18174 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18175 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18176 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18180 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18181 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18182 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18183 echo $ECHO_N "(cached
) $ECHO_C" >&6
18185 eval "$as_ac_Header=\
$ac_header_preproc"
18187 ac_res=`eval echo '${'$as_ac_Header'}'`
18188 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18189 echo "${ECHO_T}$ac_res" >&6; }
18192 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18193 cat >>confdefs.h <<_ACEOF
18194 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18204 for ac_header in nlist.h
18206 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18207 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18208 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18209 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18210 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18211 echo $ECHO_N "(cached
) $ECHO_C" >&6
18213 ac_res=`eval echo '${'$as_ac_Header'}'`
18214 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18215 echo "${ECHO_T}$ac_res" >&6; }
18217 # Is the header compilable?
18218 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18219 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18220 cat >conftest.$ac_ext <<_ACEOF
18223 cat confdefs.h >>conftest.$ac_ext
18224 cat >>conftest.$ac_ext <<_ACEOF
18225 /* end confdefs.h. */
18226 $ac_includes_default
18227 #include <$ac_header>
18229 rm -f conftest.$ac_objext
18230 if { (ac_try="$ac_compile"
18231 case "(($ac_try" in
18232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18233 *) ac_try_echo=$ac_try;;
18235 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18236 (eval "$ac_compile") 2>conftest.er1
18238 grep -v '^ *+' conftest.er1 >conftest.err
18240 cat conftest.err >&5
18241 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18242 (exit $ac_status); } && {
18243 test -z "$ac_c_werror_flag" ||
18244 test ! -s conftest.err
18245 } && test -s conftest.$ac_objext; then
18246 ac_header_compiler=yes
18248 echo "$as_me: failed program was
:" >&5
18249 sed 's/^/| /' conftest.$ac_ext >&5
18251 ac_header_compiler=no
18254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18255 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18256 echo "${ECHO_T}$ac_header_compiler" >&6; }
18258 # Is the header present?
18259 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18260 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18261 cat >conftest.$ac_ext <<_ACEOF
18264 cat confdefs.h >>conftest.$ac_ext
18265 cat >>conftest.$ac_ext <<_ACEOF
18266 /* end confdefs.h. */
18267 #include <$ac_header>
18269 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18270 case "(($ac_try" in
18271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18272 *) ac_try_echo=$ac_try;;
18274 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18275 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18277 grep -v '^ *+' conftest.er1 >conftest.err
18279 cat conftest.err >&5
18280 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18281 (exit $ac_status); } >/dev/null && {
18282 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18283 test ! -s conftest.err
18285 ac_header_preproc=yes
18287 echo "$as_me: failed program was
:" >&5
18288 sed 's/^/| /' conftest.$ac_ext >&5
18290 ac_header_preproc=no
18293 rm -f conftest.err conftest.$ac_ext
18294 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18295 echo "${ECHO_T}$ac_header_preproc" >&6; }
18297 # So? What about this header?
18298 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18300 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18301 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18302 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18303 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18304 ac_header_preproc=yes
18307 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18308 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18309 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18310 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18311 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18312 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18313 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18314 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18315 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18316 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18317 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18318 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18322 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18323 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18324 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18325 echo $ECHO_N "(cached
) $ECHO_C" >&6
18327 eval "$as_ac_Header=\
$ac_header_preproc"
18329 ac_res=`eval echo '${'$as_ac_Header'}'`
18330 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18331 echo "${ECHO_T}$ac_res" >&6; }
18334 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18335 cat >>confdefs.h <<_ACEOF
18336 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18338 { echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
18339 echo $ECHO_N "checking
for struct nlist.n_un.n_name...
$ECHO_C" >&6; }
18340 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18341 echo $ECHO_N "(cached
) $ECHO_C" >&6
18343 cat >conftest.$ac_ext <<_ACEOF
18346 cat confdefs.h >>conftest.$ac_ext
18347 cat >>conftest.$ac_ext <<_ACEOF
18348 /* end confdefs.h. */
18354 static struct nlist ac_aggr;
18355 if (ac_aggr.n_un.n_name)
18361 rm -f conftest.$ac_objext
18362 if { (ac_try="$ac_compile"
18363 case "(($ac_try" in
18364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18365 *) ac_try_echo=$ac_try;;
18367 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18368 (eval "$ac_compile") 2>conftest.er1
18370 grep -v '^ *+' conftest.er1 >conftest.err
18372 cat conftest.err >&5
18373 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18374 (exit $ac_status); } && {
18375 test -z "$ac_c_werror_flag" ||
18376 test ! -s conftest.err
18377 } && test -s conftest.$ac_objext; then
18378 ac_cv_member_struct_nlist_n_un_n_name=yes
18380 echo "$as_me: failed program was
:" >&5
18381 sed 's/^/| /' conftest.$ac_ext >&5
18383 cat >conftest.$ac_ext <<_ACEOF
18386 cat confdefs.h >>conftest.$ac_ext
18387 cat >>conftest.$ac_ext <<_ACEOF
18388 /* end confdefs.h. */
18394 static struct nlist ac_aggr;
18395 if (sizeof ac_aggr.n_un.n_name)
18401 rm -f conftest.$ac_objext
18402 if { (ac_try="$ac_compile"
18403 case "(($ac_try" in
18404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18405 *) ac_try_echo=$ac_try;;
18407 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18408 (eval "$ac_compile") 2>conftest.er1
18410 grep -v '^ *+' conftest.er1 >conftest.err
18412 cat conftest.err >&5
18413 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18414 (exit $ac_status); } && {
18415 test -z "$ac_c_werror_flag" ||
18416 test ! -s conftest.err
18417 } && test -s conftest.$ac_objext; then
18418 ac_cv_member_struct_nlist_n_un_n_name=yes
18420 echo "$as_me: failed program was
:" >&5
18421 sed 's/^/| /' conftest.$ac_ext >&5
18423 ac_cv_member_struct_nlist_n_un_n_name=no
18426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18431 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18432 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18433 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18435 cat >>confdefs.h <<_ACEOF
18436 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18440 cat >>confdefs.h <<\_ACEOF
18441 #define NLIST_NAME_UNION 1
18455 # Some definitions of getloadavg require that the program be installed setgid.
18456 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
18457 echo $ECHO_N "checking whether getloadavg requires setgid...
$ECHO_C" >&6; }
18458 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18459 echo $ECHO_N "(cached
) $ECHO_C" >&6
18461 cat >conftest.$ac_ext <<_ACEOF
18464 cat confdefs.h >>conftest.$ac_ext
18465 cat >>conftest.$ac_ext <<_ACEOF
18466 /* end confdefs.h. */
18467 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
18468 #ifdef LDAV_PRIVILEGED
18469 Yowza Am I SETGID yet
18472 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
18473 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
18474 ac_cv_func_getloadavg_setgid=yes
18476 ac_cv_func_getloadavg_setgid=no
18481 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
18482 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18483 if test $ac_cv_func_getloadavg_setgid = yes; then
18486 cat >>confdefs.h <<\_ACEOF
18487 #define GETLOADAVG_PRIVILEGED 1
18494 if test $ac_cv_func_getloadavg_setgid = yes; then
18495 { echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
18496 echo $ECHO_N "checking group of
/dev
/kmem...
$ECHO_C" >&6; }
18497 if test "${ac_cv_group_kmem+set}" = set; then
18498 echo $ECHO_N "(cached
) $ECHO_C" >&6
18500 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18501 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18502 # If we got an error (system does not support symlinks), try without -L.
18503 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18504 ac_cv_group_kmem=`echo $ac_ls_output \
18505 | sed -ne 's/[ ][ ]*/ /g;
18506 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18510 { echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
18511 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18512 KMEM_GROUP=$ac_cv_group_kmem
18514 if test "x
$ac_save_LIBS" = x; then
18515 GETLOADAVG_LIBS=$LIBS
18517 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s
!$ac_save_LIBS!!"`
18523 { echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
18524 echo $ECHO_N "checking
for _LARGEFILE_SOURCE value needed
for large files...
$ECHO_C" >&6; }
18525 if test "${ac_cv_sys_largefile_source+set}" = set; then
18526 echo $ECHO_N "(cached
) $ECHO_C" >&6
18529 cat >conftest.$ac_ext <<_ACEOF
18532 cat confdefs.h >>conftest.$ac_ext
18533 cat >>conftest.$ac_ext <<_ACEOF
18534 /* end confdefs.h. */
18535 #include <sys/types.h> /* for off_t */
18540 int (*fp) (FILE *, off_t, int) = fseeko;
18541 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18546 rm -f conftest.$ac_objext conftest$ac_exeext
18547 if { (ac_try="$ac_link"
18548 case "(($ac_try" in
18549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18550 *) ac_try_echo=$ac_try;;
18552 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18553 (eval "$ac_link") 2>conftest.er1
18555 grep -v '^ *+' conftest.er1 >conftest.err
18557 cat conftest.err >&5
18558 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18559 (exit $ac_status); } && {
18560 test -z "$ac_c_werror_flag" ||
18561 test ! -s conftest.err
18562 } && test -s conftest$ac_exeext &&
18563 $as_test_x conftest$ac_exeext; then
18564 ac_cv_sys_largefile_source=no; break
18566 echo "$as_me: failed program was
:" >&5
18567 sed 's/^/| /' conftest.$ac_ext >&5
18572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18573 conftest$ac_exeext conftest.$ac_ext
18574 cat >conftest.$ac_ext <<_ACEOF
18577 cat confdefs.h >>conftest.$ac_ext
18578 cat >>conftest.$ac_ext <<_ACEOF
18579 /* end confdefs.h. */
18580 #define _LARGEFILE_SOURCE 1
18581 #include <sys/types.h> /* for off_t */
18586 int (*fp) (FILE *, off_t, int) = fseeko;
18587 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18592 rm -f conftest.$ac_objext conftest$ac_exeext
18593 if { (ac_try="$ac_link"
18594 case "(($ac_try" in
18595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18596 *) ac_try_echo=$ac_try;;
18598 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18599 (eval "$ac_link") 2>conftest.er1
18601 grep -v '^ *+' conftest.er1 >conftest.err
18603 cat conftest.err >&5
18604 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18605 (exit $ac_status); } && {
18606 test -z "$ac_c_werror_flag" ||
18607 test ! -s conftest.err
18608 } && test -s conftest$ac_exeext &&
18609 $as_test_x conftest$ac_exeext; then
18610 ac_cv_sys_largefile_source=1; break
18612 echo "$as_me: failed program was
:" >&5
18613 sed 's/^/| /' conftest.$ac_ext >&5
18618 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18619 conftest$ac_exeext conftest.$ac_ext
18620 ac_cv_sys_largefile_source=unknown
18624 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
18625 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18626 case $ac_cv_sys_largefile_source in #(
18629 cat >>confdefs.h <<_ACEOF
18630 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18636 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18637 # in glibc 2.1.3, but that breaks too many other things.
18638 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18639 if test $ac_cv_sys_largefile_source != unknown; then
18641 cat >>confdefs.h <<\_ACEOF
18642 #define HAVE_FSEEKO 1
18648 # Configure getopt.
18649 # getopt.m4 serial 10
18651 # The getopt module assume you want GNU getopt, with getopt_long etc,
18652 # rather than vanilla POSIX getopt. This means your your code should
18653 # always include <getopt.h> for the getopt prototypes.
18665 # Prerequisites of lib/getopt*.
18672 for ac_header in getopt.h
18674 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18675 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18676 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18677 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18678 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18679 echo $ECHO_N "(cached
) $ECHO_C" >&6
18681 ac_res=`eval echo '${'$as_ac_Header'}'`
18682 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18683 echo "${ECHO_T}$ac_res" >&6; }
18685 # Is the header compilable?
18686 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18687 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18688 cat >conftest.$ac_ext <<_ACEOF
18691 cat confdefs.h >>conftest.$ac_ext
18692 cat >>conftest.$ac_ext <<_ACEOF
18693 /* end confdefs.h. */
18694 $ac_includes_default
18695 #include <$ac_header>
18697 rm -f conftest.$ac_objext
18698 if { (ac_try="$ac_compile"
18699 case "(($ac_try" in
18700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18701 *) ac_try_echo=$ac_try;;
18703 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18704 (eval "$ac_compile") 2>conftest.er1
18706 grep -v '^ *+' conftest.er1 >conftest.err
18708 cat conftest.err >&5
18709 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18710 (exit $ac_status); } && {
18711 test -z "$ac_c_werror_flag" ||
18712 test ! -s conftest.err
18713 } && test -s conftest.$ac_objext; then
18714 ac_header_compiler=yes
18716 echo "$as_me: failed program was
:" >&5
18717 sed 's/^/| /' conftest.$ac_ext >&5
18719 ac_header_compiler=no
18722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18723 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18724 echo "${ECHO_T}$ac_header_compiler" >&6; }
18726 # Is the header present?
18727 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18728 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18729 cat >conftest.$ac_ext <<_ACEOF
18732 cat confdefs.h >>conftest.$ac_ext
18733 cat >>conftest.$ac_ext <<_ACEOF
18734 /* end confdefs.h. */
18735 #include <$ac_header>
18737 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18738 case "(($ac_try" in
18739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18740 *) ac_try_echo=$ac_try;;
18742 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18743 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18745 grep -v '^ *+' conftest.er1 >conftest.err
18747 cat conftest.err >&5
18748 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18749 (exit $ac_status); } >/dev/null && {
18750 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18751 test ! -s conftest.err
18753 ac_header_preproc=yes
18755 echo "$as_me: failed program was
:" >&5
18756 sed 's/^/| /' conftest.$ac_ext >&5
18758 ac_header_preproc=no
18761 rm -f conftest.err conftest.$ac_ext
18762 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18763 echo "${ECHO_T}$ac_header_preproc" >&6; }
18765 # So? What about this header?
18766 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18768 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18769 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18770 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18771 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18772 ac_header_preproc=yes
18775 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18776 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18777 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18778 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18779 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18780 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18781 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18782 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18783 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18784 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18785 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18786 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18790 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18791 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18792 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18793 echo $ECHO_N "(cached
) $ECHO_C" >&6
18795 eval "$as_ac_Header=\
$ac_header_preproc"
18797 ac_res=`eval echo '${'$as_ac_Header'}'`
18798 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18799 echo "${ECHO_T}$ac_res" >&6; }
18802 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18803 cat >>confdefs.h <<_ACEOF
18804 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18813 if test -z "$GETOPT_H"; then
18815 for ac_func in getopt_long_only
18817 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18818 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18819 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18820 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18821 echo $ECHO_N "(cached
) $ECHO_C" >&6
18823 cat >conftest.$ac_ext <<_ACEOF
18826 cat confdefs.h >>conftest.$ac_ext
18827 cat >>conftest.$ac_ext <<_ACEOF
18828 /* end confdefs.h. */
18829 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18830 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18831 #define $ac_func innocuous_$ac_func
18833 /* System header to define __stub macros and hopefully few prototypes,
18834 which can conflict with char $ac_func (); below.
18835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18836 <limits.h> exists even on freestanding compilers. */
18839 # include <limits.h>
18841 # include <assert.h>
18846 /* Override any GCC internal prototype to avoid an error.
18847 Use char because int might match the return type of a GCC
18848 builtin and then its argument prototype would still apply. */
18853 /* The GNU C library defines this for functions which it implements
18854 to always fail with ENOSYS. Some functions are actually named
18855 something starting with __ and the normal name is an alias. */
18856 #if defined __stub_$ac_func || defined __stub___$ac_func
18863 return $ac_func ();
18868 rm -f conftest.$ac_objext conftest$ac_exeext
18869 if { (ac_try="$ac_link"
18870 case "(($ac_try" in
18871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18872 *) ac_try_echo=$ac_try;;
18874 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18875 (eval "$ac_link") 2>conftest.er1
18877 grep -v '^ *+' conftest.er1 >conftest.err
18879 cat conftest.err >&5
18880 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18881 (exit $ac_status); } && {
18882 test -z "$ac_c_werror_flag" ||
18883 test ! -s conftest.err
18884 } && test -s conftest$ac_exeext &&
18885 $as_test_x conftest$ac_exeext; then
18886 eval "$as_ac_var=yes"
18888 echo "$as_me: failed program was
:" >&5
18889 sed 's/^/| /' conftest.$ac_ext >&5
18891 eval "$as_ac_var=no
"
18894 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18895 conftest$ac_exeext conftest.$ac_ext
18897 ac_res=`eval echo '${'$as_ac_var'}'`
18898 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18899 echo "${ECHO_T}$ac_res" >&6; }
18900 if test `eval echo '${'$as_ac_var'}'` = yes; then
18901 cat >>confdefs.h <<_ACEOF
18902 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18912 if test -z "$GETOPT_H"; then
18913 { echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
18914 echo $ECHO_N "checking whether optreset is declared...
$ECHO_C" >&6; }
18915 if test "${ac_cv_have_decl_optreset+set}" = set; then
18916 echo $ECHO_N "(cached
) $ECHO_C" >&6
18918 cat >conftest.$ac_ext <<_ACEOF
18921 cat confdefs.h >>conftest.$ac_ext
18922 cat >>conftest.$ac_ext <<_ACEOF
18923 /* end confdefs.h. */
18924 #include <getopt.h>
18937 rm -f conftest.$ac_objext
18938 if { (ac_try="$ac_compile"
18939 case "(($ac_try" in
18940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18941 *) ac_try_echo=$ac_try;;
18943 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18944 (eval "$ac_compile") 2>conftest.er1
18946 grep -v '^ *+' conftest.er1 >conftest.err
18948 cat conftest.err >&5
18949 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18950 (exit $ac_status); } && {
18951 test -z "$ac_c_werror_flag" ||
18952 test ! -s conftest.err
18953 } && test -s conftest.$ac_objext; then
18954 ac_cv_have_decl_optreset=yes
18956 echo "$as_me: failed program was
:" >&5
18957 sed 's/^/| /' conftest.$ac_ext >&5
18959 ac_cv_have_decl_optreset=no
18962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18964 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
18965 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
18966 if test $ac_cv_have_decl_optreset = yes; then
18972 if test -z "$GETOPT_H"; then
18973 { echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
18974 echo $ECHO_N "checking
for working GNU getopt
function...
$ECHO_C" >&6; }
18975 if test "${gl_cv_func_gnu_getopt+set}" = set; then
18976 echo $ECHO_N "(cached
) $ECHO_C" >&6
18978 if test "$cross_compiling" = yes; then
18979 { echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
18980 echo $ECHO_N "checking whether getopt_clip is declared...
$ECHO_C" >&6; }
18981 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
18982 echo $ECHO_N "(cached
) $ECHO_C" >&6
18984 cat >conftest.$ac_ext <<_ACEOF
18987 cat confdefs.h >>conftest.$ac_ext
18988 cat >>conftest.$ac_ext <<_ACEOF
18989 /* end confdefs.h. */
18990 #include <getopt.h>
18995 #ifndef getopt_clip
18996 (void) getopt_clip;
19003 rm -f conftest.$ac_objext
19004 if { (ac_try="$ac_compile"
19005 case "(($ac_try" in
19006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19007 *) ac_try_echo=$ac_try;;
19009 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19010 (eval "$ac_compile") 2>conftest.er1
19012 grep -v '^ *+' conftest.er1 >conftest.err
19014 cat conftest.err >&5
19015 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19016 (exit $ac_status); } && {
19017 test -z "$ac_c_werror_flag" ||
19018 test ! -s conftest.err
19019 } && test -s conftest.$ac_objext; then
19020 ac_cv_have_decl_getopt_clip=yes
19022 echo "$as_me: failed program was
:" >&5
19023 sed 's/^/| /' conftest.$ac_ext >&5
19025 ac_cv_have_decl_getopt_clip=no
19028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19030 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
19031 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19032 if test $ac_cv_have_decl_getopt_clip = yes; then
19033 gl_cv_func_gnu_getopt=no
19035 gl_cv_func_gnu_getopt=yes
19039 cat >conftest.$ac_ext <<_ACEOF
19042 cat confdefs.h >>conftest.$ac_ext
19043 cat >>conftest.$ac_ext <<_ACEOF
19044 /* end confdefs.h. */
19045 #include <getopt.h>
19051 myargv[0] = "conftest
";
19054 return getopt (2, myargv, "+a
") != '?';
19060 rm -f conftest$ac_exeext
19061 if { (ac_try="$ac_link"
19062 case "(($ac_try" in
19063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19064 *) ac_try_echo=$ac_try;;
19066 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19067 (eval "$ac_link") 2>&5
19069 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19070 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19071 { (case "(($ac_try" in
19072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19073 *) ac_try_echo=$ac_try;;
19075 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19076 (eval "$ac_try") 2>&5
19078 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19079 (exit $ac_status); }; }; then
19080 gl_cv_func_gnu_getopt=yes
19082 echo "$as_me: program exited with status
$ac_status" >&5
19083 echo "$as_me: failed program was
:" >&5
19084 sed 's/^/| /' conftest.$ac_ext >&5
19086 ( exit $ac_status )
19087 gl_cv_func_gnu_getopt=no
19089 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19094 { echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
19095 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19096 if test "$gl_cv_func_gnu_getopt" = "no
"; then
19103 if test -n "$GETOPT_H"; then
19108 cat >>confdefs.h <<\_ACEOF
19109 #define __GETOPT_PREFIX rpl_
19115 GETOPTOBJS='getopt.o getopt1.o'
19122 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
19123 echo $ECHO_N "checking whether getpgrp requires zero arguments...
$ECHO_C" >&6; }
19124 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19125 echo $ECHO_N "(cached
) $ECHO_C" >&6
19127 # Use it with a single arg.
19128 cat >conftest.$ac_ext <<_ACEOF
19131 cat confdefs.h >>conftest.$ac_ext
19132 cat >>conftest.$ac_ext <<_ACEOF
19133 /* end confdefs.h. */
19134 $ac_includes_default
19143 rm -f conftest.$ac_objext
19144 if { (ac_try="$ac_compile"
19145 case "(($ac_try" in
19146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19147 *) ac_try_echo=$ac_try;;
19149 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19150 (eval "$ac_compile") 2>conftest.er1
19152 grep -v '^ *+' conftest.er1 >conftest.err
19154 cat conftest.err >&5
19155 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19156 (exit $ac_status); } && {
19157 test -z "$ac_c_werror_flag" ||
19158 test ! -s conftest.err
19159 } && test -s conftest.$ac_objext; then
19160 ac_cv_func_getpgrp_void=no
19162 echo "$as_me: failed program was
:" >&5
19163 sed 's/^/| /' conftest.$ac_ext >&5
19165 ac_cv_func_getpgrp_void=yes
19168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19171 { echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
19172 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19173 if test $ac_cv_func_getpgrp_void = yes; then
19175 cat >>confdefs.h <<\_ACEOF
19176 #define GETPGRP_VOID 1
19183 for ac_func in strftime
19185 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19186 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19187 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19188 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19189 echo $ECHO_N "(cached
) $ECHO_C" >&6
19191 cat >conftest.$ac_ext <<_ACEOF
19194 cat confdefs.h >>conftest.$ac_ext
19195 cat >>conftest.$ac_ext <<_ACEOF
19196 /* end confdefs.h. */
19197 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19198 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19199 #define $ac_func innocuous_$ac_func
19201 /* System header to define __stub macros and hopefully few prototypes,
19202 which can conflict with char $ac_func (); below.
19203 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19204 <limits.h> exists even on freestanding compilers. */
19207 # include <limits.h>
19209 # include <assert.h>
19214 /* Override any GCC internal prototype to avoid an error.
19215 Use char because int might match the return type of a GCC
19216 builtin and then its argument prototype would still apply. */
19221 /* The GNU C library defines this for functions which it implements
19222 to always fail with ENOSYS. Some functions are actually named
19223 something starting with __ and the normal name is an alias. */
19224 #if defined __stub_$ac_func || defined __stub___$ac_func
19231 return $ac_func ();
19236 rm -f conftest.$ac_objext conftest$ac_exeext
19237 if { (ac_try="$ac_link"
19238 case "(($ac_try" in
19239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19240 *) ac_try_echo=$ac_try;;
19242 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19243 (eval "$ac_link") 2>conftest.er1
19245 grep -v '^ *+' conftest.er1 >conftest.err
19247 cat conftest.err >&5
19248 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19249 (exit $ac_status); } && {
19250 test -z "$ac_c_werror_flag" ||
19251 test ! -s conftest.err
19252 } && test -s conftest$ac_exeext &&
19253 $as_test_x conftest$ac_exeext; then
19254 eval "$as_ac_var=yes"
19256 echo "$as_me: failed program was
:" >&5
19257 sed 's/^/| /' conftest.$ac_ext >&5
19259 eval "$as_ac_var=no
"
19262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19263 conftest$ac_exeext conftest.$ac_ext
19265 ac_res=`eval echo '${'$as_ac_var'}'`
19266 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19267 echo "${ECHO_T}$ac_res" >&6; }
19268 if test `eval echo '${'$as_ac_var'}'` = yes; then
19269 cat >>confdefs.h <<_ACEOF
19270 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19274 # strftime is in -lintl on SCO UNIX.
19275 { echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
19276 echo $ECHO_N "checking
for strftime
in -lintl...
$ECHO_C" >&6; }
19277 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19278 echo $ECHO_N "(cached
) $ECHO_C" >&6
19280 ac_check_lib_save_LIBS=$LIBS
19281 LIBS="-lintl $LIBS"
19282 cat >conftest.$ac_ext <<_ACEOF
19285 cat confdefs.h >>conftest.$ac_ext
19286 cat >>conftest.$ac_ext <<_ACEOF
19287 /* end confdefs.h. */
19289 /* Override any GCC internal prototype to avoid an error.
19290 Use char because int might match the return type of a GCC
19291 builtin and then its argument prototype would still apply. */
19299 return strftime ();
19304 rm -f conftest.$ac_objext conftest$ac_exeext
19305 if { (ac_try="$ac_link"
19306 case "(($ac_try" in
19307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19308 *) ac_try_echo=$ac_try;;
19310 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19311 (eval "$ac_link") 2>conftest.er1
19313 grep -v '^ *+' conftest.er1 >conftest.err
19315 cat conftest.err >&5
19316 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19317 (exit $ac_status); } && {
19318 test -z "$ac_c_werror_flag" ||
19319 test ! -s conftest.err
19320 } && test -s conftest$ac_exeext &&
19321 $as_test_x conftest$ac_exeext; then
19322 ac_cv_lib_intl_strftime=yes
19324 echo "$as_me: failed program was
:" >&5
19325 sed 's/^/| /' conftest.$ac_ext >&5
19327 ac_cv_lib_intl_strftime=no
19330 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19331 conftest$ac_exeext conftest.$ac_ext
19332 LIBS=$ac_check_lib_save_LIBS
19334 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
19335 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19336 if test $ac_cv_lib_intl_strftime = yes; then
19337 cat >>confdefs.h <<\_ACEOF
19338 #define HAVE_STRFTIME 1
19341 LIBS="-lintl $LIBS"
19350 for ac_func in grantpt
19352 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19353 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19354 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19355 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19356 echo $ECHO_N "(cached
) $ECHO_C" >&6
19358 cat >conftest.$ac_ext <<_ACEOF
19361 cat confdefs.h >>conftest.$ac_ext
19362 cat >>conftest.$ac_ext <<_ACEOF
19363 /* end confdefs.h. */
19364 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19365 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19366 #define $ac_func innocuous_$ac_func
19368 /* System header to define __stub macros and hopefully few prototypes,
19369 which can conflict with char $ac_func (); below.
19370 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19371 <limits.h> exists even on freestanding compilers. */
19374 # include <limits.h>
19376 # include <assert.h>
19381 /* Override any GCC internal prototype to avoid an error.
19382 Use char because int might match the return type of a GCC
19383 builtin and then its argument prototype would still apply. */
19388 /* The GNU C library defines this for functions which it implements
19389 to always fail with ENOSYS. Some functions are actually named
19390 something starting with __ and the normal name is an alias. */
19391 #if defined __stub_$ac_func || defined __stub___$ac_func
19398 return $ac_func ();
19403 rm -f conftest.$ac_objext conftest$ac_exeext
19404 if { (ac_try="$ac_link"
19405 case "(($ac_try" in
19406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19407 *) ac_try_echo=$ac_try;;
19409 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19410 (eval "$ac_link") 2>conftest.er1
19412 grep -v '^ *+' conftest.er1 >conftest.err
19414 cat conftest.err >&5
19415 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19416 (exit $ac_status); } && {
19417 test -z "$ac_c_werror_flag" ||
19418 test ! -s conftest.err
19419 } && test -s conftest$ac_exeext &&
19420 $as_test_x conftest$ac_exeext; then
19421 eval "$as_ac_var=yes"
19423 echo "$as_me: failed program was
:" >&5
19424 sed 's/^/| /' conftest.$ac_ext >&5
19426 eval "$as_ac_var=no
"
19429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19430 conftest$ac_exeext conftest.$ac_ext
19432 ac_res=`eval echo '${'$as_ac_var'}'`
19433 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19434 echo "${ECHO_T}$ac_res" >&6; }
19435 if test `eval echo '${'$as_ac_var'}'` = yes; then
19436 cat >>confdefs.h <<_ACEOF
19437 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19444 # PTY-related GNU extensions.
19446 for ac_func in getpt
19448 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19449 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19450 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19451 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19452 echo $ECHO_N "(cached
) $ECHO_C" >&6
19454 cat >conftest.$ac_ext <<_ACEOF
19457 cat confdefs.h >>conftest.$ac_ext
19458 cat >>conftest.$ac_ext <<_ACEOF
19459 /* end confdefs.h. */
19460 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19461 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19462 #define $ac_func innocuous_$ac_func
19464 /* System header to define __stub macros and hopefully few prototypes,
19465 which can conflict with char $ac_func (); below.
19466 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19467 <limits.h> exists even on freestanding compilers. */
19470 # include <limits.h>
19472 # include <assert.h>
19477 /* Override any GCC internal prototype to avoid an error.
19478 Use char because int might match the return type of a GCC
19479 builtin and then its argument prototype would still apply. */
19484 /* The GNU C library defines this for functions which it implements
19485 to always fail with ENOSYS. Some functions are actually named
19486 something starting with __ and the normal name is an alias. */
19487 #if defined __stub_$ac_func || defined __stub___$ac_func
19494 return $ac_func ();
19499 rm -f conftest.$ac_objext conftest$ac_exeext
19500 if { (ac_try="$ac_link"
19501 case "(($ac_try" in
19502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19503 *) ac_try_echo=$ac_try;;
19505 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19506 (eval "$ac_link") 2>conftest.er1
19508 grep -v '^ *+' conftest.er1 >conftest.err
19510 cat conftest.err >&5
19511 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19512 (exit $ac_status); } && {
19513 test -z "$ac_c_werror_flag" ||
19514 test ! -s conftest.err
19515 } && test -s conftest$ac_exeext &&
19516 $as_test_x conftest$ac_exeext; then
19517 eval "$as_ac_var=yes"
19519 echo "$as_me: failed program was
:" >&5
19520 sed 's/^/| /' conftest.$ac_ext >&5
19522 eval "$as_ac_var=no
"
19525 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19526 conftest$ac_exeext conftest.$ac_ext
19528 ac_res=`eval echo '${'$as_ac_var'}'`
19529 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19530 echo "${ECHO_T}$ac_res" >&6; }
19531 if test `eval echo '${'$as_ac_var'}'` = yes; then
19532 cat >>confdefs.h <<_ACEOF
19533 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19540 # Check this now, so that we will NOT find the above functions in ncurses.
19541 # That is because we have not set up to link ncurses in lib-src.
19542 # It's better to believe a function is not available
19543 # than to expect to find it in ncurses.
19545 { echo "$as_me:$LINENO: checking
for tparm
in -lncurses" >&5
19546 echo $ECHO_N "checking
for tparm
in -lncurses...
$ECHO_C" >&6; }
19547 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19548 echo $ECHO_N "(cached
) $ECHO_C" >&6
19550 ac_check_lib_save_LIBS=$LIBS
19551 LIBS="-lncurses $LIBS"
19552 cat >conftest.$ac_ext <<_ACEOF
19555 cat confdefs.h >>conftest.$ac_ext
19556 cat >>conftest.$ac_ext <<_ACEOF
19557 /* end confdefs.h. */
19559 /* Override any GCC internal prototype to avoid an error.
19560 Use char because int might match the return type of a GCC
19561 builtin and then its argument prototype would still apply. */
19574 rm -f conftest.$ac_objext conftest$ac_exeext
19575 if { (ac_try="$ac_link"
19576 case "(($ac_try" in
19577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19578 *) ac_try_echo=$ac_try;;
19580 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19581 (eval "$ac_link") 2>conftest.er1
19583 grep -v '^ *+' conftest.er1 >conftest.err
19585 cat conftest.err >&5
19586 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19587 (exit $ac_status); } && {
19588 test -z "$ac_c_werror_flag" ||
19589 test ! -s conftest.err
19590 } && test -s conftest$ac_exeext &&
19591 $as_test_x conftest$ac_exeext; then
19592 ac_cv_lib_ncurses_tparm=yes
19594 echo "$as_me: failed program was
:" >&5
19595 sed 's/^/| /' conftest.$ac_ext >&5
19597 ac_cv_lib_ncurses_tparm=no
19600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19601 conftest$ac_exeext conftest.$ac_ext
19602 LIBS=$ac_check_lib_save_LIBS
19604 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ncurses_tparm" >&5
19605 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19606 if test $ac_cv_lib_ncurses_tparm = yes; then
19607 cat >>confdefs.h <<_ACEOF
19608 #define HAVE_LIBNCURSES 1
19611 LIBS="-lncurses $LIBS"
19616 # Do we need the Hesiod library to provide the support routines?
19617 if test "$with_hesiod" = yes ; then
19618 # Don't set $LIBS here -- see comments above.
19620 { echo "$as_me:$LINENO: checking
for res_send
" >&5
19621 echo $ECHO_N "checking
for res_send...
$ECHO_C" >&6; }
19622 if test "${ac_cv_func_res_send+set}" = set; then
19623 echo $ECHO_N "(cached
) $ECHO_C" >&6
19625 cat >conftest.$ac_ext <<_ACEOF
19628 cat confdefs.h >>conftest.$ac_ext
19629 cat >>conftest.$ac_ext <<_ACEOF
19630 /* end confdefs.h. */
19631 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19632 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19633 #define res_send innocuous_res_send
19635 /* System header to define __stub macros and hopefully few prototypes,
19636 which can conflict with char res_send (); below.
19637 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19638 <limits.h> exists even on freestanding compilers. */
19641 # include <limits.h>
19643 # include <assert.h>
19648 /* Override any GCC internal prototype to avoid an error.
19649 Use char because int might match the return type of a GCC
19650 builtin and then its argument prototype would still apply. */
19655 /* The GNU C library defines this for functions which it implements
19656 to always fail with ENOSYS. Some functions are actually named
19657 something starting with __ and the normal name is an alias. */
19658 #if defined __stub_res_send || defined __stub___res_send
19665 return res_send ();
19670 rm -f conftest.$ac_objext conftest$ac_exeext
19671 if { (ac_try="$ac_link"
19672 case "(($ac_try" in
19673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19674 *) ac_try_echo=$ac_try;;
19676 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19677 (eval "$ac_link") 2>conftest.er1
19679 grep -v '^ *+' conftest.er1 >conftest.err
19681 cat conftest.err >&5
19682 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19683 (exit $ac_status); } && {
19684 test -z "$ac_c_werror_flag" ||
19685 test ! -s conftest.err
19686 } && test -s conftest$ac_exeext &&
19687 $as_test_x conftest$ac_exeext; then
19688 ac_cv_func_res_send=yes
19690 echo "$as_me: failed program was
:" >&5
19691 sed 's/^/| /' conftest.$ac_ext >&5
19693 ac_cv_func_res_send=no
19696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19697 conftest$ac_exeext conftest.$ac_ext
19699 { echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
19700 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19701 if test $ac_cv_func_res_send = yes; then
19704 { echo "$as_me:$LINENO: checking
for __res_send
" >&5
19705 echo $ECHO_N "checking
for __res_send...
$ECHO_C" >&6; }
19706 if test "${ac_cv_func___res_send+set}" = set; then
19707 echo $ECHO_N "(cached
) $ECHO_C" >&6
19709 cat >conftest.$ac_ext <<_ACEOF
19712 cat confdefs.h >>conftest.$ac_ext
19713 cat >>conftest.$ac_ext <<_ACEOF
19714 /* end confdefs.h. */
19715 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19716 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19717 #define __res_send innocuous___res_send
19719 /* System header to define __stub macros and hopefully few prototypes,
19720 which can conflict with char __res_send (); below.
19721 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19722 <limits.h> exists even on freestanding compilers. */
19725 # include <limits.h>
19727 # include <assert.h>
19732 /* Override any GCC internal prototype to avoid an error.
19733 Use char because int might match the return type of a GCC
19734 builtin and then its argument prototype would still apply. */
19738 char __res_send ();
19739 /* The GNU C library defines this for functions which it implements
19740 to always fail with ENOSYS. Some functions are actually named
19741 something starting with __ and the normal name is an alias. */
19742 #if defined __stub___res_send || defined __stub_____res_send
19749 return __res_send ();
19754 rm -f conftest.$ac_objext conftest$ac_exeext
19755 if { (ac_try="$ac_link"
19756 case "(($ac_try" in
19757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19758 *) ac_try_echo=$ac_try;;
19760 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19761 (eval "$ac_link") 2>conftest.er1
19763 grep -v '^ *+' conftest.er1 >conftest.err
19765 cat conftest.err >&5
19766 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19767 (exit $ac_status); } && {
19768 test -z "$ac_c_werror_flag" ||
19769 test ! -s conftest.err
19770 } && test -s conftest$ac_exeext &&
19771 $as_test_x conftest$ac_exeext; then
19772 ac_cv_func___res_send=yes
19774 echo "$as_me: failed program was
:" >&5
19775 sed 's/^/| /' conftest.$ac_ext >&5
19777 ac_cv_func___res_send=no
19780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19781 conftest$ac_exeext conftest.$ac_ext
19783 { echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
19784 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19785 if test $ac_cv_func___res_send = yes; then
19788 { echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
19789 echo $ECHO_N "checking
for res_send
in -lresolv...
$ECHO_C" >&6; }
19790 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19791 echo $ECHO_N "(cached
) $ECHO_C" >&6
19793 ac_check_lib_save_LIBS=$LIBS
19794 LIBS="-lresolv $LIBS"
19795 cat >conftest.$ac_ext <<_ACEOF
19798 cat confdefs.h >>conftest.$ac_ext
19799 cat >>conftest.$ac_ext <<_ACEOF
19800 /* end confdefs.h. */
19802 /* Override any GCC internal prototype to avoid an error.
19803 Use char because int might match the return type of a GCC
19804 builtin and then its argument prototype would still apply. */
19812 return res_send ();
19817 rm -f conftest.$ac_objext conftest$ac_exeext
19818 if { (ac_try="$ac_link"
19819 case "(($ac_try" in
19820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19821 *) ac_try_echo=$ac_try;;
19823 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19824 (eval "$ac_link") 2>conftest.er1
19826 grep -v '^ *+' conftest.er1 >conftest.err
19828 cat conftest.err >&5
19829 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19830 (exit $ac_status); } && {
19831 test -z "$ac_c_werror_flag" ||
19832 test ! -s conftest.err
19833 } && test -s conftest$ac_exeext &&
19834 $as_test_x conftest$ac_exeext; then
19835 ac_cv_lib_resolv_res_send=yes
19837 echo "$as_me: failed program was
:" >&5
19838 sed 's/^/| /' conftest.$ac_ext >&5
19840 ac_cv_lib_resolv_res_send=no
19843 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19844 conftest$ac_exeext conftest.$ac_ext
19845 LIBS=$ac_check_lib_save_LIBS
19847 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
19848 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
19849 if test $ac_cv_lib_resolv_res_send = yes; then
19852 { echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
19853 echo $ECHO_N "checking
for __res_send
in -lresolv...
$ECHO_C" >&6; }
19854 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
19855 echo $ECHO_N "(cached
) $ECHO_C" >&6
19857 ac_check_lib_save_LIBS=$LIBS
19858 LIBS="-lresolv $LIBS"
19859 cat >conftest.$ac_ext <<_ACEOF
19862 cat confdefs.h >>conftest.$ac_ext
19863 cat >>conftest.$ac_ext <<_ACEOF
19864 /* end confdefs.h. */
19866 /* Override any GCC internal prototype to avoid an error.
19867 Use char because int might match the return type of a GCC
19868 builtin and then its argument prototype would still apply. */
19872 char __res_send ();
19876 return __res_send ();
19881 rm -f conftest.$ac_objext conftest$ac_exeext
19882 if { (ac_try="$ac_link"
19883 case "(($ac_try" in
19884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19885 *) ac_try_echo=$ac_try;;
19887 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19888 (eval "$ac_link") 2>conftest.er1
19890 grep -v '^ *+' conftest.er1 >conftest.err
19892 cat conftest.err >&5
19893 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19894 (exit $ac_status); } && {
19895 test -z "$ac_c_werror_flag" ||
19896 test ! -s conftest.err
19897 } && test -s conftest$ac_exeext &&
19898 $as_test_x conftest$ac_exeext; then
19899 ac_cv_lib_resolv___res_send=yes
19901 echo "$as_me: failed program was
:" >&5
19902 sed 's/^/| /' conftest.$ac_ext >&5
19904 ac_cv_lib_resolv___res_send=no
19907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19908 conftest$ac_exeext conftest.$ac_ext
19909 LIBS=$ac_check_lib_save_LIBS
19911 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
19912 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
19913 if test $ac_cv_lib_resolv___res_send = yes; then
19923 if test "$resolv" = yes ; then
19926 cat >>confdefs.h <<\_ACEOF
19927 #define HAVE_LIBRESOLV 1
19933 { echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
19934 echo $ECHO_N "checking
for hes_getmailhost...
$ECHO_C" >&6; }
19935 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
19936 echo $ECHO_N "(cached
) $ECHO_C" >&6
19938 cat >conftest.$ac_ext <<_ACEOF
19941 cat confdefs.h >>conftest.$ac_ext
19942 cat >>conftest.$ac_ext <<_ACEOF
19943 /* end confdefs.h. */
19944 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
19945 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19946 #define hes_getmailhost innocuous_hes_getmailhost
19948 /* System header to define __stub macros and hopefully few prototypes,
19949 which can conflict with char hes_getmailhost (); below.
19950 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19951 <limits.h> exists even on freestanding compilers. */
19954 # include <limits.h>
19956 # include <assert.h>
19959 #undef hes_getmailhost
19961 /* Override any GCC internal prototype to avoid an error.
19962 Use char because int might match the return type of a GCC
19963 builtin and then its argument prototype would still apply. */
19967 char hes_getmailhost ();
19968 /* The GNU C library defines this for functions which it implements
19969 to always fail with ENOSYS. Some functions are actually named
19970 something starting with __ and the normal name is an alias. */
19971 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
19978 return hes_getmailhost ();
19983 rm -f conftest.$ac_objext conftest$ac_exeext
19984 if { (ac_try="$ac_link"
19985 case "(($ac_try" in
19986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19987 *) ac_try_echo=$ac_try;;
19989 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19990 (eval "$ac_link") 2>conftest.er1
19992 grep -v '^ *+' conftest.er1 >conftest.err
19994 cat conftest.err >&5
19995 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19996 (exit $ac_status); } && {
19997 test -z "$ac_c_werror_flag" ||
19998 test ! -s conftest.err
19999 } && test -s conftest$ac_exeext &&
20000 $as_test_x conftest$ac_exeext; then
20001 ac_cv_func_hes_getmailhost=yes
20003 echo "$as_me: failed program was
:" >&5
20004 sed 's/^/| /' conftest.$ac_ext >&5
20006 ac_cv_func_hes_getmailhost=no
20009 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20010 conftest$ac_exeext conftest.$ac_ext
20012 { echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
20013 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20014 if test $ac_cv_func_hes_getmailhost = yes; then
20017 { echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
20018 echo $ECHO_N "checking
for hes_getmailhost
in -lhesiod...
$ECHO_C" >&6; }
20019 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20020 echo $ECHO_N "(cached
) $ECHO_C" >&6
20022 ac_check_lib_save_LIBS=$LIBS
20023 LIBS="-lhesiod $RESOLVLIB $LIBS"
20024 cat >conftest.$ac_ext <<_ACEOF
20027 cat confdefs.h >>conftest.$ac_ext
20028 cat >>conftest.$ac_ext <<_ACEOF
20029 /* end confdefs.h. */
20031 /* Override any GCC internal prototype to avoid an error.
20032 Use char because int might match the return type of a GCC
20033 builtin and then its argument prototype would still apply. */
20037 char hes_getmailhost ();
20041 return hes_getmailhost ();
20046 rm -f conftest.$ac_objext conftest$ac_exeext
20047 if { (ac_try="$ac_link"
20048 case "(($ac_try" in
20049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20050 *) ac_try_echo=$ac_try;;
20052 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20053 (eval "$ac_link") 2>conftest.er1
20055 grep -v '^ *+' conftest.er1 >conftest.err
20057 cat conftest.err >&5
20058 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20059 (exit $ac_status); } && {
20060 test -z "$ac_c_werror_flag" ||
20061 test ! -s conftest.err
20062 } && test -s conftest$ac_exeext &&
20063 $as_test_x conftest$ac_exeext; then
20064 ac_cv_lib_hesiod_hes_getmailhost=yes
20066 echo "$as_me: failed program was
:" >&5
20067 sed 's/^/| /' conftest.$ac_ext >&5
20069 ac_cv_lib_hesiod_hes_getmailhost=no
20072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20073 conftest$ac_exeext conftest.$ac_ext
20074 LIBS=$ac_check_lib_save_LIBS
20076 { echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20077 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20078 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20080 cat >>confdefs.h <<\_ACEOF
20081 #define HAVE_LIBHESIOD 1
20092 # These tell us which Kerberos-related libraries to use.
20093 if test "${with_kerberos+set}" = set; then
20095 { echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
20096 echo $ECHO_N "checking
for com_err
in -lcom_err...
$ECHO_C" >&6; }
20097 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20098 echo $ECHO_N "(cached
) $ECHO_C" >&6
20100 ac_check_lib_save_LIBS=$LIBS
20101 LIBS="-lcom_err $LIBS"
20102 cat >conftest.$ac_ext <<_ACEOF
20105 cat confdefs.h >>conftest.$ac_ext
20106 cat >>conftest.$ac_ext <<_ACEOF
20107 /* end confdefs.h. */
20109 /* Override any GCC internal prototype to avoid an error.
20110 Use char because int might match the return type of a GCC
20111 builtin and then its argument prototype would still apply. */
20124 rm -f conftest.$ac_objext conftest$ac_exeext
20125 if { (ac_try="$ac_link"
20126 case "(($ac_try" in
20127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20128 *) ac_try_echo=$ac_try;;
20130 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20131 (eval "$ac_link") 2>conftest.er1
20133 grep -v '^ *+' conftest.er1 >conftest.err
20135 cat conftest.err >&5
20136 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20137 (exit $ac_status); } && {
20138 test -z "$ac_c_werror_flag" ||
20139 test ! -s conftest.err
20140 } && test -s conftest$ac_exeext &&
20141 $as_test_x conftest$ac_exeext; then
20142 ac_cv_lib_com_err_com_err=yes
20144 echo "$as_me: failed program was
:" >&5
20145 sed 's/^/| /' conftest.$ac_ext >&5
20147 ac_cv_lib_com_err_com_err=no
20150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20151 conftest$ac_exeext conftest.$ac_ext
20152 LIBS=$ac_check_lib_save_LIBS
20154 { echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
20155 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20156 if test $ac_cv_lib_com_err_com_err = yes; then
20157 cat >>confdefs.h <<_ACEOF
20158 #define HAVE_LIBCOM_ERR 1
20161 LIBS="-lcom_err $LIBS"
20166 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
20167 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lk5crypto...
$ECHO_C" >&6; }
20168 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20169 echo $ECHO_N "(cached
) $ECHO_C" >&6
20171 ac_check_lib_save_LIBS=$LIBS
20172 LIBS="-lk5crypto $LIBS"
20173 cat >conftest.$ac_ext <<_ACEOF
20176 cat confdefs.h >>conftest.$ac_ext
20177 cat >>conftest.$ac_ext <<_ACEOF
20178 /* end confdefs.h. */
20180 /* Override any GCC internal prototype to avoid an error.
20181 Use char because int might match the return type of a GCC
20182 builtin and then its argument prototype would still apply. */
20186 char mit_des_cbc_encrypt ();
20190 return mit_des_cbc_encrypt ();
20195 rm -f conftest.$ac_objext conftest$ac_exeext
20196 if { (ac_try="$ac_link"
20197 case "(($ac_try" in
20198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20199 *) ac_try_echo=$ac_try;;
20201 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20202 (eval "$ac_link") 2>conftest.er1
20204 grep -v '^ *+' conftest.er1 >conftest.err
20206 cat conftest.err >&5
20207 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20208 (exit $ac_status); } && {
20209 test -z "$ac_c_werror_flag" ||
20210 test ! -s conftest.err
20211 } && test -s conftest$ac_exeext &&
20212 $as_test_x conftest$ac_exeext; then
20213 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20215 echo "$as_me: failed program was
:" >&5
20216 sed 's/^/| /' conftest.$ac_ext >&5
20218 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20222 conftest$ac_exeext conftest.$ac_ext
20223 LIBS=$ac_check_lib_save_LIBS
20225 { echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20226 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20227 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20228 cat >>confdefs.h <<_ACEOF
20229 #define HAVE_LIBK5CRYPTO 1
20232 LIBS="-lk5crypto $LIBS"
20237 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
20238 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lcrypto...
$ECHO_C" >&6; }
20239 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20240 echo $ECHO_N "(cached
) $ECHO_C" >&6
20242 ac_check_lib_save_LIBS=$LIBS
20243 LIBS="-lcrypto $LIBS"
20244 cat >conftest.$ac_ext <<_ACEOF
20247 cat confdefs.h >>conftest.$ac_ext
20248 cat >>conftest.$ac_ext <<_ACEOF
20249 /* end confdefs.h. */
20251 /* Override any GCC internal prototype to avoid an error.
20252 Use char because int might match the return type of a GCC
20253 builtin and then its argument prototype would still apply. */
20257 char mit_des_cbc_encrypt ();
20261 return mit_des_cbc_encrypt ();
20266 rm -f conftest.$ac_objext conftest$ac_exeext
20267 if { (ac_try="$ac_link"
20268 case "(($ac_try" in
20269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20270 *) ac_try_echo=$ac_try;;
20272 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20273 (eval "$ac_link") 2>conftest.er1
20275 grep -v '^ *+' conftest.er1 >conftest.err
20277 cat conftest.err >&5
20278 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20279 (exit $ac_status); } && {
20280 test -z "$ac_c_werror_flag" ||
20281 test ! -s conftest.err
20282 } && test -s conftest$ac_exeext &&
20283 $as_test_x conftest$ac_exeext; then
20284 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20286 echo "$as_me: failed program was
:" >&5
20287 sed 's/^/| /' conftest.$ac_ext >&5
20289 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20293 conftest$ac_exeext conftest.$ac_ext
20294 LIBS=$ac_check_lib_save_LIBS
20296 { echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20297 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20298 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20299 cat >>confdefs.h <<_ACEOF
20300 #define HAVE_LIBCRYPTO 1
20303 LIBS="-lcrypto $LIBS"
20308 { echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
20309 echo $ECHO_N "checking
for krb5_init_context
in -lkrb5...
$ECHO_C" >&6; }
20310 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20311 echo $ECHO_N "(cached
) $ECHO_C" >&6
20313 ac_check_lib_save_LIBS=$LIBS
20314 LIBS="-lkrb5 $LIBS"
20315 cat >conftest.$ac_ext <<_ACEOF
20318 cat confdefs.h >>conftest.$ac_ext
20319 cat >>conftest.$ac_ext <<_ACEOF
20320 /* end confdefs.h. */
20322 /* Override any GCC internal prototype to avoid an error.
20323 Use char because int might match the return type of a GCC
20324 builtin and then its argument prototype would still apply. */
20328 char krb5_init_context ();
20332 return krb5_init_context ();
20337 rm -f conftest.$ac_objext conftest$ac_exeext
20338 if { (ac_try="$ac_link"
20339 case "(($ac_try" in
20340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20341 *) ac_try_echo=$ac_try;;
20343 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20344 (eval "$ac_link") 2>conftest.er1
20346 grep -v '^ *+' conftest.er1 >conftest.err
20348 cat conftest.err >&5
20349 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20350 (exit $ac_status); } && {
20351 test -z "$ac_c_werror_flag" ||
20352 test ! -s conftest.err
20353 } && test -s conftest$ac_exeext &&
20354 $as_test_x conftest$ac_exeext; then
20355 ac_cv_lib_krb5_krb5_init_context=yes
20357 echo "$as_me: failed program was
:" >&5
20358 sed 's/^/| /' conftest.$ac_ext >&5
20360 ac_cv_lib_krb5_krb5_init_context=no
20363 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20364 conftest$ac_exeext conftest.$ac_ext
20365 LIBS=$ac_check_lib_save_LIBS
20367 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
20368 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20369 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20370 cat >>confdefs.h <<_ACEOF
20371 #define HAVE_LIBKRB5 1
20374 LIBS="-lkrb5 $LIBS"
20378 if test "${with_kerberos5+set}" != set; then
20380 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
20381 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes425...
$ECHO_C" >&6; }
20382 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20383 echo $ECHO_N "(cached
) $ECHO_C" >&6
20385 ac_check_lib_save_LIBS=$LIBS
20386 LIBS="-ldes425 $LIBS"
20387 cat >conftest.$ac_ext <<_ACEOF
20390 cat confdefs.h >>conftest.$ac_ext
20391 cat >>conftest.$ac_ext <<_ACEOF
20392 /* end confdefs.h. */
20394 /* Override any GCC internal prototype to avoid an error.
20395 Use char because int might match the return type of a GCC
20396 builtin and then its argument prototype would still apply. */
20400 char des_cbc_encrypt ();
20404 return des_cbc_encrypt ();
20409 rm -f conftest.$ac_objext conftest$ac_exeext
20410 if { (ac_try="$ac_link"
20411 case "(($ac_try" in
20412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20413 *) ac_try_echo=$ac_try;;
20415 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20416 (eval "$ac_link") 2>conftest.er1
20418 grep -v '^ *+' conftest.er1 >conftest.err
20420 cat conftest.err >&5
20421 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20422 (exit $ac_status); } && {
20423 test -z "$ac_c_werror_flag" ||
20424 test ! -s conftest.err
20425 } && test -s conftest$ac_exeext &&
20426 $as_test_x conftest$ac_exeext; then
20427 ac_cv_lib_des425_des_cbc_encrypt=yes
20429 echo "$as_me: failed program was
:" >&5
20430 sed 's/^/| /' conftest.$ac_ext >&5
20432 ac_cv_lib_des425_des_cbc_encrypt=no
20435 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20436 conftest$ac_exeext conftest.$ac_ext
20437 LIBS=$ac_check_lib_save_LIBS
20439 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20440 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20441 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20442 cat >>confdefs.h <<_ACEOF
20443 #define HAVE_LIBDES425 1
20446 LIBS="-ldes425 $LIBS"
20450 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
20451 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes...
$ECHO_C" >&6; }
20452 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20453 echo $ECHO_N "(cached
) $ECHO_C" >&6
20455 ac_check_lib_save_LIBS=$LIBS
20457 cat >conftest.$ac_ext <<_ACEOF
20460 cat confdefs.h >>conftest.$ac_ext
20461 cat >>conftest.$ac_ext <<_ACEOF
20462 /* end confdefs.h. */
20464 /* Override any GCC internal prototype to avoid an error.
20465 Use char because int might match the return type of a GCC
20466 builtin and then its argument prototype would still apply. */
20470 char des_cbc_encrypt ();
20474 return des_cbc_encrypt ();
20479 rm -f conftest.$ac_objext conftest$ac_exeext
20480 if { (ac_try="$ac_link"
20481 case "(($ac_try" in
20482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20483 *) ac_try_echo=$ac_try;;
20485 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20486 (eval "$ac_link") 2>conftest.er1
20488 grep -v '^ *+' conftest.er1 >conftest.err
20490 cat conftest.err >&5
20491 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20492 (exit $ac_status); } && {
20493 test -z "$ac_c_werror_flag" ||
20494 test ! -s conftest.err
20495 } && test -s conftest$ac_exeext &&
20496 $as_test_x conftest$ac_exeext; then
20497 ac_cv_lib_des_des_cbc_encrypt=yes
20499 echo "$as_me: failed program was
:" >&5
20500 sed 's/^/| /' conftest.$ac_ext >&5
20502 ac_cv_lib_des_des_cbc_encrypt=no
20505 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20506 conftest$ac_exeext conftest.$ac_ext
20507 LIBS=$ac_check_lib_save_LIBS
20509 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
20510 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20511 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20512 cat >>confdefs.h <<_ACEOF
20513 #define HAVE_LIBDES 1
20523 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
20524 echo $ECHO_N "checking
for krb_get_cred
in -lkrb4...
$ECHO_C" >&6; }
20525 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20526 echo $ECHO_N "(cached
) $ECHO_C" >&6
20528 ac_check_lib_save_LIBS=$LIBS
20529 LIBS="-lkrb4 $LIBS"
20530 cat >conftest.$ac_ext <<_ACEOF
20533 cat confdefs.h >>conftest.$ac_ext
20534 cat >>conftest.$ac_ext <<_ACEOF
20535 /* end confdefs.h. */
20537 /* Override any GCC internal prototype to avoid an error.
20538 Use char because int might match the return type of a GCC
20539 builtin and then its argument prototype would still apply. */
20543 char krb_get_cred ();
20547 return krb_get_cred ();
20552 rm -f conftest.$ac_objext conftest$ac_exeext
20553 if { (ac_try="$ac_link"
20554 case "(($ac_try" in
20555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20556 *) ac_try_echo=$ac_try;;
20558 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20559 (eval "$ac_link") 2>conftest.er1
20561 grep -v '^ *+' conftest.er1 >conftest.err
20563 cat conftest.err >&5
20564 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20565 (exit $ac_status); } && {
20566 test -z "$ac_c_werror_flag" ||
20567 test ! -s conftest.err
20568 } && test -s conftest$ac_exeext &&
20569 $as_test_x conftest$ac_exeext; then
20570 ac_cv_lib_krb4_krb_get_cred=yes
20572 echo "$as_me: failed program was
:" >&5
20573 sed 's/^/| /' conftest.$ac_ext >&5
20575 ac_cv_lib_krb4_krb_get_cred=no
20578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20579 conftest$ac_exeext conftest.$ac_ext
20580 LIBS=$ac_check_lib_save_LIBS
20582 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
20583 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20584 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20585 cat >>confdefs.h <<_ACEOF
20586 #define HAVE_LIBKRB4 1
20589 LIBS="-lkrb4 $LIBS"
20593 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
20594 echo $ECHO_N "checking
for krb_get_cred
in -lkrb...
$ECHO_C" >&6; }
20595 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20596 echo $ECHO_N "(cached
) $ECHO_C" >&6
20598 ac_check_lib_save_LIBS=$LIBS
20600 cat >conftest.$ac_ext <<_ACEOF
20603 cat confdefs.h >>conftest.$ac_ext
20604 cat >>conftest.$ac_ext <<_ACEOF
20605 /* end confdefs.h. */
20607 /* Override any GCC internal prototype to avoid an error.
20608 Use char because int might match the return type of a GCC
20609 builtin and then its argument prototype would still apply. */
20613 char krb_get_cred ();
20617 return krb_get_cred ();
20622 rm -f conftest.$ac_objext conftest$ac_exeext
20623 if { (ac_try="$ac_link"
20624 case "(($ac_try" in
20625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20626 *) ac_try_echo=$ac_try;;
20628 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20629 (eval "$ac_link") 2>conftest.er1
20631 grep -v '^ *+' conftest.er1 >conftest.err
20633 cat conftest.err >&5
20634 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20635 (exit $ac_status); } && {
20636 test -z "$ac_c_werror_flag" ||
20637 test ! -s conftest.err
20638 } && test -s conftest$ac_exeext &&
20639 $as_test_x conftest$ac_exeext; then
20640 ac_cv_lib_krb_krb_get_cred=yes
20642 echo "$as_me: failed program was
:" >&5
20643 sed 's/^/| /' conftest.$ac_ext >&5
20645 ac_cv_lib_krb_krb_get_cred=no
20648 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20649 conftest$ac_exeext conftest.$ac_ext
20650 LIBS=$ac_check_lib_save_LIBS
20652 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
20653 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20654 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20655 cat >>confdefs.h <<_ACEOF
20656 #define HAVE_LIBKRB 1
20667 if test "${with_kerberos5+set}" = set; then
20669 for ac_header in krb5.h
20671 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20672 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20673 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20674 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20675 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20676 echo $ECHO_N "(cached
) $ECHO_C" >&6
20678 ac_res=`eval echo '${'$as_ac_Header'}'`
20679 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20680 echo "${ECHO_T}$ac_res" >&6; }
20682 # Is the header compilable?
20683 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20684 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20685 cat >conftest.$ac_ext <<_ACEOF
20688 cat confdefs.h >>conftest.$ac_ext
20689 cat >>conftest.$ac_ext <<_ACEOF
20690 /* end confdefs.h. */
20691 $ac_includes_default
20692 #include <$ac_header>
20694 rm -f conftest.$ac_objext
20695 if { (ac_try="$ac_compile"
20696 case "(($ac_try" in
20697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20698 *) ac_try_echo=$ac_try;;
20700 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20701 (eval "$ac_compile") 2>conftest.er1
20703 grep -v '^ *+' conftest.er1 >conftest.err
20705 cat conftest.err >&5
20706 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20707 (exit $ac_status); } && {
20708 test -z "$ac_c_werror_flag" ||
20709 test ! -s conftest.err
20710 } && test -s conftest.$ac_objext; then
20711 ac_header_compiler=yes
20713 echo "$as_me: failed program was
:" >&5
20714 sed 's/^/| /' conftest.$ac_ext >&5
20716 ac_header_compiler=no
20719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20720 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20721 echo "${ECHO_T}$ac_header_compiler" >&6; }
20723 # Is the header present?
20724 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20725 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20726 cat >conftest.$ac_ext <<_ACEOF
20729 cat confdefs.h >>conftest.$ac_ext
20730 cat >>conftest.$ac_ext <<_ACEOF
20731 /* end confdefs.h. */
20732 #include <$ac_header>
20734 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20735 case "(($ac_try" in
20736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20737 *) ac_try_echo=$ac_try;;
20739 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20740 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20742 grep -v '^ *+' conftest.er1 >conftest.err
20744 cat conftest.err >&5
20745 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20746 (exit $ac_status); } >/dev/null && {
20747 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20748 test ! -s conftest.err
20750 ac_header_preproc=yes
20752 echo "$as_me: failed program was
:" >&5
20753 sed 's/^/| /' conftest.$ac_ext >&5
20755 ac_header_preproc=no
20758 rm -f conftest.err conftest.$ac_ext
20759 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20760 echo "${ECHO_T}$ac_header_preproc" >&6; }
20762 # So? What about this header?
20763 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20765 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20766 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20767 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20768 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20769 ac_header_preproc=yes
20772 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20773 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20774 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20775 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20776 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20777 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20778 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20779 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20780 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20781 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20782 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20783 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20787 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20788 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20789 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20790 echo $ECHO_N "(cached
) $ECHO_C" >&6
20792 eval "$as_ac_Header=\
$ac_header_preproc"
20794 ac_res=`eval echo '${'$as_ac_Header'}'`
20795 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20796 echo "${ECHO_T}$ac_res" >&6; }
20799 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20800 cat >>confdefs.h <<_ACEOF
20801 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20810 for ac_header in des.h
20812 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20813 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20814 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20815 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20816 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20817 echo $ECHO_N "(cached
) $ECHO_C" >&6
20819 ac_res=`eval echo '${'$as_ac_Header'}'`
20820 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20821 echo "${ECHO_T}$ac_res" >&6; }
20823 # Is the header compilable?
20824 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20825 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20826 cat >conftest.$ac_ext <<_ACEOF
20829 cat confdefs.h >>conftest.$ac_ext
20830 cat >>conftest.$ac_ext <<_ACEOF
20831 /* end confdefs.h. */
20832 $ac_includes_default
20833 #include <$ac_header>
20835 rm -f conftest.$ac_objext
20836 if { (ac_try="$ac_compile"
20837 case "(($ac_try" in
20838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20839 *) ac_try_echo=$ac_try;;
20841 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20842 (eval "$ac_compile") 2>conftest.er1
20844 grep -v '^ *+' conftest.er1 >conftest.err
20846 cat conftest.err >&5
20847 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20848 (exit $ac_status); } && {
20849 test -z "$ac_c_werror_flag" ||
20850 test ! -s conftest.err
20851 } && test -s conftest.$ac_objext; then
20852 ac_header_compiler=yes
20854 echo "$as_me: failed program was
:" >&5
20855 sed 's/^/| /' conftest.$ac_ext >&5
20857 ac_header_compiler=no
20860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20861 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20862 echo "${ECHO_T}$ac_header_compiler" >&6; }
20864 # Is the header present?
20865 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20866 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20867 cat >conftest.$ac_ext <<_ACEOF
20870 cat confdefs.h >>conftest.$ac_ext
20871 cat >>conftest.$ac_ext <<_ACEOF
20872 /* end confdefs.h. */
20873 #include <$ac_header>
20875 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20876 case "(($ac_try" in
20877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20878 *) ac_try_echo=$ac_try;;
20880 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20881 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20883 grep -v '^ *+' conftest.er1 >conftest.err
20885 cat conftest.err >&5
20886 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20887 (exit $ac_status); } >/dev/null && {
20888 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20889 test ! -s conftest.err
20891 ac_header_preproc=yes
20893 echo "$as_me: failed program was
:" >&5
20894 sed 's/^/| /' conftest.$ac_ext >&5
20896 ac_header_preproc=no
20899 rm -f conftest.err conftest.$ac_ext
20900 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20901 echo "${ECHO_T}$ac_header_preproc" >&6; }
20903 # So? What about this header?
20904 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20906 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20907 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20908 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20909 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20910 ac_header_preproc=yes
20913 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20914 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20915 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20916 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20917 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20918 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20919 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20920 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20921 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20922 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20923 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20924 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20928 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20929 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20930 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20931 echo $ECHO_N "(cached
) $ECHO_C" >&6
20933 eval "$as_ac_Header=\
$ac_header_preproc"
20935 ac_res=`eval echo '${'$as_ac_Header'}'`
20936 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20937 echo "${ECHO_T}$ac_res" >&6; }
20940 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20941 cat >>confdefs.h <<_ACEOF
20942 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20947 for ac_header in kerberosIV/des.h
20949 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20950 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20951 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20952 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20953 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20954 echo $ECHO_N "(cached
) $ECHO_C" >&6
20956 ac_res=`eval echo '${'$as_ac_Header'}'`
20957 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20958 echo "${ECHO_T}$ac_res" >&6; }
20960 # Is the header compilable?
20961 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20962 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20963 cat >conftest.$ac_ext <<_ACEOF
20966 cat confdefs.h >>conftest.$ac_ext
20967 cat >>conftest.$ac_ext <<_ACEOF
20968 /* end confdefs.h. */
20969 $ac_includes_default
20970 #include <$ac_header>
20972 rm -f conftest.$ac_objext
20973 if { (ac_try="$ac_compile"
20974 case "(($ac_try" in
20975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20976 *) ac_try_echo=$ac_try;;
20978 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20979 (eval "$ac_compile") 2>conftest.er1
20981 grep -v '^ *+' conftest.er1 >conftest.err
20983 cat conftest.err >&5
20984 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20985 (exit $ac_status); } && {
20986 test -z "$ac_c_werror_flag" ||
20987 test ! -s conftest.err
20988 } && test -s conftest.$ac_objext; then
20989 ac_header_compiler=yes
20991 echo "$as_me: failed program was
:" >&5
20992 sed 's/^/| /' conftest.$ac_ext >&5
20994 ac_header_compiler=no
20997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20998 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20999 echo "${ECHO_T}$ac_header_compiler" >&6; }
21001 # Is the header present?
21002 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21003 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21004 cat >conftest.$ac_ext <<_ACEOF
21007 cat confdefs.h >>conftest.$ac_ext
21008 cat >>conftest.$ac_ext <<_ACEOF
21009 /* end confdefs.h. */
21010 #include <$ac_header>
21012 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21013 case "(($ac_try" in
21014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21015 *) ac_try_echo=$ac_try;;
21017 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21018 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21020 grep -v '^ *+' conftest.er1 >conftest.err
21022 cat conftest.err >&5
21023 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21024 (exit $ac_status); } >/dev/null && {
21025 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21026 test ! -s conftest.err
21028 ac_header_preproc=yes
21030 echo "$as_me: failed program was
:" >&5
21031 sed 's/^/| /' conftest.$ac_ext >&5
21033 ac_header_preproc=no
21036 rm -f conftest.err conftest.$ac_ext
21037 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21038 echo "${ECHO_T}$ac_header_preproc" >&6; }
21040 # So? What about this header?
21041 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21043 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21044 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21045 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21046 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21047 ac_header_preproc=yes
21050 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21051 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21052 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21053 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21054 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21055 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21056 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21057 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21058 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21059 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21060 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21061 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21065 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21066 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21067 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21068 echo $ECHO_N "(cached
) $ECHO_C" >&6
21070 eval "$as_ac_Header=\
$ac_header_preproc"
21072 ac_res=`eval echo '${'$as_ac_Header'}'`
21073 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21074 echo "${ECHO_T}$ac_res" >&6; }
21077 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21078 cat >>confdefs.h <<_ACEOF
21079 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21084 for ac_header in kerberos/des.h
21086 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21087 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21088 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21089 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21090 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21091 echo $ECHO_N "(cached
) $ECHO_C" >&6
21093 ac_res=`eval echo '${'$as_ac_Header'}'`
21094 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21095 echo "${ECHO_T}$ac_res" >&6; }
21097 # Is the header compilable?
21098 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21099 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21100 cat >conftest.$ac_ext <<_ACEOF
21103 cat confdefs.h >>conftest.$ac_ext
21104 cat >>conftest.$ac_ext <<_ACEOF
21105 /* end confdefs.h. */
21106 $ac_includes_default
21107 #include <$ac_header>
21109 rm -f conftest.$ac_objext
21110 if { (ac_try="$ac_compile"
21111 case "(($ac_try" in
21112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21113 *) ac_try_echo=$ac_try;;
21115 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21116 (eval "$ac_compile") 2>conftest.er1
21118 grep -v '^ *+' conftest.er1 >conftest.err
21120 cat conftest.err >&5
21121 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21122 (exit $ac_status); } && {
21123 test -z "$ac_c_werror_flag" ||
21124 test ! -s conftest.err
21125 } && test -s conftest.$ac_objext; then
21126 ac_header_compiler=yes
21128 echo "$as_me: failed program was
:" >&5
21129 sed 's/^/| /' conftest.$ac_ext >&5
21131 ac_header_compiler=no
21134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21135 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21136 echo "${ECHO_T}$ac_header_compiler" >&6; }
21138 # Is the header present?
21139 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21140 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21141 cat >conftest.$ac_ext <<_ACEOF
21144 cat confdefs.h >>conftest.$ac_ext
21145 cat >>conftest.$ac_ext <<_ACEOF
21146 /* end confdefs.h. */
21147 #include <$ac_header>
21149 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21150 case "(($ac_try" in
21151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21152 *) ac_try_echo=$ac_try;;
21154 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21155 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21157 grep -v '^ *+' conftest.er1 >conftest.err
21159 cat conftest.err >&5
21160 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21161 (exit $ac_status); } >/dev/null && {
21162 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21163 test ! -s conftest.err
21165 ac_header_preproc=yes
21167 echo "$as_me: failed program was
:" >&5
21168 sed 's/^/| /' conftest.$ac_ext >&5
21170 ac_header_preproc=no
21173 rm -f conftest.err conftest.$ac_ext
21174 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21175 echo "${ECHO_T}$ac_header_preproc" >&6; }
21177 # So? What about this header?
21178 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21180 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21181 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21182 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21183 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21184 ac_header_preproc=yes
21187 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21188 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21189 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21190 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21191 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21192 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21193 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21194 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21195 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21196 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21197 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21198 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21202 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21203 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21204 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21205 echo $ECHO_N "(cached
) $ECHO_C" >&6
21207 eval "$as_ac_Header=\
$ac_header_preproc"
21209 ac_res=`eval echo '${'$as_ac_Header'}'`
21210 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21211 echo "${ECHO_T}$ac_res" >&6; }
21214 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21215 cat >>confdefs.h <<_ACEOF
21216 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21232 for ac_header in krb.h
21234 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21235 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21236 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21237 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21238 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21239 echo $ECHO_N "(cached
) $ECHO_C" >&6
21241 ac_res=`eval echo '${'$as_ac_Header'}'`
21242 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21243 echo "${ECHO_T}$ac_res" >&6; }
21245 # Is the header compilable?
21246 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21247 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21248 cat >conftest.$ac_ext <<_ACEOF
21251 cat confdefs.h >>conftest.$ac_ext
21252 cat >>conftest.$ac_ext <<_ACEOF
21253 /* end confdefs.h. */
21254 $ac_includes_default
21255 #include <$ac_header>
21257 rm -f conftest.$ac_objext
21258 if { (ac_try="$ac_compile"
21259 case "(($ac_try" in
21260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21261 *) ac_try_echo=$ac_try;;
21263 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21264 (eval "$ac_compile") 2>conftest.er1
21266 grep -v '^ *+' conftest.er1 >conftest.err
21268 cat conftest.err >&5
21269 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21270 (exit $ac_status); } && {
21271 test -z "$ac_c_werror_flag" ||
21272 test ! -s conftest.err
21273 } && test -s conftest.$ac_objext; then
21274 ac_header_compiler=yes
21276 echo "$as_me: failed program was
:" >&5
21277 sed 's/^/| /' conftest.$ac_ext >&5
21279 ac_header_compiler=no
21282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21283 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21284 echo "${ECHO_T}$ac_header_compiler" >&6; }
21286 # Is the header present?
21287 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21288 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21289 cat >conftest.$ac_ext <<_ACEOF
21292 cat confdefs.h >>conftest.$ac_ext
21293 cat >>conftest.$ac_ext <<_ACEOF
21294 /* end confdefs.h. */
21295 #include <$ac_header>
21297 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21298 case "(($ac_try" in
21299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21300 *) ac_try_echo=$ac_try;;
21302 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21303 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21305 grep -v '^ *+' conftest.er1 >conftest.err
21307 cat conftest.err >&5
21308 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21309 (exit $ac_status); } >/dev/null && {
21310 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21311 test ! -s conftest.err
21313 ac_header_preproc=yes
21315 echo "$as_me: failed program was
:" >&5
21316 sed 's/^/| /' conftest.$ac_ext >&5
21318 ac_header_preproc=no
21321 rm -f conftest.err conftest.$ac_ext
21322 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21323 echo "${ECHO_T}$ac_header_preproc" >&6; }
21325 # So? What about this header?
21326 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21328 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21329 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21330 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21331 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21332 ac_header_preproc=yes
21335 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21336 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21337 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21338 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21339 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21340 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21341 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21342 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21343 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21344 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21345 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21346 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21350 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21351 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21352 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21353 echo $ECHO_N "(cached
) $ECHO_C" >&6
21355 eval "$as_ac_Header=\
$ac_header_preproc"
21357 ac_res=`eval echo '${'$as_ac_Header'}'`
21358 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21359 echo "${ECHO_T}$ac_res" >&6; }
21362 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21363 cat >>confdefs.h <<_ACEOF
21364 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21369 for ac_header in kerberosIV/krb.h
21371 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21372 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21373 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21374 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21375 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21376 echo $ECHO_N "(cached
) $ECHO_C" >&6
21378 ac_res=`eval echo '${'$as_ac_Header'}'`
21379 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21380 echo "${ECHO_T}$ac_res" >&6; }
21382 # Is the header compilable?
21383 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21384 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21385 cat >conftest.$ac_ext <<_ACEOF
21388 cat confdefs.h >>conftest.$ac_ext
21389 cat >>conftest.$ac_ext <<_ACEOF
21390 /* end confdefs.h. */
21391 $ac_includes_default
21392 #include <$ac_header>
21394 rm -f conftest.$ac_objext
21395 if { (ac_try="$ac_compile"
21396 case "(($ac_try" in
21397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21398 *) ac_try_echo=$ac_try;;
21400 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21401 (eval "$ac_compile") 2>conftest.er1
21403 grep -v '^ *+' conftest.er1 >conftest.err
21405 cat conftest.err >&5
21406 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21407 (exit $ac_status); } && {
21408 test -z "$ac_c_werror_flag" ||
21409 test ! -s conftest.err
21410 } && test -s conftest.$ac_objext; then
21411 ac_header_compiler=yes
21413 echo "$as_me: failed program was
:" >&5
21414 sed 's/^/| /' conftest.$ac_ext >&5
21416 ac_header_compiler=no
21419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21420 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21421 echo "${ECHO_T}$ac_header_compiler" >&6; }
21423 # Is the header present?
21424 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21425 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21426 cat >conftest.$ac_ext <<_ACEOF
21429 cat confdefs.h >>conftest.$ac_ext
21430 cat >>conftest.$ac_ext <<_ACEOF
21431 /* end confdefs.h. */
21432 #include <$ac_header>
21434 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21435 case "(($ac_try" in
21436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21437 *) ac_try_echo=$ac_try;;
21439 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21440 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21442 grep -v '^ *+' conftest.er1 >conftest.err
21444 cat conftest.err >&5
21445 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21446 (exit $ac_status); } >/dev/null && {
21447 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21448 test ! -s conftest.err
21450 ac_header_preproc=yes
21452 echo "$as_me: failed program was
:" >&5
21453 sed 's/^/| /' conftest.$ac_ext >&5
21455 ac_header_preproc=no
21458 rm -f conftest.err conftest.$ac_ext
21459 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21460 echo "${ECHO_T}$ac_header_preproc" >&6; }
21462 # So? What about this header?
21463 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21465 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21466 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21467 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21468 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21469 ac_header_preproc=yes
21472 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21473 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21474 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21475 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21476 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21477 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21478 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21479 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21480 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21481 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21482 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21483 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21487 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21488 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21489 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21490 echo $ECHO_N "(cached
) $ECHO_C" >&6
21492 eval "$as_ac_Header=\
$ac_header_preproc"
21494 ac_res=`eval echo '${'$as_ac_Header'}'`
21495 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21496 echo "${ECHO_T}$ac_res" >&6; }
21499 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21500 cat >>confdefs.h <<_ACEOF
21501 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21506 for ac_header in kerberos/krb.h
21508 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21509 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21510 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21511 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21512 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21513 echo $ECHO_N "(cached
) $ECHO_C" >&6
21515 ac_res=`eval echo '${'$as_ac_Header'}'`
21516 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21517 echo "${ECHO_T}$ac_res" >&6; }
21519 # Is the header compilable?
21520 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21521 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21522 cat >conftest.$ac_ext <<_ACEOF
21525 cat confdefs.h >>conftest.$ac_ext
21526 cat >>conftest.$ac_ext <<_ACEOF
21527 /* end confdefs.h. */
21528 $ac_includes_default
21529 #include <$ac_header>
21531 rm -f conftest.$ac_objext
21532 if { (ac_try="$ac_compile"
21533 case "(($ac_try" in
21534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21535 *) ac_try_echo=$ac_try;;
21537 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21538 (eval "$ac_compile") 2>conftest.er1
21540 grep -v '^ *+' conftest.er1 >conftest.err
21542 cat conftest.err >&5
21543 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21544 (exit $ac_status); } && {
21545 test -z "$ac_c_werror_flag" ||
21546 test ! -s conftest.err
21547 } && test -s conftest.$ac_objext; then
21548 ac_header_compiler=yes
21550 echo "$as_me: failed program was
:" >&5
21551 sed 's/^/| /' conftest.$ac_ext >&5
21553 ac_header_compiler=no
21556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21557 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21558 echo "${ECHO_T}$ac_header_compiler" >&6; }
21560 # Is the header present?
21561 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21562 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21563 cat >conftest.$ac_ext <<_ACEOF
21566 cat confdefs.h >>conftest.$ac_ext
21567 cat >>conftest.$ac_ext <<_ACEOF
21568 /* end confdefs.h. */
21569 #include <$ac_header>
21571 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21572 case "(($ac_try" in
21573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21574 *) ac_try_echo=$ac_try;;
21576 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21577 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21579 grep -v '^ *+' conftest.er1 >conftest.err
21581 cat conftest.err >&5
21582 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21583 (exit $ac_status); } >/dev/null && {
21584 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21585 test ! -s conftest.err
21587 ac_header_preproc=yes
21589 echo "$as_me: failed program was
:" >&5
21590 sed 's/^/| /' conftest.$ac_ext >&5
21592 ac_header_preproc=no
21595 rm -f conftest.err conftest.$ac_ext
21596 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21597 echo "${ECHO_T}$ac_header_preproc" >&6; }
21599 # So? What about this header?
21600 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21602 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21603 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21604 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21605 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21606 ac_header_preproc=yes
21609 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21610 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21611 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21612 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21613 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21614 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21615 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21616 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21617 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21618 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21619 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21620 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21624 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21625 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21626 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21627 echo $ECHO_N "(cached
) $ECHO_C" >&6
21629 eval "$as_ac_Header=\
$ac_header_preproc"
21631 ac_res=`eval echo '${'$as_ac_Header'}'`
21632 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21633 echo "${ECHO_T}$ac_res" >&6; }
21636 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21637 cat >>confdefs.h <<_ACEOF
21638 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21655 for ac_header in com_err.h
21657 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21658 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21659 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21660 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21661 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21662 echo $ECHO_N "(cached
) $ECHO_C" >&6
21664 ac_res=`eval echo '${'$as_ac_Header'}'`
21665 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21666 echo "${ECHO_T}$ac_res" >&6; }
21668 # Is the header compilable?
21669 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21670 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21671 cat >conftest.$ac_ext <<_ACEOF
21674 cat confdefs.h >>conftest.$ac_ext
21675 cat >>conftest.$ac_ext <<_ACEOF
21676 /* end confdefs.h. */
21677 $ac_includes_default
21678 #include <$ac_header>
21680 rm -f conftest.$ac_objext
21681 if { (ac_try="$ac_compile"
21682 case "(($ac_try" in
21683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21684 *) ac_try_echo=$ac_try;;
21686 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21687 (eval "$ac_compile") 2>conftest.er1
21689 grep -v '^ *+' conftest.er1 >conftest.err
21691 cat conftest.err >&5
21692 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21693 (exit $ac_status); } && {
21694 test -z "$ac_c_werror_flag" ||
21695 test ! -s conftest.err
21696 } && test -s conftest.$ac_objext; then
21697 ac_header_compiler=yes
21699 echo "$as_me: failed program was
:" >&5
21700 sed 's/^/| /' conftest.$ac_ext >&5
21702 ac_header_compiler=no
21705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21706 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21707 echo "${ECHO_T}$ac_header_compiler" >&6; }
21709 # Is the header present?
21710 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21711 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21712 cat >conftest.$ac_ext <<_ACEOF
21715 cat confdefs.h >>conftest.$ac_ext
21716 cat >>conftest.$ac_ext <<_ACEOF
21717 /* end confdefs.h. */
21718 #include <$ac_header>
21720 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21721 case "(($ac_try" in
21722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21723 *) ac_try_echo=$ac_try;;
21725 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21726 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21728 grep -v '^ *+' conftest.er1 >conftest.err
21730 cat conftest.err >&5
21731 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21732 (exit $ac_status); } >/dev/null && {
21733 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21734 test ! -s conftest.err
21736 ac_header_preproc=yes
21738 echo "$as_me: failed program was
:" >&5
21739 sed 's/^/| /' conftest.$ac_ext >&5
21741 ac_header_preproc=no
21744 rm -f conftest.err conftest.$ac_ext
21745 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21746 echo "${ECHO_T}$ac_header_preproc" >&6; }
21748 # So? What about this header?
21749 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21751 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21752 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21753 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21754 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21755 ac_header_preproc=yes
21758 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21759 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21760 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21761 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21762 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21763 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21764 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21765 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21766 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21767 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21768 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21769 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21773 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21774 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21775 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21776 echo $ECHO_N "(cached
) $ECHO_C" >&6
21778 eval "$as_ac_Header=\
$ac_header_preproc"
21780 ac_res=`eval echo '${'$as_ac_Header'}'`
21781 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21782 echo "${ECHO_T}$ac_res" >&6; }
21785 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21786 cat >>confdefs.h <<_ACEOF
21787 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21796 # Solaris requires -lintl if you want strerror (which calls dgettext)
21797 # to return localized messages.
21799 { echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
21800 echo $ECHO_N "checking
for dgettext
in -lintl...
$ECHO_C" >&6; }
21801 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21802 echo $ECHO_N "(cached
) $ECHO_C" >&6
21804 ac_check_lib_save_LIBS=$LIBS
21805 LIBS="-lintl $LIBS"
21806 cat >conftest.$ac_ext <<_ACEOF
21809 cat confdefs.h >>conftest.$ac_ext
21810 cat >>conftest.$ac_ext <<_ACEOF
21811 /* end confdefs.h. */
21813 /* Override any GCC internal prototype to avoid an error.
21814 Use char because int might match the return type of a GCC
21815 builtin and then its argument prototype would still apply. */
21823 return dgettext ();
21828 rm -f conftest.$ac_objext conftest$ac_exeext
21829 if { (ac_try="$ac_link"
21830 case "(($ac_try" in
21831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21832 *) ac_try_echo=$ac_try;;
21834 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21835 (eval "$ac_link") 2>conftest.er1
21837 grep -v '^ *+' conftest.er1 >conftest.err
21839 cat conftest.err >&5
21840 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21841 (exit $ac_status); } && {
21842 test -z "$ac_c_werror_flag" ||
21843 test ! -s conftest.err
21844 } && test -s conftest$ac_exeext &&
21845 $as_test_x conftest$ac_exeext; then
21846 ac_cv_lib_intl_dgettext=yes
21848 echo "$as_me: failed program was
:" >&5
21849 sed 's/^/| /' conftest.$ac_ext >&5
21851 ac_cv_lib_intl_dgettext=no
21854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21855 conftest$ac_exeext conftest.$ac_ext
21856 LIBS=$ac_check_lib_save_LIBS
21858 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
21859 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
21860 if test $ac_cv_lib_intl_dgettext = yes; then
21861 cat >>confdefs.h <<_ACEOF
21862 #define HAVE_LIBINTL 1
21865 LIBS="-lintl $LIBS"
21870 { echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
21871 echo $ECHO_N "checking whether localtime caches TZ...
$ECHO_C" >&6; }
21872 if test "${emacs_cv_localtime_cache+set}" = set; then
21873 echo $ECHO_N "(cached
) $ECHO_C" >&6
21875 if test x$ac_cv_func_tzset = xyes; then
21876 if test "$cross_compiling" = yes; then
21877 # If we have tzset, assume the worst when cross-compiling.
21878 emacs_cv_localtime_cache=yes
21880 cat >conftest.$ac_ext <<_ACEOF
21883 cat confdefs.h >>conftest.$ac_ext
21884 cat >>conftest.$ac_ext <<_ACEOF
21885 /* end confdefs.h. */
21887 extern char **environ;
21891 for (to = from = environ; (*to = *from); from++)
21892 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
21895 char TZ_GMT0[] = "TZ
=GMT0
";
21896 char TZ_PST8[] = "TZ
=PST8
";
21899 time_t now = time ((time_t *) 0);
21900 int hour_GMT0, hour_unset;
21901 if (putenv (TZ_GMT0) != 0)
21903 hour_GMT0 = localtime (&now)->tm_hour;
21905 hour_unset = localtime (&now)->tm_hour;
21906 if (putenv (TZ_PST8) != 0)
21908 if (localtime (&now)->tm_hour == hour_GMT0)
21911 if (localtime (&now)->tm_hour != hour_unset)
21916 rm -f conftest$ac_exeext
21917 if { (ac_try="$ac_link"
21918 case "(($ac_try" in
21919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21920 *) ac_try_echo=$ac_try;;
21922 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21923 (eval "$ac_link") 2>&5
21925 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21926 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21927 { (case "(($ac_try" in
21928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21929 *) ac_try_echo=$ac_try;;
21931 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21932 (eval "$ac_try") 2>&5
21934 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21935 (exit $ac_status); }; }; then
21936 emacs_cv_localtime_cache=no
21938 echo "$as_me: program exited with status
$ac_status" >&5
21939 echo "$as_me: failed program was
:" >&5
21940 sed 's/^/| /' conftest.$ac_ext >&5
21942 ( exit $ac_status )
21943 emacs_cv_localtime_cache=yes
21945 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21950 # If we lack tzset, report that localtime does not cache TZ,
21951 # since we can't invalidate the cache if we don't have tzset.
21952 emacs_cv_localtime_cache=no
21955 { echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
21956 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
21957 if test $emacs_cv_localtime_cache = yes; then
21959 cat >>confdefs.h <<\_ACEOF
21960 #define LOCALTIME_CACHE 1
21965 if test "x
$HAVE_TIMEVAL" = xyes; then
21967 for ac_func in gettimeofday
21969 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
21970 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
21971 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
21972 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
21973 echo $ECHO_N "(cached
) $ECHO_C" >&6
21975 cat >conftest.$ac_ext <<_ACEOF
21978 cat confdefs.h >>conftest.$ac_ext
21979 cat >>conftest.$ac_ext <<_ACEOF
21980 /* end confdefs.h. */
21981 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21982 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21983 #define $ac_func innocuous_$ac_func
21985 /* System header to define __stub macros and hopefully few prototypes,
21986 which can conflict with char $ac_func (); below.
21987 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21988 <limits.h> exists even on freestanding compilers. */
21991 # include <limits.h>
21993 # include <assert.h>
21998 /* Override any GCC internal prototype to avoid an error.
21999 Use char because int might match the return type of a GCC
22000 builtin and then its argument prototype would still apply. */
22005 /* The GNU C library defines this for functions which it implements
22006 to always fail with ENOSYS. Some functions are actually named
22007 something starting with __ and the normal name is an alias. */
22008 #if defined __stub_$ac_func || defined __stub___$ac_func
22015 return $ac_func ();
22020 rm -f conftest.$ac_objext conftest$ac_exeext
22021 if { (ac_try="$ac_link"
22022 case "(($ac_try" in
22023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22024 *) ac_try_echo=$ac_try;;
22026 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22027 (eval "$ac_link") 2>conftest.er1
22029 grep -v '^ *+' conftest.er1 >conftest.err
22031 cat conftest.err >&5
22032 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22033 (exit $ac_status); } && {
22034 test -z "$ac_c_werror_flag" ||
22035 test ! -s conftest.err
22036 } && test -s conftest$ac_exeext &&
22037 $as_test_x conftest$ac_exeext; then
22038 eval "$as_ac_var=yes"
22040 echo "$as_me: failed program was
:" >&5
22041 sed 's/^/| /' conftest.$ac_ext >&5
22043 eval "$as_ac_var=no
"
22046 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22047 conftest$ac_exeext conftest.$ac_ext
22049 ac_res=`eval echo '${'$as_ac_var'}'`
22050 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22051 echo "${ECHO_T}$ac_res" >&6; }
22052 if test `eval echo '${'$as_ac_var'}'` = yes; then
22053 cat >>confdefs.h <<_ACEOF
22054 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
22060 if test $ac_cv_func_gettimeofday = yes; then
22061 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
22062 echo $ECHO_N "checking whether gettimeofday can accept two arguments...
$ECHO_C" >&6; }
22063 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22064 echo $ECHO_N "(cached
) $ECHO_C" >&6
22066 cat >conftest.$ac_ext <<_ACEOF
22069 cat confdefs.h >>conftest.$ac_ext
22070 cat >>conftest.$ac_ext <<_ACEOF
22071 /* end confdefs.h. */
22073 #ifdef TIME_WITH_SYS_TIME
22074 #include <sys/time.h>
22077 #ifdef HAVE_SYS_TIME_H
22078 #include <sys/time.h>
22086 struct timeval time;
22087 gettimeofday (&time, 0);
22092 rm -f conftest.$ac_objext
22093 if { (ac_try="$ac_compile"
22094 case "(($ac_try" in
22095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22096 *) ac_try_echo=$ac_try;;
22098 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22099 (eval "$ac_compile") 2>conftest.er1
22101 grep -v '^ *+' conftest.er1 >conftest.err
22103 cat conftest.err >&5
22104 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22105 (exit $ac_status); } && {
22106 test -z "$ac_c_werror_flag" ||
22107 test ! -s conftest.err
22108 } && test -s conftest.$ac_objext; then
22109 emacs_cv_gettimeofday_two_arguments=yes
22111 echo "$as_me: failed program was
:" >&5
22112 sed 's/^/| /' conftest.$ac_ext >&5
22114 emacs_cv_gettimeofday_two_arguments=no
22117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22119 { echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
22120 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22121 if test $emacs_cv_gettimeofday_two_arguments = no; then
22123 cat >>confdefs.h <<\_ACEOF
22124 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22132 { echo "$as_me:$LINENO: checking
for socket
" >&5
22133 echo $ECHO_N "checking
for socket...
$ECHO_C" >&6; }
22134 if test "${ac_cv_func_socket+set}" = set; then
22135 echo $ECHO_N "(cached
) $ECHO_C" >&6
22137 cat >conftest.$ac_ext <<_ACEOF
22140 cat confdefs.h >>conftest.$ac_ext
22141 cat >>conftest.$ac_ext <<_ACEOF
22142 /* end confdefs.h. */
22143 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22144 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22145 #define socket innocuous_socket
22147 /* System header to define __stub macros and hopefully few prototypes,
22148 which can conflict with char socket (); below.
22149 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22150 <limits.h> exists even on freestanding compilers. */
22153 # include <limits.h>
22155 # include <assert.h>
22160 /* Override any GCC internal prototype to avoid an error.
22161 Use char because int might match the return type of a GCC
22162 builtin and then its argument prototype would still apply. */
22167 /* The GNU C library defines this for functions which it implements
22168 to always fail with ENOSYS. Some functions are actually named
22169 something starting with __ and the normal name is an alias. */
22170 #if defined __stub_socket || defined __stub___socket
22182 rm -f conftest.$ac_objext conftest$ac_exeext
22183 if { (ac_try="$ac_link"
22184 case "(($ac_try" in
22185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22186 *) ac_try_echo=$ac_try;;
22188 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22189 (eval "$ac_link") 2>conftest.er1
22191 grep -v '^ *+' conftest.er1 >conftest.err
22193 cat conftest.err >&5
22194 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22195 (exit $ac_status); } && {
22196 test -z "$ac_c_werror_flag" ||
22197 test ! -s conftest.err
22198 } && test -s conftest$ac_exeext &&
22199 $as_test_x conftest$ac_exeext; then
22200 ac_cv_func_socket=yes
22202 echo "$as_me: failed program was
:" >&5
22203 sed 's/^/| /' conftest.$ac_ext >&5
22205 ac_cv_func_socket=no
22208 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22209 conftest$ac_exeext conftest.$ac_ext
22211 { echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
22212 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22213 if test $ac_cv_func_socket = yes; then
22219 if test $ok_so_far = yes; then
22220 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22221 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
22222 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
22223 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22224 echo $ECHO_N "(cached
) $ECHO_C" >&6
22226 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
22227 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22229 # Is the header compilable?
22230 { echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
22231 echo $ECHO_N "checking netinet
/in.h usability...
$ECHO_C" >&6; }
22232 cat >conftest.$ac_ext <<_ACEOF
22235 cat confdefs.h >>conftest.$ac_ext
22236 cat >>conftest.$ac_ext <<_ACEOF
22237 /* end confdefs.h. */
22238 $ac_includes_default
22239 #include <netinet/in.h>
22241 rm -f conftest.$ac_objext
22242 if { (ac_try="$ac_compile"
22243 case "(($ac_try" in
22244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22245 *) ac_try_echo=$ac_try;;
22247 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22248 (eval "$ac_compile") 2>conftest.er1
22250 grep -v '^ *+' conftest.er1 >conftest.err
22252 cat conftest.err >&5
22253 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22254 (exit $ac_status); } && {
22255 test -z "$ac_c_werror_flag" ||
22256 test ! -s conftest.err
22257 } && test -s conftest.$ac_objext; then
22258 ac_header_compiler=yes
22260 echo "$as_me: failed program was
:" >&5
22261 sed 's/^/| /' conftest.$ac_ext >&5
22263 ac_header_compiler=no
22266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22267 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22268 echo "${ECHO_T}$ac_header_compiler" >&6; }
22270 # Is the header present?
22271 { echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
22272 echo $ECHO_N "checking netinet
/in.h presence...
$ECHO_C" >&6; }
22273 cat >conftest.$ac_ext <<_ACEOF
22276 cat confdefs.h >>conftest.$ac_ext
22277 cat >>conftest.$ac_ext <<_ACEOF
22278 /* end confdefs.h. */
22279 #include <netinet/in.h>
22281 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22282 case "(($ac_try" in
22283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22284 *) ac_try_echo=$ac_try;;
22286 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22287 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22289 grep -v '^ *+' conftest.er1 >conftest.err
22291 cat conftest.err >&5
22292 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22293 (exit $ac_status); } >/dev/null && {
22294 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22295 test ! -s conftest.err
22297 ac_header_preproc=yes
22299 echo "$as_me: failed program was
:" >&5
22300 sed 's/^/| /' conftest.$ac_ext >&5
22302 ac_header_preproc=no
22305 rm -f conftest.err conftest.$ac_ext
22306 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22307 echo "${ECHO_T}$ac_header_preproc" >&6; }
22309 # So? What about this header?
22310 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22312 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22313 echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22314 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
22315 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
22316 ac_header_preproc=yes
22319 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
22320 echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
22321 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
22322 echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
22323 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
22324 echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
22325 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22326 echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22327 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
22328 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
22329 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
22330 echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
22334 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
22335 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
22336 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22337 echo $ECHO_N "(cached
) $ECHO_C" >&6
22339 ac_cv_header_netinet_in_h=$ac_header_preproc
22341 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
22342 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22345 if test $ac_cv_header_netinet_in_h = yes; then
22353 if test $ok_so_far = yes; then
22354 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22355 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22356 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22357 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22358 echo $ECHO_N "(cached
) $ECHO_C" >&6
22360 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22361 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22363 # Is the header compilable?
22364 { echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
22365 echo $ECHO_N "checking arpa
/inet.h usability...
$ECHO_C" >&6; }
22366 cat >conftest.$ac_ext <<_ACEOF
22369 cat confdefs.h >>conftest.$ac_ext
22370 cat >>conftest.$ac_ext <<_ACEOF
22371 /* end confdefs.h. */
22372 $ac_includes_default
22373 #include <arpa/inet.h>
22375 rm -f conftest.$ac_objext
22376 if { (ac_try="$ac_compile"
22377 case "(($ac_try" in
22378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22379 *) ac_try_echo=$ac_try;;
22381 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22382 (eval "$ac_compile") 2>conftest.er1
22384 grep -v '^ *+' conftest.er1 >conftest.err
22386 cat conftest.err >&5
22387 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22388 (exit $ac_status); } && {
22389 test -z "$ac_c_werror_flag" ||
22390 test ! -s conftest.err
22391 } && test -s conftest.$ac_objext; then
22392 ac_header_compiler=yes
22394 echo "$as_me: failed program was
:" >&5
22395 sed 's/^/| /' conftest.$ac_ext >&5
22397 ac_header_compiler=no
22400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22401 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22402 echo "${ECHO_T}$ac_header_compiler" >&6; }
22404 # Is the header present?
22405 { echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
22406 echo $ECHO_N "checking arpa
/inet.h presence...
$ECHO_C" >&6; }
22407 cat >conftest.$ac_ext <<_ACEOF
22410 cat confdefs.h >>conftest.$ac_ext
22411 cat >>conftest.$ac_ext <<_ACEOF
22412 /* end confdefs.h. */
22413 #include <arpa/inet.h>
22415 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22416 case "(($ac_try" in
22417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22418 *) ac_try_echo=$ac_try;;
22420 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22421 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22423 grep -v '^ *+' conftest.er1 >conftest.err
22425 cat conftest.err >&5
22426 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22427 (exit $ac_status); } >/dev/null && {
22428 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22429 test ! -s conftest.err
22431 ac_header_preproc=yes
22433 echo "$as_me: failed program was
:" >&5
22434 sed 's/^/| /' conftest.$ac_ext >&5
22436 ac_header_preproc=no
22439 rm -f conftest.err conftest.$ac_ext
22440 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22441 echo "${ECHO_T}$ac_header_preproc" >&6; }
22443 # So? What about this header?
22444 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22446 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22447 echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22448 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
22449 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
22450 ac_header_preproc=yes
22453 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
22454 echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
22455 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
22456 echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
22457 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
22458 echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
22459 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22460 echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22461 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
22462 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
22463 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
22464 echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
22468 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22469 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22470 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22471 echo $ECHO_N "(cached
) $ECHO_C" >&6
22473 ac_cv_header_arpa_inet_h=$ac_header_preproc
22475 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22476 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22479 if test $ac_cv_header_arpa_inet_h = yes; then
22487 if test $ok_so_far = yes; then
22489 cat >>confdefs.h <<\_ACEOF
22490 #define HAVE_INET_SOCKETS 1
22496 for ac_header in sys/ioctl.h
22498 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22499 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22500 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22501 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22502 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22503 echo $ECHO_N "(cached
) $ECHO_C" >&6
22505 ac_res=`eval echo '${'$as_ac_Header'}'`
22506 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22507 echo "${ECHO_T}$ac_res" >&6; }
22509 # Is the header compilable?
22510 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22511 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22512 cat >conftest.$ac_ext <<_ACEOF
22515 cat confdefs.h >>conftest.$ac_ext
22516 cat >>conftest.$ac_ext <<_ACEOF
22517 /* end confdefs.h. */
22518 $ac_includes_default
22519 #include <$ac_header>
22521 rm -f conftest.$ac_objext
22522 if { (ac_try="$ac_compile"
22523 case "(($ac_try" in
22524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22525 *) ac_try_echo=$ac_try;;
22527 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22528 (eval "$ac_compile") 2>conftest.er1
22530 grep -v '^ *+' conftest.er1 >conftest.err
22532 cat conftest.err >&5
22533 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22534 (exit $ac_status); } && {
22535 test -z "$ac_c_werror_flag" ||
22536 test ! -s conftest.err
22537 } && test -s conftest.$ac_objext; then
22538 ac_header_compiler=yes
22540 echo "$as_me: failed program was
:" >&5
22541 sed 's/^/| /' conftest.$ac_ext >&5
22543 ac_header_compiler=no
22546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22547 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22548 echo "${ECHO_T}$ac_header_compiler" >&6; }
22550 # Is the header present?
22551 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22552 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22553 cat >conftest.$ac_ext <<_ACEOF
22556 cat confdefs.h >>conftest.$ac_ext
22557 cat >>conftest.$ac_ext <<_ACEOF
22558 /* end confdefs.h. */
22559 #include <$ac_header>
22561 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22562 case "(($ac_try" in
22563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22564 *) ac_try_echo=$ac_try;;
22566 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22567 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22569 grep -v '^ *+' conftest.er1 >conftest.err
22571 cat conftest.err >&5
22572 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22573 (exit $ac_status); } >/dev/null && {
22574 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22575 test ! -s conftest.err
22577 ac_header_preproc=yes
22579 echo "$as_me: failed program was
:" >&5
22580 sed 's/^/| /' conftest.$ac_ext >&5
22582 ac_header_preproc=no
22585 rm -f conftest.err conftest.$ac_ext
22586 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22587 echo "${ECHO_T}$ac_header_preproc" >&6; }
22589 # So? What about this header?
22590 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22592 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22593 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22594 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22595 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22596 ac_header_preproc=yes
22599 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22600 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22601 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22602 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22603 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22604 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22605 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22606 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22607 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22608 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22609 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22610 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22614 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22615 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22616 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22617 echo $ECHO_N "(cached
) $ECHO_C" >&6
22619 eval "$as_ac_Header=\
$ac_header_preproc"
22621 ac_res=`eval echo '${'$as_ac_Header'}'`
22622 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22623 echo "${ECHO_T}$ac_res" >&6; }
22626 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22627 cat >>confdefs.h <<_ACEOF
22628 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22636 if test -f /usr/lpp/X11/bin/smt.exp; then
22638 cat >>confdefs.h <<\_ACEOF
22639 #define HAVE_AIX_SMT_EXP 1
22644 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
22645 echo $ECHO_N "checking whether system supports dynamic ptys...
$ECHO_C" >&6; }
22646 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22647 { echo "$as_me:$LINENO: result
: yes" >&5
22648 echo "${ECHO_T}yes" >&6; }
22650 cat >>confdefs.h <<\_ACEOF
22651 #define HAVE_DEV_PTMX 1
22655 { echo "$as_me:$LINENO: result
: no
" >&5
22656 echo "${ECHO_T}no
" >&6; }
22659 { echo "$as_me:$LINENO: checking
for pid_t
" >&5
22660 echo $ECHO_N "checking
for pid_t...
$ECHO_C" >&6; }
22661 if test "${ac_cv_type_pid_t+set}" = set; then
22662 echo $ECHO_N "(cached
) $ECHO_C" >&6
22664 cat >conftest.$ac_ext <<_ACEOF
22667 cat confdefs.h >>conftest.$ac_ext
22668 cat >>conftest.$ac_ext <<_ACEOF
22669 /* end confdefs.h. */
22670 $ac_includes_default
22671 typedef pid_t ac__type_new_;
22675 if ((ac__type_new_ *) 0)
22677 if (sizeof (ac__type_new_))
22683 rm -f conftest.$ac_objext
22684 if { (ac_try="$ac_compile"
22685 case "(($ac_try" in
22686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22687 *) ac_try_echo=$ac_try;;
22689 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22690 (eval "$ac_compile") 2>conftest.er1
22692 grep -v '^ *+' conftest.er1 >conftest.err
22694 cat conftest.err >&5
22695 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22696 (exit $ac_status); } && {
22697 test -z "$ac_c_werror_flag" ||
22698 test ! -s conftest.err
22699 } && test -s conftest.$ac_objext; then
22700 ac_cv_type_pid_t=yes
22702 echo "$as_me: failed program was
:" >&5
22703 sed 's/^/| /' conftest.$ac_ext >&5
22705 ac_cv_type_pid_t=no
22708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22710 { echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
22711 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22712 if test $ac_cv_type_pid_t = yes; then
22716 cat >>confdefs.h <<_ACEOF
22723 for ac_header in vfork.h
22725 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22726 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22727 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22728 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22729 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22730 echo $ECHO_N "(cached
) $ECHO_C" >&6
22732 ac_res=`eval echo '${'$as_ac_Header'}'`
22733 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22734 echo "${ECHO_T}$ac_res" >&6; }
22736 # Is the header compilable?
22737 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22738 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22739 cat >conftest.$ac_ext <<_ACEOF
22742 cat confdefs.h >>conftest.$ac_ext
22743 cat >>conftest.$ac_ext <<_ACEOF
22744 /* end confdefs.h. */
22745 $ac_includes_default
22746 #include <$ac_header>
22748 rm -f conftest.$ac_objext
22749 if { (ac_try="$ac_compile"
22750 case "(($ac_try" in
22751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22752 *) ac_try_echo=$ac_try;;
22754 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22755 (eval "$ac_compile") 2>conftest.er1
22757 grep -v '^ *+' conftest.er1 >conftest.err
22759 cat conftest.err >&5
22760 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22761 (exit $ac_status); } && {
22762 test -z "$ac_c_werror_flag" ||
22763 test ! -s conftest.err
22764 } && test -s conftest.$ac_objext; then
22765 ac_header_compiler=yes
22767 echo "$as_me: failed program was
:" >&5
22768 sed 's/^/| /' conftest.$ac_ext >&5
22770 ac_header_compiler=no
22773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22774 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22775 echo "${ECHO_T}$ac_header_compiler" >&6; }
22777 # Is the header present?
22778 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22779 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22780 cat >conftest.$ac_ext <<_ACEOF
22783 cat confdefs.h >>conftest.$ac_ext
22784 cat >>conftest.$ac_ext <<_ACEOF
22785 /* end confdefs.h. */
22786 #include <$ac_header>
22788 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22789 case "(($ac_try" in
22790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22791 *) ac_try_echo=$ac_try;;
22793 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22794 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22796 grep -v '^ *+' conftest.er1 >conftest.err
22798 cat conftest.err >&5
22799 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22800 (exit $ac_status); } >/dev/null && {
22801 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22802 test ! -s conftest.err
22804 ac_header_preproc=yes
22806 echo "$as_me: failed program was
:" >&5
22807 sed 's/^/| /' conftest.$ac_ext >&5
22809 ac_header_preproc=no
22812 rm -f conftest.err conftest.$ac_ext
22813 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22814 echo "${ECHO_T}$ac_header_preproc" >&6; }
22816 # So? What about this header?
22817 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22819 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22820 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22821 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22822 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22823 ac_header_preproc=yes
22826 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22827 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22828 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22829 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22830 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22831 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22832 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22833 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22834 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22835 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22836 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22837 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22841 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22842 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22843 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22844 echo $ECHO_N "(cached
) $ECHO_C" >&6
22846 eval "$as_ac_Header=\
$ac_header_preproc"
22848 ac_res=`eval echo '${'$as_ac_Header'}'`
22849 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22850 echo "${ECHO_T}$ac_res" >&6; }
22853 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22854 cat >>confdefs.h <<_ACEOF
22855 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22864 for ac_func in fork vfork
22866 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
22867 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
22868 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
22869 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
22870 echo $ECHO_N "(cached
) $ECHO_C" >&6
22872 cat >conftest.$ac_ext <<_ACEOF
22875 cat confdefs.h >>conftest.$ac_ext
22876 cat >>conftest.$ac_ext <<_ACEOF
22877 /* end confdefs.h. */
22878 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22879 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22880 #define $ac_func innocuous_$ac_func
22882 /* System header to define __stub macros and hopefully few prototypes,
22883 which can conflict with char $ac_func (); below.
22884 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22885 <limits.h> exists even on freestanding compilers. */
22888 # include <limits.h>
22890 # include <assert.h>
22895 /* Override any GCC internal prototype to avoid an error.
22896 Use char because int might match the return type of a GCC
22897 builtin and then its argument prototype would still apply. */
22902 /* The GNU C library defines this for functions which it implements
22903 to always fail with ENOSYS. Some functions are actually named
22904 something starting with __ and the normal name is an alias. */
22905 #if defined __stub_$ac_func || defined __stub___$ac_func
22912 return $ac_func ();
22917 rm -f conftest.$ac_objext conftest$ac_exeext
22918 if { (ac_try="$ac_link"
22919 case "(($ac_try" in
22920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22921 *) ac_try_echo=$ac_try;;
22923 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22924 (eval "$ac_link") 2>conftest.er1
22926 grep -v '^ *+' conftest.er1 >conftest.err
22928 cat conftest.err >&5
22929 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22930 (exit $ac_status); } && {
22931 test -z "$ac_c_werror_flag" ||
22932 test ! -s conftest.err
22933 } && test -s conftest$ac_exeext &&
22934 $as_test_x conftest$ac_exeext; then
22935 eval "$as_ac_var=yes"
22937 echo "$as_me: failed program was
:" >&5
22938 sed 's/^/| /' conftest.$ac_ext >&5
22940 eval "$as_ac_var=no
"
22943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22944 conftest$ac_exeext conftest.$ac_ext
22946 ac_res=`eval echo '${'$as_ac_var'}'`
22947 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22948 echo "${ECHO_T}$ac_res" >&6; }
22949 if test `eval echo '${'$as_ac_var'}'` = yes; then
22950 cat >>confdefs.h <<_ACEOF
22951 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
22957 if test "x
$ac_cv_func_fork" = xyes; then
22958 { echo "$as_me:$LINENO: checking
for working fork
" >&5
22959 echo $ECHO_N "checking
for working fork...
$ECHO_C" >&6; }
22960 if test "${ac_cv_func_fork_works+set}" = set; then
22961 echo $ECHO_N "(cached
) $ECHO_C" >&6
22963 if test "$cross_compiling" = yes; then
22964 ac_cv_func_fork_works=cross
22966 cat >conftest.$ac_ext <<_ACEOF
22969 cat confdefs.h >>conftest.$ac_ext
22970 cat >>conftest.$ac_ext <<_ACEOF
22971 /* end confdefs.h. */
22972 $ac_includes_default
22977 /* By Ruediger Kuhlmann. */
22978 return fork () < 0;
22984 rm -f conftest$ac_exeext
22985 if { (ac_try="$ac_link"
22986 case "(($ac_try" in
22987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22988 *) ac_try_echo=$ac_try;;
22990 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22991 (eval "$ac_link") 2>&5
22993 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22994 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22995 { (case "(($ac_try" in
22996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22997 *) ac_try_echo=$ac_try;;
22999 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23000 (eval "$ac_try") 2>&5
23002 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23003 (exit $ac_status); }; }; then
23004 ac_cv_func_fork_works=yes
23006 echo "$as_me: program exited with status
$ac_status" >&5
23007 echo "$as_me: failed program was
:" >&5
23008 sed 's/^/| /' conftest.$ac_ext >&5
23010 ( exit $ac_status )
23011 ac_cv_func_fork_works=no
23013 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23018 { echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
23019 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23022 ac_cv_func_fork_works=$ac_cv_func_fork
23024 if test "x
$ac_cv_func_fork_works" = xcross; then
23026 *-*-amigaos* | *-*-msdosdjgpp*)
23027 # Override, as these systems have only a dummy fork() stub
23028 ac_cv_func_fork_works=no
23031 ac_cv_func_fork_works=yes
23034 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
23035 echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
23037 ac_cv_func_vfork_works=$ac_cv_func_vfork
23038 if test "x
$ac_cv_func_vfork" = xyes; then
23039 { echo "$as_me:$LINENO: checking
for working vfork
" >&5
23040 echo $ECHO_N "checking
for working vfork...
$ECHO_C" >&6; }
23041 if test "${ac_cv_func_vfork_works+set}" = set; then
23042 echo $ECHO_N "(cached
) $ECHO_C" >&6
23044 if test "$cross_compiling" = yes; then
23045 ac_cv_func_vfork_works=cross
23047 cat >conftest.$ac_ext <<_ACEOF
23050 cat confdefs.h >>conftest.$ac_ext
23051 cat >>conftest.$ac_ext <<_ACEOF
23052 /* end confdefs.h. */
23053 /* Thanks to Paul Eggert for this test. */
23054 $ac_includes_default
23055 #include <sys/wait.h>
23056 #ifdef HAVE_VFORK_H
23057 # include <vfork.h>
23059 /* On some sparc systems, changes by the child to local and incoming
23060 argument registers are propagated back to the parent. The compiler
23061 is told about this with #include <vfork.h>, but some compilers
23062 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23063 static variable whose address is put into a register that is
23064 clobbered by the vfork. */
23067 sparc_address_test (int arg)
23069 sparc_address_test (arg) int arg;
23072 static pid_t child;
23090 pid_t parent = getpid ();
23093 sparc_address_test (0);
23098 /* Here is another test for sparc vfork register problems. This
23099 test uses lots of local variables, at least as many local
23100 variables as main has allocated so far including compiler
23101 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23102 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23103 reuse the register of parent for one of the local variables,
23104 since it will think that parent can't possibly be used any more
23105 in this routine. Assigning to the local variable will thus
23106 munge parent in the parent process. */
23108 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23109 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23110 /* Convince the compiler that p..p7 are live; otherwise, it might
23111 use the same hardware register for all 8 local variables. */
23112 if (p != p1 || p != p2 || p != p3 || p != p4
23113 || p != p5 || p != p6 || p != p7)
23116 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23117 from child file descriptors. If the child closes a descriptor
23118 before it execs or exits, this munges the parent's descriptor
23119 as well. Test for this by closing stdout in the child. */
23120 _exit(close(fileno(stdout)) != 0);
23125 while (wait(&status) != child)
23128 /* Was there some problem with vforking? */
23131 /* Did the child fail? (This shouldn't happen.) */
23134 /* Did the vfork/compiler bug occur? */
23135 || parent != getpid()
23137 /* Did the file descriptor bug occur? */
23138 || fstat(fileno(stdout), &st) != 0
23143 rm -f conftest$ac_exeext
23144 if { (ac_try="$ac_link"
23145 case "(($ac_try" in
23146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23147 *) ac_try_echo=$ac_try;;
23149 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23150 (eval "$ac_link") 2>&5
23152 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23153 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23154 { (case "(($ac_try" in
23155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23156 *) ac_try_echo=$ac_try;;
23158 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23159 (eval "$ac_try") 2>&5
23161 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23162 (exit $ac_status); }; }; then
23163 ac_cv_func_vfork_works=yes
23165 echo "$as_me: program exited with status
$ac_status" >&5
23166 echo "$as_me: failed program was
:" >&5
23167 sed 's/^/| /' conftest.$ac_ext >&5
23169 ( exit $ac_status )
23170 ac_cv_func_vfork_works=no
23172 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23177 { echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
23178 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23181 if test "x
$ac_cv_func_fork_works" = xcross; then
23182 ac_cv_func_vfork_works=$ac_cv_func_vfork
23183 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
23184 echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
23187 if test "x
$ac_cv_func_vfork_works" = xyes; then
23189 cat >>confdefs.h <<\_ACEOF
23190 #define HAVE_WORKING_VFORK 1
23195 cat >>confdefs.h <<\_ACEOF
23200 if test "x
$ac_cv_func_fork_works" = xyes; then
23202 cat >>confdefs.h <<\_ACEOF
23203 #define HAVE_WORKING_FORK 1
23209 { echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
23210 echo $ECHO_N "checking
for nl_langinfo and CODESET...
$ECHO_C" >&6; }
23211 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23212 echo $ECHO_N "(cached
) $ECHO_C" >&6
23214 cat >conftest.$ac_ext <<_ACEOF
23217 cat confdefs.h >>conftest.$ac_ext
23218 cat >>conftest.$ac_ext <<_ACEOF
23219 /* end confdefs.h. */
23220 #include <langinfo.h>
23224 char* cs = nl_langinfo(CODESET);
23229 rm -f conftest.$ac_objext conftest$ac_exeext
23230 if { (ac_try="$ac_link"
23231 case "(($ac_try" in
23232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23233 *) ac_try_echo=$ac_try;;
23235 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23236 (eval "$ac_link") 2>conftest.er1
23238 grep -v '^ *+' conftest.er1 >conftest.err
23240 cat conftest.err >&5
23241 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23242 (exit $ac_status); } && {
23243 test -z "$ac_c_werror_flag" ||
23244 test ! -s conftest.err
23245 } && test -s conftest$ac_exeext &&
23246 $as_test_x conftest$ac_exeext; then
23247 emacs_cv_langinfo_codeset=yes
23249 echo "$as_me: failed program was
:" >&5
23250 sed 's/^/| /' conftest.$ac_ext >&5
23252 emacs_cv_langinfo_codeset=no
23255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23256 conftest$ac_exeext conftest.$ac_ext
23259 { echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
23260 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23261 if test $emacs_cv_langinfo_codeset = yes; then
23263 cat >>confdefs.h <<\_ACEOF
23264 #define HAVE_LANGINFO_CODESET 1
23269 { echo "$as_me:$LINENO: checking
for size_t
" >&5
23270 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
23271 if test "${ac_cv_type_size_t+set}" = set; then
23272 echo $ECHO_N "(cached
) $ECHO_C" >&6
23274 cat >conftest.$ac_ext <<_ACEOF
23277 cat confdefs.h >>conftest.$ac_ext
23278 cat >>conftest.$ac_ext <<_ACEOF
23279 /* end confdefs.h. */
23280 $ac_includes_default
23281 typedef size_t ac__type_new_;
23285 if ((ac__type_new_ *) 0)
23287 if (sizeof (ac__type_new_))
23293 rm -f conftest.$ac_objext
23294 if { (ac_try="$ac_compile"
23295 case "(($ac_try" in
23296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23297 *) ac_try_echo=$ac_try;;
23299 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23300 (eval "$ac_compile") 2>conftest.er1
23302 grep -v '^ *+' conftest.er1 >conftest.err
23304 cat conftest.err >&5
23305 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23306 (exit $ac_status); } && {
23307 test -z "$ac_c_werror_flag" ||
23308 test ! -s conftest.err
23309 } && test -s conftest.$ac_objext; then
23310 ac_cv_type_size_t=yes
23312 echo "$as_me: failed program was
:" >&5
23313 sed 's/^/| /' conftest.$ac_ext >&5
23315 ac_cv_type_size_t=no
23318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23320 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
23321 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23322 if test $ac_cv_type_size_t = yes; then
23324 cat >>confdefs.h <<_ACEOF
23325 #define HAVE_SIZE_T 1
23332 { echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
23333 echo $ECHO_N "checking
for mbstate_t...
$ECHO_C" >&6; }
23334 if test "${ac_cv_type_mbstate_t+set}" = set; then
23335 echo $ECHO_N "(cached
) $ECHO_C" >&6
23337 cat >conftest.$ac_ext <<_ACEOF
23340 cat confdefs.h >>conftest.$ac_ext
23341 cat >>conftest.$ac_ext <<_ACEOF
23342 /* end confdefs.h. */
23343 $ac_includes_default
23344 # include <wchar.h>
23348 mbstate_t x; return sizeof x;
23353 rm -f conftest.$ac_objext
23354 if { (ac_try="$ac_compile"
23355 case "(($ac_try" in
23356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23357 *) ac_try_echo=$ac_try;;
23359 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23360 (eval "$ac_compile") 2>conftest.er1
23362 grep -v '^ *+' conftest.er1 >conftest.err
23364 cat conftest.err >&5
23365 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23366 (exit $ac_status); } && {
23367 test -z "$ac_c_werror_flag" ||
23368 test ! -s conftest.err
23369 } && test -s conftest.$ac_objext; then
23370 ac_cv_type_mbstate_t=yes
23372 echo "$as_me: failed program was
:" >&5
23373 sed 's/^/| /' conftest.$ac_ext >&5
23375 ac_cv_type_mbstate_t=no
23378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23380 { echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
23381 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23382 if test $ac_cv_type_mbstate_t = yes; then
23384 cat >>confdefs.h <<\_ACEOF
23385 #define HAVE_MBSTATE_T 1
23390 cat >>confdefs.h <<\_ACEOF
23391 #define mbstate_t int
23396 { echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
23397 echo $ECHO_N "checking
for C restrict keyword...
$ECHO_C" >&6; }
23398 if test "${emacs_cv_c_restrict+set}" = set; then
23399 echo $ECHO_N "(cached
) $ECHO_C" >&6
23401 cat >conftest.$ac_ext <<_ACEOF
23404 cat confdefs.h >>conftest.$ac_ext
23405 cat >>conftest.$ac_ext <<_ACEOF
23406 /* end confdefs.h. */
23407 void fred (int *restrict x);
23416 rm -f conftest.$ac_objext
23417 if { (ac_try="$ac_compile"
23418 case "(($ac_try" in
23419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23420 *) ac_try_echo=$ac_try;;
23422 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23423 (eval "$ac_compile") 2>conftest.er1
23425 grep -v '^ *+' conftest.er1 >conftest.err
23427 cat conftest.err >&5
23428 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23429 (exit $ac_status); } && {
23430 test -z "$ac_c_werror_flag" ||
23431 test ! -s conftest.err
23432 } && test -s conftest.$ac_objext; then
23433 emacs_cv_c_restrict=yes
23435 echo "$as_me: failed program was
:" >&5
23436 sed 's/^/| /' conftest.$ac_ext >&5
23438 cat >conftest.$ac_ext <<_ACEOF
23441 cat confdefs.h >>conftest.$ac_ext
23442 cat >>conftest.$ac_ext <<_ACEOF
23443 /* end confdefs.h. */
23444 void fred (int *__restrict x);
23453 rm -f conftest.$ac_objext
23454 if { (ac_try="$ac_compile"
23455 case "(($ac_try" in
23456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23457 *) ac_try_echo=$ac_try;;
23459 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23460 (eval "$ac_compile") 2>conftest.er1
23462 grep -v '^ *+' conftest.er1 >conftest.err
23464 cat conftest.err >&5
23465 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23466 (exit $ac_status); } && {
23467 test -z "$ac_c_werror_flag" ||
23468 test ! -s conftest.err
23469 } && test -s conftest.$ac_objext; then
23470 emacs_cv_c_restrict=__restrict
23472 echo "$as_me: failed program was
:" >&5
23473 sed 's/^/| /' conftest.$ac_ext >&5
23475 emacs_cv_c_restrict=no
23478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23483 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
23484 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23485 case "$emacs_cv_c_restrict" in
23486 yes) emacs_restrict=restrict;;
23487 no) emacs_restrict="";;
23488 *) emacs_restrict="$emacs_cv_c_restrict";;
23490 if test "$emacs_restrict" != __restrict; then
23492 cat >>confdefs.h <<_ACEOF
23493 #define __restrict $emacs_restrict
23498 { echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
23499 echo $ECHO_N "checking
for C restricted array declarations...
$ECHO_C" >&6; }
23500 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23501 echo $ECHO_N "(cached
) $ECHO_C" >&6
23503 cat >conftest.$ac_ext <<_ACEOF
23506 cat confdefs.h >>conftest.$ac_ext
23507 cat >>conftest.$ac_ext <<_ACEOF
23508 /* end confdefs.h. */
23509 void fred (int x[__restrict]);
23518 rm -f conftest.$ac_objext
23519 if { (ac_try="$ac_compile"
23520 case "(($ac_try" in
23521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23522 *) ac_try_echo=$ac_try;;
23524 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23525 (eval "$ac_compile") 2>conftest.er1
23527 grep -v '^ *+' conftest.er1 >conftest.err
23529 cat conftest.err >&5
23530 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23531 (exit $ac_status); } && {
23532 test -z "$ac_c_werror_flag" ||
23533 test ! -s conftest.err
23534 } && test -s conftest.$ac_objext; then
23535 emacs_cv_c_restrict_arr=yes
23537 echo "$as_me: failed program was
:" >&5
23538 sed 's/^/| /' conftest.$ac_ext >&5
23540 emacs_cv_c_restrict_arr=no
23543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23545 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
23546 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23547 if test "$emacs_cv_c_restrict_arr" = yes; then
23549 cat >>confdefs.h <<\_ACEOF
23550 #define __restrict_arr __restrict
23557 # Set up the CFLAGS for real compilation, so we can substitute it.
23558 CFLAGS="$REAL_CFLAGS"
23559 CPPFLAGS="$REAL_CPPFLAGS"
23561 #### Find out which version of Emacs this is.
23562 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23563 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
23564 if test x"${version}" = x; then
23565 { { echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&5
23566 echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&2;}
23567 { (exit 1); exit 1; }; }
23570 ### Specify what sort of things we'll be editing into Makefile and config.h.
23571 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23607 cat >>confdefs.h <<_ACEOF
23608 #define EMACS_CONFIGURATION "${canonical}"
23612 cat >>confdefs.h <<_ACEOF
23613 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23617 cat >>confdefs.h <<_ACEOF
23618 #define config_machfile "${machfile}"
23622 cat >>confdefs.h <<_ACEOF
23623 #define config_opsysfile "${opsysfile}"
23627 cat >>confdefs.h <<_ACEOF
23628 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23632 cat >>confdefs.h <<_ACEOF
23633 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23637 cat >>confdefs.h <<_ACEOF
23638 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23642 cat >>confdefs.h <<_ACEOF
23643 #define UNEXEC_SRC ${UNEXEC_SRC}
23647 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23649 cat >>confdefs.h <<\_ACEOF
23650 #define HAVE_X_WINDOWS 1
23654 if test "${USE_X_TOOLKIT}" != "none
" ; then
23656 cat >>confdefs.h <<\_ACEOF
23657 #define USE_X_TOOLKIT 1
23661 if test "${HAVE_X11}" = "yes" ; then
23663 cat >>confdefs.h <<\_ACEOF
23668 if test "${HAVE_XFREE386}" = "yes" ; then
23670 cat >>confdefs.h <<\_ACEOF
23671 #define HAVE_XFREE386 1
23675 if test "${HAVE_MENUS}" = "yes" ; then
23677 cat >>confdefs.h <<\_ACEOF
23678 #define HAVE_MENUS 1
23682 if test "${GNU_MALLOC}" = "yes" ; then
23684 cat >>confdefs.h <<\_ACEOF
23685 #define GNU_MALLOC 1
23689 if test "${REL_ALLOC}" = "yes" ; then
23691 cat >>confdefs.h <<\_ACEOF
23692 #define REL_ALLOC 1
23702 #### Report on what we decided to do.
23703 #### Report GTK as a toolkit, even if it doesn't use Xt.
23704 #### It makes printing result more understandable as using GTK sets
23705 #### toolkit_scroll_bars to yes by default.
23706 if test "${HAVE_GTK}" = "yes"; then
23711 Configured
for \
`${canonical}'.
23713 Where should the build process find the source code? ${srcdir}
23714 What operating system and machine description files should Emacs use?
23715 \`${opsysfile}' and \`${machfile}'
23716 What compiler should emacs be built with?
${CC} ${CFLAGS}
23717 Should Emacs use the GNU version of malloc?
${GNU_MALLOC}${GNU_MALLOC_reason}
23718 Should Emacs use a relocating allocator
for buffers?
${REL_ALLOC}
23719 Should Emacs use mmap
(2) for buffer allocation?
$use_mmap_for_buffers
23720 What window system should Emacs use?
${window_system}
23721 What toolkit should Emacs use?
${USE_X_TOOLKIT}"
23723 if test -n "${x_includes}"; then
23724 echo " Where
do we
find X Windows header files?
${x_includes}"
23726 echo " Where
do we
find X Windows header files? Standard
dirs"
23728 if test -n "${x_libraries}"; then
23729 echo " Where
do we
find X Windows libraries?
${x_libraries}"
23731 echo " Where
do we
find X Windows libraries? Standard
dirs"
23734 echo " Does Emacs use
-lXaw3d?
${HAVE_XAW3D}"
23735 echo " Does Emacs use
-lXpm?
${HAVE_XPM}"
23736 echo " Does Emacs use
-ljpeg?
${HAVE_JPEG}"
23737 echo " Does Emacs use
-ltiff?
${HAVE_TIFF}"
23738 echo " Does Emacs use a gif library?
${HAVE_GIF} $ac_gif_lib_name"
23739 echo " Does Emacs use
-lpng?
${HAVE_PNG}"
23740 echo " Does Emacs use
-lrsvg-2?
${HAVE_RSVG}"
23741 echo " Does Emacs use
-lgpm?
${HAVE_GPM}"
23742 echo " Does Emacs use X toolkit scroll bars?
${USE_TOOLKIT_SCROLL_BARS}"
23745 if test $USE_XASSERTS = yes; then
23746 echo " Compiling with asserts turned on.
"
23747 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23751 if test "$USE_X_TOOLKIT" = GTK; then
23752 case "$canonical" in
23754 echo "There are known problems with Emacs and Gtk
+ on cygwin
, so you
23755 will probably get a crash on startup. If this happens
, please use another
23756 toolkit
for Emacs. See etc
/PROBLEMS
for more information.
"
23763 # Remove any trailing slashes in these variables.
23764 test "${prefix}" != NONE &&
23765 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23766 test "${exec_prefix}" != NONE &&
23767 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23769 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23770 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23771 ## from Makefile.c can correctly provide the arg `-traditional' to the
23774 cat >conftest.$ac_ext <<_ACEOF
23777 cat confdefs.h >>conftest.$ac_ext
23778 cat >>conftest.$ac_ext <<_ACEOF
23779 /* end confdefs.h. */
23782 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
23783 $EGREP "yes..
yes" >/dev/null 2>&1; then
23784 CPP_NEED_TRADITIONAL=no
23786 CPP_NEED_TRADITIONAL=yes
23791 ac_config_files="$ac_config_files Makefile lib-src
/Makefile.c
:lib-src
/Makefile.
in oldXMenu
/Makefile
doc
/emacs
/Makefile
doc
/misc
/Makefile
doc
/lispintro
/Makefile
doc
/lispref
/Makefile src
/Makefile.c
:src
/Makefile.
in lwlib
/Makefile lisp
/Makefile leim
/Makefile
"
23793 ac_config_commands="$ac_config_commands default
"
23795 cat >confcache <<\_ACEOF
23796 # This file is a shell script that caches the results of configure
23797 # tests run on this system so they can be shared between configure
23798 # scripts and configure runs, see configure's option --config-cache.
23799 # It is not useful on other systems. If it contains results you don't
23800 # want to keep, you may remove or edit it.
23802 # config.status only pays attention to the cache file if you give it
23803 # the --recheck option to rerun configure.
23805 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23806 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23807 # following values.
23811 # The following way of writing the cache mishandles newlines in values,
23812 # but we know of no workaround that is simple, portable, and efficient.
23813 # So, we kill variables containing newlines.
23814 # Ultrix sh set writes to stderr and can't be redirected directly,
23815 # and sets the high bit in the cache file unless we assign to the vars.
23817 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23818 eval ac_val=\$$ac_var
23822 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
23823 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
23826 _ | IFS | as_nl) ;; #(
23827 *) $as_unset $ac_var ;;
23833 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23834 *${as_nl}ac_space=\ *)
23835 # `set' does not quote correctly, so add quotes (double-quote
23836 # substitution turns \\\\ into \\, and sed turns \\ into \).
23839 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
23842 # `set' quotes correctly as required by POSIX, so do not add quotes.
23843 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
23852 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23854 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23856 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23857 if test -w "$cache_file"; then
23858 test "x
$cache_file" != "x
/dev
/null
" &&
23859 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
23860 echo "$as_me: updating cache
$cache_file" >&6;}
23861 cat confcache >$cache_file
23863 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
23864 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
23869 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
23870 # Let make expand exec_prefix.
23871 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
23873 DEFS=-DHAVE_CONFIG_H
23877 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
23878 # 1. Remove the extension, and $U if already installed.
23879 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23880 ac_i=`echo "$ac_i" | sed "$ac_script"`
23881 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23882 # will be set to the directory where LIBOBJS objects are built.
23883 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
23884 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
23886 LIBOBJS=$ac_libobjs
23888 LTLIBOBJS=$ac_ltlibobjs
23892 : ${CONFIG_STATUS=./config.status}
23893 ac_clean_files_save=$ac_clean_files
23894 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23895 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
23896 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
23897 cat >$CONFIG_STATUS <<_ACEOF
23899 # Generated by $as_me.
23900 # Run this file to recreate the current configuration.
23901 # Compiler output produced by configure, useful for debugging
23902 # configure, is in config.log if it exists.
23905 ac_cs_recheck=false
23907 SHELL=\${CONFIG_SHELL-$SHELL}
23910 cat >>$CONFIG_STATUS <<\_ACEOF
23911 ## --------------------- ##
23912 ## M4sh Initialization. ##
23913 ## --------------------- ##
23915 # Be more Bourne compatible
23916 DUALCASE=1; export DUALCASE # for MKS sh
23917 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23920 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23921 # is contrary to our usage. Disable this feature.
23922 alias -g '${1+"$@"}'='"$@
"'
23923 setopt NO_GLOB_SUBST
23925 case `(set -o) 2>/dev/null` in
23926 *posix*) set -o posix ;;
23935 # Avoid depending upon Character Ranges.
23936 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23937 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23938 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23939 as_cr_digits='0123456789'
23940 as_cr_alnum=$as_cr_Letters$as_cr_digits
23942 # The user is always right.
23943 if test "${PATH_SEPARATOR+set}" != set; then
23944 echo "#! /bin/sh" >conf$$.sh
23945 echo "exit 0" >>conf$$.sh
23947 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
23955 # Support unset when possible.
23956 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
23964 # We need space, tab and new line, in precisely that order. Quoting is
23965 # there to prevent editors from complaining about space-tab.
23966 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23967 # splitting by setting IFS to empty value.)
23972 # Find who we are. Look in the path if we contain no directory separator.
23974 *[\\/]* ) as_myself
=$0 ;;
23975 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23976 for as_dir
in $PATH
23979 test -z "$as_dir" && as_dir
=.
23980 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
23986 # We did not find ourselves, most probably we were run as `sh COMMAND'
23987 # in which case we are not to be found in the path.
23988 if test "x$as_myself" = x
; then
23991 if test ! -f "$as_myself"; then
23992 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23993 { (exit 1); exit 1; }
23996 # Work around bugs in pre-3.0 UWIN ksh.
23997 for as_var
in ENV MAIL MAILPATH
23998 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24006 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24007 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24008 LC_TELEPHONE LC_TIME
24010 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24011 eval $as_var=C
; export $as_var
24013 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24017 # Required to use basename.
24018 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24019 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24025 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24026 as_basename
=basename
24032 # Name of the executable.
24033 as_me
=`$as_basename -- "$0" ||
24034 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24035 X"$0" : 'X\(//\)$' \| \
24036 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24038 sed '/^.*\/\([^/][^/]*\)\/*$/{
24057 as_lineno_1
=$LINENO
24058 as_lineno_2
=$LINENO
24059 test "x$as_lineno_1" != "x$as_lineno_2" &&
24060 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
24062 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24063 # uniformly replaced by the line number. The first 'sed' inserts a
24064 # line-number line after each line using $LINENO; the second 'sed'
24065 # does the real work. The second script uses 'N' to pair each
24066 # line-number line with the line containing $LINENO, and appends
24067 # trailing '-' during substitution so that $LINENO is not a special
24068 # case at line end.
24069 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24070 # scripts with optimization help from Paolo Bonzini. Blame Lee
24071 # E. McMahon (1931-1989) for sed's syntax. :-)
24083 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24086 ' >$as_me.lineno
&&
24087 chmod +x
"$as_me.lineno" ||
24088 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24089 { (exit 1); exit 1; }; }
24091 # Don't try to exec as it changes $[0], causing all sort of problems
24092 # (the dirname of $[0] is not the place where we might find the
24093 # original and so on. Autoconf is especially sensitive to this).
24094 .
"./$as_me.lineno"
24095 # Exit status is that of the last command.
24100 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
24106 ECHO_C
= ECHO_N
= ECHO_T
=
24107 case `echo -n x` in
24109 case `echo 'x\c'` in
24110 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
24117 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24118 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24124 rm -f conf$$ conf$$.exe conf$$.
file
24125 if test -d conf$$.dir
; then
24126 rm -f conf$$.dir
/conf$$.
file
24132 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
24134 # ... but there are two gotchas:
24135 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24136 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24137 # In both cases, we have to default to `cp -p'.
24138 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
24140 elif ln conf$$.
file conf$$
2>/dev
/null
; then
24145 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
24146 rmdir conf$$.dir
2>/dev
/null
24148 if mkdir
-p .
2>/dev
/null
; then
24151 test -d .
/-p && rmdir .
/-p
24155 if test -x / >/dev
/null
2>&1; then
24156 as_test_x
='test -x'
24158 if ls -dL / >/dev
/null
2>&1; then
24165 if test -d "$1"; then
24171 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24172 ???[sx]*):;;*)false;;esac;fi
24176 as_executable_p
=$as_test_x
24178 # Sed expression to map a string onto a valid CPP name.
24179 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24181 # Sed expression to map a string onto a valid variable name.
24182 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24187 # Save the log message, to keep $[0] and so on meaningful, and to
24188 # report actual input values of CONFIG_FILES etc. instead of their
24189 # values after options handling.
24191 This file was extended by $as_me, which was
24192 generated by GNU Autoconf 2.61. Invocation command line was
24194 CONFIG_FILES = $CONFIG_FILES
24195 CONFIG_HEADERS = $CONFIG_HEADERS
24196 CONFIG_LINKS = $CONFIG_LINKS
24197 CONFIG_COMMANDS = $CONFIG_COMMANDS
24200 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24205 cat >>$CONFIG_STATUS <<_ACEOF
24206 # Files that config.status was made for.
24207 config_files="$ac_config_files"
24208 config_headers="$ac_config_headers"
24209 config_commands="$ac_config_commands"
24213 cat >>$CONFIG_STATUS <<\_ACEOF
24215 \`$as_me' instantiates files from templates according to the
24216 current configuration.
24218 Usage: $0 [OPTIONS] [FILE]...
24220 -h, --help print this help, then exit
24221 -V, --version print version number and configuration settings, then exit
24222 -q, --quiet do not print progress messages
24223 -d, --debug don't remove temporary files
24224 --recheck update $as_me by reconfiguring in the same conditions
24225 --file=FILE[:TEMPLATE]
24226 instantiate the configuration file FILE
24227 --header=FILE[:TEMPLATE]
24228 instantiate the configuration header FILE
24230 Configuration files:
24233 Configuration headers:
24236 Configuration commands:
24239 Report bugs to <bug-autoconf@gnu.org>."
24242 cat >>$CONFIG_STATUS <<_ACEOF
24245 configured by $0, generated by GNU Autoconf 2.61,
24246 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24248 Copyright (C) 2006 Free Software Foundation, Inc.
24249 This config.status script is free software; the Free Software Foundation
24250 gives unlimited permission to copy, distribute and modify it."
24257 cat >>$CONFIG_STATUS <<\_ACEOF
24258 # If no file are specified by the user, then we need to provide default
24259 # value. By we need to know if files were specified by the user.
24265 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
24266 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
24277 # Handling of the options.
24278 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
24280 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
24281 echo "$ac_cs_version"; exit ;;
24282 --debug |
--debu |
--deb |
--de |
--d |
-d )
24284 --file |
--fil |
--fi |
--f )
24286 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
24287 ac_need_defaults
=false
;;
24288 --header |
--heade |
--head |
--hea )
24290 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
24291 ac_need_defaults
=false
;;
24293 # Conflict between --help and --header
24294 { echo "$as_me: error: ambiguous option: $1
24295 Try \`$0 --help' for more information." >&2
24296 { (exit 1); exit 1; }; };;
24297 --help |
--hel |
-h )
24298 echo "$ac_cs_usage"; exit ;;
24299 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
24300 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
24303 # This is an error.
24304 -*) { echo "$as_me: error: unrecognized option: $1
24305 Try \`$0 --help' for more information." >&2
24306 { (exit 1); exit 1; }; } ;;
24308 *) ac_config_targets
="$ac_config_targets $1"
24309 ac_need_defaults
=false
;;
24315 ac_configure_extra_args
=
24317 if $ac_cs_silent; then
24319 ac_configure_extra_args
="$ac_configure_extra_args --silent"
24323 cat >>$CONFIG_STATUS <<_ACEOF
24324 if \$ac_cs_recheck; then
24325 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24326 CONFIG_SHELL=$SHELL
24327 export CONFIG_SHELL
24328 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24332 cat >>$CONFIG_STATUS <<\_ACEOF
24336 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24337 ## Running $as_me. ##
24343 cat >>$CONFIG_STATUS <<_ACEOF
24347 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
24351 cat >>$CONFIG_STATUS <<\_ACEOF
24353 # Handling of arguments.
24354 for ac_config_target
in $ac_config_targets
24356 case $ac_config_target in
24357 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24358 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
24359 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24360 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
24361 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
24362 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
24363 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
24364 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
24365 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24366 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
24367 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
24368 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
24369 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
24371 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24372 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24373 { (exit 1); exit 1; }; };;
24378 # If the user did not use the arguments to specify the items to instantiate,
24379 # then the envvar interface is used. Set only those that are not.
24380 # We use the long form for the default assignment because of an extremely
24381 # bizarre bug on SunOS 4.1.3.
24382 if $ac_need_defaults; then
24383 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
24384 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
24385 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
24388 # Have a temporary directory for convenience. Make it in the build tree
24389 # simply because there is no reason against having it here, and in addition,
24390 # creating and moving files from /tmp can sometimes cause problems.
24391 # Hook for its removal unless debugging.
24392 # Note that there is a small window in which the directory will not be cleaned:
24393 # after its creation but before its name has been assigned to `$tmp'.
24397 trap 'exit_status=$?
24398 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24400 trap '{ (exit 1); exit 1; }' 1 2 13 15
24402 # Create a (secure) tmp directory for tmp files.
24405 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24406 test -n "$tmp" && test -d "$tmp"
24409 tmp
=.
/conf$$
-$RANDOM
24410 (umask 077 && mkdir
"$tmp")
24413 echo "$me: cannot create a temporary directory in ." >&2
24414 { (exit 1); exit 1; }
24418 # Set up the sed scripts for CONFIG_FILES section.
24421 # No need to generate the scripts if there are no CONFIG_FILES.
24422 # This happens for instance when ./config.status config.h
24423 if test -n "$CONFIG_FILES"; then
24430 for ac_last_try
in false false false false false
:; do
24431 cat >conf$
$subs.
sed <<_ACEOF
24432 SHELL!$SHELL$ac_delim
24433 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24434 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24435 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24436 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24437 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24438 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24439 exec_prefix!$exec_prefix$ac_delim
24440 prefix!$prefix$ac_delim
24441 program_transform_name!$program_transform_name$ac_delim
24442 bindir!$bindir$ac_delim
24443 sbindir!$sbindir$ac_delim
24444 libexecdir!$libexecdir$ac_delim
24445 datarootdir!$datarootdir$ac_delim
24446 datadir!$datadir$ac_delim
24447 sysconfdir!$sysconfdir$ac_delim
24448 sharedstatedir!$sharedstatedir$ac_delim
24449 localstatedir!$localstatedir$ac_delim
24450 includedir!$includedir$ac_delim
24451 oldincludedir!$oldincludedir$ac_delim
24452 docdir!$docdir$ac_delim
24453 infodir!$infodir$ac_delim
24454 htmldir!$htmldir$ac_delim
24455 dvidir!$dvidir$ac_delim
24456 pdfdir!$pdfdir$ac_delim
24457 psdir!$psdir$ac_delim
24458 libdir!$libdir$ac_delim
24459 localedir!$localedir$ac_delim
24460 mandir!$mandir$ac_delim
24461 DEFS!$DEFS$ac_delim
24462 ECHO_C!$ECHO_C$ac_delim
24463 ECHO_N!$ECHO_N$ac_delim
24464 ECHO_T!$ECHO_T$ac_delim
24465 LIBS!$LIBS$ac_delim
24466 build_alias!$build_alias$ac_delim
24467 host_alias!$host_alias$ac_delim
24468 target_alias!$target_alias$ac_delim
24469 MAINT!$MAINT$ac_delim
24470 build!$build$ac_delim
24471 build_cpu!$build_cpu$ac_delim
24472 build_vendor!$build_vendor$ac_delim
24473 build_os!$build_os$ac_delim
24474 host!$host$ac_delim
24475 host_cpu!$host_cpu$ac_delim
24476 host_vendor!$host_vendor$ac_delim
24477 host_os!$host_os$ac_delim
24479 CFLAGS!$CFLAGS$ac_delim
24480 LDFLAGS!$LDFLAGS$ac_delim
24481 CPPFLAGS!$CPPFLAGS$ac_delim
24482 ac_ct_CC!$ac_ct_CC$ac_delim
24483 EXEEXT!$EXEEXT$ac_delim
24484 OBJEXT!$OBJEXT$ac_delim
24486 GREP!$GREP$ac_delim
24487 EGREP!$EGREP$ac_delim
24488 LN_S!$LN_S$ac_delim
24489 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24490 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24491 INSTALL_DATA!$INSTALL_DATA$ac_delim
24492 RANLIB!$RANLIB$ac_delim
24493 INSTALL_INFO!$INSTALL_INFO$ac_delim
24494 GZIP_PROG!$GZIP_PROG$ac_delim
24495 MAKEINFO!$MAKEINFO$ac_delim
24496 LIBSOUND!$LIBSOUND$ac_delim
24497 PKG_CONFIG!$PKG_CONFIG$ac_delim
24498 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24499 ALSA_LIBS!$ALSA_LIBS$ac_delim
24500 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24501 SET_MAKE!$SET_MAKE$ac_delim
24502 XMKMF!$XMKMF$ac_delim
24503 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
24504 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
24505 RSVG_LIBS!$RSVG_LIBS$ac_delim
24506 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24507 GTK_LIBS!$GTK_LIBS$ac_delim
24508 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24509 XFT_LIBS!$XFT_LIBS$ac_delim
24510 ALLOCA!$ALLOCA$ac_delim
24511 liblockfile!$liblockfile$ac_delim
24512 LIBOBJS!$LIBOBJS$ac_delim
24513 NEED_SETGID!$NEED_SETGID$ac_delim
24514 KMEM_GROUP!$KMEM_GROUP$ac_delim
24515 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24516 GETOPT_H!$GETOPT_H$ac_delim
24517 GETOPTOBJS!$GETOPTOBJS$ac_delim
24518 version!$version$ac_delim
24519 configuration!$configuration$ac_delim
24520 canonical!$canonical$ac_delim
24521 srcdir!$srcdir$ac_delim
24522 lispdir!$lispdir$ac_delim
24523 locallisppath!$locallisppath$ac_delim
24524 lisppath!$lisppath$ac_delim
24525 x_default_search_path!$x_default_search_path$ac_delim
24526 etcdir!$etcdir$ac_delim
24527 archlibdir!$archlibdir$ac_delim
24528 bitmapdir!$bitmapdir$ac_delim
24531 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24533 elif $ac_last_try; then
24534 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24535 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24536 { (exit 1); exit 1; }; }
24538 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24542 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24543 if test -n "$ac_eof"; then
24544 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24545 ac_eof
=`expr $ac_eof + 1`
24548 cat >>$CONFIG_STATUS <<_ACEOF
24549 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24550 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24553 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24554 s/^/s,@/; s/!/@,|#_!!_#|/
24557 s/'"$ac_delim"'$/,g/; t
24559 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24560 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24561 rm -f conf$
$subs.
sed
24562 cat >>$CONFIG_STATUS <<_ACEOF
24568 for ac_last_try
in false false false false false
:; do
24569 cat >conf$
$subs.
sed <<_ACEOF
24570 gamedir!$gamedir$ac_delim
24571 gameuser!$gameuser$ac_delim
24572 c_switch_system!$c_switch_system$ac_delim
24573 c_switch_machine!$c_switch_machine$ac_delim
24574 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
24575 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
24576 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
24577 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
24578 machfile!$machfile$ac_delim
24579 opsysfile!$opsysfile$ac_delim
24580 carbon_appdir!$carbon_appdir$ac_delim
24581 LTLIBOBJS!$LTLIBOBJS$ac_delim
24584 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 12; then
24586 elif $ac_last_try; then
24587 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24588 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24589 { (exit 1); exit 1; }; }
24591 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24595 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24596 if test -n "$ac_eof"; then
24597 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24598 ac_eof
=`expr $ac_eof + 1`
24601 cat >>$CONFIG_STATUS <<_ACEOF
24602 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24603 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24606 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24607 s/^/s,@/; s/!/@,|#_!!_#|/
24610 s/'"$ac_delim"'$/,g/; t
24612 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24613 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24614 rm -f conf$
$subs.
sed
24615 cat >>$CONFIG_STATUS <<_ACEOF
24622 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24623 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24624 # trailing colons and then remove the whole line if VPATH becomes empty
24625 # (actually we leave an empty line to preserve line numbers).
24626 if test "x$srcdir" = x.
; then
24627 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
24628 s/:*\$(srcdir):*/:/
24629 s/:*\${srcdir}:*/:/
24631 s/^\([^=]*=[ ]*\):*/\1/
24637 cat >>$CONFIG_STATUS <<\_ACEOF
24638 fi # test -n "$CONFIG_FILES"
24641 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
24644 :[FHLC
]) ac_mode
=$ac_tag; continue;;
24646 case $ac_mode$ac_tag in
24648 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24649 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24650 { (exit 1); exit 1; }; };;
24651 :[FH
]-) ac_tag
=-:-;;
24652 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
24669 -) ac_f
="$tmp/stdin";;
24670 *) # Look for the file first in the build tree, then in the source tree
24671 # (if the path is not absolute). The absolute path cannot be DOS-style,
24672 # because $ac_f cannot contain `:'.
24676 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
24678 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24679 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24680 { (exit 1); exit 1; }; };;
24682 ac_file_inputs
="$ac_file_inputs $ac_f"
24685 # Let's still pretend it is `configure' which instantiates (i.e., don't
24686 # use $as_me), people would be surprised to read:
24687 # /* config.h. Generated by config.status. */
24688 configure_input
="Generated from "`IFS=:
24689 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24690 if test x
"$ac_file" != x-
; then
24691 configure_input
="$ac_file. $configure_input"
24692 { echo "$as_me:$LINENO: creating $ac_file" >&5
24693 echo "$as_me: creating $ac_file" >&6;}
24697 *:-:* |
*:-) cat >"$tmp/stdin";;
24702 ac_dir
=`$as_dirname -- "$ac_file" ||
24703 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24704 X"$ac_file" : 'X\(//\)[^/]' \| \
24705 X"$ac_file" : 'X\(//\)$' \| \
24706 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24708 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24712 /^X\(\/\/\)[^/].*/{
24727 -*) as_dir
=.
/$as_dir;;
24729 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
24733 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24734 *) as_qdir
=$as_dir;;
24736 as_dirs
="'$as_qdir' $as_dirs"
24737 as_dir
=`$as_dirname -- "$as_dir" ||
24738 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24739 X"$as_dir" : 'X\(//\)[^/]' \| \
24740 X"$as_dir" : 'X\(//\)$' \| \
24741 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24743 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24747 /^X\(\/\/\)[^/].*/{
24760 test -d "$as_dir" && break
24762 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
24763 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24764 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24765 { (exit 1); exit 1; }; }; }
24769 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24771 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24772 # A ".." for each directory in $ac_dir_suffix.
24773 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24774 case $ac_top_builddir_sub in
24775 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24776 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
24779 ac_abs_top_builddir
=$ac_pwd
24780 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
24781 # for backward compatibility:
24782 ac_top_builddir
=$ac_top_build_prefix
24785 .
) # We are building in place.
24787 ac_top_srcdir
=$ac_top_builddir_sub
24788 ac_abs_top_srcdir
=$ac_pwd ;;
24789 [\\/]* | ?
:[\\/]* ) # Absolute name.
24790 ac_srcdir
=$srcdir$ac_dir_suffix;
24791 ac_top_srcdir
=$srcdir
24792 ac_abs_top_srcdir
=$srcdir ;;
24793 *) # Relative name.
24794 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
24795 ac_top_srcdir
=$ac_top_build_prefix$srcdir
24796 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
24798 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
24808 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
24809 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
24813 cat >>$CONFIG_STATUS <<\_ACEOF
24814 # If the template does not know about datarootdir, expand it.
24815 # FIXME: This hack should be removed a few years after 2.60.
24816 ac_datarootdir_hack
=; ac_datarootdir_seen
=
24818 case `sed -n '/datarootdir/ {
24827 ' $ac_file_inputs` in
24828 *datarootdir
*) ac_datarootdir_seen
=yes;;
24829 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
24830 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24831 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24833 cat >>$CONFIG_STATUS <<_ACEOF
24834 ac_datarootdir_hack='
24835 s&@datadir@&$datadir&g
24836 s&@docdir@&$docdir&g
24837 s&@infodir@&$infodir&g
24838 s&@localedir@&$localedir&g
24839 s&@mandir@&$mandir&g
24840 s&\\\${datarootdir}&$datarootdir&g' ;;
24844 # Neutralize VPATH when `$srcdir' = `.'.
24845 # Shell code in configure.ac might set extrasub.
24846 # FIXME: do we really want to maintain this feature?
24847 cat >>$CONFIG_STATUS <<_ACEOF
24851 cat >>$CONFIG_STATUS <<\_ACEOF
24853 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
24854 s
&@configure_input@
&$configure_input&;t t
24855 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
24856 s
&@srcdir@
&$ac_srcdir&;t t
24857 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
24858 s
&@top_srcdir@
&$ac_top_srcdir&;t t
24859 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
24860 s
&@builddir@
&$ac_builddir&;t t
24861 s
&@abs_builddir@
&$ac_abs_builddir&;t t
24862 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
24863 s
&@INSTALL@
&$ac_INSTALL&;t t
24864 $ac_datarootdir_hack
24865 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
24867 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24868 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
24869 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
24870 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
24871 which seems to be undefined. Please make sure it is defined." >&5
24872 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
24873 which seems to be undefined. Please make sure it is defined." >&2;}
24877 -) cat "$tmp/out"; rm -f "$tmp/out";;
24878 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24887 # Transform confdefs.h into a sed script `conftest.defines', that
24888 # substitutes the proper values into config.h.in to produce config.h.
24889 rm -f conftest.defines conftest.
tail
24890 # First, append a space to every undef/define line, to ease matching.
24891 echo 's/$/ /' >conftest.defines
24892 # Then, protect against being on the right side of a sed subst, or in
24893 # an unquoted here document, in config.status. If some macros were
24894 # called several times there might be several #defines for the same
24895 # symbol, which is useless. But do not sort them, since the last
24896 # AC_DEFINE must be honored.
24897 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
24898 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24899 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24900 # PARAMS is the parameter list in the macro definition--in most cases, it's
24901 # just an empty string.
24902 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24903 ac_dB
='\\)[ (].*,\\1define\\2'
24911 s/^[ ]*#[ ]*define[ ][ ]*//
24916 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24917 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24918 ' >>conftest.defines
24920 # Remove the space that was appended to ease matching.
24921 # Then replace #undef with comments. This is necessary, for
24922 # example, in the case of _POSIX_SOURCE, which is predefined and required
24923 # on some systems where configure will not decide to define it.
24924 # (The regexp can be short, since the line contains either #define or #undef.)
24926 s,^[ #]*u.*,/* & */,' >>conftest.defines
24928 # Break up conftest.defines:
24929 ac_max_sed_lines
=50
24931 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24932 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24933 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24935 ac_in
='$ac_file_inputs'
24936 ac_out
='"$tmp/out1"'
24937 ac_nxt
='"$tmp/out2"'
24941 # Write a here document:
24942 cat >>$CONFIG_STATUS <<_ACEOF
24943 # First, check the format of the line:
24944 cat >"\$tmp/defines.sed" <<\\CEOF
24945 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24946 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24950 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
24952 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24953 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
24954 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
24955 grep . conftest.
tail >/dev
/null ||
break
24956 rm -f conftest.defines
24957 mv conftest.
tail conftest.defines
24959 rm -f conftest.defines conftest.
tail
24961 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24962 cat >>$CONFIG_STATUS <<\_ACEOF
24963 if test x
"$ac_file" != x-
; then
24964 echo "/* $configure_input */" >"$tmp/config.h"
24965 cat "$ac_result" >>"$tmp/config.h"
24966 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
24967 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24968 echo "$as_me: $ac_file is unchanged" >&6;}
24971 mv "$tmp/config.h" $ac_file
24974 echo "/* $configure_input */"
24980 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24981 echo "$as_me: executing $ac_file commands" >&6;}
24986 case $ac_file$ac_mode in
24989 ### Make the necessary directories, if they don't exist.
24990 for dir
in etc lisp
; do
24991 test -d ${dir} || mkdir
${dir}
24994 # Build src/Makefile from ${srcdir}/src/Makefile.c
24995 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24996 # This must be done after src/config.h is built, since we rely on that file.
24998 # Now get this: Some word that is part of the ${srcdir} directory name
24999 # or the ${configuration} value might, just might, happen to be an
25000 # identifier like `sun4' or `i386' or something, and be predefined by
25001 # the C preprocessor to some helpful value like 1, or maybe the empty
25002 # string. Needless to say consequent macro substitutions are less
25003 # than conducive to the makefile finding the correct directory.
25004 undefs
="`echo $top_srcdir $configuration $canonical |
25005 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
25006 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
25009 echo creating src
/epaths.h
25010 ${MAKE-make} epaths-force
25012 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25013 # `..' to `. .' unless invoked with -traditional
25015 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
25016 CPPFLAGS
="$CPPFLAGS -traditional"
25019 echo creating lib-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 echo creating src
/Makefile
25037 rm -f junk.c junk1.c junk2.c
25038 sed -e '/start of cpp stuff/q' \
25039 < Makefile.c
> junk1.c
25040 sed -e '1,/start of cpp stuff/d'\
25041 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25042 < Makefile.c
> junk.c
25043 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
25044 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25045 cat junk1.c junk2.c
> Makefile.new
25046 rm -f junk.c junk1.c junk2.c
25047 chmod 444 Makefile.new
25048 mv -f Makefile.new Makefile
25051 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
25052 echo creating src
/.gdbinit
25053 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
25056 # This is how we know whether to re-run configure in certain cases.
25057 touch src
/config.stamp
25065 { (exit 0); exit 0; }
25067 chmod +x
$CONFIG_STATUS
25068 ac_clean_files
=$ac_clean_files_save
25071 # configure is writing to config.log, and then calls config.status.
25072 # config.status does its own redirection, appending to config.log.
25073 # Unfortunately, on DOS this fails, as config.log is still kept open
25074 # by configure, so config.status won't be able to write to it; its
25075 # output is simply discarded. So we exec the FD to /dev/null,
25076 # effectively closing config.log, so it can be properly (re)opened and
25077 # appended to by config.status. When coming back to configure, we
25078 # need to make the FD available again.
25079 if test "$no_create" != yes; then
25081 ac_config_status_args
=
25082 test "$silent" = yes &&
25083 ac_config_status_args
="$ac_config_status_args --quiet"
25085 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
25087 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25088 # would make configure fail if this is the last instruction.
25089 $ac_cs_success ||
{ (exit 1); exit 1; }