2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE
=1; export DUALCASE
# for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix
*) set -o posix
;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits
='0123456789'
38 as_cr_alnum
=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
53 # Support unset when possible.
54 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself
=$0 ;;
73 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir
=.
78 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x
; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var
in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C
; export $as_var
111 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
123 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me
=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x
; then
155 if (eval ":") 2>/dev
/null
; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev
/null
; then
221 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
222 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir
=.
228 for as_base
in sh bash ksh sh5
; do
229 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
236 for as_shell
in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix
*) set -o posix
;;
258 CONFIG_SHELL
=$as_shell
260 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix
*) set -o posix
;;
286 as_func_ret_success
() {
289 as_func_ret_failure
() {
294 if as_func_success
; then
298 echo as_func_success failed.
301 if as_func_failure
; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success
; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure
; then
315 echo as_func_ret_failure succeeded.
318 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) ||
{ (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x
; then
343 for as_var
in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no
; then
352 echo This
script requires a shell
more modern than all the
353 echo shells that I found on your system. Please
install a
354 echo modern shell
, or manually run the
script under such a
355 echo shell
if you
do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") ||
{
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system
,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x
"$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
472 ECHO_C
= ECHO_N
= ECHO_T
=
476 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
483 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
490 rm -f conf$$ conf$$.exe conf$$.
file
491 if test -d conf$$.dir
; then
492 rm -f conf$$.dir
/conf$$.
file
498 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
506 elif ln conf$$.
file conf$$
2>/dev
/null
; then
511 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
512 rmdir conf$$.dir
2>/dev
/null
514 if mkdir
-p .
2>/dev
/null
; then
517 test -d .
/-p && rmdir .
/-p
521 if test -x / >/dev
/null
2>&1; then
524 if ls -dL / >/dev
/null
2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p
=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev
/null
6>&1
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 ac_default_prefix
=/usr
/local
564 ac_config_libobj_dir
=.
570 SHELL
=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
579 ac_unique_file
="src/lisp.h"
580 ac_config_libobj_dir
=src
581 # Factoring default headers for most tests.
582 ac_includes_default
="\
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
594 # ifdef HAVE_STDLIB_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
628 program_transform_name
712 x_default_search_path
729 ac_precious_vars
='build_alias
741 # Initialize some variables set by options.
743 ac_init_version
=false
744 # The variables have the same names as the options, with
745 # dashes changed to underlines.
753 program_transform_name
=s
,x
,x
,
761 # Installation directory options.
762 # These are left unexpanded so users can "make install exec_prefix=/foo"
763 # and all the variables that are supposed to be based on exec_prefix
764 # by default will actually change.
765 # Use braces instead of parens because sh, perl, etc. also accept them.
766 # (The list follows the same order as the GNU Coding Standards.)
767 bindir
='${exec_prefix}/bin'
768 sbindir
='${exec_prefix}/sbin'
769 libexecdir
='${exec_prefix}/libexec'
770 datarootdir
='${prefix}/share'
771 datadir
='${datarootdir}'
772 sysconfdir
='${prefix}/etc'
773 sharedstatedir
='${prefix}/com'
774 localstatedir
='${prefix}/var'
775 includedir
='${prefix}/include'
776 oldincludedir
='/usr/include'
777 docdir
='${datarootdir}/doc/${PACKAGE}'
778 infodir
='${datarootdir}/info'
783 libdir
='${exec_prefix}/lib'
784 localedir
='${datarootdir}/locale'
785 mandir
='${datarootdir}/man'
791 # If the previous option needs an argument, assign it.
792 if test -n "$ac_prev"; then
793 eval $ac_prev=\
$ac_option
799 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
803 # Accept the important Cygnus configure options, so we can diagnose typos.
805 case $ac_dashdash$ac_option in
809 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
811 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
814 -build |
--build |
--buil |
--bui |
--bu)
815 ac_prev
=build_alias
;;
816 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
817 build_alias
=$ac_optarg ;;
819 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
820 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
821 ac_prev
=cache_file
;;
822 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
823 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
824 cache_file
=$ac_optarg ;;
827 cache_file
=config.cache
;;
829 -datadir |
--datadir |
--datadi |
--datad)
831 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
832 datadir
=$ac_optarg ;;
834 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
835 |
--dataroo |
--dataro |
--datar)
836 ac_prev
=datarootdir
;;
837 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
838 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
839 datarootdir
=$ac_optarg ;;
841 -disable-* |
--disable-*)
842 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
843 # Reject names that are not valid shell variable names.
844 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
845 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
846 { (exit 1); exit 1; }; }
847 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
848 eval enable_
$ac_feature=no
;;
850 -docdir |
--docdir |
--docdi |
--doc |
--do)
852 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
855 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
857 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
860 -enable-* |
--enable-*)
861 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
862 # Reject names that are not valid shell variable names.
863 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
864 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
865 { (exit 1); exit 1; }; }
866 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
867 eval enable_
$ac_feature=\
$ac_optarg ;;
869 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
870 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
871 |
--exec |
--exe |
--ex)
872 ac_prev
=exec_prefix
;;
873 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
874 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
875 |
--exec=* |
--exe=* |
--ex=*)
876 exec_prefix
=$ac_optarg ;;
878 -gas |
--gas |
--ga |
--g)
879 # Obsolete; use --with-gas.
882 -help |
--help |
--hel |
--he |
-h)
884 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
885 ac_init_help
=recursive
;;
886 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
887 ac_init_help
=short
;;
889 -host |
--host |
--hos |
--ho)
890 ac_prev
=host_alias
;;
891 -host=* |
--host=* |
--hos=* |
--ho=*)
892 host_alias
=$ac_optarg ;;
894 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
896 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
898 htmldir
=$ac_optarg ;;
900 -includedir |
--includedir |
--includedi |
--included |
--include \
901 |
--includ |
--inclu |
--incl |
--inc)
902 ac_prev
=includedir
;;
903 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
904 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
905 includedir
=$ac_optarg ;;
907 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
909 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
910 infodir
=$ac_optarg ;;
912 -libdir |
--libdir |
--libdi |
--libd)
914 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
917 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
918 |
--libexe |
--libex |
--libe)
919 ac_prev
=libexecdir
;;
920 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
921 |
--libexe=* |
--libex=* |
--libe=*)
922 libexecdir
=$ac_optarg ;;
924 -localedir |
--localedir |
--localedi |
--localed |
--locale)
926 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
927 localedir
=$ac_optarg ;;
929 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
930 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
931 ac_prev
=localstatedir
;;
932 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
933 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
934 localstatedir
=$ac_optarg ;;
936 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
938 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
942 # Obsolete; use --without-fp.
945 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
946 |
--no-cr |
--no-c |
-n)
949 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
950 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
953 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
954 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
955 |
--oldin |
--oldi |
--old |
--ol |
--o)
956 ac_prev
=oldincludedir
;;
957 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
958 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
959 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
960 oldincludedir
=$ac_optarg ;;
962 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
964 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
967 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
968 |
--program-pre |
--program-pr |
--program-p)
969 ac_prev
=program_prefix
;;
970 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
971 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
972 program_prefix
=$ac_optarg ;;
974 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
975 |
--program-suf |
--program-su |
--program-s)
976 ac_prev
=program_suffix
;;
977 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
978 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
979 program_suffix
=$ac_optarg ;;
981 -program-transform-name |
--program-transform-name \
982 |
--program-transform-nam |
--program-transform-na \
983 |
--program-transform-n |
--program-transform- \
984 |
--program-transform |
--program-transfor \
985 |
--program-transfo |
--program-transf \
986 |
--program-trans |
--program-tran \
987 |
--progr-tra |
--program-tr |
--program-t)
988 ac_prev
=program_transform_name
;;
989 -program-transform-name=* |
--program-transform-name=* \
990 |
--program-transform-nam=* |
--program-transform-na=* \
991 |
--program-transform-n=* |
--program-transform-=* \
992 |
--program-transform=* |
--program-transfor=* \
993 |
--program-transfo=* |
--program-transf=* \
994 |
--program-trans=* |
--program-tran=* \
995 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
996 program_transform_name
=$ac_optarg ;;
998 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1000 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1001 pdfdir
=$ac_optarg ;;
1003 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1005 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1008 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1009 |
-silent |
--silent |
--silen |
--sile |
--sil)
1012 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1014 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1016 sbindir
=$ac_optarg ;;
1018 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1019 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1020 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1022 ac_prev
=sharedstatedir
;;
1023 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1024 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1025 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1027 sharedstatedir
=$ac_optarg ;;
1029 -site |
--site |
--sit)
1031 -site=* |
--site=* |
--sit=*)
1034 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1036 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1037 srcdir
=$ac_optarg ;;
1039 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1040 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1041 ac_prev
=sysconfdir
;;
1042 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1043 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1044 sysconfdir
=$ac_optarg ;;
1046 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1047 ac_prev
=target_alias
;;
1048 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1049 target_alias
=$ac_optarg ;;
1051 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1054 -version |
--version |
--versio |
--versi |
--vers |
-V)
1055 ac_init_version
=: ;;
1058 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1059 # Reject names that are not valid shell variable names.
1060 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1061 { echo "$as_me: error: invalid package name: $ac_package" >&2
1062 { (exit 1); exit 1; }; }
1063 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1064 eval with_
$ac_package=\
$ac_optarg ;;
1066 -without-* |
--without-*)
1067 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1068 # Reject names that are not valid shell variable names.
1069 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1070 { echo "$as_me: error: invalid package name: $ac_package" >&2
1071 { (exit 1); exit 1; }; }
1072 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1073 eval with_
$ac_package=no
;;
1076 # Obsolete; use --with-x.
1079 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1080 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1081 ac_prev
=x_includes
;;
1082 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1083 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1084 x_includes
=$ac_optarg ;;
1086 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1087 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1088 ac_prev
=x_libraries
;;
1089 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1090 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1091 x_libraries
=$ac_optarg ;;
1093 -*) { echo "$as_me: error: unrecognized option: $ac_option
1094 Try \`$0 --help' for more information." >&2
1095 { (exit 1); exit 1; }; }
1099 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1100 # Reject names that are not valid shell variable names.
1101 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1102 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1103 { (exit 1); exit 1; }; }
1104 eval $ac_envvar=\
$ac_optarg
1105 export $ac_envvar ;;
1108 # FIXME: should be removed in autoconf 3.0.
1109 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1110 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1111 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1112 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1118 if test -n "$ac_prev"; then
1119 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1120 { echo "$as_me: error: missing argument to $ac_option" >&2
1121 { (exit 1); exit 1; }; }
1124 # Be sure to have absolute directory names.
1125 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1126 datadir sysconfdir sharedstatedir localstatedir includedir \
1127 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1128 libdir localedir mandir
1130 eval ac_val
=\$
$ac_var
1132 [\\/$
]* | ?
:[\\/]* ) continue;;
1133 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1135 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1136 { (exit 1); exit 1; }; }
1139 # There might be people who depend on the old broken behavior: `$host'
1140 # used to hold the argument of --host etc.
1141 # FIXME: To remove some day.
1144 target
=$target_alias
1146 # FIXME: To remove some day.
1147 if test "x$host_alias" != x
; then
1148 if test "x$build_alias" = x
; then
1149 cross_compiling
=maybe
1150 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1151 If a cross compiler is detected then cross compile mode will be used." >&2
1152 elif test "x$build_alias" != "x$host_alias"; then
1158 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1160 test "$silent" = yes && exec 6>/dev
/null
1163 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1164 ac_ls_di
=`ls -di .` &&
1165 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1166 { echo "$as_me: error: Working directory cannot be determined" >&2
1167 { (exit 1); exit 1; }; }
1168 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1169 { echo "$as_me: error: pwd does not report name of working directory" >&2
1170 { (exit 1); exit 1; }; }
1173 # Find the source files, if location was not specified.
1174 if test -z "$srcdir"; then
1175 ac_srcdir_defaulted
=yes
1176 # Try the directory containing this script, then the parent directory.
1177 ac_confdir
=`$as_dirname -- "$0" ||
1178 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1179 X"$0" : 'X\(//\)[^/]' \| \
1180 X"$0" : 'X\(//\)$' \| \
1181 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1183 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1201 if test ! -r "$srcdir/$ac_unique_file"; then
1205 ac_srcdir_defaulted
=no
1207 if test ! -r "$srcdir/$ac_unique_file"; then
1208 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1209 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1210 { (exit 1); exit 1; }; }
1212 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1214 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1215 { (exit 1); exit 1; }; }
1217 # When building in place, set srcdir=.
1218 if test "$ac_abs_confdir" = "$ac_pwd"; then
1221 # Remove unnecessary trailing slashes from srcdir.
1222 # Double slashes in file names in object file debugging info
1223 # mess up M-x gdb in Emacs.
1225 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1227 for ac_var
in $ac_precious_vars; do
1228 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1229 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1230 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1231 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1235 # Report the --help message.
1237 if test "$ac_init_help" = "long"; then
1238 # Omit some internal or obsolete options to make the list less imposing.
1239 # This message is too long to be a string in the A/UX 3.1 sh.
1241 \`configure' configures this package to adapt to many kinds of systems.
1243 Usage: $0 [OPTION]... [VAR=VALUE]...
1245 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1246 VAR=VALUE. See below for descriptions of some of the useful variables.
1248 Defaults for the options are specified in brackets.
1251 -h, --help display this help and exit
1252 --help=short display options specific to this package
1253 --help=recursive display the short help of all the included packages
1254 -V, --version display version information and exit
1255 -q, --quiet, --silent do not print \`checking...' messages
1256 --cache-file=FILE cache test results in FILE [disabled]
1257 -C, --config-cache alias for \`--cache-file=config.cache'
1258 -n, --no-create do not create output files
1259 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1261 Installation directories:
1262 --prefix=PREFIX install architecture-independent files in PREFIX
1263 [$ac_default_prefix]
1264 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1267 By default, \`make install' will install all the files in
1268 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1269 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1270 for instance \`--prefix=\$HOME'.
1272 For better control, use the options below.
1274 Fine tuning of the installation directories:
1275 --bindir=DIR user executables [EPREFIX/bin]
1276 --sbindir=DIR system admin executables [EPREFIX/sbin]
1277 --libexecdir=DIR program executables [EPREFIX/libexec]
1278 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1279 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1280 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1281 --libdir=DIR object code libraries [EPREFIX/lib]
1282 --includedir=DIR C header files [PREFIX/include]
1283 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1284 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1285 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1286 --infodir=DIR info documentation [DATAROOTDIR/info]
1287 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1288 --mandir=DIR man documentation [DATAROOTDIR/man]
1289 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1290 --htmldir=DIR html documentation [DOCDIR]
1291 --dvidir=DIR dvi documentation [DOCDIR]
1292 --pdfdir=DIR pdf documentation [DOCDIR]
1293 --psdir=DIR ps documentation [DOCDIR]
1299 --program-prefix=PREFIX prepend PREFIX to installed program names
1300 --program-suffix=SUFFIX append SUFFIX to installed program names
1301 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1304 --x-includes=DIR X include files are
in DIR
1305 --x-libraries=DIR X library files are
in DIR
1308 --build=BUILD configure
for building on BUILD
[guessed
]
1309 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1313 if test -n "$ac_init_help"; then
1318 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1319 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1320 --enable-carbon-app[=DIR
] [DIR
=/Application
]
1321 specify
install directory
for Emacs.app on Mac OS X
1322 --enable-asserts compile code with asserts enabled
1323 --enable-maintainer-mode enable make rules and dependencies not useful
1324 (and sometimes confusing
) to the casual installer
1325 --enable-locallisppath=PATH
1326 directories Emacs should search
for lisp files
1327 specific to this site
1328 --disable-largefile omit support
for large files
1331 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1332 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1333 --without-gcc don
't use GCC to compile Emacs if GCC is found
1334 --without-pop don't support POP
mail retrieval with movemail
1335 --with-kerberos support Kerberos-authenticated POP
1336 --with-kerberos5 support Kerberos version
5 authenticated POP
1337 --with-hesiod support Hesiod to get the POP server
host
1338 --without-sound don
't compile with sound support
1339 --with-x-toolkit=KIT use an X toolkit
1340 (KIT = yes/lucid/athena/motif/gtk/no)
1341 --with-xpm use -lXpm for displaying XPM images
1342 --with-jpeg use -ljpeg for displaying JPEG images
1343 --with-tiff use -ltiff for displaying TIFF images
1344 --with-gif use -lgif (or -lungif) for displaying GIF images
1345 --with-png use -lpng for displaying PNG images
1346 --with-gpm use -lgpm for mouse support on a GNU/Linux console
1347 --with-rsvg use -lrsvg-2 for displaying SVG images
1348 --with-gtk use GTK (same as --with-x-toolkit=gtk)
1349 --with-pkg-config-prog Path to pkg-config to use for finding GTK and librsvg
1350 --without-toolkit-scroll-bars
1351 don't use Motif or Xaw3d scroll bars
1352 --without-xaw3d don
't use Xaw3d
1353 --without-xim don't use X11 XIM
1354 --without-carbon don
't use Carbon GUI on Mac OS X
1355 --with-x use the X Window System
1357 Some influential environment variables:
1358 CC C compiler command
1359 CFLAGS C compiler flags
1360 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1361 nonstandard directory <lib dir>
1362 LIBS libraries to pass to the linker, e.g. -l<library>
1363 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1364 you have headers in a nonstandard directory <include dir>
1366 XMKMF Path to xmkmf, Makefile generator for X Window System
1368 Use these variables to override the choices made by `configure' or to
help
1369 it to
find libraries and programs with nonstandard names
/locations.
1375 if test "$ac_init_help" = "recursive"; then
1376 # If there are subdirs, report their specific --help.
1377 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1378 test -d "$ac_dir" ||
continue
1382 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1384 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1385 # A ".." for each directory in $ac_dir_suffix.
1386 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1387 case $ac_top_builddir_sub in
1388 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1389 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1392 ac_abs_top_builddir
=$ac_pwd
1393 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1394 # for backward compatibility:
1395 ac_top_builddir
=$ac_top_build_prefix
1398 .
) # We are building in place.
1400 ac_top_srcdir
=$ac_top_builddir_sub
1401 ac_abs_top_srcdir
=$ac_pwd ;;
1402 [\\/]* | ?
:[\\/]* ) # Absolute name.
1403 ac_srcdir
=$srcdir$ac_dir_suffix;
1404 ac_top_srcdir
=$srcdir
1405 ac_abs_top_srcdir
=$srcdir ;;
1407 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1408 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1409 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1411 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1413 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1414 # Check for guested configure.
1415 if test -f "$ac_srcdir/configure.gnu"; then
1417 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1418 elif test -f "$ac_srcdir/configure"; then
1420 $SHELL "$ac_srcdir/configure" --help=recursive
1422 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1424 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1428 test -n "$ac_init_help" && exit $ac_status
1429 if $ac_init_version; then
1432 generated by GNU Autoconf
2.61
1434 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1435 2002, 2003, 2004, 2005, 2006 Free Software Foundation
, Inc.
1436 This configure
script is free software
; the Free Software Foundation
1437 gives unlimited permission to copy
, distribute and modify it.
1441 cat >config.log
<<_ACEOF
1442 This file contains any messages produced by compilers while
1443 running configure, to aid debugging if configure makes a mistake.
1445 It was created by $as_me, which was
1446 generated by GNU Autoconf 2.61. Invocation command line was
1458 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1459 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1460 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1461 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1462 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1464 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1465 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1467 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1468 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1469 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1470 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1471 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1472 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1473 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1477 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1481 test -z "$as_dir" && as_dir
=.
1482 echo "PATH: $as_dir"
1498 # Keep a trace of the command line.
1499 # Strip out --no-create and --no-recursion so they do not pile up.
1500 # Strip out --silent because we don't want to record it for future runs.
1501 # Also quote any args containing shell meta-characters.
1502 # Make two passes to allow for proper duplicate-argument suppression.
1506 ac_must_keep_next
=false
1512 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1513 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1514 |
-silent |
--silent |
--silen |
--sile |
--sil)
1517 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1520 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1522 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1523 if test $ac_must_keep_next = true
; then
1524 ac_must_keep_next
=false
# Got value, back to normal.
1527 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1528 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1529 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1530 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1531 case "$ac_configure_args0 " in
1532 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1535 -* ) ac_must_keep_next
=true
;;
1538 ac_configure_args
="$ac_configure_args '$ac_arg'"
1543 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1544 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1546 # When interrupted or exit'd, cleanup temporary files, and complete
1547 # config.log. We remove comments because anyway the quotes in there
1548 # would cause problems or look ugly.
1549 # WARNING: Use '\'' to represent an apostrophe within the trap.
1550 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1551 trap 'exit_status=$?
1552 # Save into config.log some information that might help in debugging.
1557 ## ---------------- ##
1558 ## Cache variables. ##
1559 ## ---------------- ##
1562 # The following way of writing the cache mishandles newlines in values,
1564 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1565 eval ac_val=\$$ac_var
1569 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1570 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1573 _ | IFS | as_nl) ;; #(
1574 *) $as_unset $ac_var ;;
1579 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1580 *${as_nl}ac_space=\ *)
1582 "s/'\''/'\''\\\\'\'''\''/g;
1583 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1586 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1594 ## ----------------- ##
1595 ## Output variables. ##
1596 ## ----------------- ##
1599 for ac_var in $ac_subst_vars
1601 eval ac_val=\$$ac_var
1603 *\'\''*) ac_val
=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1605 echo "$ac_var='\''$ac_val'\''"
1609 if test -n "$ac_subst_files"; then
1611 ## ------------------- ##
1612 ## File substitutions. ##
1613 ## ------------------- ##
1616 for ac_var
in $ac_subst_files
1618 eval ac_val
=\$
$ac_var
1620 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1622 echo "$ac_var='\''$ac_val'\''"
1627 if test -s confdefs.h; then
1637 test "$ac_signal" != 0 &&
1638 echo "$as_me: caught signal $ac_signal"
1639 echo "$as_me: exit $exit_status"
1641 rm -f core *.core core.conftest.* &&
1642 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1645 for ac_signal
in 1 2 13 15; do
1646 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1650 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1651 rm -f -r conftest
* confdefs.h
1653 # Predefined preprocessor variables.
1655 cat >>confdefs.h
<<_ACEOF
1656 #define PACKAGE_NAME "$PACKAGE_NAME"
1660 cat >>confdefs.h
<<_ACEOF
1661 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1665 cat >>confdefs.h
<<_ACEOF
1666 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1670 cat >>confdefs.h
<<_ACEOF
1671 #define PACKAGE_STRING "$PACKAGE_STRING"
1675 cat >>confdefs.h
<<_ACEOF
1676 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1680 # Let the site file select an alternate cache file if it wants to.
1681 # Prefer explicitly selected file to automatically selected ones.
1682 if test -n "$CONFIG_SITE"; then
1683 set x
"$CONFIG_SITE"
1684 elif test "x$prefix" != xNONE
; then
1685 set x
"$prefix/share/config.site" "$prefix/etc/config.site"
1687 set x
"$ac_default_prefix/share/config.site" \
1688 "$ac_default_prefix/etc/config.site"
1693 if test -r "$ac_site_file"; then
1694 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1695 echo "$as_me: loading site script $ac_site_file" >&6;}
1696 sed 's/^/| /' "$ac_site_file" >&5
1701 if test -r "$cache_file"; then
1702 # Some versions of bash will fail to source /dev/null (special
1703 # files actually), so we avoid doing that.
1704 if test -f "$cache_file"; then
1705 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1706 echo "$as_me: loading cache $cache_file" >&6;}
1708 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
1709 *) .
"./$cache_file";;
1713 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1714 echo "$as_me: creating cache $cache_file" >&6;}
1718 ac_header_list
="$ac_header_list sys/time.h"
1719 ac_header_list
="$ac_header_list unistd.h"
1720 ac_func_list
="$ac_func_list alarm"
1721 # Check that the precious variables saved in the cache have kept the same
1723 ac_cache_corrupted
=false
1724 for ac_var
in $ac_precious_vars; do
1725 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1726 eval ac_new_set
=\
$ac_env_${ac_var}_set
1727 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
1728 eval ac_new_val
=\
$ac_env_${ac_var}_value
1729 case $ac_old_set,$ac_new_set in
1731 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1732 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1733 ac_cache_corrupted
=: ;;
1735 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1736 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1737 ac_cache_corrupted
=: ;;
1740 if test "x$ac_old_val" != "x$ac_new_val"; then
1741 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1742 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1743 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1744 echo "$as_me: former value: $ac_old_val" >&2;}
1745 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1746 echo "$as_me: current value: $ac_new_val" >&2;}
1747 ac_cache_corrupted
=:
1750 # Pass precious variables to config.status.
1751 if test "$ac_new_set" = set; then
1753 *\'*) ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1754 *) ac_arg
=$ac_var=$ac_new_val ;;
1756 case " $ac_configure_args " in
1757 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1758 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1762 if $ac_cache_corrupted; then
1763 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1764 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1765 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1766 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1767 { (exit 1); exit 1; }; }
1787 ac_cpp
='$CPP $CPPFLAGS'
1788 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1789 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1790 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1793 ac_config_headers
="$ac_config_headers src/config.h:src/config.in"
1796 test "$program_prefix" != NONE
&&
1797 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
1798 # Use a double $ so make ignores it.
1799 test "$program_suffix" != NONE
&&
1800 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
1801 # Double any \ or $. echo might interpret backslashes.
1802 # By default was `s,x,x', remove it if useless.
1803 cat <<\_ACEOF
>conftest.
sed
1804 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1806 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1810 lispdir
='${datadir}/emacs/${version}/lisp'
1811 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
1812 '${datadir}/emacs/site-lisp'
1813 lisppath
='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1814 etcdir
='${datadir}/emacs/${version}/etc'
1815 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
1816 docdir
='${datadir}/emacs/${version}/etc'
1817 gamedir
='${localstatedir}/games/emacs'
1822 # Check whether --with-gcc was given.
1823 if test "${with_gcc+set}" = set; then
1828 # Check whether --with-pop was given.
1829 if test "${with_pop+set}" = set; then
1830 withval
=$with_pop; if test "$withval" = yes; then
1831 cat >>confdefs.h
<<\_ACEOF
1832 #define MAIL_USE_POP 1
1838 cat >>confdefs.h
<<\_ACEOF
1839 #define MAIL_USE_POP 1
1846 # Check whether --with-kerberos was given.
1847 if test "${with_kerberos+set}" = set; then
1848 withval
=$with_kerberos; if test "$withval" = yes; then
1849 cat >>confdefs.h
<<\_ACEOF
1858 # Check whether --with-kerberos5 was given.
1859 if test "${with_kerberos5+set}" = set; then
1860 withval
=$with_kerberos5; if test "${with_kerberos5+set}" = set; then
1861 if test "${with_kerberos+set}" != set; then
1863 cat >>confdefs.h
<<\_ACEOF
1869 cat >>confdefs.h
<<\_ACEOF
1877 # Check whether --with-hesiod was given.
1878 if test "${with_hesiod+set}" = set; then
1879 withval
=$with_hesiod; if test "$withval" = yes; then
1881 cat >>confdefs.h
<<\_ACEOF
1890 # Check whether --with-sound was given.
1891 if test "${with_sound+set}" = set; then
1892 withval
=$with_sound;
1897 # Check whether --with-x-toolkit was given.
1898 if test "${with_x_toolkit+set}" = set; then
1899 withval
=$with_x_toolkit; case "${withval}" in
1900 y | ye |
yes ) val
=gtk
;;
1902 l | lu | luc | luci | lucid
) val
=lucid
;;
1903 a |
at | ath | athe | athen | athena
) val
=athena
;;
1904 m | mo | mot | moti | motif
) val
=motif
;;
1905 g | gt | gtk
) val
=gtk
;;
1907 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
1908 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1909 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
1910 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
1911 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1912 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
1913 { (exit 1); exit 1; }; }
1921 # Check whether --with-xpm was given.
1922 if test "${with_xpm+set}" = set; then
1927 # Check whether --with-jpeg was given.
1928 if test "${with_jpeg+set}" = set; then
1933 # Check whether --with-tiff was given.
1934 if test "${with_tiff+set}" = set; then
1939 # Check whether --with-gif was given.
1940 if test "${with_gif+set}" = set; then
1945 # Check whether --with-png was given.
1946 if test "${with_png+set}" = set; then
1951 # Check whether --with-gpm was given.
1952 if test "${with_gpm+set}" = set; then
1957 # Check whether --with-rsvg was given.
1958 if test "${with_rsvg+set}" = set; then
1963 # Check whether --with-gtk was given.
1964 if test "${with_gtk+set}" = set; then
1969 # Check whether --with-pkg-config-prog was given.
1970 if test "${with_pkg_config_prog+set}" = set; then
1971 withval
=$with_pkg_config_prog;
1975 # Check whether --with-toolkit-scroll-bars was given.
1976 if test "${with_toolkit_scroll_bars+set}" = set; then
1977 withval
=$with_toolkit_scroll_bars;
1981 # Check whether --with-xpm was given.
1982 if test "${with_xpm+set}" = set; then
1987 # Check whether --with-xim was given.
1988 if test "${with_xim+set}" = set; then
1993 # Check whether --with-carbon was given.
1994 if test "${with_carbon+set}" = set; then
1995 withval
=$with_carbon;
1998 # Check whether --enable-carbon-app was given.
1999 if test "${enable_carbon_app+set}" = set; then
2000 enableval
=$enable_carbon_app; carbon_appdir_x
=${enableval}
2004 # Check whether --enable-asserts was given.
2005 if test "${enable_asserts+set}" = set; then
2006 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
2012 # Check whether --enable-maintainer-mode was given.
2013 if test "${enable_maintainer_mode+set}" = set; then
2014 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2016 USE_MAINTAINER_MODE
=no
2019 if test $USE_MAINTAINER_MODE = yes; then
2026 # Check whether --enable-locallisppath was given.
2027 if test "${enable_locallisppath+set}" = set; then
2028 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
2030 elif test "${enableval}" != "yes"; then
2031 locallisppath
=${enableval}
2036 #### Make srcdir absolute, if it isn't already. It's important to
2037 #### avoid running the path through pwd unnecessarily, since pwd can
2038 #### give you automounter prefixes, which can go away. We do all this
2039 #### so Emacs can find its files when run uninstalled.
2040 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2045 ## We may be able to use the $PWD environment variable to make this
2046 ## absolute. But sometimes PWD is inaccurate.
2047 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2048 ## but that tested only for a well-formed and valid PWD,
2049 ## it did not object when PWD was well-formed and valid but just wrong.
2050 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2054 srcdir
="`(cd ${srcdir}; pwd)`"
2057 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2060 #### Check if the source directory already has a configured system in it.
2061 if test `pwd` != `(cd ${srcdir} && pwd)` \
2062 && test -f "${srcdir}/src/config.h" ; then
2063 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2064 as a build directory right now; it has been configured in its own
2065 right. To configure in another directory as well, you MUST
2066 use GNU make. If you do not have GNU make, then you must
2067 now do \`make distclean' in ${srcdir},
2068 and then run $0 again." >&5
2069 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2070 as a build directory right now; it has been configured in its own
2071 right. To configure in another directory as well, you MUST
2072 use GNU make. If you do not have GNU make, then you must
2073 now do \`make distclean' in ${srcdir},
2074 and then run $0 again." >&2;}
2077 #### Given the configuration name, set machfile and opsysfile to the
2078 #### names of the m/*.h and s/*.h files we should use.
2080 ### Canonicalize the configuration name.
2083 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2084 if test -f "$ac_dir/install-sh"; then
2086 ac_install_sh
="$ac_aux_dir/install-sh -c"
2088 elif test -f "$ac_dir/install.sh"; then
2090 ac_install_sh
="$ac_aux_dir/install.sh -c"
2092 elif test -f "$ac_dir/shtool"; then
2094 ac_install_sh
="$ac_aux_dir/shtool install -c"
2098 if test -z "$ac_aux_dir"; then
2099 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2100 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2101 { (exit 1); exit 1; }; }
2104 # These three variables are undocumented and unsupported,
2105 # and are intended to be withdrawn in a future Autoconf release.
2106 # They can cause serious problems if a builder's source tree is in a directory
2107 # whose full name contains unusual characters.
2108 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2109 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2110 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2113 # Make sure we can run config.sub.
2114 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2115 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2116 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2117 { (exit 1); exit 1; }; }
2119 { echo "$as_me:$LINENO: checking build system type" >&5
2120 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2121 if test "${ac_cv_build+set}" = set; then
2122 echo $ECHO_N "(cached) $ECHO_C" >&6
2124 ac_build_alias
=$build_alias
2125 test "x$ac_build_alias" = x
&&
2126 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2127 test "x$ac_build_alias" = x
&&
2128 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2129 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2130 { (exit 1); exit 1; }; }
2131 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2132 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2133 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2134 { (exit 1); exit 1; }; }
2137 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2138 echo "${ECHO_T}$ac_cv_build" >&6; }
2139 case $ac_cv_build in
2141 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2142 echo "$as_me: error: invalid value of canonical build" >&2;}
2143 { (exit 1); exit 1; }; };;
2146 ac_save_IFS
=$IFS; IFS
='-'
2152 # Remember, the first character of IFS is used to create $*,
2153 # except with old shells:
2156 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2159 { echo "$as_me:$LINENO: checking host system type" >&5
2160 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2161 if test "${ac_cv_host+set}" = set; then
2162 echo $ECHO_N "(cached) $ECHO_C" >&6
2164 if test "x$host_alias" = x
; then
2165 ac_cv_host
=$ac_cv_build
2167 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2168 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2169 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2170 { (exit 1); exit 1; }; }
2174 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2175 echo "${ECHO_T}$ac_cv_host" >&6; }
2178 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2179 echo "$as_me: error: invalid value of canonical host" >&2;}
2180 { (exit 1); exit 1; }; };;
2183 ac_save_IFS
=$IFS; IFS
='-'
2189 # Remember, the first character of IFS is used to create $*,
2190 # except with old shells:
2193 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2197 configuration
=${host_alias-${build_alias-$host}}
2201 ### If you add support for a new configuration, add code to this
2202 ### switch statement to recognize your configuration name and select
2203 ### the appropriate operating system and machine description files.
2205 ### You would hope that you could choose an m/*.h file pretty much
2206 ### based on the machine portion of the configuration name, and an s-
2207 ### file based on the operating system portion. However, it turns out
2208 ### that each m/*.h file is pretty manufacturer-specific - for
2209 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
2210 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
2211 ### machines. So we basically have to have a special case for each
2212 ### configuration name.
2214 ### As far as handling version numbers on operating systems is
2215 ### concerned, make sure things will fail in a fixable way. If
2216 ### /etc/MACHINES doesn't say anything about version numbers, be
2217 ### prepared to handle anything reasonably. If version numbers
2218 ### matter, be sure /etc/MACHINES says something about it.
2220 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2221 ### "System V Release 4"; he writes, "The old convention encouraged
2222 ### confusion between `system' and `release' levels'."
2224 machine
='' opsys
='' unported
=no
2225 case "${canonical}" in
2230 case "${canonical}" in
2231 alpha
*-*-freebsd*) machine
=alpha
;;
2232 ia64-
*-freebsd*) machine
=ia64
;;
2233 sparc64-
*-freebsd*) machine
=sparc
;;
2234 powerpc-
*-freebsd*) machine
=macppc
;;
2235 i
[3456]86-*-freebsd*) machine
=intel386
;;
2236 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2243 if test -f /usr
/lib
/crti.o
; then
2245 cat >>confdefs.h
<<\_ACEOF
2251 case "${canonical}" in
2252 alpha
*-*-netbsd*) machine
=alpha
;;
2253 i
[3456]86-*-netbsd*) machine
=intel386
;;
2255 # This is somewhat bogus.
2256 machine
=hp9000s300
;;
2257 mips-
*-netbsd*) machine
=pmax
;;
2258 mipsel-
*-netbsd*) machine
=pmax
;;
2259 mipseb-
*-netbsd*) machine
=pmax
;;
2260 ns32k-
*-netbsd*) machine
=ns32000
;;
2261 powerpc-
*-netbsd*) machine
=macppc
;;
2262 sparc
*-*-netbsd*) machine
=sparc
;;
2263 vax-
*-netbsd*) machine
=vax
;;
2264 arm-
*-netbsd*) machine
=arm
;;
2265 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2266 hppa-
*-netbsd*) machine
=hp800
;;
2267 shle-
*-netbsd*) machine
=sh3el
;;
2274 case "${canonical}" in
2275 alpha
*-*-openbsd*) machine
=alpha
;;
2276 arm-
*-openbsd*) machine
=arm
;;
2277 hppa-
*-openbsd*) machine
=hp9000s300
;;
2278 i386-
*-openbsd*) machine
=intel386
;;
2279 m68k-
*-openbsd*) machine
=hp9000s300
;;
2280 m88k-
*-openbsd*) machine
=aviion
;;
2281 mips64-
*-openbsd*) machine
=mips64
;;
2282 powerpc-
*-openbsd*) machine
=macppc
;;
2283 sh-
*-openbsd*) machine
=sh3el
;;
2284 sparc
*-*-openbsd*) machine
=sparc
;;
2285 vax-
*-openbsd*) machine
=vax
;;
2286 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2293 case "${canonical}" in
2294 i
[3456]86-*-lynxos*) machine
=intel386
;;
2295 powerpc-
*-lynxos*) machine
=powerpc
;;
2300 arm-acorn-riscix1.1
* )
2301 machine
=acorn opsys
=riscix1-1
2303 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
2304 ## This name is riscix12 instead of riscix1.2
2305 ## to avoid a file name conflict on MSDOS.
2306 machine
=acorn opsys
=riscix12
2312 case "${canonical}" in
2313 i
[345]86-*-bsdi*) machine
=intel386
;;
2314 sparc-
*-bsdi*) machine
=sparc
;;
2315 powerpc-
*-bsdi*) machine
=macppc
;;
2317 case "${canonical}" in
2318 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
2319 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
2320 *-*-bsdi2* ) opsys
=bsdos2-1
;;
2321 *-*-bsdi3* ) opsys
=bsdos3
;;
2322 *-*-bsdi[45]* ) opsys
=bsdos4
;;
2327 ## Strictly speaking, we need the version of the alliant operating
2328 ## system to choose the right machine file, but currently the
2329 ## configuration name doesn't tell us enough to choose the right
2330 ## one; we need to give alliants their own operating system name to
2331 ## do this right. When someone cares, they can help us.
2333 machine
=alliant4 opsys
=bsd4-2
2336 machine
=alliant-2800 opsys
=bsd4-3
2339 ## Alpha (DEC) machines.
2341 machine
=alpha opsys
=osf1
2342 # This is needed to find X11R6.1 libraries for certain tests.
2343 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2344 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2345 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2346 # due to non-traditional preprocessing with the current compiler
2347 # defaults. OSF 4 can also have that compiler version, and there
2348 # seems always to have been a usable /usr/bin/cpp.
2349 NON_GNU_CPP
=/usr
/bin
/cpp
2350 case "${canonical}" in
2351 alpha
*-dec-osf[5-9]*)
2356 alpha
*-*-linux-gnu* )
2357 machine
=alpha opsys
=gnu-linux
2361 machine
=arm opsys
=gnu-linux
2366 machine
=altos opsys
=usg5-2
2371 machine
=amdahl opsys
=usg5-2-2
2374 ## Apollo, Domain/OS
2376 machine
=apollo opsys
=bsd4-3
2379 ## Apple Darwin / Mac OS X
2381 case "${canonical}" in
2382 i
[3456]86-* ) machine
=intel386
;;
2383 powerpc-
* ) machine
=powermac
;;
2387 # Define CPP as follows to make autoconf work correctly.
2388 CPP
="${CC-cc} -E -no-cpp-precomp"
2389 # Use fink packages if available.
2390 if test -d /sw
/include
&& test -d /sw
/lib
; then
2391 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2392 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2393 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2397 ## AT&T 3b2, 3b5, 3b15, 3b20
2399 machine
=att3b opsys
=usg5-2-2
2402 ## AT&T 3b1 - The Mighty Unix PC!
2404 machine
=7300 opsys
=usg5-2-2
2409 machine
=ibmrs6000 opsys
=aix3-2
2414 machine
=dpx2 opsys
=usg5-3
2419 machine
=sps7 opsys
=usg5-2
2422 ## CCI 5/32, 6/32 -- see "Tahoe".
2425 ## I don't know what configuration name to use for this; config.sub
2426 ## doesn't seem to know anything about it. Hey, Celerity users, get
2427 ## in touch with us!
2428 celerity-celerity-bsd
* )
2429 machine
=celerity opsys
=bsd4-2
2433 ## What operating systems does this chip run that Emacs has been
2437 ## We'll use the catch-all code at the bottom to guess the
2438 ## operating system.
2442 mips-compaq-nonstopux
* )
2443 machine
=nonstopux opsys
=nonstopux
2447 *-convex-bsd* |
*-convex-convexos* )
2448 machine
=convex opsys
=bsd4-3
2449 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2450 NON_GNU_CPP
="cc -E -P"
2454 i
[3456]86-cubix-sysv* )
2455 machine
=intel386 opsys
=usg5-3
2459 cydra
*-cydrome-sysv* )
2460 machine
=cydra5 opsys
=usg5-3
2463 ## Data General AViiON Machines
2464 ## DG changed naming conventions with the release of 5.4.4.10, they
2465 ## dropped the initial 5.4 but left the intervening R. Because of the
2466 ## R this shouldn't conflict with older versions of the OS (which I
2467 ## think were named like dgux4.*). In addition, DG new AViiONs series
2468 ## uses either Motorola M88k or Intel Pentium CPUs.
2469 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
2470 machine
=aviion opsys
=dgux4
2472 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
2473 ## This name is dgux5-4-3 instead of dgux5-4r3
2474 ## to avoid a file name conflict on MSDOS.
2475 machine
=aviion opsys
=dgux5-4-3
2477 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
2478 machine
=aviion opsys
=dgux5-4r2
2481 machine
=aviion opsys
=dgux
2484 ## Data General AViiON Intel (x86) Machines
2485 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2486 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2487 i
[345]86-dg-dguxR4* )
2488 machine
=aviion-intel opsys
=dgux4
2492 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
2493 machine
=pmax opsys
=bsd4-2
2495 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
2496 machine
=pmax opsys
=bsd4-3
2499 machine
=pmax opsys
=ultrix4-3
2502 machine
=pmax opsys
=osf1
2504 mips-dec-mach_bsd4.3
* )
2505 machine
=pmax opsys
=mach-bsd4-3
2508 ## Motorola Delta machines
2509 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
2510 machine
=delta opsys
=usg5-3
2511 if test -z "`type gnucc | grep 'not found'`"
2513 if test -s /etc
/167config
2514 then CC
="gnucc -m68040"
2515 else CC
="gnucc -m68881"
2518 if test -z "`type gcc | grep 'not found'`"
2524 m88k-motorola-sysv4
* )
2525 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2526 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2527 # I hope there are not other 4.0 versions for this machine
2528 # which really need usg5-4 instead.
2529 machine
=delta88k opsys
=usg5-4-2
2531 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
2532 machine
=delta88k opsys
=usg5-3
2537 machine
=dual opsys
=usg5-2
2539 m68
*-dual-uniplus* )
2540 machine
=dual opsys
=unipl5-2
2545 machine
=elxsi opsys
=usg5-2
2550 machine
=ns16000 opsys
=umax
2553 ## The GEC 63 - apparently, this port isn't really finished yet.
2554 # I'm sure we finished off the last of the machines, though. -- fx
2556 ## Gould Power Node and NP1
2558 machine
=gould opsys
=bsd4-2
2561 machine
=gould opsys
=bsd4-3
2564 machine
=gould-np1 opsys
=bsd4-3
2567 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2568 ## as far as Emacs is concerned).
2570 # Build needs to be different on 7.0 and later releases
2571 case "`uname -r`" in
2572 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
2573 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
2575 NON_GNU_CPP
="/lib/cpp"
2577 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2579 machine
=nh3000 opsys
=cxux
2581 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2582 powerpc-harris-powerunix
)
2583 machine
=nh6000 opsys
=powerunix
2584 NON_GNU_CPP
="cc -Xo -E -P"
2586 ## SR2001/SR2201 running HI-UX/MPP
2587 hppa1.1
-hitachi-hiuxmpp* )
2588 machine
=sr2k opsys
=hiuxmpp
2590 hppa1.1
-hitachi-hiuxwe2* )
2591 machine
=sr2k opsys
=hiuxwe2
2594 xps
*-honeywell-sysv* )
2595 machine
=xps100 opsys
=usg5-2
2598 ## HP 9000 series 200 or 300
2600 machine
=hp9000s300 opsys
=bsd4-3
2602 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2604 case "`uname -r`" in
2605 ## Someone's system reports A.B8.05 for this.
2606 ## I wonder what other possibilities there are.
2607 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2608 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2609 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2610 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2611 *) machine
=hp9000s300 opsys
=hpux
;;
2615 ## HP 9000 series 700 and 800, running HP/UX
2617 machine
=hp800 opsys
=hpux
2620 machine
=hp800 opsys
=hpux8
2622 hppa
*-hp-hpux9shr* )
2623 machine
=hp800 opsys
=hpux9shr
2626 machine
=hp800 opsys
=hpux9
2628 hppa
*-hp-hpux10.2
* )
2629 machine
=hp800 opsys
=hpux10-20
2632 machine
=hp800 opsys
=hpux10
2634 hppa
*-hp-hpux1[1-9]* )
2635 machine
=hp800 opsys
=hpux11
2636 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2639 hppa
*-*-linux-gnu* )
2640 machine
=hp800 opsys
=gnu-linux
2643 ## HP 9000 series 700 and 800, running HP/UX
2645 ## Cross-compilation? Nah!
2646 case "`uname -r`" in
2647 ## Someone's system reports A.B8.05 for this.
2648 ## I wonder what other possibilities there are.
2649 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2650 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2651 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2652 *) machine
=hp800 opsys
=hpux10
;;
2656 machine
=hp800 opsys
=nextstep
2661 machine
=orion opsys
=bsd4-2
2663 clipper-orion-bsd
* )
2664 machine
=orion105 opsys
=bsd4-2
2668 i
[3456]86-ibm-aix1.1
* )
2669 machine
=ibmps2-aix opsys
=usg5-2-2
2671 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2672 machine
=ibmps2-aix opsys
=usg5-3
2675 machine
=ibm370aix opsys
=usg5-3
2678 machine
=ibms390 opsys
=gnu-linux
2680 s390x-
*-linux-gnu* )
2681 machine
=ibms390x opsys
=gnu-linux
2683 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2684 machine
=ibmrs6000 opsys
=aix3-1
2686 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2687 machine
=ibmrs6000 opsys
=aix3-2-5
2689 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2690 machine
=ibmrs6000 opsys
=aix4-1
2692 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2693 machine
=ibmrs6000 opsys
=aix4-2
2695 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
2696 machine
=ibmrs6000 opsys
=aix4-2
2698 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2699 machine
=ibmrs6000 opsys
=aix4-2
2701 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2702 machine
=ibmrs6000 opsys
=aix4
2704 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2705 machine
=ibmrs6000 opsys
=aix4-1
2707 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2708 machine
=ibmrs6000 opsys
=aix3-2
2711 machine
=ibmrt opsys
=bsd4-3
2714 machine
=ibmrt opsys
=bsd4-2
2717 machine
=ibmrt opsys
=bsd4-3
2720 machine
=ibmrt opsys
=bsd4-2
2723 machine
=ibmrt opsys
=bsd4-3
2726 machine
=ibmrt opsys
=bsd4-3
2729 machine
=ibmrt-aix opsys
=usg5-2-2
2732 ## Integrated Solutions `Optimum V'
2734 machine
=isi-ov opsys
=bsd4-2
2737 machine
=isi-ov opsys
=bsd4-3
2740 ## Intel 386 machines where we do care about the manufacturer
2741 i
[3456]86-intsys-sysv* )
2742 machine
=is386 opsys
=usg5-2-2
2746 i
[3456]86-prime-sysv* )
2747 machine
=i386 opsys
=usg5-3
2750 ## Sequent Symmetry running Dynix
2751 i
[3456]86-sequent-bsd* )
2752 machine
=symmetry opsys
=bsd4-3
2755 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2756 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2757 machine
=sequent-ptx opsys
=ptx4
2758 NON_GNU_CPP
=/lib
/cpp
2761 ## Sequent Symmetry running DYNIX/ptx
2762 ## Use the old cpp rather than the newer ANSI one.
2763 i
[3456]86-sequent-ptx* )
2764 machine
=sequent-ptx opsys
=ptx
2765 NON_GNU_CPP
="/lib/cpp"
2768 ## ncr machine running svr4.3.
2769 i
[3456]86-ncr-sysv4.3
)
2770 machine
=ncr386 opsys
=usg5-4-3
2773 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2774 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2775 i
[3456]86-ncr-sysv* )
2776 machine
=ncr386 opsys
=usg5-4-2
2779 ## Intel Paragon OSF/1
2781 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2786 machine
=i860 opsys
=usg5-4
2787 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2788 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2791 ## Macintosh PowerPC
2792 powerpc
*-*-linux-gnu* )
2793 machine
=macppc opsys
=gnu-linux
2796 ## Masscomp machines
2797 m68
*-masscomp-rtu* )
2798 machine
=masscomp opsys
=rtu
2801 ## Megatest machines
2802 m68
*-megatest-bsd* )
2803 machine
=mega68 opsys
=bsd4-2
2806 ## Workstations sold by MIPS
2807 ## This is not necessarily all workstations using the MIPS processor -
2808 ## Irises are produced by SGI, and DECstations by DEC.
2810 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2811 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2812 ## it gives for choosing between the alternatives seems to be "Use
2813 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2814 ## the BSD world." I'll assume that these are instructions for
2815 ## handling two odd situations, and that every other situation
2816 ## should use mips.h and usg5-2-2, they being listed first.
2819 ## Fall through to the general code at the bottom to decide on the OS.
2821 mips-mips-riscos4
* )
2822 machine
=mips4 opsys
=bsd4-3
2823 NON_GNU_CC
="cc -systype bsd43"
2824 NON_GNU_CPP
="cc -systype bsd43 -E"
2826 mips-mips-riscos5
* )
2827 machine
=mips4 opsys
=riscos5
2828 NON_GNU_CC
="cc -systype bsd43"
2829 NON_GNU_CPP
="cc -systype bsd43 -E"
2832 machine
=mips opsys
=bsd4-3
2835 machine
=mips opsys
=usg5-2-2
2839 m68
*-next-* | m68k-
*-nextstep* )
2840 machine
=m68k opsys
=nextstep
2843 ## The complete machine from National Semiconductor
2845 machine
=ns32000 opsys
=usg5-2
2849 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2850 machine
=tower32 opsys
=usg5-2-2
2852 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2853 machine
=tower32v3 opsys
=usg5-3
2858 machine
=ews4800 opsys
=ux4800
2861 ## Nixdorf Targon 31
2862 m68
*-nixdorf-sysv* )
2863 machine
=targon31 opsys
=usg5-2-2
2868 machine
=nu opsys
=usg5-2
2873 machine
=plexus opsys
=usg5-2
2877 ## I don't really have any idea what sort of processor the Pyramid has,
2878 ## so I'm assuming it is its own architecture.
2879 pyramid-pyramid-bsd
* )
2880 machine
=pyramid opsys
=bsd4-2
2884 ns32k-sequent-bsd4.2
* )
2885 machine
=sequent opsys
=bsd4-2
2887 ns32k-sequent-bsd4.3
* )
2888 machine
=sequent opsys
=bsd4-3
2892 mips-siemens-sysv
* | mips-sni-sysv
*)
2893 machine
=mips-siemens opsys
=usg5-4
2894 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2895 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2898 ## Silicon Graphics machines
2899 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2901 machine
=irist opsys
=iris3-5
2903 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2904 machine
=irist opsys
=iris3-6
2908 machine
=iris4d opsys
=irix3-3
2911 machine
=iris4d opsys
=irix4-0
2914 machine
=iris4d opsys
=irix6-5
2915 # Without defining _LANGUAGE_C, things get masked out in the headers
2916 # so that, for instance, grepping for `free' in stdlib.h fails and
2917 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2918 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2919 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2922 machine
=iris4d opsys
=irix6-0
2923 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2924 # but presumably it does no harm.
2925 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2926 # -32 probably isn't necessary in later v.6s -- anyone know which?
2927 NON_GCC_TEST_OPTIONS
=-32
2929 mips-sgi-irix5.
[01]* )
2930 machine
=iris4d opsys
=irix5-0
2932 mips-sgi-irix5
* | mips-sgi-irix
* )
2933 machine
=iris4d opsys
=irix5-2
2938 machine
=news opsys
=bsd4-2
2941 machine
=news opsys
=bsd4-3
2943 m68
*-sony-newsos3* | m68
*-sony-news3*)
2944 machine
=news opsys
=bsd4-3
2946 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2947 machine
=news-risc opsys
=bsd4-3
2949 mips-sony-newsos6
* )
2950 machine
=news-r6 opsys
=newsos6
2953 machine
=news-risc opsys
=newsos5
2958 machine
=stride opsys
=usg5-2
2962 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2963 machine
=sparc opsys
=gnu-linux
2966 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2967 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2968 | rs6000-
*-solaris2*)
2969 case "${canonical}" in
2970 m68
*-sunos1* ) machine
=sun1
;;
2971 m68
*-sunos2* ) machine
=sun2
;;
2972 m68
* ) machine
=sun3
;;
2973 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2974 i
[3456]86-*-* ) machine
=intel386
;;
2975 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2976 powerpcle
* ) machine
=powerpcle
;;
2977 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2978 sparc
* ) machine
=sparc
;;
2981 case "${canonical}" in
2982 ## The Sun386 didn't get past 4.0.
2983 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2984 *-sunos4.0
* ) opsys
=sunos4-0
;;
2985 *-sunos4.1.
[3-9]*noshare
)
2986 ## This name is sunos413 instead of sunos4-1-3
2987 ## to avoid a file name conflict on MSDOS.
2989 NON_GNU_CPP
=/usr
/lib
/cpp
2990 NON_GCC_TEST_OPTIONS
=-Bstatic
2991 GCC_TEST_OPTIONS
=-static
2993 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2995 NON_GNU_CPP
=/usr
/lib
/cpp
2997 *-sunos4* |
*-sunos )
2999 NON_GCC_TEST_OPTIONS
=-Bstatic
3000 GCC_TEST_OPTIONS
=-static
3002 *-sunos5.3
* |
*-solaris2.3
* )
3004 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3006 *-sunos5.4
* |
*-solaris2.4
* )
3008 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3011 *-sunos5.5
* |
*-solaris2.5
* )
3013 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3016 *-sunos5.6
* |
*-solaris2.6
* )
3018 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3021 *-sunos5* |
*-solaris* )
3023 emacs_check_sunpro_c
=yes
3024 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3028 ## Watch out for a compiler that we know will not work.
3029 case "${canonical}" in
3030 *-solaris* |
*-sunos5* )
3031 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
3032 ## /usr/ucb/cc doesn't work;
3033 ## we should find some other compiler that does work.
3041 machine
=sparc opsys
=nextstep
3045 m68
*-tadpole-sysv* )
3046 machine
=tad68k opsys
=usg5-3
3050 tahoe-tahoe-bsd4.2
* )
3051 machine
=tahoe opsys
=bsd4-2
3053 tahoe-tahoe-bsd4.3
* )
3054 machine
=tahoe opsys
=bsd4-3
3057 ## Tandem Integrity S2
3059 machine
=tandem-s2 opsys
=usg5-3
3063 m88k-tektronix-sysv3
* )
3064 machine
=tekxd88 opsys
=usg5-3
3067 ## Tektronix 16000 box (6130?)
3068 ns16k-tektronix-bsd
* )
3069 machine
=ns16000 opsys
=bsd4-2
3072 ## src/m/tek4300.h hints that this is a m68k machine.
3073 m68
*-tektronix-bsd* )
3074 machine
=tek4300 opsys
=bsd4-3
3078 ## We seem to have lost the machine-description file titan.h!
3080 machine
=titan opsys
=usg5-3
3083 ## Ustation E30 (SS5E)
3084 m68
*-unisys-uniplus* )
3085 machine
=ustation opsystem
=unipl5-2
3091 case "${canonical}" in
3092 *-bsd4.1
* ) opsys
=bsd4-1
;;
3093 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
3094 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
3095 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
3096 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
3097 *-vms* ) opsys
=vms
;;
3103 ns16k-whitechapel-
* )
3105 ## We don't know what sort of OS runs on these; we'll let the
3106 ## operating system guessing code below try.
3111 machine
=wicat opsys
=usg5-2
3116 machine
=ia64 opsys
=gnu-linux
3119 ## Intel 386 machines where we don't care about the manufacturer
3122 case "${canonical}" in
3123 *-cygwin ) opsys
=cygwin
;;
3124 *-darwin* ) opsys
=darwin
3125 CPP
="${CC-cc} -E -no-cpp-precomp"
3127 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
3128 *-isc2.2
* ) opsys
=isc2-2
;;
3129 *-isc4.0
* ) opsys
=isc4-0
;;
3130 *-isc4.
* ) opsys
=isc4-1
3131 GCC_TEST_OPTIONS
=-posix
3132 NON_GCC_TEST_OPTIONS
=-Xp
3134 *-isc* ) opsys
=isc3-0
;;
3135 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
3136 *-esix* ) opsys
=esix
;;
3137 *-xenix* ) opsys
=xenix
;;
3138 *-linux-gnu* ) opsys
=gnu-linux
;;
3139 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
3140 *-sco3.2v5
* ) opsys
=sco5
3141 NON_GNU_CPP
=/lib
/cpp
3142 # Prevent -belf from being passed to $CPP.
3143 # /lib/cpp does not accept it.
3144 OVERRIDE_CPPFLAGS
=" "
3146 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3147 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3148 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3149 *-386bsd* ) opsys
=386bsd
;;
3150 *-nextstep* ) opsys
=nextstep
;;
3151 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3155 ## m68k Linux-based GNU system
3157 machine
=m68k opsys
=gnu-linux
3160 ## Mips Linux-based GNU system
3161 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
3162 machine
=mips opsys
=gnu-linux
3166 sparc-fujitsu-sysv4
* )
3167 machine
=sparc opsys
=uxpds
3168 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3173 f301-fujitsu-uxpv4.1
)
3174 machine
=f301 opsys
=uxpv
3177 ## AMD x86-64 Linux-based GNU system
3178 x86_64-
*-linux-gnu* )
3179 machine
=amdx86-64 opsys
=gnu-linux
3182 ## Tensilica Xtensa Linux-based GNU system
3183 xtensa-
*-linux-gnu* )
3184 machine
=xtensa opsys
=gnu-linux
3192 ### If the code above didn't choose an operating system, just choose
3193 ### an operating system based on the configuration name. You really
3194 ### only want to use this when you have no idea what the right
3195 ### operating system is; if you know what operating systems a machine
3196 ### runs, it's cleaner to make it explicit in the case statement
3198 if test x
"${opsys}" = x
; then
3199 case "${canonical}" in
3200 *-gnu* ) opsys
=gnu
;;
3201 *-bsd4.
[01] ) opsys
=bsd4-1
;;
3202 *-bsd4.2
) opsys
=bsd4-2
;;
3203 *-bsd4.3
) opsys
=bsd4-3
;;
3204 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
3205 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
3206 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
3207 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
3208 *-sysv4.2uw
* ) opsys
=unixware
;;
3209 *-sysv5uw* ) opsys
=unixware
;;
3210 *-sysv5OpenUNIX* ) opsys
=unixware
;;
3211 *-sysv4.1
* |
*-sysvr4.1
* )
3212 NON_GNU_CPP
=/usr
/lib
/cpp
3214 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
3215 if [ x
$NON_GNU_CPP = x
]; then
3216 if [ -f /usr
/ccs
/lib
/cpp
]; then
3217 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3219 NON_GNU_CPP
=/lib
/cpp
3223 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
3232 if test $unported = yes; then
3233 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3234 Check \`etc/MACHINES' for recognized configuration names." >&5
3235 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3236 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3237 { (exit 1); exit 1; }; }
3240 machfile
="m/${machine}.h"
3241 opsysfile
="s/${opsys}.h"
3244 #### Choose a compiler.
3245 test -n "$CC" && cc_specified
=yes
3247 # Save the value of CFLAGS that the user specified.
3248 SPECIFIED_CFLAGS
="$CFLAGS"
3251 "yes" ) CC
="gcc" GCC
=yes ;;
3252 "no" ) : ${CC=cc} ;;
3256 ac_cpp
='$CPP $CPPFLAGS'
3257 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3258 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3259 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3260 if test -n "$ac_tool_prefix"; then
3261 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3262 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3263 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3265 if test "${ac_cv_prog_CC+set}" = set; then
3266 echo $ECHO_N "(cached) $ECHO_C" >&6
3268 if test -n "$CC"; then
3269 ac_cv_prog_CC
="$CC" # Let the user override the test.
3271 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3275 test -z "$as_dir" && as_dir
=.
3276 for ac_exec_ext
in '' $ac_executable_extensions; do
3277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3278 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3289 if test -n "$CC"; then
3290 { echo "$as_me:$LINENO: result: $CC" >&5
3291 echo "${ECHO_T}$CC" >&6; }
3293 { echo "$as_me:$LINENO: result: no" >&5
3294 echo "${ECHO_T}no" >&6; }
3299 if test -z "$ac_cv_prog_CC"; then
3301 # Extract the first word of "gcc", so it can be a program name with args.
3302 set dummy gcc
; ac_word
=$2
3303 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3305 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3306 echo $ECHO_N "(cached) $ECHO_C" >&6
3308 if test -n "$ac_ct_CC"; then
3309 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3311 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3315 test -z "$as_dir" && as_dir
=.
3316 for ac_exec_ext
in '' $ac_executable_extensions; do
3317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3318 ac_cv_prog_ac_ct_CC
="gcc"
3319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3328 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3329 if test -n "$ac_ct_CC"; then
3330 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3331 echo "${ECHO_T}$ac_ct_CC" >&6; }
3333 { echo "$as_me:$LINENO: result: no" >&5
3334 echo "${ECHO_T}no" >&6; }
3337 if test "x$ac_ct_CC" = x
; then
3340 case $cross_compiling:$ac_tool_warned in
3342 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3343 whose name does not start with the host triplet. If you think this
3344 configuration is useful to you, please write to autoconf@gnu.org." >&5
3345 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3346 whose name does not start with the host triplet. If you think this
3347 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3348 ac_tool_warned
=yes ;;
3356 if test -z "$CC"; then
3357 if test -n "$ac_tool_prefix"; then
3358 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3359 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3360 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3362 if test "${ac_cv_prog_CC+set}" = set; then
3363 echo $ECHO_N "(cached) $ECHO_C" >&6
3365 if test -n "$CC"; then
3366 ac_cv_prog_CC
="$CC" # Let the user override the test.
3368 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3372 test -z "$as_dir" && as_dir
=.
3373 for ac_exec_ext
in '' $ac_executable_extensions; do
3374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3375 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3386 if test -n "$CC"; then
3387 { echo "$as_me:$LINENO: result: $CC" >&5
3388 echo "${ECHO_T}$CC" >&6; }
3390 { echo "$as_me:$LINENO: result: no" >&5
3391 echo "${ECHO_T}no" >&6; }
3397 if test -z "$CC"; then
3398 # Extract the first word of "cc", so it can be a program name with args.
3399 set dummy cc
; ac_word
=$2
3400 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3402 if test "${ac_cv_prog_CC+set}" = set; then
3403 echo $ECHO_N "(cached) $ECHO_C" >&6
3405 if test -n "$CC"; then
3406 ac_cv_prog_CC
="$CC" # Let the user override the test.
3409 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3413 test -z "$as_dir" && as_dir
=.
3414 for ac_exec_ext
in '' $ac_executable_extensions; do
3415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3416 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3417 ac_prog_rejected
=yes
3421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3428 if test $ac_prog_rejected = yes; then
3429 # We found a bogon in the path, so make sure we never use it.
3430 set dummy
$ac_cv_prog_CC
3432 if test $# != 0; then
3433 # We chose a different compiler from the bogus one.
3434 # However, it has the same basename, so the bogon will be chosen
3435 # first if we set CC to just the basename; use the full file name.
3437 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3443 if test -n "$CC"; then
3444 { echo "$as_me:$LINENO: result: $CC" >&5
3445 echo "${ECHO_T}$CC" >&6; }
3447 { echo "$as_me:$LINENO: result: no" >&5
3448 echo "${ECHO_T}no" >&6; }
3453 if test -z "$CC"; then
3454 if test -n "$ac_tool_prefix"; then
3455 for ac_prog
in cl.exe
3457 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3458 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3459 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3461 if test "${ac_cv_prog_CC+set}" = set; then
3462 echo $ECHO_N "(cached) $ECHO_C" >&6
3464 if test -n "$CC"; then
3465 ac_cv_prog_CC
="$CC" # Let the user override the test.
3467 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3471 test -z "$as_dir" && as_dir
=.
3472 for ac_exec_ext
in '' $ac_executable_extensions; do
3473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3474 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3485 if test -n "$CC"; then
3486 { echo "$as_me:$LINENO: result: $CC" >&5
3487 echo "${ECHO_T}$CC" >&6; }
3489 { echo "$as_me:$LINENO: result: no" >&5
3490 echo "${ECHO_T}no" >&6; }
3494 test -n "$CC" && break
3497 if test -z "$CC"; then
3499 for ac_prog
in cl.exe
3501 # Extract the first word of "$ac_prog", so it can be a program name with args.
3502 set dummy
$ac_prog; ac_word
=$2
3503 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3505 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3506 echo $ECHO_N "(cached) $ECHO_C" >&6
3508 if test -n "$ac_ct_CC"; then
3509 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3511 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3515 test -z "$as_dir" && as_dir
=.
3516 for ac_exec_ext
in '' $ac_executable_extensions; do
3517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3518 ac_cv_prog_ac_ct_CC
="$ac_prog"
3519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3528 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3529 if test -n "$ac_ct_CC"; then
3530 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3531 echo "${ECHO_T}$ac_ct_CC" >&6; }
3533 { echo "$as_me:$LINENO: result: no" >&5
3534 echo "${ECHO_T}no" >&6; }
3538 test -n "$ac_ct_CC" && break
3541 if test "x$ac_ct_CC" = x
; then
3544 case $cross_compiling:$ac_tool_warned in
3546 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3547 whose name does not start with the host triplet. If you think this
3548 configuration is useful to you, please write to autoconf@gnu.org." >&5
3549 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3550 whose name does not start with the host triplet. If you think this
3551 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3552 ac_tool_warned
=yes ;;
3561 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3562 See \`config.log' for more details." >&5
3563 echo "$as_me: error: no acceptable C compiler found in \$PATH
3564 See \`config.log' for more details." >&2;}
3565 { (exit 1); exit 1; }; }
3567 # Provide some information about the compiler.
3568 echo "$as_me:$LINENO: checking for C compiler version" >&5
3569 ac_compiler
=`set X $ac_compile; echo $2`
3570 { (ac_try
="$ac_compiler --version >&5"
3572 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3573 *) ac_try_echo=$ac_try;;
3575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3576 (eval "$ac_compiler --version >&5") 2>&5
3578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579 (exit $ac_status); }
3580 { (ac_try="$ac_compiler -v >&5"
3582 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3583 *) ac_try_echo
=$ac_try;;
3585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3586 (eval "$ac_compiler -v >&5") 2>&5
3588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589 (exit $ac_status); }
3590 { (ac_try
="$ac_compiler -V >&5"
3592 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3593 *) ac_try_echo=$ac_try;;
3595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3596 (eval "$ac_compiler -V >&5") 2>&5
3598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599 (exit $ac_status); }
3601 cat >conftest.$ac_ext <<_ACEOF
3604 cat confdefs.h >>conftest.$ac_ext
3605 cat >>conftest.$ac_ext <<_ACEOF
3606 /* end confdefs.h. */
3616 ac_clean_files_save=$ac_clean_files
3617 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3618 # Try to create an executable without -o first, disregard a.out.
3619 # It will help us diagnose broken compilers, and finding out an intuition
3621 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3622 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3623 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3625 # List of possible output files, starting from the most likely.
3626 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
3627 # only as a last resort. b.out is created by i960 compilers.
3628 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
3630 # The IRIX 6 linker writes into existing files which may not be
3631 # executable, retaining their permissions. Remove them first so a
3632 # subsequent execution test works.
3634 for ac_file in $ac_files
3637 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3638 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3643 if { (ac_try="$ac_link_default"
3645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3646 *) ac_try_echo=$ac_try;;
3648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3649 (eval "$ac_link_default") 2>&5
3651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652 (exit $ac_status); }; then
3653 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3654 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3655 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3656 # so that the user can short-circuit this test for compilers unknown to
3658 for ac_file
in $ac_files ''
3660 test -f "$ac_file" ||
continue
3662 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
3665 # We found the default executable, but exeext='' is most
3669 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3671 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3673 # We set ac_cv_exeext here because the later test for it is not
3674 # safe: cross compilers may not add the suffix if given an `-o'
3675 # argument, so we may need to know it at that point already.
3676 # Even if this section looks crufty: it has the advantage of
3683 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3689 { echo "$as_me:$LINENO: result: $ac_file" >&5
3690 echo "${ECHO_T}$ac_file" >&6; }
3691 if test -z "$ac_file"; then
3692 echo "$as_me: failed program was:" >&5
3693 sed 's/^/| /' conftest.
$ac_ext >&5
3695 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3696 See \`config.log' for more details." >&5
3697 echo "$as_me: error: C compiler cannot create executables
3698 See \`config.log' for more details." >&2;}
3699 { (exit 77); exit 77; }; }
3702 ac_exeext
=$ac_cv_exeext
3704 # Check that the compiler produces executables we can run. If not, either
3705 # the compiler is broken, or we cross compile.
3706 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3707 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3708 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3709 # If not cross compiling, check that we can run a simple program.
3710 if test "$cross_compiling" != yes; then
3711 if { ac_try
='./$ac_file'
3712 { (case "(($ac_try" in
3713 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3714 *) ac_try_echo=$ac_try;;
3716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3717 (eval "$ac_try") 2>&5
3719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720 (exit $ac_status); }; }; then
3723 if test "$cross_compiling" = maybe; then
3726 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3727 If you meant to cross compile, use \`--host'.
3728 See \`config.log' for more details.
" >&5
3729 echo "$as_me: error
: cannot run C compiled programs.
3730 If you meant to cross compile
, use \
`--host'.
3731 See \`config.log
' for more details." >&2;}
3732 { (exit 1); exit 1; }; }
3736 { echo "$as_me:$LINENO: result: yes" >&5
3737 echo "${ECHO_T}yes" >&6; }
3739 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3740 ac_clean_files=$ac_clean_files_save
3741 # Check that the compiler produces executables we can run. If not, either
3742 # the compiler is broken, or we cross compile.
3743 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3744 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3745 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3746 echo "${ECHO_T}$cross_compiling" >&6; }
3748 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3749 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3750 if { (ac_try="$ac_link"
3752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3753 *) ac_try_echo=$ac_try;;
3755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3756 (eval "$ac_link") 2>&5
3758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759 (exit $ac_status); }; then
3760 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3761 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3762 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3764 for ac_file
in conftest.exe conftest conftest.
*; do
3765 test -f "$ac_file" ||
continue
3767 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
3768 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3774 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3775 See \`config.log' for more details." >&5
3776 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3777 See \`config.log' for more details." >&2;}
3778 { (exit 1); exit 1; }; }
3781 rm -f conftest
$ac_cv_exeext
3782 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3783 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3785 rm -f conftest.
$ac_ext
3786 EXEEXT
=$ac_cv_exeext
3788 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3789 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3790 if test "${ac_cv_objext+set}" = set; then
3791 echo $ECHO_N "(cached) $ECHO_C" >&6
3793 cat >conftest.
$ac_ext <<_ACEOF
3796 cat confdefs.h
>>conftest.
$ac_ext
3797 cat >>conftest.
$ac_ext <<_ACEOF
3798 /* end confdefs.h. */
3808 rm -f conftest.o conftest.obj
3809 if { (ac_try
="$ac_compile"
3811 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3812 *) ac_try_echo=$ac_try;;
3814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3815 (eval "$ac_compile") 2>&5
3817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818 (exit $ac_status); }; then
3819 for ac_file in conftest.o conftest.obj conftest.*; do
3820 test -f "$ac_file" || continue;
3822 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3823 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3828 echo "$as_me: failed program was:" >&5
3829 sed 's/^/| /' conftest.$ac_ext >&5
3831 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3832 See \`config.log
' for more details." >&5
3833 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3834 See \`config.log' for more details.
" >&2;}
3835 { (exit 1); exit 1; }; }
3838 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3840 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3841 echo "${ECHO_T}$ac_cv_objext" >&6; }
3842 OBJEXT=$ac_cv_objext
3844 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3845 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3846 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3847 echo $ECHO_N "(cached
) $ECHO_C" >&6
3849 cat >conftest.$ac_ext <<_ACEOF
3852 cat confdefs.h >>conftest.$ac_ext
3853 cat >>conftest.$ac_ext <<_ACEOF
3854 /* end confdefs.h. */
3867 rm -f conftest.$ac_objext
3868 if { (ac_try="$ac_compile"
3870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3871 *) ac_try_echo=$ac_try;;
3873 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3874 (eval "$ac_compile") 2>conftest.er1
3876 grep -v '^ *+' conftest.er1 >conftest.err
3878 cat conftest.err >&5
3879 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3880 (exit $ac_status); } && {
3881 test -z "$ac_c_werror_flag" ||
3882 test ! -s conftest.err
3883 } && test -s conftest.$ac_objext; then
3886 echo "$as_me: failed program was
:" >&5
3887 sed 's/^/| /' conftest.$ac_ext >&5
3892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3893 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3896 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3897 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3898 GCC=`test $ac_compiler_gnu = yes && echo yes`
3899 ac_test_CFLAGS=${CFLAGS+set}
3900 ac_save_CFLAGS=$CFLAGS
3901 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3902 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3903 if test "${ac_cv_prog_cc_g+set}" = set; then
3904 echo $ECHO_N "(cached
) $ECHO_C" >&6
3906 ac_save_c_werror_flag=$ac_c_werror_flag
3907 ac_c_werror_flag=yes
3910 cat >conftest.$ac_ext <<_ACEOF
3913 cat confdefs.h >>conftest.$ac_ext
3914 cat >>conftest.$ac_ext <<_ACEOF
3915 /* end confdefs.h. */
3925 rm -f conftest.$ac_objext
3926 if { (ac_try="$ac_compile"
3928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3929 *) ac_try_echo=$ac_try;;
3931 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3932 (eval "$ac_compile") 2>conftest.er1
3934 grep -v '^ *+' conftest.er1 >conftest.err
3936 cat conftest.err >&5
3937 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3938 (exit $ac_status); } && {
3939 test -z "$ac_c_werror_flag" ||
3940 test ! -s conftest.err
3941 } && test -s conftest.$ac_objext; then
3944 echo "$as_me: failed program was
:" >&5
3945 sed 's/^/| /' conftest.$ac_ext >&5
3948 cat >conftest.$ac_ext <<_ACEOF
3951 cat confdefs.h >>conftest.$ac_ext
3952 cat >>conftest.$ac_ext <<_ACEOF
3953 /* end confdefs.h. */
3963 rm -f conftest.$ac_objext
3964 if { (ac_try="$ac_compile"
3966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3967 *) ac_try_echo=$ac_try;;
3969 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3970 (eval "$ac_compile") 2>conftest.er1
3972 grep -v '^ *+' conftest.er1 >conftest.err
3974 cat conftest.err >&5
3975 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3976 (exit $ac_status); } && {
3977 test -z "$ac_c_werror_flag" ||
3978 test ! -s conftest.err
3979 } && test -s conftest.$ac_objext; then
3982 echo "$as_me: failed program was
:" >&5
3983 sed 's/^/| /' conftest.$ac_ext >&5
3985 ac_c_werror_flag=$ac_save_c_werror_flag
3987 cat >conftest.$ac_ext <<_ACEOF
3990 cat confdefs.h >>conftest.$ac_ext
3991 cat >>conftest.$ac_ext <<_ACEOF
3992 /* end confdefs.h. */
4002 rm -f conftest.$ac_objext
4003 if { (ac_try="$ac_compile"
4005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4006 *) ac_try_echo=$ac_try;;
4008 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4009 (eval "$ac_compile") 2>conftest.er1
4011 grep -v '^ *+' conftest.er1 >conftest.err
4013 cat conftest.err >&5
4014 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4015 (exit $ac_status); } && {
4016 test -z "$ac_c_werror_flag" ||
4017 test ! -s conftest.err
4018 } && test -s conftest.$ac_objext; then
4021 echo "$as_me: failed program was
:" >&5
4022 sed 's/^/| /' conftest.$ac_ext >&5
4027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4034 ac_c_werror_flag=$ac_save_c_werror_flag
4036 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
4037 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4038 if test "$ac_test_CFLAGS" = set; then
4039 CFLAGS=$ac_save_CFLAGS
4040 elif test $ac_cv_prog_cc_g = yes; then
4041 if test "$GCC" = yes; then
4047 if test "$GCC" = yes; then
4053 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
4054 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
4055 if test "${ac_cv_prog_cc_c89+set}" = set; then
4056 echo $ECHO_N "(cached
) $ECHO_C" >&6
4058 ac_cv_prog_cc_c89=no
4060 cat >conftest.$ac_ext <<_ACEOF
4063 cat confdefs.h >>conftest.$ac_ext
4064 cat >>conftest.$ac_ext <<_ACEOF
4065 /* end confdefs.h. */
4068 #include <sys/types.h>
4069 #include <sys/stat.h>
4070 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4071 struct buf { int x; };
4072 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4073 static char *e (p, i)
4079 static char *f (char * (*g) (char **, int), char **p, ...)
4084 s = g (p, va_arg (v,int));
4089 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4090 function prototypes and stuff, but not '\xHH' hex character constants.
4091 These don't provoke an error unfortunately, instead are silently treated
4092 as 'x'. The following induces an error, until -std is added to get
4093 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4094 array size at least. It's necessary to write '\x00'==0 to get something
4095 that's true only with -std. */
4096 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4098 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4099 inside strings and character constants. */
4101 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4103 int test (int i, double x);
4104 struct s1 {int (*f) (int a);};
4105 struct s2 {int (*f) (double a);};
4106 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4112 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4117 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4118 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4120 CC="$ac_save_CC $ac_arg"
4121 rm -f conftest.$ac_objext
4122 if { (ac_try="$ac_compile"
4124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4125 *) ac_try_echo=$ac_try;;
4127 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4128 (eval "$ac_compile") 2>conftest.er1
4130 grep -v '^ *+' conftest.er1 >conftest.err
4132 cat conftest.err >&5
4133 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4134 (exit $ac_status); } && {
4135 test -z "$ac_c_werror_flag" ||
4136 test ! -s conftest.err
4137 } && test -s conftest.$ac_objext; then
4138 ac_cv_prog_cc_c89=$ac_arg
4140 echo "$as_me: failed program was
:" >&5
4141 sed 's/^/| /' conftest.$ac_ext >&5
4146 rm -f core conftest.err conftest.$ac_objext
4147 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
4149 rm -f conftest.$ac_ext
4154 case "x
$ac_cv_prog_cc_c89" in
4156 { echo "$as_me:$LINENO: result
: none needed
" >&5
4157 echo "${ECHO_T}none needed
" >&6; } ;;
4159 { echo "$as_me:$LINENO: result
: unsupported
" >&5
4160 echo "${ECHO_T}unsupported
" >&6; } ;;
4162 CC="$CC $ac_cv_prog_cc_c89"
4163 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
4164 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4169 ac_cpp='$CPP $CPPFLAGS'
4170 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4171 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4172 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4175 # On Suns, sometimes $CPP names a directory.
4176 if test -n "$CPP" && test -d "$CPP"; then
4180 ## If not using gcc, and on Solaris, and no CPP specified, see if
4181 ## using a Sun compiler, which needs -Xs to prevent whitespace.
4182 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
4183 test x"$CPP" = x; then
4184 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler
" >&5
4185 echo $ECHO_N "checking whether we are using a Sun C compiler...
$ECHO_C" >&6; }
4187 if test "${emacs_cv_sunpro_c+set}" = set; then
4188 echo $ECHO_N "(cached
) $ECHO_C" >&6
4190 cat >conftest.$ac_ext <<_ACEOF
4193 cat confdefs.h >>conftest.$ac_ext
4194 cat >>conftest.$ac_ext <<_ACEOF
4195 /* end confdefs.h. */
4208 rm -f conftest.$ac_objext conftest$ac_exeext
4209 if { (ac_try="$ac_link"
4211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4212 *) ac_try_echo=$ac_try;;
4214 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4215 (eval "$ac_link") 2>conftest.er1
4217 grep -v '^ *+' conftest.er1 >conftest.err
4219 cat conftest.err >&5
4220 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4221 (exit $ac_status); } && {
4222 test -z "$ac_c_werror_flag" ||
4223 test ! -s conftest.err
4224 } && test -s conftest$ac_exeext &&
4225 $as_test_x conftest$ac_exeext; then
4226 emacs_cv_sunpro_c=yes
4228 echo "$as_me: failed program was
:" >&5
4229 sed 's/^/| /' conftest.$ac_ext >&5
4231 emacs_cv_sunpro_c=no
4234 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4235 conftest$ac_exeext conftest.$ac_ext
4238 { echo "$as_me:$LINENO: result
: $emacs_cv_sunpro_c" >&5
4239 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
4241 if test x"$emacs_cv_sunpro_c" = xyes; then
4242 NON_GNU_CPP="$CC -E -Xs"
4246 #### Some systems specify a CPP to use unless we are using GCC.
4247 #### Now that we know whether we are using GCC, we can decide whether
4248 #### to use that one.
4249 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
4254 #### Some systems specify a CC to use unless we are using GCC.
4255 #### Now that we know whether we are using GCC, we can decide whether
4256 #### to use that one.
4257 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
4258 test x$cc_specified != xyes
4263 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
4265 CC="$CC $GCC_TEST_OPTIONS"
4268 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
4270 CC="$CC $NON_GCC_TEST_OPTIONS"
4274 ac_cpp='$CPP $CPPFLAGS'
4275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4278 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
4279 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
4280 # On Suns, sometimes $CPP names a directory.
4281 if test -n "$CPP" && test -d "$CPP"; then
4284 if test -z "$CPP"; then
4285 if test "${ac_cv_prog_CPP+set}" = set; then
4286 echo $ECHO_N "(cached
) $ECHO_C" >&6
4288 # Double quotes because CPP needs to be expanded
4289 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
4292 for ac_c_preproc_warn_flag in '' yes
4294 # Use a header file that comes with gcc, so configuring glibc
4295 # with a fresh cross-compiler works.
4296 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4297 # <limits.h> exists even on freestanding compilers.
4298 # On the NeXT, cc -E runs the code through the compiler's parser,
4299 # not just through cpp. "Syntax error
" is here to catch this case.
4300 cat >conftest.$ac_ext <<_ACEOF
4303 cat confdefs.h >>conftest.$ac_ext
4304 cat >>conftest.$ac_ext <<_ACEOF
4305 /* end confdefs.h. */
4307 # include <limits.h>
4309 # include <assert.h>
4313 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4316 *) ac_try_echo=$ac_try;;
4318 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4319 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4321 grep -v '^ *+' conftest.er1 >conftest.err
4323 cat conftest.err >&5
4324 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4325 (exit $ac_status); } >/dev/null && {
4326 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4327 test ! -s conftest.err
4331 echo "$as_me: failed program was
:" >&5
4332 sed 's/^/| /' conftest.$ac_ext >&5
4334 # Broken: fails on valid input.
4338 rm -f conftest.err conftest.$ac_ext
4340 # OK, works on sane cases. Now check whether nonexistent headers
4341 # can be detected and how.
4342 cat >conftest.$ac_ext <<_ACEOF
4345 cat confdefs.h >>conftest.$ac_ext
4346 cat >>conftest.$ac_ext <<_ACEOF
4347 /* end confdefs.h. */
4348 #include <ac_nonexistent.h>
4350 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4353 *) ac_try_echo=$ac_try;;
4355 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4356 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4358 grep -v '^ *+' conftest.er1 >conftest.err
4360 cat conftest.err >&5
4361 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4362 (exit $ac_status); } >/dev/null && {
4363 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4364 test ! -s conftest.err
4366 # Broken: success on invalid input.
4369 echo "$as_me: failed program was
:" >&5
4370 sed 's/^/| /' conftest.$ac_ext >&5
4372 # Passes both tests.
4377 rm -f conftest.err conftest.$ac_ext
4380 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4381 rm -f conftest.err conftest.$ac_ext
4382 if $ac_preproc_ok; then
4394 { echo "$as_me:$LINENO: result
: $CPP" >&5
4395 echo "${ECHO_T}$CPP" >&6; }
4397 for ac_c_preproc_warn_flag in '' yes
4399 # Use a header file that comes with gcc, so configuring glibc
4400 # with a fresh cross-compiler works.
4401 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4402 # <limits.h> exists even on freestanding compilers.
4403 # On the NeXT, cc -E runs the code through the compiler's parser,
4404 # not just through cpp. "Syntax error
" is here to catch this case.
4405 cat >conftest.$ac_ext <<_ACEOF
4408 cat confdefs.h >>conftest.$ac_ext
4409 cat >>conftest.$ac_ext <<_ACEOF
4410 /* end confdefs.h. */
4412 # include <limits.h>
4414 # include <assert.h>
4418 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4421 *) ac_try_echo=$ac_try;;
4423 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4424 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4426 grep -v '^ *+' conftest.er1 >conftest.err
4428 cat conftest.err >&5
4429 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4430 (exit $ac_status); } >/dev/null && {
4431 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4432 test ! -s conftest.err
4436 echo "$as_me: failed program was
:" >&5
4437 sed 's/^/| /' conftest.$ac_ext >&5
4439 # Broken: fails on valid input.
4443 rm -f conftest.err conftest.$ac_ext
4445 # OK, works on sane cases. Now check whether nonexistent headers
4446 # can be detected and how.
4447 cat >conftest.$ac_ext <<_ACEOF
4450 cat confdefs.h >>conftest.$ac_ext
4451 cat >>conftest.$ac_ext <<_ACEOF
4452 /* end confdefs.h. */
4453 #include <ac_nonexistent.h>
4455 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4458 *) ac_try_echo=$ac_try;;
4460 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4461 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4463 grep -v '^ *+' conftest.er1 >conftest.err
4465 cat conftest.err >&5
4466 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4467 (exit $ac_status); } >/dev/null && {
4468 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4469 test ! -s conftest.err
4471 # Broken: success on invalid input.
4474 echo "$as_me: failed program was
:" >&5
4475 sed 's/^/| /' conftest.$ac_ext >&5
4477 # Passes both tests.
4482 rm -f conftest.err conftest.$ac_ext
4485 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4486 rm -f conftest.err conftest.$ac_ext
4487 if $ac_preproc_ok; then
4490 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4491 See \
`config.log' for more details." >&5
4492 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4493 See \`config.log
' for more details." >&2;}
4494 { (exit 1); exit 1; }; }
4498 ac_cpp='$CPP $CPPFLAGS'
4499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4500 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4504 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4505 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4506 if test "${ac_cv_path_GREP+set}" = set; then
4507 echo $ECHO_N "(cached) $ECHO_C" >&6
4509 # Extract the first word of "grep ggrep" to use in msg output
4510 if test -z "$GREP"; then
4511 set dummy grep ggrep; ac_prog_name=$2
4512 if test "${ac_cv_path_GREP+set}" = set; then
4513 echo $ECHO_N "(cached) $ECHO_C" >&6
4515 ac_path_GREP_found=false
4516 # Loop through the user's path and
test for each of PROGNAME-LIST
4517 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4518 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4521 test -z "$as_dir" && as_dir
=.
4522 for ac_prog
in grep ggrep
; do
4523 for ac_exec_ext
in '' $ac_executable_extensions; do
4524 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4525 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4526 # Check for GNU ac_path_GREP and select it if it is found.
4527 # Check for GNU $ac_path_GREP
4528 case `"$ac_path_GREP" --version 2>&1` in
4530 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4533 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4536 cat "conftest.in" "conftest.in" >"conftest.tmp"
4537 mv "conftest.tmp" "conftest.in"
4538 cp "conftest.in" "conftest.nl"
4539 echo 'GREP' >> "conftest.nl"
4540 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4541 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4542 ac_count
=`expr $ac_count + 1`
4543 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4544 # Best one so far, save it but keep looking for a better one
4545 ac_cv_path_GREP
="$ac_path_GREP"
4546 ac_path_GREP_max
=$ac_count
4548 # 10*(2^10) chars as input seems more than enough
4549 test $ac_count -gt 10 && break
4551 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4555 $ac_path_GREP_found && break 3
4565 GREP
="$ac_cv_path_GREP"
4566 if test -z "$GREP"; then
4567 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4568 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4569 { (exit 1); exit 1; }; }
4573 ac_cv_path_GREP
=$GREP
4578 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4579 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4580 GREP
="$ac_cv_path_GREP"
4583 { echo "$as_me:$LINENO: checking for egrep" >&5
4584 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4585 if test "${ac_cv_path_EGREP+set}" = set; then
4586 echo $ECHO_N "(cached) $ECHO_C" >&6
4588 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4589 then ac_cv_path_EGREP
="$GREP -E"
4591 # Extract the first word of "egrep" to use in msg output
4592 if test -z "$EGREP"; then
4593 set dummy
egrep; ac_prog_name
=$2
4594 if test "${ac_cv_path_EGREP+set}" = set; then
4595 echo $ECHO_N "(cached) $ECHO_C" >&6
4597 ac_path_EGREP_found
=false
4598 # Loop through the user's path and test for each of PROGNAME-LIST
4599 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4600 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4603 test -z "$as_dir" && as_dir
=.
4604 for ac_prog
in egrep; do
4605 for ac_exec_ext
in '' $ac_executable_extensions; do
4606 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4607 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4608 # Check for GNU ac_path_EGREP and select it if it is found.
4609 # Check for GNU $ac_path_EGREP
4610 case `"$ac_path_EGREP" --version 2>&1` in
4612 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4615 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4618 cat "conftest.in" "conftest.in" >"conftest.tmp"
4619 mv "conftest.tmp" "conftest.in"
4620 cp "conftest.in" "conftest.nl"
4621 echo 'EGREP' >> "conftest.nl"
4622 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4623 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4624 ac_count
=`expr $ac_count + 1`
4625 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4626 # Best one so far, save it but keep looking for a better one
4627 ac_cv_path_EGREP
="$ac_path_EGREP"
4628 ac_path_EGREP_max
=$ac_count
4630 # 10*(2^10) chars as input seems more than enough
4631 test $ac_count -gt 10 && break
4633 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4637 $ac_path_EGREP_found && break 3
4647 EGREP
="$ac_cv_path_EGREP"
4648 if test -z "$EGREP"; then
4649 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4650 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4651 { (exit 1); exit 1; }; }
4655 ac_cv_path_EGREP
=$EGREP
4661 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4662 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4663 EGREP
="$ac_cv_path_EGREP"
4667 { echo "$as_me:$LINENO: checking for AIX" >&5
4668 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4669 cat >conftest.
$ac_ext <<_ACEOF
4672 cat confdefs.h
>>conftest.
$ac_ext
4673 cat >>conftest.
$ac_ext <<_ACEOF
4674 /* end confdefs.h. */
4680 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4681 $EGREP "yes" >/dev
/null
2>&1; then
4682 { echo "$as_me:$LINENO: result: yes" >&5
4683 echo "${ECHO_T}yes" >&6; }
4684 cat >>confdefs.h
<<\_ACEOF
4685 #define _ALL_SOURCE 1
4689 { echo "$as_me:$LINENO: result: no" >&5
4690 echo "${ECHO_T}no" >&6; }
4696 cat >>confdefs.h
<<\_ACEOF
4697 #define _GNU_SOURCE 1
4702 ### Use -Wno-pointer-sign if the compiler supports it
4703 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4704 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4705 SAVE_CFLAGS
="$CFLAGS"
4706 CFLAGS
="$CFLAGS -Wno-pointer-sign"
4707 cat >conftest.
$ac_ext <<_ACEOF
4710 cat confdefs.h
>>conftest.
$ac_ext
4711 cat >>conftest.
$ac_ext <<_ACEOF
4712 /* end confdefs.h. */
4722 rm -f conftest.
$ac_objext
4723 if { (ac_try
="$ac_compile"
4725 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4726 *) ac_try_echo=$ac_try;;
4728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4729 (eval "$ac_compile") 2>conftest.er1
4731 grep -v '^ *+' conftest.er1 >conftest.err
4733 cat conftest.err >&5
4734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735 (exit $ac_status); } && {
4736 test -z "$ac_c_werror_flag" ||
4737 test ! -s conftest.err
4738 } && test -s conftest.$ac_objext; then
4741 echo "$as_me: failed program was:" >&5
4742 sed 's/^/| /' conftest.$ac_ext >&5
4747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4748 if test $has_option = yes; then
4749 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4751 { echo "$as_me:$LINENO: result: $has_option" >&5
4752 echo "${ECHO_T}$has_option" >&6; }
4753 CFLAGS="$SAVE_CFLAGS"
4757 #### Some other nice autoconf tests.
4759 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4760 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4762 if test "$LN_S" = "ln -s"; then
4763 { echo "$as_me:$LINENO: result: yes" >&5
4764 echo "${ECHO_T}yes" >&6; }
4766 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4767 echo "${ECHO_T}no, using $LN_S" >&6; }
4771 ac_cpp='$CPP $CPPFLAGS'
4772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4775 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4776 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4777 # On Suns, sometimes $CPP names a directory.
4778 if test -n "$CPP" && test -d "$CPP"; then
4781 if test -z "$CPP"; then
4782 if test "${ac_cv_prog_CPP+set}" = set; then
4783 echo $ECHO_N "(cached) $ECHO_C" >&6
4785 # Double quotes because CPP needs to be expanded
4786 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4789 for ac_c_preproc_warn_flag in '' yes
4791 # Use a header file that comes with gcc, so configuring glibc
4792 # with a fresh cross-compiler works.
4793 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4794 # <limits.h> exists even on freestanding compilers.
4795 # On the NeXT, cc -E runs the code through the compiler's parser,
4796 # not just through cpp. "Syntax error" is here to catch this case.
4797 cat >conftest.$ac_ext <<_ACEOF
4800 cat confdefs.h >>conftest.$ac_ext
4801 cat >>conftest.$ac_ext <<_ACEOF
4802 /* end confdefs.h. */
4804 # include <limits.h>
4806 # include <assert.h>
4810 if { (ac_try="$ac_cpp conftest.$ac_ext"
4812 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4813 *) ac_try_echo
=$ac_try;;
4815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4816 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4818 grep -v '^ *+' conftest.er1
>conftest.err
4820 cat conftest.err
>&5
4821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822 (exit $ac_status); } >/dev
/null
&& {
4823 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4824 test ! -s conftest.err
4828 echo "$as_me: failed program was:" >&5
4829 sed 's/^/| /' conftest.
$ac_ext >&5
4831 # Broken: fails on valid input.
4835 rm -f conftest.err conftest.
$ac_ext
4837 # OK, works on sane cases. Now check whether nonexistent headers
4838 # can be detected and how.
4839 cat >conftest.
$ac_ext <<_ACEOF
4842 cat confdefs.h
>>conftest.
$ac_ext
4843 cat >>conftest.
$ac_ext <<_ACEOF
4844 /* end confdefs.h. */
4845 #include <ac_nonexistent.h>
4847 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4849 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4850 *) ac_try_echo=$ac_try;;
4852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4853 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4855 grep -v '^ *+' conftest.er1 >conftest.err
4857 cat conftest.err >&5
4858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4859 (exit $ac_status); } >/dev/null && {
4860 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4861 test ! -s conftest.err
4863 # Broken: success on invalid input.
4866 echo "$as_me: failed program was:" >&5
4867 sed 's/^/| /' conftest.$ac_ext >&5
4869 # Passes both tests.
4874 rm -f conftest.err conftest.$ac_ext
4877 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4878 rm -f conftest.err conftest.
$ac_ext
4879 if $ac_preproc_ok; then
4891 { echo "$as_me:$LINENO: result: $CPP" >&5
4892 echo "${ECHO_T}$CPP" >&6; }
4894 for ac_c_preproc_warn_flag
in '' yes
4896 # Use a header file that comes with gcc, so configuring glibc
4897 # with a fresh cross-compiler works.
4898 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4899 # <limits.h> exists even on freestanding compilers.
4900 # On the NeXT, cc -E runs the code through the compiler's parser,
4901 # not just through cpp. "Syntax error" is here to catch this case.
4902 cat >conftest.
$ac_ext <<_ACEOF
4905 cat confdefs.h
>>conftest.
$ac_ext
4906 cat >>conftest.
$ac_ext <<_ACEOF
4907 /* end confdefs.h. */
4909 # include <limits.h>
4911 # include <assert.h>
4915 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4917 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4918 *) ac_try_echo=$ac_try;;
4920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4921 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4923 grep -v '^ *+' conftest.er1 >conftest.err
4925 cat conftest.err >&5
4926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927 (exit $ac_status); } >/dev/null && {
4928 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4929 test ! -s conftest.err
4933 echo "$as_me: failed program was:" >&5
4934 sed 's/^/| /' conftest.$ac_ext >&5
4936 # Broken: fails on valid input.
4940 rm -f conftest.err conftest.$ac_ext
4942 # OK, works on sane cases. Now check whether nonexistent headers
4943 # can be detected and how.
4944 cat >conftest.$ac_ext <<_ACEOF
4947 cat confdefs.h >>conftest.$ac_ext
4948 cat >>conftest.$ac_ext <<_ACEOF
4949 /* end confdefs.h. */
4950 #include <ac_nonexistent.h>
4952 if { (ac_try="$ac_cpp conftest.$ac_ext"
4954 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4955 *) ac_try_echo
=$ac_try;;
4957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4958 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4960 grep -v '^ *+' conftest.er1
>conftest.err
4962 cat conftest.err
>&5
4963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964 (exit $ac_status); } >/dev
/null
&& {
4965 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4966 test ! -s conftest.err
4968 # Broken: success on invalid input.
4971 echo "$as_me: failed program was:" >&5
4972 sed 's/^/| /' conftest.
$ac_ext >&5
4974 # Passes both tests.
4979 rm -f conftest.err conftest.
$ac_ext
4982 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4983 rm -f conftest.err conftest.
$ac_ext
4984 if $ac_preproc_ok; then
4987 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4988 See \`config.log' for more details." >&5
4989 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4990 See \`config.log' for more details." >&2;}
4991 { (exit 1); exit 1; }; }
4995 ac_cpp
='$CPP $CPPFLAGS'
4996 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4997 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4998 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5000 # Find a good install program. We prefer a C program (faster),
5001 # so one script is as good as another. But avoid the broken or
5002 # incompatible versions:
5003 # SysV /etc/install, /usr/sbin/install
5004 # SunOS /usr/etc/install
5005 # IRIX /sbin/install
5007 # AmigaOS /C/install, which installs bootblocks on floppy discs
5008 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5009 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5010 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5011 # OS/2's system install, which has a completely different semantic
5012 # ./install, which can be erroneously created by make from ./install.sh.
5013 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5014 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5015 if test -z "$INSTALL"; then
5016 if test "${ac_cv_path_install+set}" = set; then
5017 echo $ECHO_N "(cached) $ECHO_C" >&6
5019 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5023 test -z "$as_dir" && as_dir
=.
5024 # Account for people who put trailing slashes in PATH elements.
5026 .
/ | .
// |
/cC
/* | \
5027 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
5028 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
5031 # OSF1 and SCO ODT 3.0 have their own names for install.
5032 # Don't use installbsd from OSF since it installs stuff as root
5034 for ac_prog
in ginstall scoinst
install; do
5035 for ac_exec_ext
in '' $ac_executable_extensions; do
5036 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5037 if test $ac_prog = install &&
5038 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5039 # AIX install. It has an incompatible calling convention.
5041 elif test $ac_prog = install &&
5042 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5043 # program-specific install script used by HP pwplus--don't use.
5046 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5059 if test "${ac_cv_path_install+set}" = set; then
5060 INSTALL
=$ac_cv_path_install
5062 # As a last resort, use the slow shell script. Don't cache a
5063 # value for INSTALL within a source directory, because that will
5064 # break other packages using the cache if that directory is
5065 # removed, or if the value is a relative name.
5066 INSTALL
=$ac_install_sh
5069 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5070 echo "${ECHO_T}$INSTALL" >&6; }
5072 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5073 # It thinks the first close brace ends the variable substitution.
5074 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5076 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5078 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5080 if test "x$RANLIB" = x
; then
5081 if test -n "$ac_tool_prefix"; then
5082 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5083 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5084 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5086 if test "${ac_cv_prog_RANLIB+set}" = set; then
5087 echo $ECHO_N "(cached) $ECHO_C" >&6
5089 if test -n "$RANLIB"; then
5090 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5092 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5096 test -z "$as_dir" && as_dir
=.
5097 for ac_exec_ext
in '' $ac_executable_extensions; do
5098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5099 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5109 RANLIB
=$ac_cv_prog_RANLIB
5110 if test -n "$RANLIB"; then
5111 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5112 echo "${ECHO_T}$RANLIB" >&6; }
5114 { echo "$as_me:$LINENO: result: no" >&5
5115 echo "${ECHO_T}no" >&6; }
5120 if test -z "$ac_cv_prog_RANLIB"; then
5121 ac_ct_RANLIB
=$RANLIB
5122 # Extract the first word of "ranlib", so it can be a program name with args.
5123 set dummy ranlib
; ac_word
=$2
5124 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5126 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5127 echo $ECHO_N "(cached) $ECHO_C" >&6
5129 if test -n "$ac_ct_RANLIB"; then
5130 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5132 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5136 test -z "$as_dir" && as_dir
=.
5137 for ac_exec_ext
in '' $ac_executable_extensions; do
5138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5139 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5149 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5150 if test -n "$ac_ct_RANLIB"; then
5151 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5152 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5154 { echo "$as_me:$LINENO: result: no" >&5
5155 echo "${ECHO_T}no" >&6; }
5158 if test "x$ac_ct_RANLIB" = x
; then
5161 case $cross_compiling:$ac_tool_warned in
5163 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5164 whose name does not start with the host triplet. If you think this
5165 configuration is useful to you, please write to autoconf@gnu.org." >&5
5166 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5167 whose name does not start with the host triplet. If you think this
5168 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5169 ac_tool_warned
=yes ;;
5171 RANLIB
=$ac_ct_RANLIB
5174 RANLIB
="$ac_cv_prog_RANLIB"
5178 # Extract the first word of "install-info", so it can be a program name with args.
5179 set dummy install-info
; ac_word
=$2
5180 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5182 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5183 echo $ECHO_N "(cached) $ECHO_C" >&6
5185 case $INSTALL_INFO in
5187 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5190 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5194 test -z "$as_dir" && as_dir
=.
5195 for ac_exec_ext
in '' $ac_executable_extensions; do
5196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5197 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5208 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5209 if test -n "$INSTALL_INFO"; then
5210 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5211 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5213 { echo "$as_me:$LINENO: result: no" >&5
5214 echo "${ECHO_T}no" >&6; }
5218 # Extract the first word of "install-info", so it can be a program name with args.
5219 set dummy install-info
; ac_word
=$2
5220 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5222 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5223 echo $ECHO_N "(cached) $ECHO_C" >&6
5225 case $INSTALL_INFO in
5227 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5230 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5231 for as_dir
in /usr
/sbin
5234 test -z "$as_dir" && as_dir
=.
5235 for ac_exec_ext
in '' $ac_executable_extensions; do
5236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5237 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5248 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5249 if test -n "$INSTALL_INFO"; then
5250 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5251 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5253 { echo "$as_me:$LINENO: result: no" >&5
5254 echo "${ECHO_T}no" >&6; }
5258 # Extract the first word of "install-info", so it can be a program name with args.
5259 set dummy install-info
; ac_word
=$2
5260 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5262 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5263 echo $ECHO_N "(cached) $ECHO_C" >&6
5265 case $INSTALL_INFO in
5267 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5270 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5274 test -z "$as_dir" && as_dir
=.
5275 for ac_exec_ext
in '' $ac_executable_extensions; do
5276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5277 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5285 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5289 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5290 if test -n "$INSTALL_INFO"; then
5291 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5292 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5294 { echo "$as_me:$LINENO: result: no" >&5
5295 echo "${ECHO_T}no" >&6; }
5299 # Extract the first word of "gzip", so it can be a program name with args.
5300 set dummy
gzip; ac_word
=$2
5301 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5303 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5304 echo $ECHO_N "(cached) $ECHO_C" >&6
5308 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5311 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5315 test -z "$as_dir" && as_dir
=.
5316 for ac_exec_ext
in '' $ac_executable_extensions; do
5317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5318 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5329 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5330 if test -n "$GZIP_PROG"; then
5331 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5332 echo "${ECHO_T}$GZIP_PROG" >&6; }
5334 { echo "$as_me:$LINENO: result: no" >&5
5335 echo "${ECHO_T}no" >&6; }
5341 ## Need makeinfo >= 4.6 (?) to build the manuals.
5342 # Extract the first word of "makeinfo", so it can be a program name with args.
5343 set dummy makeinfo
; ac_word
=$2
5344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5346 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5347 echo $ECHO_N "(cached) $ECHO_C" >&6
5351 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
5354 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5358 test -z "$as_dir" && as_dir
=.
5359 for ac_exec_ext
in '' $ac_executable_extensions; do
5360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5361 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
5362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5369 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
5373 MAKEINFO
=$ac_cv_path_MAKEINFO
5374 if test -n "$MAKEINFO"; then
5375 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5376 echo "${ECHO_T}$MAKEINFO" >&6; }
5378 { echo "$as_me:$LINENO: result: no" >&5
5379 echo "${ECHO_T}no" >&6; }
5383 if test "$MAKEINFO" != "no" && \
5384 test x
"`$MAKEINFO --version 2> /dev/null | $EGREP 'texinfo[^0-9]*([5-9]|4\.[6-9])'`" = x
; then
5388 if test "$MAKEINFO" = "no"; then
5389 { { echo "$as_me:$LINENO: error: makeinfo >= 4.6 is required " >&5
5390 echo "$as_me: error: makeinfo >= 4.6 is required " >&2;}
5391 { (exit 1); exit 1; }; }
5396 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5398 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5401 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5403 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5407 late_LDFLAGS
=$LDFLAGS
5408 if test "$GCC" = yes; then
5409 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5411 LDFLAGS
="$LDFLAGS -znocombreloc"
5414 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5415 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5416 cat >conftest.
$ac_ext <<_ACEOF
5419 rm -f conftest.
$ac_objext conftest
$ac_exeext
5420 if { (ac_try
="$ac_link"
5422 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5423 *) ac_try_echo=$ac_try;;
5425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5426 (eval "$ac_link") 2>conftest.er1
5428 grep -v '^ *+' conftest.er1 >conftest.err
5430 cat conftest.err >&5
5431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5432 (exit $ac_status); } && {
5433 test -z "$ac_c_werror_flag" ||
5434 test ! -s conftest.err
5435 } && test -s conftest$ac_exeext &&
5436 $as_test_x conftest$ac_exeext; then
5437 { echo "$as_me:$LINENO: result: yes" >&5
5438 echo "${ECHO_T}yes" >&6; }
5440 echo "$as_me: failed program was:" >&5
5441 sed 's/^/| /' conftest.$ac_ext >&5
5443 LDFLAGS=$late_LDFLAGS
5444 { echo "$as_me:$LINENO: result: no" >&5
5445 echo "${ECHO_T}no" >&6; }
5448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5449 conftest$ac_exeext conftest.$ac_ext
5451 #### Extract some information from the operating system and machine files.
5453 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5454 - which libraries the lib-src programs will want, and
5455 - whether the GNU malloc routines are usable..." >&5
5456 echo "$as_me: checking the machine- and system-dependent files to find out
5457 - which libraries the lib-src programs will want, and
5458 - whether the GNU malloc routines are usable..." >&6;}
5460 ### First figure out CFLAGS (which we use for running the compiler here)
5461 ### and REAL_CFLAGS (which we use for real compilation).
5462 ### The two are the same except on a few systems, where they are made
5463 ### different to work around various lossages. For example,
5464 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5465 ### as implying static linking.
5467 ### If the CFLAGS env var is specified, we use that value
5468 ### instead of the default.
5470 ### It's not important that this name contain the PID; you can't run
5471 ### two configures in the same directory and have anything work
5473 tempcname="conftest.c"
5476 #include "'${srcdir}'/src/'${opsysfile}'"
5477 #include "'${srcdir}'/src/'${machfile}'"
5478 #ifndef LIBS_MACHINE
5479 #define LIBS_MACHINE
5484 #ifndef C_SWITCH_SYSTEM
5485 #define C_SWITCH_SYSTEM
5487 #ifndef C_SWITCH_MACHINE
5488 #define C_SWITCH_MACHINE
5490 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5491 configure___ c_switch_system=C_SWITCH_SYSTEM
5492 configure___ c_switch_machine=C_SWITCH_MACHINE
5495 #define LIB_X11_LIB -lX11
5498 #ifndef LIBX11_MACHINE
5499 #define LIBX11_MACHINE
5502 #ifndef LIBX11_SYSTEM
5503 #define LIBX11_SYSTEM
5505 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5508 configure___ unexec=UNEXEC
5510 configure___ unexec=unexec.o
5513 #ifdef SYSTEM_MALLOC
5514 configure___ system_malloc=yes
5516 configure___ system_malloc=no
5519 #ifdef USE_MMAP_FOR_BUFFERS
5520 configure___ use_mmap_for_buffers=yes
5522 configure___ use_mmap_for_buffers=no
5525 #ifndef C_DEBUG_SWITCH
5526 #define C_DEBUG_SWITCH -g
5529 #ifndef C_OPTIMIZE_SWITCH
5531 #define C_OPTIMIZE_SWITCH -O2
5533 #define C_OPTIMIZE_SWITCH -O
5537 #ifndef C_WARNINGS_SWITCH
5538 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5541 #ifndef LD_SWITCH_MACHINE
5542 #define LD_SWITCH_MACHINE
5545 #ifndef LD_SWITCH_SYSTEM
5546 #define LD_SWITCH_SYSTEM
5549 #ifndef LD_SWITCH_X_SITE_AUX
5550 #define LD_SWITCH_X_SITE_AUX
5553 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5554 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5556 #ifdef THIS_IS_CONFIGURE
5558 /* Get the CFLAGS for tests in configure. */
5560 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5562 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5565 #else /* not THIS_IS_CONFIGURE */
5567 /* Get the CFLAGS for real compilation. */
5569 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5571 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5574 #endif /* not THIS_IS_CONFIGURE */
5577 # The value of CPP is a quoted variable reference, so we need to do this
5578 # to get its actual value...
5579 CPP=`eval "echo $CPP"`
5580 eval `${CPP} -Isrc ${tempcname} \
5581 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5582 if test "x$SPECIFIED_CFLAGS" = x; then
5583 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5584 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5586 REAL_CFLAGS="$CFLAGS"
5590 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5592 ### Make sure subsequent tests use flags consistent with the build flags.
5594 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5595 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5597 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5602 # Check whether --enable-largefile was given.
5603 if test "${enable_largefile+set}" = set; then
5604 enableval=$enable_largefile;
5607 if test "$enable_largefile" != no; then
5609 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5610 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5611 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5612 echo $ECHO_N "(cached) $ECHO_C" >&6
5614 ac_cv_sys_largefile_CC=no
5615 if test "$GCC" != yes; then
5618 # IRIX 6.2 and later do not support large files by default,
5619 # so use the C compiler's -n32 option if that helps.
5620 cat >conftest.$ac_ext <<_ACEOF
5623 cat confdefs.h >>conftest.$ac_ext
5624 cat >>conftest.$ac_ext <<_ACEOF
5625 /* end confdefs.h. */
5626 #include <sys/types.h>
5627 /* Check that off_t can represent 2**63 - 1 correctly.
5628 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5629 since some C++ compilers masquerading as C compilers
5630 incorrectly reject 9223372036854775807. */
5631 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5632 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5633 && LARGE_OFF_T % 2147483647 == 1)
5643 rm -f conftest.$ac_objext
5644 if { (ac_try="$ac_compile"
5646 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5647 *) ac_try_echo
=$ac_try;;
5649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5650 (eval "$ac_compile") 2>conftest.er1
5652 grep -v '^ *+' conftest.er1
>conftest.err
5654 cat conftest.err
>&5
5655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5656 (exit $ac_status); } && {
5657 test -z "$ac_c_werror_flag" ||
5658 test ! -s conftest.err
5659 } && test -s conftest.
$ac_objext; then
5662 echo "$as_me: failed program was:" >&5
5663 sed 's/^/| /' conftest.
$ac_ext >&5
5668 rm -f core conftest.err conftest.
$ac_objext
5670 rm -f conftest.
$ac_objext
5671 if { (ac_try
="$ac_compile"
5673 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5674 *) ac_try_echo=$ac_try;;
5676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5677 (eval "$ac_compile") 2>conftest.er1
5679 grep -v '^ *+' conftest.er1 >conftest.err
5681 cat conftest.err >&5
5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683 (exit $ac_status); } && {
5684 test -z "$ac_c_werror_flag" ||
5685 test ! -s conftest.err
5686 } && test -s conftest.$ac_objext; then
5687 ac_cv_sys_largefile_CC=' -n32'; break
5689 echo "$as_me: failed program was:" >&5
5690 sed 's/^/| /' conftest.$ac_ext >&5
5695 rm -f core conftest.err conftest.$ac_objext
5699 rm -f conftest.$ac_ext
5702 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5703 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5704 if test "$ac_cv_sys_largefile_CC" != no; then
5705 CC=$CC$ac_cv_sys_largefile_CC
5708 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5709 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5710 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5711 echo $ECHO_N "(cached) $ECHO_C" >&6
5714 cat >conftest.$ac_ext <<_ACEOF
5717 cat confdefs.h >>conftest.$ac_ext
5718 cat >>conftest.$ac_ext <<_ACEOF
5719 /* end confdefs.h. */
5720 #include <sys/types.h>
5721 /* Check that off_t can represent 2**63 - 1 correctly.
5722 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5723 since some C++ compilers masquerading as C compilers
5724 incorrectly reject 9223372036854775807. */
5725 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5726 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5727 && LARGE_OFF_T % 2147483647 == 1)
5737 rm -f conftest.$ac_objext
5738 if { (ac_try="$ac_compile"
5740 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5741 *) ac_try_echo
=$ac_try;;
5743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5744 (eval "$ac_compile") 2>conftest.er1
5746 grep -v '^ *+' conftest.er1
>conftest.err
5748 cat conftest.err
>&5
5749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750 (exit $ac_status); } && {
5751 test -z "$ac_c_werror_flag" ||
5752 test ! -s conftest.err
5753 } && test -s conftest.
$ac_objext; then
5754 ac_cv_sys_file_offset_bits
=no
; break
5756 echo "$as_me: failed program was:" >&5
5757 sed 's/^/| /' conftest.
$ac_ext >&5
5762 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5763 cat >conftest.
$ac_ext <<_ACEOF
5766 cat confdefs.h
>>conftest.
$ac_ext
5767 cat >>conftest.
$ac_ext <<_ACEOF
5768 /* end confdefs.h. */
5769 #define _FILE_OFFSET_BITS 64
5770 #include <sys/types.h>
5771 /* Check that off_t can represent 2**63 - 1 correctly.
5772 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5773 since some C++ compilers masquerading as C compilers
5774 incorrectly reject 9223372036854775807. */
5775 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5776 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5777 && LARGE_OFF_T % 2147483647 == 1)
5787 rm -f conftest.
$ac_objext
5788 if { (ac_try
="$ac_compile"
5790 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5791 *) ac_try_echo=$ac_try;;
5793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5794 (eval "$ac_compile") 2>conftest.er1
5796 grep -v '^ *+' conftest.er1 >conftest.err
5798 cat conftest.err >&5
5799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800 (exit $ac_status); } && {
5801 test -z "$ac_c_werror_flag" ||
5802 test ! -s conftest.err
5803 } && test -s conftest.$ac_objext; then
5804 ac_cv_sys_file_offset_bits=64; break
5806 echo "$as_me: failed program was:" >&5
5807 sed 's/^/| /' conftest.$ac_ext >&5
5812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5813 ac_cv_sys_file_offset_bits=unknown
5817 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5818 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5819 case $ac_cv_sys_file_offset_bits in #(
5822 cat >>confdefs.h <<_ACEOF
5823 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5828 if test $ac_cv_sys_file_offset_bits = unknown; then
5829 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5830 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5831 if test "${ac_cv_sys_large_files+set}" = set; then
5832 echo $ECHO_N "(cached) $ECHO_C" >&6
5835 cat >conftest.$ac_ext <<_ACEOF
5838 cat confdefs.h >>conftest.$ac_ext
5839 cat >>conftest.$ac_ext <<_ACEOF
5840 /* end confdefs.h. */
5841 #include <sys/types.h>
5842 /* Check that off_t can represent 2**63 - 1 correctly.
5843 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5844 since some C++ compilers masquerading as C compilers
5845 incorrectly reject 9223372036854775807. */
5846 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5847 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5848 && LARGE_OFF_T % 2147483647 == 1)
5858 rm -f conftest.$ac_objext
5859 if { (ac_try="$ac_compile"
5861 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5862 *) ac_try_echo
=$ac_try;;
5864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5865 (eval "$ac_compile") 2>conftest.er1
5867 grep -v '^ *+' conftest.er1
>conftest.err
5869 cat conftest.err
>&5
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); } && {
5872 test -z "$ac_c_werror_flag" ||
5873 test ! -s conftest.err
5874 } && test -s conftest.
$ac_objext; then
5875 ac_cv_sys_large_files
=no
; break
5877 echo "$as_me: failed program was:" >&5
5878 sed 's/^/| /' conftest.
$ac_ext >&5
5883 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5884 cat >conftest.
$ac_ext <<_ACEOF
5887 cat confdefs.h
>>conftest.
$ac_ext
5888 cat >>conftest.
$ac_ext <<_ACEOF
5889 /* end confdefs.h. */
5890 #define _LARGE_FILES 1
5891 #include <sys/types.h>
5892 /* Check that off_t can represent 2**63 - 1 correctly.
5893 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5894 since some C++ compilers masquerading as C compilers
5895 incorrectly reject 9223372036854775807. */
5896 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5897 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5898 && LARGE_OFF_T % 2147483647 == 1)
5908 rm -f conftest.
$ac_objext
5909 if { (ac_try
="$ac_compile"
5911 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5912 *) ac_try_echo=$ac_try;;
5914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5915 (eval "$ac_compile") 2>conftest.er1
5917 grep -v '^ *+' conftest.er1 >conftest.err
5919 cat conftest.err >&5
5920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921 (exit $ac_status); } && {
5922 test -z "$ac_c_werror_flag" ||
5923 test ! -s conftest.err
5924 } && test -s conftest.$ac_objext; then
5925 ac_cv_sys_large_files=1; break
5927 echo "$as_me: failed program was:" >&5
5928 sed 's/^/| /' conftest.$ac_ext >&5
5933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5934 ac_cv_sys_large_files=unknown
5938 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5939 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5940 case $ac_cv_sys_large_files in #(
5943 cat >>confdefs.h <<_ACEOF
5944 #define _LARGE_FILES $ac_cv_sys_large_files
5954 ### The standard library on x86-64 GNU/Linux distributions can
5955 ### be located in either /usr/lib64 or /usr/lib.
5956 case "${canonical}" in
5957 x86_64-*-linux-gnu* )
5958 if test -d /usr/lib64; then
5960 cat >>confdefs.h <<\_ACEOF
5961 #define HAVE_X86_64_LIB64_DIR 1
5970 if test "${with_sound}" != "no"; then
5971 # Sound support for GNU/Linux and the free BSDs.
5972 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5973 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5974 if test "${ac_cv_header_stdc+set}" = set; then
5975 echo $ECHO_N "(cached) $ECHO_C" >&6
5977 cat >conftest.$ac_ext <<_ACEOF
5980 cat confdefs.h >>conftest.$ac_ext
5981 cat >>conftest.$ac_ext <<_ACEOF
5982 /* end confdefs.h. */
5996 rm -f conftest.$ac_objext
5997 if { (ac_try="$ac_compile"
5999 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6000 *) ac_try_echo
=$ac_try;;
6002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6003 (eval "$ac_compile") 2>conftest.er1
6005 grep -v '^ *+' conftest.er1
>conftest.err
6007 cat conftest.err
>&5
6008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 (exit $ac_status); } && {
6010 test -z "$ac_c_werror_flag" ||
6011 test ! -s conftest.err
6012 } && test -s conftest.
$ac_objext; then
6013 ac_cv_header_stdc
=yes
6015 echo "$as_me: failed program was:" >&5
6016 sed 's/^/| /' conftest.
$ac_ext >&5
6018 ac_cv_header_stdc
=no
6021 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6023 if test $ac_cv_header_stdc = yes; then
6024 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6025 cat >conftest.
$ac_ext <<_ACEOF
6028 cat confdefs.h
>>conftest.
$ac_ext
6029 cat >>conftest.
$ac_ext <<_ACEOF
6030 /* end confdefs.h. */
6034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6035 $EGREP "memchr" >/dev
/null
2>&1; then
6038 ac_cv_header_stdc
=no
6044 if test $ac_cv_header_stdc = yes; then
6045 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6046 cat >conftest.
$ac_ext <<_ACEOF
6049 cat confdefs.h
>>conftest.
$ac_ext
6050 cat >>conftest.
$ac_ext <<_ACEOF
6051 /* end confdefs.h. */
6055 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6056 $EGREP "free" >/dev
/null
2>&1; then
6059 ac_cv_header_stdc
=no
6065 if test $ac_cv_header_stdc = yes; then
6066 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6067 if test "$cross_compiling" = yes; then
6070 cat >conftest.
$ac_ext <<_ACEOF
6073 cat confdefs.h
>>conftest.
$ac_ext
6074 cat >>conftest.
$ac_ext <<_ACEOF
6075 /* end confdefs.h. */
6078 #if ((' ' & 0x0FF) == 0x020)
6079 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6080 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6082 # define ISLOWER(c) \
6083 (('a' <= (c) && (c) <= 'i') \
6084 || ('j' <= (c) && (c) <= 'r') \
6085 || ('s' <= (c) && (c) <= 'z'))
6086 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6089 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6094 for (i = 0; i < 256; i++)
6095 if (XOR (islower (i), ISLOWER (i))
6096 || toupper (i) != TOUPPER (i))
6101 rm -f conftest
$ac_exeext
6102 if { (ac_try
="$ac_link"
6104 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6105 *) ac_try_echo=$ac_try;;
6107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6108 (eval "$ac_link") 2>&5
6110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6112 { (case "(($ac_try" in
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_try") 2>&5
6119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120 (exit $ac_status); }; }; then
6123 echo "$as_me: program exited with status $ac_status" >&5
6124 echo "$as_me: failed program was:" >&5
6125 sed 's/^/| /' conftest.
$ac_ext >&5
6128 ac_cv_header_stdc
=no
6130 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6136 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6137 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6138 if test $ac_cv_header_stdc = yes; then
6140 cat >>confdefs.h
<<\_ACEOF
6141 #define STDC_HEADERS 1
6146 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6156 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6157 inttypes.h stdint.h unistd.h
6159 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6160 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6162 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6163 echo $ECHO_N "(cached) $ECHO_C" >&6
6165 cat >conftest.
$ac_ext <<_ACEOF
6168 cat confdefs.h
>>conftest.
$ac_ext
6169 cat >>conftest.
$ac_ext <<_ACEOF
6170 /* end confdefs.h. */
6171 $ac_includes_default
6173 #include <$ac_header>
6175 rm -f conftest.
$ac_objext
6176 if { (ac_try
="$ac_compile"
6178 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6179 *) ac_try_echo=$ac_try;;
6181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6182 (eval "$ac_compile") 2>conftest.er1
6184 grep -v '^ *+' conftest.er1 >conftest.err
6186 cat conftest.err >&5
6187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188 (exit $ac_status); } && {
6189 test -z "$ac_c_werror_flag" ||
6190 test ! -s conftest.err
6191 } && test -s conftest.$ac_objext; then
6192 eval "$as_ac_Header=yes"
6194 echo "$as_me: failed program was:" >&5
6195 sed 's/^/| /' conftest.$ac_ext >&5
6197 eval "$as_ac_Header=no"
6200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6202 ac_res=`eval echo '${'$as_ac_Header'}'`
6203 { echo "$as_me:$LINENO: result: $ac_res" >&5
6204 echo "${ECHO_T}$ac_res" >&6; }
6205 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6206 cat >>confdefs.h <<_ACEOF
6207 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6218 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6220 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6221 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6222 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6223 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6224 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6225 echo $ECHO_N "(cached) $ECHO_C" >&6
6227 ac_res=`eval echo '${'$as_ac_Header'}'`
6228 { echo "$as_me:$LINENO: result: $ac_res" >&5
6229 echo "${ECHO_T}$ac_res" >&6; }
6231 # Is the header compilable?
6232 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6233 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6234 cat >conftest.$ac_ext <<_ACEOF
6237 cat confdefs.h >>conftest.$ac_ext
6238 cat >>conftest.$ac_ext <<_ACEOF
6239 /* end confdefs.h. */
6240 $ac_includes_default
6241 #include <$ac_header>
6243 rm -f conftest.$ac_objext
6244 if { (ac_try="$ac_compile"
6246 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6247 *) ac_try_echo
=$ac_try;;
6249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6250 (eval "$ac_compile") 2>conftest.er1
6252 grep -v '^ *+' conftest.er1
>conftest.err
6254 cat conftest.err
>&5
6255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256 (exit $ac_status); } && {
6257 test -z "$ac_c_werror_flag" ||
6258 test ! -s conftest.err
6259 } && test -s conftest.
$ac_objext; then
6260 ac_header_compiler
=yes
6262 echo "$as_me: failed program was:" >&5
6263 sed 's/^/| /' conftest.
$ac_ext >&5
6265 ac_header_compiler
=no
6268 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6269 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6270 echo "${ECHO_T}$ac_header_compiler" >&6; }
6272 # Is the header present?
6273 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6274 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6275 cat >conftest.
$ac_ext <<_ACEOF
6278 cat confdefs.h
>>conftest.
$ac_ext
6279 cat >>conftest.
$ac_ext <<_ACEOF
6280 /* end confdefs.h. */
6281 #include <$ac_header>
6283 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6285 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6286 *) ac_try_echo=$ac_try;;
6288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6289 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6291 grep -v '^ *+' conftest.er1 >conftest.err
6293 cat conftest.err >&5
6294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295 (exit $ac_status); } >/dev/null && {
6296 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6297 test ! -s conftest.err
6299 ac_header_preproc=yes
6301 echo "$as_me: failed program was:" >&5
6302 sed 's/^/| /' conftest.$ac_ext >&5
6304 ac_header_preproc=no
6307 rm -f conftest.err conftest.$ac_ext
6308 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6309 echo "${ECHO_T}$ac_header_preproc" >&6; }
6311 # So? What about this header?
6312 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6314 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6315 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6316 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6317 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6318 ac_header_preproc=yes
6321 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6322 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6323 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6324 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6325 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6326 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6327 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6328 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6329 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6330 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6331 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6332 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6336 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6338 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6339 echo $ECHO_N "(cached) $ECHO_C" >&6
6341 eval "$as_ac_Header=\$ac_header_preproc"
6343 ac_res=`eval echo '${'$as_ac_Header'}'`
6344 { echo "$as_me:$LINENO: result: $ac_res" >&5
6345 echo "${ECHO_T}$ac_res" >&6; }
6348 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6349 cat >>confdefs.h <<_ACEOF
6350 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6357 # Emulation library used on NetBSD.
6358 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6359 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6360 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6361 echo $ECHO_N "(cached) $ECHO_C" >&6
6363 ac_check_lib_save_LIBS=$LIBS
6364 LIBS="-lossaudio $LIBS"
6365 cat >conftest.$ac_ext <<_ACEOF
6368 cat confdefs.h >>conftest.$ac_ext
6369 cat >>conftest.$ac_ext <<_ACEOF
6370 /* end confdefs.h. */
6372 /* Override any GCC internal prototype to avoid an error.
6373 Use char because int might match the return type of a GCC
6374 builtin and then its argument prototype would still apply. */
6382 return _oss_ioctl ();
6387 rm -f conftest.$ac_objext conftest$ac_exeext
6388 if { (ac_try="$ac_link"
6390 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6391 *) ac_try_echo
=$ac_try;;
6393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6394 (eval "$ac_link") 2>conftest.er1
6396 grep -v '^ *+' conftest.er1
>conftest.err
6398 cat conftest.err
>&5
6399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400 (exit $ac_status); } && {
6401 test -z "$ac_c_werror_flag" ||
6402 test ! -s conftest.err
6403 } && test -s conftest
$ac_exeext &&
6404 $as_test_x conftest
$ac_exeext; then
6405 ac_cv_lib_ossaudio__oss_ioctl
=yes
6407 echo "$as_me: failed program was:" >&5
6408 sed 's/^/| /' conftest.
$ac_ext >&5
6410 ac_cv_lib_ossaudio__oss_ioctl
=no
6413 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6414 conftest
$ac_exeext conftest.
$ac_ext
6415 LIBS
=$ac_check_lib_save_LIBS
6417 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6418 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6419 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6428 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6429 if test "X${with_pkg_config_prog}" != X
; then
6430 PKG_CONFIG
="${with_pkg_config_prog}"
6435 if test -z "$PKG_CONFIG"; then
6436 # Extract the first word of "pkg-config", so it can be a program name with args.
6437 set dummy pkg-config
; ac_word
=$2
6438 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6440 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6441 echo $ECHO_N "(cached) $ECHO_C" >&6
6445 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6448 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6452 test -z "$as_dir" && as_dir
=.
6453 for ac_exec_ext
in '' $ac_executable_extensions; do
6454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6455 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6463 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6467 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6468 if test -n "$PKG_CONFIG"; then
6469 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6470 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6472 { echo "$as_me:$LINENO: result: no" >&5
6473 echo "${ECHO_T}no" >&6; }
6479 if test "$PKG_CONFIG" = "no" ; then
6482 PKG_CONFIG_MIN_VERSION
=0.9.0
6483 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6484 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6485 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6487 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6488 { echo "$as_me:$LINENO: result: yes" >&5
6489 echo "${ECHO_T}yes" >&6; }
6492 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6493 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6494 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6495 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6496 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6498 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6499 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6500 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6501 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6502 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6504 { echo "$as_me:$LINENO: result: no" >&5
6505 echo "${ECHO_T}no" >&6; }
6508 ## If we have a custom action on failure, don't print errors, but
6509 ## do set a variable so people can do so.
6510 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6517 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6518 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6522 if test $succeeded = yes; then
6528 if test $HAVE_ALSA = yes; then
6529 SAVE_CFLAGS
="$CFLAGS"
6530 SAVE_LDFLAGS
="$LDFLAGS"
6531 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6532 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6533 cat >conftest.
$ac_ext <<_ACEOF
6536 cat confdefs.h
>>conftest.
$ac_ext
6537 cat >>conftest.
$ac_ext <<_ACEOF
6538 /* end confdefs.h. */
6539 #include <asoundlib.h>
6543 snd_lib_error_set_handler (0);
6548 rm -f conftest.
$ac_objext
6549 if { (ac_try
="$ac_compile"
6551 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6552 *) ac_try_echo=$ac_try;;
6554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6555 (eval "$ac_compile") 2>conftest.er1
6557 grep -v '^ *+' conftest.er1 >conftest.err
6559 cat conftest.err >&5
6560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561 (exit $ac_status); } && {
6562 test -z "$ac_c_werror_flag" ||
6563 test ! -s conftest.err
6564 } && test -s conftest.$ac_objext; then
6565 emacs_alsa_normal=yes
6567 echo "$as_me: failed program was:" >&5
6568 sed 's/^/| /' conftest.$ac_ext >&5
6570 emacs_alsa_normal=no
6573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6574 if test "$emacs_alsa_normal" != yes; then
6575 cat >conftest.$ac_ext <<_ACEOF
6578 cat confdefs.h >>conftest.$ac_ext
6579 cat >>conftest.$ac_ext <<_ACEOF
6580 /* end confdefs.h. */
6581 #include <alsa/asoundlib.h>
6585 snd_lib_error_set_handler (0);
6590 rm -f conftest.$ac_objext
6591 if { (ac_try="$ac_compile"
6593 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6594 *) ac_try_echo
=$ac_try;;
6596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6597 (eval "$ac_compile") 2>conftest.er1
6599 grep -v '^ *+' conftest.er1
>conftest.err
6601 cat conftest.err
>&5
6602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603 (exit $ac_status); } && {
6604 test -z "$ac_c_werror_flag" ||
6605 test ! -s conftest.err
6606 } && test -s conftest.
$ac_objext; then
6607 emacs_alsa_subdir
=yes
6609 echo "$as_me: failed program was:" >&5
6610 sed 's/^/| /' conftest.
$ac_ext >&5
6612 emacs_alsa_subdir
=no
6615 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6616 if test "$emacs_alsa_subdir" != yes; then
6617 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6618 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6619 { (exit 1); exit 1; }; }
6621 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6624 CFLAGS
="$SAVE_CFLAGS"
6625 LDFLAGS
="$SAVE_LDFLAGS"
6626 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6627 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6629 cat >>confdefs.h
<<\_ACEOF
6662 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6663 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6664 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6665 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6668 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6669 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6670 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6671 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6672 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6673 echo $ECHO_N "(cached) $ECHO_C" >&6
6675 ac_res
=`eval echo '${'$as_ac_Header'}'`
6676 { echo "$as_me:$LINENO: result: $ac_res" >&5
6677 echo "${ECHO_T}$ac_res" >&6; }
6679 # Is the header compilable?
6680 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6681 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6682 cat >conftest.
$ac_ext <<_ACEOF
6685 cat confdefs.h
>>conftest.
$ac_ext
6686 cat >>conftest.
$ac_ext <<_ACEOF
6687 /* end confdefs.h. */
6688 $ac_includes_default
6689 #include <$ac_header>
6691 rm -f conftest.
$ac_objext
6692 if { (ac_try
="$ac_compile"
6694 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6695 *) ac_try_echo=$ac_try;;
6697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6698 (eval "$ac_compile") 2>conftest.er1
6700 grep -v '^ *+' conftest.er1 >conftest.err
6702 cat conftest.err >&5
6703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6704 (exit $ac_status); } && {
6705 test -z "$ac_c_werror_flag" ||
6706 test ! -s conftest.err
6707 } && test -s conftest.$ac_objext; then
6708 ac_header_compiler=yes
6710 echo "$as_me: failed program was:" >&5
6711 sed 's/^/| /' conftest.$ac_ext >&5
6713 ac_header_compiler=no
6716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6717 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6718 echo "${ECHO_T}$ac_header_compiler" >&6; }
6720 # Is the header present?
6721 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6722 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6723 cat >conftest.$ac_ext <<_ACEOF
6726 cat confdefs.h >>conftest.$ac_ext
6727 cat >>conftest.$ac_ext <<_ACEOF
6728 /* end confdefs.h. */
6729 #include <$ac_header>
6731 if { (ac_try="$ac_cpp conftest.$ac_ext"
6733 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6734 *) ac_try_echo
=$ac_try;;
6736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6737 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6739 grep -v '^ *+' conftest.er1
>conftest.err
6741 cat conftest.err
>&5
6742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6743 (exit $ac_status); } >/dev
/null
&& {
6744 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6745 test ! -s conftest.err
6747 ac_header_preproc
=yes
6749 echo "$as_me: failed program was:" >&5
6750 sed 's/^/| /' conftest.
$ac_ext >&5
6752 ac_header_preproc
=no
6755 rm -f conftest.err conftest.
$ac_ext
6756 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6757 echo "${ECHO_T}$ac_header_preproc" >&6; }
6759 # So? What about this header?
6760 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6762 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6763 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6764 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6765 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6766 ac_header_preproc
=yes
6769 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6770 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6771 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6772 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6773 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6774 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6775 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6776 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6777 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6778 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6779 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6780 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6784 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6786 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6787 echo $ECHO_N "(cached) $ECHO_C" >&6
6789 eval "$as_ac_Header=\$ac_header_preproc"
6791 ac_res
=`eval echo '${'$as_ac_Header'}'`
6792 { echo "$as_me:$LINENO: result: $ac_res" >&5
6793 echo "${ECHO_T}$ac_res" >&6; }
6796 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6797 cat >>confdefs.h
<<_ACEOF
6798 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6806 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6807 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6808 cat >conftest.
$ac_ext <<_ACEOF
6811 cat confdefs.h
>>conftest.
$ac_ext
6812 cat >>conftest.
$ac_ext <<_ACEOF
6813 /* end confdefs.h. */
6814 #include <sys/personality.h>
6818 personality (PER_LINUX32)
6823 rm -f conftest.
$ac_objext
6824 if { (ac_try
="$ac_compile"
6826 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6827 *) ac_try_echo=$ac_try;;
6829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6830 (eval "$ac_compile") 2>conftest.er1
6832 grep -v '^ *+' conftest.er1 >conftest.err
6834 cat conftest.err >&5
6835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836 (exit $ac_status); } && {
6837 test -z "$ac_c_werror_flag" ||
6838 test ! -s conftest.err
6839 } && test -s conftest.$ac_objext; then
6840 emacs_cv_personality_linux32=yes
6842 echo "$as_me: failed program was:" >&5
6843 sed 's/^/| /' conftest.$ac_ext >&5
6845 emacs_cv_personality_linux32=no
6848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6849 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6850 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6852 if test $emacs_cv_personality_linux32 = yes; then
6854 cat >>confdefs.h <<\_ACEOF
6855 #define HAVE_PERSONALITY_LINUX32 1
6861 for ac_header in term.h
6863 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6864 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6865 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6866 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6867 echo $ECHO_N "(cached) $ECHO_C" >&6
6869 cat >conftest.$ac_ext <<_ACEOF
6872 cat confdefs.h >>conftest.$ac_ext
6873 cat >>conftest.$ac_ext <<_ACEOF
6874 /* end confdefs.h. */
6875 #include <$ac_header>
6877 if { (ac_try="$ac_cpp conftest.$ac_ext"
6879 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6880 *) ac_try_echo
=$ac_try;;
6882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6883 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6885 grep -v '^ *+' conftest.er1
>conftest.err
6887 cat conftest.err
>&5
6888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6889 (exit $ac_status); } >/dev
/null
&& {
6890 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6891 test ! -s conftest.err
6893 eval "$as_ac_Header=yes"
6895 echo "$as_me: failed program was:" >&5
6896 sed 's/^/| /' conftest.
$ac_ext >&5
6898 eval "$as_ac_Header=no"
6901 rm -f conftest.err conftest.
$ac_ext
6903 ac_res
=`eval echo '${'$as_ac_Header'}'`
6904 { echo "$as_me:$LINENO: result: $ac_res" >&5
6905 echo "${ECHO_T}$ac_res" >&6; }
6906 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6907 cat >>confdefs.h
<<_ACEOF
6908 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6915 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6916 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6917 if test "${ac_cv_header_stdc+set}" = set; then
6918 echo $ECHO_N "(cached) $ECHO_C" >&6
6920 cat >conftest.
$ac_ext <<_ACEOF
6923 cat confdefs.h
>>conftest.
$ac_ext
6924 cat >>conftest.
$ac_ext <<_ACEOF
6925 /* end confdefs.h. */
6939 rm -f conftest.
$ac_objext
6940 if { (ac_try
="$ac_compile"
6942 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6943 *) ac_try_echo=$ac_try;;
6945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6946 (eval "$ac_compile") 2>conftest.er1
6948 grep -v '^ *+' conftest.er1 >conftest.err
6950 cat conftest.err >&5
6951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6952 (exit $ac_status); } && {
6953 test -z "$ac_c_werror_flag" ||
6954 test ! -s conftest.err
6955 } && test -s conftest.$ac_objext; then
6956 ac_cv_header_stdc=yes
6958 echo "$as_me: failed program was:" >&5
6959 sed 's/^/| /' conftest.$ac_ext >&5
6961 ac_cv_header_stdc=no
6964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6966 if test $ac_cv_header_stdc = yes; then
6967 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6968 cat >conftest.$ac_ext <<_ACEOF
6971 cat confdefs.h >>conftest.$ac_ext
6972 cat >>conftest.$ac_ext <<_ACEOF
6973 /* end confdefs.h. */
6977 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6978 $EGREP "memchr" >/dev/null 2>&1; then
6981 ac_cv_header_stdc=no
6987 if test $ac_cv_header_stdc = yes; then
6988 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6989 cat >conftest.$ac_ext <<_ACEOF
6992 cat confdefs.h >>conftest.$ac_ext
6993 cat >>conftest.$ac_ext <<_ACEOF
6994 /* end confdefs.h. */
6998 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6999 $EGREP "free" >/dev/null 2>&1; then
7002 ac_cv_header_stdc=no
7008 if test $ac_cv_header_stdc = yes; then
7009 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7010 if test "$cross_compiling" = yes; then
7013 cat >conftest.$ac_ext <<_ACEOF
7016 cat confdefs.h >>conftest.$ac_ext
7017 cat >>conftest.$ac_ext <<_ACEOF
7018 /* end confdefs.h. */
7021 #if ((' ' & 0x0FF) == 0x020)
7022 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7023 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7025 # define ISLOWER(c) \
7026 (('a' <= (c) && (c) <= 'i') \
7027 || ('j' <= (c) && (c) <= 'r') \
7028 || ('s' <= (c) && (c) <= 'z'))
7029 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7032 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7037 for (i = 0; i < 256; i++)
7038 if (XOR (islower (i), ISLOWER (i))
7039 || toupper (i) != TOUPPER (i))
7044 rm -f conftest$ac_exeext
7045 if { (ac_try="$ac_link"
7047 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7048 *) ac_try_echo
=$ac_try;;
7050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7051 (eval "$ac_link") 2>&5
7053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7055 { (case "(($ac_try" in
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_try") 2>&5
7062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7063 (exit $ac_status); }; }; then
7066 echo "$as_me: program exited with status $ac_status" >&5
7067 echo "$as_me: failed program was:" >&5
7068 sed 's/^/| /' conftest.$ac_ext >&5
7071 ac_cv_header_stdc=no
7073 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7079 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7080 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7081 if test $ac_cv_header_stdc = yes; then
7083 cat >>confdefs.h <<\_ACEOF
7084 #define STDC_HEADERS 1
7089 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7090 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
7091 if test "${ac_cv_header_time+set}" = set; then
7092 echo $ECHO_N "(cached) $ECHO_C" >&6
7094 cat >conftest.$ac_ext <<_ACEOF
7097 cat confdefs.h >>conftest.$ac_ext
7098 cat >>conftest.$ac_ext <<_ACEOF
7099 /* end confdefs.h. */
7100 #include <sys/types.h>
7101 #include <sys/time.h>
7107 if ((struct tm *) 0)
7113 rm -f conftest.$ac_objext
7114 if { (ac_try="$ac_compile"
7116 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7117 *) ac_try_echo
=$ac_try;;
7119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7120 (eval "$ac_compile") 2>conftest.er1
7122 grep -v '^ *+' conftest.er1
>conftest.err
7124 cat conftest.err
>&5
7125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126 (exit $ac_status); } && {
7127 test -z "$ac_c_werror_flag" ||
7128 test ! -s conftest.err
7129 } && test -s conftest.
$ac_objext; then
7130 ac_cv_header_time
=yes
7132 echo "$as_me: failed program was:" >&5
7133 sed 's/^/| /' conftest.
$ac_ext >&5
7135 ac_cv_header_time
=no
7138 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7140 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7141 echo "${ECHO_T}$ac_cv_header_time" >&6; }
7142 if test $ac_cv_header_time = yes; then
7144 cat >>confdefs.h
<<\_ACEOF
7145 #define TIME_WITH_SYS_TIME 1
7150 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7151 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
7152 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7153 echo $ECHO_N "(cached) $ECHO_C" >&6
7155 cat >conftest.
$ac_ext <<_ACEOF
7158 cat confdefs.h
>>conftest.
$ac_ext
7159 cat >>conftest.
$ac_ext <<_ACEOF
7160 /* end confdefs.h. */
7161 $ac_includes_default
7173 rm -f conftest.
$ac_objext
7174 if { (ac_try
="$ac_compile"
7176 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7177 *) ac_try_echo=$ac_try;;
7179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7180 (eval "$ac_compile") 2>conftest.er1
7182 grep -v '^ *+' conftest.er1 >conftest.err
7184 cat conftest.err >&5
7185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7186 (exit $ac_status); } && {
7187 test -z "$ac_c_werror_flag" ||
7188 test ! -s conftest.err
7189 } && test -s conftest.$ac_objext; then
7190 ac_cv_have_decl_sys_siglist=yes
7192 echo "$as_me: failed program was:" >&5
7193 sed 's/^/| /' conftest.$ac_ext >&5
7195 ac_cv_have_decl_sys_siglist=no
7198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7200 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7201 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7202 if test $ac_cv_have_decl_sys_siglist = yes; then
7204 cat >>confdefs.h <<_ACEOF
7205 #define HAVE_DECL_SYS_SIGLIST 1
7210 cat >>confdefs.h <<_ACEOF
7211 #define HAVE_DECL_SYS_SIGLIST 0
7218 if test $ac_cv_have_decl_sys_siglist != yes; then
7219 # For Tru64, at least:
7220 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7221 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7222 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7223 echo $ECHO_N "(cached) $ECHO_C" >&6
7225 cat >conftest.$ac_ext <<_ACEOF
7228 cat confdefs.h >>conftest.$ac_ext
7229 cat >>conftest.$ac_ext <<_ACEOF
7230 /* end confdefs.h. */
7231 $ac_includes_default
7235 #ifndef __sys_siglist
7236 (void) __sys_siglist;
7243 rm -f conftest.$ac_objext
7244 if { (ac_try="$ac_compile"
7246 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7247 *) ac_try_echo
=$ac_try;;
7249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7250 (eval "$ac_compile") 2>conftest.er1
7252 grep -v '^ *+' conftest.er1
>conftest.err
7254 cat conftest.err
>&5
7255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7256 (exit $ac_status); } && {
7257 test -z "$ac_c_werror_flag" ||
7258 test ! -s conftest.err
7259 } && test -s conftest.
$ac_objext; then
7260 ac_cv_have_decl___sys_siglist
=yes
7262 echo "$as_me: failed program was:" >&5
7263 sed 's/^/| /' conftest.
$ac_ext >&5
7265 ac_cv_have_decl___sys_siglist
=no
7268 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7270 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7271 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7272 if test $ac_cv_have_decl___sys_siglist = yes; then
7274 cat >>confdefs.h
<<_ACEOF
7275 #define HAVE_DECL___SYS_SIGLIST 1
7280 cat >>confdefs.h
<<_ACEOF
7281 #define HAVE_DECL___SYS_SIGLIST 0
7288 if test $ac_cv_have_decl___sys_siglist = yes; then
7290 cat >>confdefs.h
<<\_ACEOF
7291 #define sys_siglist __sys_siglist
7296 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7297 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7298 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7299 echo $ECHO_N "(cached) $ECHO_C" >&6
7301 cat >conftest.
$ac_ext <<_ACEOF
7304 cat confdefs.h
>>conftest.
$ac_ext
7305 cat >>conftest.
$ac_ext <<_ACEOF
7306 /* end confdefs.h. */
7307 #include <sys/types.h>
7308 #include <sys/wait.h>
7310 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7313 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7321 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7326 rm -f conftest.
$ac_objext
7327 if { (ac_try
="$ac_compile"
7329 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7330 *) ac_try_echo=$ac_try;;
7332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7333 (eval "$ac_compile") 2>conftest.er1
7335 grep -v '^ *+' conftest.er1 >conftest.err
7337 cat conftest.err >&5
7338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7339 (exit $ac_status); } && {
7340 test -z "$ac_c_werror_flag" ||
7341 test ! -s conftest.err
7342 } && test -s conftest.$ac_objext; then
7343 ac_cv_header_sys_wait_h=yes
7345 echo "$as_me: failed program was:" >&5
7346 sed 's/^/| /' conftest.$ac_ext >&5
7348 ac_cv_header_sys_wait_h=no
7351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7353 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7354 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7355 if test $ac_cv_header_sys_wait_h = yes; then
7357 cat >>confdefs.h <<\_ACEOF
7358 #define HAVE_SYS_WAIT_H 1
7364 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7365 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7366 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7367 echo $ECHO_N "(cached) $ECHO_C" >&6
7369 cat >conftest.$ac_ext <<_ACEOF
7372 cat confdefs.h >>conftest.$ac_ext
7373 cat >>conftest.$ac_ext <<_ACEOF
7374 /* end confdefs.h. */
7375 #ifdef TIME_WITH_SYS_TIME
7376 #include <sys/time.h>
7379 #ifdef HAVE_SYS_TIME_H
7380 #include <sys/time.h>
7391 static struct utimbuf x; x.actime = x.modtime;
7396 rm -f conftest.$ac_objext
7397 if { (ac_try="$ac_compile"
7399 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7400 *) ac_try_echo
=$ac_try;;
7402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7403 (eval "$ac_compile") 2>conftest.er1
7405 grep -v '^ *+' conftest.er1
>conftest.err
7407 cat conftest.err
>&5
7408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7409 (exit $ac_status); } && {
7410 test -z "$ac_c_werror_flag" ||
7411 test ! -s conftest.err
7412 } && test -s conftest.
$ac_objext; then
7413 emacs_cv_struct_utimbuf
=yes
7415 echo "$as_me: failed program was:" >&5
7416 sed 's/^/| /' conftest.
$ac_ext >&5
7418 emacs_cv_struct_utimbuf
=no
7421 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7423 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7424 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7425 if test $emacs_cv_struct_utimbuf = yes; then
7427 cat >>confdefs.h
<<\_ACEOF
7428 #define HAVE_STRUCT_UTIMBUF 1
7433 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7434 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7435 if test "${ac_cv_type_signal+set}" = set; then
7436 echo $ECHO_N "(cached) $ECHO_C" >&6
7438 cat >conftest.
$ac_ext <<_ACEOF
7441 cat confdefs.h
>>conftest.
$ac_ext
7442 cat >>conftest.
$ac_ext <<_ACEOF
7443 /* end confdefs.h. */
7444 #include <sys/types.h>
7450 return *(signal (0, 0)) (0) == 1;
7455 rm -f conftest.
$ac_objext
7456 if { (ac_try
="$ac_compile"
7458 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7459 *) ac_try_echo=$ac_try;;
7461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7462 (eval "$ac_compile") 2>conftest.er1
7464 grep -v '^ *+' conftest.er1 >conftest.err
7466 cat conftest.err >&5
7467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7468 (exit $ac_status); } && {
7469 test -z "$ac_c_werror_flag" ||
7470 test ! -s conftest.err
7471 } && test -s conftest.$ac_objext; then
7472 ac_cv_type_signal=int
7474 echo "$as_me: failed program was:" >&5
7475 sed 's/^/| /' conftest.$ac_ext >&5
7477 ac_cv_type_signal=void
7480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7482 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7483 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7485 cat >>confdefs.h <<_ACEOF
7486 #define RETSIGTYPE $ac_cv_type_signal
7491 { echo "$as_me:$LINENO: checking for speed_t" >&5
7492 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7493 if test "${emacs_cv_speed_t+set}" = set; then
7494 echo $ECHO_N "(cached) $ECHO_C" >&6
7496 cat >conftest.$ac_ext <<_ACEOF
7499 cat confdefs.h >>conftest.$ac_ext
7500 cat >>conftest.$ac_ext <<_ACEOF
7501 /* end confdefs.h. */
7502 #include <termios.h>
7511 rm -f conftest.$ac_objext
7512 if { (ac_try="$ac_compile"
7514 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7515 *) ac_try_echo
=$ac_try;;
7517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7518 (eval "$ac_compile") 2>conftest.er1
7520 grep -v '^ *+' conftest.er1
>conftest.err
7522 cat conftest.err
>&5
7523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7524 (exit $ac_status); } && {
7525 test -z "$ac_c_werror_flag" ||
7526 test ! -s conftest.err
7527 } && test -s conftest.
$ac_objext; then
7528 emacs_cv_speed_t
=yes
7530 echo "$as_me: failed program was:" >&5
7531 sed 's/^/| /' conftest.
$ac_ext >&5
7536 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7538 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7539 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7540 if test $emacs_cv_speed_t = yes; then
7542 cat >>confdefs.h
<<\_ACEOF
7543 #define HAVE_SPEED_T 1
7548 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7549 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7550 if test "${emacs_cv_struct_timeval+set}" = set; then
7551 echo $ECHO_N "(cached) $ECHO_C" >&6
7553 cat >conftest.
$ac_ext <<_ACEOF
7556 cat confdefs.h
>>conftest.
$ac_ext
7557 cat >>conftest.
$ac_ext <<_ACEOF
7558 /* end confdefs.h. */
7559 #ifdef TIME_WITH_SYS_TIME
7560 #include <sys/time.h>
7563 #ifdef HAVE_SYS_TIME_H
7564 #include <sys/time.h>
7572 static struct timeval x; x.tv_sec = x.tv_usec;
7577 rm -f conftest.
$ac_objext
7578 if { (ac_try
="$ac_compile"
7580 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7581 *) ac_try_echo=$ac_try;;
7583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7584 (eval "$ac_compile") 2>conftest.er1
7586 grep -v '^ *+' conftest.er1 >conftest.err
7588 cat conftest.err >&5
7589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7590 (exit $ac_status); } && {
7591 test -z "$ac_c_werror_flag" ||
7592 test ! -s conftest.err
7593 } && test -s conftest.$ac_objext; then
7594 emacs_cv_struct_timeval=yes
7596 echo "$as_me: failed program was:" >&5
7597 sed 's/^/| /' conftest.$ac_ext >&5
7599 emacs_cv_struct_timeval=no
7602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7604 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7605 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7606 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7607 if test $emacs_cv_struct_timeval = yes; then
7609 cat >>confdefs.h <<\_ACEOF
7610 #define HAVE_TIMEVAL 1
7615 { echo "$as_me:$LINENO: checking for struct exception" >&5
7616 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7617 if test "${emacs_cv_struct_exception+set}" = set; then
7618 echo $ECHO_N "(cached) $ECHO_C" >&6
7620 cat >conftest.$ac_ext <<_ACEOF
7623 cat confdefs.h >>conftest.$ac_ext
7624 cat >>conftest.$ac_ext <<_ACEOF
7625 /* end confdefs.h. */
7630 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7635 rm -f conftest.$ac_objext
7636 if { (ac_try="$ac_compile"
7638 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7639 *) ac_try_echo
=$ac_try;;
7641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7642 (eval "$ac_compile") 2>conftest.er1
7644 grep -v '^ *+' conftest.er1
>conftest.err
7646 cat conftest.err
>&5
7647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7648 (exit $ac_status); } && {
7649 test -z "$ac_c_werror_flag" ||
7650 test ! -s conftest.err
7651 } && test -s conftest.
$ac_objext; then
7652 emacs_cv_struct_exception
=yes
7654 echo "$as_me: failed program was:" >&5
7655 sed 's/^/| /' conftest.
$ac_ext >&5
7657 emacs_cv_struct_exception
=no
7660 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7662 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7663 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7664 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7665 if test $emacs_cv_struct_exception != yes; then
7667 cat >>confdefs.h
<<\_ACEOF
7668 #define NO_MATHERR 1
7674 for ac_header
in sys
/socket.h
7676 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7677 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7678 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7679 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7680 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7681 echo $ECHO_N "(cached) $ECHO_C" >&6
7683 ac_res
=`eval echo '${'$as_ac_Header'}'`
7684 { echo "$as_me:$LINENO: result: $ac_res" >&5
7685 echo "${ECHO_T}$ac_res" >&6; }
7687 # Is the header compilable?
7688 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7689 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7690 cat >conftest.
$ac_ext <<_ACEOF
7693 cat confdefs.h
>>conftest.
$ac_ext
7694 cat >>conftest.
$ac_ext <<_ACEOF
7695 /* end confdefs.h. */
7696 $ac_includes_default
7697 #include <$ac_header>
7699 rm -f conftest.
$ac_objext
7700 if { (ac_try
="$ac_compile"
7702 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7703 *) ac_try_echo=$ac_try;;
7705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7706 (eval "$ac_compile") 2>conftest.er1
7708 grep -v '^ *+' conftest.er1 >conftest.err
7710 cat conftest.err >&5
7711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712 (exit $ac_status); } && {
7713 test -z "$ac_c_werror_flag" ||
7714 test ! -s conftest.err
7715 } && test -s conftest.$ac_objext; then
7716 ac_header_compiler=yes
7718 echo "$as_me: failed program was:" >&5
7719 sed 's/^/| /' conftest.$ac_ext >&5
7721 ac_header_compiler=no
7724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7725 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7726 echo "${ECHO_T}$ac_header_compiler" >&6; }
7728 # Is the header present?
7729 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7730 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7731 cat >conftest.$ac_ext <<_ACEOF
7734 cat confdefs.h >>conftest.$ac_ext
7735 cat >>conftest.$ac_ext <<_ACEOF
7736 /* end confdefs.h. */
7737 #include <$ac_header>
7739 if { (ac_try="$ac_cpp conftest.$ac_ext"
7741 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7742 *) ac_try_echo
=$ac_try;;
7744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7745 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7747 grep -v '^ *+' conftest.er1
>conftest.err
7749 cat conftest.err
>&5
7750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751 (exit $ac_status); } >/dev
/null
&& {
7752 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7753 test ! -s conftest.err
7755 ac_header_preproc
=yes
7757 echo "$as_me: failed program was:" >&5
7758 sed 's/^/| /' conftest.
$ac_ext >&5
7760 ac_header_preproc
=no
7763 rm -f conftest.err conftest.
$ac_ext
7764 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7765 echo "${ECHO_T}$ac_header_preproc" >&6; }
7767 # So? What about this header?
7768 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7770 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7771 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7772 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7773 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7774 ac_header_preproc
=yes
7777 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7778 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7779 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7780 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7781 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7782 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7783 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7784 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7785 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7786 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7787 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7788 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7792 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7793 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7794 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7795 echo $ECHO_N "(cached) $ECHO_C" >&6
7797 eval "$as_ac_Header=\$ac_header_preproc"
7799 ac_res
=`eval echo '${'$as_ac_Header'}'`
7800 { echo "$as_me:$LINENO: result: $ac_res" >&5
7801 echo "${ECHO_T}$ac_res" >&6; }
7804 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7805 cat >>confdefs.h
<<_ACEOF
7806 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7814 for ac_header
in net
/if.h
7816 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7817 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7818 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7819 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7820 echo $ECHO_N "(cached) $ECHO_C" >&6
7822 cat >conftest.
$ac_ext <<_ACEOF
7825 cat confdefs.h
>>conftest.
$ac_ext
7826 cat >>conftest.
$ac_ext <<_ACEOF
7827 /* end confdefs.h. */
7828 $ac_includes_default
7829 #if HAVE_SYS_SOCKET_H
7830 #include <sys/socket.h>
7833 #include <$ac_header>
7835 rm -f conftest.
$ac_objext
7836 if { (ac_try
="$ac_compile"
7838 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7839 *) ac_try_echo=$ac_try;;
7841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7842 (eval "$ac_compile") 2>conftest.er1
7844 grep -v '^ *+' conftest.er1 >conftest.err
7846 cat conftest.err >&5
7847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848 (exit $ac_status); } && {
7849 test -z "$ac_c_werror_flag" ||
7850 test ! -s conftest.err
7851 } && test -s conftest.$ac_objext; then
7852 eval "$as_ac_Header=yes"
7854 echo "$as_me: failed program was:" >&5
7855 sed 's/^/| /' conftest.$ac_ext >&5
7857 eval "$as_ac_Header=no"
7860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7862 ac_res=`eval echo '${'$as_ac_Header'}'`
7863 { echo "$as_me:$LINENO: result: $ac_res" >&5
7864 echo "${ECHO_T}$ac_res" >&6; }
7865 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7866 cat >>confdefs.h <<_ACEOF
7867 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7875 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7876 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7877 if test "${ac_cv_struct_tm+set}" = set; then
7878 echo $ECHO_N "(cached) $ECHO_C" >&6
7880 cat >conftest.$ac_ext <<_ACEOF
7883 cat confdefs.h >>conftest.$ac_ext
7884 cat >>conftest.$ac_ext <<_ACEOF
7885 /* end confdefs.h. */
7886 #include <sys/types.h>
7893 int *p = &tm.tm_sec;
7899 rm -f conftest.$ac_objext
7900 if { (ac_try="$ac_compile"
7902 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7903 *) ac_try_echo
=$ac_try;;
7905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7906 (eval "$ac_compile") 2>conftest.er1
7908 grep -v '^ *+' conftest.er1
>conftest.err
7910 cat conftest.err
>&5
7911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7912 (exit $ac_status); } && {
7913 test -z "$ac_c_werror_flag" ||
7914 test ! -s conftest.err
7915 } && test -s conftest.
$ac_objext; then
7916 ac_cv_struct_tm
=time.h
7918 echo "$as_me: failed program was:" >&5
7919 sed 's/^/| /' conftest.
$ac_ext >&5
7921 ac_cv_struct_tm
=sys
/time.h
7924 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7926 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7927 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7928 if test $ac_cv_struct_tm = sys
/time.h
; then
7930 cat >>confdefs.h
<<\_ACEOF
7931 #define TM_IN_SYS_TIME 1
7936 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7937 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7938 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7939 echo $ECHO_N "(cached) $ECHO_C" >&6
7941 cat >conftest.
$ac_ext <<_ACEOF
7944 cat confdefs.h
>>conftest.
$ac_ext
7945 cat >>conftest.
$ac_ext <<_ACEOF
7946 /* end confdefs.h. */
7947 #include <sys/types.h>
7948 #include <$ac_cv_struct_tm>
7954 static struct tm ac_aggr;
7955 if (ac_aggr.tm_zone)
7961 rm -f conftest.
$ac_objext
7962 if { (ac_try
="$ac_compile"
7964 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7965 *) ac_try_echo=$ac_try;;
7967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7968 (eval "$ac_compile") 2>conftest.er1
7970 grep -v '^ *+' conftest.er1 >conftest.err
7972 cat conftest.err >&5
7973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974 (exit $ac_status); } && {
7975 test -z "$ac_c_werror_flag" ||
7976 test ! -s conftest.err
7977 } && test -s conftest.$ac_objext; then
7978 ac_cv_member_struct_tm_tm_zone=yes
7980 echo "$as_me: failed program was:" >&5
7981 sed 's/^/| /' conftest.$ac_ext >&5
7983 cat >conftest.$ac_ext <<_ACEOF
7986 cat confdefs.h >>conftest.$ac_ext
7987 cat >>conftest.$ac_ext <<_ACEOF
7988 /* end confdefs.h. */
7989 #include <sys/types.h>
7990 #include <$ac_cv_struct_tm>
7996 static struct tm ac_aggr;
7997 if (sizeof ac_aggr.tm_zone)
8003 rm -f conftest.$ac_objext
8004 if { (ac_try="$ac_compile"
8006 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8007 *) ac_try_echo
=$ac_try;;
8009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8010 (eval "$ac_compile") 2>conftest.er1
8012 grep -v '^ *+' conftest.er1
>conftest.err
8014 cat conftest.err
>&5
8015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016 (exit $ac_status); } && {
8017 test -z "$ac_c_werror_flag" ||
8018 test ! -s conftest.err
8019 } && test -s conftest.
$ac_objext; then
8020 ac_cv_member_struct_tm_tm_zone
=yes
8022 echo "$as_me: failed program was:" >&5
8023 sed 's/^/| /' conftest.
$ac_ext >&5
8025 ac_cv_member_struct_tm_tm_zone
=no
8028 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8031 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8033 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8034 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
8035 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8037 cat >>confdefs.h
<<_ACEOF
8038 #define HAVE_STRUCT_TM_TM_ZONE 1
8044 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8046 cat >>confdefs.h
<<\_ACEOF
8047 #define HAVE_TM_ZONE 1
8051 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8052 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
8053 if test "${ac_cv_have_decl_tzname+set}" = set; then
8054 echo $ECHO_N "(cached) $ECHO_C" >&6
8056 cat >conftest.
$ac_ext <<_ACEOF
8059 cat confdefs.h
>>conftest.
$ac_ext
8060 cat >>conftest.
$ac_ext <<_ACEOF
8061 /* end confdefs.h. */
8075 rm -f conftest.
$ac_objext
8076 if { (ac_try
="$ac_compile"
8078 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8079 *) ac_try_echo=$ac_try;;
8081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8082 (eval "$ac_compile") 2>conftest.er1
8084 grep -v '^ *+' conftest.er1 >conftest.err
8086 cat conftest.err >&5
8087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088 (exit $ac_status); } && {
8089 test -z "$ac_c_werror_flag" ||
8090 test ! -s conftest.err
8091 } && test -s conftest.$ac_objext; then
8092 ac_cv_have_decl_tzname=yes
8094 echo "$as_me: failed program was:" >&5
8095 sed 's/^/| /' conftest.$ac_ext >&5
8097 ac_cv_have_decl_tzname=no
8100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8102 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8103 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
8104 if test $ac_cv_have_decl_tzname = yes; then
8106 cat >>confdefs.h <<_ACEOF
8107 #define HAVE_DECL_TZNAME 1
8112 cat >>confdefs.h <<_ACEOF
8113 #define HAVE_DECL_TZNAME 0
8120 { echo "$as_me:$LINENO: checking for tzname" >&5
8121 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
8122 if test "${ac_cv_var_tzname+set}" = set; then
8123 echo $ECHO_N "(cached) $ECHO_C" >&6
8125 cat >conftest.$ac_ext <<_ACEOF
8128 cat confdefs.h >>conftest.$ac_ext
8129 cat >>conftest.$ac_ext <<_ACEOF
8130 /* end confdefs.h. */
8132 #if !HAVE_DECL_TZNAME
8133 extern char *tzname[];
8139 return tzname[0][0];
8144 rm -f conftest.$ac_objext conftest$ac_exeext
8145 if { (ac_try="$ac_link"
8147 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8148 *) ac_try_echo
=$ac_try;;
8150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8151 (eval "$ac_link") 2>conftest.er1
8153 grep -v '^ *+' conftest.er1
>conftest.err
8155 cat conftest.err
>&5
8156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157 (exit $ac_status); } && {
8158 test -z "$ac_c_werror_flag" ||
8159 test ! -s conftest.err
8160 } && test -s conftest
$ac_exeext &&
8161 $as_test_x conftest
$ac_exeext; then
8162 ac_cv_var_tzname
=yes
8164 echo "$as_me: failed program was:" >&5
8165 sed 's/^/| /' conftest.
$ac_ext >&5
8170 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8171 conftest
$ac_exeext conftest.
$ac_ext
8173 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8174 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
8175 if test $ac_cv_var_tzname = yes; then
8177 cat >>confdefs.h
<<\_ACEOF
8178 #define HAVE_TZNAME 1
8184 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8185 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
8186 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8187 echo $ECHO_N "(cached) $ECHO_C" >&6
8189 cat >conftest.
$ac_ext <<_ACEOF
8192 cat confdefs.h
>>conftest.
$ac_ext
8193 cat >>conftest.
$ac_ext <<_ACEOF
8194 /* end confdefs.h. */
8200 static struct tm ac_aggr;
8201 if (ac_aggr.tm_gmtoff)
8207 rm -f conftest.
$ac_objext
8208 if { (ac_try
="$ac_compile"
8210 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8211 *) ac_try_echo=$ac_try;;
8213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8214 (eval "$ac_compile") 2>conftest.er1
8216 grep -v '^ *+' conftest.er1 >conftest.err
8218 cat conftest.err >&5
8219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8220 (exit $ac_status); } && {
8221 test -z "$ac_c_werror_flag" ||
8222 test ! -s conftest.err
8223 } && test -s conftest.$ac_objext; then
8224 ac_cv_member_struct_tm_tm_gmtoff=yes
8226 echo "$as_me: failed program was:" >&5
8227 sed 's/^/| /' conftest.$ac_ext >&5
8229 cat >conftest.$ac_ext <<_ACEOF
8232 cat confdefs.h >>conftest.$ac_ext
8233 cat >>conftest.$ac_ext <<_ACEOF
8234 /* end confdefs.h. */
8240 static struct tm ac_aggr;
8241 if (sizeof ac_aggr.tm_gmtoff)
8247 rm -f conftest.$ac_objext
8248 if { (ac_try="$ac_compile"
8250 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8251 *) ac_try_echo
=$ac_try;;
8253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8254 (eval "$ac_compile") 2>conftest.er1
8256 grep -v '^ *+' conftest.er1
>conftest.err
8258 cat conftest.err
>&5
8259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8260 (exit $ac_status); } && {
8261 test -z "$ac_c_werror_flag" ||
8262 test ! -s conftest.err
8263 } && test -s conftest.
$ac_objext; then
8264 ac_cv_member_struct_tm_tm_gmtoff
=yes
8266 echo "$as_me: failed program was:" >&5
8267 sed 's/^/| /' conftest.
$ac_ext >&5
8269 ac_cv_member_struct_tm_tm_gmtoff
=no
8272 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8275 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8277 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8278 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8279 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8281 cat >>confdefs.h
<<\_ACEOF
8282 #define HAVE_TM_GMTOFF 1
8287 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8288 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8289 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8290 echo $ECHO_N "(cached) $ECHO_C" >&6
8292 cat >conftest.
$ac_ext <<_ACEOF
8295 cat confdefs.h
>>conftest.
$ac_ext
8296 cat >>conftest.
$ac_ext <<_ACEOF
8297 /* end confdefs.h. */
8298 $ac_includes_default
8299 #if HAVE_SYS_SOCKET_H
8300 #include <sys/socket.h>
8309 static struct ifreq ac_aggr;
8310 if (ac_aggr.ifr_flags)
8316 rm -f conftest.
$ac_objext
8317 if { (ac_try
="$ac_compile"
8319 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8320 *) ac_try_echo=$ac_try;;
8322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8323 (eval "$ac_compile") 2>conftest.er1
8325 grep -v '^ *+' conftest.er1 >conftest.err
8327 cat conftest.err >&5
8328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329 (exit $ac_status); } && {
8330 test -z "$ac_c_werror_flag" ||
8331 test ! -s conftest.err
8332 } && test -s conftest.$ac_objext; then
8333 ac_cv_member_struct_ifreq_ifr_flags=yes
8335 echo "$as_me: failed program was:" >&5
8336 sed 's/^/| /' conftest.$ac_ext >&5
8338 cat >conftest.$ac_ext <<_ACEOF
8341 cat confdefs.h >>conftest.$ac_ext
8342 cat >>conftest.$ac_ext <<_ACEOF
8343 /* end confdefs.h. */
8344 $ac_includes_default
8345 #if HAVE_SYS_SOCKET_H
8346 #include <sys/socket.h>
8355 static struct ifreq ac_aggr;
8356 if (sizeof ac_aggr.ifr_flags)
8362 rm -f conftest.$ac_objext
8363 if { (ac_try="$ac_compile"
8365 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8366 *) ac_try_echo
=$ac_try;;
8368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8369 (eval "$ac_compile") 2>conftest.er1
8371 grep -v '^ *+' conftest.er1
>conftest.err
8373 cat conftest.err
>&5
8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375 (exit $ac_status); } && {
8376 test -z "$ac_c_werror_flag" ||
8377 test ! -s conftest.err
8378 } && test -s conftest.
$ac_objext; then
8379 ac_cv_member_struct_ifreq_ifr_flags
=yes
8381 echo "$as_me: failed program was:" >&5
8382 sed 's/^/| /' conftest.
$ac_ext >&5
8384 ac_cv_member_struct_ifreq_ifr_flags
=no
8387 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8390 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8392 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8393 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8394 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8396 cat >>confdefs.h
<<_ACEOF
8397 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8402 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8403 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8404 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8405 echo $ECHO_N "(cached) $ECHO_C" >&6
8407 cat >conftest.
$ac_ext <<_ACEOF
8410 cat confdefs.h
>>conftest.
$ac_ext
8411 cat >>conftest.
$ac_ext <<_ACEOF
8412 /* end confdefs.h. */
8413 $ac_includes_default
8414 #if HAVE_SYS_SOCKET_H
8415 #include <sys/socket.h>
8424 static struct ifreq ac_aggr;
8425 if (ac_aggr.ifr_hwaddr)
8431 rm -f conftest.
$ac_objext
8432 if { (ac_try
="$ac_compile"
8434 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8435 *) ac_try_echo=$ac_try;;
8437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8438 (eval "$ac_compile") 2>conftest.er1
8440 grep -v '^ *+' conftest.er1 >conftest.err
8442 cat conftest.err >&5
8443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8444 (exit $ac_status); } && {
8445 test -z "$ac_c_werror_flag" ||
8446 test ! -s conftest.err
8447 } && test -s conftest.$ac_objext; then
8448 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8450 echo "$as_me: failed program was:" >&5
8451 sed 's/^/| /' conftest.$ac_ext >&5
8453 cat >conftest.$ac_ext <<_ACEOF
8456 cat confdefs.h >>conftest.$ac_ext
8457 cat >>conftest.$ac_ext <<_ACEOF
8458 /* end confdefs.h. */
8459 $ac_includes_default
8460 #if HAVE_SYS_SOCKET_H
8461 #include <sys/socket.h>
8470 static struct ifreq ac_aggr;
8471 if (sizeof ac_aggr.ifr_hwaddr)
8477 rm -f conftest.$ac_objext
8478 if { (ac_try="$ac_compile"
8480 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8481 *) ac_try_echo
=$ac_try;;
8483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8484 (eval "$ac_compile") 2>conftest.er1
8486 grep -v '^ *+' conftest.er1
>conftest.err
8488 cat conftest.err
>&5
8489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490 (exit $ac_status); } && {
8491 test -z "$ac_c_werror_flag" ||
8492 test ! -s conftest.err
8493 } && test -s conftest.
$ac_objext; then
8494 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8496 echo "$as_me: failed program was:" >&5
8497 sed 's/^/| /' conftest.
$ac_ext >&5
8499 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8502 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8505 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8507 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8508 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8509 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8511 cat >>confdefs.h
<<_ACEOF
8512 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8517 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8518 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8519 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8520 echo $ECHO_N "(cached) $ECHO_C" >&6
8522 cat >conftest.
$ac_ext <<_ACEOF
8525 cat confdefs.h
>>conftest.
$ac_ext
8526 cat >>conftest.
$ac_ext <<_ACEOF
8527 /* end confdefs.h. */
8528 $ac_includes_default
8529 #if HAVE_SYS_SOCKET_H
8530 #include <sys/socket.h>
8539 static struct ifreq ac_aggr;
8540 if (ac_aggr.ifr_netmask)
8546 rm -f conftest.
$ac_objext
8547 if { (ac_try
="$ac_compile"
8549 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8550 *) ac_try_echo=$ac_try;;
8552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8553 (eval "$ac_compile") 2>conftest.er1
8555 grep -v '^ *+' conftest.er1 >conftest.err
8557 cat conftest.err >&5
8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 (exit $ac_status); } && {
8560 test -z "$ac_c_werror_flag" ||
8561 test ! -s conftest.err
8562 } && test -s conftest.$ac_objext; then
8563 ac_cv_member_struct_ifreq_ifr_netmask=yes
8565 echo "$as_me: failed program was:" >&5
8566 sed 's/^/| /' conftest.$ac_ext >&5
8568 cat >conftest.$ac_ext <<_ACEOF
8571 cat confdefs.h >>conftest.$ac_ext
8572 cat >>conftest.$ac_ext <<_ACEOF
8573 /* end confdefs.h. */
8574 $ac_includes_default
8575 #if HAVE_SYS_SOCKET_H
8576 #include <sys/socket.h>
8585 static struct ifreq ac_aggr;
8586 if (sizeof ac_aggr.ifr_netmask)
8592 rm -f conftest.$ac_objext
8593 if { (ac_try="$ac_compile"
8595 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8596 *) ac_try_echo
=$ac_try;;
8598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8599 (eval "$ac_compile") 2>conftest.er1
8601 grep -v '^ *+' conftest.er1
>conftest.err
8603 cat conftest.err
>&5
8604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605 (exit $ac_status); } && {
8606 test -z "$ac_c_werror_flag" ||
8607 test ! -s conftest.err
8608 } && test -s conftest.
$ac_objext; then
8609 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8611 echo "$as_me: failed program was:" >&5
8612 sed 's/^/| /' conftest.
$ac_ext >&5
8614 ac_cv_member_struct_ifreq_ifr_netmask
=no
8617 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8620 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8622 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8623 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8624 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8626 cat >>confdefs.h
<<_ACEOF
8627 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8632 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8633 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8634 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8635 echo $ECHO_N "(cached) $ECHO_C" >&6
8637 cat >conftest.
$ac_ext <<_ACEOF
8640 cat confdefs.h
>>conftest.
$ac_ext
8641 cat >>conftest.
$ac_ext <<_ACEOF
8642 /* end confdefs.h. */
8643 $ac_includes_default
8644 #if HAVE_SYS_SOCKET_H
8645 #include <sys/socket.h>
8654 static struct ifreq ac_aggr;
8655 if (ac_aggr.ifr_broadaddr)
8661 rm -f conftest.
$ac_objext
8662 if { (ac_try
="$ac_compile"
8664 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8665 *) ac_try_echo=$ac_try;;
8667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8668 (eval "$ac_compile") 2>conftest.er1
8670 grep -v '^ *+' conftest.er1 >conftest.err
8672 cat conftest.err >&5
8673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674 (exit $ac_status); } && {
8675 test -z "$ac_c_werror_flag" ||
8676 test ! -s conftest.err
8677 } && test -s conftest.$ac_objext; then
8678 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8680 echo "$as_me: failed program was:" >&5
8681 sed 's/^/| /' conftest.$ac_ext >&5
8683 cat >conftest.$ac_ext <<_ACEOF
8686 cat confdefs.h >>conftest.$ac_ext
8687 cat >>conftest.$ac_ext <<_ACEOF
8688 /* end confdefs.h. */
8689 $ac_includes_default
8690 #if HAVE_SYS_SOCKET_H
8691 #include <sys/socket.h>
8700 static struct ifreq ac_aggr;
8701 if (sizeof ac_aggr.ifr_broadaddr)
8707 rm -f conftest.$ac_objext
8708 if { (ac_try="$ac_compile"
8710 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8711 *) ac_try_echo
=$ac_try;;
8713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8714 (eval "$ac_compile") 2>conftest.er1
8716 grep -v '^ *+' conftest.er1
>conftest.err
8718 cat conftest.err
>&5
8719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720 (exit $ac_status); } && {
8721 test -z "$ac_c_werror_flag" ||
8722 test ! -s conftest.err
8723 } && test -s conftest.
$ac_objext; then
8724 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
8726 echo "$as_me: failed program was:" >&5
8727 sed 's/^/| /' conftest.
$ac_ext >&5
8729 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
8732 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8735 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8737 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8738 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8739 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8741 cat >>confdefs.h
<<_ACEOF
8742 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8747 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8748 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8749 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8750 echo $ECHO_N "(cached) $ECHO_C" >&6
8752 cat >conftest.
$ac_ext <<_ACEOF
8755 cat confdefs.h
>>conftest.
$ac_ext
8756 cat >>conftest.
$ac_ext <<_ACEOF
8757 /* end confdefs.h. */
8758 $ac_includes_default
8759 #if HAVE_SYS_SOCKET_H
8760 #include <sys/socket.h>
8769 static struct ifreq ac_aggr;
8770 if (ac_aggr.ifr_addr)
8776 rm -f conftest.
$ac_objext
8777 if { (ac_try
="$ac_compile"
8779 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8780 *) ac_try_echo=$ac_try;;
8782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8783 (eval "$ac_compile") 2>conftest.er1
8785 grep -v '^ *+' conftest.er1 >conftest.err
8787 cat conftest.err >&5
8788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8789 (exit $ac_status); } && {
8790 test -z "$ac_c_werror_flag" ||
8791 test ! -s conftest.err
8792 } && test -s conftest.$ac_objext; then
8793 ac_cv_member_struct_ifreq_ifr_addr=yes
8795 echo "$as_me: failed program was:" >&5
8796 sed 's/^/| /' conftest.$ac_ext >&5
8798 cat >conftest.$ac_ext <<_ACEOF
8801 cat confdefs.h >>conftest.$ac_ext
8802 cat >>conftest.$ac_ext <<_ACEOF
8803 /* end confdefs.h. */
8804 $ac_includes_default
8805 #if HAVE_SYS_SOCKET_H
8806 #include <sys/socket.h>
8815 static struct ifreq ac_aggr;
8816 if (sizeof ac_aggr.ifr_addr)
8822 rm -f conftest.$ac_objext
8823 if { (ac_try="$ac_compile"
8825 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8826 *) ac_try_echo
=$ac_try;;
8828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8829 (eval "$ac_compile") 2>conftest.er1
8831 grep -v '^ *+' conftest.er1
>conftest.err
8833 cat conftest.err
>&5
8834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835 (exit $ac_status); } && {
8836 test -z "$ac_c_werror_flag" ||
8837 test ! -s conftest.err
8838 } && test -s conftest.
$ac_objext; then
8839 ac_cv_member_struct_ifreq_ifr_addr
=yes
8841 echo "$as_me: failed program was:" >&5
8842 sed 's/^/| /' conftest.
$ac_ext >&5
8844 ac_cv_member_struct_ifreq_ifr_addr
=no
8847 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8850 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8852 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8853 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8854 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8856 cat >>confdefs.h
<<_ACEOF
8857 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8865 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8866 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8867 if test "$ac_cv_prog_cc_c89" != no
; then
8868 { echo "$as_me:$LINENO: result: yes" >&5
8869 echo "${ECHO_T}yes" >&6; }
8871 cat >>confdefs.h
<<\_ACEOF
8872 #define PROTOTYPES 1
8876 cat >>confdefs.h
<<\_ACEOF
8877 #define __PROTOTYPES 1
8881 { echo "$as_me:$LINENO: result: no" >&5
8882 echo "${ECHO_T}no" >&6; }
8885 { echo "$as_me:$LINENO: checking for working volatile" >&5
8886 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8887 if test "${ac_cv_c_volatile+set}" = set; then
8888 echo $ECHO_N "(cached) $ECHO_C" >&6
8890 cat >conftest.
$ac_ext <<_ACEOF
8893 cat confdefs.h
>>conftest.
$ac_ext
8894 cat >>conftest.
$ac_ext <<_ACEOF
8895 /* end confdefs.h. */
8902 int * volatile y = (int *) 0;
8908 rm -f conftest.
$ac_objext
8909 if { (ac_try
="$ac_compile"
8911 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8912 *) ac_try_echo=$ac_try;;
8914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8915 (eval "$ac_compile") 2>conftest.er1
8917 grep -v '^ *+' conftest.er1 >conftest.err
8919 cat conftest.err >&5
8920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8921 (exit $ac_status); } && {
8922 test -z "$ac_c_werror_flag" ||
8923 test ! -s conftest.err
8924 } && test -s conftest.$ac_objext; then
8925 ac_cv_c_volatile=yes
8927 echo "$as_me: failed program was:" >&5
8928 sed 's/^/| /' conftest.$ac_ext >&5
8933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8935 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8936 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8937 if test $ac_cv_c_volatile = no; then
8939 cat >>confdefs.h <<\_ACEOF
8945 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8946 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8947 if test "${ac_cv_c_const+set}" = set; then
8948 echo $ECHO_N "(cached) $ECHO_C" >&6
8950 cat >conftest.$ac_ext <<_ACEOF
8953 cat confdefs.h >>conftest.$ac_ext
8954 cat >>conftest.$ac_ext <<_ACEOF
8955 /* end confdefs.h. */
8960 /* FIXME: Include the comments suggested by Paul. */
8962 /* Ultrix mips cc rejects this. */
8963 typedef int charset[2];
8965 /* SunOS 4.1.1 cc rejects this. */
8966 char const *const *pcpcc;
8968 /* NEC SVR4.0.2 mips cc rejects this. */
8969 struct point {int x, y;};
8970 static struct point const zero = {0,0};
8971 /* AIX XL C 1.02.0.0 rejects this.
8972 It does not let you subtract one const X* pointer from another in
8973 an arm of an if-expression whose if-part is not a constant
8975 const char *g = "string";
8976 pcpcc = &g + (g ? g-g : 0);
8977 /* HPUX 7.0 cc rejects these. */
8979 ppc = (char**) pcpcc;
8980 pcpcc = (char const *const *) ppc;
8981 { /* SCO 3.2v4 cc rejects this. */
8983 char const *s = 0 ? (char *) 0 : (char const *) 0;
8988 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8990 const int *foo = &x[0];
8993 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8994 typedef const int *iptr;
8998 { /* AIX XL C 1.02.0.0 rejects this saying
8999 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9000 struct s { int j; const int *ap[3]; };
9001 struct s *b; b->j = 5;
9003 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9007 return !cs[0] && !zero.x;
9014 rm -f conftest.$ac_objext
9015 if { (ac_try="$ac_compile"
9017 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9018 *) ac_try_echo
=$ac_try;;
9020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9021 (eval "$ac_compile") 2>conftest.er1
9023 grep -v '^ *+' conftest.er1
>conftest.err
9025 cat conftest.err
>&5
9026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9027 (exit $ac_status); } && {
9028 test -z "$ac_c_werror_flag" ||
9029 test ! -s conftest.err
9030 } && test -s conftest.
$ac_objext; then
9033 echo "$as_me: failed program was:" >&5
9034 sed 's/^/| /' conftest.
$ac_ext >&5
9039 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9041 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9042 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9043 if test $ac_cv_c_const = no
; then
9045 cat >>confdefs.h
<<\_ACEOF
9051 { echo "$as_me:$LINENO: checking for void * support" >&5
9052 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
9053 if test "${emacs_cv_void_star+set}" = set; then
9054 echo $ECHO_N "(cached) $ECHO_C" >&6
9056 cat >conftest.
$ac_ext <<_ACEOF
9059 cat confdefs.h
>>conftest.
$ac_ext
9060 cat >>conftest.
$ac_ext <<_ACEOF
9061 /* end confdefs.h. */
9071 rm -f conftest.
$ac_objext
9072 if { (ac_try
="$ac_compile"
9074 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9075 *) ac_try_echo=$ac_try;;
9077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9078 (eval "$ac_compile") 2>conftest.er1
9080 grep -v '^ *+' conftest.er1 >conftest.err
9082 cat conftest.err >&5
9083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9084 (exit $ac_status); } && {
9085 test -z "$ac_c_werror_flag" ||
9086 test ! -s conftest.err
9087 } && test -s conftest.$ac_objext; then
9088 emacs_cv_void_star=yes
9090 echo "$as_me: failed program was:" >&5
9091 sed 's/^/| /' conftest.$ac_ext >&5
9093 emacs_cv_void_star=no
9096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9098 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9099 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
9100 if test $emacs_cv_void_star = yes; then
9101 cat >>confdefs.h <<\_ACEOF
9102 #define POINTER_TYPE void
9106 cat >>confdefs.h <<\_ACEOF
9107 #define POINTER_TYPE char
9116 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9117 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
9118 set x ${MAKE-make}; ac_make=`echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9119 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9120 echo $ECHO_N "(cached) $ECHO_C" >&6
9122 cat >conftest.make <<\_ACEOF
9125 @echo '@@@%%%=$(MAKE)=@@@%%%'
9127 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9128 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
9130 eval ac_cv_prog_make_${ac_make}_set=yes;;
9132 eval ac_cv_prog_make_${ac_make}_set=no;;
9136 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9137 { echo "$as_me:$LINENO: result: yes" >&5
9138 echo "${ECHO_T}yes" >&6; }
9141 { echo "$as_me:$LINENO: result: no" >&5
9142 echo "${ECHO_T}no" >&6; }
9143 SET_MAKE="MAKE=${MAKE-make}"
9147 { echo "$as_me:$LINENO: checking for long file names" >&5
9148 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
9149 if test "${ac_cv_sys_long_file_names+set}" = set; then
9150 echo $ECHO_N "(cached) $ECHO_C" >&6
9152 ac_cv_sys_long_file_names=yes
9153 # Test for long file names in all the places we know might matter:
9154 # . the current directory, where building will happen
9155 # $prefix/lib where we will be installing things
9156 # $exec_prefix/lib likewise
9157 # $TMPDIR if set, where it might want to write temporary files
9158 # /tmp where it might want to write temporary files
9161 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9162 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9163 # in the usual case where exec_prefix is '${prefix}'.
9165 . | /* | ?:[\\/]*) ;; #(
9168 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9169 ac_xdir=$ac_dir/cf$$
9170 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9171 ac_tf1=$ac_xdir/conftest9012345
9172 ac_tf2=$ac_xdir/conftest9012346
9173 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9174 ac_cv_sys_long_file_names=no
9175 rm -f -r "$ac_xdir" 2>/dev/null
9176 test $ac_cv_sys_long_file_names = no && break
9179 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9180 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9181 if test $ac_cv_sys_long_file_names = yes; then
9183 cat >>confdefs.h <<\_ACEOF
9184 #define HAVE_LONG_FILE_NAMES 1
9190 #### Choose a window system.
9192 { echo "$as_me:$LINENO: checking for X" >&5
9193 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9196 # Check whether --with-x was given.
9197 if test "${with_x+set}" = set; then
9201 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9202 if test "x$with_x" = xno; then
9203 # The user explicitly disabled X.
9206 case $x_includes,$x_libraries in #(
9207 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9208 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9209 { (exit 1); exit 1; }; };; #(
9210 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9211 echo $ECHO_N "(cached) $ECHO_C" >&6
9213 # One or both of the vars are not set, and there is no cached value.
9214 ac_x_includes=no ac_x_libraries=no
9215 rm -f -r conftest.dir
9216 if mkdir conftest.dir; then
9218 cat >Imakefile <<'_ACEOF'
9220 @echo incroot='${INCROOT}'
9222 @echo usrlibdir='${USRLIBDIR}'
9224 @echo libdir='${LIBDIR}'
9226 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9227 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9228 for ac_var in incroot usrlibdir libdir; do
9229 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
9231 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9232 for ac_extension in a so sl; do
9233 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9234 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9235 ac_im_usrlibdir=$ac_im_libdir; break
9238 # Screen out bogus values from the imake configuration. They are
9239 # bogus both because they are the default anyway, and because
9240 # using them would break gcc on systems where it needs fixed includes.
9241 case $ac_im_incroot in
9242 /usr/include) ac_x_includes= ;;
9243 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9245 case $ac_im_usrlibdir in
9247 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9251 rm -f -r conftest.dir
9254 # Standard set of common directories for X headers.
9255 # Check X11 before X11Rn because it is often a symlink to the current release.
9267 /usr/local/X11/include
9268 /usr/local/X11R6/include
9269 /usr/local/X11R5/include
9270 /usr/local/X11R4/include
9272 /usr/local/include/X11
9273 /usr/local/include/X11R6
9274 /usr/local/include/X11R5
9275 /usr/local/include/X11R4
9279 /usr/XFree86/include/X11
9283 /usr/unsupported/include
9285 /usr/local/x11r5/include
9286 /usr/lpp/Xamples/include
9288 /usr/openwin/include
9289 /usr/openwin/share/include'
9291 if test "$ac_x_includes" = no; then
9292 # Guess where to find include files, by looking for Xlib.h.
9293 # First, try using that file with no special directory specified.
9294 cat >conftest.$ac_ext <<_ACEOF
9297 cat confdefs.h >>conftest.$ac_ext
9298 cat >>conftest.$ac_ext <<_ACEOF
9299 /* end confdefs.h. */
9300 #include <X11/Xlib.h>
9302 if { (ac_try="$ac_cpp conftest.$ac_ext"
9304 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9305 *) ac_try_echo
=$ac_try;;
9307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9308 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9310 grep -v '^ *+' conftest.er1
>conftest.err
9312 cat conftest.err
>&5
9313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9314 (exit $ac_status); } >/dev
/null
&& {
9315 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9316 test ! -s conftest.err
9318 # We can compile using X headers with no special include directory.
9321 echo "$as_me: failed program was:" >&5
9322 sed 's/^/| /' conftest.
$ac_ext >&5
9324 for ac_dir
in $ac_x_header_dirs; do
9325 if test -r "$ac_dir/X11/Xlib.h"; then
9326 ac_x_includes
=$ac_dir
9332 rm -f conftest.err conftest.
$ac_ext
9333 fi # $ac_x_includes = no
9335 if test "$ac_x_libraries" = no
; then
9336 # Check for the libraries.
9337 # See if we find them without any special options.
9338 # Don't add to $LIBS permanently.
9341 cat >conftest.
$ac_ext <<_ACEOF
9344 cat confdefs.h
>>conftest.
$ac_ext
9345 cat >>conftest.
$ac_ext <<_ACEOF
9346 /* end confdefs.h. */
9347 #include <X11/Xlib.h>
9356 rm -f conftest.
$ac_objext conftest
$ac_exeext
9357 if { (ac_try
="$ac_link"
9359 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9360 *) ac_try_echo=$ac_try;;
9362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9363 (eval "$ac_link") 2>conftest.er1
9365 grep -v '^ *+' conftest.er1 >conftest.err
9367 cat conftest.err >&5
9368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9369 (exit $ac_status); } && {
9370 test -z "$ac_c_werror_flag" ||
9371 test ! -s conftest.err
9372 } && test -s conftest$ac_exeext &&
9373 $as_test_x conftest$ac_exeext; then
9375 # We can link X programs with no special library path.
9378 echo "$as_me: failed program was:" >&5
9379 sed 's/^/| /' conftest.$ac_ext >&5
9382 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
9384 # Don't even attempt the hair of trying to link an X program!
9385 for ac_extension in a so sl; do
9386 if test -r "$ac_dir/libX11.$ac_extension"; then
9387 ac_x_libraries=$ac_dir
9394 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9395 conftest$ac_exeext conftest.$ac_ext
9396 fi # $ac_x_libraries = no
9398 case $ac_x_includes,$ac_x_libraries in #(
9400 # Didn't find X, or a directory has "'" in its name.
9401 ac_cv_have_x="have_x=no";; #(
9403 # Record where we found X for the cache.
9404 ac_cv_have_x="have_x=yes\
9405 ac_x_includes='$ac_x_includes'\
9406 ac_x_libraries='$ac_x_libraries'"
9412 eval "$ac_cv_have_x"
9415 if test "$have_x" != yes; then
9416 { echo "$as_me:$LINENO: result: $have_x" >&5
9417 echo "${ECHO_T}$have_x" >&6; }
9420 # If each of the values was on the command line, it overrides each guess.
9421 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9422 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9423 # Update the cache value to reflect the command line values.
9424 ac_cv_have_x="have_x=yes\
9425 ac_x_includes='$x_includes'\
9426 ac_x_libraries='$x_libraries'"
9427 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9428 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9431 if test "$no_x" = yes; then
9437 if test "${x_libraries}" != NONE; then
9438 if test -n "${x_libraries}"; then
9439 LD_SWITCH_X_SITE=-L`echo ${x_libraries} |
sed -e "s/:/ -L/g"`
9440 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} |
sed -e "s/:/ -R/g"`
9442 x_default_search_path=""
9443 x_search_path=${x_libraries}
9444 if test -z "${x_search_path}"; then
9445 x_search_path=/usr/lib
9447 for x_library in `echo ${x_search_path}: | \
9448 sed -e "s/:/ /g" -e p
-e "s:/lib[^ /]* :/share :g"`; do
9450 ${x_library}/X11/%L/%T/%N%C%S:\
9451 ${x_library}/X11/%l/%T/%N%C%S:\
9452 ${x_library}/X11/%T/%N%C%S:\
9453 ${x_library}/X11/%L/%T/%N%S:\
9454 ${x_library}/X11/%l/%T/%N%S:\
9455 ${x_library}/X11/%T/%N%S"
9456 if test x"${x_default_search_path}" = x; then
9457 x_default_search_path=${x_search_path}
9459 x_default_search_path="${x_search_path}:${x_default_search_path}"
9463 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9464 C_SWITCH_X_SITE=-I`echo ${x_includes} |
sed -e "s/:/ -I/g"`
9467 if test x"${x_includes}" = x; then
9468 bitmapdir=/usr/include/X11/bitmaps
9470 # accumulate include directories that have X11 bitmap subdirectories
9472 for bmd in `echo ${x_includes} |
sed -e "s/:/ /g"`; do
9473 if test -d "${bmd}/X11/bitmaps"; then
9474 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9476 if test -d "${bmd}/bitmaps"; then
9477 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9480 if test ${bmd_acc} != "dummyval"; then
9481 bitmapdir=`echo ${bmd_acc} |
sed -e "s/^dummyval://"`
9486 if test "${with_carbon}" != no; then
9487 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9488 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9489 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9490 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9491 echo $ECHO_N "(cached) $ECHO_C" >&6
9493 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9494 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9496 # Is the header compilable?
9497 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9498 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9499 cat >conftest.$ac_ext <<_ACEOF
9502 cat confdefs.h >>conftest.$ac_ext
9503 cat >>conftest.$ac_ext <<_ACEOF
9504 /* end confdefs.h. */
9505 $ac_includes_default
9506 #include <Carbon/Carbon.h>
9508 rm -f conftest.$ac_objext
9509 if { (ac_try="$ac_compile"
9511 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9512 *) ac_try_echo
=$ac_try;;
9514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9515 (eval "$ac_compile") 2>conftest.er1
9517 grep -v '^ *+' conftest.er1
>conftest.err
9519 cat conftest.err
>&5
9520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521 (exit $ac_status); } && {
9522 test -z "$ac_c_werror_flag" ||
9523 test ! -s conftest.err
9524 } && test -s conftest.
$ac_objext; then
9525 ac_header_compiler
=yes
9527 echo "$as_me: failed program was:" >&5
9528 sed 's/^/| /' conftest.
$ac_ext >&5
9530 ac_header_compiler
=no
9533 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9534 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9535 echo "${ECHO_T}$ac_header_compiler" >&6; }
9537 # Is the header present?
9538 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9539 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9540 cat >conftest.
$ac_ext <<_ACEOF
9543 cat confdefs.h
>>conftest.
$ac_ext
9544 cat >>conftest.
$ac_ext <<_ACEOF
9545 /* end confdefs.h. */
9546 #include <Carbon/Carbon.h>
9548 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9550 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9551 *) ac_try_echo=$ac_try;;
9553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9554 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9556 grep -v '^ *+' conftest.er1 >conftest.err
9558 cat conftest.err >&5
9559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9560 (exit $ac_status); } >/dev/null && {
9561 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9562 test ! -s conftest.err
9564 ac_header_preproc=yes
9566 echo "$as_me: failed program was:" >&5
9567 sed 's/^/| /' conftest.$ac_ext >&5
9569 ac_header_preproc=no
9572 rm -f conftest.err conftest.$ac_ext
9573 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9574 echo "${ECHO_T}$ac_header_preproc" >&6; }
9576 # So? What about this header?
9577 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9579 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9580 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9581 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9582 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9583 ac_header_preproc=yes
9586 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9587 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9588 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9589 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9590 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9591 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9592 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9593 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9594 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9595 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9596 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9597 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9601 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9602 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9603 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9604 echo $ECHO_N "(cached) $ECHO_C" >&6
9606 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9608 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9609 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9612 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9618 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9619 if test "${with_carbon+set}" != set \
9620 && test "${carbon_appdir_x+set}" != set; then
9621 for var in with_x with_x_toolkit with_gtk with_xim \
9622 with_xpm with_jpeg with_tiff with_gif with_png; do
9623 if eval test \"\${$var+set}\" = set; then
9630 if test "${HAVE_CARBON}" = yes; then
9634 case "${window_system}" in
9638 case "${with_x_toolkit}" in
9639 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9640 motif ) USE_X_TOOLKIT=MOTIF ;;
9642 USE_X_TOOLKIT=none ;;
9643 no ) USE_X_TOOLKIT=none ;;
9645 if test x"$with_gtk" = xyes; then
9660 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9661 # Extract the first word of "X", so it can be a program name with args.
9662 set dummy X; ac_word=$2
9663 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9665 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9666 echo $ECHO_N "(cached) $ECHO_C" >&6
9668 if test -n "$HAVE_XSERVER"; then
9669 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9675 test -z "$as_dir" && as_dir=.
9676 for ac_exec_ext in '' $ac_executable_extensions; do
9677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9678 ac_cv_prog_HAVE_XSERVER="true"
9679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9686 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9689 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9690 if test -n "$HAVE_XSERVER"; then
9691 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9692 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9694 { echo "$as_me:$LINENO: result: no" >&5
9695 echo "${ECHO_T}no" >&6; }
9699 if test "$HAVE_XSERVER" = true ||
9700 test -n "$DISPLAY" ||
9701 test "`echo /usr
/lib
/libX11.
*`" != "/usr/lib/libX11.*"; then
9702 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9703 were found. You should install the relevant development files for X
9704 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9705 sure you have development files for image handling, i.e.
9706 tiff, gif, jpeg, png and xpm.
9707 If you are sure you want Emacs compiled without X window support, pass
9710 echo "$as_me: error: You seem to be running X, but no X development libraries
9711 were found. You should install the relevant development files for X
9712 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9713 sure you have development files for image handling, i.e.
9714 tiff, gif, jpeg, png and xpm.
9715 If you are sure you want Emacs compiled without X window support, pass
9717 to configure." >&2;}
9718 { (exit 1); exit 1; }; }
9722 ### If we're using X11, we should use the X menu package.
9725 yes ) HAVE_MENUS=yes ;;
9728 if test "${opsys}" = "hpux9"; then
9729 case "${x_libraries}" in
9731 opsysfile="s/hpux9-x11r4.h"
9736 if test "${opsys}" = "hpux9shr"; then
9737 case "${x_libraries}" in
9739 opsysfile="s/hpux9shxr4.h"
9744 ### Compute the unexec source name from the object name.
9745 UNEXEC_SRC="`echo ${unexec} |
sed 's/\.o/.c/'`"
9747 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9748 # Assume not, until told otherwise.
9751 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9752 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9753 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9754 echo $ECHO_N "(cached) $ECHO_C" >&6
9756 cat >conftest.$ac_ext <<_ACEOF
9759 cat confdefs.h >>conftest.$ac_ext
9760 cat >>conftest.$ac_ext <<_ACEOF
9761 /* end confdefs.h. */
9762 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9763 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9764 #define malloc_get_state innocuous_malloc_get_state
9766 /* System header to define __stub macros and hopefully few prototypes,
9767 which can conflict with char malloc_get_state (); below.
9768 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9769 <limits.h> exists even on freestanding compilers. */
9772 # include <limits.h>
9774 # include <assert.h>
9777 #undef malloc_get_state
9779 /* Override any GCC internal prototype to avoid an error.
9780 Use char because int might match the return type of a GCC
9781 builtin and then its argument prototype would still apply. */
9785 char malloc_get_state ();
9786 /* The GNU C library defines this for functions which it implements
9787 to always fail with ENOSYS. Some functions are actually named
9788 something starting with __ and the normal name is an alias. */
9789 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9796 return malloc_get_state ();
9801 rm -f conftest.$ac_objext conftest$ac_exeext
9802 if { (ac_try="$ac_link"
9804 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9805 *) ac_try_echo
=$ac_try;;
9807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9808 (eval "$ac_link") 2>conftest.er1
9810 grep -v '^ *+' conftest.er1
>conftest.err
9812 cat conftest.err
>&5
9813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9814 (exit $ac_status); } && {
9815 test -z "$ac_c_werror_flag" ||
9816 test ! -s conftest.err
9817 } && test -s conftest
$ac_exeext &&
9818 $as_test_x conftest
$ac_exeext; then
9819 ac_cv_func_malloc_get_state
=yes
9821 echo "$as_me: failed program was:" >&5
9822 sed 's/^/| /' conftest.
$ac_ext >&5
9824 ac_cv_func_malloc_get_state
=no
9827 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9828 conftest
$ac_exeext conftest.
$ac_ext
9830 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9831 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9832 if test $ac_cv_func_malloc_get_state = yes; then
9838 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9839 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9840 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9841 echo $ECHO_N "(cached) $ECHO_C" >&6
9843 cat >conftest.
$ac_ext <<_ACEOF
9846 cat confdefs.h
>>conftest.
$ac_ext
9847 cat >>conftest.
$ac_ext <<_ACEOF
9848 /* end confdefs.h. */
9849 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9850 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9851 #define malloc_set_state innocuous_malloc_set_state
9853 /* System header to define __stub macros and hopefully few prototypes,
9854 which can conflict with char malloc_set_state (); below.
9855 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9856 <limits.h> exists even on freestanding compilers. */
9859 # include <limits.h>
9861 # include <assert.h>
9864 #undef malloc_set_state
9866 /* Override any GCC internal prototype to avoid an error.
9867 Use char because int might match the return type of a GCC
9868 builtin and then its argument prototype would still apply. */
9872 char malloc_set_state ();
9873 /* The GNU C library defines this for functions which it implements
9874 to always fail with ENOSYS. Some functions are actually named
9875 something starting with __ and the normal name is an alias. */
9876 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9883 return malloc_set_state ();
9888 rm -f conftest.
$ac_objext conftest
$ac_exeext
9889 if { (ac_try
="$ac_link"
9891 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9892 *) ac_try_echo=$ac_try;;
9894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9895 (eval "$ac_link") 2>conftest.er1
9897 grep -v '^ *+' conftest.er1 >conftest.err
9899 cat conftest.err >&5
9900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901 (exit $ac_status); } && {
9902 test -z "$ac_c_werror_flag" ||
9903 test ! -s conftest.err
9904 } && test -s conftest$ac_exeext &&
9905 $as_test_x conftest$ac_exeext; then
9906 ac_cv_func_malloc_set_state=yes
9908 echo "$as_me: failed program was:" >&5
9909 sed 's/^/| /' conftest.$ac_ext >&5
9911 ac_cv_func_malloc_set_state=no
9914 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9915 conftest$ac_exeext conftest.$ac_ext
9917 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9918 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9919 if test $ac_cv_func_malloc_set_state = yes; then
9925 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9926 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9927 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9928 echo $ECHO_N "(cached) $ECHO_C" >&6
9930 cat >conftest.$ac_ext <<_ACEOF
9933 cat confdefs.h >>conftest.$ac_ext
9934 cat >>conftest.$ac_ext <<_ACEOF
9935 /* end confdefs.h. */
9936 extern void (* __after_morecore_hook)();
9940 __after_morecore_hook = 0
9945 rm -f conftest.$ac_objext conftest$ac_exeext
9946 if { (ac_try="$ac_link"
9948 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9949 *) ac_try_echo
=$ac_try;;
9951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9952 (eval "$ac_link") 2>conftest.er1
9954 grep -v '^ *+' conftest.er1
>conftest.err
9956 cat conftest.err
>&5
9957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9958 (exit $ac_status); } && {
9959 test -z "$ac_c_werror_flag" ||
9960 test ! -s conftest.err
9961 } && test -s conftest
$ac_exeext &&
9962 $as_test_x conftest
$ac_exeext; then
9963 emacs_cv_var___after_morecore_hook
=yes
9965 echo "$as_me: failed program was:" >&5
9966 sed 's/^/| /' conftest.
$ac_ext >&5
9968 emacs_cv_var___after_morecore_hook
=no
9971 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9972 conftest
$ac_exeext conftest.
$ac_ext
9974 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9975 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9976 if test $emacs_cv_var___after_morecore_hook = no
; then
9979 if test "${system_malloc}" = "yes"; then
9982 (The GNU allocators don't work with this system configuration.)"
9984 if test "$doug_lea_malloc" = "yes" ; then
9985 if test "$GNU_MALLOC" = yes ; then
9987 (Using Doug Lea's new malloc from the GNU C Library.)"
9990 cat >>confdefs.h
<<\_ACEOF
9991 #define DOUG_LEA_MALLOC 1
9996 if test x
"${REL_ALLOC}" = x
; then
9997 REL_ALLOC
=${GNU_MALLOC}
10003 for ac_header
in stdlib.h unistd.h
10005 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10006 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10007 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10008 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10009 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10010 echo $ECHO_N "(cached) $ECHO_C" >&6
10012 ac_res
=`eval echo '${'$as_ac_Header'}'`
10013 { echo "$as_me:$LINENO: result: $ac_res" >&5
10014 echo "${ECHO_T}$ac_res" >&6; }
10016 # Is the header compilable?
10017 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10018 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10019 cat >conftest.
$ac_ext <<_ACEOF
10022 cat confdefs.h
>>conftest.
$ac_ext
10023 cat >>conftest.
$ac_ext <<_ACEOF
10024 /* end confdefs.h. */
10025 $ac_includes_default
10026 #include <$ac_header>
10028 rm -f conftest.
$ac_objext
10029 if { (ac_try
="$ac_compile"
10030 case "(($ac_try" in
10031 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10032 *) ac_try_echo=$ac_try;;
10034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10035 (eval "$ac_compile") 2>conftest.er1
10037 grep -v '^ *+' conftest.er1 >conftest.err
10039 cat conftest.err >&5
10040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10041 (exit $ac_status); } && {
10042 test -z "$ac_c_werror_flag" ||
10043 test ! -s conftest.err
10044 } && test -s conftest.$ac_objext; then
10045 ac_header_compiler=yes
10047 echo "$as_me: failed program was:" >&5
10048 sed 's/^/| /' conftest.$ac_ext >&5
10050 ac_header_compiler=no
10053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10054 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10055 echo "${ECHO_T}$ac_header_compiler" >&6; }
10057 # Is the header present?
10058 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10059 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10060 cat >conftest.$ac_ext <<_ACEOF
10063 cat confdefs.h >>conftest.$ac_ext
10064 cat >>conftest.$ac_ext <<_ACEOF
10065 /* end confdefs.h. */
10066 #include <$ac_header>
10068 if { (ac_try="$ac_cpp conftest.$ac_ext"
10069 case "(($ac_try" in
10070 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10071 *) ac_try_echo
=$ac_try;;
10073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10074 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10076 grep -v '^ *+' conftest.er1
>conftest.err
10078 cat conftest.err
>&5
10079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080 (exit $ac_status); } >/dev
/null
&& {
10081 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10082 test ! -s conftest.err
10084 ac_header_preproc
=yes
10086 echo "$as_me: failed program was:" >&5
10087 sed 's/^/| /' conftest.
$ac_ext >&5
10089 ac_header_preproc
=no
10092 rm -f conftest.err conftest.
$ac_ext
10093 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10094 echo "${ECHO_T}$ac_header_preproc" >&6; }
10096 # So? What about this header?
10097 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10099 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10100 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10101 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10102 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10103 ac_header_preproc
=yes
10106 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10107 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10108 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10109 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10110 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10111 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10112 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10113 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10114 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10115 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10116 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10117 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10121 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10122 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10123 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10124 echo $ECHO_N "(cached) $ECHO_C" >&6
10126 eval "$as_ac_Header=\$ac_header_preproc"
10128 ac_res
=`eval echo '${'$as_ac_Header'}'`
10129 { echo "$as_me:$LINENO: result: $ac_res" >&5
10130 echo "${ECHO_T}$ac_res" >&6; }
10133 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10134 cat >>confdefs.h
<<_ACEOF
10135 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10143 for ac_func
in getpagesize
10145 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10146 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10147 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10148 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10149 echo $ECHO_N "(cached) $ECHO_C" >&6
10151 cat >conftest.
$ac_ext <<_ACEOF
10154 cat confdefs.h
>>conftest.
$ac_ext
10155 cat >>conftest.
$ac_ext <<_ACEOF
10156 /* end confdefs.h. */
10157 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10158 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10159 #define $ac_func innocuous_$ac_func
10161 /* System header to define __stub macros and hopefully few prototypes,
10162 which can conflict with char $ac_func (); below.
10163 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10164 <limits.h> exists even on freestanding compilers. */
10167 # include <limits.h>
10169 # include <assert.h>
10174 /* Override any GCC internal prototype to avoid an error.
10175 Use char because int might match the return type of a GCC
10176 builtin and then its argument prototype would still apply. */
10181 /* The GNU C library defines this for functions which it implements
10182 to always fail with ENOSYS. Some functions are actually named
10183 something starting with __ and the normal name is an alias. */
10184 #if defined __stub_$ac_func || defined __stub___$ac_func
10191 return $ac_func ();
10196 rm -f conftest.
$ac_objext conftest
$ac_exeext
10197 if { (ac_try
="$ac_link"
10198 case "(($ac_try" in
10199 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10200 *) ac_try_echo=$ac_try;;
10202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10203 (eval "$ac_link") 2>conftest.er1
10205 grep -v '^ *+' conftest.er1 >conftest.err
10207 cat conftest.err >&5
10208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10209 (exit $ac_status); } && {
10210 test -z "$ac_c_werror_flag" ||
10211 test ! -s conftest.err
10212 } && test -s conftest$ac_exeext &&
10213 $as_test_x conftest$ac_exeext; then
10214 eval "$as_ac_var=yes"
10216 echo "$as_me: failed program was:" >&5
10217 sed 's/^/| /' conftest.$ac_ext >&5
10219 eval "$as_ac_var=no"
10222 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10223 conftest$ac_exeext conftest.$ac_ext
10225 ac_res=`eval echo '${'$as_ac_var'}'`
10226 { echo "$as_me:$LINENO: result: $ac_res" >&5
10227 echo "${ECHO_T}$ac_res" >&6; }
10228 if test `eval echo '${'$as_ac_var'}'` = yes; then
10229 cat >>confdefs.h <<_ACEOF
10230 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10236 { echo "$as_me:$LINENO: checking for working mmap" >&5
10237 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10238 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10239 echo $ECHO_N "(cached) $ECHO_C" >&6
10241 if test "$cross_compiling" = yes; then
10242 ac_cv_func_mmap_fixed_mapped=no
10244 cat >conftest.$ac_ext <<_ACEOF
10247 cat confdefs.h >>conftest.$ac_ext
10248 cat >>conftest.$ac_ext <<_ACEOF
10249 /* end confdefs.h. */
10250 $ac_includes_default
10251 /* malloc might have been renamed as rpl_malloc. */
10254 /* Thanks to Mike Haertel and Jim Avera for this test.
10255 Here is a matrix of mmap possibilities:
10256 mmap private not fixed
10257 mmap private fixed at somewhere currently unmapped
10258 mmap private fixed at somewhere already mapped
10259 mmap shared not fixed
10260 mmap shared fixed at somewhere currently unmapped
10261 mmap shared fixed at somewhere already mapped
10262 For private mappings, we should verify that changes cannot be read()
10263 back from the file, nor mmap's back from the file at a different
10264 address. (There have been systems where private was not correctly
10265 implemented like the infamous i386 svr4.0, and systems where the
10266 VM page cache was not coherent with the file system buffer cache
10267 like early versions of FreeBSD and possibly contemporary NetBSD.)
10268 For shared mappings, we should conversely verify that changes get
10269 propagated back to all the places they're supposed to be.
10271 Grep wants private fixed already mapped.
10272 The main things grep needs to know about mmap are:
10273 * does it exist and is it safe to write into the mmap'd area
10274 * how to use it (BSD variants) */
10277 #include <sys/mman.h>
10279 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10283 /* This mess was copied from the GNU getpagesize.h. */
10284 #ifndef HAVE_GETPAGESIZE
10285 /* Assume that all systems that can run configure have sys/param.h. */
10286 # ifndef HAVE_SYS_PARAM_H
10287 # define HAVE_SYS_PARAM_H 1
10290 # ifdef _SC_PAGESIZE
10291 # define getpagesize() sysconf(_SC_PAGESIZE)
10292 # else /* no _SC_PAGESIZE */
10293 # ifdef HAVE_SYS_PARAM_H
10294 # include <sys/param.h>
10295 # ifdef EXEC_PAGESIZE
10296 # define getpagesize() EXEC_PAGESIZE
10297 # else /* no EXEC_PAGESIZE */
10299 # define getpagesize() NBPG * CLSIZE
10302 # endif /* no CLSIZE */
10303 # else /* no NBPG */
10305 # define getpagesize() NBPC
10306 # else /* no NBPC */
10308 # define getpagesize() PAGESIZE
10309 # endif /* PAGESIZE */
10310 # endif /* no NBPC */
10311 # endif /* no NBPG */
10312 # endif /* no EXEC_PAGESIZE */
10313 # else /* no HAVE_SYS_PARAM_H */
10314 # define getpagesize() 8192 /* punt totally */
10315 # endif /* no HAVE_SYS_PARAM_H */
10316 # endif /* no _SC_PAGESIZE */
10318 #endif /* no HAVE_GETPAGESIZE */
10323 char *data, *data2, *data3;
10327 pagesize = getpagesize ();
10329 /* First, make a file with some known garbage in it. */
10330 data = (char *) malloc (pagesize);
10333 for (i = 0; i < pagesize; ++i)
10334 *(data + i) = rand ();
10336 fd = creat ("conftest.mmap", 0600);
10339 if (write (fd, data, pagesize) != pagesize)
10343 /* Next, try to mmap the file at a fixed address which already has
10344 something else allocated at it. If we can, also make sure that
10345 we see the same garbage. */
10346 fd = open ("conftest.mmap", O_RDWR);
10349 data2 = (char *) malloc (2 * pagesize);
10352 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10353 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10354 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10356 for (i = 0; i < pagesize; ++i)
10357 if (*(data + i) != *(data2 + i))
10360 /* Finally, make sure that changes to the mapped area do not
10361 percolate back to the file as seen by read(). (This is a bug on
10362 some variants of i386 svr4.0.) */
10363 for (i = 0; i < pagesize; ++i)
10364 *(data2 + i) = *(data2 + i) + 1;
10365 data3 = (char *) malloc (pagesize);
10368 if (read (fd, data3, pagesize) != pagesize)
10370 for (i = 0; i < pagesize; ++i)
10371 if (*(data + i) != *(data3 + i))
10377 rm -f conftest$ac_exeext
10378 if { (ac_try="$ac_link"
10379 case "(($ac_try" in
10380 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10381 *) ac_try_echo
=$ac_try;;
10383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10384 (eval "$ac_link") 2>&5
10386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
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_try") 2>&5
10395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396 (exit $ac_status); }; }; then
10397 ac_cv_func_mmap_fixed_mapped=yes
10399 echo "$as_me: program exited with status $ac_status" >&5
10400 echo "$as_me: failed program was:" >&5
10401 sed 's/^/| /' conftest.$ac_ext >&5
10403 ( exit $ac_status )
10404 ac_cv_func_mmap_fixed_mapped=no
10406 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10411 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10412 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10413 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10415 cat >>confdefs.h <<\_ACEOF
10416 #define HAVE_MMAP 1
10420 rm -f conftest.mmap
10422 if test $use_mmap_for_buffers = yes; then
10426 LIBS="$libsrc_libs $LIBS"
10429 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10430 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10431 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10432 echo $ECHO_N "(cached) $ECHO_C" >&6
10434 ac_check_lib_save_LIBS=$LIBS
10435 LIBS="-ldnet $LIBS"
10436 cat >conftest.$ac_ext <<_ACEOF
10439 cat confdefs.h >>conftest.$ac_ext
10440 cat >>conftest.$ac_ext <<_ACEOF
10441 /* end confdefs.h. */
10443 /* Override any GCC internal prototype to avoid an error.
10444 Use char because int might match the return type of a GCC
10445 builtin and then its argument prototype would still apply. */
10453 return dnet_ntoa ();
10458 rm -f conftest.$ac_objext conftest$ac_exeext
10459 if { (ac_try="$ac_link"
10460 case "(($ac_try" in
10461 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10462 *) ac_try_echo
=$ac_try;;
10464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10465 (eval "$ac_link") 2>conftest.er1
10467 grep -v '^ *+' conftest.er1
>conftest.err
10469 cat conftest.err
>&5
10470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471 (exit $ac_status); } && {
10472 test -z "$ac_c_werror_flag" ||
10473 test ! -s conftest.err
10474 } && test -s conftest
$ac_exeext &&
10475 $as_test_x conftest
$ac_exeext; then
10476 ac_cv_lib_dnet_dnet_ntoa
=yes
10478 echo "$as_me: failed program was:" >&5
10479 sed 's/^/| /' conftest.
$ac_ext >&5
10481 ac_cv_lib_dnet_dnet_ntoa
=no
10484 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10485 conftest
$ac_exeext conftest.
$ac_ext
10486 LIBS
=$ac_check_lib_save_LIBS
10488 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10489 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10490 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10491 cat >>confdefs.h
<<_ACEOF
10492 #define HAVE_LIBDNET 1
10495 LIBS
="-ldnet $LIBS"
10500 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10501 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10502 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10503 echo $ECHO_N "(cached) $ECHO_C" >&6
10505 ac_check_lib_save_LIBS
=$LIBS
10506 LIBS
="-lXbsd $LIBS"
10507 cat >conftest.
$ac_ext <<_ACEOF
10510 cat confdefs.h
>>conftest.
$ac_ext
10511 cat >>conftest.
$ac_ext <<_ACEOF
10512 /* end confdefs.h. */
10523 rm -f conftest.
$ac_objext conftest
$ac_exeext
10524 if { (ac_try
="$ac_link"
10525 case "(($ac_try" in
10526 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10527 *) ac_try_echo=$ac_try;;
10529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10530 (eval "$ac_link") 2>conftest.er1
10532 grep -v '^ *+' conftest.er1 >conftest.err
10534 cat conftest.err >&5
10535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536 (exit $ac_status); } && {
10537 test -z "$ac_c_werror_flag" ||
10538 test ! -s conftest.err
10539 } && test -s conftest$ac_exeext &&
10540 $as_test_x conftest$ac_exeext; then
10541 ac_cv_lib_Xbsd_main=yes
10543 echo "$as_me: failed program was:" >&5
10544 sed 's/^/| /' conftest.$ac_ext >&5
10546 ac_cv_lib_Xbsd_main=no
10549 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10550 conftest$ac_exeext conftest.$ac_ext
10551 LIBS=$ac_check_lib_save_LIBS
10553 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10554 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10555 if test $ac_cv_lib_Xbsd_main = yes; then
10556 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10561 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10562 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10563 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10564 echo $ECHO_N "(cached) $ECHO_C" >&6
10566 ac_check_lib_save_LIBS=$LIBS
10567 LIBS="-lpthreads $LIBS"
10568 cat >conftest.$ac_ext <<_ACEOF
10571 cat confdefs.h >>conftest.$ac_ext
10572 cat >>conftest.$ac_ext <<_ACEOF
10573 /* end confdefs.h. */
10575 /* Override any GCC internal prototype to avoid an error.
10576 Use char because int might match the return type of a GCC
10577 builtin and then its argument prototype would still apply. */
10585 return cma_open ();
10590 rm -f conftest.$ac_objext conftest$ac_exeext
10591 if { (ac_try="$ac_link"
10592 case "(($ac_try" in
10593 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10594 *) ac_try_echo
=$ac_try;;
10596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10597 (eval "$ac_link") 2>conftest.er1
10599 grep -v '^ *+' conftest.er1
>conftest.err
10601 cat conftest.err
>&5
10602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10603 (exit $ac_status); } && {
10604 test -z "$ac_c_werror_flag" ||
10605 test ! -s conftest.err
10606 } && test -s conftest
$ac_exeext &&
10607 $as_test_x conftest
$ac_exeext; then
10608 ac_cv_lib_pthreads_cma_open
=yes
10610 echo "$as_me: failed program was:" >&5
10611 sed 's/^/| /' conftest.
$ac_ext >&5
10613 ac_cv_lib_pthreads_cma_open
=no
10616 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10617 conftest
$ac_exeext conftest.
$ac_ext
10618 LIBS
=$ac_check_lib_save_LIBS
10620 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10621 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10622 if test $ac_cv_lib_pthreads_cma_open = yes; then
10623 cat >>confdefs.h
<<_ACEOF
10624 #define HAVE_LIBPTHREADS 1
10627 LIBS
="-lpthreads $LIBS"
10632 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10633 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10634 if test -d /usr
/X386
/include
; then
10636 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10640 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10641 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10646 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10647 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10648 if test "${gdb_cv_bigtoc+set}" = set; then
10649 echo $ECHO_N "(cached) $ECHO_C" >&6
10653 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10654 *) gdb_cv_bigtoc
=-bbigtoc ;;
10657 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10658 cat >conftest.
$ac_ext <<_ACEOF
10661 cat confdefs.h
>>conftest.
$ac_ext
10662 cat >>conftest.
$ac_ext <<_ACEOF
10663 /* end confdefs.h. */
10673 rm -f conftest.
$ac_objext conftest
$ac_exeext
10674 if { (ac_try
="$ac_link"
10675 case "(($ac_try" in
10676 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10677 *) ac_try_echo=$ac_try;;
10679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10680 (eval "$ac_link") 2>conftest.er1
10682 grep -v '^ *+' conftest.er1 >conftest.err
10684 cat conftest.err >&5
10685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10686 (exit $ac_status); } && {
10687 test -z "$ac_c_werror_flag" ||
10688 test ! -s conftest.err
10689 } && test -s conftest$ac_exeext &&
10690 $as_test_x conftest$ac_exeext; then
10693 echo "$as_me: failed program was:" >&5
10694 sed 's/^/| /' conftest.$ac_ext >&5
10699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10700 conftest$ac_exeext conftest.$ac_ext
10703 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10704 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10708 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10709 # used for the tests that follow. We set them back to REAL_CFLAGS and
10710 # REAL_CPPFLAGS later on.
10712 REAL_CPPFLAGS="$CPPFLAGS"
10714 if test "${HAVE_X11}" = "yes"; then
10715 DEFS="$C_SWITCH_X_SITE $DEFS"
10716 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10718 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10719 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10721 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10722 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10723 # but it's more convenient here to set LD_RUN_PATH
10724 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10725 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10726 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10730 if test "${opsys}" = "gnu-linux"; then
10731 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10732 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10733 cat >conftest.$ac_ext <<_ACEOF
10736 cat confdefs.h >>conftest.$ac_ext
10737 cat >>conftest.$ac_ext <<_ACEOF
10738 /* end confdefs.h. */
10743 XOpenDisplay ("foo");
10748 rm -f conftest.$ac_objext conftest$ac_exeext
10749 if { (ac_try="$ac_link"
10750 case "(($ac_try" in
10751 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10752 *) ac_try_echo
=$ac_try;;
10754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10755 (eval "$ac_link") 2>conftest.er1
10757 grep -v '^ *+' conftest.er1
>conftest.err
10759 cat conftest.err
>&5
10760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10761 (exit $ac_status); } && {
10762 test -z "$ac_c_werror_flag" ||
10763 test ! -s conftest.err
10764 } && test -s conftest
$ac_exeext &&
10765 $as_test_x conftest
$ac_exeext; then
10766 xlinux_first_failure
=no
10768 echo "$as_me: failed program was:" >&5
10769 sed 's/^/| /' conftest.
$ac_ext >&5
10771 xlinux_first_failure
=yes
10774 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10775 conftest
$ac_exeext conftest.
$ac_ext
10776 if test "${xlinux_first_failure}" = "yes"; then
10777 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10778 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10779 OLD_CPPFLAGS
="$CPPFLAGS"
10781 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10782 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10783 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10784 LIBS
="$LIBS -b i486-linuxaout"
10785 cat >conftest.
$ac_ext <<_ACEOF
10788 cat confdefs.h
>>conftest.
$ac_ext
10789 cat >>conftest.
$ac_ext <<_ACEOF
10790 /* end confdefs.h. */
10795 XOpenDisplay ("foo");
10800 rm -f conftest.
$ac_objext conftest
$ac_exeext
10801 if { (ac_try
="$ac_link"
10802 case "(($ac_try" in
10803 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10804 *) ac_try_echo=$ac_try;;
10806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10807 (eval "$ac_link") 2>conftest.er1
10809 grep -v '^ *+' conftest.er1 >conftest.err
10811 cat conftest.err >&5
10812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813 (exit $ac_status); } && {
10814 test -z "$ac_c_werror_flag" ||
10815 test ! -s conftest.err
10816 } && test -s conftest$ac_exeext &&
10817 $as_test_x conftest$ac_exeext; then
10818 xlinux_second_failure=no
10820 echo "$as_me: failed program was:" >&5
10821 sed 's/^/| /' conftest.$ac_ext >&5
10823 xlinux_second_failure=yes
10826 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10827 conftest$ac_exeext conftest.$ac_ext
10828 if test "${xlinux_second_failure}" = "yes"; then
10829 # If we get the same failure with -b, there is no use adding -b.
10830 # So take it out. This plays safe.
10831 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10832 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10833 CPPFLAGS="$OLD_CPPFLAGS"
10835 { echo "$as_me:$LINENO: result: no" >&5
10836 echo "${ECHO_T}no" >&6; }
10838 { echo "$as_me:$LINENO: result: yes" >&5
10839 echo "${ECHO_T}yes" >&6; }
10842 { echo "$as_me:$LINENO: result: no" >&5
10843 echo "${ECHO_T}no" >&6; }
10847 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10848 # header files included from there.
10849 { echo "$as_me:$LINENO: checking for Xkb" >&5
10850 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10851 cat >conftest.$ac_ext <<_ACEOF
10854 cat confdefs.h >>conftest.$ac_ext
10855 cat >>conftest.$ac_ext <<_ACEOF
10856 /* end confdefs.h. */
10857 #include <X11/Xlib.h>
10858 #include <X11/XKBlib.h>
10862 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10867 rm -f conftest.$ac_objext conftest$ac_exeext
10868 if { (ac_try="$ac_link"
10869 case "(($ac_try" in
10870 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10871 *) ac_try_echo
=$ac_try;;
10873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10874 (eval "$ac_link") 2>conftest.er1
10876 grep -v '^ *+' conftest.er1
>conftest.err
10878 cat conftest.err
>&5
10879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10880 (exit $ac_status); } && {
10881 test -z "$ac_c_werror_flag" ||
10882 test ! -s conftest.err
10883 } && test -s conftest
$ac_exeext &&
10884 $as_test_x conftest
$ac_exeext; then
10887 echo "$as_me: failed program was:" >&5
10888 sed 's/^/| /' conftest.
$ac_ext >&5
10893 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10894 conftest
$ac_exeext conftest.
$ac_ext
10895 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10896 echo "${ECHO_T}$emacs_xkb" >&6; }
10897 if test $emacs_xkb = yes; then
10899 cat >>confdefs.h
<<\_ACEOF
10900 #define HAVE_XKBGETKEYBOARD 1
10909 for ac_func
in XrmSetDatabase XScreenResourceString \
10910 XScreenNumberOfScreen XSetWMProtocols
10912 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10913 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10914 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10915 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10916 echo $ECHO_N "(cached) $ECHO_C" >&6
10918 cat >conftest.
$ac_ext <<_ACEOF
10921 cat confdefs.h
>>conftest.
$ac_ext
10922 cat >>conftest.
$ac_ext <<_ACEOF
10923 /* end confdefs.h. */
10924 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10925 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10926 #define $ac_func innocuous_$ac_func
10928 /* System header to define __stub macros and hopefully few prototypes,
10929 which can conflict with char $ac_func (); below.
10930 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10931 <limits.h> exists even on freestanding compilers. */
10934 # include <limits.h>
10936 # include <assert.h>
10941 /* Override any GCC internal prototype to avoid an error.
10942 Use char because int might match the return type of a GCC
10943 builtin and then its argument prototype would still apply. */
10948 /* The GNU C library defines this for functions which it implements
10949 to always fail with ENOSYS. Some functions are actually named
10950 something starting with __ and the normal name is an alias. */
10951 #if defined __stub_$ac_func || defined __stub___$ac_func
10958 return $ac_func ();
10963 rm -f conftest.
$ac_objext conftest
$ac_exeext
10964 if { (ac_try
="$ac_link"
10965 case "(($ac_try" in
10966 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10967 *) ac_try_echo=$ac_try;;
10969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10970 (eval "$ac_link") 2>conftest.er1
10972 grep -v '^ *+' conftest.er1 >conftest.err
10974 cat conftest.err >&5
10975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10976 (exit $ac_status); } && {
10977 test -z "$ac_c_werror_flag" ||
10978 test ! -s conftest.err
10979 } && test -s conftest$ac_exeext &&
10980 $as_test_x conftest$ac_exeext; then
10981 eval "$as_ac_var=yes"
10983 echo "$as_me: failed program was:" >&5
10984 sed 's/^/| /' conftest.$ac_ext >&5
10986 eval "$as_ac_var=no"
10989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10990 conftest$ac_exeext conftest.$ac_ext
10992 ac_res=`eval echo '${'$as_ac_var'}'`
10993 { echo "$as_me:$LINENO: result: $ac_res" >&5
10994 echo "${ECHO_T}$ac_res" >&6; }
10995 if test `eval echo '${'$as_ac_var'}'` = yes; then
10996 cat >>confdefs.h <<_ACEOF
10997 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11005 if test "${window_system}" = "x11"; then
11006 { echo "$as_me:$LINENO: checking X11 version 6" >&5
11007 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
11008 if test "${emacs_cv_x11_version_6+set}" = set; then
11009 echo $ECHO_N "(cached) $ECHO_C" >&6
11011 cat >conftest.$ac_ext <<_ACEOF
11014 cat confdefs.h >>conftest.$ac_ext
11015 cat >>conftest.$ac_ext <<_ACEOF
11016 /* end confdefs.h. */
11017 #include <X11/Xlib.h>
11021 #if XlibSpecificationRelease < 6
11029 rm -f conftest.$ac_objext conftest$ac_exeext
11030 if { (ac_try="$ac_link"
11031 case "(($ac_try" in
11032 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11033 *) ac_try_echo
=$ac_try;;
11035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11036 (eval "$ac_link") 2>conftest.er1
11038 grep -v '^ *+' conftest.er1
>conftest.err
11040 cat conftest.err
>&5
11041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042 (exit $ac_status); } && {
11043 test -z "$ac_c_werror_flag" ||
11044 test ! -s conftest.err
11045 } && test -s conftest
$ac_exeext &&
11046 $as_test_x conftest
$ac_exeext; then
11047 emacs_cv_x11_version_6
=yes
11049 echo "$as_me: failed program was:" >&5
11050 sed 's/^/| /' conftest.
$ac_ext >&5
11052 emacs_cv_x11_version_6
=no
11055 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11056 conftest
$ac_exeext conftest.
$ac_ext
11059 if test $emacs_cv_x11_version_6 = yes; then
11060 { echo "$as_me:$LINENO: result: 6 or newer" >&5
11061 echo "${ECHO_T}6 or newer" >&6; }
11063 cat >>confdefs.h
<<\_ACEOF
11064 #define HAVE_X11R6 1
11068 { echo "$as_me:$LINENO: result: before 6" >&5
11069 echo "${ECHO_T}before 6" >&6; }
11073 if test "${window_system}" = "x11"; then
11074 { echo "$as_me:$LINENO: checking X11 version 5" >&5
11075 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6; }
11076 if test "${emacs_cv_x11_version_5+set}" = set; then
11077 echo $ECHO_N "(cached) $ECHO_C" >&6
11079 cat >conftest.
$ac_ext <<_ACEOF
11082 cat confdefs.h
>>conftest.
$ac_ext
11083 cat >>conftest.
$ac_ext <<_ACEOF
11084 /* end confdefs.h. */
11085 #include <X11/Xlib.h>
11089 #if XlibSpecificationRelease < 5
11097 rm -f conftest.
$ac_objext conftest
$ac_exeext
11098 if { (ac_try
="$ac_link"
11099 case "(($ac_try" in
11100 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11101 *) ac_try_echo=$ac_try;;
11103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11104 (eval "$ac_link") 2>conftest.er1
11106 grep -v '^ *+' conftest.er1 >conftest.err
11108 cat conftest.err >&5
11109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11110 (exit $ac_status); } && {
11111 test -z "$ac_c_werror_flag" ||
11112 test ! -s conftest.err
11113 } && test -s conftest$ac_exeext &&
11114 $as_test_x conftest$ac_exeext; then
11115 emacs_cv_x11_version_5=yes
11117 echo "$as_me: failed program was:" >&5
11118 sed 's/^/| /' conftest.$ac_ext >&5
11120 emacs_cv_x11_version_5=no
11123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11124 conftest$ac_exeext conftest.$ac_ext
11127 if test $emacs_cv_x11_version_5 = yes; then
11128 { echo "$as_me:$LINENO: result: 5 or newer" >&5
11129 echo "${ECHO_T}5 or newer" >&6; }
11132 cat >>confdefs.h <<\_ACEOF
11133 #define HAVE_X11R5 1
11138 { echo "$as_me:$LINENO: result: before 5" >&5
11139 echo "${ECHO_T}before 5" >&6; }
11143 ### Use -lrsvg-2 if available, unless `--with-rsvg=no
' is specified.
11145 if test "${HAVE_X11}" = "yes" || test "${HAVE_CARBON}" = "yes"; then
11146 if test "${with_rsvg}" != "no"; then
11147 if test "X${with_pkg_config_prog}" != X; then
11148 PKG_CONFIG="${with_pkg_config_prog}"
11151 RSVG_REQUIRED=2.0.0
11152 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
11157 if test -z "$PKG_CONFIG"; then
11158 # Extract the first word of "pkg-config", so it can be a program name with args.
11159 set dummy pkg-config; ac_word=$2
11160 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11162 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11163 echo $ECHO_N "(cached) $ECHO_C" >&6
11165 case $PKG_CONFIG in
11167 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11171 for as_dir in $PATH
11174 test -z "$as_dir" && as_dir=.
11175 for ac_exec_ext in '' $ac_executable_extensions; do
11176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11177 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11185 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11189 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11190 if test -n "$PKG_CONFIG"; then
11191 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11192 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11194 { echo "$as_me:$LINENO: result: no" >&5
11195 echo "${ECHO_T}no" >&6; }
11201 if test "$PKG_CONFIG" = "no" ; then
11204 PKG_CONFIG_MIN_VERSION=0.9.0
11205 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11206 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
11207 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
11209 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11210 { echo "$as_me:$LINENO: result: yes" >&5
11211 echo "${ECHO_T}yes" >&6; }
11214 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
11215 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
11216 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's
,///*,/,g
'`
11217 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
11218 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
11220 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
11221 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
11222 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's
,///*,/,g
'`
11223 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
11224 echo "${ECHO_T}$RSVG_LIBS" >&6; }
11226 { echo "$as_me:$LINENO: result: no" >&5
11227 echo "${ECHO_T}no" >&6; }
11230 ## If we have a custom action on failure, don't print errors
, but
11231 ## do set a variable so people can do so.
11232 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11239 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11240 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11244 if test $succeeded = yes; then
11253 if test ".${RSVG_CFLAGS}" != "."; then
11256 cat >>confdefs.h
<<\_ACEOF
11257 #define HAVE_RSVG 1
11260 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
11261 LIBS
="$RSVG_LIBS $LIBS"
11268 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
11271 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "gtk" || \
11272 test "$USE_X_TOOLKIT" = "maybe"; then
11273 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
11274 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
11275 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
11276 { (exit 1); exit 1; }; };
11280 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11282 if test "X${with_pkg_config_prog}" != X
; then
11283 PKG_CONFIG
="${with_pkg_config_prog}"
11288 if test -z "$PKG_CONFIG"; then
11289 # Extract the first word of "pkg-config", so it can be a program name with args.
11290 set dummy pkg-config
; ac_word
=$2
11291 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11293 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11294 echo $ECHO_N "(cached) $ECHO_C" >&6
11296 case $PKG_CONFIG in
11298 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11301 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11302 for as_dir
in $PATH
11305 test -z "$as_dir" && as_dir
=.
11306 for ac_exec_ext
in '' $ac_executable_extensions; do
11307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11308 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11316 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11320 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11321 if test -n "$PKG_CONFIG"; then
11322 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11323 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11325 { echo "$as_me:$LINENO: result: no" >&5
11326 echo "${ECHO_T}no" >&6; }
11332 if test "$PKG_CONFIG" = "no" ; then
11335 PKG_CONFIG_MIN_VERSION
=0.9.0
11336 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11337 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11338 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
11340 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11341 { echo "$as_me:$LINENO: result: yes" >&5
11342 echo "${ECHO_T}yes" >&6; }
11345 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11346 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
11347 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11348 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11349 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11351 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11352 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11353 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11354 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11355 echo "${ECHO_T}$GTK_LIBS" >&6; }
11357 { echo "$as_me:$LINENO: result: no" >&5
11358 echo "${ECHO_T}no" >&6; }
11361 ## If we have a custom action on failure, don't print errors, but
11362 ## do set a variable so people can do so.
11363 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11370 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11371 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11375 if test $succeeded = yes; then
11381 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11382 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11383 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11384 { (exit 1); exit 1; }; }
11389 if test x
"$pkg_check_gtk" = xyes
; then
11393 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
11394 CFLAGS
="$CFLAGS $GTK_CFLAGS"
11395 LIBS
="$GTK_LIBS $LIBS"
11398 for ac_func
in gtk_main
11400 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11401 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11402 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11403 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11404 echo $ECHO_N "(cached) $ECHO_C" >&6
11406 cat >conftest.
$ac_ext <<_ACEOF
11409 cat confdefs.h
>>conftest.
$ac_ext
11410 cat >>conftest.
$ac_ext <<_ACEOF
11411 /* end confdefs.h. */
11412 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11413 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11414 #define $ac_func innocuous_$ac_func
11416 /* System header to define __stub macros and hopefully few prototypes,
11417 which can conflict with char $ac_func (); below.
11418 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11419 <limits.h> exists even on freestanding compilers. */
11422 # include <limits.h>
11424 # include <assert.h>
11429 /* Override any GCC internal prototype to avoid an error.
11430 Use char because int might match the return type of a GCC
11431 builtin and then its argument prototype would still apply. */
11436 /* The GNU C library defines this for functions which it implements
11437 to always fail with ENOSYS. Some functions are actually named
11438 something starting with __ and the normal name is an alias. */
11439 #if defined __stub_$ac_func || defined __stub___$ac_func
11446 return $ac_func ();
11451 rm -f conftest.
$ac_objext conftest
$ac_exeext
11452 if { (ac_try
="$ac_link"
11453 case "(($ac_try" in
11454 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11455 *) ac_try_echo=$ac_try;;
11457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11458 (eval "$ac_link") 2>conftest.er1
11460 grep -v '^ *+' conftest.er1 >conftest.err
11462 cat conftest.err >&5
11463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464 (exit $ac_status); } && {
11465 test -z "$ac_c_werror_flag" ||
11466 test ! -s conftest.err
11467 } && test -s conftest$ac_exeext &&
11468 $as_test_x conftest$ac_exeext; then
11469 eval "$as_ac_var=yes"
11471 echo "$as_me: failed program was:" >&5
11472 sed 's/^/| /' conftest.$ac_ext >&5
11474 eval "$as_ac_var=no"
11477 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11478 conftest$ac_exeext conftest.$ac_ext
11480 ac_res=`eval echo '${'$as_ac_var'}'`
11481 { echo "$as_me:$LINENO: result: $ac_res" >&5
11482 echo "${ECHO_T}$ac_res" >&6; }
11483 if test `eval echo '${'$as_ac_var'}'` = yes; then
11484 cat >>confdefs.h <<_ACEOF
11485 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11491 if test "${GTK_COMPILES}" != "yes"; then
11492 if test "$USE_X_TOOLKIT" != "maybe"; then
11493 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11494 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11495 { (exit 1); exit 1; }; };
11500 cat >>confdefs.h <<\_ACEOF
11510 if test "${HAVE_GTK}" = "yes"; then
11512 if test "$with_toolkit_scroll_bars" != no; then
11513 with_toolkit_scroll_bars=yes
11516 HAVE_GTK_MULTIDISPLAY=no
11518 for ac_func in gdk_display_open
11520 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11521 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11522 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11523 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11524 echo $ECHO_N "(cached) $ECHO_C" >&6
11526 cat >conftest.$ac_ext <<_ACEOF
11529 cat confdefs.h >>conftest.$ac_ext
11530 cat >>conftest.$ac_ext <<_ACEOF
11531 /* end confdefs.h. */
11532 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11533 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11534 #define $ac_func innocuous_$ac_func
11536 /* System header to define __stub macros and hopefully few prototypes,
11537 which can conflict with char $ac_func (); below.
11538 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11539 <limits.h> exists even on freestanding compilers. */
11542 # include <limits.h>
11544 # include <assert.h>
11549 /* Override any GCC internal prototype to avoid an error.
11550 Use char because int might match the return type of a GCC
11551 builtin and then its argument prototype would still apply. */
11556 /* The GNU C library defines this for functions which it implements
11557 to always fail with ENOSYS. Some functions are actually named
11558 something starting with __ and the normal name is an alias. */
11559 #if defined __stub_$ac_func || defined __stub___$ac_func
11566 return $ac_func ();
11571 rm -f conftest.$ac_objext conftest$ac_exeext
11572 if { (ac_try="$ac_link"
11573 case "(($ac_try" in
11574 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11575 *) ac_try_echo
=$ac_try;;
11577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11578 (eval "$ac_link") 2>conftest.er1
11580 grep -v '^ *+' conftest.er1
>conftest.err
11582 cat conftest.err
>&5
11583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11584 (exit $ac_status); } && {
11585 test -z "$ac_c_werror_flag" ||
11586 test ! -s conftest.err
11587 } && test -s conftest
$ac_exeext &&
11588 $as_test_x conftest
$ac_exeext; then
11589 eval "$as_ac_var=yes"
11591 echo "$as_me: failed program was:" >&5
11592 sed 's/^/| /' conftest.
$ac_ext >&5
11594 eval "$as_ac_var=no"
11597 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11598 conftest
$ac_exeext conftest.
$ac_ext
11600 ac_res
=`eval echo '${'$as_ac_var'}'`
11601 { echo "$as_me:$LINENO: result: $ac_res" >&5
11602 echo "${ECHO_T}$ac_res" >&6; }
11603 if test `eval echo '${'$as_ac_var'}'` = yes; then
11604 cat >>confdefs.h
<<_ACEOF
11605 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11607 HAVE_GTK_MULTIDISPLAY
=yes
11611 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11613 cat >>confdefs.h
<<\_ACEOF
11614 #define HAVE_GTK_MULTIDISPLAY 1
11619 HAVE_GTK_FILE_SELECTION
=no
11621 for ac_func
in gtk_file_selection_new
11623 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11624 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11625 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11626 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11627 echo $ECHO_N "(cached) $ECHO_C" >&6
11629 cat >conftest.
$ac_ext <<_ACEOF
11632 cat confdefs.h
>>conftest.
$ac_ext
11633 cat >>conftest.
$ac_ext <<_ACEOF
11634 /* end confdefs.h. */
11635 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11636 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11637 #define $ac_func innocuous_$ac_func
11639 /* System header to define __stub macros and hopefully few prototypes,
11640 which can conflict with char $ac_func (); below.
11641 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11642 <limits.h> exists even on freestanding compilers. */
11645 # include <limits.h>
11647 # include <assert.h>
11652 /* Override any GCC internal prototype to avoid an error.
11653 Use char because int might match the return type of a GCC
11654 builtin and then its argument prototype would still apply. */
11659 /* The GNU C library defines this for functions which it implements
11660 to always fail with ENOSYS. Some functions are actually named
11661 something starting with __ and the normal name is an alias. */
11662 #if defined __stub_$ac_func || defined __stub___$ac_func
11669 return $ac_func ();
11674 rm -f conftest.
$ac_objext conftest
$ac_exeext
11675 if { (ac_try
="$ac_link"
11676 case "(($ac_try" in
11677 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11678 *) ac_try_echo=$ac_try;;
11680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11681 (eval "$ac_link") 2>conftest.er1
11683 grep -v '^ *+' conftest.er1 >conftest.err
11685 cat conftest.err >&5
11686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687 (exit $ac_status); } && {
11688 test -z "$ac_c_werror_flag" ||
11689 test ! -s conftest.err
11690 } && test -s conftest$ac_exeext &&
11691 $as_test_x conftest$ac_exeext; then
11692 eval "$as_ac_var=yes"
11694 echo "$as_me: failed program was:" >&5
11695 sed 's/^/| /' conftest.$ac_ext >&5
11697 eval "$as_ac_var=no"
11700 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11701 conftest$ac_exeext conftest.$ac_ext
11703 ac_res=`eval echo '${'$as_ac_var'}'`
11704 { echo "$as_me:$LINENO: result: $ac_res" >&5
11705 echo "${ECHO_T}$ac_res" >&6; }
11706 if test `eval echo '${'$as_ac_var'}'` = yes; then
11707 cat >>confdefs.h <<_ACEOF
11708 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11710 HAVE_GTK_FILE_SELECTION=yes
11715 HAVE_GTK_FILE_CHOOSER=no
11717 for ac_func in gtk_file_chooser_dialog_new
11719 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11720 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11721 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11722 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11723 echo $ECHO_N "(cached) $ECHO_C" >&6
11725 cat >conftest.$ac_ext <<_ACEOF
11728 cat confdefs.h >>conftest.$ac_ext
11729 cat >>conftest.$ac_ext <<_ACEOF
11730 /* end confdefs.h. */
11731 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11732 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11733 #define $ac_func innocuous_$ac_func
11735 /* System header to define __stub macros and hopefully few prototypes,
11736 which can conflict with char $ac_func (); below.
11737 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11738 <limits.h> exists even on freestanding compilers. */
11741 # include <limits.h>
11743 # include <assert.h>
11748 /* Override any GCC internal prototype to avoid an error.
11749 Use char because int might match the return type of a GCC
11750 builtin and then its argument prototype would still apply. */
11755 /* The GNU C library defines this for functions which it implements
11756 to always fail with ENOSYS. Some functions are actually named
11757 something starting with __ and the normal name is an alias. */
11758 #if defined __stub_$ac_func || defined __stub___$ac_func
11765 return $ac_func ();
11770 rm -f conftest.$ac_objext conftest$ac_exeext
11771 if { (ac_try="$ac_link"
11772 case "(($ac_try" in
11773 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11774 *) ac_try_echo
=$ac_try;;
11776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11777 (eval "$ac_link") 2>conftest.er1
11779 grep -v '^ *+' conftest.er1
>conftest.err
11781 cat conftest.err
>&5
11782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783 (exit $ac_status); } && {
11784 test -z "$ac_c_werror_flag" ||
11785 test ! -s conftest.err
11786 } && test -s conftest
$ac_exeext &&
11787 $as_test_x conftest
$ac_exeext; then
11788 eval "$as_ac_var=yes"
11790 echo "$as_me: failed program was:" >&5
11791 sed 's/^/| /' conftest.
$ac_ext >&5
11793 eval "$as_ac_var=no"
11796 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11797 conftest
$ac_exeext conftest.
$ac_ext
11799 ac_res
=`eval echo '${'$as_ac_var'}'`
11800 { echo "$as_me:$LINENO: result: $ac_res" >&5
11801 echo "${ECHO_T}$ac_res" >&6; }
11802 if test `eval echo '${'$as_ac_var'}'` = yes; then
11803 cat >>confdefs.h
<<_ACEOF
11804 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11806 HAVE_GTK_FILE_CHOOSER
=yes
11811 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11812 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11814 cat >>confdefs.h
<<\_ACEOF
11815 #define HAVE_GTK_FILE_BOTH 1
11820 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11821 HAVE_GTK_AND_PTHREAD
=no
11823 for ac_header
in pthread.h
11825 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11826 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11827 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11828 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11829 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11830 echo $ECHO_N "(cached) $ECHO_C" >&6
11832 ac_res
=`eval echo '${'$as_ac_Header'}'`
11833 { echo "$as_me:$LINENO: result: $ac_res" >&5
11834 echo "${ECHO_T}$ac_res" >&6; }
11836 # Is the header compilable?
11837 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11838 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11839 cat >conftest.
$ac_ext <<_ACEOF
11842 cat confdefs.h
>>conftest.
$ac_ext
11843 cat >>conftest.
$ac_ext <<_ACEOF
11844 /* end confdefs.h. */
11845 $ac_includes_default
11846 #include <$ac_header>
11848 rm -f conftest.
$ac_objext
11849 if { (ac_try
="$ac_compile"
11850 case "(($ac_try" in
11851 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11852 *) ac_try_echo=$ac_try;;
11854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11855 (eval "$ac_compile") 2>conftest.er1
11857 grep -v '^ *+' conftest.er1 >conftest.err
11859 cat conftest.err >&5
11860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861 (exit $ac_status); } && {
11862 test -z "$ac_c_werror_flag" ||
11863 test ! -s conftest.err
11864 } && test -s conftest.$ac_objext; then
11865 ac_header_compiler=yes
11867 echo "$as_me: failed program was:" >&5
11868 sed 's/^/| /' conftest.$ac_ext >&5
11870 ac_header_compiler=no
11873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11874 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11875 echo "${ECHO_T}$ac_header_compiler" >&6; }
11877 # Is the header present?
11878 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11879 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11880 cat >conftest.$ac_ext <<_ACEOF
11883 cat confdefs.h >>conftest.$ac_ext
11884 cat >>conftest.$ac_ext <<_ACEOF
11885 /* end confdefs.h. */
11886 #include <$ac_header>
11888 if { (ac_try="$ac_cpp conftest.$ac_ext"
11889 case "(($ac_try" in
11890 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11891 *) ac_try_echo
=$ac_try;;
11893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11894 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11896 grep -v '^ *+' conftest.er1
>conftest.err
11898 cat conftest.err
>&5
11899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900 (exit $ac_status); } >/dev
/null
&& {
11901 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11902 test ! -s conftest.err
11904 ac_header_preproc
=yes
11906 echo "$as_me: failed program was:" >&5
11907 sed 's/^/| /' conftest.
$ac_ext >&5
11909 ac_header_preproc
=no
11912 rm -f conftest.err conftest.
$ac_ext
11913 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11914 echo "${ECHO_T}$ac_header_preproc" >&6; }
11916 # So? What about this header?
11917 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11919 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11920 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11921 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11922 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11923 ac_header_preproc
=yes
11926 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11927 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11928 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11929 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11930 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11931 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11932 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11933 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11934 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11935 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11936 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11937 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11941 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11943 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11944 echo $ECHO_N "(cached) $ECHO_C" >&6
11946 eval "$as_ac_Header=\$ac_header_preproc"
11948 ac_res
=`eval echo '${'$as_ac_Header'}'`
11949 { echo "$as_me:$LINENO: result: $ac_res" >&5
11950 echo "${ECHO_T}$ac_res" >&6; }
11953 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11954 cat >>confdefs.h
<<_ACEOF
11955 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11962 if test "$ac_cv_header_pthread_h"; then
11963 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11964 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11965 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11966 echo $ECHO_N "(cached) $ECHO_C" >&6
11968 ac_check_lib_save_LIBS
=$LIBS
11969 LIBS
="-lpthread $LIBS"
11970 cat >conftest.
$ac_ext <<_ACEOF
11973 cat confdefs.h
>>conftest.
$ac_ext
11974 cat >>conftest.
$ac_ext <<_ACEOF
11975 /* end confdefs.h. */
11977 /* Override any GCC internal prototype to avoid an error.
11978 Use char because int might match the return type of a GCC
11979 builtin and then its argument prototype would still apply. */
11983 char pthread_self ();
11987 return pthread_self ();
11992 rm -f conftest.
$ac_objext conftest
$ac_exeext
11993 if { (ac_try
="$ac_link"
11994 case "(($ac_try" in
11995 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11996 *) ac_try_echo=$ac_try;;
11998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11999 (eval "$ac_link") 2>conftest.er1
12001 grep -v '^ *+' conftest.er1 >conftest.err
12003 cat conftest.err >&5
12004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12005 (exit $ac_status); } && {
12006 test -z "$ac_c_werror_flag" ||
12007 test ! -s conftest.err
12008 } && test -s conftest$ac_exeext &&
12009 $as_test_x conftest$ac_exeext; then
12010 ac_cv_lib_pthread_pthread_self=yes
12012 echo "$as_me: failed program was:" >&5
12013 sed 's/^/| /' conftest.$ac_ext >&5
12015 ac_cv_lib_pthread_pthread_self=no
12018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12019 conftest$ac_exeext conftest.$ac_ext
12020 LIBS=$ac_check_lib_save_LIBS
12022 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
12023 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
12024 if test $ac_cv_lib_pthread_pthread_self = yes; then
12025 HAVE_GTK_AND_PTHREAD=yes
12029 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
12030 GTK_LIBS="$GTK_LIBS -lpthread"
12032 cat >>confdefs.h <<\_ACEOF
12033 #define HAVE_GTK_AND_PTHREAD 1
12040 ### Link with -lXft if available to work around a bug.
12042 if test "${HAVE_GTK}" = "yes"; then
12043 if test "X${with_pkg_config_prog}" != X; then
12044 PKG_CONFIG="${with_pkg_config_prog}"
12050 if test -z "$PKG_CONFIG"; then
12051 # Extract the first word of "pkg-config", so it can be a program name with args.
12052 set dummy pkg-config; ac_word=$2
12053 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12055 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12056 echo $ECHO_N "(cached) $ECHO_C" >&6
12058 case $PKG_CONFIG in
12060 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12064 for as_dir in $PATH
12067 test -z "$as_dir" && as_dir=.
12068 for ac_exec_ext in '' $ac_executable_extensions; do
12069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12070 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12078 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12082 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12083 if test -n "$PKG_CONFIG"; then
12084 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12085 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12087 { echo "$as_me:$LINENO: result: no" >&5
12088 echo "${ECHO_T}no" >&6; }
12094 if test "$PKG_CONFIG" = "no" ; then
12097 PKG_CONFIG_MIN_VERSION=0.9.0
12098 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12099 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12100 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12102 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12103 { echo "$as_me:$LINENO: result: yes" >&5
12104 echo "${ECHO_T}yes" >&6; }
12107 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12108 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12109 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|
sed -e 's,///*,/,g'`
12110 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12111 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12113 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12114 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12115 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|
sed -e 's,///*,/,g'`
12116 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12117 echo "${ECHO_T}$XFT_LIBS" >&6; }
12119 { echo "$as_me:$LINENO: result: no" >&5
12120 echo "${ECHO_T}no" >&6; }
12123 ## If we have a custom action on failure, don't print errors, but
12124 ## do set a variable so people can do so.
12125 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12132 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12133 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12137 if test $succeeded = yes; then
12143 if test "$HAVE_XFT" != no; then
12144 OLD_CFLAGS="$CPPFLAGS"
12145 OLD_CPPFLAGS="$CFLAGS"
12147 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12148 CFLAGS="$CFLAGS $XFT_CFLAGS"
12149 LIBS="$XFT_LIBS $LIBS"
12150 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12151 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12152 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12153 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12154 echo $ECHO_N "(cached) $ECHO_C" >&6
12156 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12157 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12159 # Is the header compilable?
12160 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12161 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12162 cat >conftest.$ac_ext <<_ACEOF
12165 cat confdefs.h >>conftest.$ac_ext
12166 cat >>conftest.$ac_ext <<_ACEOF
12167 /* end confdefs.h. */
12168 $ac_includes_default
12169 #include <X11/Xft/Xft.h>
12171 rm -f conftest.$ac_objext
12172 if { (ac_try="$ac_compile"
12173 case "(($ac_try" in
12174 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12175 *) ac_try_echo
=$ac_try;;
12177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12178 (eval "$ac_compile") 2>conftest.er1
12180 grep -v '^ *+' conftest.er1
>conftest.err
12182 cat conftest.err
>&5
12183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184 (exit $ac_status); } && {
12185 test -z "$ac_c_werror_flag" ||
12186 test ! -s conftest.err
12187 } && test -s conftest.
$ac_objext; then
12188 ac_header_compiler
=yes
12190 echo "$as_me: failed program was:" >&5
12191 sed 's/^/| /' conftest.
$ac_ext >&5
12193 ac_header_compiler
=no
12196 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12197 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12198 echo "${ECHO_T}$ac_header_compiler" >&6; }
12200 # Is the header present?
12201 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12202 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12203 cat >conftest.
$ac_ext <<_ACEOF
12206 cat confdefs.h
>>conftest.
$ac_ext
12207 cat >>conftest.
$ac_ext <<_ACEOF
12208 /* end confdefs.h. */
12209 #include <X11/Xft/Xft.h>
12211 if { (ac_try
="$ac_cpp conftest.$ac_ext"
12212 case "(($ac_try" in
12213 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12214 *) ac_try_echo=$ac_try;;
12216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12217 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12219 grep -v '^ *+' conftest.er1 >conftest.err
12221 cat conftest.err >&5
12222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223 (exit $ac_status); } >/dev/null && {
12224 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12225 test ! -s conftest.err
12227 ac_header_preproc=yes
12229 echo "$as_me: failed program was:" >&5
12230 sed 's/^/| /' conftest.$ac_ext >&5
12232 ac_header_preproc=no
12235 rm -f conftest.err conftest.$ac_ext
12236 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12237 echo "${ECHO_T}$ac_header_preproc" >&6; }
12239 # So? What about this header?
12240 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12242 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12243 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12244 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12245 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12246 ac_header_preproc=yes
12249 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12250 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12251 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12252 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12253 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12254 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12255 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12256 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12257 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12258 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12259 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12260 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12264 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12265 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12266 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12267 echo $ECHO_N "(cached) $ECHO_C" >&6
12269 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
12271 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12272 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12275 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12276 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12277 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12278 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12279 echo $ECHO_N "(cached) $ECHO_C" >&6
12281 ac_check_lib_save_LIBS=$LIBS
12282 LIBS="-lXft $XFT_LIBS $LIBS"
12283 cat >conftest.$ac_ext <<_ACEOF
12286 cat confdefs.h >>conftest.$ac_ext
12287 cat >>conftest.$ac_ext <<_ACEOF
12288 /* end confdefs.h. */
12290 /* Override any GCC internal prototype to avoid an error.
12291 Use char because int might match the return type of a GCC
12292 builtin and then its argument prototype would still apply. */
12296 char XftFontOpen ();
12300 return XftFontOpen ();
12305 rm -f conftest.$ac_objext conftest$ac_exeext
12306 if { (ac_try="$ac_link"
12307 case "(($ac_try" in
12308 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12309 *) ac_try_echo
=$ac_try;;
12311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12312 (eval "$ac_link") 2>conftest.er1
12314 grep -v '^ *+' conftest.er1
>conftest.err
12316 cat conftest.err
>&5
12317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318 (exit $ac_status); } && {
12319 test -z "$ac_c_werror_flag" ||
12320 test ! -s conftest.err
12321 } && test -s conftest
$ac_exeext &&
12322 $as_test_x conftest
$ac_exeext; then
12323 ac_cv_lib_Xft_XftFontOpen
=yes
12325 echo "$as_me: failed program was:" >&5
12326 sed 's/^/| /' conftest.
$ac_ext >&5
12328 ac_cv_lib_Xft_XftFontOpen
=no
12331 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12332 conftest
$ac_exeext conftest.
$ac_ext
12333 LIBS
=$ac_check_lib_save_LIBS
12335 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12336 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12337 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12345 if test "${HAVE_XFT}" = "yes"; then
12347 cat >>confdefs.h
<<\_ACEOF
12352 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
12354 CFLAGS
="$OLD_CPPFLAGS"
12355 CFLAGS
="$OLD_CFLAGS"
12362 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
12363 if test x
"${HAVE_X11R5}" != xyes
; then
12366 if test "$with_xaw3d" != no
; then
12367 { echo "$as_me:$LINENO: checking for xaw3d" >&5
12368 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
12369 if test "${emacs_cv_xaw3d+set}" = set; then
12370 echo $ECHO_N "(cached) $ECHO_C" >&6
12372 cat >conftest.
$ac_ext <<_ACEOF
12375 cat confdefs.h
>>conftest.
$ac_ext
12376 cat >>conftest.
$ac_ext <<_ACEOF
12377 /* end confdefs.h. */
12379 #include <X11/Intrinsic.h>
12380 #include <X11/Xaw3d/Simple.h>
12389 rm -f conftest.
$ac_objext conftest
$ac_exeext
12390 if { (ac_try
="$ac_link"
12391 case "(($ac_try" in
12392 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12393 *) ac_try_echo=$ac_try;;
12395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12396 (eval "$ac_link") 2>conftest.er1
12398 grep -v '^ *+' conftest.er1 >conftest.err
12400 cat conftest.err >&5
12401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402 (exit $ac_status); } && {
12403 test -z "$ac_c_werror_flag" ||
12404 test ! -s conftest.err
12405 } && test -s conftest$ac_exeext &&
12406 $as_test_x conftest$ac_exeext; then
12409 echo "$as_me: failed program was:" >&5
12410 sed 's/^/| /' conftest.$ac_ext >&5
12415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12416 conftest$ac_exeext conftest.$ac_ext
12422 if test $emacs_cv_xaw3d = yes; then
12423 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12424 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12425 USE_X_TOOLKIT=LUCID
12428 cat >>confdefs.h <<\_ACEOF
12429 #define HAVE_XAW3D 1
12433 { echo "$as_me:$LINENO: result: no" >&5
12434 echo "${ECHO_T}no" >&6; }
12435 { echo "$as_me:$LINENO: checking for libXaw" >&5
12436 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
12437 if test "${emacs_cv_xaw+set}" = set; then
12438 echo $ECHO_N "(cached) $ECHO_C" >&6
12440 cat >conftest.$ac_ext <<_ACEOF
12443 cat confdefs.h >>conftest.$ac_ext
12444 cat >>conftest.$ac_ext <<_ACEOF
12445 /* end confdefs.h. */
12447 #include <X11/Intrinsic.h>
12448 #include <X11/Xaw/Simple.h>
12457 rm -f conftest.$ac_objext conftest$ac_exeext
12458 if { (ac_try="$ac_link"
12459 case "(($ac_try" in
12460 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12461 *) ac_try_echo
=$ac_try;;
12463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12464 (eval "$ac_link") 2>conftest.er1
12466 grep -v '^ *+' conftest.er1
>conftest.err
12468 cat conftest.err
>&5
12469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470 (exit $ac_status); } && {
12471 test -z "$ac_c_werror_flag" ||
12472 test ! -s conftest.err
12473 } && test -s conftest
$ac_exeext &&
12474 $as_test_x conftest
$ac_exeext; then
12477 echo "$as_me: failed program was:" >&5
12478 sed 's/^/| /' conftest.
$ac_ext >&5
12483 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12484 conftest
$ac_exeext conftest.
$ac_ext
12487 if test $emacs_cv_xaw = yes; then
12488 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12489 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12490 USE_X_TOOLKIT
=LUCID
12491 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
12492 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12493 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12494 { (exit 1); exit 1; }; }
12496 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
12497 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
12504 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
12506 if test "${USE_X_TOOLKIT}" != "none"; then
12507 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12508 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
12509 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12510 echo $ECHO_N "(cached) $ECHO_C" >&6
12512 cat >conftest.
$ac_ext <<_ACEOF
12515 cat confdefs.h
>>conftest.
$ac_ext
12516 cat >>conftest.
$ac_ext <<_ACEOF
12517 /* end confdefs.h. */
12518 #include <X11/Intrinsic.h>
12522 #if XtSpecificationRelease < 6
12530 rm -f conftest.
$ac_objext conftest
$ac_exeext
12531 if { (ac_try
="$ac_link"
12532 case "(($ac_try" in
12533 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12534 *) ac_try_echo=$ac_try;;
12536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12537 (eval "$ac_link") 2>conftest.er1
12539 grep -v '^ *+' conftest.er1 >conftest.err
12541 cat conftest.err >&5
12542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543 (exit $ac_status); } && {
12544 test -z "$ac_c_werror_flag" ||
12545 test ! -s conftest.err
12546 } && test -s conftest$ac_exeext &&
12547 $as_test_x conftest$ac_exeext; then
12548 emacs_cv_x11_toolkit_version_6=yes
12550 echo "$as_me: failed program was:" >&5
12551 sed 's/^/| /' conftest.$ac_ext >&5
12553 emacs_cv_x11_toolkit_version_6=no
12556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12557 conftest$ac_exeext conftest.$ac_ext
12560 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12561 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12562 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12563 echo "${ECHO_T}6 or newer" >&6; }
12565 cat >>confdefs.h <<\_ACEOF
12566 #define HAVE_X11XTR6 1
12570 { echo "$as_me:$LINENO: result: before 6" >&5
12571 echo "${ECHO_T}before 6" >&6; }
12575 if test x$HAVE_X11XTR6 = xyes; then
12576 LIBS="-lXt -lSM -lICE $LIBS"
12581 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12582 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12583 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12584 echo $ECHO_N "(cached) $ECHO_C" >&6
12586 ac_check_lib_save_LIBS=$LIBS
12588 cat >conftest.$ac_ext <<_ACEOF
12591 cat confdefs.h >>conftest.$ac_ext
12592 cat >>conftest.$ac_ext <<_ACEOF
12593 /* end confdefs.h. */
12595 /* Override any GCC internal prototype to avoid an error.
12596 Use char because int might match the return type of a GCC
12597 builtin and then its argument prototype would still apply. */
12601 char XmuConvertStandardSelection ();
12605 return XmuConvertStandardSelection ();
12610 rm -f conftest.$ac_objext conftest$ac_exeext
12611 if { (ac_try="$ac_link"
12612 case "(($ac_try" in
12613 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12614 *) ac_try_echo
=$ac_try;;
12616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12617 (eval "$ac_link") 2>conftest.er1
12619 grep -v '^ *+' conftest.er1
>conftest.err
12621 cat conftest.err
>&5
12622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12623 (exit $ac_status); } && {
12624 test -z "$ac_c_werror_flag" ||
12625 test ! -s conftest.err
12626 } && test -s conftest
$ac_exeext &&
12627 $as_test_x conftest
$ac_exeext; then
12628 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
12630 echo "$as_me: failed program was:" >&5
12631 sed 's/^/| /' conftest.
$ac_ext >&5
12633 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
12636 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12637 conftest
$ac_exeext conftest.
$ac_ext
12638 LIBS
=$ac_check_lib_save_LIBS
12640 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12641 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12642 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12643 cat >>confdefs.h
<<_ACEOF
12644 #define HAVE_LIBXMU 1
12651 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
12654 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12655 if test "${HAVE_X11}" = "yes"; then
12656 if test "${USE_X_TOOLKIT}" != "none"; then
12658 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12659 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12660 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12661 echo $ECHO_N "(cached) $ECHO_C" >&6
12663 ac_check_lib_save_LIBS
=$LIBS
12664 LIBS
="-lXext $LIBS"
12665 cat >conftest.
$ac_ext <<_ACEOF
12668 cat confdefs.h
>>conftest.
$ac_ext
12669 cat >>conftest.
$ac_ext <<_ACEOF
12670 /* end confdefs.h. */
12672 /* Override any GCC internal prototype to avoid an error.
12673 Use char because int might match the return type of a GCC
12674 builtin and then its argument prototype would still apply. */
12678 char XShapeQueryExtension ();
12682 return XShapeQueryExtension ();
12687 rm -f conftest.
$ac_objext conftest
$ac_exeext
12688 if { (ac_try
="$ac_link"
12689 case "(($ac_try" in
12690 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12691 *) ac_try_echo=$ac_try;;
12693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12694 (eval "$ac_link") 2>conftest.er1
12696 grep -v '^ *+' conftest.er1 >conftest.err
12698 cat conftest.err >&5
12699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12700 (exit $ac_status); } && {
12701 test -z "$ac_c_werror_flag" ||
12702 test ! -s conftest.err
12703 } && test -s conftest$ac_exeext &&
12704 $as_test_x conftest$ac_exeext; then
12705 ac_cv_lib_Xext_XShapeQueryExtension=yes
12707 echo "$as_me: failed program was:" >&5
12708 sed 's/^/| /' conftest.$ac_ext >&5
12710 ac_cv_lib_Xext_XShapeQueryExtension=no
12713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12714 conftest$ac_exeext conftest.$ac_ext
12715 LIBS=$ac_check_lib_save_LIBS
12717 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12718 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12719 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12720 cat >>confdefs.h <<_ACEOF
12721 #define HAVE_LIBXEXT 1
12724 LIBS="-lXext $LIBS"
12731 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12732 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12733 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12734 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12735 echo $ECHO_N "(cached) $ECHO_C" >&6
12737 cat >conftest.$ac_ext <<_ACEOF
12740 cat confdefs.h >>conftest.$ac_ext
12741 cat >>conftest.$ac_ext <<_ACEOF
12742 /* end confdefs.h. */
12747 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12750 Motif version prior to 2.1.
12756 rm -f conftest.$ac_objext
12757 if { (ac_try="$ac_compile"
12758 case "(($ac_try" in
12759 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12760 *) ac_try_echo
=$ac_try;;
12762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12763 (eval "$ac_compile") 2>conftest.er1
12765 grep -v '^ *+' conftest.er1
>conftest.err
12767 cat conftest.err
>&5
12768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769 (exit $ac_status); } && {
12770 test -z "$ac_c_werror_flag" ||
12771 test ! -s conftest.err
12772 } && test -s conftest.
$ac_objext; then
12773 emacs_cv_motif_version_2_1
=yes
12775 echo "$as_me: failed program was:" >&5
12776 sed 's/^/| /' conftest.
$ac_ext >&5
12778 emacs_cv_motif_version_2_1
=no
12781 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12783 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12784 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12785 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
12786 if test $emacs_cv_motif_version_2_1 = yes; then
12789 cat >>confdefs.h
<<\_ACEOF
12790 #define HAVE_MOTIF_2_1 1
12793 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12794 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12795 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12796 echo $ECHO_N "(cached) $ECHO_C" >&6
12798 ac_check_lib_save_LIBS
=$LIBS
12800 cat >conftest.
$ac_ext <<_ACEOF
12803 cat confdefs.h
>>conftest.
$ac_ext
12804 cat >>conftest.
$ac_ext <<_ACEOF
12805 /* end confdefs.h. */
12807 /* Override any GCC internal prototype to avoid an error.
12808 Use char because int might match the return type of a GCC
12809 builtin and then its argument prototype would still apply. */
12813 char XpCreateContext ();
12817 return XpCreateContext ();
12822 rm -f conftest.
$ac_objext conftest
$ac_exeext
12823 if { (ac_try
="$ac_link"
12824 case "(($ac_try" in
12825 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12826 *) ac_try_echo=$ac_try;;
12828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12829 (eval "$ac_link") 2>conftest.er1
12831 grep -v '^ *+' conftest.er1 >conftest.err
12833 cat conftest.err >&5
12834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12835 (exit $ac_status); } && {
12836 test -z "$ac_c_werror_flag" ||
12837 test ! -s conftest.err
12838 } && test -s conftest$ac_exeext &&
12839 $as_test_x conftest$ac_exeext; then
12840 ac_cv_lib_Xp_XpCreateContext=yes
12842 echo "$as_me: failed program was:" >&5
12843 sed 's/^/| /' conftest.$ac_ext >&5
12845 ac_cv_lib_Xp_XpCreateContext=no
12848 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12849 conftest$ac_exeext conftest.$ac_ext
12850 LIBS=$ac_check_lib_save_LIBS
12852 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12853 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12854 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12858 if test ${HAVE_LIBXP} = yes; then
12860 cat >>confdefs.h <<\_ACEOF
12861 #define HAVE_LIBXP 1
12866 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12867 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12868 if test "${emacs_cv_lesstif+set}" = set; then
12869 echo $ECHO_N "(cached) $ECHO_C" >&6
12871 # We put this in CFLAGS temporarily to precede other -I options
12872 # that might be in CFLAGS temporarily.
12873 # We put this in CPPFLAGS where it precedes the other -I options.
12874 OLD_CPPFLAGS=$CPPFLAGS
12876 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12877 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12878 cat >conftest.$ac_ext <<_ACEOF
12881 cat confdefs.h >>conftest.$ac_ext
12882 cat >>conftest.$ac_ext <<_ACEOF
12883 /* end confdefs.h. */
12884 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12893 rm -f conftest.$ac_objext
12894 if { (ac_try="$ac_compile"
12895 case "(($ac_try" in
12896 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12897 *) ac_try_echo
=$ac_try;;
12899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12900 (eval "$ac_compile") 2>conftest.er1
12902 grep -v '^ *+' conftest.er1
>conftest.err
12904 cat conftest.err
>&5
12905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12906 (exit $ac_status); } && {
12907 test -z "$ac_c_werror_flag" ||
12908 test ! -s conftest.err
12909 } && test -s conftest.
$ac_objext; then
12910 emacs_cv_lesstif
=yes
12912 echo "$as_me: failed program was:" >&5
12913 sed 's/^/| /' conftest.
$ac_ext >&5
12915 emacs_cv_lesstif
=no
12918 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12920 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12921 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12922 if test $emacs_cv_lesstif = yes; then
12923 # Make sure this -I option remains in CPPFLAGS after it is set
12924 # back to REAL_CPPFLAGS.
12925 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12926 # have those other -I options anyway. Ultimately, having this
12927 # directory ultimately in CPPFLAGS will be enough.
12928 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12929 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12932 CPPFLAGS
=$OLD_CPPFLAGS
12939 USE_TOOLKIT_SCROLL_BARS
=no
12940 if test "${with_toolkit_scroll_bars}" != "no"; then
12941 if test "${USE_X_TOOLKIT}" != "none"; then
12942 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12943 cat >>confdefs.h
<<\_ACEOF
12944 #define USE_TOOLKIT_SCROLL_BARS 1
12948 USE_TOOLKIT_SCROLL_BARS
=yes
12949 elif test "${HAVE_XAW3D}" = "yes"; then
12950 cat >>confdefs.h
<<\_ACEOF
12951 #define USE_TOOLKIT_SCROLL_BARS 1
12954 USE_TOOLKIT_SCROLL_BARS
=yes
12956 elif test "${HAVE_GTK}" = "yes"; then
12957 cat >>confdefs.h
<<\_ACEOF
12958 #define USE_TOOLKIT_SCROLL_BARS 1
12961 USE_TOOLKIT_SCROLL_BARS
=yes
12962 elif test "${HAVE_CARBON}" = "yes"; then
12963 cat >>confdefs.h
<<\_ACEOF
12964 #define USE_TOOLKIT_SCROLL_BARS 1
12967 USE_TOOLKIT_SCROLL_BARS
=yes
12971 cat >conftest.
$ac_ext <<_ACEOF
12974 cat confdefs.h
>>conftest.
$ac_ext
12975 cat >>conftest.
$ac_ext <<_ACEOF
12976 /* end confdefs.h. */
12978 #include <X11/Xlib.h>
12979 #include <X11/Xresource.h>
12988 rm -f conftest.
$ac_objext
12989 if { (ac_try
="$ac_compile"
12990 case "(($ac_try" in
12991 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12992 *) ac_try_echo=$ac_try;;
12994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12995 (eval "$ac_compile") 2>conftest.er1
12997 grep -v '^ *+' conftest.er1 >conftest.err
12999 cat conftest.err >&5
13000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001 (exit $ac_status); } && {
13002 test -z "$ac_c_werror_flag" ||
13003 test ! -s conftest.err
13004 } && test -s conftest.$ac_objext; then
13007 cat >>confdefs.h <<\_ACEOF
13012 echo "$as_me: failed program was:" >&5
13013 sed 's/^/| /' conftest.$ac_ext >&5
13018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13021 if test "${with_xim}" != "no"; then
13023 cat >>confdefs.h <<\_ACEOF
13030 if test "${HAVE_XIM}" != "no"; then
13031 late_CFLAGS=$CFLAGS
13032 if test "$GCC" = yes; then
13033 CFLAGS="$CFLAGS --pedantic-errors"
13035 cat >conftest.$ac_ext <<_ACEOF
13038 cat confdefs.h >>conftest.$ac_ext
13039 cat >>conftest.$ac_ext <<_ACEOF
13040 /* end confdefs.h. */
13042 #include <X11/Xlib.h>
13043 #include <X11/Xresource.h>
13052 XPointer *client_data;
13054 /* If we're not using GCC, it's probably not XFree86, and this is
13055 probably right, but we can't use something like --pedantic-errors. */
13056 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
13057 char*, XIMProc, XPointer*);
13059 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
13065 rm -f conftest.$ac_objext
13066 if { (ac_try="$ac_compile"
13067 case "(($ac_try" in
13068 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13069 *) ac_try_echo
=$ac_try;;
13071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13072 (eval "$ac_compile") 2>conftest.er1
13074 grep -v '^ *+' conftest.er1
>conftest.err
13076 cat conftest.err
>&5
13077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13078 (exit $ac_status); } && {
13079 test -z "$ac_c_werror_flag" ||
13080 test ! -s conftest.err
13081 } && test -s conftest.
$ac_objext; then
13082 emacs_cv_arg6_star
=yes
13084 echo "$as_me: failed program was:" >&5
13085 sed 's/^/| /' conftest.
$ac_ext >&5
13090 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13092 if test "$emacs_cv_arg6_star" = yes; then
13093 cat >>confdefs.h
<<\_ACEOF
13094 #define XRegisterIMInstantiateCallback_arg6 XPointer*
13098 cat >>confdefs.h
<<\_ACEOF
13099 #define XRegisterIMInstantiateCallback_arg6 XPointer
13103 CFLAGS
=$late_CFLAGS
13106 ### Use -lXpm if available, unless `--with-xpm=no'.
13108 if test "${HAVE_X11}" = "yes"; then
13109 if test "${with_xpm}" != "no"; then
13110 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13111 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13112 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13113 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13114 echo $ECHO_N "(cached) $ECHO_C" >&6
13116 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13117 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13119 # Is the header compilable?
13120 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13121 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13122 cat >conftest.
$ac_ext <<_ACEOF
13125 cat confdefs.h
>>conftest.
$ac_ext
13126 cat >>conftest.
$ac_ext <<_ACEOF
13127 /* end confdefs.h. */
13128 $ac_includes_default
13129 #include <X11/xpm.h>
13131 rm -f conftest.
$ac_objext
13132 if { (ac_try
="$ac_compile"
13133 case "(($ac_try" in
13134 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13135 *) ac_try_echo=$ac_try;;
13137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13138 (eval "$ac_compile") 2>conftest.er1
13140 grep -v '^ *+' conftest.er1 >conftest.err
13142 cat conftest.err >&5
13143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13144 (exit $ac_status); } && {
13145 test -z "$ac_c_werror_flag" ||
13146 test ! -s conftest.err
13147 } && test -s conftest.$ac_objext; then
13148 ac_header_compiler=yes
13150 echo "$as_me: failed program was:" >&5
13151 sed 's/^/| /' conftest.$ac_ext >&5
13153 ac_header_compiler=no
13156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13157 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13158 echo "${ECHO_T}$ac_header_compiler" >&6; }
13160 # Is the header present?
13161 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13162 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13163 cat >conftest.$ac_ext <<_ACEOF
13166 cat confdefs.h >>conftest.$ac_ext
13167 cat >>conftest.$ac_ext <<_ACEOF
13168 /* end confdefs.h. */
13169 #include <X11/xpm.h>
13171 if { (ac_try="$ac_cpp conftest.$ac_ext"
13172 case "(($ac_try" in
13173 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13174 *) ac_try_echo
=$ac_try;;
13176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13177 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13179 grep -v '^ *+' conftest.er1
>conftest.err
13181 cat conftest.err
>&5
13182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183 (exit $ac_status); } >/dev
/null
&& {
13184 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13185 test ! -s conftest.err
13187 ac_header_preproc
=yes
13189 echo "$as_me: failed program was:" >&5
13190 sed 's/^/| /' conftest.
$ac_ext >&5
13192 ac_header_preproc
=no
13195 rm -f conftest.err conftest.
$ac_ext
13196 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13197 echo "${ECHO_T}$ac_header_preproc" >&6; }
13199 # So? What about this header?
13200 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13202 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13203 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13204 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13205 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13206 ac_header_preproc
=yes
13209 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13210 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13211 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13212 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13213 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13214 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13215 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13216 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13217 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13218 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13219 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13220 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13224 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13225 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13226 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13227 echo $ECHO_N "(cached) $ECHO_C" >&6
13229 ac_cv_header_X11_xpm_h
=$ac_header_preproc
13231 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13232 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13235 if test $ac_cv_header_X11_xpm_h = yes; then
13236 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13237 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13238 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13239 echo $ECHO_N "(cached) $ECHO_C" >&6
13241 ac_check_lib_save_LIBS
=$LIBS
13242 LIBS
="-lXpm -lX11 $LIBS"
13243 cat >conftest.
$ac_ext <<_ACEOF
13246 cat confdefs.h
>>conftest.
$ac_ext
13247 cat >>conftest.
$ac_ext <<_ACEOF
13248 /* end confdefs.h. */
13250 /* Override any GCC internal prototype to avoid an error.
13251 Use char because int might match the return type of a GCC
13252 builtin and then its argument prototype would still apply. */
13256 char XpmReadFileToPixmap ();
13260 return XpmReadFileToPixmap ();
13265 rm -f conftest.
$ac_objext conftest
$ac_exeext
13266 if { (ac_try
="$ac_link"
13267 case "(($ac_try" in
13268 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13269 *) ac_try_echo=$ac_try;;
13271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13272 (eval "$ac_link") 2>conftest.er1
13274 grep -v '^ *+' conftest.er1 >conftest.err
13276 cat conftest.err >&5
13277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13278 (exit $ac_status); } && {
13279 test -z "$ac_c_werror_flag" ||
13280 test ! -s conftest.err
13281 } && test -s conftest$ac_exeext &&
13282 $as_test_x conftest$ac_exeext; then
13283 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13285 echo "$as_me: failed program was:" >&5
13286 sed 's/^/| /' conftest.$ac_ext >&5
13288 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13291 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13292 conftest$ac_exeext conftest.$ac_ext
13293 LIBS=$ac_check_lib_save_LIBS
13295 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13296 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13297 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13304 if test "${HAVE_XPM}" = "yes"; then
13305 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13306 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13307 cat >conftest.$ac_ext <<_ACEOF
13310 cat confdefs.h >>conftest.$ac_ext
13311 cat >>conftest.$ac_ext <<_ACEOF
13312 /* end confdefs.h. */
13313 #include "X11/xpm.h"
13314 #ifndef XpmReturnAllocPixels
13315 no_return_alloc_pixels
13319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13320 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13328 if test "${HAVE_XPM}" = "yes"; then
13329 { echo "$as_me:$LINENO: result: yes" >&5
13330 echo "${ECHO_T}yes" >&6; }
13332 { echo "$as_me:$LINENO: result: no" >&5
13333 echo "${ECHO_T}no" >&6; }
13338 if test "${HAVE_XPM}" = "yes"; then
13340 cat >>confdefs.h <<\_ACEOF
13347 ### Use -ljpeg if available, unless `--with-jpeg=no
'.
13349 if test "${HAVE_X11}" = "yes"; then
13350 if test "${with_jpeg}" != "no"; then
13351 if test "${ac_cv_header_jerror_h+set}" = set; then
13352 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13353 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13354 if test "${ac_cv_header_jerror_h+set}" = set; then
13355 echo $ECHO_N "(cached) $ECHO_C" >&6
13357 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13358 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13360 # Is the header compilable?
13361 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13362 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13363 cat >conftest.$ac_ext <<_ACEOF
13366 cat confdefs.h >>conftest.$ac_ext
13367 cat >>conftest.$ac_ext <<_ACEOF
13368 /* end confdefs.h. */
13369 $ac_includes_default
13370 #include <jerror.h>
13372 rm -f conftest.$ac_objext
13373 if { (ac_try="$ac_compile"
13374 case "(($ac_try" in
13375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13376 *) ac_try_echo=$ac_try;;
13378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13379 (eval "$ac_compile") 2>conftest.er1
13381 grep -v '^
*+' conftest.er1 >conftest.err
13383 cat conftest.err >&5
13384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13385 (exit $ac_status); } && {
13386 test -z "$ac_c_werror_flag" ||
13387 test ! -s conftest.err
13388 } && test -s conftest.$ac_objext; then
13389 ac_header_compiler=yes
13391 echo "$as_me: failed program was:" >&5
13392 sed 's
/^
/|
/' conftest.$ac_ext >&5
13394 ac_header_compiler=no
13397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13398 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13399 echo "${ECHO_T}$ac_header_compiler" >&6; }
13401 # Is the header present?
13402 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13403 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13404 cat >conftest.$ac_ext <<_ACEOF
13407 cat confdefs.h >>conftest.$ac_ext
13408 cat >>conftest.$ac_ext <<_ACEOF
13409 /* end confdefs.h. */
13410 #include <jerror.h>
13412 if { (ac_try="$ac_cpp conftest.$ac_ext"
13413 case "(($ac_try" in
13414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13415 *) ac_try_echo=$ac_try;;
13417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13418 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13420 grep -v '^
*+' conftest.er1 >conftest.err
13422 cat conftest.err >&5
13423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13424 (exit $ac_status); } >/dev/null && {
13425 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13426 test ! -s conftest.err
13428 ac_header_preproc=yes
13430 echo "$as_me: failed program was:" >&5
13431 sed 's
/^
/|
/' conftest.$ac_ext >&5
13433 ac_header_preproc=no
13436 rm -f conftest.err conftest.$ac_ext
13437 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13438 echo "${ECHO_T}$ac_header_preproc" >&6; }
13440 # So? What about this header?
13441 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13443 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13444 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13445 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result
" >&5
13446 echo "$as_me: WARNING
: jerror.h
: proceeding with the compiler
's result" >&2;}
13447 ac_header_preproc=yes
13450 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13451 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13452 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13453 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13454 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13455 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13456 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13457 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13458 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result
" >&5
13459 echo "$as_me: WARNING
: jerror.h
: proceeding with the preprocessor
's result" >&2;}
13460 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13461 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13465 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13466 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13467 if test "${ac_cv_header_jerror_h+set}" = set; then
13468 echo $ECHO_N "(cached) $ECHO_C" >&6
13470 ac_cv_header_jerror_h=$ac_header_preproc
13472 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13473 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13476 if test $ac_cv_header_jerror_h = yes; then
13477 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13478 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13479 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13480 echo $ECHO_N "(cached) $ECHO_C" >&6
13482 ac_check_lib_save_LIBS=$LIBS
13483 LIBS="-ljpeg $LIBS"
13484 cat >conftest.$ac_ext <<_ACEOF
13487 cat confdefs.h >>conftest.$ac_ext
13488 cat >>conftest.$ac_ext <<_ACEOF
13489 /* end confdefs.h. */
13491 /* Override any GCC internal prototype to avoid an error.
13492 Use char because int might match the return type of a GCC
13493 builtin and then its argument prototype would still apply. */
13497 char jpeg_destroy_compress ();
13501 return jpeg_destroy_compress ();
13506 rm -f conftest.$ac_objext conftest$ac_exeext
13507 if { (ac_try="$ac_link"
13508 case "(($ac_try" in
13509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13510 *) ac_try_echo=$ac_try;;
13512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13513 (eval "$ac_link") 2>conftest.er1
13515 grep -v '^
*+' conftest.er1 >conftest.err
13517 cat conftest.err >&5
13518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13519 (exit $ac_status); } && {
13520 test -z "$ac_c_werror_flag" ||
13521 test ! -s conftest.err
13522 } && test -s conftest$ac_exeext &&
13523 $as_test_x conftest$ac_exeext; then
13524 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13526 echo "$as_me: failed program was:" >&5
13527 sed 's
/^
/|
/' conftest.$ac_ext >&5
13529 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13532 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13533 conftest$ac_exeext conftest.$ac_ext
13534 LIBS=$ac_check_lib_save_LIBS
13536 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13537 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13538 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13548 if test "${HAVE_JPEG}" = "yes"; then
13549 cat >>confdefs.h <<\_ACEOF
13550 #define HAVE_JPEG 1
13553 cat >conftest.$ac_ext <<_ACEOF
13556 cat confdefs.h >>conftest.$ac_ext
13557 cat >>conftest.$ac_ext <<_ACEOF
13558 /* end confdefs.h. */
13559 #include <jpeglib.h>
13560 version=JPEG_LIB_VERSION
13563 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13564 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13565 cat >>confdefs.h <<\_ACEOF
13566 #define HAVE_JPEG 1
13570 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13571 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13579 ### Use -lpng if available, unless `--with-png=no'.
13581 if test "${HAVE_X11}" = "yes"; then
13582 if test "${with_png}" != "no"; then
13583 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13584 # in /usr/include/libpng.
13587 for ac_header
in png.h libpng
/png.h
13589 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13590 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13591 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13593 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13594 echo $ECHO_N "(cached) $ECHO_C" >&6
13596 ac_res
=`eval echo '${'$as_ac_Header'}'`
13597 { echo "$as_me:$LINENO: result: $ac_res" >&5
13598 echo "${ECHO_T}$ac_res" >&6; }
13600 # Is the header compilable?
13601 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13602 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13603 cat >conftest.
$ac_ext <<_ACEOF
13606 cat confdefs.h
>>conftest.
$ac_ext
13607 cat >>conftest.
$ac_ext <<_ACEOF
13608 /* end confdefs.h. */
13609 $ac_includes_default
13610 #include <$ac_header>
13612 rm -f conftest.
$ac_objext
13613 if { (ac_try
="$ac_compile"
13614 case "(($ac_try" in
13615 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13616 *) ac_try_echo=$ac_try;;
13618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13619 (eval "$ac_compile") 2>conftest.er1
13621 grep -v '^ *+' conftest.er1 >conftest.err
13623 cat conftest.err >&5
13624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625 (exit $ac_status); } && {
13626 test -z "$ac_c_werror_flag" ||
13627 test ! -s conftest.err
13628 } && test -s conftest.$ac_objext; then
13629 ac_header_compiler=yes
13631 echo "$as_me: failed program was:" >&5
13632 sed 's/^/| /' conftest.$ac_ext >&5
13634 ac_header_compiler=no
13637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13638 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13639 echo "${ECHO_T}$ac_header_compiler" >&6; }
13641 # Is the header present?
13642 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13643 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13644 cat >conftest.$ac_ext <<_ACEOF
13647 cat confdefs.h >>conftest.$ac_ext
13648 cat >>conftest.$ac_ext <<_ACEOF
13649 /* end confdefs.h. */
13650 #include <$ac_header>
13652 if { (ac_try="$ac_cpp conftest.$ac_ext"
13653 case "(($ac_try" in
13654 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13655 *) ac_try_echo
=$ac_try;;
13657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13658 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13660 grep -v '^ *+' conftest.er1
>conftest.err
13662 cat conftest.err
>&5
13663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13664 (exit $ac_status); } >/dev
/null
&& {
13665 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13666 test ! -s conftest.err
13668 ac_header_preproc
=yes
13670 echo "$as_me: failed program was:" >&5
13671 sed 's/^/| /' conftest.
$ac_ext >&5
13673 ac_header_preproc
=no
13676 rm -f conftest.err conftest.
$ac_ext
13677 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13678 echo "${ECHO_T}$ac_header_preproc" >&6; }
13680 # So? What about this header?
13681 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13683 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13684 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13685 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13686 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13687 ac_header_preproc
=yes
13690 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13691 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13692 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13693 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13694 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13695 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13696 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13697 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13698 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13699 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13700 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13701 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13705 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13706 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13707 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13708 echo $ECHO_N "(cached) $ECHO_C" >&6
13710 eval "$as_ac_Header=\$ac_header_preproc"
13712 ac_res
=`eval echo '${'$as_ac_Header'}'`
13713 { echo "$as_me:$LINENO: result: $ac_res" >&5
13714 echo "${ECHO_T}$ac_res" >&6; }
13717 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13718 cat >>confdefs.h
<<_ACEOF
13719 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13726 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
13727 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13728 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13729 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13730 echo $ECHO_N "(cached) $ECHO_C" >&6
13732 ac_check_lib_save_LIBS
=$LIBS
13733 LIBS
="-lpng -lz -lm $LIBS"
13734 cat >conftest.
$ac_ext <<_ACEOF
13737 cat confdefs.h
>>conftest.
$ac_ext
13738 cat >>conftest.
$ac_ext <<_ACEOF
13739 /* end confdefs.h. */
13741 /* Override any GCC internal prototype to avoid an error.
13742 Use char because int might match the return type of a GCC
13743 builtin and then its argument prototype would still apply. */
13747 char png_get_channels ();
13751 return png_get_channels ();
13756 rm -f conftest.
$ac_objext conftest
$ac_exeext
13757 if { (ac_try
="$ac_link"
13758 case "(($ac_try" in
13759 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13760 *) ac_try_echo=$ac_try;;
13762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13763 (eval "$ac_link") 2>conftest.er1
13765 grep -v '^ *+' conftest.er1 >conftest.err
13767 cat conftest.err >&5
13768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13769 (exit $ac_status); } && {
13770 test -z "$ac_c_werror_flag" ||
13771 test ! -s conftest.err
13772 } && test -s conftest$ac_exeext &&
13773 $as_test_x conftest$ac_exeext; then
13774 ac_cv_lib_png_png_get_channels=yes
13776 echo "$as_me: failed program was:" >&5
13777 sed 's/^/| /' conftest.$ac_ext >&5
13779 ac_cv_lib_png_png_get_channels=no
13782 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13783 conftest$ac_exeext conftest.$ac_ext
13784 LIBS=$ac_check_lib_save_LIBS
13786 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13787 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13788 if test $ac_cv_lib_png_png_get_channels = yes; then
13795 if test "${HAVE_PNG}" = "yes"; then
13797 cat >>confdefs.h <<\_ACEOF
13804 ### Use -ltiff if available, unless `--with-tiff=no
'.
13806 if test "${HAVE_X11}" = "yes"; then
13807 if test "${with_tiff}" != "no"; then
13808 if test "${ac_cv_header_tiffio_h+set}" = set; then
13809 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13810 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13811 if test "${ac_cv_header_tiffio_h+set}" = set; then
13812 echo $ECHO_N "(cached) $ECHO_C" >&6
13814 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13815 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13817 # Is the header compilable?
13818 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13819 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13820 cat >conftest.$ac_ext <<_ACEOF
13823 cat confdefs.h >>conftest.$ac_ext
13824 cat >>conftest.$ac_ext <<_ACEOF
13825 /* end confdefs.h. */
13826 $ac_includes_default
13827 #include <tiffio.h>
13829 rm -f conftest.$ac_objext
13830 if { (ac_try="$ac_compile"
13831 case "(($ac_try" in
13832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13833 *) ac_try_echo=$ac_try;;
13835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13836 (eval "$ac_compile") 2>conftest.er1
13838 grep -v '^
*+' conftest.er1 >conftest.err
13840 cat conftest.err >&5
13841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13842 (exit $ac_status); } && {
13843 test -z "$ac_c_werror_flag" ||
13844 test ! -s conftest.err
13845 } && test -s conftest.$ac_objext; then
13846 ac_header_compiler=yes
13848 echo "$as_me: failed program was:" >&5
13849 sed 's
/^
/|
/' conftest.$ac_ext >&5
13851 ac_header_compiler=no
13854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13855 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13856 echo "${ECHO_T}$ac_header_compiler" >&6; }
13858 # Is the header present?
13859 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13860 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13861 cat >conftest.$ac_ext <<_ACEOF
13864 cat confdefs.h >>conftest.$ac_ext
13865 cat >>conftest.$ac_ext <<_ACEOF
13866 /* end confdefs.h. */
13867 #include <tiffio.h>
13869 if { (ac_try="$ac_cpp conftest.$ac_ext"
13870 case "(($ac_try" in
13871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13872 *) ac_try_echo=$ac_try;;
13874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13875 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13877 grep -v '^
*+' conftest.er1 >conftest.err
13879 cat conftest.err >&5
13880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881 (exit $ac_status); } >/dev/null && {
13882 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13883 test ! -s conftest.err
13885 ac_header_preproc=yes
13887 echo "$as_me: failed program was:" >&5
13888 sed 's
/^
/|
/' conftest.$ac_ext >&5
13890 ac_header_preproc=no
13893 rm -f conftest.err conftest.$ac_ext
13894 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13895 echo "${ECHO_T}$ac_header_preproc" >&6; }
13897 # So? What about this header?
13898 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13900 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13901 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13902 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result
" >&5
13903 echo "$as_me: WARNING
: tiffio.h
: proceeding with the compiler
's result" >&2;}
13904 ac_header_preproc=yes
13907 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13908 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13909 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13910 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13911 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13912 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13913 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13914 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13915 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result
" >&5
13916 echo "$as_me: WARNING
: tiffio.h
: proceeding with the preprocessor
's result" >&2;}
13917 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13918 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13922 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13923 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13924 if test "${ac_cv_header_tiffio_h+set}" = set; then
13925 echo $ECHO_N "(cached) $ECHO_C" >&6
13927 ac_cv_header_tiffio_h=$ac_header_preproc
13929 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13930 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13933 if test $ac_cv_header_tiffio_h = yes; then
13935 # At least one tiff package requires the jpeg library.
13936 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13937 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
13938 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
13939 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
13940 echo $ECHO_N "(cached) $ECHO_C" >&6
13942 ac_check_lib_save_LIBS=$LIBS
13943 LIBS="-ltiff $tifflibs $LIBS"
13944 cat >conftest.$ac_ext <<_ACEOF
13947 cat confdefs.h >>conftest.$ac_ext
13948 cat >>conftest.$ac_ext <<_ACEOF
13949 /* end confdefs.h. */
13951 /* Override any GCC internal prototype to avoid an error.
13952 Use char because int might match the return type of a GCC
13953 builtin and then its argument prototype would still apply. */
13957 char TIFFGetVersion ();
13961 return TIFFGetVersion ();
13966 rm -f conftest.$ac_objext conftest$ac_exeext
13967 if { (ac_try="$ac_link"
13968 case "(($ac_try" in
13969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13970 *) ac_try_echo=$ac_try;;
13972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13973 (eval "$ac_link") 2>conftest.er1
13975 grep -v '^
*+' conftest.er1 >conftest.err
13977 cat conftest.err >&5
13978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13979 (exit $ac_status); } && {
13980 test -z "$ac_c_werror_flag" ||
13981 test ! -s conftest.err
13982 } && test -s conftest$ac_exeext &&
13983 $as_test_x conftest$ac_exeext; then
13984 ac_cv_lib_tiff_TIFFGetVersion=yes
13986 echo "$as_me: failed program was:" >&5
13987 sed 's
/^
/|
/' conftest.$ac_ext >&5
13989 ac_cv_lib_tiff_TIFFGetVersion=no
13992 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13993 conftest$ac_exeext conftest.$ac_ext
13994 LIBS=$ac_check_lib_save_LIBS
13996 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13997 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13998 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14007 if test "${HAVE_TIFF}" = "yes"; then
14009 cat >>confdefs.h <<\_ACEOF
14010 #define HAVE_TIFF 1
14016 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14018 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14019 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14020 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14021 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14022 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14023 echo $ECHO_N "(cached) $ECHO_C" >&6
14025 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14026 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14028 # Is the header compilable?
14029 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14030 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14031 cat >conftest.
$ac_ext <<_ACEOF
14034 cat confdefs.h
>>conftest.
$ac_ext
14035 cat >>conftest.
$ac_ext <<_ACEOF
14036 /* end confdefs.h. */
14037 $ac_includes_default
14038 #include <gif_lib.h>
14040 rm -f conftest.
$ac_objext
14041 if { (ac_try
="$ac_compile"
14042 case "(($ac_try" in
14043 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14044 *) ac_try_echo=$ac_try;;
14046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14047 (eval "$ac_compile") 2>conftest.er1
14049 grep -v '^ *+' conftest.er1 >conftest.err
14051 cat conftest.err >&5
14052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14053 (exit $ac_status); } && {
14054 test -z "$ac_c_werror_flag" ||
14055 test ! -s conftest.err
14056 } && test -s conftest.$ac_objext; then
14057 ac_header_compiler=yes
14059 echo "$as_me: failed program was:" >&5
14060 sed 's/^/| /' conftest.$ac_ext >&5
14062 ac_header_compiler=no
14065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14066 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14067 echo "${ECHO_T}$ac_header_compiler" >&6; }
14069 # Is the header present?
14070 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14071 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14072 cat >conftest.$ac_ext <<_ACEOF
14075 cat confdefs.h >>conftest.$ac_ext
14076 cat >>conftest.$ac_ext <<_ACEOF
14077 /* end confdefs.h. */
14078 #include <gif_lib.h>
14080 if { (ac_try="$ac_cpp conftest.$ac_ext"
14081 case "(($ac_try" in
14082 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14083 *) ac_try_echo
=$ac_try;;
14085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14086 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14088 grep -v '^ *+' conftest.er1
>conftest.err
14090 cat conftest.err
>&5
14091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14092 (exit $ac_status); } >/dev
/null
&& {
14093 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14094 test ! -s conftest.err
14096 ac_header_preproc
=yes
14098 echo "$as_me: failed program was:" >&5
14099 sed 's/^/| /' conftest.
$ac_ext >&5
14101 ac_header_preproc
=no
14104 rm -f conftest.err conftest.
$ac_ext
14105 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14106 echo "${ECHO_T}$ac_header_preproc" >&6; }
14108 # So? What about this header?
14109 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14111 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14112 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14113 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14114 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14115 ac_header_preproc
=yes
14118 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14119 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14120 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14121 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14122 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14123 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14124 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14125 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14126 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14127 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14128 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14129 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14133 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14134 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14135 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14136 echo $ECHO_N "(cached) $ECHO_C" >&6
14138 ac_cv_header_gif_lib_h
=$ac_header_preproc
14140 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14141 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14144 if test $ac_cv_header_gif_lib_h = yes; then
14145 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14146 # Earlier versions can crash Emacs.
14147 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14148 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
14149 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14150 echo $ECHO_N "(cached) $ECHO_C" >&6
14152 ac_check_lib_save_LIBS
=$LIBS
14154 cat >conftest.
$ac_ext <<_ACEOF
14157 cat confdefs.h
>>conftest.
$ac_ext
14158 cat >>conftest.
$ac_ext <<_ACEOF
14159 /* end confdefs.h. */
14161 /* Override any GCC internal prototype to avoid an error.
14162 Use char because int might match the return type of a GCC
14163 builtin and then its argument prototype would still apply. */
14167 char EGifPutExtensionLast ();
14171 return EGifPutExtensionLast ();
14176 rm -f conftest.
$ac_objext conftest
$ac_exeext
14177 if { (ac_try
="$ac_link"
14178 case "(($ac_try" in
14179 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14180 *) ac_try_echo=$ac_try;;
14182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14183 (eval "$ac_link") 2>conftest.er1
14185 grep -v '^ *+' conftest.er1 >conftest.err
14187 cat conftest.err >&5
14188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189 (exit $ac_status); } && {
14190 test -z "$ac_c_werror_flag" ||
14191 test ! -s conftest.err
14192 } && test -s conftest$ac_exeext &&
14193 $as_test_x conftest$ac_exeext; then
14194 ac_cv_lib_gif_EGifPutExtensionLast=yes
14196 echo "$as_me: failed program was:" >&5
14197 sed 's/^/| /' conftest.$ac_ext >&5
14199 ac_cv_lib_gif_EGifPutExtensionLast=no
14202 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14203 conftest$ac_exeext conftest.$ac_ext
14204 LIBS=$ac_check_lib_save_LIBS
14206 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14207 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14208 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14218 if test "$HAVE_GIF" = yes; then
14219 ac_gif_lib_name="-lgif"
14222 # If gif_lib.h but no libgif, try libungif.
14223 if test x"$try_libungif" = xyes; then
14224 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14225 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14226 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14227 echo $ECHO_N "(cached) $ECHO_C" >&6
14229 ac_check_lib_save_LIBS=$LIBS
14230 LIBS="-lungif $LIBS"
14231 cat >conftest.$ac_ext <<_ACEOF
14234 cat confdefs.h >>conftest.$ac_ext
14235 cat >>conftest.$ac_ext <<_ACEOF
14236 /* end confdefs.h. */
14238 /* Override any GCC internal prototype to avoid an error.
14239 Use char because int might match the return type of a GCC
14240 builtin and then its argument prototype would still apply. */
14244 char EGifPutExtensionLast ();
14248 return EGifPutExtensionLast ();
14253 rm -f conftest.$ac_objext conftest$ac_exeext
14254 if { (ac_try="$ac_link"
14255 case "(($ac_try" in
14256 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14257 *) ac_try_echo
=$ac_try;;
14259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14260 (eval "$ac_link") 2>conftest.er1
14262 grep -v '^ *+' conftest.er1
>conftest.err
14264 cat conftest.err
>&5
14265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14266 (exit $ac_status); } && {
14267 test -z "$ac_c_werror_flag" ||
14268 test ! -s conftest.err
14269 } && test -s conftest
$ac_exeext &&
14270 $as_test_x conftest
$ac_exeext; then
14271 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
14273 echo "$as_me: failed program was:" >&5
14274 sed 's/^/| /' conftest.
$ac_ext >&5
14276 ac_cv_lib_ungif_EGifPutExtensionLast
=no
14279 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14280 conftest
$ac_exeext conftest.
$ac_ext
14281 LIBS
=$ac_check_lib_save_LIBS
14283 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14284 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14285 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14290 if test "$HAVE_GIF" = yes; then
14292 cat >>confdefs.h
<<\_ACEOF
14293 #define LIBGIF -lungif
14296 ac_gif_lib_name
="-lungif"
14300 if test "${HAVE_GIF}" = "yes"; then
14302 cat >>confdefs.h
<<\_ACEOF
14309 if test "${HAVE_X11}" = "yes"; then
14312 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14313 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
14314 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14315 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
14316 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14317 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
14318 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14319 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
14320 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14321 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
14323 if test "X${MISSING}" != X
; then
14324 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
14326 Maybe some development libraries/packages are missing?
14327 If you don't want to link with them give
14329 as options to configure" >&5
14330 echo "$as_me: error: The following required libraries were not found:
14332 Maybe some development libraries/packages are missing?
14333 If you don't want to link with them give
14335 as options to configure" >&2;}
14336 { (exit 1); exit 1; }; }
14340 ### Use -lgpm if available, unless `--with-gpm=no'.
14342 if test "${with_gpm}" != "no"; then
14343 if test "${ac_cv_header_gpm_h+set}" = set; then
14344 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14345 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14346 if test "${ac_cv_header_gpm_h+set}" = set; then
14347 echo $ECHO_N "(cached) $ECHO_C" >&6
14349 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14350 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14352 # Is the header compilable?
14353 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14354 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14355 cat >conftest.
$ac_ext <<_ACEOF
14358 cat confdefs.h
>>conftest.
$ac_ext
14359 cat >>conftest.
$ac_ext <<_ACEOF
14360 /* end confdefs.h. */
14361 $ac_includes_default
14364 rm -f conftest.
$ac_objext
14365 if { (ac_try
="$ac_compile"
14366 case "(($ac_try" in
14367 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14368 *) ac_try_echo=$ac_try;;
14370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14371 (eval "$ac_compile") 2>conftest.er1
14373 grep -v '^ *+' conftest.er1 >conftest.err
14375 cat conftest.err >&5
14376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14377 (exit $ac_status); } && {
14378 test -z "$ac_c_werror_flag" ||
14379 test ! -s conftest.err
14380 } && test -s conftest.$ac_objext; then
14381 ac_header_compiler=yes
14383 echo "$as_me: failed program was:" >&5
14384 sed 's/^/| /' conftest.$ac_ext >&5
14386 ac_header_compiler=no
14389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14390 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14391 echo "${ECHO_T}$ac_header_compiler" >&6; }
14393 # Is the header present?
14394 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14395 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14396 cat >conftest.$ac_ext <<_ACEOF
14399 cat confdefs.h >>conftest.$ac_ext
14400 cat >>conftest.$ac_ext <<_ACEOF
14401 /* end confdefs.h. */
14404 if { (ac_try="$ac_cpp conftest.$ac_ext"
14405 case "(($ac_try" in
14406 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14407 *) ac_try_echo
=$ac_try;;
14409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14410 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14412 grep -v '^ *+' conftest.er1
>conftest.err
14414 cat conftest.err
>&5
14415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14416 (exit $ac_status); } >/dev
/null
&& {
14417 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14418 test ! -s conftest.err
14420 ac_header_preproc
=yes
14422 echo "$as_me: failed program was:" >&5
14423 sed 's/^/| /' conftest.
$ac_ext >&5
14425 ac_header_preproc
=no
14428 rm -f conftest.err conftest.
$ac_ext
14429 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14430 echo "${ECHO_T}$ac_header_preproc" >&6; }
14432 # So? What about this header?
14433 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14435 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14436 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14437 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14438 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14439 ac_header_preproc
=yes
14442 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14443 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14444 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14445 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14446 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14447 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14448 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14449 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14450 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14451 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14452 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14453 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14457 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14458 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14459 if test "${ac_cv_header_gpm_h+set}" = set; then
14460 echo $ECHO_N "(cached) $ECHO_C" >&6
14462 ac_cv_header_gpm_h
=$ac_header_preproc
14464 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14465 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14468 if test $ac_cv_header_gpm_h = yes; then
14469 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14470 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14471 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14472 echo $ECHO_N "(cached) $ECHO_C" >&6
14474 ac_check_lib_save_LIBS
=$LIBS
14476 cat >conftest.
$ac_ext <<_ACEOF
14479 cat confdefs.h
>>conftest.
$ac_ext
14480 cat >>conftest.
$ac_ext <<_ACEOF
14481 /* end confdefs.h. */
14483 /* Override any GCC internal prototype to avoid an error.
14484 Use char because int might match the return type of a GCC
14485 builtin and then its argument prototype would still apply. */
14493 return Gpm_Open ();
14498 rm -f conftest.
$ac_objext conftest
$ac_exeext
14499 if { (ac_try
="$ac_link"
14500 case "(($ac_try" in
14501 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14502 *) ac_try_echo=$ac_try;;
14504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14505 (eval "$ac_link") 2>conftest.er1
14507 grep -v '^ *+' conftest.er1 >conftest.err
14509 cat conftest.err >&5
14510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14511 (exit $ac_status); } && {
14512 test -z "$ac_c_werror_flag" ||
14513 test ! -s conftest.err
14514 } && test -s conftest$ac_exeext &&
14515 $as_test_x conftest$ac_exeext; then
14516 ac_cv_lib_gpm_Gpm_Open=yes
14518 echo "$as_me: failed program was:" >&5
14519 sed 's/^/| /' conftest.$ac_ext >&5
14521 ac_cv_lib_gpm_Gpm_Open=no
14524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14525 conftest$ac_exeext conftest.$ac_ext
14526 LIBS=$ac_check_lib_save_LIBS
14528 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14529 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14530 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14539 if test "${HAVE_GPM}" = "yes"; then
14541 cat >>confdefs.h <<\_ACEOF
14547 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14548 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14549 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14550 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14551 echo $ECHO_N "(cached) $ECHO_C" >&6
14553 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14554 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14556 # Is the header compilable?
14557 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14558 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14559 cat >conftest.$ac_ext <<_ACEOF
14562 cat confdefs.h >>conftest.$ac_ext
14563 cat >>conftest.$ac_ext <<_ACEOF
14564 /* end confdefs.h. */
14565 $ac_includes_default
14566 #include <malloc/malloc.h>
14568 rm -f conftest.$ac_objext
14569 if { (ac_try="$ac_compile"
14570 case "(($ac_try" in
14571 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14572 *) ac_try_echo
=$ac_try;;
14574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14575 (eval "$ac_compile") 2>conftest.er1
14577 grep -v '^ *+' conftest.er1
>conftest.err
14579 cat conftest.err
>&5
14580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14581 (exit $ac_status); } && {
14582 test -z "$ac_c_werror_flag" ||
14583 test ! -s conftest.err
14584 } && test -s conftest.
$ac_objext; then
14585 ac_header_compiler
=yes
14587 echo "$as_me: failed program was:" >&5
14588 sed 's/^/| /' conftest.
$ac_ext >&5
14590 ac_header_compiler
=no
14593 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14594 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14595 echo "${ECHO_T}$ac_header_compiler" >&6; }
14597 # Is the header present?
14598 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14599 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14600 cat >conftest.
$ac_ext <<_ACEOF
14603 cat confdefs.h
>>conftest.
$ac_ext
14604 cat >>conftest.
$ac_ext <<_ACEOF
14605 /* end confdefs.h. */
14606 #include <malloc/malloc.h>
14608 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14609 case "(($ac_try" in
14610 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14611 *) ac_try_echo=$ac_try;;
14613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14614 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14616 grep -v '^ *+' conftest.er1 >conftest.err
14618 cat conftest.err >&5
14619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14620 (exit $ac_status); } >/dev/null && {
14621 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14622 test ! -s conftest.err
14624 ac_header_preproc=yes
14626 echo "$as_me: failed program was:" >&5
14627 sed 's/^/| /' conftest.$ac_ext >&5
14629 ac_header_preproc=no
14632 rm -f conftest.err conftest.$ac_ext
14633 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14634 echo "${ECHO_T}$ac_header_preproc" >&6; }
14636 # So? What about this header?
14637 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14639 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14640 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14641 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14642 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14643 ac_header_preproc=yes
14646 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14647 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14648 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14649 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14650 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14651 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14652 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14653 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14654 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14655 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14656 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14657 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14661 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14662 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14663 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14664 echo $ECHO_N "(cached) $ECHO_C" >&6
14666 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14668 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14669 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14672 if test $ac_cv_header_malloc_malloc_h = yes; then
14674 cat >>confdefs.h <<\_ACEOF
14675 #define HAVE_MALLOC_MALLOC_H 1
14682 ### Use Mac OS X Carbon API to implement GUI.
14683 if test "${HAVE_CARBON}" = "yes"; then
14685 cat >>confdefs.h <<\_ACEOF
14686 #define HAVE_CARBON 1
14689 ## Specify the install directory
14691 if test "${carbon_appdir_x}" != ""; then
14692 case ${carbon_appdir_x} in
14693 y | ye | yes) carbon_appdir=/Applications ;;
14694 * ) carbon_appdir=${carbon_appdir_x} ;;
14697 # We also have mouse menus.
14701 ### Use session management (-lSM -lICE) if available
14703 if test "${HAVE_X11}" = "yes"; then
14704 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14705 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14706 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14707 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14708 echo $ECHO_N "(cached) $ECHO_C" >&6
14710 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14711 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14713 # Is the header compilable?
14714 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14715 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14716 cat >conftest.$ac_ext <<_ACEOF
14719 cat confdefs.h >>conftest.$ac_ext
14720 cat >>conftest.$ac_ext <<_ACEOF
14721 /* end confdefs.h. */
14722 $ac_includes_default
14723 #include <X11/SM/SMlib.h>
14725 rm -f conftest.$ac_objext
14726 if { (ac_try="$ac_compile"
14727 case "(($ac_try" in
14728 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14729 *) ac_try_echo
=$ac_try;;
14731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14732 (eval "$ac_compile") 2>conftest.er1
14734 grep -v '^ *+' conftest.er1
>conftest.err
14736 cat conftest.err
>&5
14737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14738 (exit $ac_status); } && {
14739 test -z "$ac_c_werror_flag" ||
14740 test ! -s conftest.err
14741 } && test -s conftest.
$ac_objext; then
14742 ac_header_compiler
=yes
14744 echo "$as_me: failed program was:" >&5
14745 sed 's/^/| /' conftest.
$ac_ext >&5
14747 ac_header_compiler
=no
14750 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14751 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14752 echo "${ECHO_T}$ac_header_compiler" >&6; }
14754 # Is the header present?
14755 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14756 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14757 cat >conftest.
$ac_ext <<_ACEOF
14760 cat confdefs.h
>>conftest.
$ac_ext
14761 cat >>conftest.
$ac_ext <<_ACEOF
14762 /* end confdefs.h. */
14763 #include <X11/SM/SMlib.h>
14765 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14766 case "(($ac_try" in
14767 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14768 *) ac_try_echo=$ac_try;;
14770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14771 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14773 grep -v '^ *+' conftest.er1 >conftest.err
14775 cat conftest.err >&5
14776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777 (exit $ac_status); } >/dev/null && {
14778 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14779 test ! -s conftest.err
14781 ac_header_preproc=yes
14783 echo "$as_me: failed program was:" >&5
14784 sed 's/^/| /' conftest.$ac_ext >&5
14786 ac_header_preproc=no
14789 rm -f conftest.err conftest.$ac_ext
14790 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14791 echo "${ECHO_T}$ac_header_preproc" >&6; }
14793 # So? What about this header?
14794 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14796 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14797 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14798 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14799 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14800 ac_header_preproc=yes
14803 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14804 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14805 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14806 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14807 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14808 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14809 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14810 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14811 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14812 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14813 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14814 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14818 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14819 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14820 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14821 echo $ECHO_N "(cached) $ECHO_C" >&6
14823 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14825 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14826 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14829 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14830 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14831 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14832 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14833 echo $ECHO_N "(cached) $ECHO_C" >&6
14835 ac_check_lib_save_LIBS=$LIBS
14836 LIBS="-lSM -lICE $LIBS"
14837 cat >conftest.$ac_ext <<_ACEOF
14840 cat confdefs.h >>conftest.$ac_ext
14841 cat >>conftest.$ac_ext <<_ACEOF
14842 /* end confdefs.h. */
14844 /* Override any GCC internal prototype to avoid an error.
14845 Use char because int might match the return type of a GCC
14846 builtin and then its argument prototype would still apply. */
14850 char SmcOpenConnection ();
14854 return SmcOpenConnection ();
14859 rm -f conftest.$ac_objext conftest$ac_exeext
14860 if { (ac_try="$ac_link"
14861 case "(($ac_try" in
14862 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14863 *) ac_try_echo
=$ac_try;;
14865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14866 (eval "$ac_link") 2>conftest.er1
14868 grep -v '^ *+' conftest.er1
>conftest.err
14870 cat conftest.err
>&5
14871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14872 (exit $ac_status); } && {
14873 test -z "$ac_c_werror_flag" ||
14874 test ! -s conftest.err
14875 } && test -s conftest
$ac_exeext &&
14876 $as_test_x conftest
$ac_exeext; then
14877 ac_cv_lib_SM_SmcOpenConnection
=yes
14879 echo "$as_me: failed program was:" >&5
14880 sed 's/^/| /' conftest.
$ac_ext >&5
14882 ac_cv_lib_SM_SmcOpenConnection
=no
14885 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14886 conftest
$ac_exeext conftest.
$ac_ext
14887 LIBS
=$ac_check_lib_save_LIBS
14889 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14890 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14891 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14899 if test "${HAVE_X_SM}" = "yes"; then
14901 cat >>confdefs.h
<<\_ACEOF
14902 #define HAVE_X_SM 1
14907 *) LIBS
="-lSM -lICE $LIBS" ;;
14912 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14913 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14914 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14915 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14916 echo $ECHO_N "(cached) $ECHO_C" >&6
14918 cat >conftest.
$ac_ext <<_ACEOF
14921 cat confdefs.h
>>conftest.
$ac_ext
14922 cat >>conftest.
$ac_ext <<_ACEOF
14923 /* end confdefs.h. */
14933 rm -f conftest.
$ac_objext conftest
$ac_exeext
14934 if { (ac_try
="$ac_link"
14935 case "(($ac_try" in
14936 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14937 *) ac_try_echo=$ac_try;;
14939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14940 (eval "$ac_link") 2>conftest.er1
14942 grep -v '^ *+' conftest.er1 >conftest.err
14944 cat conftest.err >&5
14945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14946 (exit $ac_status); } && {
14947 test -z "$ac_c_werror_flag" ||
14948 test ! -s conftest.err
14949 } && test -s conftest$ac_exeext &&
14950 $as_test_x conftest$ac_exeext; then
14951 emacs_cv_netdb_declares_h_errno=yes
14953 echo "$as_me: failed program was:" >&5
14954 sed 's/^/| /' conftest.$ac_ext >&5
14956 emacs_cv_netdb_declares_h_errno=no
14959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14960 conftest$ac_exeext conftest.$ac_ext
14962 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
14963 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
14964 if test $emacs_cv_netdb_declares_h_errno = yes; then
14966 cat >>confdefs.h <<\_ACEOF
14967 #define HAVE_H_ERRNO 1
14972 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14973 # for constant arguments. Useless!
14974 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
14975 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
14976 if test "${ac_cv_working_alloca_h+set}" = set; then
14977 echo $ECHO_N "(cached) $ECHO_C" >&6
14979 cat >conftest.$ac_ext <<_ACEOF
14982 cat confdefs.h >>conftest.$ac_ext
14983 cat >>conftest.$ac_ext <<_ACEOF
14984 /* end confdefs.h. */
14985 #include <alloca.h>
14989 char *p = (char *) alloca (2 * sizeof (int));
14995 rm -f conftest.$ac_objext conftest$ac_exeext
14996 if { (ac_try="$ac_link"
14997 case "(($ac_try" in
14998 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14999 *) ac_try_echo
=$ac_try;;
15001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15002 (eval "$ac_link") 2>conftest.er1
15004 grep -v '^ *+' conftest.er1
>conftest.err
15006 cat conftest.err
>&5
15007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15008 (exit $ac_status); } && {
15009 test -z "$ac_c_werror_flag" ||
15010 test ! -s conftest.err
15011 } && test -s conftest
$ac_exeext &&
15012 $as_test_x conftest
$ac_exeext; then
15013 ac_cv_working_alloca_h
=yes
15015 echo "$as_me: failed program was:" >&5
15016 sed 's/^/| /' conftest.
$ac_ext >&5
15018 ac_cv_working_alloca_h
=no
15021 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15022 conftest
$ac_exeext conftest.
$ac_ext
15024 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15025 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15026 if test $ac_cv_working_alloca_h = yes; then
15028 cat >>confdefs.h
<<\_ACEOF
15029 #define HAVE_ALLOCA_H 1
15034 { echo "$as_me:$LINENO: checking for alloca" >&5
15035 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15036 if test "${ac_cv_func_alloca_works+set}" = set; then
15037 echo $ECHO_N "(cached) $ECHO_C" >&6
15039 cat >conftest.
$ac_ext <<_ACEOF
15042 cat confdefs.h
>>conftest.
$ac_ext
15043 cat >>conftest.
$ac_ext <<_ACEOF
15044 /* end confdefs.h. */
15046 # define alloca __builtin_alloca
15049 # include <malloc.h>
15050 # define alloca _alloca
15052 # ifdef HAVE_ALLOCA_H
15053 # include <alloca.h>
15058 # ifndef alloca /* predefined by HP cc +Olibcalls */
15069 char *p = (char *) alloca (1);
15075 rm -f conftest.
$ac_objext conftest
$ac_exeext
15076 if { (ac_try
="$ac_link"
15077 case "(($ac_try" in
15078 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15079 *) ac_try_echo=$ac_try;;
15081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15082 (eval "$ac_link") 2>conftest.er1
15084 grep -v '^ *+' conftest.er1 >conftest.err
15086 cat conftest.err >&5
15087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15088 (exit $ac_status); } && {
15089 test -z "$ac_c_werror_flag" ||
15090 test ! -s conftest.err
15091 } && test -s conftest$ac_exeext &&
15092 $as_test_x conftest$ac_exeext; then
15093 ac_cv_func_alloca_works=yes
15095 echo "$as_me: failed program was:" >&5
15096 sed 's/^/| /' conftest.$ac_ext >&5
15098 ac_cv_func_alloca_works=no
15101 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15102 conftest$ac_exeext conftest.$ac_ext
15104 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15105 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15107 if test $ac_cv_func_alloca_works = yes; then
15109 cat >>confdefs.h <<\_ACEOF
15110 #define HAVE_ALLOCA 1
15114 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15115 # that cause trouble. Some versions do not even contain alloca or
15116 # contain a buggy version. If you still want to use their alloca,
15117 # use ar to extract alloca.o from them instead of compiling alloca.c.
15119 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15121 cat >>confdefs.h <<\_ACEOF
15126 { echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
15127 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks...
$ECHO_C" >&6; }
15128 if test "${ac_cv_os_cray+set}" = set; then
15129 echo $ECHO_N "(cached
) $ECHO_C" >&6
15131 cat >conftest.$ac_ext <<_ACEOF
15134 cat confdefs.h >>conftest.$ac_ext
15135 cat >>conftest.$ac_ext <<_ACEOF
15136 /* end confdefs.h. */
15137 #if defined CRAY && ! defined CRAY2
15144 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
15145 $EGREP "webecray
" >/dev/null 2>&1; then
15153 { echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
15154 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15155 if test $ac_cv_os_cray = yes; then
15156 for ac_func in _getb67 GETB67 getb67; do
15157 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15158 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15159 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15160 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15161 echo $ECHO_N "(cached
) $ECHO_C" >&6
15163 cat >conftest.$ac_ext <<_ACEOF
15166 cat confdefs.h >>conftest.$ac_ext
15167 cat >>conftest.$ac_ext <<_ACEOF
15168 /* end confdefs.h. */
15169 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15170 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15171 #define $ac_func innocuous_$ac_func
15173 /* System header to define __stub macros and hopefully few prototypes,
15174 which can conflict with char $ac_func (); below.
15175 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15176 <limits.h> exists even on freestanding compilers. */
15179 # include <limits.h>
15181 # include <assert.h>
15186 /* Override any GCC internal prototype to avoid an error.
15187 Use char because int might match the return type of a GCC
15188 builtin and then its argument prototype would still apply. */
15193 /* The GNU C library defines this for functions which it implements
15194 to always fail with ENOSYS. Some functions are actually named
15195 something starting with __ and the normal name is an alias. */
15196 #if defined __stub_$ac_func || defined __stub___$ac_func
15203 return $ac_func ();
15208 rm -f conftest.$ac_objext conftest$ac_exeext
15209 if { (ac_try="$ac_link"
15210 case "(($ac_try" in
15211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15212 *) ac_try_echo=$ac_try;;
15214 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15215 (eval "$ac_link") 2>conftest.er1
15217 grep -v '^ *+' conftest.er1 >conftest.err
15219 cat conftest.err >&5
15220 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15221 (exit $ac_status); } && {
15222 test -z "$ac_c_werror_flag" ||
15223 test ! -s conftest.err
15224 } && test -s conftest$ac_exeext &&
15225 $as_test_x conftest$ac_exeext; then
15226 eval "$as_ac_var=yes"
15228 echo "$as_me: failed program was
:" >&5
15229 sed 's/^/| /' conftest.$ac_ext >&5
15231 eval "$as_ac_var=no
"
15234 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15235 conftest$ac_exeext conftest.$ac_ext
15237 ac_res=`eval echo '${'$as_ac_var'}'`
15238 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15239 echo "${ECHO_T}$ac_res" >&6; }
15240 if test `eval echo '${'$as_ac_var'}'` = yes; then
15242 cat >>confdefs.h <<_ACEOF
15243 #define CRAY_STACKSEG_END $ac_func
15252 { echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
15253 echo $ECHO_N "checking stack direction
for C alloca...
$ECHO_C" >&6; }
15254 if test "${ac_cv_c_stack_direction+set}" = set; then
15255 echo $ECHO_N "(cached
) $ECHO_C" >&6
15257 if test "$cross_compiling" = yes; then
15258 ac_cv_c_stack_direction=0
15260 cat >conftest.$ac_ext <<_ACEOF
15263 cat confdefs.h >>conftest.$ac_ext
15264 cat >>conftest.$ac_ext <<_ACEOF
15265 /* end confdefs.h. */
15266 $ac_includes_default
15268 find_stack_direction ()
15270 static char *addr = 0;
15275 return find_stack_direction ();
15278 return (&dummy > addr) ? 1 : -1;
15284 return find_stack_direction () < 0;
15287 rm -f conftest$ac_exeext
15288 if { (ac_try="$ac_link"
15289 case "(($ac_try" in
15290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15291 *) ac_try_echo=$ac_try;;
15293 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15294 (eval "$ac_link") 2>&5
15296 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15297 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15298 { (case "(($ac_try" in
15299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15300 *) ac_try_echo=$ac_try;;
15302 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15303 (eval "$ac_try") 2>&5
15305 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15306 (exit $ac_status); }; }; then
15307 ac_cv_c_stack_direction=1
15309 echo "$as_me: program exited with status
$ac_status" >&5
15310 echo "$as_me: failed program was
:" >&5
15311 sed 's/^/| /' conftest.$ac_ext >&5
15313 ( exit $ac_status )
15314 ac_cv_c_stack_direction=-1
15316 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15321 { echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
15322 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15324 cat >>confdefs.h <<_ACEOF
15325 #define STACK_DIRECTION $ac_cv_c_stack_direction
15332 # fmod, logb, and frexp are found in -lm on most systems.
15333 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15335 { echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
15336 echo $ECHO_N "checking
for sqrt
in -lm...
$ECHO_C" >&6; }
15337 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15338 echo $ECHO_N "(cached
) $ECHO_C" >&6
15340 ac_check_lib_save_LIBS=$LIBS
15342 cat >conftest.$ac_ext <<_ACEOF
15345 cat confdefs.h >>conftest.$ac_ext
15346 cat >>conftest.$ac_ext <<_ACEOF
15347 /* end confdefs.h. */
15349 /* Override any GCC internal prototype to avoid an error.
15350 Use char because int might match the return type of a GCC
15351 builtin and then its argument prototype would still apply. */
15364 rm -f conftest.$ac_objext conftest$ac_exeext
15365 if { (ac_try="$ac_link"
15366 case "(($ac_try" in
15367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15368 *) ac_try_echo=$ac_try;;
15370 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15371 (eval "$ac_link") 2>conftest.er1
15373 grep -v '^ *+' conftest.er1 >conftest.err
15375 cat conftest.err >&5
15376 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15377 (exit $ac_status); } && {
15378 test -z "$ac_c_werror_flag" ||
15379 test ! -s conftest.err
15380 } && test -s conftest$ac_exeext &&
15381 $as_test_x conftest$ac_exeext; then
15382 ac_cv_lib_m_sqrt=yes
15384 echo "$as_me: failed program was
:" >&5
15385 sed 's/^/| /' conftest.$ac_ext >&5
15387 ac_cv_lib_m_sqrt=no
15390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15391 conftest$ac_exeext conftest.$ac_ext
15392 LIBS=$ac_check_lib_save_LIBS
15394 { echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
15395 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15396 if test $ac_cv_lib_m_sqrt = yes; then
15397 cat >>confdefs.h <<_ACEOF
15398 #define HAVE_LIBM 1
15406 # Check for mail-locking functions in a "mail" library. Probably this should
15407 # have the same check as for liblockfile below.
15409 { echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
15410 echo $ECHO_N "checking
for maillock
in -lmail...
$ECHO_C" >&6; }
15411 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15412 echo $ECHO_N "(cached
) $ECHO_C" >&6
15414 ac_check_lib_save_LIBS=$LIBS
15415 LIBS="-lmail $LIBS"
15416 cat >conftest.$ac_ext <<_ACEOF
15419 cat confdefs.h >>conftest.$ac_ext
15420 cat >>conftest.$ac_ext <<_ACEOF
15421 /* end confdefs.h. */
15423 /* Override any GCC internal prototype to avoid an error.
15424 Use char because int might match the return type of a GCC
15425 builtin and then its argument prototype would still apply. */
15433 return maillock ();
15438 rm -f conftest.$ac_objext conftest$ac_exeext
15439 if { (ac_try="$ac_link"
15440 case "(($ac_try" in
15441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15442 *) ac_try_echo=$ac_try;;
15444 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15445 (eval "$ac_link") 2>conftest.er1
15447 grep -v '^ *+' conftest.er1 >conftest.err
15449 cat conftest.err >&5
15450 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15451 (exit $ac_status); } && {
15452 test -z "$ac_c_werror_flag" ||
15453 test ! -s conftest.err
15454 } && test -s conftest$ac_exeext &&
15455 $as_test_x conftest$ac_exeext; then
15456 ac_cv_lib_mail_maillock=yes
15458 echo "$as_me: failed program was
:" >&5
15459 sed 's/^/| /' conftest.$ac_ext >&5
15461 ac_cv_lib_mail_maillock=no
15464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15465 conftest$ac_exeext conftest.$ac_ext
15466 LIBS=$ac_check_lib_save_LIBS
15468 { echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
15469 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15470 if test $ac_cv_lib_mail_maillock = yes; then
15471 cat >>confdefs.h <<_ACEOF
15472 #define HAVE_LIBMAIL 1
15475 LIBS="-lmail $LIBS"
15480 { echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
15481 echo $ECHO_N "checking
for maillock
in -llockfile...
$ECHO_C" >&6; }
15482 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15483 echo $ECHO_N "(cached
) $ECHO_C" >&6
15485 ac_check_lib_save_LIBS=$LIBS
15486 LIBS="-llockfile $LIBS"
15487 cat >conftest.$ac_ext <<_ACEOF
15490 cat confdefs.h >>conftest.$ac_ext
15491 cat >>conftest.$ac_ext <<_ACEOF
15492 /* end confdefs.h. */
15494 /* Override any GCC internal prototype to avoid an error.
15495 Use char because int might match the return type of a GCC
15496 builtin and then its argument prototype would still apply. */
15504 return maillock ();
15509 rm -f conftest.$ac_objext conftest$ac_exeext
15510 if { (ac_try="$ac_link"
15511 case "(($ac_try" in
15512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15513 *) ac_try_echo=$ac_try;;
15515 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15516 (eval "$ac_link") 2>conftest.er1
15518 grep -v '^ *+' conftest.er1 >conftest.err
15520 cat conftest.err >&5
15521 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15522 (exit $ac_status); } && {
15523 test -z "$ac_c_werror_flag" ||
15524 test ! -s conftest.err
15525 } && test -s conftest$ac_exeext &&
15526 $as_test_x conftest$ac_exeext; then
15527 ac_cv_lib_lockfile_maillock=yes
15529 echo "$as_me: failed program was
:" >&5
15530 sed 's/^/| /' conftest.$ac_ext >&5
15532 ac_cv_lib_lockfile_maillock=no
15535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15536 conftest$ac_exeext conftest.$ac_ext
15537 LIBS=$ac_check_lib_save_LIBS
15539 { echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
15540 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15541 if test $ac_cv_lib_lockfile_maillock = yes; then
15542 cat >>confdefs.h <<_ACEOF
15543 #define HAVE_LIBLOCKFILE 1
15546 LIBS="-llockfile $LIBS"
15550 # If we have the shared liblockfile, assume we must use it for mail
15551 # locking (e.g. Debian). If we couldn't link against liblockfile
15552 # (no liblockfile.a installed), ensure that we don't need to.
15553 if test "$ac_cv_lib_lockfile_maillock" = no; then
15554 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
15555 set dummy liblockfile.so; ac_word=$2
15556 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
15557 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
15558 if test "${ac_cv_prog_liblockfile+set}" = set; then
15559 echo $ECHO_N "(cached
) $ECHO_C" >&6
15561 if test -n "$liblockfile"; then
15562 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15565 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
15566 for as_dir in $as_dummy
15569 test -z "$as_dir" && as_dir=.
15570 for ac_exec_ext in '' $ac_executable_extensions; do
15571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15572 ac_cv_prog_liblockfile="yes"
15573 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15580 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
15583 liblockfile=$ac_cv_prog_liblockfile
15584 if test -n "$liblockfile"; then
15585 { echo "$as_me:$LINENO: result
: $liblockfile" >&5
15586 echo "${ECHO_T}$liblockfile" >&6; }
15588 { echo "$as_me:$LINENO: result
: no
" >&5
15589 echo "${ECHO_T}no
" >&6; }
15593 if test $ac_cv_prog_liblockfile = yes; then
15594 { { echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
15595 This probably means that movemail could lose mail.
15596 There may be a \`development' package to
install containing liblockfile.
" >&5
15597 echo "$as_me: error
: Shared liblockfile found but can
't link against it.
15598 This probably means that movemail could lose mail.
15599 There may be a \`development' package to
install containing liblockfile.
" >&2;}
15600 { (exit 1); exit 1; }; }
15605 for ac_func in touchlock
15607 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15608 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15609 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15610 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15611 echo $ECHO_N "(cached
) $ECHO_C" >&6
15613 cat >conftest.$ac_ext <<_ACEOF
15616 cat confdefs.h >>conftest.$ac_ext
15617 cat >>conftest.$ac_ext <<_ACEOF
15618 /* end confdefs.h. */
15619 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15620 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15621 #define $ac_func innocuous_$ac_func
15623 /* System header to define __stub macros and hopefully few prototypes,
15624 which can conflict with char $ac_func (); below.
15625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15626 <limits.h> exists even on freestanding compilers. */
15629 # include <limits.h>
15631 # include <assert.h>
15636 /* Override any GCC internal prototype to avoid an error.
15637 Use char because int might match the return type of a GCC
15638 builtin and then its argument prototype would still apply. */
15643 /* The GNU C library defines this for functions which it implements
15644 to always fail with ENOSYS. Some functions are actually named
15645 something starting with __ and the normal name is an alias. */
15646 #if defined __stub_$ac_func || defined __stub___$ac_func
15653 return $ac_func ();
15658 rm -f conftest.$ac_objext conftest$ac_exeext
15659 if { (ac_try="$ac_link"
15660 case "(($ac_try" in
15661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15662 *) ac_try_echo=$ac_try;;
15664 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15665 (eval "$ac_link") 2>conftest.er1
15667 grep -v '^ *+' conftest.er1 >conftest.err
15669 cat conftest.err >&5
15670 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15671 (exit $ac_status); } && {
15672 test -z "$ac_c_werror_flag" ||
15673 test ! -s conftest.err
15674 } && test -s conftest$ac_exeext &&
15675 $as_test_x conftest$ac_exeext; then
15676 eval "$as_ac_var=yes"
15678 echo "$as_me: failed program was
:" >&5
15679 sed 's/^/| /' conftest.$ac_ext >&5
15681 eval "$as_ac_var=no
"
15684 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15685 conftest$ac_exeext conftest.$ac_ext
15687 ac_res=`eval echo '${'$as_ac_var'}'`
15688 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15689 echo "${ECHO_T}$ac_res" >&6; }
15690 if test `eval echo '${'$as_ac_var'}'` = yes; then
15691 cat >>confdefs.h <<_ACEOF
15692 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15699 for ac_header in maillock.h
15701 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15702 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15703 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15704 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15705 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15706 echo $ECHO_N "(cached
) $ECHO_C" >&6
15708 ac_res=`eval echo '${'$as_ac_Header'}'`
15709 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15710 echo "${ECHO_T}$ac_res" >&6; }
15712 # Is the header compilable?
15713 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15714 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15715 cat >conftest.$ac_ext <<_ACEOF
15718 cat confdefs.h >>conftest.$ac_ext
15719 cat >>conftest.$ac_ext <<_ACEOF
15720 /* end confdefs.h. */
15721 $ac_includes_default
15722 #include <$ac_header>
15724 rm -f conftest.$ac_objext
15725 if { (ac_try="$ac_compile"
15726 case "(($ac_try" in
15727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15728 *) ac_try_echo=$ac_try;;
15730 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15731 (eval "$ac_compile") 2>conftest.er1
15733 grep -v '^ *+' conftest.er1 >conftest.err
15735 cat conftest.err >&5
15736 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15737 (exit $ac_status); } && {
15738 test -z "$ac_c_werror_flag" ||
15739 test ! -s conftest.err
15740 } && test -s conftest.$ac_objext; then
15741 ac_header_compiler=yes
15743 echo "$as_me: failed program was
:" >&5
15744 sed 's/^/| /' conftest.$ac_ext >&5
15746 ac_header_compiler=no
15749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15750 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15751 echo "${ECHO_T}$ac_header_compiler" >&6; }
15753 # Is the header present?
15754 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15755 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15756 cat >conftest.$ac_ext <<_ACEOF
15759 cat confdefs.h >>conftest.$ac_ext
15760 cat >>conftest.$ac_ext <<_ACEOF
15761 /* end confdefs.h. */
15762 #include <$ac_header>
15764 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15765 case "(($ac_try" in
15766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15767 *) ac_try_echo=$ac_try;;
15769 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15770 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15772 grep -v '^ *+' conftest.er1 >conftest.err
15774 cat conftest.err >&5
15775 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15776 (exit $ac_status); } >/dev/null && {
15777 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15778 test ! -s conftest.err
15780 ac_header_preproc=yes
15782 echo "$as_me: failed program was
:" >&5
15783 sed 's/^/| /' conftest.$ac_ext >&5
15785 ac_header_preproc=no
15788 rm -f conftest.err conftest.$ac_ext
15789 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15790 echo "${ECHO_T}$ac_header_preproc" >&6; }
15792 # So? What about this header?
15793 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15795 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15796 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15797 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15798 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15799 ac_header_preproc=yes
15802 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15803 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15804 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15805 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15806 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15807 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15808 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15809 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15810 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15811 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15812 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15813 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15817 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15818 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15819 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15820 echo $ECHO_N "(cached
) $ECHO_C" >&6
15822 eval "$as_ac_Header=\
$ac_header_preproc"
15824 ac_res=`eval echo '${'$as_ac_Header'}'`
15825 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15826 echo "${ECHO_T}$ac_res" >&6; }
15829 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15830 cat >>confdefs.h <<_ACEOF
15831 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15908 for ac_func in gethostname getdomainname dup2 \
15909 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15910 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
15911 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15912 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15913 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15914 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15915 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15916 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15918 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15919 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15920 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15921 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15922 echo $ECHO_N "(cached
) $ECHO_C" >&6
15924 cat >conftest.$ac_ext <<_ACEOF
15927 cat confdefs.h >>conftest.$ac_ext
15928 cat >>conftest.$ac_ext <<_ACEOF
15929 /* end confdefs.h. */
15930 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15931 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15932 #define $ac_func innocuous_$ac_func
15934 /* System header to define __stub macros and hopefully few prototypes,
15935 which can conflict with char $ac_func (); below.
15936 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15937 <limits.h> exists even on freestanding compilers. */
15940 # include <limits.h>
15942 # include <assert.h>
15947 /* Override any GCC internal prototype to avoid an error.
15948 Use char because int might match the return type of a GCC
15949 builtin and then its argument prototype would still apply. */
15954 /* The GNU C library defines this for functions which it implements
15955 to always fail with ENOSYS. Some functions are actually named
15956 something starting with __ and the normal name is an alias. */
15957 #if defined __stub_$ac_func || defined __stub___$ac_func
15964 return $ac_func ();
15969 rm -f conftest.$ac_objext conftest$ac_exeext
15970 if { (ac_try="$ac_link"
15971 case "(($ac_try" in
15972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15973 *) ac_try_echo=$ac_try;;
15975 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15976 (eval "$ac_link") 2>conftest.er1
15978 grep -v '^ *+' conftest.er1 >conftest.err
15980 cat conftest.err >&5
15981 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15982 (exit $ac_status); } && {
15983 test -z "$ac_c_werror_flag" ||
15984 test ! -s conftest.err
15985 } && test -s conftest$ac_exeext &&
15986 $as_test_x conftest$ac_exeext; then
15987 eval "$as_ac_var=yes"
15989 echo "$as_me: failed program was
:" >&5
15990 sed 's/^/| /' conftest.$ac_ext >&5
15992 eval "$as_ac_var=no
"
15995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15996 conftest$ac_exeext conftest.$ac_ext
15998 ac_res=`eval echo '${'$as_ac_var'}'`
15999 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16000 echo "${ECHO_T}$ac_res" >&6; }
16001 if test `eval echo '${'$as_ac_var'}'` = yes; then
16002 cat >>confdefs.h <<_ACEOF
16003 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16011 for ac_header in sys/un.h
16013 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16014 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16015 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16016 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16017 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16018 echo $ECHO_N "(cached
) $ECHO_C" >&6
16020 ac_res=`eval echo '${'$as_ac_Header'}'`
16021 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16022 echo "${ECHO_T}$ac_res" >&6; }
16024 # Is the header compilable?
16025 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16026 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16027 cat >conftest.$ac_ext <<_ACEOF
16030 cat confdefs.h >>conftest.$ac_ext
16031 cat >>conftest.$ac_ext <<_ACEOF
16032 /* end confdefs.h. */
16033 $ac_includes_default
16034 #include <$ac_header>
16036 rm -f conftest.$ac_objext
16037 if { (ac_try="$ac_compile"
16038 case "(($ac_try" in
16039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16040 *) ac_try_echo=$ac_try;;
16042 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16043 (eval "$ac_compile") 2>conftest.er1
16045 grep -v '^ *+' conftest.er1 >conftest.err
16047 cat conftest.err >&5
16048 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16049 (exit $ac_status); } && {
16050 test -z "$ac_c_werror_flag" ||
16051 test ! -s conftest.err
16052 } && test -s conftest.$ac_objext; then
16053 ac_header_compiler=yes
16055 echo "$as_me: failed program was
:" >&5
16056 sed 's/^/| /' conftest.$ac_ext >&5
16058 ac_header_compiler=no
16061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16062 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16063 echo "${ECHO_T}$ac_header_compiler" >&6; }
16065 # Is the header present?
16066 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16067 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16068 cat >conftest.$ac_ext <<_ACEOF
16071 cat confdefs.h >>conftest.$ac_ext
16072 cat >>conftest.$ac_ext <<_ACEOF
16073 /* end confdefs.h. */
16074 #include <$ac_header>
16076 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16077 case "(($ac_try" in
16078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16079 *) ac_try_echo=$ac_try;;
16081 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16082 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16084 grep -v '^ *+' conftest.er1 >conftest.err
16086 cat conftest.err >&5
16087 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16088 (exit $ac_status); } >/dev/null && {
16089 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16090 test ! -s conftest.err
16092 ac_header_preproc=yes
16094 echo "$as_me: failed program was
:" >&5
16095 sed 's/^/| /' conftest.$ac_ext >&5
16097 ac_header_preproc=no
16100 rm -f conftest.err conftest.$ac_ext
16101 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16102 echo "${ECHO_T}$ac_header_preproc" >&6; }
16104 # So? What about this header?
16105 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16107 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16108 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16109 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16110 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16111 ac_header_preproc=yes
16114 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16115 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16116 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16117 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16118 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16119 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16120 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16121 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16122 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16123 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16124 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16125 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16129 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16130 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16131 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16132 echo $ECHO_N "(cached
) $ECHO_C" >&6
16134 eval "$as_ac_Header=\
$ac_header_preproc"
16136 ac_res=`eval echo '${'$as_ac_Header'}'`
16137 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16138 echo "${ECHO_T}$ac_res" >&6; }
16141 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16142 cat >>confdefs.h <<_ACEOF
16143 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16155 for ac_header in $ac_header_list
16157 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16158 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16159 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16160 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16161 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16162 echo $ECHO_N "(cached
) $ECHO_C" >&6
16164 ac_res=`eval echo '${'$as_ac_Header'}'`
16165 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16166 echo "${ECHO_T}$ac_res" >&6; }
16168 # Is the header compilable?
16169 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16170 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16171 cat >conftest.$ac_ext <<_ACEOF
16174 cat confdefs.h >>conftest.$ac_ext
16175 cat >>conftest.$ac_ext <<_ACEOF
16176 /* end confdefs.h. */
16177 $ac_includes_default
16178 #include <$ac_header>
16180 rm -f conftest.$ac_objext
16181 if { (ac_try="$ac_compile"
16182 case "(($ac_try" in
16183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16184 *) ac_try_echo=$ac_try;;
16186 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16187 (eval "$ac_compile") 2>conftest.er1
16189 grep -v '^ *+' conftest.er1 >conftest.err
16191 cat conftest.err >&5
16192 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16193 (exit $ac_status); } && {
16194 test -z "$ac_c_werror_flag" ||
16195 test ! -s conftest.err
16196 } && test -s conftest.$ac_objext; then
16197 ac_header_compiler=yes
16199 echo "$as_me: failed program was
:" >&5
16200 sed 's/^/| /' conftest.$ac_ext >&5
16202 ac_header_compiler=no
16205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16206 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16207 echo "${ECHO_T}$ac_header_compiler" >&6; }
16209 # Is the header present?
16210 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16211 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16212 cat >conftest.$ac_ext <<_ACEOF
16215 cat confdefs.h >>conftest.$ac_ext
16216 cat >>conftest.$ac_ext <<_ACEOF
16217 /* end confdefs.h. */
16218 #include <$ac_header>
16220 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16221 case "(($ac_try" in
16222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16223 *) ac_try_echo=$ac_try;;
16225 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16226 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16228 grep -v '^ *+' conftest.er1 >conftest.err
16230 cat conftest.err >&5
16231 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16232 (exit $ac_status); } >/dev/null && {
16233 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16234 test ! -s conftest.err
16236 ac_header_preproc=yes
16238 echo "$as_me: failed program was
:" >&5
16239 sed 's/^/| /' conftest.$ac_ext >&5
16241 ac_header_preproc=no
16244 rm -f conftest.err conftest.$ac_ext
16245 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16246 echo "${ECHO_T}$ac_header_preproc" >&6; }
16248 # So? What about this header?
16249 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16251 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16252 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16253 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16254 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16255 ac_header_preproc=yes
16258 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16259 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16260 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16261 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16262 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16263 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16264 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16265 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16266 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16267 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16268 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16269 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16273 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16274 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16275 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16276 echo $ECHO_N "(cached
) $ECHO_C" >&6
16278 eval "$as_ac_Header=\
$ac_header_preproc"
16280 ac_res=`eval echo '${'$as_ac_Header'}'`
16281 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16282 echo "${ECHO_T}$ac_res" >&6; }
16285 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16286 cat >>confdefs.h <<_ACEOF
16287 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16302 for ac_func in $ac_func_list
16304 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16305 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16306 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16307 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16308 echo $ECHO_N "(cached
) $ECHO_C" >&6
16310 cat >conftest.$ac_ext <<_ACEOF
16313 cat confdefs.h >>conftest.$ac_ext
16314 cat >>conftest.$ac_ext <<_ACEOF
16315 /* end confdefs.h. */
16316 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16317 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16318 #define $ac_func innocuous_$ac_func
16320 /* System header to define __stub macros and hopefully few prototypes,
16321 which can conflict with char $ac_func (); below.
16322 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16323 <limits.h> exists even on freestanding compilers. */
16326 # include <limits.h>
16328 # include <assert.h>
16333 /* Override any GCC internal prototype to avoid an error.
16334 Use char because int might match the return type of a GCC
16335 builtin and then its argument prototype would still apply. */
16340 /* The GNU C library defines this for functions which it implements
16341 to always fail with ENOSYS. Some functions are actually named
16342 something starting with __ and the normal name is an alias. */
16343 #if defined __stub_$ac_func || defined __stub___$ac_func
16350 return $ac_func ();
16355 rm -f conftest.$ac_objext conftest$ac_exeext
16356 if { (ac_try="$ac_link"
16357 case "(($ac_try" in
16358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16359 *) ac_try_echo=$ac_try;;
16361 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16362 (eval "$ac_link") 2>conftest.er1
16364 grep -v '^ *+' conftest.er1 >conftest.err
16366 cat conftest.err >&5
16367 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16368 (exit $ac_status); } && {
16369 test -z "$ac_c_werror_flag" ||
16370 test ! -s conftest.err
16371 } && test -s conftest$ac_exeext &&
16372 $as_test_x conftest$ac_exeext; then
16373 eval "$as_ac_var=yes"
16375 echo "$as_me: failed program was
:" >&5
16376 sed 's/^/| /' conftest.$ac_ext >&5
16378 eval "$as_ac_var=no
"
16381 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16382 conftest$ac_exeext conftest.$ac_ext
16384 ac_res=`eval echo '${'$as_ac_var'}'`
16385 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16386 echo "${ECHO_T}$ac_res" >&6; }
16387 if test `eval echo '${'$as_ac_var'}'` = yes; then
16388 cat >>confdefs.h <<_ACEOF
16389 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16411 { echo "$as_me:$LINENO: checking
for working mktime
" >&5
16412 echo $ECHO_N "checking
for working mktime...
$ECHO_C" >&6; }
16413 if test "${ac_cv_func_working_mktime+set}" = set; then
16414 echo $ECHO_N "(cached
) $ECHO_C" >&6
16416 if test "$cross_compiling" = yes; then
16417 ac_cv_func_working_mktime=no
16419 cat >conftest.$ac_ext <<_ACEOF
16422 cat confdefs.h >>conftest.$ac_ext
16423 cat >>conftest.$ac_ext <<_ACEOF
16424 /* end confdefs.h. */
16425 /* Test program from Paul Eggert and Tony Leneis. */
16426 #ifdef TIME_WITH_SYS_TIME
16427 # include <sys/time.h>
16430 # ifdef HAVE_SYS_TIME_H
16431 # include <sys/time.h>
16437 #include <stdlib.h>
16439 #ifdef HAVE_UNISTD_H
16440 # include <unistd.h>
16444 # define alarm(X) /* empty */
16447 /* Work around redefinition to rpl_putenv by other config tests. */
16450 static time_t time_t_max;
16451 static time_t time_t_min;
16453 /* Values we'll use to set the TZ environment variable. */
16454 static char *tz_strings[] = {
16455 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
16456 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
16458 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16460 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16461 Based on a problem report from Andreas Jaeger. */
16463 spring_forward_gap ()
16465 /* glibc (up to about 1998-10-07) failed this test. */
16468 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16469 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16470 on systems that don't support the Olson extension, or don't have the
16471 full zoneinfo tables installed. */
16472 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16481 return mktime (&tm) != (time_t) -1;
16489 return ! (lt = localtime (&now)) || mktime (lt) == now;
16496 return (mktime_test1 (now)
16497 && mktime_test1 ((time_t) (time_t_max - now))
16498 && mktime_test1 ((time_t) (time_t_min + now)));
16504 /* Based on code from Ariel Faigon. */
16514 return tm.tm_mon == 2 && tm.tm_mday == 31;
16523 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16524 now = mktime (&tm);
16525 if (now != (time_t) -1)
16527 struct tm *lt = localtime (&now);
16529 && lt->tm_year == tm.tm_year
16530 && lt->tm_mon == tm.tm_mon
16531 && lt->tm_mday == tm.tm_mday
16532 && lt->tm_hour == tm.tm_hour
16533 && lt->tm_min == tm.tm_min
16534 && lt->tm_sec == tm.tm_sec
16535 && lt->tm_yday == tm.tm_yday
16536 && lt->tm_wday == tm.tm_wday
16537 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16538 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16547 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16548 ignoring leap seconds. */
16549 unsigned long int answer = 2527315200UL;
16553 tm.tm_year = 2050 - 1900;
16556 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16559 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16560 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16561 on systems that don't support the Olson extension, or don't have the
16562 full zoneinfo tables installed. */
16563 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16567 /* Check that the result is either a failure, or close enough
16568 to the correct answer that we can assume the discrepancy is
16569 due to leap seconds. */
16570 return (t == (time_t) -1
16571 || (0 < t && answer - 120 <= t && t <= answer + 120));
16580 /* This test makes some buggy mktime implementations loop.
16581 Give up after 60 seconds; a mktime slower than that
16582 isn't worth using anyway. */
16585 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16588 if ((time_t) -1 < 0)
16589 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16591 delta = time_t_max / 997; /* a suitable prime number */
16592 for (i = 0; i < N_STRINGS; i++)
16595 putenv (tz_strings[i]);
16597 for (t = 0; t <= time_t_max - delta; t += delta)
16598 if (! mktime_test (t))
16600 if (! (mktime_test ((time_t) 1)
16601 && mktime_test ((time_t) (60 * 60))
16602 && mktime_test ((time_t) (60 * 60 * 24))))
16605 for (j = 1; 0 < j; j *= 2)
16606 if (! bigtime_test (j))
16608 if (! bigtime_test (j - 1))
16611 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16614 rm -f conftest$ac_exeext
16615 if { (ac_try="$ac_link"
16616 case "(($ac_try" in
16617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16618 *) ac_try_echo=$ac_try;;
16620 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16621 (eval "$ac_link") 2>&5
16623 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16624 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16625 { (case "(($ac_try" in
16626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16627 *) ac_try_echo=$ac_try;;
16629 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16630 (eval "$ac_try") 2>&5
16632 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16633 (exit $ac_status); }; }; then
16634 ac_cv_func_working_mktime=yes
16636 echo "$as_me: program exited with status
$ac_status" >&5
16637 echo "$as_me: failed program was
:" >&5
16638 sed 's/^/| /' conftest.$ac_ext >&5
16640 ( exit $ac_status )
16641 ac_cv_func_working_mktime=no
16643 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16648 { echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
16649 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16650 if test $ac_cv_func_working_mktime = no; then
16651 case " $LIBOBJS " in
16652 *" mktime.
$ac_objext "* ) ;;
16653 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
16659 if test "$ac_cv_func_working_mktime" = no; then
16661 cat >>confdefs.h <<\_ACEOF
16662 #define BROKEN_MKTIME 1
16667 ac_have_func=no # yes means we've found a way to get the load average.
16669 # Make sure getloadavg.c is where it belongs, at configure-time.
16670 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
16671 { { echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
16672 echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
16673 { (exit 1); exit 1; }; }
16677 # Check for getloadavg, but be sure not to touch the cache variable.
16678 ({ echo "$as_me:$LINENO: checking
for getloadavg
" >&5
16679 echo $ECHO_N "checking
for getloadavg...
$ECHO_C" >&6; }
16680 if test "${ac_cv_func_getloadavg+set}" = set; then
16681 echo $ECHO_N "(cached
) $ECHO_C" >&6
16683 cat >conftest.$ac_ext <<_ACEOF
16686 cat confdefs.h >>conftest.$ac_ext
16687 cat >>conftest.$ac_ext <<_ACEOF
16688 /* end confdefs.h. */
16689 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16690 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16691 #define getloadavg innocuous_getloadavg
16693 /* System header to define __stub macros and hopefully few prototypes,
16694 which can conflict with char getloadavg (); below.
16695 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16696 <limits.h> exists even on freestanding compilers. */
16699 # include <limits.h>
16701 # include <assert.h>
16706 /* Override any GCC internal prototype to avoid an error.
16707 Use char because int might match the return type of a GCC
16708 builtin and then its argument prototype would still apply. */
16712 char getloadavg ();
16713 /* The GNU C library defines this for functions which it implements
16714 to always fail with ENOSYS. Some functions are actually named
16715 something starting with __ and the normal name is an alias. */
16716 #if defined __stub_getloadavg || defined __stub___getloadavg
16723 return getloadavg ();
16728 rm -f conftest.$ac_objext conftest$ac_exeext
16729 if { (ac_try="$ac_link"
16730 case "(($ac_try" in
16731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16732 *) ac_try_echo=$ac_try;;
16734 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16735 (eval "$ac_link") 2>conftest.er1
16737 grep -v '^ *+' conftest.er1 >conftest.err
16739 cat conftest.err >&5
16740 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16741 (exit $ac_status); } && {
16742 test -z "$ac_c_werror_flag" ||
16743 test ! -s conftest.err
16744 } && test -s conftest$ac_exeext &&
16745 $as_test_x conftest$ac_exeext; then
16746 ac_cv_func_getloadavg=yes
16748 echo "$as_me: failed program was
:" >&5
16749 sed 's/^/| /' conftest.$ac_ext >&5
16751 ac_cv_func_getloadavg=no
16754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16755 conftest$ac_exeext conftest.$ac_ext
16757 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
16758 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16759 if test $ac_cv_func_getloadavg = yes; then
16764 ) && ac_have_func=yes
16766 # On HPUX9, an unprivileged user can get load averages through this function.
16768 for ac_func in pstat_getdynamic
16770 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16771 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16772 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16773 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16774 echo $ECHO_N "(cached
) $ECHO_C" >&6
16776 cat >conftest.$ac_ext <<_ACEOF
16779 cat confdefs.h >>conftest.$ac_ext
16780 cat >>conftest.$ac_ext <<_ACEOF
16781 /* end confdefs.h. */
16782 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16783 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16784 #define $ac_func innocuous_$ac_func
16786 /* System header to define __stub macros and hopefully few prototypes,
16787 which can conflict with char $ac_func (); below.
16788 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16789 <limits.h> exists even on freestanding compilers. */
16792 # include <limits.h>
16794 # include <assert.h>
16799 /* Override any GCC internal prototype to avoid an error.
16800 Use char because int might match the return type of a GCC
16801 builtin and then its argument prototype would still apply. */
16806 /* The GNU C library defines this for functions which it implements
16807 to always fail with ENOSYS. Some functions are actually named
16808 something starting with __ and the normal name is an alias. */
16809 #if defined __stub_$ac_func || defined __stub___$ac_func
16816 return $ac_func ();
16821 rm -f conftest.$ac_objext conftest$ac_exeext
16822 if { (ac_try="$ac_link"
16823 case "(($ac_try" in
16824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16825 *) ac_try_echo=$ac_try;;
16827 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16828 (eval "$ac_link") 2>conftest.er1
16830 grep -v '^ *+' conftest.er1 >conftest.err
16832 cat conftest.err >&5
16833 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16834 (exit $ac_status); } && {
16835 test -z "$ac_c_werror_flag" ||
16836 test ! -s conftest.err
16837 } && test -s conftest$ac_exeext &&
16838 $as_test_x conftest$ac_exeext; then
16839 eval "$as_ac_var=yes"
16841 echo "$as_me: failed program was
:" >&5
16842 sed 's/^/| /' conftest.$ac_ext >&5
16844 eval "$as_ac_var=no
"
16847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16848 conftest$ac_exeext conftest.$ac_ext
16850 ac_res=`eval echo '${'$as_ac_var'}'`
16851 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16852 echo "${ECHO_T}$ac_res" >&6; }
16853 if test `eval echo '${'$as_ac_var'}'` = yes; then
16854 cat >>confdefs.h <<_ACEOF
16855 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16862 # Solaris has libkstat which does not require root.
16864 { echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
16865 echo $ECHO_N "checking
for kstat_open
in -lkstat...
$ECHO_C" >&6; }
16866 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16867 echo $ECHO_N "(cached
) $ECHO_C" >&6
16869 ac_check_lib_save_LIBS=$LIBS
16870 LIBS="-lkstat $LIBS"
16871 cat >conftest.$ac_ext <<_ACEOF
16874 cat confdefs.h >>conftest.$ac_ext
16875 cat >>conftest.$ac_ext <<_ACEOF
16876 /* end confdefs.h. */
16878 /* Override any GCC internal prototype to avoid an error.
16879 Use char because int might match the return type of a GCC
16880 builtin and then its argument prototype would still apply. */
16884 char kstat_open ();
16888 return kstat_open ();
16893 rm -f conftest.$ac_objext conftest$ac_exeext
16894 if { (ac_try="$ac_link"
16895 case "(($ac_try" in
16896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16897 *) ac_try_echo=$ac_try;;
16899 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16900 (eval "$ac_link") 2>conftest.er1
16902 grep -v '^ *+' conftest.er1 >conftest.err
16904 cat conftest.err >&5
16905 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16906 (exit $ac_status); } && {
16907 test -z "$ac_c_werror_flag" ||
16908 test ! -s conftest.err
16909 } && test -s conftest$ac_exeext &&
16910 $as_test_x conftest$ac_exeext; then
16911 ac_cv_lib_kstat_kstat_open=yes
16913 echo "$as_me: failed program was
:" >&5
16914 sed 's/^/| /' conftest.$ac_ext >&5
16916 ac_cv_lib_kstat_kstat_open=no
16919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16920 conftest$ac_exeext conftest.$ac_ext
16921 LIBS=$ac_check_lib_save_LIBS
16923 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
16924 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16925 if test $ac_cv_lib_kstat_kstat_open = yes; then
16926 cat >>confdefs.h <<_ACEOF
16927 #define HAVE_LIBKSTAT 1
16930 LIBS="-lkstat $LIBS"
16934 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
16936 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16937 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16938 # to get the right answer into the cache.
16939 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16940 if test $ac_have_func = no; then
16941 { echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
16942 echo $ECHO_N "checking
for elf_begin
in -lelf...
$ECHO_C" >&6; }
16943 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
16944 echo $ECHO_N "(cached
) $ECHO_C" >&6
16946 ac_check_lib_save_LIBS=$LIBS
16948 cat >conftest.$ac_ext <<_ACEOF
16951 cat confdefs.h >>conftest.$ac_ext
16952 cat >>conftest.$ac_ext <<_ACEOF
16953 /* end confdefs.h. */
16955 /* Override any GCC internal prototype to avoid an error.
16956 Use char because int might match the return type of a GCC
16957 builtin and then its argument prototype would still apply. */
16965 return elf_begin ();
16970 rm -f conftest.$ac_objext conftest$ac_exeext
16971 if { (ac_try="$ac_link"
16972 case "(($ac_try" in
16973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16974 *) ac_try_echo=$ac_try;;
16976 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16977 (eval "$ac_link") 2>conftest.er1
16979 grep -v '^ *+' conftest.er1 >conftest.err
16981 cat conftest.err >&5
16982 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16983 (exit $ac_status); } && {
16984 test -z "$ac_c_werror_flag" ||
16985 test ! -s conftest.err
16986 } && test -s conftest$ac_exeext &&
16987 $as_test_x conftest$ac_exeext; then
16988 ac_cv_lib_elf_elf_begin=yes
16990 echo "$as_me: failed program was
:" >&5
16991 sed 's/^/| /' conftest.$ac_ext >&5
16993 ac_cv_lib_elf_elf_begin=no
16996 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16997 conftest$ac_exeext conftest.$ac_ext
16998 LIBS=$ac_check_lib_save_LIBS
17000 { echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
17001 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17002 if test $ac_cv_lib_elf_elf_begin = yes; then
17007 if test $ac_have_func = no; then
17008 { echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
17009 echo $ECHO_N "checking
for kvm_open
in -lkvm...
$ECHO_C" >&6; }
17010 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17011 echo $ECHO_N "(cached
) $ECHO_C" >&6
17013 ac_check_lib_save_LIBS=$LIBS
17015 cat >conftest.$ac_ext <<_ACEOF
17018 cat confdefs.h >>conftest.$ac_ext
17019 cat >>conftest.$ac_ext <<_ACEOF
17020 /* end confdefs.h. */
17022 /* Override any GCC internal prototype to avoid an error.
17023 Use char because int might match the return type of a GCC
17024 builtin and then its argument prototype would still apply. */
17032 return kvm_open ();
17037 rm -f conftest.$ac_objext conftest$ac_exeext
17038 if { (ac_try="$ac_link"
17039 case "(($ac_try" in
17040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17041 *) ac_try_echo=$ac_try;;
17043 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17044 (eval "$ac_link") 2>conftest.er1
17046 grep -v '^ *+' conftest.er1 >conftest.err
17048 cat conftest.err >&5
17049 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17050 (exit $ac_status); } && {
17051 test -z "$ac_c_werror_flag" ||
17052 test ! -s conftest.err
17053 } && test -s conftest$ac_exeext &&
17054 $as_test_x conftest$ac_exeext; then
17055 ac_cv_lib_kvm_kvm_open=yes
17057 echo "$as_me: failed program was
:" >&5
17058 sed 's/^/| /' conftest.$ac_ext >&5
17060 ac_cv_lib_kvm_kvm_open=no
17063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17064 conftest$ac_exeext conftest.$ac_ext
17065 LIBS=$ac_check_lib_save_LIBS
17067 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
17068 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17069 if test $ac_cv_lib_kvm_kvm_open = yes; then
17073 # Check for the 4.4BSD definition of getloadavg.
17074 { echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
17075 echo $ECHO_N "checking
for getloadavg
in -lutil...
$ECHO_C" >&6; }
17076 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17077 echo $ECHO_N "(cached
) $ECHO_C" >&6
17079 ac_check_lib_save_LIBS=$LIBS
17080 LIBS="-lutil $LIBS"
17081 cat >conftest.$ac_ext <<_ACEOF
17084 cat confdefs.h >>conftest.$ac_ext
17085 cat >>conftest.$ac_ext <<_ACEOF
17086 /* end confdefs.h. */
17088 /* Override any GCC internal prototype to avoid an error.
17089 Use char because int might match the return type of a GCC
17090 builtin and then its argument prototype would still apply. */
17094 char getloadavg ();
17098 return getloadavg ();
17103 rm -f conftest.$ac_objext conftest$ac_exeext
17104 if { (ac_try="$ac_link"
17105 case "(($ac_try" in
17106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17107 *) ac_try_echo=$ac_try;;
17109 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17110 (eval "$ac_link") 2>conftest.er1
17112 grep -v '^ *+' conftest.er1 >conftest.err
17114 cat conftest.err >&5
17115 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17116 (exit $ac_status); } && {
17117 test -z "$ac_c_werror_flag" ||
17118 test ! -s conftest.err
17119 } && test -s conftest$ac_exeext &&
17120 $as_test_x conftest$ac_exeext; then
17121 ac_cv_lib_util_getloadavg=yes
17123 echo "$as_me: failed program was
:" >&5
17124 sed 's/^/| /' conftest.$ac_ext >&5
17126 ac_cv_lib_util_getloadavg=no
17129 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17130 conftest$ac_exeext conftest.$ac_ext
17131 LIBS=$ac_check_lib_save_LIBS
17133 { echo "$as_me:$LINENO: result
: $ac_cv_lib_util_getloadavg" >&5
17134 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17135 if test $ac_cv_lib_util_getloadavg = yes; then
17136 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17141 if test $ac_have_func = no; then
17142 # There is a commonly available library for RS/6000 AIX.
17143 # Since it is not a standard part of AIX, it might be installed locally.
17144 ac_getloadavg_LIBS=$LIBS
17145 LIBS="-L/usr
/local
/lib
$LIBS"
17146 { echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
17147 echo $ECHO_N "checking
for getloadavg
in -lgetloadavg...
$ECHO_C" >&6; }
17148 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17149 echo $ECHO_N "(cached
) $ECHO_C" >&6
17151 ac_check_lib_save_LIBS=$LIBS
17152 LIBS="-lgetloadavg $LIBS"
17153 cat >conftest.$ac_ext <<_ACEOF
17156 cat confdefs.h >>conftest.$ac_ext
17157 cat >>conftest.$ac_ext <<_ACEOF
17158 /* end confdefs.h. */
17160 /* Override any GCC internal prototype to avoid an error.
17161 Use char because int might match the return type of a GCC
17162 builtin and then its argument prototype would still apply. */
17166 char getloadavg ();
17170 return getloadavg ();
17175 rm -f conftest.$ac_objext conftest$ac_exeext
17176 if { (ac_try="$ac_link"
17177 case "(($ac_try" in
17178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17179 *) ac_try_echo=$ac_try;;
17181 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17182 (eval "$ac_link") 2>conftest.er1
17184 grep -v '^ *+' conftest.er1 >conftest.err
17186 cat conftest.err >&5
17187 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17188 (exit $ac_status); } && {
17189 test -z "$ac_c_werror_flag" ||
17190 test ! -s conftest.err
17191 } && test -s conftest$ac_exeext &&
17192 $as_test_x conftest$ac_exeext; then
17193 ac_cv_lib_getloadavg_getloadavg=yes
17195 echo "$as_me: failed program was
:" >&5
17196 sed 's/^/| /' conftest.$ac_ext >&5
17198 ac_cv_lib_getloadavg_getloadavg=no
17201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17202 conftest$ac_exeext conftest.$ac_ext
17203 LIBS=$ac_check_lib_save_LIBS
17205 { echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
17206 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17207 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17208 LIBS="-lgetloadavg $LIBS"
17210 LIBS=$ac_getloadavg_LIBS
17215 # Make sure it is really in the library, if we think we found it,
17216 # otherwise set up the replacement function.
17218 for ac_func in getloadavg
17220 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17221 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17222 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17223 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17224 echo $ECHO_N "(cached
) $ECHO_C" >&6
17226 cat >conftest.$ac_ext <<_ACEOF
17229 cat confdefs.h >>conftest.$ac_ext
17230 cat >>conftest.$ac_ext <<_ACEOF
17231 /* end confdefs.h. */
17232 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17233 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17234 #define $ac_func innocuous_$ac_func
17236 /* System header to define __stub macros and hopefully few prototypes,
17237 which can conflict with char $ac_func (); below.
17238 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17239 <limits.h> exists even on freestanding compilers. */
17242 # include <limits.h>
17244 # include <assert.h>
17249 /* Override any GCC internal prototype to avoid an error.
17250 Use char because int might match the return type of a GCC
17251 builtin and then its argument prototype would still apply. */
17256 /* The GNU C library defines this for functions which it implements
17257 to always fail with ENOSYS. Some functions are actually named
17258 something starting with __ and the normal name is an alias. */
17259 #if defined __stub_$ac_func || defined __stub___$ac_func
17266 return $ac_func ();
17271 rm -f conftest.$ac_objext conftest$ac_exeext
17272 if { (ac_try="$ac_link"
17273 case "(($ac_try" in
17274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17275 *) ac_try_echo=$ac_try;;
17277 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17278 (eval "$ac_link") 2>conftest.er1
17280 grep -v '^ *+' conftest.er1 >conftest.err
17282 cat conftest.err >&5
17283 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17284 (exit $ac_status); } && {
17285 test -z "$ac_c_werror_flag" ||
17286 test ! -s conftest.err
17287 } && test -s conftest$ac_exeext &&
17288 $as_test_x conftest$ac_exeext; then
17289 eval "$as_ac_var=yes"
17291 echo "$as_me: failed program was
:" >&5
17292 sed 's/^/| /' conftest.$ac_ext >&5
17294 eval "$as_ac_var=no
"
17297 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17298 conftest$ac_exeext conftest.$ac_ext
17300 ac_res=`eval echo '${'$as_ac_var'}'`
17301 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17302 echo "${ECHO_T}$ac_res" >&6; }
17303 if test `eval echo '${'$as_ac_var'}'` = yes; then
17304 cat >>confdefs.h <<_ACEOF
17305 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17309 case " $LIBOBJS " in
17310 *" getloadavg.
$ac_objext "* ) ;;
17311 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
17316 cat >>confdefs.h <<\_ACEOF
17317 #define C_GETLOADAVG 1
17320 # Figure out what our getloadavg.c needs.
17322 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17323 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17324 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17325 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17326 echo $ECHO_N "(cached
) $ECHO_C" >&6
17328 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17329 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17331 # Is the header compilable?
17332 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
17333 echo $ECHO_N "checking sys
/dg_sys_info.h usability...
$ECHO_C" >&6; }
17334 cat >conftest.$ac_ext <<_ACEOF
17337 cat confdefs.h >>conftest.$ac_ext
17338 cat >>conftest.$ac_ext <<_ACEOF
17339 /* end confdefs.h. */
17340 $ac_includes_default
17341 #include <sys/dg_sys_info.h>
17343 rm -f conftest.$ac_objext
17344 if { (ac_try="$ac_compile"
17345 case "(($ac_try" in
17346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17347 *) ac_try_echo=$ac_try;;
17349 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17350 (eval "$ac_compile") 2>conftest.er1
17352 grep -v '^ *+' conftest.er1 >conftest.err
17354 cat conftest.err >&5
17355 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17356 (exit $ac_status); } && {
17357 test -z "$ac_c_werror_flag" ||
17358 test ! -s conftest.err
17359 } && test -s conftest.$ac_objext; then
17360 ac_header_compiler=yes
17362 echo "$as_me: failed program was
:" >&5
17363 sed 's/^/| /' conftest.$ac_ext >&5
17365 ac_header_compiler=no
17368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17369 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17370 echo "${ECHO_T}$ac_header_compiler" >&6; }
17372 # Is the header present?
17373 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
17374 echo $ECHO_N "checking sys
/dg_sys_info.h presence...
$ECHO_C" >&6; }
17375 cat >conftest.$ac_ext <<_ACEOF
17378 cat confdefs.h >>conftest.$ac_ext
17379 cat >>conftest.$ac_ext <<_ACEOF
17380 /* end confdefs.h. */
17381 #include <sys/dg_sys_info.h>
17383 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17384 case "(($ac_try" in
17385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17386 *) ac_try_echo=$ac_try;;
17388 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17389 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17391 grep -v '^ *+' conftest.er1 >conftest.err
17393 cat conftest.err >&5
17394 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17395 (exit $ac_status); } >/dev/null && {
17396 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17397 test ! -s conftest.err
17399 ac_header_preproc=yes
17401 echo "$as_me: failed program was
:" >&5
17402 sed 's/^/| /' conftest.$ac_ext >&5
17404 ac_header_preproc=no
17407 rm -f conftest.err conftest.$ac_ext
17408 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17409 echo "${ECHO_T}$ac_header_preproc" >&6; }
17411 # So? What about this header?
17412 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17414 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17415 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17416 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
17417 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
17418 ac_header_preproc=yes
17421 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
17422 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
17423 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
17424 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
17425 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
17426 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
17427 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17428 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17429 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
17430 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
17431 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
17432 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
17436 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17437 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17438 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17439 echo $ECHO_N "(cached
) $ECHO_C" >&6
17441 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17443 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17444 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17447 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17450 cat >>confdefs.h <<\_ACEOF
17455 { echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
17456 echo $ECHO_N "checking
for dg_sys_info
in -ldgc...
$ECHO_C" >&6; }
17457 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17458 echo $ECHO_N "(cached
) $ECHO_C" >&6
17460 ac_check_lib_save_LIBS=$LIBS
17462 cat >conftest.$ac_ext <<_ACEOF
17465 cat confdefs.h >>conftest.$ac_ext
17466 cat >>conftest.$ac_ext <<_ACEOF
17467 /* end confdefs.h. */
17469 /* Override any GCC internal prototype to avoid an error.
17470 Use char because int might match the return type of a GCC
17471 builtin and then its argument prototype would still apply. */
17475 char dg_sys_info ();
17479 return dg_sys_info ();
17484 rm -f conftest.$ac_objext conftest$ac_exeext
17485 if { (ac_try="$ac_link"
17486 case "(($ac_try" in
17487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17488 *) ac_try_echo=$ac_try;;
17490 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17491 (eval "$ac_link") 2>conftest.er1
17493 grep -v '^ *+' conftest.er1 >conftest.err
17495 cat conftest.err >&5
17496 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17497 (exit $ac_status); } && {
17498 test -z "$ac_c_werror_flag" ||
17499 test ! -s conftest.err
17500 } && test -s conftest$ac_exeext &&
17501 $as_test_x conftest$ac_exeext; then
17502 ac_cv_lib_dgc_dg_sys_info=yes
17504 echo "$as_me: failed program was
:" >&5
17505 sed 's/^/| /' conftest.$ac_ext >&5
17507 ac_cv_lib_dgc_dg_sys_info=no
17510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17511 conftest$ac_exeext conftest.$ac_ext
17512 LIBS=$ac_check_lib_save_LIBS
17514 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
17515 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17516 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17517 cat >>confdefs.h <<_ACEOF
17518 #define HAVE_LIBDGC 1
17529 if test "${ac_cv_header_locale_h+set}" = set; then
17530 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17531 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17532 if test "${ac_cv_header_locale_h+set}" = set; then
17533 echo $ECHO_N "(cached
) $ECHO_C" >&6
17535 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17536 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17538 # Is the header compilable?
17539 { echo "$as_me:$LINENO: checking locale.h usability
" >&5
17540 echo $ECHO_N "checking locale.h usability...
$ECHO_C" >&6; }
17541 cat >conftest.$ac_ext <<_ACEOF
17544 cat confdefs.h >>conftest.$ac_ext
17545 cat >>conftest.$ac_ext <<_ACEOF
17546 /* end confdefs.h. */
17547 $ac_includes_default
17548 #include <locale.h>
17550 rm -f conftest.$ac_objext
17551 if { (ac_try="$ac_compile"
17552 case "(($ac_try" in
17553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17554 *) ac_try_echo=$ac_try;;
17556 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17557 (eval "$ac_compile") 2>conftest.er1
17559 grep -v '^ *+' conftest.er1 >conftest.err
17561 cat conftest.err >&5
17562 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17563 (exit $ac_status); } && {
17564 test -z "$ac_c_werror_flag" ||
17565 test ! -s conftest.err
17566 } && test -s conftest.$ac_objext; then
17567 ac_header_compiler=yes
17569 echo "$as_me: failed program was
:" >&5
17570 sed 's/^/| /' conftest.$ac_ext >&5
17572 ac_header_compiler=no
17575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17576 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17577 echo "${ECHO_T}$ac_header_compiler" >&6; }
17579 # Is the header present?
17580 { echo "$as_me:$LINENO: checking locale.h presence
" >&5
17581 echo $ECHO_N "checking locale.h presence...
$ECHO_C" >&6; }
17582 cat >conftest.$ac_ext <<_ACEOF
17585 cat confdefs.h >>conftest.$ac_ext
17586 cat >>conftest.$ac_ext <<_ACEOF
17587 /* end confdefs.h. */
17588 #include <locale.h>
17590 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17591 case "(($ac_try" in
17592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17593 *) ac_try_echo=$ac_try;;
17595 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17596 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17598 grep -v '^ *+' conftest.er1 >conftest.err
17600 cat conftest.err >&5
17601 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17602 (exit $ac_status); } >/dev/null && {
17603 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17604 test ! -s conftest.err
17606 ac_header_preproc=yes
17608 echo "$as_me: failed program was
:" >&5
17609 sed 's/^/| /' conftest.$ac_ext >&5
17611 ac_header_preproc=no
17614 rm -f conftest.err conftest.$ac_ext
17615 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17616 echo "${ECHO_T}$ac_header_preproc" >&6; }
17618 # So? What about this header?
17619 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17621 { echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17622 echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17623 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
17624 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
17625 ac_header_preproc=yes
17628 { echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
17629 echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
17630 { echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
17631 echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
17632 { echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
17633 echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
17634 { echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17635 echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17636 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
17637 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
17638 { echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
17639 echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
17643 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17644 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17645 if test "${ac_cv_header_locale_h+set}" = set; then
17646 echo $ECHO_N "(cached
) $ECHO_C" >&6
17648 ac_cv_header_locale_h=$ac_header_preproc
17650 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17651 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17657 for ac_func in setlocale
17659 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17660 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17661 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17662 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17663 echo $ECHO_N "(cached
) $ECHO_C" >&6
17665 cat >conftest.$ac_ext <<_ACEOF
17668 cat confdefs.h >>conftest.$ac_ext
17669 cat >>conftest.$ac_ext <<_ACEOF
17670 /* end confdefs.h. */
17671 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17672 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17673 #define $ac_func innocuous_$ac_func
17675 /* System header to define __stub macros and hopefully few prototypes,
17676 which can conflict with char $ac_func (); below.
17677 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17678 <limits.h> exists even on freestanding compilers. */
17681 # include <limits.h>
17683 # include <assert.h>
17688 /* Override any GCC internal prototype to avoid an error.
17689 Use char because int might match the return type of a GCC
17690 builtin and then its argument prototype would still apply. */
17695 /* The GNU C library defines this for functions which it implements
17696 to always fail with ENOSYS. Some functions are actually named
17697 something starting with __ and the normal name is an alias. */
17698 #if defined __stub_$ac_func || defined __stub___$ac_func
17705 return $ac_func ();
17710 rm -f conftest.$ac_objext conftest$ac_exeext
17711 if { (ac_try="$ac_link"
17712 case "(($ac_try" in
17713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17714 *) ac_try_echo=$ac_try;;
17716 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17717 (eval "$ac_link") 2>conftest.er1
17719 grep -v '^ *+' conftest.er1 >conftest.err
17721 cat conftest.err >&5
17722 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17723 (exit $ac_status); } && {
17724 test -z "$ac_c_werror_flag" ||
17725 test ! -s conftest.err
17726 } && test -s conftest$ac_exeext &&
17727 $as_test_x conftest$ac_exeext; then
17728 eval "$as_ac_var=yes"
17730 echo "$as_me: failed program was
:" >&5
17731 sed 's/^/| /' conftest.$ac_ext >&5
17733 eval "$as_ac_var=no
"
17736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17737 conftest$ac_exeext conftest.$ac_ext
17739 ac_res=`eval echo '${'$as_ac_var'}'`
17740 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17741 echo "${ECHO_T}$ac_res" >&6; }
17742 if test `eval echo '${'$as_ac_var'}'` = yes; then
17743 cat >>confdefs.h <<_ACEOF
17744 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17751 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17752 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17753 # Irix 4.0.5F has the header but not the library.
17754 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17757 cat >>confdefs.h <<\_ACEOF
17763 if test $ac_have_func = no; then
17764 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17765 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17766 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17767 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17768 echo $ECHO_N "(cached
) $ECHO_C" >&6
17770 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17771 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17773 # Is the header compilable?
17774 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
17775 echo $ECHO_N "checking inq_stats
/cpustats.h usability...
$ECHO_C" >&6; }
17776 cat >conftest.$ac_ext <<_ACEOF
17779 cat confdefs.h >>conftest.$ac_ext
17780 cat >>conftest.$ac_ext <<_ACEOF
17781 /* end confdefs.h. */
17782 $ac_includes_default
17783 #include <inq_stats/cpustats.h>
17785 rm -f conftest.$ac_objext
17786 if { (ac_try="$ac_compile"
17787 case "(($ac_try" in
17788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17789 *) ac_try_echo=$ac_try;;
17791 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17792 (eval "$ac_compile") 2>conftest.er1
17794 grep -v '^ *+' conftest.er1 >conftest.err
17796 cat conftest.err >&5
17797 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17798 (exit $ac_status); } && {
17799 test -z "$ac_c_werror_flag" ||
17800 test ! -s conftest.err
17801 } && test -s conftest.$ac_objext; then
17802 ac_header_compiler=yes
17804 echo "$as_me: failed program was
:" >&5
17805 sed 's/^/| /' conftest.$ac_ext >&5
17807 ac_header_compiler=no
17810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17811 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17812 echo "${ECHO_T}$ac_header_compiler" >&6; }
17814 # Is the header present?
17815 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
17816 echo $ECHO_N "checking inq_stats
/cpustats.h presence...
$ECHO_C" >&6; }
17817 cat >conftest.$ac_ext <<_ACEOF
17820 cat confdefs.h >>conftest.$ac_ext
17821 cat >>conftest.$ac_ext <<_ACEOF
17822 /* end confdefs.h. */
17823 #include <inq_stats/cpustats.h>
17825 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17826 case "(($ac_try" in
17827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17828 *) ac_try_echo=$ac_try;;
17830 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17831 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17833 grep -v '^ *+' conftest.er1 >conftest.err
17835 cat conftest.err >&5
17836 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17837 (exit $ac_status); } >/dev/null && {
17838 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17839 test ! -s conftest.err
17841 ac_header_preproc=yes
17843 echo "$as_me: failed program was
:" >&5
17844 sed 's/^/| /' conftest.$ac_ext >&5
17846 ac_header_preproc=no
17849 rm -f conftest.err conftest.$ac_ext
17850 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17851 echo "${ECHO_T}$ac_header_preproc" >&6; }
17853 # So? What about this header?
17854 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17856 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17857 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17858 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
17859 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
17860 ac_header_preproc=yes
17863 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
17864 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
17865 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
17866 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
17867 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
17868 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
17869 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17870 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17871 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
17872 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
17873 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
17874 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
17878 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17879 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17880 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17881 echo $ECHO_N "(cached
) $ECHO_C" >&6
17883 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17885 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17886 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17889 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17892 cat >>confdefs.h <<\_ACEOF
17897 cat >>confdefs.h <<\_ACEOF
17906 if test $ac_have_func = no; then
17907 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17908 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
17909 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
17910 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17911 echo $ECHO_N "(cached
) $ECHO_C" >&6
17913 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
17914 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17916 # Is the header compilable?
17917 { echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
17918 echo $ECHO_N "checking sys
/cpustats.h usability...
$ECHO_C" >&6; }
17919 cat >conftest.$ac_ext <<_ACEOF
17922 cat confdefs.h >>conftest.$ac_ext
17923 cat >>conftest.$ac_ext <<_ACEOF
17924 /* end confdefs.h. */
17925 $ac_includes_default
17926 #include <sys/cpustats.h>
17928 rm -f conftest.$ac_objext
17929 if { (ac_try="$ac_compile"
17930 case "(($ac_try" in
17931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17932 *) ac_try_echo=$ac_try;;
17934 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17935 (eval "$ac_compile") 2>conftest.er1
17937 grep -v '^ *+' conftest.er1 >conftest.err
17939 cat conftest.err >&5
17940 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17941 (exit $ac_status); } && {
17942 test -z "$ac_c_werror_flag" ||
17943 test ! -s conftest.err
17944 } && test -s conftest.$ac_objext; then
17945 ac_header_compiler=yes
17947 echo "$as_me: failed program was
:" >&5
17948 sed 's/^/| /' conftest.$ac_ext >&5
17950 ac_header_compiler=no
17953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17954 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17955 echo "${ECHO_T}$ac_header_compiler" >&6; }
17957 # Is the header present?
17958 { echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
17959 echo $ECHO_N "checking sys
/cpustats.h presence...
$ECHO_C" >&6; }
17960 cat >conftest.$ac_ext <<_ACEOF
17963 cat confdefs.h >>conftest.$ac_ext
17964 cat >>conftest.$ac_ext <<_ACEOF
17965 /* end confdefs.h. */
17966 #include <sys/cpustats.h>
17968 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17969 case "(($ac_try" in
17970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17971 *) ac_try_echo=$ac_try;;
17973 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17974 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17976 grep -v '^ *+' conftest.er1 >conftest.err
17978 cat conftest.err >&5
17979 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17980 (exit $ac_status); } >/dev/null && {
17981 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17982 test ! -s conftest.err
17984 ac_header_preproc=yes
17986 echo "$as_me: failed program was
:" >&5
17987 sed 's/^/| /' conftest.$ac_ext >&5
17989 ac_header_preproc=no
17992 rm -f conftest.err conftest.$ac_ext
17993 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17994 echo "${ECHO_T}$ac_header_preproc" >&6; }
17996 # So? What about this header?
17997 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17999 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
18000 echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18001 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
18002 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
18003 ac_header_preproc=yes
18006 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
18007 echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
18008 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
18009 echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
18010 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
18011 echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
18012 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
18013 echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
18014 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
18015 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
18016 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
18017 echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
18021 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
18022 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
18023 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18024 echo $ECHO_N "(cached
) $ECHO_C" >&6
18026 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18028 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
18029 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18032 if test $ac_cv_header_sys_cpustats_h = yes; then
18033 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18042 if test $ac_have_func = no; then
18044 for ac_header in mach/mach.h
18046 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18047 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18048 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18049 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18050 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18051 echo $ECHO_N "(cached
) $ECHO_C" >&6
18053 ac_res=`eval echo '${'$as_ac_Header'}'`
18054 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18055 echo "${ECHO_T}$ac_res" >&6; }
18057 # Is the header compilable?
18058 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18059 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18060 cat >conftest.$ac_ext <<_ACEOF
18063 cat confdefs.h >>conftest.$ac_ext
18064 cat >>conftest.$ac_ext <<_ACEOF
18065 /* end confdefs.h. */
18066 $ac_includes_default
18067 #include <$ac_header>
18069 rm -f conftest.$ac_objext
18070 if { (ac_try="$ac_compile"
18071 case "(($ac_try" in
18072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18073 *) ac_try_echo=$ac_try;;
18075 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18076 (eval "$ac_compile") 2>conftest.er1
18078 grep -v '^ *+' conftest.er1 >conftest.err
18080 cat conftest.err >&5
18081 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18082 (exit $ac_status); } && {
18083 test -z "$ac_c_werror_flag" ||
18084 test ! -s conftest.err
18085 } && test -s conftest.$ac_objext; then
18086 ac_header_compiler=yes
18088 echo "$as_me: failed program was
:" >&5
18089 sed 's/^/| /' conftest.$ac_ext >&5
18091 ac_header_compiler=no
18094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18095 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18096 echo "${ECHO_T}$ac_header_compiler" >&6; }
18098 # Is the header present?
18099 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18100 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18101 cat >conftest.$ac_ext <<_ACEOF
18104 cat confdefs.h >>conftest.$ac_ext
18105 cat >>conftest.$ac_ext <<_ACEOF
18106 /* end confdefs.h. */
18107 #include <$ac_header>
18109 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18110 case "(($ac_try" in
18111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18112 *) ac_try_echo=$ac_try;;
18114 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18115 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18117 grep -v '^ *+' conftest.er1 >conftest.err
18119 cat conftest.err >&5
18120 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18121 (exit $ac_status); } >/dev/null && {
18122 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18123 test ! -s conftest.err
18125 ac_header_preproc=yes
18127 echo "$as_me: failed program was
:" >&5
18128 sed 's/^/| /' conftest.$ac_ext >&5
18130 ac_header_preproc=no
18133 rm -f conftest.err conftest.$ac_ext
18134 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18135 echo "${ECHO_T}$ac_header_preproc" >&6; }
18137 # So? What about this header?
18138 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18140 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18141 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18142 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18143 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18144 ac_header_preproc=yes
18147 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18148 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18149 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18150 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18151 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18152 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18153 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18154 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18155 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18156 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18157 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18158 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18162 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18163 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18164 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18165 echo $ECHO_N "(cached
) $ECHO_C" >&6
18167 eval "$as_ac_Header=\
$ac_header_preproc"
18169 ac_res=`eval echo '${'$as_ac_Header'}'`
18170 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18171 echo "${ECHO_T}$ac_res" >&6; }
18174 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18175 cat >>confdefs.h <<_ACEOF
18176 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18186 for ac_header in nlist.h
18188 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18189 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18190 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18191 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18192 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18193 echo $ECHO_N "(cached
) $ECHO_C" >&6
18195 ac_res=`eval echo '${'$as_ac_Header'}'`
18196 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18197 echo "${ECHO_T}$ac_res" >&6; }
18199 # Is the header compilable?
18200 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18201 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18202 cat >conftest.$ac_ext <<_ACEOF
18205 cat confdefs.h >>conftest.$ac_ext
18206 cat >>conftest.$ac_ext <<_ACEOF
18207 /* end confdefs.h. */
18208 $ac_includes_default
18209 #include <$ac_header>
18211 rm -f conftest.$ac_objext
18212 if { (ac_try="$ac_compile"
18213 case "(($ac_try" in
18214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18215 *) ac_try_echo=$ac_try;;
18217 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18218 (eval "$ac_compile") 2>conftest.er1
18220 grep -v '^ *+' conftest.er1 >conftest.err
18222 cat conftest.err >&5
18223 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18224 (exit $ac_status); } && {
18225 test -z "$ac_c_werror_flag" ||
18226 test ! -s conftest.err
18227 } && test -s conftest.$ac_objext; then
18228 ac_header_compiler=yes
18230 echo "$as_me: failed program was
:" >&5
18231 sed 's/^/| /' conftest.$ac_ext >&5
18233 ac_header_compiler=no
18236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18237 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18238 echo "${ECHO_T}$ac_header_compiler" >&6; }
18240 # Is the header present?
18241 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18242 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18243 cat >conftest.$ac_ext <<_ACEOF
18246 cat confdefs.h >>conftest.$ac_ext
18247 cat >>conftest.$ac_ext <<_ACEOF
18248 /* end confdefs.h. */
18249 #include <$ac_header>
18251 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18252 case "(($ac_try" in
18253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18254 *) ac_try_echo=$ac_try;;
18256 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18257 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18259 grep -v '^ *+' conftest.er1 >conftest.err
18261 cat conftest.err >&5
18262 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18263 (exit $ac_status); } >/dev/null && {
18264 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18265 test ! -s conftest.err
18267 ac_header_preproc=yes
18269 echo "$as_me: failed program was
:" >&5
18270 sed 's/^/| /' conftest.$ac_ext >&5
18272 ac_header_preproc=no
18275 rm -f conftest.err conftest.$ac_ext
18276 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18277 echo "${ECHO_T}$ac_header_preproc" >&6; }
18279 # So? What about this header?
18280 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18282 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18283 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18284 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18285 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18286 ac_header_preproc=yes
18289 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18290 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18291 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18292 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18293 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18294 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18295 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18296 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18297 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18298 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18299 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18300 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18304 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18305 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18306 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18307 echo $ECHO_N "(cached
) $ECHO_C" >&6
18309 eval "$as_ac_Header=\
$ac_header_preproc"
18311 ac_res=`eval echo '${'$as_ac_Header'}'`
18312 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18313 echo "${ECHO_T}$ac_res" >&6; }
18316 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18317 cat >>confdefs.h <<_ACEOF
18318 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18320 { echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
18321 echo $ECHO_N "checking
for struct nlist.n_un.n_name...
$ECHO_C" >&6; }
18322 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18323 echo $ECHO_N "(cached
) $ECHO_C" >&6
18325 cat >conftest.$ac_ext <<_ACEOF
18328 cat confdefs.h >>conftest.$ac_ext
18329 cat >>conftest.$ac_ext <<_ACEOF
18330 /* end confdefs.h. */
18336 static struct nlist ac_aggr;
18337 if (ac_aggr.n_un.n_name)
18343 rm -f conftest.$ac_objext
18344 if { (ac_try="$ac_compile"
18345 case "(($ac_try" in
18346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18347 *) ac_try_echo=$ac_try;;
18349 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18350 (eval "$ac_compile") 2>conftest.er1
18352 grep -v '^ *+' conftest.er1 >conftest.err
18354 cat conftest.err >&5
18355 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18356 (exit $ac_status); } && {
18357 test -z "$ac_c_werror_flag" ||
18358 test ! -s conftest.err
18359 } && test -s conftest.$ac_objext; then
18360 ac_cv_member_struct_nlist_n_un_n_name=yes
18362 echo "$as_me: failed program was
:" >&5
18363 sed 's/^/| /' conftest.$ac_ext >&5
18365 cat >conftest.$ac_ext <<_ACEOF
18368 cat confdefs.h >>conftest.$ac_ext
18369 cat >>conftest.$ac_ext <<_ACEOF
18370 /* end confdefs.h. */
18376 static struct nlist ac_aggr;
18377 if (sizeof ac_aggr.n_un.n_name)
18383 rm -f conftest.$ac_objext
18384 if { (ac_try="$ac_compile"
18385 case "(($ac_try" in
18386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18387 *) ac_try_echo=$ac_try;;
18389 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18390 (eval "$ac_compile") 2>conftest.er1
18392 grep -v '^ *+' conftest.er1 >conftest.err
18394 cat conftest.err >&5
18395 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18396 (exit $ac_status); } && {
18397 test -z "$ac_c_werror_flag" ||
18398 test ! -s conftest.err
18399 } && test -s conftest.$ac_objext; then
18400 ac_cv_member_struct_nlist_n_un_n_name=yes
18402 echo "$as_me: failed program was
:" >&5
18403 sed 's/^/| /' conftest.$ac_ext >&5
18405 ac_cv_member_struct_nlist_n_un_n_name=no
18408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18413 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18414 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18415 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18417 cat >>confdefs.h <<_ACEOF
18418 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18422 cat >>confdefs.h <<\_ACEOF
18423 #define NLIST_NAME_UNION 1
18437 # Some definitions of getloadavg require that the program be installed setgid.
18438 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
18439 echo $ECHO_N "checking whether getloadavg requires setgid...
$ECHO_C" >&6; }
18440 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18441 echo $ECHO_N "(cached
) $ECHO_C" >&6
18443 cat >conftest.$ac_ext <<_ACEOF
18446 cat confdefs.h >>conftest.$ac_ext
18447 cat >>conftest.$ac_ext <<_ACEOF
18448 /* end confdefs.h. */
18449 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
18450 #ifdef LDAV_PRIVILEGED
18451 Yowza Am I SETGID yet
18454 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
18455 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
18456 ac_cv_func_getloadavg_setgid=yes
18458 ac_cv_func_getloadavg_setgid=no
18463 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
18464 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18465 if test $ac_cv_func_getloadavg_setgid = yes; then
18468 cat >>confdefs.h <<\_ACEOF
18469 #define GETLOADAVG_PRIVILEGED 1
18476 if test $ac_cv_func_getloadavg_setgid = yes; then
18477 { echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
18478 echo $ECHO_N "checking group of
/dev
/kmem...
$ECHO_C" >&6; }
18479 if test "${ac_cv_group_kmem+set}" = set; then
18480 echo $ECHO_N "(cached
) $ECHO_C" >&6
18482 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18483 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18484 # If we got an error (system does not support symlinks), try without -L.
18485 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18486 ac_cv_group_kmem=`echo $ac_ls_output \
18487 | sed -ne 's/[ ][ ]*/ /g;
18488 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18492 { echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
18493 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18494 KMEM_GROUP=$ac_cv_group_kmem
18496 if test "x
$ac_save_LIBS" = x; then
18497 GETLOADAVG_LIBS=$LIBS
18499 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s
!$ac_save_LIBS!!"`
18505 { echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
18506 echo $ECHO_N "checking
for _LARGEFILE_SOURCE value needed
for large files...
$ECHO_C" >&6; }
18507 if test "${ac_cv_sys_largefile_source+set}" = set; then
18508 echo $ECHO_N "(cached
) $ECHO_C" >&6
18511 cat >conftest.$ac_ext <<_ACEOF
18514 cat confdefs.h >>conftest.$ac_ext
18515 cat >>conftest.$ac_ext <<_ACEOF
18516 /* end confdefs.h. */
18521 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18526 rm -f conftest.$ac_objext conftest$ac_exeext
18527 if { (ac_try="$ac_link"
18528 case "(($ac_try" in
18529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18530 *) ac_try_echo=$ac_try;;
18532 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18533 (eval "$ac_link") 2>conftest.er1
18535 grep -v '^ *+' conftest.er1 >conftest.err
18537 cat conftest.err >&5
18538 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18539 (exit $ac_status); } && {
18540 test -z "$ac_c_werror_flag" ||
18541 test ! -s conftest.err
18542 } && test -s conftest$ac_exeext &&
18543 $as_test_x conftest$ac_exeext; then
18544 ac_cv_sys_largefile_source=no; break
18546 echo "$as_me: failed program was
:" >&5
18547 sed 's/^/| /' conftest.$ac_ext >&5
18552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18553 conftest$ac_exeext conftest.$ac_ext
18554 cat >conftest.$ac_ext <<_ACEOF
18557 cat confdefs.h >>conftest.$ac_ext
18558 cat >>conftest.$ac_ext <<_ACEOF
18559 /* end confdefs.h. */
18560 #define _LARGEFILE_SOURCE 1
18565 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18570 rm -f conftest.$ac_objext conftest$ac_exeext
18571 if { (ac_try="$ac_link"
18572 case "(($ac_try" in
18573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18574 *) ac_try_echo=$ac_try;;
18576 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18577 (eval "$ac_link") 2>conftest.er1
18579 grep -v '^ *+' conftest.er1 >conftest.err
18581 cat conftest.err >&5
18582 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18583 (exit $ac_status); } && {
18584 test -z "$ac_c_werror_flag" ||
18585 test ! -s conftest.err
18586 } && test -s conftest$ac_exeext &&
18587 $as_test_x conftest$ac_exeext; then
18588 ac_cv_sys_largefile_source=1; break
18590 echo "$as_me: failed program was
:" >&5
18591 sed 's/^/| /' conftest.$ac_ext >&5
18596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18597 conftest$ac_exeext conftest.$ac_ext
18598 ac_cv_sys_largefile_source=unknown
18602 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
18603 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18604 case $ac_cv_sys_largefile_source in #(
18607 cat >>confdefs.h <<_ACEOF
18608 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18614 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18615 # in glibc 2.1.3, but that breaks too many other things.
18616 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18617 if test $ac_cv_sys_largefile_source != unknown; then
18619 cat >>confdefs.h <<\_ACEOF
18620 #define HAVE_FSEEKO 1
18626 # Configure getopt.
18627 # getopt.m4 serial 10
18629 # The getopt module assume you want GNU getopt, with getopt_long etc,
18630 # rather than vanilla POSIX getopt. This means your your code should
18631 # always include <getopt.h> for the getopt prototypes.
18643 # Prerequisites of lib/getopt*.
18650 for ac_header in getopt.h
18652 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18653 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18654 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18655 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18656 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18657 echo $ECHO_N "(cached
) $ECHO_C" >&6
18659 ac_res=`eval echo '${'$as_ac_Header'}'`
18660 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18661 echo "${ECHO_T}$ac_res" >&6; }
18663 # Is the header compilable?
18664 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18665 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18666 cat >conftest.$ac_ext <<_ACEOF
18669 cat confdefs.h >>conftest.$ac_ext
18670 cat >>conftest.$ac_ext <<_ACEOF
18671 /* end confdefs.h. */
18672 $ac_includes_default
18673 #include <$ac_header>
18675 rm -f conftest.$ac_objext
18676 if { (ac_try="$ac_compile"
18677 case "(($ac_try" in
18678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18679 *) ac_try_echo=$ac_try;;
18681 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18682 (eval "$ac_compile") 2>conftest.er1
18684 grep -v '^ *+' conftest.er1 >conftest.err
18686 cat conftest.err >&5
18687 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18688 (exit $ac_status); } && {
18689 test -z "$ac_c_werror_flag" ||
18690 test ! -s conftest.err
18691 } && test -s conftest.$ac_objext; then
18692 ac_header_compiler=yes
18694 echo "$as_me: failed program was
:" >&5
18695 sed 's/^/| /' conftest.$ac_ext >&5
18697 ac_header_compiler=no
18700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18701 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18702 echo "${ECHO_T}$ac_header_compiler" >&6; }
18704 # Is the header present?
18705 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18706 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18707 cat >conftest.$ac_ext <<_ACEOF
18710 cat confdefs.h >>conftest.$ac_ext
18711 cat >>conftest.$ac_ext <<_ACEOF
18712 /* end confdefs.h. */
18713 #include <$ac_header>
18715 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18716 case "(($ac_try" in
18717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18718 *) ac_try_echo=$ac_try;;
18720 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18721 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18723 grep -v '^ *+' conftest.er1 >conftest.err
18725 cat conftest.err >&5
18726 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18727 (exit $ac_status); } >/dev/null && {
18728 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18729 test ! -s conftest.err
18731 ac_header_preproc=yes
18733 echo "$as_me: failed program was
:" >&5
18734 sed 's/^/| /' conftest.$ac_ext >&5
18736 ac_header_preproc=no
18739 rm -f conftest.err conftest.$ac_ext
18740 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18741 echo "${ECHO_T}$ac_header_preproc" >&6; }
18743 # So? What about this header?
18744 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18746 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18747 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18748 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18749 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18750 ac_header_preproc=yes
18753 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18754 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18755 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18756 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18757 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18758 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18759 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18760 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18761 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18762 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18763 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18764 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18768 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18769 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18770 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18771 echo $ECHO_N "(cached
) $ECHO_C" >&6
18773 eval "$as_ac_Header=\
$ac_header_preproc"
18775 ac_res=`eval echo '${'$as_ac_Header'}'`
18776 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18777 echo "${ECHO_T}$ac_res" >&6; }
18780 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18781 cat >>confdefs.h <<_ACEOF
18782 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18791 if test -z "$GETOPT_H"; then
18793 for ac_func in getopt_long_only
18795 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18796 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18797 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18798 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18799 echo $ECHO_N "(cached
) $ECHO_C" >&6
18801 cat >conftest.$ac_ext <<_ACEOF
18804 cat confdefs.h >>conftest.$ac_ext
18805 cat >>conftest.$ac_ext <<_ACEOF
18806 /* end confdefs.h. */
18807 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18808 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18809 #define $ac_func innocuous_$ac_func
18811 /* System header to define __stub macros and hopefully few prototypes,
18812 which can conflict with char $ac_func (); below.
18813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18814 <limits.h> exists even on freestanding compilers. */
18817 # include <limits.h>
18819 # include <assert.h>
18824 /* Override any GCC internal prototype to avoid an error.
18825 Use char because int might match the return type of a GCC
18826 builtin and then its argument prototype would still apply. */
18831 /* The GNU C library defines this for functions which it implements
18832 to always fail with ENOSYS. Some functions are actually named
18833 something starting with __ and the normal name is an alias. */
18834 #if defined __stub_$ac_func || defined __stub___$ac_func
18841 return $ac_func ();
18846 rm -f conftest.$ac_objext conftest$ac_exeext
18847 if { (ac_try="$ac_link"
18848 case "(($ac_try" in
18849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18850 *) ac_try_echo=$ac_try;;
18852 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18853 (eval "$ac_link") 2>conftest.er1
18855 grep -v '^ *+' conftest.er1 >conftest.err
18857 cat conftest.err >&5
18858 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18859 (exit $ac_status); } && {
18860 test -z "$ac_c_werror_flag" ||
18861 test ! -s conftest.err
18862 } && test -s conftest$ac_exeext &&
18863 $as_test_x conftest$ac_exeext; then
18864 eval "$as_ac_var=yes"
18866 echo "$as_me: failed program was
:" >&5
18867 sed 's/^/| /' conftest.$ac_ext >&5
18869 eval "$as_ac_var=no
"
18872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18873 conftest$ac_exeext conftest.$ac_ext
18875 ac_res=`eval echo '${'$as_ac_var'}'`
18876 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18877 echo "${ECHO_T}$ac_res" >&6; }
18878 if test `eval echo '${'$as_ac_var'}'` = yes; then
18879 cat >>confdefs.h <<_ACEOF
18880 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18890 if test -z "$GETOPT_H"; then
18891 { echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
18892 echo $ECHO_N "checking whether optreset is declared...
$ECHO_C" >&6; }
18893 if test "${ac_cv_have_decl_optreset+set}" = set; then
18894 echo $ECHO_N "(cached
) $ECHO_C" >&6
18896 cat >conftest.$ac_ext <<_ACEOF
18899 cat confdefs.h >>conftest.$ac_ext
18900 cat >>conftest.$ac_ext <<_ACEOF
18901 /* end confdefs.h. */
18902 #include <getopt.h>
18915 rm -f conftest.$ac_objext
18916 if { (ac_try="$ac_compile"
18917 case "(($ac_try" in
18918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18919 *) ac_try_echo=$ac_try;;
18921 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18922 (eval "$ac_compile") 2>conftest.er1
18924 grep -v '^ *+' conftest.er1 >conftest.err
18926 cat conftest.err >&5
18927 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18928 (exit $ac_status); } && {
18929 test -z "$ac_c_werror_flag" ||
18930 test ! -s conftest.err
18931 } && test -s conftest.$ac_objext; then
18932 ac_cv_have_decl_optreset=yes
18934 echo "$as_me: failed program was
:" >&5
18935 sed 's/^/| /' conftest.$ac_ext >&5
18937 ac_cv_have_decl_optreset=no
18940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18942 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
18943 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
18944 if test $ac_cv_have_decl_optreset = yes; then
18950 if test -z "$GETOPT_H"; then
18951 { echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
18952 echo $ECHO_N "checking
for working GNU getopt
function...
$ECHO_C" >&6; }
18953 if test "${gl_cv_func_gnu_getopt+set}" = set; then
18954 echo $ECHO_N "(cached
) $ECHO_C" >&6
18956 if test "$cross_compiling" = yes; then
18957 { echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
18958 echo $ECHO_N "checking whether getopt_clip is declared...
$ECHO_C" >&6; }
18959 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
18960 echo $ECHO_N "(cached
) $ECHO_C" >&6
18962 cat >conftest.$ac_ext <<_ACEOF
18965 cat confdefs.h >>conftest.$ac_ext
18966 cat >>conftest.$ac_ext <<_ACEOF
18967 /* end confdefs.h. */
18968 #include <getopt.h>
18973 #ifndef getopt_clip
18974 (void) getopt_clip;
18981 rm -f conftest.$ac_objext
18982 if { (ac_try="$ac_compile"
18983 case "(($ac_try" in
18984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18985 *) ac_try_echo=$ac_try;;
18987 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18988 (eval "$ac_compile") 2>conftest.er1
18990 grep -v '^ *+' conftest.er1 >conftest.err
18992 cat conftest.err >&5
18993 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18994 (exit $ac_status); } && {
18995 test -z "$ac_c_werror_flag" ||
18996 test ! -s conftest.err
18997 } && test -s conftest.$ac_objext; then
18998 ac_cv_have_decl_getopt_clip=yes
19000 echo "$as_me: failed program was
:" >&5
19001 sed 's/^/| /' conftest.$ac_ext >&5
19003 ac_cv_have_decl_getopt_clip=no
19006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19008 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
19009 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19010 if test $ac_cv_have_decl_getopt_clip = yes; then
19011 gl_cv_func_gnu_getopt=no
19013 gl_cv_func_gnu_getopt=yes
19017 cat >conftest.$ac_ext <<_ACEOF
19020 cat confdefs.h >>conftest.$ac_ext
19021 cat >>conftest.$ac_ext <<_ACEOF
19022 /* end confdefs.h. */
19023 #include <getopt.h>
19029 myargv[0] = "conftest
";
19032 return getopt (2, myargv, "+a
") != '?';
19038 rm -f conftest$ac_exeext
19039 if { (ac_try="$ac_link"
19040 case "(($ac_try" in
19041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19042 *) ac_try_echo=$ac_try;;
19044 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19045 (eval "$ac_link") 2>&5
19047 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19048 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19049 { (case "(($ac_try" in
19050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19051 *) ac_try_echo=$ac_try;;
19053 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19054 (eval "$ac_try") 2>&5
19056 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19057 (exit $ac_status); }; }; then
19058 gl_cv_func_gnu_getopt=yes
19060 echo "$as_me: program exited with status
$ac_status" >&5
19061 echo "$as_me: failed program was
:" >&5
19062 sed 's/^/| /' conftest.$ac_ext >&5
19064 ( exit $ac_status )
19065 gl_cv_func_gnu_getopt=no
19067 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19072 { echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
19073 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19074 if test "$gl_cv_func_gnu_getopt" = "no
"; then
19081 if test -n "$GETOPT_H"; then
19086 cat >>confdefs.h <<\_ACEOF
19087 #define __GETOPT_PREFIX rpl_
19093 GETOPTOBJS='getopt.o getopt1.o'
19100 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
19101 echo $ECHO_N "checking whether getpgrp requires zero arguments...
$ECHO_C" >&6; }
19102 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19103 echo $ECHO_N "(cached
) $ECHO_C" >&6
19105 # Use it with a single arg.
19106 cat >conftest.$ac_ext <<_ACEOF
19109 cat confdefs.h >>conftest.$ac_ext
19110 cat >>conftest.$ac_ext <<_ACEOF
19111 /* end confdefs.h. */
19112 $ac_includes_default
19121 rm -f conftest.$ac_objext
19122 if { (ac_try="$ac_compile"
19123 case "(($ac_try" in
19124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19125 *) ac_try_echo=$ac_try;;
19127 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19128 (eval "$ac_compile") 2>conftest.er1
19130 grep -v '^ *+' conftest.er1 >conftest.err
19132 cat conftest.err >&5
19133 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19134 (exit $ac_status); } && {
19135 test -z "$ac_c_werror_flag" ||
19136 test ! -s conftest.err
19137 } && test -s conftest.$ac_objext; then
19138 ac_cv_func_getpgrp_void=no
19140 echo "$as_me: failed program was
:" >&5
19141 sed 's/^/| /' conftest.$ac_ext >&5
19143 ac_cv_func_getpgrp_void=yes
19146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19149 { echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
19150 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19151 if test $ac_cv_func_getpgrp_void = yes; then
19153 cat >>confdefs.h <<\_ACEOF
19154 #define GETPGRP_VOID 1
19161 for ac_func in strftime
19163 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19164 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19165 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19166 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19167 echo $ECHO_N "(cached
) $ECHO_C" >&6
19169 cat >conftest.$ac_ext <<_ACEOF
19172 cat confdefs.h >>conftest.$ac_ext
19173 cat >>conftest.$ac_ext <<_ACEOF
19174 /* end confdefs.h. */
19175 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19176 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19177 #define $ac_func innocuous_$ac_func
19179 /* System header to define __stub macros and hopefully few prototypes,
19180 which can conflict with char $ac_func (); below.
19181 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19182 <limits.h> exists even on freestanding compilers. */
19185 # include <limits.h>
19187 # include <assert.h>
19192 /* Override any GCC internal prototype to avoid an error.
19193 Use char because int might match the return type of a GCC
19194 builtin and then its argument prototype would still apply. */
19199 /* The GNU C library defines this for functions which it implements
19200 to always fail with ENOSYS. Some functions are actually named
19201 something starting with __ and the normal name is an alias. */
19202 #if defined __stub_$ac_func || defined __stub___$ac_func
19209 return $ac_func ();
19214 rm -f conftest.$ac_objext conftest$ac_exeext
19215 if { (ac_try="$ac_link"
19216 case "(($ac_try" in
19217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19218 *) ac_try_echo=$ac_try;;
19220 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19221 (eval "$ac_link") 2>conftest.er1
19223 grep -v '^ *+' conftest.er1 >conftest.err
19225 cat conftest.err >&5
19226 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19227 (exit $ac_status); } && {
19228 test -z "$ac_c_werror_flag" ||
19229 test ! -s conftest.err
19230 } && test -s conftest$ac_exeext &&
19231 $as_test_x conftest$ac_exeext; then
19232 eval "$as_ac_var=yes"
19234 echo "$as_me: failed program was
:" >&5
19235 sed 's/^/| /' conftest.$ac_ext >&5
19237 eval "$as_ac_var=no
"
19240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19241 conftest$ac_exeext conftest.$ac_ext
19243 ac_res=`eval echo '${'$as_ac_var'}'`
19244 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19245 echo "${ECHO_T}$ac_res" >&6; }
19246 if test `eval echo '${'$as_ac_var'}'` = yes; then
19247 cat >>confdefs.h <<_ACEOF
19248 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19252 # strftime is in -lintl on SCO UNIX.
19253 { echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
19254 echo $ECHO_N "checking
for strftime
in -lintl...
$ECHO_C" >&6; }
19255 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19256 echo $ECHO_N "(cached
) $ECHO_C" >&6
19258 ac_check_lib_save_LIBS=$LIBS
19259 LIBS="-lintl $LIBS"
19260 cat >conftest.$ac_ext <<_ACEOF
19263 cat confdefs.h >>conftest.$ac_ext
19264 cat >>conftest.$ac_ext <<_ACEOF
19265 /* end confdefs.h. */
19267 /* Override any GCC internal prototype to avoid an error.
19268 Use char because int might match the return type of a GCC
19269 builtin and then its argument prototype would still apply. */
19277 return strftime ();
19282 rm -f conftest.$ac_objext conftest$ac_exeext
19283 if { (ac_try="$ac_link"
19284 case "(($ac_try" in
19285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19286 *) ac_try_echo=$ac_try;;
19288 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19289 (eval "$ac_link") 2>conftest.er1
19291 grep -v '^ *+' conftest.er1 >conftest.err
19293 cat conftest.err >&5
19294 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19295 (exit $ac_status); } && {
19296 test -z "$ac_c_werror_flag" ||
19297 test ! -s conftest.err
19298 } && test -s conftest$ac_exeext &&
19299 $as_test_x conftest$ac_exeext; then
19300 ac_cv_lib_intl_strftime=yes
19302 echo "$as_me: failed program was
:" >&5
19303 sed 's/^/| /' conftest.$ac_ext >&5
19305 ac_cv_lib_intl_strftime=no
19308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19309 conftest$ac_exeext conftest.$ac_ext
19310 LIBS=$ac_check_lib_save_LIBS
19312 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
19313 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19314 if test $ac_cv_lib_intl_strftime = yes; then
19315 cat >>confdefs.h <<\_ACEOF
19316 #define HAVE_STRFTIME 1
19319 LIBS="-lintl $LIBS"
19328 for ac_func in grantpt
19330 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19331 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19332 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19333 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19334 echo $ECHO_N "(cached
) $ECHO_C" >&6
19336 cat >conftest.$ac_ext <<_ACEOF
19339 cat confdefs.h >>conftest.$ac_ext
19340 cat >>conftest.$ac_ext <<_ACEOF
19341 /* end confdefs.h. */
19342 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19343 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19344 #define $ac_func innocuous_$ac_func
19346 /* System header to define __stub macros and hopefully few prototypes,
19347 which can conflict with char $ac_func (); below.
19348 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19349 <limits.h> exists even on freestanding compilers. */
19352 # include <limits.h>
19354 # include <assert.h>
19359 /* Override any GCC internal prototype to avoid an error.
19360 Use char because int might match the return type of a GCC
19361 builtin and then its argument prototype would still apply. */
19366 /* The GNU C library defines this for functions which it implements
19367 to always fail with ENOSYS. Some functions are actually named
19368 something starting with __ and the normal name is an alias. */
19369 #if defined __stub_$ac_func || defined __stub___$ac_func
19376 return $ac_func ();
19381 rm -f conftest.$ac_objext conftest$ac_exeext
19382 if { (ac_try="$ac_link"
19383 case "(($ac_try" in
19384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19385 *) ac_try_echo=$ac_try;;
19387 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19388 (eval "$ac_link") 2>conftest.er1
19390 grep -v '^ *+' conftest.er1 >conftest.err
19392 cat conftest.err >&5
19393 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19394 (exit $ac_status); } && {
19395 test -z "$ac_c_werror_flag" ||
19396 test ! -s conftest.err
19397 } && test -s conftest$ac_exeext &&
19398 $as_test_x conftest$ac_exeext; then
19399 eval "$as_ac_var=yes"
19401 echo "$as_me: failed program was
:" >&5
19402 sed 's/^/| /' conftest.$ac_ext >&5
19404 eval "$as_ac_var=no
"
19407 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19408 conftest$ac_exeext conftest.$ac_ext
19410 ac_res=`eval echo '${'$as_ac_var'}'`
19411 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19412 echo "${ECHO_T}$ac_res" >&6; }
19413 if test `eval echo '${'$as_ac_var'}'` = yes; then
19414 cat >>confdefs.h <<_ACEOF
19415 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19422 # PTY-related GNU extensions.
19424 for ac_func in getpt
19426 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19427 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19428 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19429 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19430 echo $ECHO_N "(cached
) $ECHO_C" >&6
19432 cat >conftest.$ac_ext <<_ACEOF
19435 cat confdefs.h >>conftest.$ac_ext
19436 cat >>conftest.$ac_ext <<_ACEOF
19437 /* end confdefs.h. */
19438 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19439 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19440 #define $ac_func innocuous_$ac_func
19442 /* System header to define __stub macros and hopefully few prototypes,
19443 which can conflict with char $ac_func (); below.
19444 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19445 <limits.h> exists even on freestanding compilers. */
19448 # include <limits.h>
19450 # include <assert.h>
19455 /* Override any GCC internal prototype to avoid an error.
19456 Use char because int might match the return type of a GCC
19457 builtin and then its argument prototype would still apply. */
19462 /* The GNU C library defines this for functions which it implements
19463 to always fail with ENOSYS. Some functions are actually named
19464 something starting with __ and the normal name is an alias. */
19465 #if defined __stub_$ac_func || defined __stub___$ac_func
19472 return $ac_func ();
19477 rm -f conftest.$ac_objext conftest$ac_exeext
19478 if { (ac_try="$ac_link"
19479 case "(($ac_try" in
19480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19481 *) ac_try_echo=$ac_try;;
19483 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19484 (eval "$ac_link") 2>conftest.er1
19486 grep -v '^ *+' conftest.er1 >conftest.err
19488 cat conftest.err >&5
19489 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19490 (exit $ac_status); } && {
19491 test -z "$ac_c_werror_flag" ||
19492 test ! -s conftest.err
19493 } && test -s conftest$ac_exeext &&
19494 $as_test_x conftest$ac_exeext; then
19495 eval "$as_ac_var=yes"
19497 echo "$as_me: failed program was
:" >&5
19498 sed 's/^/| /' conftest.$ac_ext >&5
19500 eval "$as_ac_var=no
"
19503 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19504 conftest$ac_exeext conftest.$ac_ext
19506 ac_res=`eval echo '${'$as_ac_var'}'`
19507 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19508 echo "${ECHO_T}$ac_res" >&6; }
19509 if test `eval echo '${'$as_ac_var'}'` = yes; then
19510 cat >>confdefs.h <<_ACEOF
19511 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19518 # Check this now, so that we will NOT find the above functions in ncurses.
19519 # That is because we have not set up to link ncurses in lib-src.
19520 # It's better to believe a function is not available
19521 # than to expect to find it in ncurses.
19523 { echo "$as_me:$LINENO: checking
for tparm
in -lncurses" >&5
19524 echo $ECHO_N "checking
for tparm
in -lncurses...
$ECHO_C" >&6; }
19525 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19526 echo $ECHO_N "(cached
) $ECHO_C" >&6
19528 ac_check_lib_save_LIBS=$LIBS
19529 LIBS="-lncurses $LIBS"
19530 cat >conftest.$ac_ext <<_ACEOF
19533 cat confdefs.h >>conftest.$ac_ext
19534 cat >>conftest.$ac_ext <<_ACEOF
19535 /* end confdefs.h. */
19537 /* Override any GCC internal prototype to avoid an error.
19538 Use char because int might match the return type of a GCC
19539 builtin and then its argument prototype would still apply. */
19552 rm -f conftest.$ac_objext conftest$ac_exeext
19553 if { (ac_try="$ac_link"
19554 case "(($ac_try" in
19555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19556 *) ac_try_echo=$ac_try;;
19558 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19559 (eval "$ac_link") 2>conftest.er1
19561 grep -v '^ *+' conftest.er1 >conftest.err
19563 cat conftest.err >&5
19564 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19565 (exit $ac_status); } && {
19566 test -z "$ac_c_werror_flag" ||
19567 test ! -s conftest.err
19568 } && test -s conftest$ac_exeext &&
19569 $as_test_x conftest$ac_exeext; then
19570 ac_cv_lib_ncurses_tparm=yes
19572 echo "$as_me: failed program was
:" >&5
19573 sed 's/^/| /' conftest.$ac_ext >&5
19575 ac_cv_lib_ncurses_tparm=no
19578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19579 conftest$ac_exeext conftest.$ac_ext
19580 LIBS=$ac_check_lib_save_LIBS
19582 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ncurses_tparm" >&5
19583 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19584 if test $ac_cv_lib_ncurses_tparm = yes; then
19585 cat >>confdefs.h <<_ACEOF
19586 #define HAVE_LIBNCURSES 1
19589 LIBS="-lncurses $LIBS"
19594 # Do we need the Hesiod library to provide the support routines?
19595 if test "$with_hesiod" = yes ; then
19596 # Don't set $LIBS here -- see comments above.
19598 { echo "$as_me:$LINENO: checking
for res_send
" >&5
19599 echo $ECHO_N "checking
for res_send...
$ECHO_C" >&6; }
19600 if test "${ac_cv_func_res_send+set}" = set; then
19601 echo $ECHO_N "(cached
) $ECHO_C" >&6
19603 cat >conftest.$ac_ext <<_ACEOF
19606 cat confdefs.h >>conftest.$ac_ext
19607 cat >>conftest.$ac_ext <<_ACEOF
19608 /* end confdefs.h. */
19609 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19610 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19611 #define res_send innocuous_res_send
19613 /* System header to define __stub macros and hopefully few prototypes,
19614 which can conflict with char res_send (); below.
19615 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19616 <limits.h> exists even on freestanding compilers. */
19619 # include <limits.h>
19621 # include <assert.h>
19626 /* Override any GCC internal prototype to avoid an error.
19627 Use char because int might match the return type of a GCC
19628 builtin and then its argument prototype would still apply. */
19633 /* The GNU C library defines this for functions which it implements
19634 to always fail with ENOSYS. Some functions are actually named
19635 something starting with __ and the normal name is an alias. */
19636 #if defined __stub_res_send || defined __stub___res_send
19643 return res_send ();
19648 rm -f conftest.$ac_objext conftest$ac_exeext
19649 if { (ac_try="$ac_link"
19650 case "(($ac_try" in
19651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19652 *) ac_try_echo=$ac_try;;
19654 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19655 (eval "$ac_link") 2>conftest.er1
19657 grep -v '^ *+' conftest.er1 >conftest.err
19659 cat conftest.err >&5
19660 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19661 (exit $ac_status); } && {
19662 test -z "$ac_c_werror_flag" ||
19663 test ! -s conftest.err
19664 } && test -s conftest$ac_exeext &&
19665 $as_test_x conftest$ac_exeext; then
19666 ac_cv_func_res_send=yes
19668 echo "$as_me: failed program was
:" >&5
19669 sed 's/^/| /' conftest.$ac_ext >&5
19671 ac_cv_func_res_send=no
19674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19675 conftest$ac_exeext conftest.$ac_ext
19677 { echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
19678 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19679 if test $ac_cv_func_res_send = yes; then
19682 { echo "$as_me:$LINENO: checking
for __res_send
" >&5
19683 echo $ECHO_N "checking
for __res_send...
$ECHO_C" >&6; }
19684 if test "${ac_cv_func___res_send+set}" = set; then
19685 echo $ECHO_N "(cached
) $ECHO_C" >&6
19687 cat >conftest.$ac_ext <<_ACEOF
19690 cat confdefs.h >>conftest.$ac_ext
19691 cat >>conftest.$ac_ext <<_ACEOF
19692 /* end confdefs.h. */
19693 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19694 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19695 #define __res_send innocuous___res_send
19697 /* System header to define __stub macros and hopefully few prototypes,
19698 which can conflict with char __res_send (); below.
19699 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19700 <limits.h> exists even on freestanding compilers. */
19703 # include <limits.h>
19705 # include <assert.h>
19710 /* Override any GCC internal prototype to avoid an error.
19711 Use char because int might match the return type of a GCC
19712 builtin and then its argument prototype would still apply. */
19716 char __res_send ();
19717 /* The GNU C library defines this for functions which it implements
19718 to always fail with ENOSYS. Some functions are actually named
19719 something starting with __ and the normal name is an alias. */
19720 #if defined __stub___res_send || defined __stub_____res_send
19727 return __res_send ();
19732 rm -f conftest.$ac_objext conftest$ac_exeext
19733 if { (ac_try="$ac_link"
19734 case "(($ac_try" in
19735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19736 *) ac_try_echo=$ac_try;;
19738 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19739 (eval "$ac_link") 2>conftest.er1
19741 grep -v '^ *+' conftest.er1 >conftest.err
19743 cat conftest.err >&5
19744 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19745 (exit $ac_status); } && {
19746 test -z "$ac_c_werror_flag" ||
19747 test ! -s conftest.err
19748 } && test -s conftest$ac_exeext &&
19749 $as_test_x conftest$ac_exeext; then
19750 ac_cv_func___res_send=yes
19752 echo "$as_me: failed program was
:" >&5
19753 sed 's/^/| /' conftest.$ac_ext >&5
19755 ac_cv_func___res_send=no
19758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19759 conftest$ac_exeext conftest.$ac_ext
19761 { echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
19762 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19763 if test $ac_cv_func___res_send = yes; then
19766 { echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
19767 echo $ECHO_N "checking
for res_send
in -lresolv...
$ECHO_C" >&6; }
19768 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19769 echo $ECHO_N "(cached
) $ECHO_C" >&6
19771 ac_check_lib_save_LIBS=$LIBS
19772 LIBS="-lresolv $LIBS"
19773 cat >conftest.$ac_ext <<_ACEOF
19776 cat confdefs.h >>conftest.$ac_ext
19777 cat >>conftest.$ac_ext <<_ACEOF
19778 /* end confdefs.h. */
19780 /* Override any GCC internal prototype to avoid an error.
19781 Use char because int might match the return type of a GCC
19782 builtin and then its argument prototype would still apply. */
19790 return res_send ();
19795 rm -f conftest.$ac_objext conftest$ac_exeext
19796 if { (ac_try="$ac_link"
19797 case "(($ac_try" in
19798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19799 *) ac_try_echo=$ac_try;;
19801 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19802 (eval "$ac_link") 2>conftest.er1
19804 grep -v '^ *+' conftest.er1 >conftest.err
19806 cat conftest.err >&5
19807 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19808 (exit $ac_status); } && {
19809 test -z "$ac_c_werror_flag" ||
19810 test ! -s conftest.err
19811 } && test -s conftest$ac_exeext &&
19812 $as_test_x conftest$ac_exeext; then
19813 ac_cv_lib_resolv_res_send=yes
19815 echo "$as_me: failed program was
:" >&5
19816 sed 's/^/| /' conftest.$ac_ext >&5
19818 ac_cv_lib_resolv_res_send=no
19821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19822 conftest$ac_exeext conftest.$ac_ext
19823 LIBS=$ac_check_lib_save_LIBS
19825 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
19826 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
19827 if test $ac_cv_lib_resolv_res_send = yes; then
19830 { echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
19831 echo $ECHO_N "checking
for __res_send
in -lresolv...
$ECHO_C" >&6; }
19832 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
19833 echo $ECHO_N "(cached
) $ECHO_C" >&6
19835 ac_check_lib_save_LIBS=$LIBS
19836 LIBS="-lresolv $LIBS"
19837 cat >conftest.$ac_ext <<_ACEOF
19840 cat confdefs.h >>conftest.$ac_ext
19841 cat >>conftest.$ac_ext <<_ACEOF
19842 /* end confdefs.h. */
19844 /* Override any GCC internal prototype to avoid an error.
19845 Use char because int might match the return type of a GCC
19846 builtin and then its argument prototype would still apply. */
19850 char __res_send ();
19854 return __res_send ();
19859 rm -f conftest.$ac_objext conftest$ac_exeext
19860 if { (ac_try="$ac_link"
19861 case "(($ac_try" in
19862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19863 *) ac_try_echo=$ac_try;;
19865 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19866 (eval "$ac_link") 2>conftest.er1
19868 grep -v '^ *+' conftest.er1 >conftest.err
19870 cat conftest.err >&5
19871 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19872 (exit $ac_status); } && {
19873 test -z "$ac_c_werror_flag" ||
19874 test ! -s conftest.err
19875 } && test -s conftest$ac_exeext &&
19876 $as_test_x conftest$ac_exeext; then
19877 ac_cv_lib_resolv___res_send=yes
19879 echo "$as_me: failed program was
:" >&5
19880 sed 's/^/| /' conftest.$ac_ext >&5
19882 ac_cv_lib_resolv___res_send=no
19885 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19886 conftest$ac_exeext conftest.$ac_ext
19887 LIBS=$ac_check_lib_save_LIBS
19889 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
19890 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
19891 if test $ac_cv_lib_resolv___res_send = yes; then
19901 if test "$resolv" = yes ; then
19904 cat >>confdefs.h <<\_ACEOF
19905 #define HAVE_LIBRESOLV 1
19911 { echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
19912 echo $ECHO_N "checking
for hes_getmailhost...
$ECHO_C" >&6; }
19913 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
19914 echo $ECHO_N "(cached
) $ECHO_C" >&6
19916 cat >conftest.$ac_ext <<_ACEOF
19919 cat confdefs.h >>conftest.$ac_ext
19920 cat >>conftest.$ac_ext <<_ACEOF
19921 /* end confdefs.h. */
19922 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
19923 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19924 #define hes_getmailhost innocuous_hes_getmailhost
19926 /* System header to define __stub macros and hopefully few prototypes,
19927 which can conflict with char hes_getmailhost (); below.
19928 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19929 <limits.h> exists even on freestanding compilers. */
19932 # include <limits.h>
19934 # include <assert.h>
19937 #undef hes_getmailhost
19939 /* Override any GCC internal prototype to avoid an error.
19940 Use char because int might match the return type of a GCC
19941 builtin and then its argument prototype would still apply. */
19945 char hes_getmailhost ();
19946 /* The GNU C library defines this for functions which it implements
19947 to always fail with ENOSYS. Some functions are actually named
19948 something starting with __ and the normal name is an alias. */
19949 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
19956 return hes_getmailhost ();
19961 rm -f conftest.$ac_objext conftest$ac_exeext
19962 if { (ac_try="$ac_link"
19963 case "(($ac_try" in
19964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19965 *) ac_try_echo=$ac_try;;
19967 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19968 (eval "$ac_link") 2>conftest.er1
19970 grep -v '^ *+' conftest.er1 >conftest.err
19972 cat conftest.err >&5
19973 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19974 (exit $ac_status); } && {
19975 test -z "$ac_c_werror_flag" ||
19976 test ! -s conftest.err
19977 } && test -s conftest$ac_exeext &&
19978 $as_test_x conftest$ac_exeext; then
19979 ac_cv_func_hes_getmailhost=yes
19981 echo "$as_me: failed program was
:" >&5
19982 sed 's/^/| /' conftest.$ac_ext >&5
19984 ac_cv_func_hes_getmailhost=no
19987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19988 conftest$ac_exeext conftest.$ac_ext
19990 { echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
19991 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
19992 if test $ac_cv_func_hes_getmailhost = yes; then
19995 { echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
19996 echo $ECHO_N "checking
for hes_getmailhost
in -lhesiod...
$ECHO_C" >&6; }
19997 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
19998 echo $ECHO_N "(cached
) $ECHO_C" >&6
20000 ac_check_lib_save_LIBS=$LIBS
20001 LIBS="-lhesiod $RESOLVLIB $LIBS"
20002 cat >conftest.$ac_ext <<_ACEOF
20005 cat confdefs.h >>conftest.$ac_ext
20006 cat >>conftest.$ac_ext <<_ACEOF
20007 /* end confdefs.h. */
20009 /* Override any GCC internal prototype to avoid an error.
20010 Use char because int might match the return type of a GCC
20011 builtin and then its argument prototype would still apply. */
20015 char hes_getmailhost ();
20019 return hes_getmailhost ();
20024 rm -f conftest.$ac_objext conftest$ac_exeext
20025 if { (ac_try="$ac_link"
20026 case "(($ac_try" in
20027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20028 *) ac_try_echo=$ac_try;;
20030 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20031 (eval "$ac_link") 2>conftest.er1
20033 grep -v '^ *+' conftest.er1 >conftest.err
20035 cat conftest.err >&5
20036 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20037 (exit $ac_status); } && {
20038 test -z "$ac_c_werror_flag" ||
20039 test ! -s conftest.err
20040 } && test -s conftest$ac_exeext &&
20041 $as_test_x conftest$ac_exeext; then
20042 ac_cv_lib_hesiod_hes_getmailhost=yes
20044 echo "$as_me: failed program was
:" >&5
20045 sed 's/^/| /' conftest.$ac_ext >&5
20047 ac_cv_lib_hesiod_hes_getmailhost=no
20050 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20051 conftest$ac_exeext conftest.$ac_ext
20052 LIBS=$ac_check_lib_save_LIBS
20054 { echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20055 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20056 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20058 cat >>confdefs.h <<\_ACEOF
20059 #define HAVE_LIBHESIOD 1
20070 # These tell us which Kerberos-related libraries to use.
20071 if test "${with_kerberos+set}" = set; then
20073 { echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
20074 echo $ECHO_N "checking
for com_err
in -lcom_err...
$ECHO_C" >&6; }
20075 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20076 echo $ECHO_N "(cached
) $ECHO_C" >&6
20078 ac_check_lib_save_LIBS=$LIBS
20079 LIBS="-lcom_err $LIBS"
20080 cat >conftest.$ac_ext <<_ACEOF
20083 cat confdefs.h >>conftest.$ac_ext
20084 cat >>conftest.$ac_ext <<_ACEOF
20085 /* end confdefs.h. */
20087 /* Override any GCC internal prototype to avoid an error.
20088 Use char because int might match the return type of a GCC
20089 builtin and then its argument prototype would still apply. */
20102 rm -f conftest.$ac_objext conftest$ac_exeext
20103 if { (ac_try="$ac_link"
20104 case "(($ac_try" in
20105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20106 *) ac_try_echo=$ac_try;;
20108 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20109 (eval "$ac_link") 2>conftest.er1
20111 grep -v '^ *+' conftest.er1 >conftest.err
20113 cat conftest.err >&5
20114 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20115 (exit $ac_status); } && {
20116 test -z "$ac_c_werror_flag" ||
20117 test ! -s conftest.err
20118 } && test -s conftest$ac_exeext &&
20119 $as_test_x conftest$ac_exeext; then
20120 ac_cv_lib_com_err_com_err=yes
20122 echo "$as_me: failed program was
:" >&5
20123 sed 's/^/| /' conftest.$ac_ext >&5
20125 ac_cv_lib_com_err_com_err=no
20128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20129 conftest$ac_exeext conftest.$ac_ext
20130 LIBS=$ac_check_lib_save_LIBS
20132 { echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
20133 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20134 if test $ac_cv_lib_com_err_com_err = yes; then
20135 cat >>confdefs.h <<_ACEOF
20136 #define HAVE_LIBCOM_ERR 1
20139 LIBS="-lcom_err $LIBS"
20144 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
20145 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lk5crypto...
$ECHO_C" >&6; }
20146 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20147 echo $ECHO_N "(cached
) $ECHO_C" >&6
20149 ac_check_lib_save_LIBS=$LIBS
20150 LIBS="-lk5crypto $LIBS"
20151 cat >conftest.$ac_ext <<_ACEOF
20154 cat confdefs.h >>conftest.$ac_ext
20155 cat >>conftest.$ac_ext <<_ACEOF
20156 /* end confdefs.h. */
20158 /* Override any GCC internal prototype to avoid an error.
20159 Use char because int might match the return type of a GCC
20160 builtin and then its argument prototype would still apply. */
20164 char mit_des_cbc_encrypt ();
20168 return mit_des_cbc_encrypt ();
20173 rm -f conftest.$ac_objext conftest$ac_exeext
20174 if { (ac_try="$ac_link"
20175 case "(($ac_try" in
20176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20177 *) ac_try_echo=$ac_try;;
20179 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20180 (eval "$ac_link") 2>conftest.er1
20182 grep -v '^ *+' conftest.er1 >conftest.err
20184 cat conftest.err >&5
20185 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20186 (exit $ac_status); } && {
20187 test -z "$ac_c_werror_flag" ||
20188 test ! -s conftest.err
20189 } && test -s conftest$ac_exeext &&
20190 $as_test_x conftest$ac_exeext; then
20191 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20193 echo "$as_me: failed program was
:" >&5
20194 sed 's/^/| /' conftest.$ac_ext >&5
20196 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20200 conftest$ac_exeext conftest.$ac_ext
20201 LIBS=$ac_check_lib_save_LIBS
20203 { echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20204 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20205 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20206 cat >>confdefs.h <<_ACEOF
20207 #define HAVE_LIBK5CRYPTO 1
20210 LIBS="-lk5crypto $LIBS"
20215 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
20216 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lcrypto...
$ECHO_C" >&6; }
20217 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20218 echo $ECHO_N "(cached
) $ECHO_C" >&6
20220 ac_check_lib_save_LIBS=$LIBS
20221 LIBS="-lcrypto $LIBS"
20222 cat >conftest.$ac_ext <<_ACEOF
20225 cat confdefs.h >>conftest.$ac_ext
20226 cat >>conftest.$ac_ext <<_ACEOF
20227 /* end confdefs.h. */
20229 /* Override any GCC internal prototype to avoid an error.
20230 Use char because int might match the return type of a GCC
20231 builtin and then its argument prototype would still apply. */
20235 char mit_des_cbc_encrypt ();
20239 return mit_des_cbc_encrypt ();
20244 rm -f conftest.$ac_objext conftest$ac_exeext
20245 if { (ac_try="$ac_link"
20246 case "(($ac_try" in
20247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20248 *) ac_try_echo=$ac_try;;
20250 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20251 (eval "$ac_link") 2>conftest.er1
20253 grep -v '^ *+' conftest.er1 >conftest.err
20255 cat conftest.err >&5
20256 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20257 (exit $ac_status); } && {
20258 test -z "$ac_c_werror_flag" ||
20259 test ! -s conftest.err
20260 } && test -s conftest$ac_exeext &&
20261 $as_test_x conftest$ac_exeext; then
20262 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20264 echo "$as_me: failed program was
:" >&5
20265 sed 's/^/| /' conftest.$ac_ext >&5
20267 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20271 conftest$ac_exeext conftest.$ac_ext
20272 LIBS=$ac_check_lib_save_LIBS
20274 { echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20275 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20276 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20277 cat >>confdefs.h <<_ACEOF
20278 #define HAVE_LIBCRYPTO 1
20281 LIBS="-lcrypto $LIBS"
20286 { echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
20287 echo $ECHO_N "checking
for krb5_init_context
in -lkrb5...
$ECHO_C" >&6; }
20288 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20289 echo $ECHO_N "(cached
) $ECHO_C" >&6
20291 ac_check_lib_save_LIBS=$LIBS
20292 LIBS="-lkrb5 $LIBS"
20293 cat >conftest.$ac_ext <<_ACEOF
20296 cat confdefs.h >>conftest.$ac_ext
20297 cat >>conftest.$ac_ext <<_ACEOF
20298 /* end confdefs.h. */
20300 /* Override any GCC internal prototype to avoid an error.
20301 Use char because int might match the return type of a GCC
20302 builtin and then its argument prototype would still apply. */
20306 char krb5_init_context ();
20310 return krb5_init_context ();
20315 rm -f conftest.$ac_objext conftest$ac_exeext
20316 if { (ac_try="$ac_link"
20317 case "(($ac_try" in
20318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20319 *) ac_try_echo=$ac_try;;
20321 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20322 (eval "$ac_link") 2>conftest.er1
20324 grep -v '^ *+' conftest.er1 >conftest.err
20326 cat conftest.err >&5
20327 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20328 (exit $ac_status); } && {
20329 test -z "$ac_c_werror_flag" ||
20330 test ! -s conftest.err
20331 } && test -s conftest$ac_exeext &&
20332 $as_test_x conftest$ac_exeext; then
20333 ac_cv_lib_krb5_krb5_init_context=yes
20335 echo "$as_me: failed program was
:" >&5
20336 sed 's/^/| /' conftest.$ac_ext >&5
20338 ac_cv_lib_krb5_krb5_init_context=no
20341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20342 conftest$ac_exeext conftest.$ac_ext
20343 LIBS=$ac_check_lib_save_LIBS
20345 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
20346 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20347 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20348 cat >>confdefs.h <<_ACEOF
20349 #define HAVE_LIBKRB5 1
20352 LIBS="-lkrb5 $LIBS"
20356 if test "${with_kerberos5+set}" != set; then
20358 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
20359 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes425...
$ECHO_C" >&6; }
20360 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20361 echo $ECHO_N "(cached
) $ECHO_C" >&6
20363 ac_check_lib_save_LIBS=$LIBS
20364 LIBS="-ldes425 $LIBS"
20365 cat >conftest.$ac_ext <<_ACEOF
20368 cat confdefs.h >>conftest.$ac_ext
20369 cat >>conftest.$ac_ext <<_ACEOF
20370 /* end confdefs.h. */
20372 /* Override any GCC internal prototype to avoid an error.
20373 Use char because int might match the return type of a GCC
20374 builtin and then its argument prototype would still apply. */
20378 char des_cbc_encrypt ();
20382 return des_cbc_encrypt ();
20387 rm -f conftest.$ac_objext conftest$ac_exeext
20388 if { (ac_try="$ac_link"
20389 case "(($ac_try" in
20390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20391 *) ac_try_echo=$ac_try;;
20393 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20394 (eval "$ac_link") 2>conftest.er1
20396 grep -v '^ *+' conftest.er1 >conftest.err
20398 cat conftest.err >&5
20399 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20400 (exit $ac_status); } && {
20401 test -z "$ac_c_werror_flag" ||
20402 test ! -s conftest.err
20403 } && test -s conftest$ac_exeext &&
20404 $as_test_x conftest$ac_exeext; then
20405 ac_cv_lib_des425_des_cbc_encrypt=yes
20407 echo "$as_me: failed program was
:" >&5
20408 sed 's/^/| /' conftest.$ac_ext >&5
20410 ac_cv_lib_des425_des_cbc_encrypt=no
20413 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20414 conftest$ac_exeext conftest.$ac_ext
20415 LIBS=$ac_check_lib_save_LIBS
20417 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20418 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20419 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20420 cat >>confdefs.h <<_ACEOF
20421 #define HAVE_LIBDES425 1
20424 LIBS="-ldes425 $LIBS"
20428 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
20429 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes...
$ECHO_C" >&6; }
20430 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20431 echo $ECHO_N "(cached
) $ECHO_C" >&6
20433 ac_check_lib_save_LIBS=$LIBS
20435 cat >conftest.$ac_ext <<_ACEOF
20438 cat confdefs.h >>conftest.$ac_ext
20439 cat >>conftest.$ac_ext <<_ACEOF
20440 /* end confdefs.h. */
20442 /* Override any GCC internal prototype to avoid an error.
20443 Use char because int might match the return type of a GCC
20444 builtin and then its argument prototype would still apply. */
20448 char des_cbc_encrypt ();
20452 return des_cbc_encrypt ();
20457 rm -f conftest.$ac_objext conftest$ac_exeext
20458 if { (ac_try="$ac_link"
20459 case "(($ac_try" in
20460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20461 *) ac_try_echo=$ac_try;;
20463 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20464 (eval "$ac_link") 2>conftest.er1
20466 grep -v '^ *+' conftest.er1 >conftest.err
20468 cat conftest.err >&5
20469 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20470 (exit $ac_status); } && {
20471 test -z "$ac_c_werror_flag" ||
20472 test ! -s conftest.err
20473 } && test -s conftest$ac_exeext &&
20474 $as_test_x conftest$ac_exeext; then
20475 ac_cv_lib_des_des_cbc_encrypt=yes
20477 echo "$as_me: failed program was
:" >&5
20478 sed 's/^/| /' conftest.$ac_ext >&5
20480 ac_cv_lib_des_des_cbc_encrypt=no
20483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20484 conftest$ac_exeext conftest.$ac_ext
20485 LIBS=$ac_check_lib_save_LIBS
20487 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
20488 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20489 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20490 cat >>confdefs.h <<_ACEOF
20491 #define HAVE_LIBDES 1
20501 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
20502 echo $ECHO_N "checking
for krb_get_cred
in -lkrb4...
$ECHO_C" >&6; }
20503 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20504 echo $ECHO_N "(cached
) $ECHO_C" >&6
20506 ac_check_lib_save_LIBS=$LIBS
20507 LIBS="-lkrb4 $LIBS"
20508 cat >conftest.$ac_ext <<_ACEOF
20511 cat confdefs.h >>conftest.$ac_ext
20512 cat >>conftest.$ac_ext <<_ACEOF
20513 /* end confdefs.h. */
20515 /* Override any GCC internal prototype to avoid an error.
20516 Use char because int might match the return type of a GCC
20517 builtin and then its argument prototype would still apply. */
20521 char krb_get_cred ();
20525 return krb_get_cred ();
20530 rm -f conftest.$ac_objext conftest$ac_exeext
20531 if { (ac_try="$ac_link"
20532 case "(($ac_try" in
20533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20534 *) ac_try_echo=$ac_try;;
20536 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20537 (eval "$ac_link") 2>conftest.er1
20539 grep -v '^ *+' conftest.er1 >conftest.err
20541 cat conftest.err >&5
20542 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20543 (exit $ac_status); } && {
20544 test -z "$ac_c_werror_flag" ||
20545 test ! -s conftest.err
20546 } && test -s conftest$ac_exeext &&
20547 $as_test_x conftest$ac_exeext; then
20548 ac_cv_lib_krb4_krb_get_cred=yes
20550 echo "$as_me: failed program was
:" >&5
20551 sed 's/^/| /' conftest.$ac_ext >&5
20553 ac_cv_lib_krb4_krb_get_cred=no
20556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20557 conftest$ac_exeext conftest.$ac_ext
20558 LIBS=$ac_check_lib_save_LIBS
20560 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
20561 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20562 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20563 cat >>confdefs.h <<_ACEOF
20564 #define HAVE_LIBKRB4 1
20567 LIBS="-lkrb4 $LIBS"
20571 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
20572 echo $ECHO_N "checking
for krb_get_cred
in -lkrb...
$ECHO_C" >&6; }
20573 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20574 echo $ECHO_N "(cached
) $ECHO_C" >&6
20576 ac_check_lib_save_LIBS=$LIBS
20578 cat >conftest.$ac_ext <<_ACEOF
20581 cat confdefs.h >>conftest.$ac_ext
20582 cat >>conftest.$ac_ext <<_ACEOF
20583 /* end confdefs.h. */
20585 /* Override any GCC internal prototype to avoid an error.
20586 Use char because int might match the return type of a GCC
20587 builtin and then its argument prototype would still apply. */
20591 char krb_get_cred ();
20595 return krb_get_cred ();
20600 rm -f conftest.$ac_objext conftest$ac_exeext
20601 if { (ac_try="$ac_link"
20602 case "(($ac_try" in
20603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20604 *) ac_try_echo=$ac_try;;
20606 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20607 (eval "$ac_link") 2>conftest.er1
20609 grep -v '^ *+' conftest.er1 >conftest.err
20611 cat conftest.err >&5
20612 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20613 (exit $ac_status); } && {
20614 test -z "$ac_c_werror_flag" ||
20615 test ! -s conftest.err
20616 } && test -s conftest$ac_exeext &&
20617 $as_test_x conftest$ac_exeext; then
20618 ac_cv_lib_krb_krb_get_cred=yes
20620 echo "$as_me: failed program was
:" >&5
20621 sed 's/^/| /' conftest.$ac_ext >&5
20623 ac_cv_lib_krb_krb_get_cred=no
20626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20627 conftest$ac_exeext conftest.$ac_ext
20628 LIBS=$ac_check_lib_save_LIBS
20630 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
20631 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20632 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20633 cat >>confdefs.h <<_ACEOF
20634 #define HAVE_LIBKRB 1
20645 if test "${with_kerberos5+set}" = set; then
20647 for ac_header in krb5.h
20649 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20650 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20651 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20652 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20653 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20654 echo $ECHO_N "(cached
) $ECHO_C" >&6
20656 ac_res=`eval echo '${'$as_ac_Header'}'`
20657 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20658 echo "${ECHO_T}$ac_res" >&6; }
20660 # Is the header compilable?
20661 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20662 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20663 cat >conftest.$ac_ext <<_ACEOF
20666 cat confdefs.h >>conftest.$ac_ext
20667 cat >>conftest.$ac_ext <<_ACEOF
20668 /* end confdefs.h. */
20669 $ac_includes_default
20670 #include <$ac_header>
20672 rm -f conftest.$ac_objext
20673 if { (ac_try="$ac_compile"
20674 case "(($ac_try" in
20675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20676 *) ac_try_echo=$ac_try;;
20678 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20679 (eval "$ac_compile") 2>conftest.er1
20681 grep -v '^ *+' conftest.er1 >conftest.err
20683 cat conftest.err >&5
20684 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20685 (exit $ac_status); } && {
20686 test -z "$ac_c_werror_flag" ||
20687 test ! -s conftest.err
20688 } && test -s conftest.$ac_objext; then
20689 ac_header_compiler=yes
20691 echo "$as_me: failed program was
:" >&5
20692 sed 's/^/| /' conftest.$ac_ext >&5
20694 ac_header_compiler=no
20697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20698 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20699 echo "${ECHO_T}$ac_header_compiler" >&6; }
20701 # Is the header present?
20702 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20703 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20704 cat >conftest.$ac_ext <<_ACEOF
20707 cat confdefs.h >>conftest.$ac_ext
20708 cat >>conftest.$ac_ext <<_ACEOF
20709 /* end confdefs.h. */
20710 #include <$ac_header>
20712 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20713 case "(($ac_try" in
20714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20715 *) ac_try_echo=$ac_try;;
20717 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20718 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20720 grep -v '^ *+' conftest.er1 >conftest.err
20722 cat conftest.err >&5
20723 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20724 (exit $ac_status); } >/dev/null && {
20725 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20726 test ! -s conftest.err
20728 ac_header_preproc=yes
20730 echo "$as_me: failed program was
:" >&5
20731 sed 's/^/| /' conftest.$ac_ext >&5
20733 ac_header_preproc=no
20736 rm -f conftest.err conftest.$ac_ext
20737 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20738 echo "${ECHO_T}$ac_header_preproc" >&6; }
20740 # So? What about this header?
20741 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20743 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20744 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20745 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20746 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20747 ac_header_preproc=yes
20750 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20751 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20752 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20753 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20754 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20755 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20756 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20757 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20758 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20759 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20760 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20761 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20765 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20766 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20767 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20768 echo $ECHO_N "(cached
) $ECHO_C" >&6
20770 eval "$as_ac_Header=\
$ac_header_preproc"
20772 ac_res=`eval echo '${'$as_ac_Header'}'`
20773 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20774 echo "${ECHO_T}$ac_res" >&6; }
20777 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20778 cat >>confdefs.h <<_ACEOF
20779 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20788 for ac_header in des.h
20790 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20791 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20792 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20793 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20794 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20795 echo $ECHO_N "(cached
) $ECHO_C" >&6
20797 ac_res=`eval echo '${'$as_ac_Header'}'`
20798 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20799 echo "${ECHO_T}$ac_res" >&6; }
20801 # Is the header compilable?
20802 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20803 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20804 cat >conftest.$ac_ext <<_ACEOF
20807 cat confdefs.h >>conftest.$ac_ext
20808 cat >>conftest.$ac_ext <<_ACEOF
20809 /* end confdefs.h. */
20810 $ac_includes_default
20811 #include <$ac_header>
20813 rm -f conftest.$ac_objext
20814 if { (ac_try="$ac_compile"
20815 case "(($ac_try" in
20816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20817 *) ac_try_echo=$ac_try;;
20819 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20820 (eval "$ac_compile") 2>conftest.er1
20822 grep -v '^ *+' conftest.er1 >conftest.err
20824 cat conftest.err >&5
20825 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20826 (exit $ac_status); } && {
20827 test -z "$ac_c_werror_flag" ||
20828 test ! -s conftest.err
20829 } && test -s conftest.$ac_objext; then
20830 ac_header_compiler=yes
20832 echo "$as_me: failed program was
:" >&5
20833 sed 's/^/| /' conftest.$ac_ext >&5
20835 ac_header_compiler=no
20838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20839 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20840 echo "${ECHO_T}$ac_header_compiler" >&6; }
20842 # Is the header present?
20843 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20844 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20845 cat >conftest.$ac_ext <<_ACEOF
20848 cat confdefs.h >>conftest.$ac_ext
20849 cat >>conftest.$ac_ext <<_ACEOF
20850 /* end confdefs.h. */
20851 #include <$ac_header>
20853 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20854 case "(($ac_try" in
20855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20856 *) ac_try_echo=$ac_try;;
20858 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20859 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20861 grep -v '^ *+' conftest.er1 >conftest.err
20863 cat conftest.err >&5
20864 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20865 (exit $ac_status); } >/dev/null && {
20866 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20867 test ! -s conftest.err
20869 ac_header_preproc=yes
20871 echo "$as_me: failed program was
:" >&5
20872 sed 's/^/| /' conftest.$ac_ext >&5
20874 ac_header_preproc=no
20877 rm -f conftest.err conftest.$ac_ext
20878 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20879 echo "${ECHO_T}$ac_header_preproc" >&6; }
20881 # So? What about this header?
20882 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20884 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20885 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20886 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20887 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20888 ac_header_preproc=yes
20891 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20892 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20893 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20894 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20895 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20896 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20897 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20898 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20899 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20900 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20901 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20902 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20906 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20907 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20908 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20909 echo $ECHO_N "(cached
) $ECHO_C" >&6
20911 eval "$as_ac_Header=\
$ac_header_preproc"
20913 ac_res=`eval echo '${'$as_ac_Header'}'`
20914 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20915 echo "${ECHO_T}$ac_res" >&6; }
20918 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20919 cat >>confdefs.h <<_ACEOF
20920 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20925 for ac_header in kerberosIV/des.h
20927 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20928 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20929 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20930 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20931 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20932 echo $ECHO_N "(cached
) $ECHO_C" >&6
20934 ac_res=`eval echo '${'$as_ac_Header'}'`
20935 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20936 echo "${ECHO_T}$ac_res" >&6; }
20938 # Is the header compilable?
20939 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20940 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20941 cat >conftest.$ac_ext <<_ACEOF
20944 cat confdefs.h >>conftest.$ac_ext
20945 cat >>conftest.$ac_ext <<_ACEOF
20946 /* end confdefs.h. */
20947 $ac_includes_default
20948 #include <$ac_header>
20950 rm -f conftest.$ac_objext
20951 if { (ac_try="$ac_compile"
20952 case "(($ac_try" in
20953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20954 *) ac_try_echo=$ac_try;;
20956 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20957 (eval "$ac_compile") 2>conftest.er1
20959 grep -v '^ *+' conftest.er1 >conftest.err
20961 cat conftest.err >&5
20962 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20963 (exit $ac_status); } && {
20964 test -z "$ac_c_werror_flag" ||
20965 test ! -s conftest.err
20966 } && test -s conftest.$ac_objext; then
20967 ac_header_compiler=yes
20969 echo "$as_me: failed program was
:" >&5
20970 sed 's/^/| /' conftest.$ac_ext >&5
20972 ac_header_compiler=no
20975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20976 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20977 echo "${ECHO_T}$ac_header_compiler" >&6; }
20979 # Is the header present?
20980 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20981 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20982 cat >conftest.$ac_ext <<_ACEOF
20985 cat confdefs.h >>conftest.$ac_ext
20986 cat >>conftest.$ac_ext <<_ACEOF
20987 /* end confdefs.h. */
20988 #include <$ac_header>
20990 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20991 case "(($ac_try" in
20992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20993 *) ac_try_echo=$ac_try;;
20995 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20996 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20998 grep -v '^ *+' conftest.er1 >conftest.err
21000 cat conftest.err >&5
21001 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21002 (exit $ac_status); } >/dev/null && {
21003 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21004 test ! -s conftest.err
21006 ac_header_preproc=yes
21008 echo "$as_me: failed program was
:" >&5
21009 sed 's/^/| /' conftest.$ac_ext >&5
21011 ac_header_preproc=no
21014 rm -f conftest.err conftest.$ac_ext
21015 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21016 echo "${ECHO_T}$ac_header_preproc" >&6; }
21018 # So? What about this header?
21019 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21021 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21022 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21023 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21024 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21025 ac_header_preproc=yes
21028 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21029 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21030 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21031 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21032 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21033 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21034 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21035 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21036 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21037 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21038 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21039 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21043 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21044 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21045 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21046 echo $ECHO_N "(cached
) $ECHO_C" >&6
21048 eval "$as_ac_Header=\
$ac_header_preproc"
21050 ac_res=`eval echo '${'$as_ac_Header'}'`
21051 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21052 echo "${ECHO_T}$ac_res" >&6; }
21055 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21056 cat >>confdefs.h <<_ACEOF
21057 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21062 for ac_header in kerberos/des.h
21064 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21065 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21066 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21067 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21068 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21069 echo $ECHO_N "(cached
) $ECHO_C" >&6
21071 ac_res=`eval echo '${'$as_ac_Header'}'`
21072 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21073 echo "${ECHO_T}$ac_res" >&6; }
21075 # Is the header compilable?
21076 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21077 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21078 cat >conftest.$ac_ext <<_ACEOF
21081 cat confdefs.h >>conftest.$ac_ext
21082 cat >>conftest.$ac_ext <<_ACEOF
21083 /* end confdefs.h. */
21084 $ac_includes_default
21085 #include <$ac_header>
21087 rm -f conftest.$ac_objext
21088 if { (ac_try="$ac_compile"
21089 case "(($ac_try" in
21090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21091 *) ac_try_echo=$ac_try;;
21093 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21094 (eval "$ac_compile") 2>conftest.er1
21096 grep -v '^ *+' conftest.er1 >conftest.err
21098 cat conftest.err >&5
21099 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21100 (exit $ac_status); } && {
21101 test -z "$ac_c_werror_flag" ||
21102 test ! -s conftest.err
21103 } && test -s conftest.$ac_objext; then
21104 ac_header_compiler=yes
21106 echo "$as_me: failed program was
:" >&5
21107 sed 's/^/| /' conftest.$ac_ext >&5
21109 ac_header_compiler=no
21112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21113 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21114 echo "${ECHO_T}$ac_header_compiler" >&6; }
21116 # Is the header present?
21117 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21118 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21119 cat >conftest.$ac_ext <<_ACEOF
21122 cat confdefs.h >>conftest.$ac_ext
21123 cat >>conftest.$ac_ext <<_ACEOF
21124 /* end confdefs.h. */
21125 #include <$ac_header>
21127 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21128 case "(($ac_try" in
21129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21130 *) ac_try_echo=$ac_try;;
21132 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21133 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21135 grep -v '^ *+' conftest.er1 >conftest.err
21137 cat conftest.err >&5
21138 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21139 (exit $ac_status); } >/dev/null && {
21140 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21141 test ! -s conftest.err
21143 ac_header_preproc=yes
21145 echo "$as_me: failed program was
:" >&5
21146 sed 's/^/| /' conftest.$ac_ext >&5
21148 ac_header_preproc=no
21151 rm -f conftest.err conftest.$ac_ext
21152 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21153 echo "${ECHO_T}$ac_header_preproc" >&6; }
21155 # So? What about this header?
21156 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21158 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21159 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21160 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21161 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21162 ac_header_preproc=yes
21165 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21166 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21167 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21168 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21169 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21170 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21171 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21172 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21173 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21174 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21175 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21176 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21180 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21181 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21182 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21183 echo $ECHO_N "(cached
) $ECHO_C" >&6
21185 eval "$as_ac_Header=\
$ac_header_preproc"
21187 ac_res=`eval echo '${'$as_ac_Header'}'`
21188 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21189 echo "${ECHO_T}$ac_res" >&6; }
21192 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21193 cat >>confdefs.h <<_ACEOF
21194 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21210 for ac_header in krb.h
21212 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21213 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21214 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21215 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21216 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21217 echo $ECHO_N "(cached
) $ECHO_C" >&6
21219 ac_res=`eval echo '${'$as_ac_Header'}'`
21220 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21221 echo "${ECHO_T}$ac_res" >&6; }
21223 # Is the header compilable?
21224 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21225 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21226 cat >conftest.$ac_ext <<_ACEOF
21229 cat confdefs.h >>conftest.$ac_ext
21230 cat >>conftest.$ac_ext <<_ACEOF
21231 /* end confdefs.h. */
21232 $ac_includes_default
21233 #include <$ac_header>
21235 rm -f conftest.$ac_objext
21236 if { (ac_try="$ac_compile"
21237 case "(($ac_try" in
21238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21239 *) ac_try_echo=$ac_try;;
21241 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21242 (eval "$ac_compile") 2>conftest.er1
21244 grep -v '^ *+' conftest.er1 >conftest.err
21246 cat conftest.err >&5
21247 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21248 (exit $ac_status); } && {
21249 test -z "$ac_c_werror_flag" ||
21250 test ! -s conftest.err
21251 } && test -s conftest.$ac_objext; then
21252 ac_header_compiler=yes
21254 echo "$as_me: failed program was
:" >&5
21255 sed 's/^/| /' conftest.$ac_ext >&5
21257 ac_header_compiler=no
21260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21261 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21262 echo "${ECHO_T}$ac_header_compiler" >&6; }
21264 # Is the header present?
21265 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21266 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21267 cat >conftest.$ac_ext <<_ACEOF
21270 cat confdefs.h >>conftest.$ac_ext
21271 cat >>conftest.$ac_ext <<_ACEOF
21272 /* end confdefs.h. */
21273 #include <$ac_header>
21275 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21276 case "(($ac_try" in
21277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21278 *) ac_try_echo=$ac_try;;
21280 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21281 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21283 grep -v '^ *+' conftest.er1 >conftest.err
21285 cat conftest.err >&5
21286 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21287 (exit $ac_status); } >/dev/null && {
21288 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21289 test ! -s conftest.err
21291 ac_header_preproc=yes
21293 echo "$as_me: failed program was
:" >&5
21294 sed 's/^/| /' conftest.$ac_ext >&5
21296 ac_header_preproc=no
21299 rm -f conftest.err conftest.$ac_ext
21300 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21301 echo "${ECHO_T}$ac_header_preproc" >&6; }
21303 # So? What about this header?
21304 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21306 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21307 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21308 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21309 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21310 ac_header_preproc=yes
21313 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21314 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21315 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21316 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21317 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21318 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21319 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21320 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21321 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21322 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21323 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21324 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21328 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21329 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21330 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21331 echo $ECHO_N "(cached
) $ECHO_C" >&6
21333 eval "$as_ac_Header=\
$ac_header_preproc"
21335 ac_res=`eval echo '${'$as_ac_Header'}'`
21336 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21337 echo "${ECHO_T}$ac_res" >&6; }
21340 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21341 cat >>confdefs.h <<_ACEOF
21342 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21347 for ac_header in kerberosIV/krb.h
21349 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21350 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21351 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21352 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21353 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21354 echo $ECHO_N "(cached
) $ECHO_C" >&6
21356 ac_res=`eval echo '${'$as_ac_Header'}'`
21357 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21358 echo "${ECHO_T}$ac_res" >&6; }
21360 # Is the header compilable?
21361 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21362 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21363 cat >conftest.$ac_ext <<_ACEOF
21366 cat confdefs.h >>conftest.$ac_ext
21367 cat >>conftest.$ac_ext <<_ACEOF
21368 /* end confdefs.h. */
21369 $ac_includes_default
21370 #include <$ac_header>
21372 rm -f conftest.$ac_objext
21373 if { (ac_try="$ac_compile"
21374 case "(($ac_try" in
21375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21376 *) ac_try_echo=$ac_try;;
21378 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21379 (eval "$ac_compile") 2>conftest.er1
21381 grep -v '^ *+' conftest.er1 >conftest.err
21383 cat conftest.err >&5
21384 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21385 (exit $ac_status); } && {
21386 test -z "$ac_c_werror_flag" ||
21387 test ! -s conftest.err
21388 } && test -s conftest.$ac_objext; then
21389 ac_header_compiler=yes
21391 echo "$as_me: failed program was
:" >&5
21392 sed 's/^/| /' conftest.$ac_ext >&5
21394 ac_header_compiler=no
21397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21398 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21399 echo "${ECHO_T}$ac_header_compiler" >&6; }
21401 # Is the header present?
21402 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21403 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21404 cat >conftest.$ac_ext <<_ACEOF
21407 cat confdefs.h >>conftest.$ac_ext
21408 cat >>conftest.$ac_ext <<_ACEOF
21409 /* end confdefs.h. */
21410 #include <$ac_header>
21412 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21413 case "(($ac_try" in
21414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21415 *) ac_try_echo=$ac_try;;
21417 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21418 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21420 grep -v '^ *+' conftest.er1 >conftest.err
21422 cat conftest.err >&5
21423 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21424 (exit $ac_status); } >/dev/null && {
21425 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21426 test ! -s conftest.err
21428 ac_header_preproc=yes
21430 echo "$as_me: failed program was
:" >&5
21431 sed 's/^/| /' conftest.$ac_ext >&5
21433 ac_header_preproc=no
21436 rm -f conftest.err conftest.$ac_ext
21437 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21438 echo "${ECHO_T}$ac_header_preproc" >&6; }
21440 # So? What about this header?
21441 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21443 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21444 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21445 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21446 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21447 ac_header_preproc=yes
21450 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21451 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21452 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21453 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21454 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21455 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21456 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21457 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21458 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21459 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21460 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21461 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21465 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21466 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21467 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21468 echo $ECHO_N "(cached
) $ECHO_C" >&6
21470 eval "$as_ac_Header=\
$ac_header_preproc"
21472 ac_res=`eval echo '${'$as_ac_Header'}'`
21473 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21474 echo "${ECHO_T}$ac_res" >&6; }
21477 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21478 cat >>confdefs.h <<_ACEOF
21479 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21484 for ac_header in kerberos/krb.h
21486 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21487 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21488 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21489 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21490 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21491 echo $ECHO_N "(cached
) $ECHO_C" >&6
21493 ac_res=`eval echo '${'$as_ac_Header'}'`
21494 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21495 echo "${ECHO_T}$ac_res" >&6; }
21497 # Is the header compilable?
21498 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21499 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21500 cat >conftest.$ac_ext <<_ACEOF
21503 cat confdefs.h >>conftest.$ac_ext
21504 cat >>conftest.$ac_ext <<_ACEOF
21505 /* end confdefs.h. */
21506 $ac_includes_default
21507 #include <$ac_header>
21509 rm -f conftest.$ac_objext
21510 if { (ac_try="$ac_compile"
21511 case "(($ac_try" in
21512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21513 *) ac_try_echo=$ac_try;;
21515 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21516 (eval "$ac_compile") 2>conftest.er1
21518 grep -v '^ *+' conftest.er1 >conftest.err
21520 cat conftest.err >&5
21521 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21522 (exit $ac_status); } && {
21523 test -z "$ac_c_werror_flag" ||
21524 test ! -s conftest.err
21525 } && test -s conftest.$ac_objext; then
21526 ac_header_compiler=yes
21528 echo "$as_me: failed program was
:" >&5
21529 sed 's/^/| /' conftest.$ac_ext >&5
21531 ac_header_compiler=no
21534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21535 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21536 echo "${ECHO_T}$ac_header_compiler" >&6; }
21538 # Is the header present?
21539 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21540 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21541 cat >conftest.$ac_ext <<_ACEOF
21544 cat confdefs.h >>conftest.$ac_ext
21545 cat >>conftest.$ac_ext <<_ACEOF
21546 /* end confdefs.h. */
21547 #include <$ac_header>
21549 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21550 case "(($ac_try" in
21551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21552 *) ac_try_echo=$ac_try;;
21554 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21555 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21557 grep -v '^ *+' conftest.er1 >conftest.err
21559 cat conftest.err >&5
21560 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21561 (exit $ac_status); } >/dev/null && {
21562 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21563 test ! -s conftest.err
21565 ac_header_preproc=yes
21567 echo "$as_me: failed program was
:" >&5
21568 sed 's/^/| /' conftest.$ac_ext >&5
21570 ac_header_preproc=no
21573 rm -f conftest.err conftest.$ac_ext
21574 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21575 echo "${ECHO_T}$ac_header_preproc" >&6; }
21577 # So? What about this header?
21578 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21580 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21581 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21582 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21583 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21584 ac_header_preproc=yes
21587 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21588 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21589 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21590 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21591 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21592 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21593 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21594 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21595 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21596 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21597 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21598 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21602 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21603 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21604 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21605 echo $ECHO_N "(cached
) $ECHO_C" >&6
21607 eval "$as_ac_Header=\
$ac_header_preproc"
21609 ac_res=`eval echo '${'$as_ac_Header'}'`
21610 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21611 echo "${ECHO_T}$ac_res" >&6; }
21614 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21615 cat >>confdefs.h <<_ACEOF
21616 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21633 for ac_header in com_err.h
21635 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21636 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21637 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21638 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21639 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21640 echo $ECHO_N "(cached
) $ECHO_C" >&6
21642 ac_res=`eval echo '${'$as_ac_Header'}'`
21643 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21644 echo "${ECHO_T}$ac_res" >&6; }
21646 # Is the header compilable?
21647 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21648 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21649 cat >conftest.$ac_ext <<_ACEOF
21652 cat confdefs.h >>conftest.$ac_ext
21653 cat >>conftest.$ac_ext <<_ACEOF
21654 /* end confdefs.h. */
21655 $ac_includes_default
21656 #include <$ac_header>
21658 rm -f conftest.$ac_objext
21659 if { (ac_try="$ac_compile"
21660 case "(($ac_try" in
21661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21662 *) ac_try_echo=$ac_try;;
21664 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21665 (eval "$ac_compile") 2>conftest.er1
21667 grep -v '^ *+' conftest.er1 >conftest.err
21669 cat conftest.err >&5
21670 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21671 (exit $ac_status); } && {
21672 test -z "$ac_c_werror_flag" ||
21673 test ! -s conftest.err
21674 } && test -s conftest.$ac_objext; then
21675 ac_header_compiler=yes
21677 echo "$as_me: failed program was
:" >&5
21678 sed 's/^/| /' conftest.$ac_ext >&5
21680 ac_header_compiler=no
21683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21684 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21685 echo "${ECHO_T}$ac_header_compiler" >&6; }
21687 # Is the header present?
21688 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21689 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21690 cat >conftest.$ac_ext <<_ACEOF
21693 cat confdefs.h >>conftest.$ac_ext
21694 cat >>conftest.$ac_ext <<_ACEOF
21695 /* end confdefs.h. */
21696 #include <$ac_header>
21698 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21699 case "(($ac_try" in
21700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21701 *) ac_try_echo=$ac_try;;
21703 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21704 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21706 grep -v '^ *+' conftest.er1 >conftest.err
21708 cat conftest.err >&5
21709 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21710 (exit $ac_status); } >/dev/null && {
21711 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21712 test ! -s conftest.err
21714 ac_header_preproc=yes
21716 echo "$as_me: failed program was
:" >&5
21717 sed 's/^/| /' conftest.$ac_ext >&5
21719 ac_header_preproc=no
21722 rm -f conftest.err conftest.$ac_ext
21723 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21724 echo "${ECHO_T}$ac_header_preproc" >&6; }
21726 # So? What about this header?
21727 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21729 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21730 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21731 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21732 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21733 ac_header_preproc=yes
21736 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21737 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21738 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21739 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21740 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21741 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21742 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21743 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21744 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21745 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21746 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21747 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21751 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21752 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21753 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21754 echo $ECHO_N "(cached
) $ECHO_C" >&6
21756 eval "$as_ac_Header=\
$ac_header_preproc"
21758 ac_res=`eval echo '${'$as_ac_Header'}'`
21759 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21760 echo "${ECHO_T}$ac_res" >&6; }
21763 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21764 cat >>confdefs.h <<_ACEOF
21765 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21774 # Solaris requires -lintl if you want strerror (which calls dgettext)
21775 # to return localized messages.
21777 { echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
21778 echo $ECHO_N "checking
for dgettext
in -lintl...
$ECHO_C" >&6; }
21779 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21780 echo $ECHO_N "(cached
) $ECHO_C" >&6
21782 ac_check_lib_save_LIBS=$LIBS
21783 LIBS="-lintl $LIBS"
21784 cat >conftest.$ac_ext <<_ACEOF
21787 cat confdefs.h >>conftest.$ac_ext
21788 cat >>conftest.$ac_ext <<_ACEOF
21789 /* end confdefs.h. */
21791 /* Override any GCC internal prototype to avoid an error.
21792 Use char because int might match the return type of a GCC
21793 builtin and then its argument prototype would still apply. */
21801 return dgettext ();
21806 rm -f conftest.$ac_objext conftest$ac_exeext
21807 if { (ac_try="$ac_link"
21808 case "(($ac_try" in
21809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21810 *) ac_try_echo=$ac_try;;
21812 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21813 (eval "$ac_link") 2>conftest.er1
21815 grep -v '^ *+' conftest.er1 >conftest.err
21817 cat conftest.err >&5
21818 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21819 (exit $ac_status); } && {
21820 test -z "$ac_c_werror_flag" ||
21821 test ! -s conftest.err
21822 } && test -s conftest$ac_exeext &&
21823 $as_test_x conftest$ac_exeext; then
21824 ac_cv_lib_intl_dgettext=yes
21826 echo "$as_me: failed program was
:" >&5
21827 sed 's/^/| /' conftest.$ac_ext >&5
21829 ac_cv_lib_intl_dgettext=no
21832 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21833 conftest$ac_exeext conftest.$ac_ext
21834 LIBS=$ac_check_lib_save_LIBS
21836 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
21837 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
21838 if test $ac_cv_lib_intl_dgettext = yes; then
21839 cat >>confdefs.h <<_ACEOF
21840 #define HAVE_LIBINTL 1
21843 LIBS="-lintl $LIBS"
21848 { echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
21849 echo $ECHO_N "checking whether localtime caches TZ...
$ECHO_C" >&6; }
21850 if test "${emacs_cv_localtime_cache+set}" = set; then
21851 echo $ECHO_N "(cached
) $ECHO_C" >&6
21853 if test x$ac_cv_func_tzset = xyes; then
21854 if test "$cross_compiling" = yes; then
21855 # If we have tzset, assume the worst when cross-compiling.
21856 emacs_cv_localtime_cache=yes
21858 cat >conftest.$ac_ext <<_ACEOF
21861 cat confdefs.h >>conftest.$ac_ext
21862 cat >>conftest.$ac_ext <<_ACEOF
21863 /* end confdefs.h. */
21865 extern char **environ;
21869 for (to = from = environ; (*to = *from); from++)
21870 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
21873 char TZ_GMT0[] = "TZ
=GMT0
";
21874 char TZ_PST8[] = "TZ
=PST8
";
21877 time_t now = time ((time_t *) 0);
21878 int hour_GMT0, hour_unset;
21879 if (putenv (TZ_GMT0) != 0)
21881 hour_GMT0 = localtime (&now)->tm_hour;
21883 hour_unset = localtime (&now)->tm_hour;
21884 if (putenv (TZ_PST8) != 0)
21886 if (localtime (&now)->tm_hour == hour_GMT0)
21889 if (localtime (&now)->tm_hour != hour_unset)
21894 rm -f conftest$ac_exeext
21895 if { (ac_try="$ac_link"
21896 case "(($ac_try" in
21897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21898 *) ac_try_echo=$ac_try;;
21900 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21901 (eval "$ac_link") 2>&5
21903 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21904 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21905 { (case "(($ac_try" in
21906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21907 *) ac_try_echo=$ac_try;;
21909 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21910 (eval "$ac_try") 2>&5
21912 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21913 (exit $ac_status); }; }; then
21914 emacs_cv_localtime_cache=no
21916 echo "$as_me: program exited with status
$ac_status" >&5
21917 echo "$as_me: failed program was
:" >&5
21918 sed 's/^/| /' conftest.$ac_ext >&5
21920 ( exit $ac_status )
21921 emacs_cv_localtime_cache=yes
21923 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21928 # If we lack tzset, report that localtime does not cache TZ,
21929 # since we can't invalidate the cache if we don't have tzset.
21930 emacs_cv_localtime_cache=no
21933 { echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
21934 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
21935 if test $emacs_cv_localtime_cache = yes; then
21937 cat >>confdefs.h <<\_ACEOF
21938 #define LOCALTIME_CACHE 1
21943 if test "x
$HAVE_TIMEVAL" = xyes; then
21945 for ac_func in gettimeofday
21947 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
21948 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
21949 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
21950 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
21951 echo $ECHO_N "(cached
) $ECHO_C" >&6
21953 cat >conftest.$ac_ext <<_ACEOF
21956 cat confdefs.h >>conftest.$ac_ext
21957 cat >>conftest.$ac_ext <<_ACEOF
21958 /* end confdefs.h. */
21959 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21960 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21961 #define $ac_func innocuous_$ac_func
21963 /* System header to define __stub macros and hopefully few prototypes,
21964 which can conflict with char $ac_func (); below.
21965 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21966 <limits.h> exists even on freestanding compilers. */
21969 # include <limits.h>
21971 # include <assert.h>
21976 /* Override any GCC internal prototype to avoid an error.
21977 Use char because int might match the return type of a GCC
21978 builtin and then its argument prototype would still apply. */
21983 /* The GNU C library defines this for functions which it implements
21984 to always fail with ENOSYS. Some functions are actually named
21985 something starting with __ and the normal name is an alias. */
21986 #if defined __stub_$ac_func || defined __stub___$ac_func
21993 return $ac_func ();
21998 rm -f conftest.$ac_objext conftest$ac_exeext
21999 if { (ac_try="$ac_link"
22000 case "(($ac_try" in
22001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22002 *) ac_try_echo=$ac_try;;
22004 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22005 (eval "$ac_link") 2>conftest.er1
22007 grep -v '^ *+' conftest.er1 >conftest.err
22009 cat conftest.err >&5
22010 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22011 (exit $ac_status); } && {
22012 test -z "$ac_c_werror_flag" ||
22013 test ! -s conftest.err
22014 } && test -s conftest$ac_exeext &&
22015 $as_test_x conftest$ac_exeext; then
22016 eval "$as_ac_var=yes"
22018 echo "$as_me: failed program was
:" >&5
22019 sed 's/^/| /' conftest.$ac_ext >&5
22021 eval "$as_ac_var=no
"
22024 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22025 conftest$ac_exeext conftest.$ac_ext
22027 ac_res=`eval echo '${'$as_ac_var'}'`
22028 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22029 echo "${ECHO_T}$ac_res" >&6; }
22030 if test `eval echo '${'$as_ac_var'}'` = yes; then
22031 cat >>confdefs.h <<_ACEOF
22032 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
22038 if test $ac_cv_func_gettimeofday = yes; then
22039 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
22040 echo $ECHO_N "checking whether gettimeofday can accept two arguments...
$ECHO_C" >&6; }
22041 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22042 echo $ECHO_N "(cached
) $ECHO_C" >&6
22044 cat >conftest.$ac_ext <<_ACEOF
22047 cat confdefs.h >>conftest.$ac_ext
22048 cat >>conftest.$ac_ext <<_ACEOF
22049 /* end confdefs.h. */
22051 #ifdef TIME_WITH_SYS_TIME
22052 #include <sys/time.h>
22055 #ifdef HAVE_SYS_TIME_H
22056 #include <sys/time.h>
22064 struct timeval time;
22065 gettimeofday (&time, 0);
22070 rm -f conftest.$ac_objext
22071 if { (ac_try="$ac_compile"
22072 case "(($ac_try" in
22073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22074 *) ac_try_echo=$ac_try;;
22076 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22077 (eval "$ac_compile") 2>conftest.er1
22079 grep -v '^ *+' conftest.er1 >conftest.err
22081 cat conftest.err >&5
22082 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22083 (exit $ac_status); } && {
22084 test -z "$ac_c_werror_flag" ||
22085 test ! -s conftest.err
22086 } && test -s conftest.$ac_objext; then
22087 emacs_cv_gettimeofday_two_arguments=yes
22089 echo "$as_me: failed program was
:" >&5
22090 sed 's/^/| /' conftest.$ac_ext >&5
22092 emacs_cv_gettimeofday_two_arguments=no
22095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22097 { echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
22098 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22099 if test $emacs_cv_gettimeofday_two_arguments = no; then
22101 cat >>confdefs.h <<\_ACEOF
22102 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22110 { echo "$as_me:$LINENO: checking
for socket
" >&5
22111 echo $ECHO_N "checking
for socket...
$ECHO_C" >&6; }
22112 if test "${ac_cv_func_socket+set}" = set; then
22113 echo $ECHO_N "(cached
) $ECHO_C" >&6
22115 cat >conftest.$ac_ext <<_ACEOF
22118 cat confdefs.h >>conftest.$ac_ext
22119 cat >>conftest.$ac_ext <<_ACEOF
22120 /* end confdefs.h. */
22121 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22122 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22123 #define socket innocuous_socket
22125 /* System header to define __stub macros and hopefully few prototypes,
22126 which can conflict with char socket (); below.
22127 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22128 <limits.h> exists even on freestanding compilers. */
22131 # include <limits.h>
22133 # include <assert.h>
22138 /* Override any GCC internal prototype to avoid an error.
22139 Use char because int might match the return type of a GCC
22140 builtin and then its argument prototype would still apply. */
22145 /* The GNU C library defines this for functions which it implements
22146 to always fail with ENOSYS. Some functions are actually named
22147 something starting with __ and the normal name is an alias. */
22148 #if defined __stub_socket || defined __stub___socket
22160 rm -f conftest.$ac_objext conftest$ac_exeext
22161 if { (ac_try="$ac_link"
22162 case "(($ac_try" in
22163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22164 *) ac_try_echo=$ac_try;;
22166 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22167 (eval "$ac_link") 2>conftest.er1
22169 grep -v '^ *+' conftest.er1 >conftest.err
22171 cat conftest.err >&5
22172 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22173 (exit $ac_status); } && {
22174 test -z "$ac_c_werror_flag" ||
22175 test ! -s conftest.err
22176 } && test -s conftest$ac_exeext &&
22177 $as_test_x conftest$ac_exeext; then
22178 ac_cv_func_socket=yes
22180 echo "$as_me: failed program was
:" >&5
22181 sed 's/^/| /' conftest.$ac_ext >&5
22183 ac_cv_func_socket=no
22186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22187 conftest$ac_exeext conftest.$ac_ext
22189 { echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
22190 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22191 if test $ac_cv_func_socket = yes; then
22197 if test $ok_so_far = yes; then
22198 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22199 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
22200 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
22201 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22202 echo $ECHO_N "(cached
) $ECHO_C" >&6
22204 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
22205 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22207 # Is the header compilable?
22208 { echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
22209 echo $ECHO_N "checking netinet
/in.h usability...
$ECHO_C" >&6; }
22210 cat >conftest.$ac_ext <<_ACEOF
22213 cat confdefs.h >>conftest.$ac_ext
22214 cat >>conftest.$ac_ext <<_ACEOF
22215 /* end confdefs.h. */
22216 $ac_includes_default
22217 #include <netinet/in.h>
22219 rm -f conftest.$ac_objext
22220 if { (ac_try="$ac_compile"
22221 case "(($ac_try" in
22222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22223 *) ac_try_echo=$ac_try;;
22225 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22226 (eval "$ac_compile") 2>conftest.er1
22228 grep -v '^ *+' conftest.er1 >conftest.err
22230 cat conftest.err >&5
22231 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22232 (exit $ac_status); } && {
22233 test -z "$ac_c_werror_flag" ||
22234 test ! -s conftest.err
22235 } && test -s conftest.$ac_objext; then
22236 ac_header_compiler=yes
22238 echo "$as_me: failed program was
:" >&5
22239 sed 's/^/| /' conftest.$ac_ext >&5
22241 ac_header_compiler=no
22244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22245 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22246 echo "${ECHO_T}$ac_header_compiler" >&6; }
22248 # Is the header present?
22249 { echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
22250 echo $ECHO_N "checking netinet
/in.h presence...
$ECHO_C" >&6; }
22251 cat >conftest.$ac_ext <<_ACEOF
22254 cat confdefs.h >>conftest.$ac_ext
22255 cat >>conftest.$ac_ext <<_ACEOF
22256 /* end confdefs.h. */
22257 #include <netinet/in.h>
22259 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22260 case "(($ac_try" in
22261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22262 *) ac_try_echo=$ac_try;;
22264 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22265 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22267 grep -v '^ *+' conftest.er1 >conftest.err
22269 cat conftest.err >&5
22270 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22271 (exit $ac_status); } >/dev/null && {
22272 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22273 test ! -s conftest.err
22275 ac_header_preproc=yes
22277 echo "$as_me: failed program was
:" >&5
22278 sed 's/^/| /' conftest.$ac_ext >&5
22280 ac_header_preproc=no
22283 rm -f conftest.err conftest.$ac_ext
22284 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22285 echo "${ECHO_T}$ac_header_preproc" >&6; }
22287 # So? What about this header?
22288 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22290 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22291 echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22292 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
22293 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
22294 ac_header_preproc=yes
22297 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
22298 echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
22299 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
22300 echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
22301 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
22302 echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
22303 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22304 echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22305 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
22306 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
22307 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
22308 echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
22312 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
22313 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
22314 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22315 echo $ECHO_N "(cached
) $ECHO_C" >&6
22317 ac_cv_header_netinet_in_h=$ac_header_preproc
22319 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
22320 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22323 if test $ac_cv_header_netinet_in_h = yes; then
22331 if test $ok_so_far = yes; then
22332 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22333 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22334 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22335 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22336 echo $ECHO_N "(cached
) $ECHO_C" >&6
22338 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22339 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22341 # Is the header compilable?
22342 { echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
22343 echo $ECHO_N "checking arpa
/inet.h usability...
$ECHO_C" >&6; }
22344 cat >conftest.$ac_ext <<_ACEOF
22347 cat confdefs.h >>conftest.$ac_ext
22348 cat >>conftest.$ac_ext <<_ACEOF
22349 /* end confdefs.h. */
22350 $ac_includes_default
22351 #include <arpa/inet.h>
22353 rm -f conftest.$ac_objext
22354 if { (ac_try="$ac_compile"
22355 case "(($ac_try" in
22356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22357 *) ac_try_echo=$ac_try;;
22359 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22360 (eval "$ac_compile") 2>conftest.er1
22362 grep -v '^ *+' conftest.er1 >conftest.err
22364 cat conftest.err >&5
22365 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22366 (exit $ac_status); } && {
22367 test -z "$ac_c_werror_flag" ||
22368 test ! -s conftest.err
22369 } && test -s conftest.$ac_objext; then
22370 ac_header_compiler=yes
22372 echo "$as_me: failed program was
:" >&5
22373 sed 's/^/| /' conftest.$ac_ext >&5
22375 ac_header_compiler=no
22378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22379 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22380 echo "${ECHO_T}$ac_header_compiler" >&6; }
22382 # Is the header present?
22383 { echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
22384 echo $ECHO_N "checking arpa
/inet.h presence...
$ECHO_C" >&6; }
22385 cat >conftest.$ac_ext <<_ACEOF
22388 cat confdefs.h >>conftest.$ac_ext
22389 cat >>conftest.$ac_ext <<_ACEOF
22390 /* end confdefs.h. */
22391 #include <arpa/inet.h>
22393 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22394 case "(($ac_try" in
22395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22396 *) ac_try_echo=$ac_try;;
22398 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22399 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22401 grep -v '^ *+' conftest.er1 >conftest.err
22403 cat conftest.err >&5
22404 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22405 (exit $ac_status); } >/dev/null && {
22406 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22407 test ! -s conftest.err
22409 ac_header_preproc=yes
22411 echo "$as_me: failed program was
:" >&5
22412 sed 's/^/| /' conftest.$ac_ext >&5
22414 ac_header_preproc=no
22417 rm -f conftest.err conftest.$ac_ext
22418 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22419 echo "${ECHO_T}$ac_header_preproc" >&6; }
22421 # So? What about this header?
22422 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22424 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22425 echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22426 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
22427 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
22428 ac_header_preproc=yes
22431 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
22432 echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
22433 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
22434 echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
22435 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
22436 echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
22437 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22438 echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22439 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
22440 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
22441 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
22442 echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
22446 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22447 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22448 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22449 echo $ECHO_N "(cached
) $ECHO_C" >&6
22451 ac_cv_header_arpa_inet_h=$ac_header_preproc
22453 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22454 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22457 if test $ac_cv_header_arpa_inet_h = yes; then
22465 if test $ok_so_far = yes; then
22467 cat >>confdefs.h <<\_ACEOF
22468 #define HAVE_INET_SOCKETS 1
22474 for ac_header in sys/ioctl.h
22476 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22477 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22478 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22479 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22480 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22481 echo $ECHO_N "(cached
) $ECHO_C" >&6
22483 ac_res=`eval echo '${'$as_ac_Header'}'`
22484 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22485 echo "${ECHO_T}$ac_res" >&6; }
22487 # Is the header compilable?
22488 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22489 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22490 cat >conftest.$ac_ext <<_ACEOF
22493 cat confdefs.h >>conftest.$ac_ext
22494 cat >>conftest.$ac_ext <<_ACEOF
22495 /* end confdefs.h. */
22496 $ac_includes_default
22497 #include <$ac_header>
22499 rm -f conftest.$ac_objext
22500 if { (ac_try="$ac_compile"
22501 case "(($ac_try" in
22502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22503 *) ac_try_echo=$ac_try;;
22505 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22506 (eval "$ac_compile") 2>conftest.er1
22508 grep -v '^ *+' conftest.er1 >conftest.err
22510 cat conftest.err >&5
22511 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22512 (exit $ac_status); } && {
22513 test -z "$ac_c_werror_flag" ||
22514 test ! -s conftest.err
22515 } && test -s conftest.$ac_objext; then
22516 ac_header_compiler=yes
22518 echo "$as_me: failed program was
:" >&5
22519 sed 's/^/| /' conftest.$ac_ext >&5
22521 ac_header_compiler=no
22524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22525 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22526 echo "${ECHO_T}$ac_header_compiler" >&6; }
22528 # Is the header present?
22529 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22530 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22531 cat >conftest.$ac_ext <<_ACEOF
22534 cat confdefs.h >>conftest.$ac_ext
22535 cat >>conftest.$ac_ext <<_ACEOF
22536 /* end confdefs.h. */
22537 #include <$ac_header>
22539 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22540 case "(($ac_try" in
22541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22542 *) ac_try_echo=$ac_try;;
22544 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22545 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22547 grep -v '^ *+' conftest.er1 >conftest.err
22549 cat conftest.err >&5
22550 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22551 (exit $ac_status); } >/dev/null && {
22552 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22553 test ! -s conftest.err
22555 ac_header_preproc=yes
22557 echo "$as_me: failed program was
:" >&5
22558 sed 's/^/| /' conftest.$ac_ext >&5
22560 ac_header_preproc=no
22563 rm -f conftest.err conftest.$ac_ext
22564 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22565 echo "${ECHO_T}$ac_header_preproc" >&6; }
22567 # So? What about this header?
22568 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22570 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22571 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22572 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22573 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22574 ac_header_preproc=yes
22577 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22578 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22579 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22580 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22581 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22582 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22583 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22584 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22585 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22586 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22587 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22588 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22592 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22593 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22594 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22595 echo $ECHO_N "(cached
) $ECHO_C" >&6
22597 eval "$as_ac_Header=\
$ac_header_preproc"
22599 ac_res=`eval echo '${'$as_ac_Header'}'`
22600 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22601 echo "${ECHO_T}$ac_res" >&6; }
22604 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22605 cat >>confdefs.h <<_ACEOF
22606 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22614 if test -f /usr/lpp/X11/bin/smt.exp; then
22616 cat >>confdefs.h <<\_ACEOF
22617 #define HAVE_AIX_SMT_EXP 1
22622 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
22623 echo $ECHO_N "checking whether system supports dynamic ptys...
$ECHO_C" >&6; }
22624 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22625 { echo "$as_me:$LINENO: result
: yes" >&5
22626 echo "${ECHO_T}yes" >&6; }
22628 cat >>confdefs.h <<\_ACEOF
22629 #define HAVE_DEV_PTMX 1
22633 { echo "$as_me:$LINENO: result
: no
" >&5
22634 echo "${ECHO_T}no
" >&6; }
22637 { echo "$as_me:$LINENO: checking
for pid_t
" >&5
22638 echo $ECHO_N "checking
for pid_t...
$ECHO_C" >&6; }
22639 if test "${ac_cv_type_pid_t+set}" = set; then
22640 echo $ECHO_N "(cached
) $ECHO_C" >&6
22642 cat >conftest.$ac_ext <<_ACEOF
22645 cat confdefs.h >>conftest.$ac_ext
22646 cat >>conftest.$ac_ext <<_ACEOF
22647 /* end confdefs.h. */
22648 $ac_includes_default
22649 typedef pid_t ac__type_new_;
22653 if ((ac__type_new_ *) 0)
22655 if (sizeof (ac__type_new_))
22661 rm -f conftest.$ac_objext
22662 if { (ac_try="$ac_compile"
22663 case "(($ac_try" in
22664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22665 *) ac_try_echo=$ac_try;;
22667 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22668 (eval "$ac_compile") 2>conftest.er1
22670 grep -v '^ *+' conftest.er1 >conftest.err
22672 cat conftest.err >&5
22673 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22674 (exit $ac_status); } && {
22675 test -z "$ac_c_werror_flag" ||
22676 test ! -s conftest.err
22677 } && test -s conftest.$ac_objext; then
22678 ac_cv_type_pid_t=yes
22680 echo "$as_me: failed program was
:" >&5
22681 sed 's/^/| /' conftest.$ac_ext >&5
22683 ac_cv_type_pid_t=no
22686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22688 { echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
22689 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22690 if test $ac_cv_type_pid_t = yes; then
22694 cat >>confdefs.h <<_ACEOF
22701 for ac_header in vfork.h
22703 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22704 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22705 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22706 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22707 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22708 echo $ECHO_N "(cached
) $ECHO_C" >&6
22710 ac_res=`eval echo '${'$as_ac_Header'}'`
22711 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22712 echo "${ECHO_T}$ac_res" >&6; }
22714 # Is the header compilable?
22715 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22716 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22717 cat >conftest.$ac_ext <<_ACEOF
22720 cat confdefs.h >>conftest.$ac_ext
22721 cat >>conftest.$ac_ext <<_ACEOF
22722 /* end confdefs.h. */
22723 $ac_includes_default
22724 #include <$ac_header>
22726 rm -f conftest.$ac_objext
22727 if { (ac_try="$ac_compile"
22728 case "(($ac_try" in
22729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22730 *) ac_try_echo=$ac_try;;
22732 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22733 (eval "$ac_compile") 2>conftest.er1
22735 grep -v '^ *+' conftest.er1 >conftest.err
22737 cat conftest.err >&5
22738 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22739 (exit $ac_status); } && {
22740 test -z "$ac_c_werror_flag" ||
22741 test ! -s conftest.err
22742 } && test -s conftest.$ac_objext; then
22743 ac_header_compiler=yes
22745 echo "$as_me: failed program was
:" >&5
22746 sed 's/^/| /' conftest.$ac_ext >&5
22748 ac_header_compiler=no
22751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22752 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22753 echo "${ECHO_T}$ac_header_compiler" >&6; }
22755 # Is the header present?
22756 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22757 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22758 cat >conftest.$ac_ext <<_ACEOF
22761 cat confdefs.h >>conftest.$ac_ext
22762 cat >>conftest.$ac_ext <<_ACEOF
22763 /* end confdefs.h. */
22764 #include <$ac_header>
22766 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22767 case "(($ac_try" in
22768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22769 *) ac_try_echo=$ac_try;;
22771 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22772 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22774 grep -v '^ *+' conftest.er1 >conftest.err
22776 cat conftest.err >&5
22777 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22778 (exit $ac_status); } >/dev/null && {
22779 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22780 test ! -s conftest.err
22782 ac_header_preproc=yes
22784 echo "$as_me: failed program was
:" >&5
22785 sed 's/^/| /' conftest.$ac_ext >&5
22787 ac_header_preproc=no
22790 rm -f conftest.err conftest.$ac_ext
22791 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22792 echo "${ECHO_T}$ac_header_preproc" >&6; }
22794 # So? What about this header?
22795 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22797 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22798 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22799 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22800 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22801 ac_header_preproc=yes
22804 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22805 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22806 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22807 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22808 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22809 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22810 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22811 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22812 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22813 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22814 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22815 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22819 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22820 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22821 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22822 echo $ECHO_N "(cached
) $ECHO_C" >&6
22824 eval "$as_ac_Header=\
$ac_header_preproc"
22826 ac_res=`eval echo '${'$as_ac_Header'}'`
22827 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22828 echo "${ECHO_T}$ac_res" >&6; }
22831 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22832 cat >>confdefs.h <<_ACEOF
22833 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22842 for ac_func in fork vfork
22844 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
22845 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
22846 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
22847 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
22848 echo $ECHO_N "(cached
) $ECHO_C" >&6
22850 cat >conftest.$ac_ext <<_ACEOF
22853 cat confdefs.h >>conftest.$ac_ext
22854 cat >>conftest.$ac_ext <<_ACEOF
22855 /* end confdefs.h. */
22856 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22857 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22858 #define $ac_func innocuous_$ac_func
22860 /* System header to define __stub macros and hopefully few prototypes,
22861 which can conflict with char $ac_func (); below.
22862 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22863 <limits.h> exists even on freestanding compilers. */
22866 # include <limits.h>
22868 # include <assert.h>
22873 /* Override any GCC internal prototype to avoid an error.
22874 Use char because int might match the return type of a GCC
22875 builtin and then its argument prototype would still apply. */
22880 /* The GNU C library defines this for functions which it implements
22881 to always fail with ENOSYS. Some functions are actually named
22882 something starting with __ and the normal name is an alias. */
22883 #if defined __stub_$ac_func || defined __stub___$ac_func
22890 return $ac_func ();
22895 rm -f conftest.$ac_objext conftest$ac_exeext
22896 if { (ac_try="$ac_link"
22897 case "(($ac_try" in
22898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22899 *) ac_try_echo=$ac_try;;
22901 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22902 (eval "$ac_link") 2>conftest.er1
22904 grep -v '^ *+' conftest.er1 >conftest.err
22906 cat conftest.err >&5
22907 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22908 (exit $ac_status); } && {
22909 test -z "$ac_c_werror_flag" ||
22910 test ! -s conftest.err
22911 } && test -s conftest$ac_exeext &&
22912 $as_test_x conftest$ac_exeext; then
22913 eval "$as_ac_var=yes"
22915 echo "$as_me: failed program was
:" >&5
22916 sed 's/^/| /' conftest.$ac_ext >&5
22918 eval "$as_ac_var=no
"
22921 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22922 conftest$ac_exeext conftest.$ac_ext
22924 ac_res=`eval echo '${'$as_ac_var'}'`
22925 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22926 echo "${ECHO_T}$ac_res" >&6; }
22927 if test `eval echo '${'$as_ac_var'}'` = yes; then
22928 cat >>confdefs.h <<_ACEOF
22929 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
22935 if test "x
$ac_cv_func_fork" = xyes; then
22936 { echo "$as_me:$LINENO: checking
for working fork
" >&5
22937 echo $ECHO_N "checking
for working fork...
$ECHO_C" >&6; }
22938 if test "${ac_cv_func_fork_works+set}" = set; then
22939 echo $ECHO_N "(cached
) $ECHO_C" >&6
22941 if test "$cross_compiling" = yes; then
22942 ac_cv_func_fork_works=cross
22944 cat >conftest.$ac_ext <<_ACEOF
22947 cat confdefs.h >>conftest.$ac_ext
22948 cat >>conftest.$ac_ext <<_ACEOF
22949 /* end confdefs.h. */
22950 $ac_includes_default
22955 /* By Ruediger Kuhlmann. */
22956 return fork () < 0;
22962 rm -f conftest$ac_exeext
22963 if { (ac_try="$ac_link"
22964 case "(($ac_try" in
22965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22966 *) ac_try_echo=$ac_try;;
22968 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22969 (eval "$ac_link") 2>&5
22971 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22972 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22973 { (case "(($ac_try" in
22974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22975 *) ac_try_echo=$ac_try;;
22977 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22978 (eval "$ac_try") 2>&5
22980 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22981 (exit $ac_status); }; }; then
22982 ac_cv_func_fork_works=yes
22984 echo "$as_me: program exited with status
$ac_status" >&5
22985 echo "$as_me: failed program was
:" >&5
22986 sed 's/^/| /' conftest.$ac_ext >&5
22988 ( exit $ac_status )
22989 ac_cv_func_fork_works=no
22991 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22996 { echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
22997 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23000 ac_cv_func_fork_works=$ac_cv_func_fork
23002 if test "x
$ac_cv_func_fork_works" = xcross; then
23004 *-*-amigaos* | *-*-msdosdjgpp*)
23005 # Override, as these systems have only a dummy fork() stub
23006 ac_cv_func_fork_works=no
23009 ac_cv_func_fork_works=yes
23012 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
23013 echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
23015 ac_cv_func_vfork_works=$ac_cv_func_vfork
23016 if test "x
$ac_cv_func_vfork" = xyes; then
23017 { echo "$as_me:$LINENO: checking
for working vfork
" >&5
23018 echo $ECHO_N "checking
for working vfork...
$ECHO_C" >&6; }
23019 if test "${ac_cv_func_vfork_works+set}" = set; then
23020 echo $ECHO_N "(cached
) $ECHO_C" >&6
23022 if test "$cross_compiling" = yes; then
23023 ac_cv_func_vfork_works=cross
23025 cat >conftest.$ac_ext <<_ACEOF
23028 cat confdefs.h >>conftest.$ac_ext
23029 cat >>conftest.$ac_ext <<_ACEOF
23030 /* end confdefs.h. */
23031 /* Thanks to Paul Eggert for this test. */
23032 $ac_includes_default
23033 #include <sys/wait.h>
23034 #ifdef HAVE_VFORK_H
23035 # include <vfork.h>
23037 /* On some sparc systems, changes by the child to local and incoming
23038 argument registers are propagated back to the parent. The compiler
23039 is told about this with #include <vfork.h>, but some compilers
23040 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23041 static variable whose address is put into a register that is
23042 clobbered by the vfork. */
23045 sparc_address_test (int arg)
23047 sparc_address_test (arg) int arg;
23050 static pid_t child;
23068 pid_t parent = getpid ();
23071 sparc_address_test (0);
23076 /* Here is another test for sparc vfork register problems. This
23077 test uses lots of local variables, at least as many local
23078 variables as main has allocated so far including compiler
23079 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23080 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23081 reuse the register of parent for one of the local variables,
23082 since it will think that parent can't possibly be used any more
23083 in this routine. Assigning to the local variable will thus
23084 munge parent in the parent process. */
23086 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23087 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23088 /* Convince the compiler that p..p7 are live; otherwise, it might
23089 use the same hardware register for all 8 local variables. */
23090 if (p != p1 || p != p2 || p != p3 || p != p4
23091 || p != p5 || p != p6 || p != p7)
23094 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23095 from child file descriptors. If the child closes a descriptor
23096 before it execs or exits, this munges the parent's descriptor
23097 as well. Test for this by closing stdout in the child. */
23098 _exit(close(fileno(stdout)) != 0);
23103 while (wait(&status) != child)
23106 /* Was there some problem with vforking? */
23109 /* Did the child fail? (This shouldn't happen.) */
23112 /* Did the vfork/compiler bug occur? */
23113 || parent != getpid()
23115 /* Did the file descriptor bug occur? */
23116 || fstat(fileno(stdout), &st) != 0
23121 rm -f conftest$ac_exeext
23122 if { (ac_try="$ac_link"
23123 case "(($ac_try" in
23124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23125 *) ac_try_echo=$ac_try;;
23127 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23128 (eval "$ac_link") 2>&5
23130 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23131 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23132 { (case "(($ac_try" in
23133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23134 *) ac_try_echo=$ac_try;;
23136 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23137 (eval "$ac_try") 2>&5
23139 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23140 (exit $ac_status); }; }; then
23141 ac_cv_func_vfork_works=yes
23143 echo "$as_me: program exited with status
$ac_status" >&5
23144 echo "$as_me: failed program was
:" >&5
23145 sed 's/^/| /' conftest.$ac_ext >&5
23147 ( exit $ac_status )
23148 ac_cv_func_vfork_works=no
23150 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23155 { echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
23156 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23159 if test "x
$ac_cv_func_fork_works" = xcross; then
23160 ac_cv_func_vfork_works=$ac_cv_func_vfork
23161 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
23162 echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
23165 if test "x
$ac_cv_func_vfork_works" = xyes; then
23167 cat >>confdefs.h <<\_ACEOF
23168 #define HAVE_WORKING_VFORK 1
23173 cat >>confdefs.h <<\_ACEOF
23178 if test "x
$ac_cv_func_fork_works" = xyes; then
23180 cat >>confdefs.h <<\_ACEOF
23181 #define HAVE_WORKING_FORK 1
23187 { echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
23188 echo $ECHO_N "checking
for nl_langinfo and CODESET...
$ECHO_C" >&6; }
23189 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23190 echo $ECHO_N "(cached
) $ECHO_C" >&6
23192 cat >conftest.$ac_ext <<_ACEOF
23195 cat confdefs.h >>conftest.$ac_ext
23196 cat >>conftest.$ac_ext <<_ACEOF
23197 /* end confdefs.h. */
23198 #include <langinfo.h>
23202 char* cs = nl_langinfo(CODESET);
23207 rm -f conftest.$ac_objext conftest$ac_exeext
23208 if { (ac_try="$ac_link"
23209 case "(($ac_try" in
23210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23211 *) ac_try_echo=$ac_try;;
23213 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23214 (eval "$ac_link") 2>conftest.er1
23216 grep -v '^ *+' conftest.er1 >conftest.err
23218 cat conftest.err >&5
23219 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23220 (exit $ac_status); } && {
23221 test -z "$ac_c_werror_flag" ||
23222 test ! -s conftest.err
23223 } && test -s conftest$ac_exeext &&
23224 $as_test_x conftest$ac_exeext; then
23225 emacs_cv_langinfo_codeset=yes
23227 echo "$as_me: failed program was
:" >&5
23228 sed 's/^/| /' conftest.$ac_ext >&5
23230 emacs_cv_langinfo_codeset=no
23233 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23234 conftest$ac_exeext conftest.$ac_ext
23237 { echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
23238 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23239 if test $emacs_cv_langinfo_codeset = yes; then
23241 cat >>confdefs.h <<\_ACEOF
23242 #define HAVE_LANGINFO_CODESET 1
23247 { echo "$as_me:$LINENO: checking
for size_t
" >&5
23248 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
23249 if test "${ac_cv_type_size_t+set}" = set; then
23250 echo $ECHO_N "(cached
) $ECHO_C" >&6
23252 cat >conftest.$ac_ext <<_ACEOF
23255 cat confdefs.h >>conftest.$ac_ext
23256 cat >>conftest.$ac_ext <<_ACEOF
23257 /* end confdefs.h. */
23258 $ac_includes_default
23259 typedef size_t ac__type_new_;
23263 if ((ac__type_new_ *) 0)
23265 if (sizeof (ac__type_new_))
23271 rm -f conftest.$ac_objext
23272 if { (ac_try="$ac_compile"
23273 case "(($ac_try" in
23274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23275 *) ac_try_echo=$ac_try;;
23277 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23278 (eval "$ac_compile") 2>conftest.er1
23280 grep -v '^ *+' conftest.er1 >conftest.err
23282 cat conftest.err >&5
23283 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23284 (exit $ac_status); } && {
23285 test -z "$ac_c_werror_flag" ||
23286 test ! -s conftest.err
23287 } && test -s conftest.$ac_objext; then
23288 ac_cv_type_size_t=yes
23290 echo "$as_me: failed program was
:" >&5
23291 sed 's/^/| /' conftest.$ac_ext >&5
23293 ac_cv_type_size_t=no
23296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23298 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
23299 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23300 if test $ac_cv_type_size_t = yes; then
23302 cat >>confdefs.h <<_ACEOF
23303 #define HAVE_SIZE_T 1
23310 { echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
23311 echo $ECHO_N "checking
for mbstate_t...
$ECHO_C" >&6; }
23312 if test "${ac_cv_type_mbstate_t+set}" = set; then
23313 echo $ECHO_N "(cached
) $ECHO_C" >&6
23315 cat >conftest.$ac_ext <<_ACEOF
23318 cat confdefs.h >>conftest.$ac_ext
23319 cat >>conftest.$ac_ext <<_ACEOF
23320 /* end confdefs.h. */
23321 $ac_includes_default
23322 # include <wchar.h>
23326 mbstate_t x; return sizeof x;
23331 rm -f conftest.$ac_objext
23332 if { (ac_try="$ac_compile"
23333 case "(($ac_try" in
23334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23335 *) ac_try_echo=$ac_try;;
23337 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23338 (eval "$ac_compile") 2>conftest.er1
23340 grep -v '^ *+' conftest.er1 >conftest.err
23342 cat conftest.err >&5
23343 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23344 (exit $ac_status); } && {
23345 test -z "$ac_c_werror_flag" ||
23346 test ! -s conftest.err
23347 } && test -s conftest.$ac_objext; then
23348 ac_cv_type_mbstate_t=yes
23350 echo "$as_me: failed program was
:" >&5
23351 sed 's/^/| /' conftest.$ac_ext >&5
23353 ac_cv_type_mbstate_t=no
23356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23358 { echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
23359 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23360 if test $ac_cv_type_mbstate_t = yes; then
23362 cat >>confdefs.h <<\_ACEOF
23363 #define HAVE_MBSTATE_T 1
23368 cat >>confdefs.h <<\_ACEOF
23369 #define mbstate_t int
23374 { echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
23375 echo $ECHO_N "checking
for C restrict keyword...
$ECHO_C" >&6; }
23376 if test "${emacs_cv_c_restrict+set}" = set; then
23377 echo $ECHO_N "(cached
) $ECHO_C" >&6
23379 cat >conftest.$ac_ext <<_ACEOF
23382 cat confdefs.h >>conftest.$ac_ext
23383 cat >>conftest.$ac_ext <<_ACEOF
23384 /* end confdefs.h. */
23385 void fred (int *restrict x);
23394 rm -f conftest.$ac_objext
23395 if { (ac_try="$ac_compile"
23396 case "(($ac_try" in
23397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23398 *) ac_try_echo=$ac_try;;
23400 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23401 (eval "$ac_compile") 2>conftest.er1
23403 grep -v '^ *+' conftest.er1 >conftest.err
23405 cat conftest.err >&5
23406 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23407 (exit $ac_status); } && {
23408 test -z "$ac_c_werror_flag" ||
23409 test ! -s conftest.err
23410 } && test -s conftest.$ac_objext; then
23411 emacs_cv_c_restrict=yes
23413 echo "$as_me: failed program was
:" >&5
23414 sed 's/^/| /' conftest.$ac_ext >&5
23416 cat >conftest.$ac_ext <<_ACEOF
23419 cat confdefs.h >>conftest.$ac_ext
23420 cat >>conftest.$ac_ext <<_ACEOF
23421 /* end confdefs.h. */
23422 void fred (int *__restrict x);
23431 rm -f conftest.$ac_objext
23432 if { (ac_try="$ac_compile"
23433 case "(($ac_try" in
23434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23435 *) ac_try_echo=$ac_try;;
23437 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23438 (eval "$ac_compile") 2>conftest.er1
23440 grep -v '^ *+' conftest.er1 >conftest.err
23442 cat conftest.err >&5
23443 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23444 (exit $ac_status); } && {
23445 test -z "$ac_c_werror_flag" ||
23446 test ! -s conftest.err
23447 } && test -s conftest.$ac_objext; then
23448 emacs_cv_c_restrict=__restrict
23450 echo "$as_me: failed program was
:" >&5
23451 sed 's/^/| /' conftest.$ac_ext >&5
23453 emacs_cv_c_restrict=no
23456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23461 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
23462 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23463 case "$emacs_cv_c_restrict" in
23464 yes) emacs_restrict=restrict;;
23465 no) emacs_restrict="";;
23466 *) emacs_restrict="$emacs_cv_c_restrict";;
23468 if test "$emacs_restrict" != __restrict; then
23470 cat >>confdefs.h <<_ACEOF
23471 #define __restrict $emacs_restrict
23476 { echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
23477 echo $ECHO_N "checking
for C restricted array declarations...
$ECHO_C" >&6; }
23478 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23479 echo $ECHO_N "(cached
) $ECHO_C" >&6
23481 cat >conftest.$ac_ext <<_ACEOF
23484 cat confdefs.h >>conftest.$ac_ext
23485 cat >>conftest.$ac_ext <<_ACEOF
23486 /* end confdefs.h. */
23487 void fred (int x[__restrict]);
23496 rm -f conftest.$ac_objext
23497 if { (ac_try="$ac_compile"
23498 case "(($ac_try" in
23499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23500 *) ac_try_echo=$ac_try;;
23502 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23503 (eval "$ac_compile") 2>conftest.er1
23505 grep -v '^ *+' conftest.er1 >conftest.err
23507 cat conftest.err >&5
23508 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23509 (exit $ac_status); } && {
23510 test -z "$ac_c_werror_flag" ||
23511 test ! -s conftest.err
23512 } && test -s conftest.$ac_objext; then
23513 emacs_cv_c_restrict_arr=yes
23515 echo "$as_me: failed program was
:" >&5
23516 sed 's/^/| /' conftest.$ac_ext >&5
23518 emacs_cv_c_restrict_arr=no
23521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23523 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
23524 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23525 if test "$emacs_cv_c_restrict_arr" = yes; then
23527 cat >>confdefs.h <<\_ACEOF
23528 #define __restrict_arr __restrict
23535 # Set up the CFLAGS for real compilation, so we can substitute it.
23536 CFLAGS="$REAL_CFLAGS"
23537 CPPFLAGS="$REAL_CPPFLAGS"
23539 #### Find out which version of Emacs this is.
23540 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23541 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
23542 if test x"${version}" = x; then
23543 { { echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&5
23544 echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&2;}
23545 { (exit 1); exit 1; }; }
23548 ### Specify what sort of things we'll be editing into Makefile and config.h.
23549 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23585 cat >>confdefs.h <<_ACEOF
23586 #define EMACS_CONFIGURATION "${canonical}"
23590 cat >>confdefs.h <<_ACEOF
23591 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23595 cat >>confdefs.h <<_ACEOF
23596 #define config_machfile "${machfile}"
23600 cat >>confdefs.h <<_ACEOF
23601 #define config_opsysfile "${opsysfile}"
23605 cat >>confdefs.h <<_ACEOF
23606 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23610 cat >>confdefs.h <<_ACEOF
23611 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23615 cat >>confdefs.h <<_ACEOF
23616 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23620 cat >>confdefs.h <<_ACEOF
23621 #define UNEXEC_SRC ${UNEXEC_SRC}
23625 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23627 cat >>confdefs.h <<\_ACEOF
23628 #define HAVE_X_WINDOWS 1
23632 if test "${USE_X_TOOLKIT}" != "none
" ; then
23634 cat >>confdefs.h <<\_ACEOF
23635 #define USE_X_TOOLKIT 1
23639 if test "${HAVE_X11}" = "yes" ; then
23641 cat >>confdefs.h <<\_ACEOF
23646 if test "${HAVE_XFREE386}" = "yes" ; then
23648 cat >>confdefs.h <<\_ACEOF
23649 #define HAVE_XFREE386 1
23653 if test "${HAVE_MENUS}" = "yes" ; then
23655 cat >>confdefs.h <<\_ACEOF
23656 #define HAVE_MENUS 1
23660 if test "${GNU_MALLOC}" = "yes" ; then
23662 cat >>confdefs.h <<\_ACEOF
23663 #define GNU_MALLOC 1
23667 if test "${REL_ALLOC}" = "yes" ; then
23669 cat >>confdefs.h <<\_ACEOF
23670 #define REL_ALLOC 1
23680 #### Report on what we decided to do.
23681 #### Report GTK as a toolkit, even if it doesn't use Xt.
23682 #### It makes printing result more understandable as using GTK sets
23683 #### toolkit_scroll_bars to yes by default.
23684 if test "${HAVE_GTK}" = "yes"; then
23689 Configured
for \
`${canonical}'.
23691 Where should the build process find the source code? ${srcdir}
23692 What operating system and machine description files should Emacs use?
23693 \`${opsysfile}' and \`${machfile}'
23694 What compiler should emacs be built with?
${CC} ${CFLAGS}
23695 Should Emacs use the GNU version of malloc?
${GNU_MALLOC}${GNU_MALLOC_reason}
23696 Should Emacs use a relocating allocator
for buffers?
${REL_ALLOC}
23697 Should Emacs use mmap
(2) for buffer allocation?
$use_mmap_for_buffers
23698 What window system should Emacs use?
${window_system}
23699 What toolkit should Emacs use?
${USE_X_TOOLKIT}"
23701 if test -n "${x_includes}"; then
23702 echo " Where
do we
find X Windows header files?
${x_includes}"
23704 echo " Where
do we
find X Windows header files? Standard
dirs"
23706 if test -n "${x_libraries}"; then
23707 echo " Where
do we
find X Windows libraries?
${x_libraries}"
23709 echo " Where
do we
find X Windows libraries? Standard
dirs"
23712 echo " Does Emacs use
-lXaw3d?
${HAVE_XAW3D}"
23713 echo " Does Emacs use
-lXpm?
${HAVE_XPM}"
23714 echo " Does Emacs use
-ljpeg?
${HAVE_JPEG}"
23715 echo " Does Emacs use
-ltiff?
${HAVE_TIFF}"
23716 echo " Does Emacs use a gif library?
${HAVE_GIF} $ac_gif_lib_name"
23717 echo " Does Emacs use
-lpng?
${HAVE_PNG}"
23718 echo " Does Emacs use
-lrsvg-2?
${HAVE_RSVG}"
23719 echo " Does Emacs use
-lgpm?
${HAVE_GPM}"
23720 echo " Does Emacs use X toolkit scroll bars?
${USE_TOOLKIT_SCROLL_BARS}"
23723 if test $USE_XASSERTS = yes; then
23724 echo " Compiling with asserts turned on.
"
23725 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23729 if test "$USE_X_TOOLKIT" = GTK; then
23730 case "$canonical" in
23732 echo "There are known problems with Emacs and Gtk
+ on cygwin
, so you
23733 will probably get a crash on startup. If this happens
, please use another
23734 toolkit
for Emacs. See etc
/PROBLEMS
for more information.
"
23741 # Remove any trailing slashes in these variables.
23742 test "${prefix}" != NONE &&
23743 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23744 test "${exec_prefix}" != NONE &&
23745 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23747 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23748 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23749 ## from Makefile.c can correctly provide the arg `-traditional' to the
23752 cat >conftest.$ac_ext <<_ACEOF
23755 cat confdefs.h >>conftest.$ac_ext
23756 cat >>conftest.$ac_ext <<_ACEOF
23757 /* end confdefs.h. */
23760 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
23761 $EGREP "yes..
yes" >/dev/null 2>&1; then
23762 CPP_NEED_TRADITIONAL=no
23764 CPP_NEED_TRADITIONAL=yes
23769 ac_config_files="$ac_config_files Makefile lib-src
/Makefile.c
:lib-src
/Makefile.
in oldXMenu
/Makefile man
/Makefile lwlib
/Makefile src
/Makefile.c
:src
/Makefile.
in lisp
/Makefile lispref
/Makefile lispintro
/Makefile leim
/Makefile
"
23771 ac_config_commands="$ac_config_commands default
"
23773 cat >confcache <<\_ACEOF
23774 # This file is a shell script that caches the results of configure
23775 # tests run on this system so they can be shared between configure
23776 # scripts and configure runs, see configure's option --config-cache.
23777 # It is not useful on other systems. If it contains results you don't
23778 # want to keep, you may remove or edit it.
23780 # config.status only pays attention to the cache file if you give it
23781 # the --recheck option to rerun configure.
23783 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23784 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23785 # following values.
23789 # The following way of writing the cache mishandles newlines in values,
23790 # but we know of no workaround that is simple, portable, and efficient.
23791 # So, we kill variables containing newlines.
23792 # Ultrix sh set writes to stderr and can't be redirected directly,
23793 # and sets the high bit in the cache file unless we assign to the vars.
23795 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23796 eval ac_val=\$$ac_var
23800 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
23801 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
23804 _ | IFS | as_nl) ;; #(
23805 *) $as_unset $ac_var ;;
23811 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23812 *${as_nl}ac_space=\ *)
23813 # `set' does not quote correctly, so add quotes (double-quote
23814 # substitution turns \\\\ into \\, and sed turns \\ into \).
23817 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
23820 # `set' quotes correctly as required by POSIX, so do not add quotes.
23821 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
23830 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23832 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23834 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23835 if test -w "$cache_file"; then
23836 test "x
$cache_file" != "x
/dev
/null
" &&
23837 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
23838 echo "$as_me: updating cache
$cache_file" >&6;}
23839 cat confcache >$cache_file
23841 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
23842 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
23847 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
23848 # Let make expand exec_prefix.
23849 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
23851 DEFS=-DHAVE_CONFIG_H
23855 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
23856 # 1. Remove the extension, and $U if already installed.
23857 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23858 ac_i=`echo "$ac_i" | sed "$ac_script"`
23859 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23860 # will be set to the directory where LIBOBJS objects are built.
23861 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
23862 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
23864 LIBOBJS=$ac_libobjs
23866 LTLIBOBJS=$ac_ltlibobjs
23870 : ${CONFIG_STATUS=./config.status}
23871 ac_clean_files_save=$ac_clean_files
23872 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23873 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
23874 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
23875 cat >$CONFIG_STATUS <<_ACEOF
23877 # Generated by $as_me.
23878 # Run this file to recreate the current configuration.
23879 # Compiler output produced by configure, useful for debugging
23880 # configure, is in config.log if it exists.
23883 ac_cs_recheck=false
23885 SHELL=\${CONFIG_SHELL-$SHELL}
23888 cat >>$CONFIG_STATUS <<\_ACEOF
23889 ## --------------------- ##
23890 ## M4sh Initialization. ##
23891 ## --------------------- ##
23893 # Be more Bourne compatible
23894 DUALCASE=1; export DUALCASE # for MKS sh
23895 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23898 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23899 # is contrary to our usage. Disable this feature.
23900 alias -g '${1+"$@"}'='"$@
"'
23901 setopt NO_GLOB_SUBST
23903 case `(set -o) 2>/dev/null` in
23904 *posix*) set -o posix ;;
23913 # Avoid depending upon Character Ranges.
23914 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23915 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23916 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23917 as_cr_digits='0123456789'
23918 as_cr_alnum=$as_cr_Letters$as_cr_digits
23920 # The user is always right.
23921 if test "${PATH_SEPARATOR+set}" != set; then
23922 echo "#! /bin/sh" >conf$$.sh
23923 echo "exit 0" >>conf$$.sh
23925 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
23933 # Support unset when possible.
23934 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
23942 # We need space, tab and new line, in precisely that order. Quoting is
23943 # there to prevent editors from complaining about space-tab.
23944 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23945 # splitting by setting IFS to empty value.)
23950 # Find who we are. Look in the path if we contain no directory separator.
23952 *[\\/]* ) as_myself
=$0 ;;
23953 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23954 for as_dir
in $PATH
23957 test -z "$as_dir" && as_dir
=.
23958 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
23964 # We did not find ourselves, most probably we were run as `sh COMMAND'
23965 # in which case we are not to be found in the path.
23966 if test "x$as_myself" = x
; then
23969 if test ! -f "$as_myself"; then
23970 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23971 { (exit 1); exit 1; }
23974 # Work around bugs in pre-3.0 UWIN ksh.
23975 for as_var
in ENV MAIL MAILPATH
23976 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
23984 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23985 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23986 LC_TELEPHONE LC_TIME
23988 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23989 eval $as_var=C
; export $as_var
23991 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
23995 # Required to use basename.
23996 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
23997 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24003 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24004 as_basename
=basename
24010 # Name of the executable.
24011 as_me
=`$as_basename -- "$0" ||
24012 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24013 X"$0" : 'X\(//\)$' \| \
24014 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24016 sed '/^.*\/\([^/][^/]*\)\/*$/{
24035 as_lineno_1
=$LINENO
24036 as_lineno_2
=$LINENO
24037 test "x$as_lineno_1" != "x$as_lineno_2" &&
24038 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
24040 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24041 # uniformly replaced by the line number. The first 'sed' inserts a
24042 # line-number line after each line using $LINENO; the second 'sed'
24043 # does the real work. The second script uses 'N' to pair each
24044 # line-number line with the line containing $LINENO, and appends
24045 # trailing '-' during substitution so that $LINENO is not a special
24046 # case at line end.
24047 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24048 # scripts with optimization help from Paolo Bonzini. Blame Lee
24049 # E. McMahon (1931-1989) for sed's syntax. :-)
24061 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24064 ' >$as_me.lineno
&&
24065 chmod +x
"$as_me.lineno" ||
24066 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24067 { (exit 1); exit 1; }; }
24069 # Don't try to exec as it changes $[0], causing all sort of problems
24070 # (the dirname of $[0] is not the place where we might find the
24071 # original and so on. Autoconf is especially sensitive to this).
24072 .
"./$as_me.lineno"
24073 # Exit status is that of the last command.
24078 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
24084 ECHO_C
= ECHO_N
= ECHO_T
=
24085 case `echo -n x` in
24087 case `echo 'x\c'` in
24088 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
24095 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24096 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24102 rm -f conf$$ conf$$.exe conf$$.
file
24103 if test -d conf$$.dir
; then
24104 rm -f conf$$.dir
/conf$$.
file
24110 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
24112 # ... but there are two gotchas:
24113 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24114 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24115 # In both cases, we have to default to `cp -p'.
24116 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
24118 elif ln conf$$.
file conf$$
2>/dev
/null
; then
24123 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
24124 rmdir conf$$.dir
2>/dev
/null
24126 if mkdir
-p .
2>/dev
/null
; then
24129 test -d .
/-p && rmdir .
/-p
24133 if test -x / >/dev
/null
2>&1; then
24134 as_test_x
='test -x'
24136 if ls -dL / >/dev
/null
2>&1; then
24143 if test -d "$1"; then
24149 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24150 ???[sx]*):;;*)false;;esac;fi
24154 as_executable_p
=$as_test_x
24156 # Sed expression to map a string onto a valid CPP name.
24157 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24159 # Sed expression to map a string onto a valid variable name.
24160 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24165 # Save the log message, to keep $[0] and so on meaningful, and to
24166 # report actual input values of CONFIG_FILES etc. instead of their
24167 # values after options handling.
24169 This file was extended by $as_me, which was
24170 generated by GNU Autoconf 2.61. Invocation command line was
24172 CONFIG_FILES = $CONFIG_FILES
24173 CONFIG_HEADERS = $CONFIG_HEADERS
24174 CONFIG_LINKS = $CONFIG_LINKS
24175 CONFIG_COMMANDS = $CONFIG_COMMANDS
24178 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24183 cat >>$CONFIG_STATUS <<_ACEOF
24184 # Files that config.status was made for.
24185 config_files="$ac_config_files"
24186 config_headers="$ac_config_headers"
24187 config_commands="$ac_config_commands"
24191 cat >>$CONFIG_STATUS <<\_ACEOF
24193 \`$as_me' instantiates files from templates according to the
24194 current configuration.
24196 Usage: $0 [OPTIONS] [FILE]...
24198 -h, --help print this help, then exit
24199 -V, --version print version number and configuration settings, then exit
24200 -q, --quiet do not print progress messages
24201 -d, --debug don't remove temporary files
24202 --recheck update $as_me by reconfiguring in the same conditions
24203 --file=FILE[:TEMPLATE]
24204 instantiate the configuration file FILE
24205 --header=FILE[:TEMPLATE]
24206 instantiate the configuration header FILE
24208 Configuration files:
24211 Configuration headers:
24214 Configuration commands:
24217 Report bugs to <bug-autoconf@gnu.org>."
24220 cat >>$CONFIG_STATUS <<_ACEOF
24223 configured by $0, generated by GNU Autoconf 2.61,
24224 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24226 Copyright (C) 2006 Free Software Foundation, Inc.
24227 This config.status script is free software; the Free Software Foundation
24228 gives unlimited permission to copy, distribute and modify it."
24235 cat >>$CONFIG_STATUS <<\_ACEOF
24236 # If no file are specified by the user, then we need to provide default
24237 # value. By we need to know if files were specified by the user.
24243 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
24244 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
24255 # Handling of the options.
24256 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
24258 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
24259 echo "$ac_cs_version"; exit ;;
24260 --debug |
--debu |
--deb |
--de |
--d |
-d )
24262 --file |
--fil |
--fi |
--f )
24264 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
24265 ac_need_defaults
=false
;;
24266 --header |
--heade |
--head |
--hea )
24268 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
24269 ac_need_defaults
=false
;;
24271 # Conflict between --help and --header
24272 { echo "$as_me: error: ambiguous option: $1
24273 Try \`$0 --help' for more information." >&2
24274 { (exit 1); exit 1; }; };;
24275 --help |
--hel |
-h )
24276 echo "$ac_cs_usage"; exit ;;
24277 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
24278 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
24281 # This is an error.
24282 -*) { echo "$as_me: error: unrecognized option: $1
24283 Try \`$0 --help' for more information." >&2
24284 { (exit 1); exit 1; }; } ;;
24286 *) ac_config_targets
="$ac_config_targets $1"
24287 ac_need_defaults
=false
;;
24293 ac_configure_extra_args
=
24295 if $ac_cs_silent; then
24297 ac_configure_extra_args
="$ac_configure_extra_args --silent"
24301 cat >>$CONFIG_STATUS <<_ACEOF
24302 if \$ac_cs_recheck; then
24303 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24304 CONFIG_SHELL=$SHELL
24305 export CONFIG_SHELL
24306 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24310 cat >>$CONFIG_STATUS <<\_ACEOF
24314 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24315 ## Running $as_me. ##
24321 cat >>$CONFIG_STATUS <<_ACEOF
24325 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
24329 cat >>$CONFIG_STATUS <<\_ACEOF
24331 # Handling of arguments.
24332 for ac_config_target
in $ac_config_targets
24334 case $ac_config_target in
24335 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24336 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
24337 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24338 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
24339 "man/Makefile") CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
24340 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
24341 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24342 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
24343 "lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
24344 "lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
24345 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
24346 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
24348 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24349 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24350 { (exit 1); exit 1; }; };;
24355 # If the user did not use the arguments to specify the items to instantiate,
24356 # then the envvar interface is used. Set only those that are not.
24357 # We use the long form for the default assignment because of an extremely
24358 # bizarre bug on SunOS 4.1.3.
24359 if $ac_need_defaults; then
24360 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
24361 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
24362 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
24365 # Have a temporary directory for convenience. Make it in the build tree
24366 # simply because there is no reason against having it here, and in addition,
24367 # creating and moving files from /tmp can sometimes cause problems.
24368 # Hook for its removal unless debugging.
24369 # Note that there is a small window in which the directory will not be cleaned:
24370 # after its creation but before its name has been assigned to `$tmp'.
24374 trap 'exit_status=$?
24375 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24377 trap '{ (exit 1); exit 1; }' 1 2 13 15
24379 # Create a (secure) tmp directory for tmp files.
24382 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24383 test -n "$tmp" && test -d "$tmp"
24386 tmp
=.
/conf$$
-$RANDOM
24387 (umask 077 && mkdir
"$tmp")
24390 echo "$me: cannot create a temporary directory in ." >&2
24391 { (exit 1); exit 1; }
24395 # Set up the sed scripts for CONFIG_FILES section.
24398 # No need to generate the scripts if there are no CONFIG_FILES.
24399 # This happens for instance when ./config.status config.h
24400 if test -n "$CONFIG_FILES"; then
24407 for ac_last_try
in false false false false false
:; do
24408 cat >conf$
$subs.
sed <<_ACEOF
24409 SHELL!$SHELL$ac_delim
24410 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24411 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24412 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24413 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24414 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24415 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24416 exec_prefix!$exec_prefix$ac_delim
24417 prefix!$prefix$ac_delim
24418 program_transform_name!$program_transform_name$ac_delim
24419 bindir!$bindir$ac_delim
24420 sbindir!$sbindir$ac_delim
24421 libexecdir!$libexecdir$ac_delim
24422 datarootdir!$datarootdir$ac_delim
24423 datadir!$datadir$ac_delim
24424 sysconfdir!$sysconfdir$ac_delim
24425 sharedstatedir!$sharedstatedir$ac_delim
24426 localstatedir!$localstatedir$ac_delim
24427 includedir!$includedir$ac_delim
24428 oldincludedir!$oldincludedir$ac_delim
24429 docdir!$docdir$ac_delim
24430 infodir!$infodir$ac_delim
24431 htmldir!$htmldir$ac_delim
24432 dvidir!$dvidir$ac_delim
24433 pdfdir!$pdfdir$ac_delim
24434 psdir!$psdir$ac_delim
24435 libdir!$libdir$ac_delim
24436 localedir!$localedir$ac_delim
24437 mandir!$mandir$ac_delim
24438 DEFS!$DEFS$ac_delim
24439 ECHO_C!$ECHO_C$ac_delim
24440 ECHO_N!$ECHO_N$ac_delim
24441 ECHO_T!$ECHO_T$ac_delim
24442 LIBS!$LIBS$ac_delim
24443 build_alias!$build_alias$ac_delim
24444 host_alias!$host_alias$ac_delim
24445 target_alias!$target_alias$ac_delim
24446 MAINT!$MAINT$ac_delim
24447 build!$build$ac_delim
24448 build_cpu!$build_cpu$ac_delim
24449 build_vendor!$build_vendor$ac_delim
24450 build_os!$build_os$ac_delim
24451 host!$host$ac_delim
24452 host_cpu!$host_cpu$ac_delim
24453 host_vendor!$host_vendor$ac_delim
24454 host_os!$host_os$ac_delim
24456 CFLAGS!$CFLAGS$ac_delim
24457 LDFLAGS!$LDFLAGS$ac_delim
24458 CPPFLAGS!$CPPFLAGS$ac_delim
24459 ac_ct_CC!$ac_ct_CC$ac_delim
24460 EXEEXT!$EXEEXT$ac_delim
24461 OBJEXT!$OBJEXT$ac_delim
24463 GREP!$GREP$ac_delim
24464 EGREP!$EGREP$ac_delim
24465 LN_S!$LN_S$ac_delim
24466 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24467 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24468 INSTALL_DATA!$INSTALL_DATA$ac_delim
24469 RANLIB!$RANLIB$ac_delim
24470 INSTALL_INFO!$INSTALL_INFO$ac_delim
24471 GZIP_PROG!$GZIP_PROG$ac_delim
24472 MAKEINFO!$MAKEINFO$ac_delim
24473 LIBSOUND!$LIBSOUND$ac_delim
24474 PKG_CONFIG!$PKG_CONFIG$ac_delim
24475 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24476 ALSA_LIBS!$ALSA_LIBS$ac_delim
24477 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24478 SET_MAKE!$SET_MAKE$ac_delim
24479 XMKMF!$XMKMF$ac_delim
24480 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
24481 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
24482 RSVG_LIBS!$RSVG_LIBS$ac_delim
24483 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24484 GTK_LIBS!$GTK_LIBS$ac_delim
24485 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24486 XFT_LIBS!$XFT_LIBS$ac_delim
24487 ALLOCA!$ALLOCA$ac_delim
24488 liblockfile!$liblockfile$ac_delim
24489 LIBOBJS!$LIBOBJS$ac_delim
24490 NEED_SETGID!$NEED_SETGID$ac_delim
24491 KMEM_GROUP!$KMEM_GROUP$ac_delim
24492 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24493 GETOPT_H!$GETOPT_H$ac_delim
24494 GETOPTOBJS!$GETOPTOBJS$ac_delim
24495 version!$version$ac_delim
24496 configuration!$configuration$ac_delim
24497 canonical!$canonical$ac_delim
24498 srcdir!$srcdir$ac_delim
24499 lispdir!$lispdir$ac_delim
24500 locallisppath!$locallisppath$ac_delim
24501 lisppath!$lisppath$ac_delim
24502 x_default_search_path!$x_default_search_path$ac_delim
24503 etcdir!$etcdir$ac_delim
24504 archlibdir!$archlibdir$ac_delim
24505 bitmapdir!$bitmapdir$ac_delim
24508 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24510 elif $ac_last_try; then
24511 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24512 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24513 { (exit 1); exit 1; }; }
24515 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24519 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24520 if test -n "$ac_eof"; then
24521 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24522 ac_eof
=`expr $ac_eof + 1`
24525 cat >>$CONFIG_STATUS <<_ACEOF
24526 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24527 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24530 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24531 s/^/s,@/; s/!/@,|#_!!_#|/
24534 s/'"$ac_delim"'$/,g/; t
24536 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24537 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24538 rm -f conf$
$subs.
sed
24539 cat >>$CONFIG_STATUS <<_ACEOF
24545 for ac_last_try
in false false false false false
:; do
24546 cat >conf$
$subs.
sed <<_ACEOF
24547 gamedir!$gamedir$ac_delim
24548 gameuser!$gameuser$ac_delim
24549 c_switch_system!$c_switch_system$ac_delim
24550 c_switch_machine!$c_switch_machine$ac_delim
24551 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
24552 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
24553 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
24554 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
24555 machfile!$machfile$ac_delim
24556 opsysfile!$opsysfile$ac_delim
24557 carbon_appdir!$carbon_appdir$ac_delim
24558 LTLIBOBJS!$LTLIBOBJS$ac_delim
24561 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 12; then
24563 elif $ac_last_try; then
24564 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24565 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24566 { (exit 1); exit 1; }; }
24568 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24572 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24573 if test -n "$ac_eof"; then
24574 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24575 ac_eof
=`expr $ac_eof + 1`
24578 cat >>$CONFIG_STATUS <<_ACEOF
24579 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24580 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24583 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24584 s/^/s,@/; s/!/@,|#_!!_#|/
24587 s/'"$ac_delim"'$/,g/; t
24589 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24590 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24591 rm -f conf$
$subs.
sed
24592 cat >>$CONFIG_STATUS <<_ACEOF
24599 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24600 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24601 # trailing colons and then remove the whole line if VPATH becomes empty
24602 # (actually we leave an empty line to preserve line numbers).
24603 if test "x$srcdir" = x.
; then
24604 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
24605 s/:*\$(srcdir):*/:/
24606 s/:*\${srcdir}:*/:/
24608 s/^\([^=]*=[ ]*\):*/\1/
24614 cat >>$CONFIG_STATUS <<\_ACEOF
24615 fi # test -n "$CONFIG_FILES"
24618 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
24621 :[FHLC
]) ac_mode
=$ac_tag; continue;;
24623 case $ac_mode$ac_tag in
24625 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24626 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24627 { (exit 1); exit 1; }; };;
24628 :[FH
]-) ac_tag
=-:-;;
24629 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
24646 -) ac_f
="$tmp/stdin";;
24647 *) # Look for the file first in the build tree, then in the source tree
24648 # (if the path is not absolute). The absolute path cannot be DOS-style,
24649 # because $ac_f cannot contain `:'.
24653 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
24655 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24656 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24657 { (exit 1); exit 1; }; };;
24659 ac_file_inputs
="$ac_file_inputs $ac_f"
24662 # Let's still pretend it is `configure' which instantiates (i.e., don't
24663 # use $as_me), people would be surprised to read:
24664 # /* config.h. Generated by config.status. */
24665 configure_input
="Generated from "`IFS=:
24666 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24667 if test x
"$ac_file" != x-
; then
24668 configure_input
="$ac_file. $configure_input"
24669 { echo "$as_me:$LINENO: creating $ac_file" >&5
24670 echo "$as_me: creating $ac_file" >&6;}
24674 *:-:* |
*:-) cat >"$tmp/stdin";;
24679 ac_dir
=`$as_dirname -- "$ac_file" ||
24680 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24681 X"$ac_file" : 'X\(//\)[^/]' \| \
24682 X"$ac_file" : 'X\(//\)$' \| \
24683 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24685 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24689 /^X\(\/\/\)[^/].*/{
24704 -*) as_dir
=.
/$as_dir;;
24706 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
24710 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24711 *) as_qdir
=$as_dir;;
24713 as_dirs
="'$as_qdir' $as_dirs"
24714 as_dir
=`$as_dirname -- "$as_dir" ||
24715 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24716 X"$as_dir" : 'X\(//\)[^/]' \| \
24717 X"$as_dir" : 'X\(//\)$' \| \
24718 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24724 /^X\(\/\/\)[^/].*/{
24737 test -d "$as_dir" && break
24739 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
24740 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24741 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24742 { (exit 1); exit 1; }; }; }
24746 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24748 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24749 # A ".." for each directory in $ac_dir_suffix.
24750 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24751 case $ac_top_builddir_sub in
24752 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24753 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
24756 ac_abs_top_builddir
=$ac_pwd
24757 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
24758 # for backward compatibility:
24759 ac_top_builddir
=$ac_top_build_prefix
24762 .
) # We are building in place.
24764 ac_top_srcdir
=$ac_top_builddir_sub
24765 ac_abs_top_srcdir
=$ac_pwd ;;
24766 [\\/]* | ?
:[\\/]* ) # Absolute name.
24767 ac_srcdir
=$srcdir$ac_dir_suffix;
24768 ac_top_srcdir
=$srcdir
24769 ac_abs_top_srcdir
=$srcdir ;;
24770 *) # Relative name.
24771 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
24772 ac_top_srcdir
=$ac_top_build_prefix$srcdir
24773 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
24775 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
24785 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
24786 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
24790 cat >>$CONFIG_STATUS <<\_ACEOF
24791 # If the template does not know about datarootdir, expand it.
24792 # FIXME: This hack should be removed a few years after 2.60.
24793 ac_datarootdir_hack
=; ac_datarootdir_seen
=
24795 case `sed -n '/datarootdir/ {
24804 ' $ac_file_inputs` in
24805 *datarootdir
*) ac_datarootdir_seen
=yes;;
24806 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
24807 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24808 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24810 cat >>$CONFIG_STATUS <<_ACEOF
24811 ac_datarootdir_hack='
24812 s&@datadir@&$datadir&g
24813 s&@docdir@&$docdir&g
24814 s&@infodir@&$infodir&g
24815 s&@localedir@&$localedir&g
24816 s&@mandir@&$mandir&g
24817 s&\\\${datarootdir}&$datarootdir&g' ;;
24821 # Neutralize VPATH when `$srcdir' = `.'.
24822 # Shell code in configure.ac might set extrasub.
24823 # FIXME: do we really want to maintain this feature?
24824 cat >>$CONFIG_STATUS <<_ACEOF
24828 cat >>$CONFIG_STATUS <<\_ACEOF
24830 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
24831 s
&@configure_input@
&$configure_input&;t t
24832 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
24833 s
&@srcdir@
&$ac_srcdir&;t t
24834 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
24835 s
&@top_srcdir@
&$ac_top_srcdir&;t t
24836 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
24837 s
&@builddir@
&$ac_builddir&;t t
24838 s
&@abs_builddir@
&$ac_abs_builddir&;t t
24839 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
24840 s
&@INSTALL@
&$ac_INSTALL&;t t
24841 $ac_datarootdir_hack
24842 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
24844 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24845 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
24846 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
24847 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
24848 which seems to be undefined. Please make sure it is defined." >&5
24849 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
24850 which seems to be undefined. Please make sure it is defined." >&2;}
24854 -) cat "$tmp/out"; rm -f "$tmp/out";;
24855 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24864 # Transform confdefs.h into a sed script `conftest.defines', that
24865 # substitutes the proper values into config.h.in to produce config.h.
24866 rm -f conftest.defines conftest.
tail
24867 # First, append a space to every undef/define line, to ease matching.
24868 echo 's/$/ /' >conftest.defines
24869 # Then, protect against being on the right side of a sed subst, or in
24870 # an unquoted here document, in config.status. If some macros were
24871 # called several times there might be several #defines for the same
24872 # symbol, which is useless. But do not sort them, since the last
24873 # AC_DEFINE must be honored.
24874 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
24875 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24876 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24877 # PARAMS is the parameter list in the macro definition--in most cases, it's
24878 # just an empty string.
24879 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24880 ac_dB
='\\)[ (].*,\\1define\\2'
24888 s/^[ ]*#[ ]*define[ ][ ]*//
24893 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24894 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24895 ' >>conftest.defines
24897 # Remove the space that was appended to ease matching.
24898 # Then replace #undef with comments. This is necessary, for
24899 # example, in the case of _POSIX_SOURCE, which is predefined and required
24900 # on some systems where configure will not decide to define it.
24901 # (The regexp can be short, since the line contains either #define or #undef.)
24903 s,^[ #]*u.*,/* & */,' >>conftest.defines
24905 # Break up conftest.defines:
24906 ac_max_sed_lines
=50
24908 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24909 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24910 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24912 ac_in
='$ac_file_inputs'
24913 ac_out
='"$tmp/out1"'
24914 ac_nxt
='"$tmp/out2"'
24918 # Write a here document:
24919 cat >>$CONFIG_STATUS <<_ACEOF
24920 # First, check the format of the line:
24921 cat >"\$tmp/defines.sed" <<\\CEOF
24922 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24923 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24927 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
24929 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24930 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
24931 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
24932 grep . conftest.
tail >/dev
/null ||
break
24933 rm -f conftest.defines
24934 mv conftest.
tail conftest.defines
24936 rm -f conftest.defines conftest.
tail
24938 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24939 cat >>$CONFIG_STATUS <<\_ACEOF
24940 if test x
"$ac_file" != x-
; then
24941 echo "/* $configure_input */" >"$tmp/config.h"
24942 cat "$ac_result" >>"$tmp/config.h"
24943 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
24944 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24945 echo "$as_me: $ac_file is unchanged" >&6;}
24948 mv "$tmp/config.h" $ac_file
24951 echo "/* $configure_input */"
24957 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24958 echo "$as_me: executing $ac_file commands" >&6;}
24963 case $ac_file$ac_mode in
24966 ### Make the necessary directories, if they don't exist.
24967 for dir
in etc lisp
; do
24968 test -d ${dir} || mkdir
${dir}
24971 # Build src/Makefile from ${srcdir}/src/Makefile.c
24972 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24973 # This must be done after src/config.h is built, since we rely on that file.
24975 # Now get this: Some word that is part of the ${srcdir} directory name
24976 # or the ${configuration} value might, just might, happen to be an
24977 # identifier like `sun4' or `i386' or something, and be predefined by
24978 # the C preprocessor to some helpful value like 1, or maybe the empty
24979 # string. Needless to say consequent macro substitutions are less
24980 # than conducive to the makefile finding the correct directory.
24981 undefs
="`echo $top_srcdir $configuration $canonical |
24982 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24983 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24986 echo creating src
/epaths.h
24987 ${MAKE-make} epaths-force
24989 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24990 # `..' to `. .' unless invoked with -traditional
24992 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
24993 CPPFLAGS
="$CPPFLAGS -traditional"
24996 echo creating lib-src
/Makefile
24998 rm -f junk.c junk1.c junk2.c
24999 sed -e '/start of cpp stuff/q' \
25000 < Makefile.c
> junk1.c
25001 sed -e '1,/start of cpp stuff/d'\
25002 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25003 < Makefile.c
> junk.c
25004 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
25005 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25006 cat junk1.c junk2.c
> Makefile.new
25007 rm -f junk.c junk1.c junk2.c
25008 chmod 444 Makefile.new
25009 mv -f Makefile.new Makefile
25012 echo creating src
/Makefile
25014 rm -f junk.c junk1.c junk2.c
25015 sed -e '/start of cpp stuff/q' \
25016 < Makefile.c
> junk1.c
25017 sed -e '1,/start of cpp stuff/d'\
25018 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25019 < Makefile.c
> junk.c
25020 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
25021 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25022 cat junk1.c junk2.c
> Makefile.new
25023 rm -f junk.c junk1.c junk2.c
25024 chmod 444 Makefile.new
25025 mv -f Makefile.new Makefile
25028 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
25029 echo creating src
/.gdbinit
25030 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
25033 # This is how we know whether to re-run configure in certain cases.
25034 touch src
/config.stamp
25042 { (exit 0); exit 0; }
25044 chmod +x
$CONFIG_STATUS
25045 ac_clean_files
=$ac_clean_files_save
25048 # configure is writing to config.log, and then calls config.status.
25049 # config.status does its own redirection, appending to config.log.
25050 # Unfortunately, on DOS this fails, as config.log is still kept open
25051 # by configure, so config.status won't be able to write to it; its
25052 # output is simply discarded. So we exec the FD to /dev/null,
25053 # effectively closing config.log, so it can be properly (re)opened and
25054 # appended to by config.status. When coming back to configure, we
25055 # need to make the FD available again.
25056 if test "$no_create" != yes; then
25058 ac_config_status_args
=
25059 test "$silent" = yes &&
25060 ac_config_status_args
="$ac_config_status_args --quiet"
25062 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
25064 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25065 # would make configure fail if this is the last instruction.
25066 $ac_cs_success ||
{ (exit 1); exit 1; }