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
716 x_default_search_path
733 ac_precious_vars
='build_alias
745 # Initialize some variables set by options.
747 ac_init_version
=false
748 # The variables have the same names as the options, with
749 # dashes changed to underlines.
757 program_transform_name
=s
,x
,x
,
765 # Installation directory options.
766 # These are left unexpanded so users can "make install exec_prefix=/foo"
767 # and all the variables that are supposed to be based on exec_prefix
768 # by default will actually change.
769 # Use braces instead of parens because sh, perl, etc. also accept them.
770 # (The list follows the same order as the GNU Coding Standards.)
771 bindir
='${exec_prefix}/bin'
772 sbindir
='${exec_prefix}/sbin'
773 libexecdir
='${exec_prefix}/libexec'
774 datarootdir
='${prefix}/share'
775 datadir
='${datarootdir}'
776 sysconfdir
='${prefix}/etc'
777 sharedstatedir
='${prefix}/com'
778 localstatedir
='${prefix}/var'
779 includedir
='${prefix}/include'
780 oldincludedir
='/usr/include'
781 docdir
='${datarootdir}/doc/${PACKAGE}'
782 infodir
='${datarootdir}/info'
787 libdir
='${exec_prefix}/lib'
788 localedir
='${datarootdir}/locale'
789 mandir
='${datarootdir}/man'
795 # If the previous option needs an argument, assign it.
796 if test -n "$ac_prev"; then
797 eval $ac_prev=\
$ac_option
803 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
807 # Accept the important Cygnus configure options, so we can diagnose typos.
809 case $ac_dashdash$ac_option in
813 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
815 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
818 -build |
--build |
--buil |
--bui |
--bu)
819 ac_prev
=build_alias
;;
820 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
821 build_alias
=$ac_optarg ;;
823 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
824 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
825 ac_prev
=cache_file
;;
826 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
827 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
828 cache_file
=$ac_optarg ;;
831 cache_file
=config.cache
;;
833 -datadir |
--datadir |
--datadi |
--datad)
835 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
836 datadir
=$ac_optarg ;;
838 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
839 |
--dataroo |
--dataro |
--datar)
840 ac_prev
=datarootdir
;;
841 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
842 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
843 datarootdir
=$ac_optarg ;;
845 -disable-* |
--disable-*)
846 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
847 # Reject names that are not valid shell variable names.
848 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
849 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
850 { (exit 1); exit 1; }; }
851 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
852 eval enable_
$ac_feature=no
;;
854 -docdir |
--docdir |
--docdi |
--doc |
--do)
856 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
859 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
861 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
864 -enable-* |
--enable-*)
865 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
866 # Reject names that are not valid shell variable names.
867 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
868 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
869 { (exit 1); exit 1; }; }
870 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
871 eval enable_
$ac_feature=\
$ac_optarg ;;
873 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
874 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
875 |
--exec |
--exe |
--ex)
876 ac_prev
=exec_prefix
;;
877 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
878 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
879 |
--exec=* |
--exe=* |
--ex=*)
880 exec_prefix
=$ac_optarg ;;
882 -gas |
--gas |
--ga |
--g)
883 # Obsolete; use --with-gas.
886 -help |
--help |
--hel |
--he |
-h)
888 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
889 ac_init_help
=recursive
;;
890 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
891 ac_init_help
=short
;;
893 -host |
--host |
--hos |
--ho)
894 ac_prev
=host_alias
;;
895 -host=* |
--host=* |
--hos=* |
--ho=*)
896 host_alias
=$ac_optarg ;;
898 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
900 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
902 htmldir
=$ac_optarg ;;
904 -includedir |
--includedir |
--includedi |
--included |
--include \
905 |
--includ |
--inclu |
--incl |
--inc)
906 ac_prev
=includedir
;;
907 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
908 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
909 includedir
=$ac_optarg ;;
911 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
913 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
914 infodir
=$ac_optarg ;;
916 -libdir |
--libdir |
--libdi |
--libd)
918 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
921 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
922 |
--libexe |
--libex |
--libe)
923 ac_prev
=libexecdir
;;
924 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
925 |
--libexe=* |
--libex=* |
--libe=*)
926 libexecdir
=$ac_optarg ;;
928 -localedir |
--localedir |
--localedi |
--localed |
--locale)
930 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
931 localedir
=$ac_optarg ;;
933 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
934 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
935 ac_prev
=localstatedir
;;
936 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
937 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
938 localstatedir
=$ac_optarg ;;
940 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
942 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
946 # Obsolete; use --without-fp.
949 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
950 |
--no-cr |
--no-c |
-n)
953 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
954 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
957 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
958 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
959 |
--oldin |
--oldi |
--old |
--ol |
--o)
960 ac_prev
=oldincludedir
;;
961 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
962 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
963 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
964 oldincludedir
=$ac_optarg ;;
966 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
968 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
971 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
972 |
--program-pre |
--program-pr |
--program-p)
973 ac_prev
=program_prefix
;;
974 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
975 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
976 program_prefix
=$ac_optarg ;;
978 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
979 |
--program-suf |
--program-su |
--program-s)
980 ac_prev
=program_suffix
;;
981 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
982 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
983 program_suffix
=$ac_optarg ;;
985 -program-transform-name |
--program-transform-name \
986 |
--program-transform-nam |
--program-transform-na \
987 |
--program-transform-n |
--program-transform- \
988 |
--program-transform |
--program-transfor \
989 |
--program-transfo |
--program-transf \
990 |
--program-trans |
--program-tran \
991 |
--progr-tra |
--program-tr |
--program-t)
992 ac_prev
=program_transform_name
;;
993 -program-transform-name=* |
--program-transform-name=* \
994 |
--program-transform-nam=* |
--program-transform-na=* \
995 |
--program-transform-n=* |
--program-transform-=* \
996 |
--program-transform=* |
--program-transfor=* \
997 |
--program-transfo=* |
--program-transf=* \
998 |
--program-trans=* |
--program-tran=* \
999 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1000 program_transform_name
=$ac_optarg ;;
1002 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1004 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1005 pdfdir
=$ac_optarg ;;
1007 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1009 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1012 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1013 |
-silent |
--silent |
--silen |
--sile |
--sil)
1016 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1018 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1020 sbindir
=$ac_optarg ;;
1022 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1023 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1024 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1026 ac_prev
=sharedstatedir
;;
1027 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1028 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1029 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1031 sharedstatedir
=$ac_optarg ;;
1033 -site |
--site |
--sit)
1035 -site=* |
--site=* |
--sit=*)
1038 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1040 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1041 srcdir
=$ac_optarg ;;
1043 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1044 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1045 ac_prev
=sysconfdir
;;
1046 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1047 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1048 sysconfdir
=$ac_optarg ;;
1050 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1051 ac_prev
=target_alias
;;
1052 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1053 target_alias
=$ac_optarg ;;
1055 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1058 -version |
--version |
--versio |
--versi |
--vers |
-V)
1059 ac_init_version
=: ;;
1062 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1063 # Reject names that are not valid shell variable names.
1064 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1065 { echo "$as_me: error: invalid package name: $ac_package" >&2
1066 { (exit 1); exit 1; }; }
1067 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1068 eval with_
$ac_package=\
$ac_optarg ;;
1070 -without-* |
--without-*)
1071 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1072 # Reject names that are not valid shell variable names.
1073 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1074 { echo "$as_me: error: invalid package name: $ac_package" >&2
1075 { (exit 1); exit 1; }; }
1076 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1077 eval with_
$ac_package=no
;;
1080 # Obsolete; use --with-x.
1083 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1084 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1085 ac_prev
=x_includes
;;
1086 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1087 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1088 x_includes
=$ac_optarg ;;
1090 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1091 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1092 ac_prev
=x_libraries
;;
1093 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1094 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1095 x_libraries
=$ac_optarg ;;
1097 -*) { echo "$as_me: error: unrecognized option: $ac_option
1098 Try \`$0 --help' for more information." >&2
1099 { (exit 1); exit 1; }; }
1103 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1104 # Reject names that are not valid shell variable names.
1105 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1106 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1107 { (exit 1); exit 1; }; }
1108 eval $ac_envvar=\
$ac_optarg
1109 export $ac_envvar ;;
1112 # FIXME: should be removed in autoconf 3.0.
1113 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1114 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1115 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1116 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1122 if test -n "$ac_prev"; then
1123 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1124 { echo "$as_me: error: missing argument to $ac_option" >&2
1125 { (exit 1); exit 1; }; }
1128 # Be sure to have absolute directory names.
1129 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1130 datadir sysconfdir sharedstatedir localstatedir includedir \
1131 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1132 libdir localedir mandir
1134 eval ac_val
=\$
$ac_var
1136 [\\/$
]* | ?
:[\\/]* ) continue;;
1137 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1139 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1140 { (exit 1); exit 1; }; }
1143 # There might be people who depend on the old broken behavior: `$host'
1144 # used to hold the argument of --host etc.
1145 # FIXME: To remove some day.
1148 target
=$target_alias
1150 # FIXME: To remove some day.
1151 if test "x$host_alias" != x
; then
1152 if test "x$build_alias" = x
; then
1153 cross_compiling
=maybe
1154 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1155 If a cross compiler is detected then cross compile mode will be used." >&2
1156 elif test "x$build_alias" != "x$host_alias"; then
1162 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1164 test "$silent" = yes && exec 6>/dev
/null
1167 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1168 ac_ls_di
=`ls -di .` &&
1169 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1170 { echo "$as_me: error: Working directory cannot be determined" >&2
1171 { (exit 1); exit 1; }; }
1172 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1173 { echo "$as_me: error: pwd does not report name of working directory" >&2
1174 { (exit 1); exit 1; }; }
1177 # Find the source files, if location was not specified.
1178 if test -z "$srcdir"; then
1179 ac_srcdir_defaulted
=yes
1180 # Try the directory containing this script, then the parent directory.
1181 ac_confdir
=`$as_dirname -- "$0" ||
1182 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1183 X"$0" : 'X\(//\)[^/]' \| \
1184 X"$0" : 'X\(//\)$' \| \
1185 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1187 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1205 if test ! -r "$srcdir/$ac_unique_file"; then
1209 ac_srcdir_defaulted
=no
1211 if test ! -r "$srcdir/$ac_unique_file"; then
1212 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1213 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1214 { (exit 1); exit 1; }; }
1216 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1218 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1219 { (exit 1); exit 1; }; }
1221 # When building in place, set srcdir=.
1222 if test "$ac_abs_confdir" = "$ac_pwd"; then
1225 # Remove unnecessary trailing slashes from srcdir.
1226 # Double slashes in file names in object file debugging info
1227 # mess up M-x gdb in Emacs.
1229 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1231 for ac_var
in $ac_precious_vars; do
1232 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1233 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1234 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1235 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1239 # Report the --help message.
1241 if test "$ac_init_help" = "long"; then
1242 # Omit some internal or obsolete options to make the list less imposing.
1243 # This message is too long to be a string in the A/UX 3.1 sh.
1245 \`configure' configures this package to adapt to many kinds of systems.
1247 Usage: $0 [OPTION]... [VAR=VALUE]...
1249 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1250 VAR=VALUE. See below for descriptions of some of the useful variables.
1252 Defaults for the options are specified in brackets.
1255 -h, --help display this help and exit
1256 --help=short display options specific to this package
1257 --help=recursive display the short help of all the included packages
1258 -V, --version display version information and exit
1259 -q, --quiet, --silent do not print \`checking...' messages
1260 --cache-file=FILE cache test results in FILE [disabled]
1261 -C, --config-cache alias for \`--cache-file=config.cache'
1262 -n, --no-create do not create output files
1263 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1265 Installation directories:
1266 --prefix=PREFIX install architecture-independent files in PREFIX
1267 [$ac_default_prefix]
1268 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1271 By default, \`make install' will install all the files in
1272 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1273 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1274 for instance \`--prefix=\$HOME'.
1276 For better control, use the options below.
1278 Fine tuning of the installation directories:
1279 --bindir=DIR user executables [EPREFIX/bin]
1280 --sbindir=DIR system admin executables [EPREFIX/sbin]
1281 --libexecdir=DIR program executables [EPREFIX/libexec]
1282 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1283 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1284 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1285 --libdir=DIR object code libraries [EPREFIX/lib]
1286 --includedir=DIR C header files [PREFIX/include]
1287 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1288 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1289 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1290 --infodir=DIR info documentation [DATAROOTDIR/info]
1291 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1292 --mandir=DIR man documentation [DATAROOTDIR/man]
1293 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1294 --htmldir=DIR html documentation [DOCDIR]
1295 --dvidir=DIR dvi documentation [DOCDIR]
1296 --pdfdir=DIR pdf documentation [DOCDIR]
1297 --psdir=DIR ps documentation [DOCDIR]
1303 --program-prefix=PREFIX prepend PREFIX to installed program names
1304 --program-suffix=SUFFIX append SUFFIX to installed program names
1305 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1308 --x-includes=DIR X include files are
in DIR
1309 --x-libraries=DIR X library files are
in DIR
1312 --build=BUILD configure
for building on BUILD
[guessed
]
1313 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1317 if test -n "$ac_init_help"; then
1322 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1323 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1324 --enable-carbon-app[=DIR
] [DIR
=/Application
]
1325 specify
install directory
for Emacs.app on Mac OS X
1326 --enable-font-backend compile code of font-backend support
1327 --enable-asserts compile code with asserts enabled
1328 --enable-maintainer-mode enable make rules and dependencies not useful
1329 (and sometimes confusing
) to the casual installer
1330 --enable-locallisppath=PATH
1331 directories Emacs should search
for lisp files
1332 specific to this site
1333 --disable-largefile omit support
for large files
1336 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1337 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1338 --without-gcc don
't use GCC to compile Emacs if GCC is found
1339 --without-pop don't support POP
mail retrieval with movemail
1340 --with-kerberos support Kerberos-authenticated POP
1341 --with-kerberos5 support Kerberos version
5 authenticated POP
1342 --with-hesiod support Hesiod to get the POP server
host
1343 --without-sound don
't compile with sound support
1344 --with-x-toolkit=KIT use an X toolkit
1345 (KIT = yes/lucid/athena/motif/gtk/no)
1346 --with-xpm use -lXpm for displaying XPM images
1347 --with-jpeg use -ljpeg for displaying JPEG images
1348 --with-tiff use -ltiff for displaying TIFF images
1349 --with-gif use -lungif for displaying GIF images
1350 --with-png use -lpng for displaying PNG images
1351 --with-freetype use -lfreetype for local fonts support
1352 --with-xft use -lXft for anti aliased fonts
1353 --with-gtk use GTK (same as --with-x-toolkit=gtk)
1354 --with-pkg-config-prog Path to pkg-config to use for finding GTK
1355 --without-toolkit-scroll-bars
1356 don't use Motif or Xaw3d scroll bars
1357 --without-xim don
't use X11 XIM
1358 --without-carbon don't use Carbon GUI on Mac OS X
1359 --with-x use the X Window System
1361 Some influential environment variables
:
1362 CC C compiler
command
1363 CFLAGS C compiler flags
1364 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1365 nonstandard directory
<lib dir
>
1366 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1367 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1368 you have headers
in a nonstandard directory
<include dir
>
1370 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1372 Use these variables to override the choices made by
`configure' or to help
1373 it to find libraries and programs with nonstandard names/locations.
1379 if test "$ac_init_help" = "recursive"; then
1380 # If there are subdirs, report their specific --help.
1381 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1382 test -d "$ac_dir" || continue
1386 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1388 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1389 # A ".." for each directory in $ac_dir_suffix.
1390 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1391 case $ac_top_builddir_sub in
1392 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1393 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1396 ac_abs_top_builddir=$ac_pwd
1397 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1398 # for backward compatibility:
1399 ac_top_builddir=$ac_top_build_prefix
1402 .) # We are building in place.
1404 ac_top_srcdir=$ac_top_builddir_sub
1405 ac_abs_top_srcdir=$ac_pwd ;;
1406 [\\/]* | ?:[\\/]* ) # Absolute name.
1407 ac_srcdir=$srcdir$ac_dir_suffix;
1408 ac_top_srcdir=$srcdir
1409 ac_abs_top_srcdir=$srcdir ;;
1411 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1412 ac_top_srcdir=$ac_top_build_prefix$srcdir
1413 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1415 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1417 cd "$ac_dir" || { ac_status=$?; continue; }
1418 # Check for guested configure.
1419 if test -f "$ac_srcdir/configure.gnu"; then
1421 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1422 elif test -f "$ac_srcdir/configure"; then
1424 $SHELL "$ac_srcdir/configure" --help=recursive
1426 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1428 cd "$ac_pwd" || { ac_status=$?; break; }
1432 test -n "$ac_init_help" && exit $ac_status
1433 if $ac_init_version; then
1436 generated by GNU Autoconf 2.61
1438 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1439 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1440 This configure script is free software; the Free Software Foundation
1441 gives unlimited permission to copy, distribute and modify it.
1445 cat >config.log <<_ACEOF
1446 This file contains any messages produced by compilers while
1447 running configure, to aid debugging if configure makes a mistake.
1449 It was created by $as_me, which was
1450 generated by GNU Autoconf 2.61. Invocation command line was
1462 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1463 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1464 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1465 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1466 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1468 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1469 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1471 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1472 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1473 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1474 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1475 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1476 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1477 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1485 test -z "$as_dir" && as_dir=.
1486 echo "PATH: $as_dir"
1502 # Keep a trace of the command line.
1503 # Strip out --no-create and --no-recursion so they do not pile up.
1504 # Strip out --silent because we don't want to record it for future runs.
1505 # Also quote any args containing shell meta-characters.
1506 # Make two passes to allow for proper duplicate-argument suppression.
1510 ac_must_keep_next=false
1516 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1517 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1518 | -silent | --silent | --silen | --sile | --sil)
1521 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1524 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1526 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1527 if test $ac_must_keep_next = true; then
1528 ac_must_keep_next=false # Got value, back to normal.
1531 *=* | --config-cache | -C | -disable-* | --disable-* \
1532 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1533 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1534 | -with-* | --with-* | -without-* | --without-* | --x)
1535 case "$ac_configure_args0 " in
1536 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1539 -* ) ac_must_keep_next=true ;;
1542 ac_configure_args="$ac_configure_args '$ac_arg'"
1547 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1548 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1550 # When interrupted or exit'd, cleanup temporary files, and complete
1551 # config.log. We remove comments because anyway the quotes in there
1552 # would cause problems or look ugly.
1553 # WARNING: Use '\'' to represent an apostrophe within the trap.
1554 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1555 trap 'exit_status=$?
1556 # Save into config.log some information that might help in debugging.
1561 ## ---------------- ##
1562 ## Cache variables. ##
1563 ## ---------------- ##
1566 # The following way of writing the cache mishandles newlines in values,
1568 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1569 eval ac_val=\$$ac_var
1573 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1574 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1577 _ | IFS | as_nl) ;; #(
1578 *) $as_unset $ac_var ;;
1583 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1584 *${as_nl}ac_space=\ *)
1586 "s/'\''/'\''\\\\'\'''\''/g;
1587 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1590 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1598 ## ----------------- ##
1599 ## Output variables. ##
1600 ## ----------------- ##
1603 for ac_var in $ac_subst_vars
1605 eval ac_val=\$$ac_var
1607 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1609 echo "$ac_var='\''$ac_val'\''"
1613 if test -n "$ac_subst_files"; then
1615 ## ------------------- ##
1616 ## File substitutions. ##
1617 ## ------------------- ##
1620 for ac_var in $ac_subst_files
1622 eval ac_val=\$$ac_var
1624 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1626 echo "$ac_var='\''$ac_val'\''"
1631 if test -s confdefs.h; then
1641 test "$ac_signal" != 0 &&
1642 echo "$as_me: caught signal $ac_signal"
1643 echo "$as_me: exit $exit_status"
1645 rm -f core *.core core.conftest.* &&
1646 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1649 for ac_signal in 1 2 13 15; do
1650 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1654 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1655 rm -f -r conftest* confdefs.h
1657 # Predefined preprocessor variables.
1659 cat >>confdefs.h <<_ACEOF
1660 #define PACKAGE_NAME "$PACKAGE_NAME"
1664 cat >>confdefs.h <<_ACEOF
1665 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1669 cat >>confdefs.h <<_ACEOF
1670 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1674 cat >>confdefs.h <<_ACEOF
1675 #define PACKAGE_STRING "$PACKAGE_STRING"
1679 cat >>confdefs.h <<_ACEOF
1680 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1684 # Let the site file select an alternate cache file if it wants to.
1685 # Prefer explicitly selected file to automatically selected ones.
1686 if test -n "$CONFIG_SITE"; then
1687 set x "$CONFIG_SITE"
1688 elif test "x$prefix" != xNONE; then
1689 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1691 set x "$ac_default_prefix/share/config.site" \
1692 "$ac_default_prefix/etc/config.site"
1697 if test -r "$ac_site_file"; then
1698 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1699 echo "$as_me: loading site script $ac_site_file" >&6;}
1700 sed 's/^/| /' "$ac_site_file" >&5
1705 if test -r "$cache_file"; then
1706 # Some versions of bash will fail to source /dev/null (special
1707 # files actually), so we avoid doing that.
1708 if test -f "$cache_file"; then
1709 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1710 echo "$as_me: loading cache $cache_file" >&6;}
1712 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1713 *) . "./$cache_file";;
1717 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1718 echo "$as_me: creating cache $cache_file" >&6;}
1722 ac_header_list="$ac_header_list sys/time.h"
1723 ac_header_list="$ac_header_list unistd.h"
1724 ac_func_list="$ac_func_list alarm"
1725 # Check that the precious variables saved in the cache have kept the same
1727 ac_cache_corrupted=false
1728 for ac_var in $ac_precious_vars; do
1729 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1730 eval ac_new_set=\$ac_env_${ac_var}_set
1731 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1732 eval ac_new_val=\$ac_env_${ac_var}_value
1733 case $ac_old_set,$ac_new_set in
1735 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1736 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1737 ac_cache_corrupted=: ;;
1739 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1740 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1741 ac_cache_corrupted=: ;;
1744 if test "x$ac_old_val" != "x$ac_new_val"; then
1745 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1746 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1747 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1748 echo "$as_me: former value
: $ac_old_val" >&2;}
1749 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1750 echo "$as_me: current value
: $ac_new_val" >&2;}
1751 ac_cache_corrupted=:
1754 # Pass precious variables to config.status.
1755 if test "$ac_new_set" = set; then
1757 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1758 *) ac_arg=$ac_var=$ac_new_val ;;
1760 case " $ac_configure_args " in
1761 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1762 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1766 if $ac_cache_corrupted; then
1767 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1768 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1769 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1770 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1771 { (exit 1); exit 1; }; }
1791 ac_cpp='$CPP $CPPFLAGS'
1792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1797 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1800 test "$program_prefix" != NONE &&
1801 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1802 # Use a double $ so make ignores it.
1803 test "$program_suffix" != NONE &&
1804 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1805 # Double any \ or $. echo might interpret backslashes.
1806 # By default was `s
,x
,x
', remove it if useless.
1807 cat <<\_ACEOF >conftest.sed
1808 s/[\\$]/&&/g;s/;s,x,x,$//
1810 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1814 lispdir='${datadir}/emacs
/${version}/lisp
'
1815 locallisppath='${datadir}/emacs
/${version}/site-lisp
:'\
1816 '${datadir}/emacs
/site-lisp
'
1817 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim
'
1818 etcdir='${datadir}/emacs
/${version}/etc
'
1819 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1820 docdir='${datadir}/emacs
/${version}/etc
'
1821 gamedir='${localstatedir}/games
/emacs
'
1826 # Check whether --with-gcc was given.
1827 if test "${with_gcc+set}" = set; then
1832 # Check whether --with-pop was given.
1833 if test "${with_pop+set}" = set; then
1834 withval=$with_pop; if test "$withval" = yes; then
1835 cat >>confdefs.h <<\_ACEOF
1836 #define MAIL_USE_POP 1
1842 cat >>confdefs.h <<\_ACEOF
1843 #define MAIL_USE_POP 1
1850 # Check whether --with-kerberos was given.
1851 if test "${with_kerberos+set}" = set; then
1852 withval=$with_kerberos; cat >>confdefs.h <<\_ACEOF
1860 # Check whether --with-kerberos5 was given.
1861 if test "${with_kerberos5+set}" = set; then
1862 withval=$with_kerberos5; if test "${with_kerberos5+set}" = set; then
1863 if test "${with_kerberos+set}" != set; then
1865 cat >>confdefs.h <<\_ACEOF
1872 cat >>confdefs.h <<\_ACEOF
1879 # Check whether --with-hesiod was given.
1880 if test "${with_hesiod+set}" = set; then
1881 withval=$with_hesiod;
1882 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=athena ;;
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 Currently, \`yes', \
`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 Currently, \`yes', \
`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-freetype was given.
1952 if test "${with_freetype+set}" = set; then
1953 withval=$with_freetype;
1957 # Check whether --with-xft was given.
1958 if test "${with_xft+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-xim was given.
1982 if test "${with_xim+set}" = set; then
1987 # Check whether --with-carbon was given.
1988 if test "${with_carbon+set}" = set; then
1989 withval=$with_carbon;
1992 # Check whether --enable-carbon-app was given.
1993 if test "${enable_carbon_app+set}" = set; then
1994 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
1998 # Check whether --enable-font-backend was given.
1999 if test "${enable_font_backend+set}" = set; then
2000 enableval=$enable_font_backend; USE_FONT_BACKEND=$enableval
2006 # Check whether --enable-asserts was given.
2007 if test "${enable_asserts+set}" = set; then
2008 enableval=$enable_asserts; USE_XASSERTS=$enableval
2014 # Check whether --enable-maintainer-mode was given.
2015 if test "${enable_maintainer_mode+set}" = set; then
2016 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2018 USE_MAINTAINER_MODE=no
2021 if test $USE_MAINTAINER_MODE = yes; then
2028 # Check whether --enable-locallisppath was given.
2029 if test "${enable_locallisppath+set}" = set; then
2030 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2032 elif test "${enableval}" != "yes"; then
2033 locallisppath=${enableval}
2038 #### Make srcdir absolute, if it isn't already. It
's important to
2039 #### avoid running the path through pwd unnecessarily, since pwd can
2040 #### give you automounter prefixes, which can go away. We do all this
2041 #### so Emacs can find its files when run uninstalled.
2042 ## Make sure CDPATH doesn't affect
cd (in case PWD is relative
).
2047 ## We may be able to use the $PWD environment variable to make this
2048 ## absolute. But sometimes PWD is inaccurate.
2049 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2050 ## but that tested only for a well-formed and valid PWD,
2051 ## it did not object when PWD was well-formed and valid but just wrong.
2052 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2056 srcdir
="`(cd ${srcdir}; pwd)`"
2059 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2062 #### Check if the source directory already has a configured system in it.
2063 if test `pwd` != `(cd ${srcdir} && pwd)` \
2064 && test -f "${srcdir}/src/config.h" ; then
2065 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2066 as a build directory right now; it has been configured in its own
2067 right. To configure in another directory as well, you MUST
2068 use GNU make. If you do not have GNU make, then you must
2069 now do \`make distclean' in ${srcdir},
2070 and then run $0 again." >&5
2071 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2072 as a build directory right now; it has been configured in its own
2073 right. To configure in another directory as well, you MUST
2074 use GNU make. If you do not have GNU make, then you must
2075 now do \`make distclean' in ${srcdir},
2076 and then run $0 again." >&2;}
2079 #### Given the configuration name, set machfile and opsysfile to the
2080 #### names of the m/*.h and s/*.h files we should use.
2082 ### Canonicalize the configuration name.
2085 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2086 if test -f "$ac_dir/install-sh"; then
2088 ac_install_sh
="$ac_aux_dir/install-sh -c"
2090 elif test -f "$ac_dir/install.sh"; then
2092 ac_install_sh
="$ac_aux_dir/install.sh -c"
2094 elif test -f "$ac_dir/shtool"; then
2096 ac_install_sh
="$ac_aux_dir/shtool install -c"
2100 if test -z "$ac_aux_dir"; then
2101 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2102 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2103 { (exit 1); exit 1; }; }
2106 # These three variables are undocumented and unsupported,
2107 # and are intended to be withdrawn in a future Autoconf release.
2108 # They can cause serious problems if a builder's source tree is in a directory
2109 # whose full name contains unusual characters.
2110 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2111 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2112 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2115 # Make sure we can run config.sub.
2116 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2117 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2118 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2119 { (exit 1); exit 1; }; }
2121 { echo "$as_me:$LINENO: checking build system type" >&5
2122 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2123 if test "${ac_cv_build+set}" = set; then
2124 echo $ECHO_N "(cached) $ECHO_C" >&6
2126 ac_build_alias
=$build_alias
2127 test "x$ac_build_alias" = x
&&
2128 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2129 test "x$ac_build_alias" = x
&&
2130 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2131 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2132 { (exit 1); exit 1; }; }
2133 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2134 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2135 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2136 { (exit 1); exit 1; }; }
2139 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2140 echo "${ECHO_T}$ac_cv_build" >&6; }
2141 case $ac_cv_build in
2143 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2144 echo "$as_me: error: invalid value of canonical build" >&2;}
2145 { (exit 1); exit 1; }; };;
2148 ac_save_IFS
=$IFS; IFS
='-'
2154 # Remember, the first character of IFS is used to create $*,
2155 # except with old shells:
2158 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2161 { echo "$as_me:$LINENO: checking host system type" >&5
2162 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2163 if test "${ac_cv_host+set}" = set; then
2164 echo $ECHO_N "(cached) $ECHO_C" >&6
2166 if test "x$host_alias" = x
; then
2167 ac_cv_host
=$ac_cv_build
2169 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2170 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2171 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2172 { (exit 1); exit 1; }; }
2176 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2177 echo "${ECHO_T}$ac_cv_host" >&6; }
2180 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2181 echo "$as_me: error: invalid value of canonical host" >&2;}
2182 { (exit 1); exit 1; }; };;
2185 ac_save_IFS
=$IFS; IFS
='-'
2191 # Remember, the first character of IFS is used to create $*,
2192 # except with old shells:
2195 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2199 configuration
=${host_alias-$host}
2203 ### If you add support for a new configuration, add code to this
2204 ### switch statement to recognize your configuration name and select
2205 ### the appropriate operating system and machine description files.
2207 ### You would hope that you could choose an m/*.h file pretty much
2208 ### based on the machine portion of the configuration name, and an s-
2209 ### file based on the operating system portion. However, it turns out
2210 ### that each m/*.h file is pretty manufacturer-specific - for
2211 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
2212 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
2213 ### machines. So we basically have to have a special case for each
2214 ### configuration name.
2216 ### As far as handling version numbers on operating systems is
2217 ### concerned, make sure things will fail in a fixable way. If
2218 ### /etc/MACHINES doesn't say anything about version numbers, be
2219 ### prepared to handle anything reasonably. If version numbers
2220 ### matter, be sure /etc/MACHINES says something about it.
2222 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2223 ### "System V Release 4"; he writes, "The old convention encouraged
2224 ### confusion between `system' and `release' levels'."
2226 machine
='' opsys
='' unported
=no
2227 case "${canonical}" in
2232 case "${canonical}" in
2233 alpha
*-*-freebsd*) machine
=alpha
;;
2234 ia64-
*-freebsd*) machine
=ia64
;;
2235 sparc64-
*-freebsd*) machine
=sparc
;;
2236 powerpc-
*-freebsd*) machine
=macppc
;;
2237 i
[3456]86-*-freebsd*) machine
=intel386
;;
2238 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2245 if test -f /usr
/lib
/crti.o
; then
2247 cat >>confdefs.h
<<\_ACEOF
2253 case "${canonical}" in
2254 alpha
*-*-netbsd*) machine
=alpha
;;
2255 i
[3456]86-*-netbsd*) machine
=intel386
;;
2257 # This is somewhat bogus.
2258 machine
=hp9000s300
;;
2259 mips-
*-netbsd*) machine
=pmax
;;
2260 mipsel-
*-netbsd*) machine
=pmax
;;
2261 mipseb-
*-netbsd*) machine
=pmax
;;
2262 ns32k-
*-netbsd*) machine
=ns32000
;;
2263 powerpc-
*-netbsd*) machine
=macppc
;;
2264 sparc
*-*-netbsd*) machine
=sparc
;;
2265 vax-
*-netbsd*) machine
=vax
;;
2266 arm-
*-netbsd*) machine
=arm
;;
2267 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2268 hppa-
*-netbsd*) machine
=hp800
;;
2269 shle-
*-netbsd*) machine
=sh3el
;;
2276 case "${canonical}" in
2277 alpha
*-*-openbsd*) machine
=alpha
;;
2278 i386-
*-openbsd*) machine
=intel386
;;
2279 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2280 m68k-
*-openbsd*) machine
=hp9000s300
;;
2281 mipsel-
*-openbsd*) machine
=pmax
;;
2282 ns32k-
*-openbsd*) machine
=ns32000
;;
2283 sparc-
*-openbsd*) machine
=sparc
;;
2284 vax-
*-openbsd*) machine
=vax
;;
2291 case "${canonical}" in
2292 i
[3456]86-*-lynxos*) machine
=intel386
;;
2293 powerpc-
*-lynxos*) machine
=powerpc
;;
2298 arm-acorn-riscix1.1
* )
2299 machine
=acorn opsys
=riscix1-1
2301 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
2302 ## This name is riscix12 instead of riscix1.2
2303 ## to avoid a file name conflict on MSDOS.
2304 machine
=acorn opsys
=riscix12
2310 case "${canonical}" in
2311 i
[345]86-*-bsdi*) machine
=intel386
;;
2312 sparc-
*-bsdi*) machine
=sparc
;;
2313 powerpc-
*-bsdi*) machine
=macppc
;;
2315 case "${canonical}" in
2316 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
2317 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
2318 *-*-bsdi2* ) opsys
=bsdos2-1
;;
2319 *-*-bsdi3* ) opsys
=bsdos3
;;
2320 *-*-bsdi[45]* ) opsys
=bsdos4
;;
2325 ## Strictly speaking, we need the version of the alliant operating
2326 ## system to choose the right machine file, but currently the
2327 ## configuration name doesn't tell us enough to choose the right
2328 ## one; we need to give alliants their own operating system name to
2329 ## do this right. When someone cares, they can help us.
2331 machine
=alliant4 opsys
=bsd4-2
2334 machine
=alliant-2800 opsys
=bsd4-3
2337 ## Alpha (DEC) machines.
2339 machine
=alpha opsys
=osf1
2340 # This is needed to find X11R6.1 libraries for certain tests.
2341 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2342 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2343 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2344 # due to non-traditional preprocessing with the current compiler
2345 # defaults. OSF 4 can also have that compiler version, and there
2346 # seems always to have been a usable /usr/bin/cpp.
2347 NON_GNU_CPP
=/usr
/bin
/cpp
2348 case "${canonical}" in
2349 alpha
*-dec-osf[5-9]*)
2354 alpha
*-*-linux-gnu* )
2355 machine
=alpha opsys
=gnu-linux
2359 machine
=arm opsys
=gnu-linux
2364 machine
=altos opsys
=usg5-2
2369 machine
=amdahl opsys
=usg5-2-2
2372 ## Apollo, Domain/OS
2374 machine
=apollo opsys
=bsd4-3
2377 ## Apple Darwin / Mac OS X
2379 case "${canonical}" in
2380 i
[3456]86-* ) machine
=intel386
;;
2381 powerpc-
* ) machine
=powermac
;;
2385 # Define CPP as follows to make autoconf work correctly.
2386 CPP
="${CC-cc} -E -no-cpp-precomp"
2387 # Use fink packages if available.
2388 if test -d /sw
/include
&& test -d /sw
/lib
; then
2389 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2390 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2391 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2395 ## AT&T 3b2, 3b5, 3b15, 3b20
2397 machine
=att3b opsys
=usg5-2-2
2400 ## AT&T 3b1 - The Mighty Unix PC!
2402 machine
=7300 opsys
=usg5-2-2
2407 machine
=ibmrs6000 opsys
=aix3-2
2412 machine
=dpx2 opsys
=usg5-3
2417 machine
=sps7 opsys
=usg5-2
2420 ## CCI 5/32, 6/32 -- see "Tahoe".
2423 ## I don't know what configuration name to use for this; config.sub
2424 ## doesn't seem to know anything about it. Hey, Celerity users, get
2425 ## in touch with us!
2426 celerity-celerity-bsd
* )
2427 machine
=celerity opsys
=bsd4-2
2431 ## What operating systems does this chip run that Emacs has been
2435 ## We'll use the catch-all code at the bottom to guess the
2436 ## operating system.
2440 mips-compaq-nonstopux
* )
2441 machine
=nonstopux opsys
=nonstopux
2445 *-convex-bsd* |
*-convex-convexos* )
2446 machine
=convex opsys
=bsd4-3
2447 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2448 NON_GNU_CPP
="cc -E -P"
2452 i
[3456]86-cubix-sysv* )
2453 machine
=intel386 opsys
=usg5-3
2457 cydra
*-cydrome-sysv* )
2458 machine
=cydra5 opsys
=usg5-3
2461 ## Data General AViiON Machines
2462 ## DG changed naming conventions with the release of 5.4.4.10, they
2463 ## dropped the initial 5.4 but left the intervening R. Because of the
2464 ## R this shouldn't conflict with older versions of the OS (which I
2465 ## think were named like dgux4.*). In addition, DG new AViiONs series
2466 ## uses either Motorola M88k or Intel Pentium CPUs.
2467 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
2468 machine
=aviion opsys
=dgux4
2470 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
2471 ## This name is dgux5-4-3 instead of dgux5-4r3
2472 ## to avoid a file name conflict on MSDOS.
2473 machine
=aviion opsys
=dgux5-4-3
2475 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
2476 machine
=aviion opsys
=dgux5-4r2
2479 machine
=aviion opsys
=dgux
2482 ## Data General AViiON Intel (x86) Machines
2483 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2484 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2485 i
[345]86-dg-dguxR4* )
2486 machine
=aviion-intel opsys
=dgux4
2490 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
2491 machine
=pmax opsys
=bsd4-2
2493 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
2494 machine
=pmax opsys
=bsd4-3
2497 machine
=pmax opsys
=ultrix4-3
2500 machine
=pmax opsys
=osf1
2502 mips-dec-mach_bsd4.3
* )
2503 machine
=pmax opsys
=mach-bsd4-3
2506 ## Motorola Delta machines
2507 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
2508 machine
=delta opsys
=usg5-3
2509 if test -z "`type gnucc | grep 'not found'`"
2511 if test -s /etc
/167config
2512 then CC
="gnucc -m68040"
2513 else CC
="gnucc -m68881"
2516 if test -z "`type gcc | grep 'not found'`"
2522 m88k-motorola-sysv4
* )
2523 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2524 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2525 # I hope there are not other 4.0 versions for this machine
2526 # which really need usg5-4 instead.
2527 machine
=delta88k opsys
=usg5-4-2
2529 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
2530 machine
=delta88k opsys
=usg5-3
2535 machine
=dual opsys
=usg5-2
2537 m68
*-dual-uniplus* )
2538 machine
=dual opsys
=unipl5-2
2543 machine
=elxsi opsys
=usg5-2
2548 machine
=ns16000 opsys
=umax
2551 ## The GEC 63 - apparently, this port isn't really finished yet.
2552 # I'm sure we finished off the last of the machines, though. -- fx
2554 ## Gould Power Node and NP1
2556 machine
=gould opsys
=bsd4-2
2559 machine
=gould opsys
=bsd4-3
2562 machine
=gould-np1 opsys
=bsd4-3
2565 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2566 ## as far as Emacs is concerned).
2568 # Build needs to be different on 7.0 and later releases
2569 case "`uname -r`" in
2570 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
2571 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
2573 NON_GNU_CPP
="/lib/cpp"
2575 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2577 machine
=nh3000 opsys
=cxux
2579 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2580 powerpc-harris-powerunix
)
2581 machine
=nh6000 opsys
=powerunix
2582 NON_GNU_CPP
="cc -Xo -E -P"
2585 xps
*-honeywell-sysv* )
2586 machine
=xps100 opsys
=usg5-2
2589 ## HP 9000 series 200 or 300
2591 machine
=hp9000s300 opsys
=bsd4-3
2593 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2595 case "`uname -r`" in
2596 ## Someone's system reports A.B8.05 for this.
2597 ## I wonder what other possibilities there are.
2598 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2599 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2600 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2601 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2602 *) machine
=hp9000s300 opsys
=hpux
;;
2606 hppa
*-*-linux-gnu* )
2607 machine
=hp800 opsys
=gnu-linux
2611 machine
=hp800 opsys
=nextstep
2616 machine
=orion opsys
=bsd4-2
2618 clipper-orion-bsd
* )
2619 machine
=orion105 opsys
=bsd4-2
2623 i
[3456]86-ibm-aix1.1
* )
2624 machine
=ibmps2-aix opsys
=usg5-2-2
2626 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2627 machine
=ibmps2-aix opsys
=usg5-3
2630 machine
=ibm370aix opsys
=usg5-3
2633 machine
=ibms390 opsys
=gnu-linux
2635 s390x-
*-linux-gnu* )
2636 machine
=ibms390x opsys
=gnu-linux
2638 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2639 machine
=ibmrs6000 opsys
=aix3-1
2641 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2642 machine
=ibmrs6000 opsys
=aix3-2-5
2644 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2645 machine
=ibmrs6000 opsys
=aix4-1
2647 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2648 machine
=ibmrs6000 opsys
=aix4-2
2650 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2651 machine
=ibmrs6000 opsys
=aix4-2
2653 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2654 machine
=ibmrs6000 opsys
=aix4
2656 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2657 machine
=ibmrs6000 opsys
=aix4-1
2659 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2660 machine
=ibmrs6000 opsys
=aix3-2
2663 machine
=ibmrt opsys
=bsd4-3
2666 machine
=ibmrt opsys
=bsd4-2
2669 machine
=ibmrt opsys
=bsd4-3
2672 machine
=ibmrt opsys
=bsd4-2
2675 machine
=ibmrt opsys
=bsd4-3
2678 machine
=ibmrt opsys
=bsd4-3
2681 machine
=ibmrt-aix opsys
=usg5-2-2
2684 ## Integrated Solutions `Optimum V'
2686 machine
=isi-ov opsys
=bsd4-2
2689 machine
=isi-ov opsys
=bsd4-3
2692 ## Intel 386 machines where we do care about the manufacturer
2693 i
[3456]86-intsys-sysv* )
2694 machine
=is386 opsys
=usg5-2-2
2698 i
[3456]86-prime-sysv* )
2699 machine
=i386 opsys
=usg5-3
2702 ## Sequent Symmetry running Dynix
2703 i
[3456]86-sequent-bsd* )
2704 machine
=symmetry opsys
=bsd4-3
2707 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2708 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2709 machine
=sequent-ptx opsys
=ptx4
2710 NON_GNU_CPP
=/lib
/cpp
2713 ## Sequent Symmetry running DYNIX/ptx
2714 ## Use the old cpp rather than the newer ANSI one.
2715 i
[3456]86-sequent-ptx* )
2716 machine
=sequent-ptx opsys
=ptx
2717 NON_GNU_CPP
="/lib/cpp"
2720 ## ncr machine running svr4.3.
2721 i
[3456]86-ncr-sysv4.3
)
2722 machine
=ncr386 opsys
=usg5-4-3
2725 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2726 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2727 i
[3456]86-ncr-sysv* )
2728 machine
=ncr386 opsys
=usg5-4-2
2731 ## Intel Paragon OSF/1
2733 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2738 machine
=i860 opsys
=usg5-4
2739 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2740 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2743 ## Macintosh PowerPC
2744 powerpc
*-*-linux-gnu* )
2745 machine
=macppc opsys
=gnu-linux
2748 ## Masscomp machines
2749 m68
*-masscomp-rtu* )
2750 machine
=masscomp opsys
=rtu
2753 ## Megatest machines
2754 m68
*-megatest-bsd* )
2755 machine
=mega68 opsys
=bsd4-2
2758 ## Workstations sold by MIPS
2759 ## This is not necessarily all workstations using the MIPS processor -
2760 ## Irises are produced by SGI, and DECstations by DEC.
2762 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2763 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2764 ## it gives for choosing between the alternatives seems to be "Use
2765 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2766 ## the BSD world." I'll assume that these are instructions for
2767 ## handling two odd situations, and that every other situation
2768 ## should use mips.h and usg5-2-2, they being listed first.
2771 ## Fall through to the general code at the bottom to decide on the OS.
2773 mips-mips-riscos4
* )
2774 machine
=mips4 opsys
=bsd4-3
2775 NON_GNU_CC
="cc -systype bsd43"
2776 NON_GNU_CPP
="cc -systype bsd43 -E"
2778 mips-mips-riscos5
* )
2779 machine
=mips4 opsys
=riscos5
2780 NON_GNU_CC
="cc -systype bsd43"
2781 NON_GNU_CPP
="cc -systype bsd43 -E"
2784 machine
=mips opsys
=bsd4-3
2787 machine
=mips opsys
=usg5-2-2
2791 m68
*-next-* | m68k-
*-nextstep* )
2792 machine
=m68k opsys
=nextstep
2795 ## The complete machine from National Semiconductor
2797 machine
=ns32000 opsys
=usg5-2
2801 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2802 machine
=tower32 opsys
=usg5-2-2
2804 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2805 machine
=tower32v3 opsys
=usg5-3
2810 machine
=ews4800 opsys
=ux4800
2813 ## Nixdorf Targon 31
2814 m68
*-nixdorf-sysv* )
2815 machine
=targon31 opsys
=usg5-2-2
2820 machine
=nu opsys
=usg5-2
2825 machine
=plexus opsys
=usg5-2
2829 ## I don't really have any idea what sort of processor the Pyramid has,
2830 ## so I'm assuming it is its own architecture.
2831 pyramid-pyramid-bsd
* )
2832 machine
=pyramid opsys
=bsd4-2
2836 ns32k-sequent-bsd4.2
* )
2837 machine
=sequent opsys
=bsd4-2
2839 ns32k-sequent-bsd4.3
* )
2840 machine
=sequent opsys
=bsd4-3
2844 mips-siemens-sysv
* | mips-sni-sysv
*)
2845 machine
=mips-siemens opsys
=usg5-4
2846 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2847 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2850 ## Silicon Graphics machines
2851 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2853 machine
=irist opsys
=iris3-5
2855 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2856 machine
=irist opsys
=iris3-6
2860 machine
=iris4d opsys
=irix3-3
2863 machine
=iris4d opsys
=irix4-0
2866 machine
=iris4d opsys
=irix6-5
2867 # Without defining _LANGUAGE_C, things get masked out in the headers
2868 # so that, for instance, grepping for `free' in stdlib.h fails and
2869 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2870 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2871 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2874 machine
=iris4d opsys
=irix6-0
2875 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2876 # but presumably it does no harm.
2877 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2878 # -32 probably isn't necessary in later v.6s -- anyone know which?
2879 NON_GCC_TEST_OPTIONS
=-32
2881 mips-sgi-irix5.
[01]* )
2882 machine
=iris4d opsys
=irix5-0
2884 mips-sgi-irix5
* | mips-sgi-irix
* )
2885 machine
=iris4d opsys
=irix5-2
2890 machine
=news opsys
=bsd4-2
2893 machine
=news opsys
=bsd4-3
2895 m68
*-sony-newsos3* | m68
*-sony-news3*)
2896 machine
=news opsys
=bsd4-3
2898 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2899 machine
=news-risc opsys
=bsd4-3
2901 mips-sony-newsos6
* )
2902 machine
=news-r6 opsys
=newsos6
2905 machine
=news-risc opsys
=newsos5
2910 machine
=stride opsys
=usg5-2
2914 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2915 machine
=sparc opsys
=gnu-linux
2918 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2919 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2920 | rs6000-
*-solaris2*)
2921 case "${canonical}" in
2922 m68
*-sunos1* ) machine
=sun1
;;
2923 m68
*-sunos2* ) machine
=sun2
;;
2924 m68
* ) machine
=sun3
;;
2925 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2926 i
[3456]86-*-* ) machine
=intel386
;;
2927 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2928 powerpcle
* ) machine
=powerpcle
;;
2929 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2930 sparc
* ) machine
=sparc
;;
2933 case "${canonical}" in
2934 ## The Sun386 didn't get past 4.0.
2935 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2936 *-sunos4.0
* ) opsys
=sunos4-0
;;
2937 *-sunos4.1.
[3-9]*noshare
)
2938 ## This name is sunos413 instead of sunos4-1-3
2939 ## to avoid a file name conflict on MSDOS.
2941 NON_GNU_CPP
=/usr
/lib
/cpp
2942 NON_GCC_TEST_OPTIONS
=-Bstatic
2943 GCC_TEST_OPTIONS
=-static
2945 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2947 NON_GNU_CPP
=/usr
/lib
/cpp
2949 *-sunos4* |
*-sunos )
2951 NON_GCC_TEST_OPTIONS
=-Bstatic
2952 GCC_TEST_OPTIONS
=-static
2954 *-sunos5.3
* |
*-solaris2.3
* )
2956 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2958 *-sunos5.4
* |
*-solaris2.4
* )
2960 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2963 *-sunos5.5
* |
*-solaris2.5
* )
2965 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2968 *-sunos5.6
* |
*-solaris2.6
* )
2970 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2973 *-sunos5* |
*-solaris* )
2975 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2979 ## Watch out for a compiler that we know will not work.
2980 case "${canonical}" in
2981 *-solaris* |
*-sunos5* )
2982 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2983 ## /usr/ucb/cc doesn't work;
2984 ## we should find some other compiler that does work.
2992 machine
=sparc opsys
=nextstep
2996 m68
*-tadpole-sysv* )
2997 machine
=tad68k opsys
=usg5-3
3001 tahoe-tahoe-bsd4.2
* )
3002 machine
=tahoe opsys
=bsd4-2
3004 tahoe-tahoe-bsd4.3
* )
3005 machine
=tahoe opsys
=bsd4-3
3008 ## Tandem Integrity S2
3010 machine
=tandem-s2 opsys
=usg5-3
3014 m88k-tektronix-sysv3
* )
3015 machine
=tekxd88 opsys
=usg5-3
3018 ## Tektronix 16000 box (6130?)
3019 ns16k-tektronix-bsd
* )
3020 machine
=ns16000 opsys
=bsd4-2
3023 ## src/m/tek4300.h hints that this is a m68k machine.
3024 m68
*-tektronix-bsd* )
3025 machine
=tek4300 opsys
=bsd4-3
3029 ## We seem to have lost the machine-description file titan.h!
3031 machine
=titan opsys
=usg5-3
3034 ## Ustation E30 (SS5E)
3035 m68
*-unisys-uniplus* )
3036 machine
=ustation opsystem
=unipl5-2
3042 case "${canonical}" in
3043 *-bsd4.1
* ) opsys
=bsd4-1
;;
3044 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
3045 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
3046 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
3047 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
3048 *-vms* ) opsys
=vms
;;
3054 ns16k-whitechapel-
* )
3056 ## We don't know what sort of OS runs on these; we'll let the
3057 ## operating system guessing code below try.
3062 machine
=wicat opsys
=usg5-2
3067 machine
=ia64 opsys
=gnu-linux
3070 ## Intel 386 machines where we don't care about the manufacturer
3073 case "${canonical}" in
3074 *-cygwin ) opsys
=cygwin
;;
3075 *-darwin* ) opsys
=darwin
3076 CPP
="${CC-cc} -E -no-cpp-precomp"
3078 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
3079 *-isc2.2
* ) opsys
=isc2-2
;;
3080 *-isc4.0
* ) opsys
=isc4-0
;;
3081 *-isc4.
* ) opsys
=isc4-1
3082 GCC_TEST_OPTIONS
=-posix
3083 NON_GCC_TEST_OPTIONS
=-Xp
3085 *-isc* ) opsys
=isc3-0
;;
3086 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
3087 *-esix* ) opsys
=esix
;;
3088 *-xenix* ) opsys
=xenix
;;
3089 *-linux-gnu* ) opsys
=gnu-linux
;;
3090 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
3091 *-sco3.2v5
* ) opsys
=sco5
3092 NON_GNU_CPP
=/lib
/cpp
3093 # Prevent -belf from being passed to $CPP.
3094 # /lib/cpp does not accept it.
3095 OVERRIDE_CPPFLAGS
=" "
3097 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3098 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3099 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3100 *-386bsd* ) opsys
=386bsd
;;
3101 *-nextstep* ) opsys
=nextstep
;;
3102 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3106 ## m68k Linux-based GNU system
3108 machine
=m68k opsys
=gnu-linux
3111 ## Mips Linux-based GNU system
3112 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
3113 machine
=mips opsys
=gnu-linux
3117 sparc-fujitsu-sysv4
* )
3118 machine
=sparc opsys
=uxpds
3119 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3124 f301-fujitsu-uxpv4.1
)
3125 machine
=f301 opsys
=uxpv
3128 ## AMD x86-64 Linux-based GNU system
3129 x86_64-
*-linux-gnu* )
3130 machine
=amdx86-64 opsys
=gnu-linux
3133 ## Tensilica Xtensa Linux-based GNU system
3134 xtensa-
*-linux-gnu* )
3135 machine
=xtensa opsys
=gnu-linux
3143 ### If the code above didn't choose an operating system, just choose
3144 ### an operating system based on the configuration name. You really
3145 ### only want to use this when you have no idea what the right
3146 ### operating system is; if you know what operating systems a machine
3147 ### runs, it's cleaner to make it explicit in the case statement
3149 if test x
"${opsys}" = x
; then
3150 case "${canonical}" in
3151 *-gnu* ) opsys
=gnu
;;
3152 *-bsd4.
[01] ) opsys
=bsd4-1
;;
3153 *-bsd4.2
) opsys
=bsd4-2
;;
3154 *-bsd4.3
) opsys
=bsd4-3
;;
3155 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
3156 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
3157 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
3158 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
3159 *-sysv4.2uw
* ) opsys
=unixware
;;
3160 *-sysv5uw* ) opsys
=unixware
;;
3161 *-sysv5OpenUNIX* ) opsys
=unixware
;;
3162 *-sysv4.1
* |
*-sysvr4.1
* )
3163 NON_GNU_CPP
=/usr
/lib
/cpp
3165 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
3166 if [ x
$NON_GNU_CPP = x
]; then
3167 if [ -f /usr
/ccs
/lib
/cpp
]; then
3168 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3170 NON_GNU_CPP
=/lib
/cpp
3174 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
3183 if test $unported = yes; then
3184 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3185 Check \`etc/MACHINES' for recognized configuration names." >&5
3186 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3187 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3188 { (exit 1); exit 1; }; }
3191 machfile
="m/${machine}.h"
3192 opsysfile
="s/${opsys}.h"
3195 #### Choose a compiler.
3196 test -n "$CC" && cc_specified
=yes
3198 # Save the value of CFLAGS that the user specified.
3199 SPECIFIED_CFLAGS
="$CFLAGS"
3202 "yes" ) CC
="gcc" GCC
=yes ;;
3203 "no" ) : ${CC=cc} ;;
3207 ac_cpp
='$CPP $CPPFLAGS'
3208 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3209 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3210 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3211 if test -n "$ac_tool_prefix"; then
3212 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3213 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3214 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3216 if test "${ac_cv_prog_CC+set}" = set; then
3217 echo $ECHO_N "(cached) $ECHO_C" >&6
3219 if test -n "$CC"; then
3220 ac_cv_prog_CC
="$CC" # Let the user override the test.
3222 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3226 test -z "$as_dir" && as_dir
=.
3227 for ac_exec_ext
in '' $ac_executable_extensions; do
3228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3229 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3240 if test -n "$CC"; then
3241 { echo "$as_me:$LINENO: result: $CC" >&5
3242 echo "${ECHO_T}$CC" >&6; }
3244 { echo "$as_me:$LINENO: result: no" >&5
3245 echo "${ECHO_T}no" >&6; }
3250 if test -z "$ac_cv_prog_CC"; then
3252 # Extract the first word of "gcc", so it can be a program name with args.
3253 set dummy gcc
; ac_word
=$2
3254 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3256 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3257 echo $ECHO_N "(cached) $ECHO_C" >&6
3259 if test -n "$ac_ct_CC"; then
3260 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3262 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3266 test -z "$as_dir" && as_dir
=.
3267 for ac_exec_ext
in '' $ac_executable_extensions; do
3268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3269 ac_cv_prog_ac_ct_CC
="gcc"
3270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3279 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3280 if test -n "$ac_ct_CC"; then
3281 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3282 echo "${ECHO_T}$ac_ct_CC" >&6; }
3284 { echo "$as_me:$LINENO: result: no" >&5
3285 echo "${ECHO_T}no" >&6; }
3288 if test "x$ac_ct_CC" = x
; then
3291 case $cross_compiling:$ac_tool_warned in
3293 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3294 whose name does not start with the host triplet. If you think this
3295 configuration is useful to you, please write to autoconf@gnu.org." >&5
3296 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3297 whose name does not start with the host triplet. If you think this
3298 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3299 ac_tool_warned
=yes ;;
3307 if test -z "$CC"; then
3308 if test -n "$ac_tool_prefix"; then
3309 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3310 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3311 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3313 if test "${ac_cv_prog_CC+set}" = set; then
3314 echo $ECHO_N "(cached) $ECHO_C" >&6
3316 if test -n "$CC"; then
3317 ac_cv_prog_CC
="$CC" # Let the user override the test.
3319 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3323 test -z "$as_dir" && as_dir
=.
3324 for ac_exec_ext
in '' $ac_executable_extensions; do
3325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3326 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3337 if test -n "$CC"; then
3338 { echo "$as_me:$LINENO: result: $CC" >&5
3339 echo "${ECHO_T}$CC" >&6; }
3341 { echo "$as_me:$LINENO: result: no" >&5
3342 echo "${ECHO_T}no" >&6; }
3348 if test -z "$CC"; then
3349 # Extract the first word of "cc", so it can be a program name with args.
3350 set dummy cc
; ac_word
=$2
3351 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3353 if test "${ac_cv_prog_CC+set}" = set; then
3354 echo $ECHO_N "(cached) $ECHO_C" >&6
3356 if test -n "$CC"; then
3357 ac_cv_prog_CC
="$CC" # Let the user override the test.
3360 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3364 test -z "$as_dir" && as_dir
=.
3365 for ac_exec_ext
in '' $ac_executable_extensions; do
3366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3367 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3368 ac_prog_rejected
=yes
3372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3379 if test $ac_prog_rejected = yes; then
3380 # We found a bogon in the path, so make sure we never use it.
3381 set dummy
$ac_cv_prog_CC
3383 if test $# != 0; then
3384 # We chose a different compiler from the bogus one.
3385 # However, it has the same basename, so the bogon will be chosen
3386 # first if we set CC to just the basename; use the full file name.
3388 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3394 if test -n "$CC"; then
3395 { echo "$as_me:$LINENO: result: $CC" >&5
3396 echo "${ECHO_T}$CC" >&6; }
3398 { echo "$as_me:$LINENO: result: no" >&5
3399 echo "${ECHO_T}no" >&6; }
3404 if test -z "$CC"; then
3405 if test -n "$ac_tool_prefix"; then
3406 for ac_prog
in cl.exe
3408 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3409 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3410 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3412 if test "${ac_cv_prog_CC+set}" = set; then
3413 echo $ECHO_N "(cached) $ECHO_C" >&6
3415 if test -n "$CC"; then
3416 ac_cv_prog_CC
="$CC" # Let the user override the test.
3418 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3422 test -z "$as_dir" && as_dir
=.
3423 for ac_exec_ext
in '' $ac_executable_extensions; do
3424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3425 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3436 if test -n "$CC"; then
3437 { echo "$as_me:$LINENO: result: $CC" >&5
3438 echo "${ECHO_T}$CC" >&6; }
3440 { echo "$as_me:$LINENO: result: no" >&5
3441 echo "${ECHO_T}no" >&6; }
3445 test -n "$CC" && break
3448 if test -z "$CC"; then
3450 for ac_prog
in cl.exe
3452 # Extract the first word of "$ac_prog", so it can be a program name with args.
3453 set dummy
$ac_prog; ac_word
=$2
3454 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3456 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3457 echo $ECHO_N "(cached) $ECHO_C" >&6
3459 if test -n "$ac_ct_CC"; then
3460 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3462 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3466 test -z "$as_dir" && as_dir
=.
3467 for ac_exec_ext
in '' $ac_executable_extensions; do
3468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3469 ac_cv_prog_ac_ct_CC
="$ac_prog"
3470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3479 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3480 if test -n "$ac_ct_CC"; then
3481 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3482 echo "${ECHO_T}$ac_ct_CC" >&6; }
3484 { echo "$as_me:$LINENO: result: no" >&5
3485 echo "${ECHO_T}no" >&6; }
3489 test -n "$ac_ct_CC" && break
3492 if test "x$ac_ct_CC" = x
; then
3495 case $cross_compiling:$ac_tool_warned in
3497 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3498 whose name does not start with the host triplet. If you think this
3499 configuration is useful to you, please write to autoconf@gnu.org." >&5
3500 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3501 whose name does not start with the host triplet. If you think this
3502 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3503 ac_tool_warned
=yes ;;
3512 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3513 See \`config.log' for more details." >&5
3514 echo "$as_me: error: no acceptable C compiler found in \$PATH
3515 See \`config.log' for more details." >&2;}
3516 { (exit 1); exit 1; }; }
3518 # Provide some information about the compiler.
3519 echo "$as_me:$LINENO: checking for C compiler version" >&5
3520 ac_compiler
=`set X $ac_compile; echo $2`
3521 { (ac_try
="$ac_compiler --version >&5"
3523 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3524 *) ac_try_echo=$ac_try;;
3526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3527 (eval "$ac_compiler --version >&5") 2>&5
3529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530 (exit $ac_status); }
3531 { (ac_try="$ac_compiler -v >&5"
3533 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3534 *) ac_try_echo
=$ac_try;;
3536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3537 (eval "$ac_compiler -v >&5") 2>&5
3539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3540 (exit $ac_status); }
3541 { (ac_try
="$ac_compiler -V >&5"
3543 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3544 *) ac_try_echo=$ac_try;;
3546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3547 (eval "$ac_compiler -V >&5") 2>&5
3549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550 (exit $ac_status); }
3552 cat >conftest.$ac_ext <<_ACEOF
3555 cat confdefs.h >>conftest.$ac_ext
3556 cat >>conftest.$ac_ext <<_ACEOF
3557 /* end confdefs.h. */
3567 ac_clean_files_save=$ac_clean_files
3568 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3569 # Try to create an executable without -o first, disregard a.out.
3570 # It will help us diagnose broken compilers, and finding out an intuition
3572 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3573 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3574 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3576 # List of possible output files, starting from the most likely.
3577 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
3578 # only as a last resort. b.out is created by i960 compilers.
3579 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
3581 # The IRIX 6 linker writes into existing files which may not be
3582 # executable, retaining their permissions. Remove them first so a
3583 # subsequent execution test works.
3585 for ac_file in $ac_files
3588 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3589 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3594 if { (ac_try="$ac_link_default"
3596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3597 *) ac_try_echo=$ac_try;;
3599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3600 (eval "$ac_link_default") 2>&5
3602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603 (exit $ac_status); }; then
3604 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3605 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3606 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3607 # so that the user can short-circuit this test for compilers unknown to
3609 for ac_file
in $ac_files ''
3611 test -f "$ac_file" ||
continue
3613 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
3616 # We found the default executable, but exeext='' is most
3620 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3622 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3624 # We set ac_cv_exeext here because the later test for it is not
3625 # safe: cross compilers may not add the suffix if given an `-o'
3626 # argument, so we may need to know it at that point already.
3627 # Even if this section looks crufty: it has the advantage of
3634 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3640 { echo "$as_me:$LINENO: result: $ac_file" >&5
3641 echo "${ECHO_T}$ac_file" >&6; }
3642 if test -z "$ac_file"; then
3643 echo "$as_me: failed program was:" >&5
3644 sed 's/^/| /' conftest.
$ac_ext >&5
3646 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3647 See \`config.log' for more details." >&5
3648 echo "$as_me: error: C compiler cannot create executables
3649 See \`config.log' for more details." >&2;}
3650 { (exit 77); exit 77; }; }
3653 ac_exeext
=$ac_cv_exeext
3655 # Check that the compiler produces executables we can run. If not, either
3656 # the compiler is broken, or we cross compile.
3657 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3658 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3659 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3660 # If not cross compiling, check that we can run a simple program.
3661 if test "$cross_compiling" != yes; then
3662 if { ac_try
='./$ac_file'
3663 { (case "(($ac_try" in
3664 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3665 *) ac_try_echo=$ac_try;;
3667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3668 (eval "$ac_try") 2>&5
3670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671 (exit $ac_status); }; }; then
3674 if test "$cross_compiling" = maybe; then
3677 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3678 If you meant to cross compile, use \`--host'.
3679 See \`config.log' for more details.
" >&5
3680 echo "$as_me: error
: cannot run C compiled programs.
3681 If you meant to cross compile
, use \
`--host'.
3682 See \`config.log
' for more details." >&2;}
3683 { (exit 1); exit 1; }; }
3687 { echo "$as_me:$LINENO: result: yes" >&5
3688 echo "${ECHO_T}yes" >&6; }
3690 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3691 ac_clean_files=$ac_clean_files_save
3692 # Check that the compiler produces executables we can run. If not, either
3693 # the compiler is broken, or we cross compile.
3694 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3695 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3696 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3697 echo "${ECHO_T}$cross_compiling" >&6; }
3699 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3700 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3701 if { (ac_try="$ac_link"
3703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3704 *) ac_try_echo=$ac_try;;
3706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3707 (eval "$ac_link") 2>&5
3709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710 (exit $ac_status); }; then
3711 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3712 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3713 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3715 for ac_file
in conftest.exe conftest conftest.
*; do
3716 test -f "$ac_file" ||
continue
3718 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
3719 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3725 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3726 See \`config.log' for more details." >&5
3727 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3728 See \`config.log' for more details." >&2;}
3729 { (exit 1); exit 1; }; }
3732 rm -f conftest
$ac_cv_exeext
3733 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3734 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3736 rm -f conftest.
$ac_ext
3737 EXEEXT
=$ac_cv_exeext
3739 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3740 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3741 if test "${ac_cv_objext+set}" = set; then
3742 echo $ECHO_N "(cached) $ECHO_C" >&6
3744 cat >conftest.
$ac_ext <<_ACEOF
3747 cat confdefs.h
>>conftest.
$ac_ext
3748 cat >>conftest.
$ac_ext <<_ACEOF
3749 /* end confdefs.h. */
3759 rm -f conftest.o conftest.obj
3760 if { (ac_try
="$ac_compile"
3762 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3763 *) ac_try_echo=$ac_try;;
3765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3766 (eval "$ac_compile") 2>&5
3768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3769 (exit $ac_status); }; then
3770 for ac_file in conftest.o conftest.obj conftest.*; do
3771 test -f "$ac_file" || continue;
3773 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3774 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3779 echo "$as_me: failed program was:" >&5
3780 sed 's/^/| /' conftest.$ac_ext >&5
3782 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3783 See \`config.log
' for more details." >&5
3784 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3785 See \`config.log' for more details.
" >&2;}
3786 { (exit 1); exit 1; }; }
3789 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3791 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3792 echo "${ECHO_T}$ac_cv_objext" >&6; }
3793 OBJEXT=$ac_cv_objext
3795 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3796 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3797 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3798 echo $ECHO_N "(cached
) $ECHO_C" >&6
3800 cat >conftest.$ac_ext <<_ACEOF
3803 cat confdefs.h >>conftest.$ac_ext
3804 cat >>conftest.$ac_ext <<_ACEOF
3805 /* end confdefs.h. */
3818 rm -f conftest.$ac_objext
3819 if { (ac_try="$ac_compile"
3821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3822 *) ac_try_echo=$ac_try;;
3824 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3825 (eval "$ac_compile") 2>conftest.er1
3827 grep -v '^ *+' conftest.er1 >conftest.err
3829 cat conftest.err >&5
3830 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3831 (exit $ac_status); } && {
3832 test -z "$ac_c_werror_flag" ||
3833 test ! -s conftest.err
3834 } && test -s conftest.$ac_objext; then
3837 echo "$as_me: failed program was
:" >&5
3838 sed 's/^/| /' conftest.$ac_ext >&5
3843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3844 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3847 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3848 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3849 GCC=`test $ac_compiler_gnu = yes && echo yes`
3850 ac_test_CFLAGS=${CFLAGS+set}
3851 ac_save_CFLAGS=$CFLAGS
3852 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3853 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3854 if test "${ac_cv_prog_cc_g+set}" = set; then
3855 echo $ECHO_N "(cached
) $ECHO_C" >&6
3857 ac_save_c_werror_flag=$ac_c_werror_flag
3858 ac_c_werror_flag=yes
3861 cat >conftest.$ac_ext <<_ACEOF
3864 cat confdefs.h >>conftest.$ac_ext
3865 cat >>conftest.$ac_ext <<_ACEOF
3866 /* end confdefs.h. */
3876 rm -f conftest.$ac_objext
3877 if { (ac_try="$ac_compile"
3879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3880 *) ac_try_echo=$ac_try;;
3882 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3883 (eval "$ac_compile") 2>conftest.er1
3885 grep -v '^ *+' conftest.er1 >conftest.err
3887 cat conftest.err >&5
3888 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3889 (exit $ac_status); } && {
3890 test -z "$ac_c_werror_flag" ||
3891 test ! -s conftest.err
3892 } && test -s conftest.$ac_objext; then
3895 echo "$as_me: failed program was
:" >&5
3896 sed 's/^/| /' conftest.$ac_ext >&5
3899 cat >conftest.$ac_ext <<_ACEOF
3902 cat confdefs.h >>conftest.$ac_ext
3903 cat >>conftest.$ac_ext <<_ACEOF
3904 /* end confdefs.h. */
3914 rm -f conftest.$ac_objext
3915 if { (ac_try="$ac_compile"
3917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3918 *) ac_try_echo=$ac_try;;
3920 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3921 (eval "$ac_compile") 2>conftest.er1
3923 grep -v '^ *+' conftest.er1 >conftest.err
3925 cat conftest.err >&5
3926 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3927 (exit $ac_status); } && {
3928 test -z "$ac_c_werror_flag" ||
3929 test ! -s conftest.err
3930 } && test -s conftest.$ac_objext; then
3933 echo "$as_me: failed program was
:" >&5
3934 sed 's/^/| /' conftest.$ac_ext >&5
3936 ac_c_werror_flag=$ac_save_c_werror_flag
3938 cat >conftest.$ac_ext <<_ACEOF
3941 cat confdefs.h >>conftest.$ac_ext
3942 cat >>conftest.$ac_ext <<_ACEOF
3943 /* end confdefs.h. */
3953 rm -f conftest.$ac_objext
3954 if { (ac_try="$ac_compile"
3956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3957 *) ac_try_echo=$ac_try;;
3959 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3960 (eval "$ac_compile") 2>conftest.er1
3962 grep -v '^ *+' conftest.er1 >conftest.err
3964 cat conftest.err >&5
3965 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3966 (exit $ac_status); } && {
3967 test -z "$ac_c_werror_flag" ||
3968 test ! -s conftest.err
3969 } && test -s conftest.$ac_objext; then
3972 echo "$as_me: failed program was
:" >&5
3973 sed 's/^/| /' conftest.$ac_ext >&5
3978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3985 ac_c_werror_flag=$ac_save_c_werror_flag
3987 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3988 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3989 if test "$ac_test_CFLAGS" = set; then
3990 CFLAGS=$ac_save_CFLAGS
3991 elif test $ac_cv_prog_cc_g = yes; then
3992 if test "$GCC" = yes; then
3998 if test "$GCC" = yes; then
4004 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
4005 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
4006 if test "${ac_cv_prog_cc_c89+set}" = set; then
4007 echo $ECHO_N "(cached
) $ECHO_C" >&6
4009 ac_cv_prog_cc_c89=no
4011 cat >conftest.$ac_ext <<_ACEOF
4014 cat confdefs.h >>conftest.$ac_ext
4015 cat >>conftest.$ac_ext <<_ACEOF
4016 /* end confdefs.h. */
4019 #include <sys/types.h>
4020 #include <sys/stat.h>
4021 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4022 struct buf { int x; };
4023 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4024 static char *e (p, i)
4030 static char *f (char * (*g) (char **, int), char **p, ...)
4035 s = g (p, va_arg (v,int));
4040 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4041 function prototypes and stuff, but not '\xHH' hex character constants.
4042 These don't provoke an error unfortunately, instead are silently treated
4043 as 'x'. The following induces an error, until -std is added to get
4044 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4045 array size at least. It's necessary to write '\x00'==0 to get something
4046 that's true only with -std. */
4047 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4049 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4050 inside strings and character constants. */
4052 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4054 int test (int i, double x);
4055 struct s1 {int (*f) (int a);};
4056 struct s2 {int (*f) (double a);};
4057 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4063 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4068 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4069 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4071 CC="$ac_save_CC $ac_arg"
4072 rm -f conftest.$ac_objext
4073 if { (ac_try="$ac_compile"
4075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4076 *) ac_try_echo=$ac_try;;
4078 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4079 (eval "$ac_compile") 2>conftest.er1
4081 grep -v '^ *+' conftest.er1 >conftest.err
4083 cat conftest.err >&5
4084 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4085 (exit $ac_status); } && {
4086 test -z "$ac_c_werror_flag" ||
4087 test ! -s conftest.err
4088 } && test -s conftest.$ac_objext; then
4089 ac_cv_prog_cc_c89=$ac_arg
4091 echo "$as_me: failed program was
:" >&5
4092 sed 's/^/| /' conftest.$ac_ext >&5
4097 rm -f core conftest.err conftest.$ac_objext
4098 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
4100 rm -f conftest.$ac_ext
4105 case "x
$ac_cv_prog_cc_c89" in
4107 { echo "$as_me:$LINENO: result
: none needed
" >&5
4108 echo "${ECHO_T}none needed
" >&6; } ;;
4110 { echo "$as_me:$LINENO: result
: unsupported
" >&5
4111 echo "${ECHO_T}unsupported
" >&6; } ;;
4113 CC="$CC $ac_cv_prog_cc_c89"
4114 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
4115 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4120 ac_cpp='$CPP $CPPFLAGS'
4121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4126 # On Suns, sometimes $CPP names a directory.
4127 if test -n "$CPP" && test -d "$CPP"; then
4131 #### Some systems specify a CPP to use unless we are using GCC.
4132 #### Now that we know whether we are using GCC, we can decide whether
4133 #### to use that one.
4134 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
4139 #### Some systems specify a CC to use unless we are using GCC.
4140 #### Now that we know whether we are using GCC, we can decide whether
4141 #### to use that one.
4142 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
4143 test x$cc_specified != xyes
4148 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
4150 CC="$CC $GCC_TEST_OPTIONS"
4153 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
4155 CC="$CC $NON_GCC_TEST_OPTIONS"
4160 ac_cpp='$CPP $CPPFLAGS'
4161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4164 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
4165 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
4166 # On Suns, sometimes $CPP names a directory.
4167 if test -n "$CPP" && test -d "$CPP"; then
4170 if test -z "$CPP"; then
4171 if test "${ac_cv_prog_CPP+set}" = set; then
4172 echo $ECHO_N "(cached
) $ECHO_C" >&6
4174 # Double quotes because CPP needs to be expanded
4175 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
4178 for ac_c_preproc_warn_flag in '' yes
4180 # Use a header file that comes with gcc, so configuring glibc
4181 # with a fresh cross-compiler works.
4182 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4183 # <limits.h> exists even on freestanding compilers.
4184 # On the NeXT, cc -E runs the code through the compiler's parser,
4185 # not just through cpp. "Syntax error
" is here to catch this case.
4186 cat >conftest.$ac_ext <<_ACEOF
4189 cat confdefs.h >>conftest.$ac_ext
4190 cat >>conftest.$ac_ext <<_ACEOF
4191 /* end confdefs.h. */
4193 # include <limits.h>
4195 # include <assert.h>
4199 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4202 *) ac_try_echo=$ac_try;;
4204 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4205 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4207 grep -v '^ *+' conftest.er1 >conftest.err
4209 cat conftest.err >&5
4210 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4211 (exit $ac_status); } >/dev/null && {
4212 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4213 test ! -s conftest.err
4217 echo "$as_me: failed program was
:" >&5
4218 sed 's/^/| /' conftest.$ac_ext >&5
4220 # Broken: fails on valid input.
4224 rm -f conftest.err conftest.$ac_ext
4226 # OK, works on sane cases. Now check whether nonexistent headers
4227 # can be detected and how.
4228 cat >conftest.$ac_ext <<_ACEOF
4231 cat confdefs.h >>conftest.$ac_ext
4232 cat >>conftest.$ac_ext <<_ACEOF
4233 /* end confdefs.h. */
4234 #include <ac_nonexistent.h>
4236 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4239 *) ac_try_echo=$ac_try;;
4241 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4242 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4244 grep -v '^ *+' conftest.er1 >conftest.err
4246 cat conftest.err >&5
4247 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4248 (exit $ac_status); } >/dev/null && {
4249 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4250 test ! -s conftest.err
4252 # Broken: success on invalid input.
4255 echo "$as_me: failed program was
:" >&5
4256 sed 's/^/| /' conftest.$ac_ext >&5
4258 # Passes both tests.
4263 rm -f conftest.err conftest.$ac_ext
4266 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4267 rm -f conftest.err conftest.$ac_ext
4268 if $ac_preproc_ok; then
4280 { echo "$as_me:$LINENO: result
: $CPP" >&5
4281 echo "${ECHO_T}$CPP" >&6; }
4283 for ac_c_preproc_warn_flag in '' yes
4285 # Use a header file that comes with gcc, so configuring glibc
4286 # with a fresh cross-compiler works.
4287 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4288 # <limits.h> exists even on freestanding compilers.
4289 # On the NeXT, cc -E runs the code through the compiler's parser,
4290 # not just through cpp. "Syntax error
" is here to catch this case.
4291 cat >conftest.$ac_ext <<_ACEOF
4294 cat confdefs.h >>conftest.$ac_ext
4295 cat >>conftest.$ac_ext <<_ACEOF
4296 /* end confdefs.h. */
4298 # include <limits.h>
4300 # include <assert.h>
4304 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4307 *) ac_try_echo=$ac_try;;
4309 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4310 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4312 grep -v '^ *+' conftest.er1 >conftest.err
4314 cat conftest.err >&5
4315 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4316 (exit $ac_status); } >/dev/null && {
4317 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4318 test ! -s conftest.err
4322 echo "$as_me: failed program was
:" >&5
4323 sed 's/^/| /' conftest.$ac_ext >&5
4325 # Broken: fails on valid input.
4329 rm -f conftest.err conftest.$ac_ext
4331 # OK, works on sane cases. Now check whether nonexistent headers
4332 # can be detected and how.
4333 cat >conftest.$ac_ext <<_ACEOF
4336 cat confdefs.h >>conftest.$ac_ext
4337 cat >>conftest.$ac_ext <<_ACEOF
4338 /* end confdefs.h. */
4339 #include <ac_nonexistent.h>
4341 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4344 *) ac_try_echo=$ac_try;;
4346 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4347 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4349 grep -v '^ *+' conftest.er1 >conftest.err
4351 cat conftest.err >&5
4352 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4353 (exit $ac_status); } >/dev/null && {
4354 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4355 test ! -s conftest.err
4357 # Broken: success on invalid input.
4360 echo "$as_me: failed program was
:" >&5
4361 sed 's/^/| /' conftest.$ac_ext >&5
4363 # Passes both tests.
4368 rm -f conftest.err conftest.$ac_ext
4371 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4372 rm -f conftest.err conftest.$ac_ext
4373 if $ac_preproc_ok; then
4376 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4377 See \
`config.log' for more details." >&5
4378 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4379 See \`config.log
' for more details." >&2;}
4380 { (exit 1); exit 1; }; }
4384 ac_cpp='$CPP $CPPFLAGS'
4385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4386 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4390 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4391 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4392 if test "${ac_cv_path_GREP+set}" = set; then
4393 echo $ECHO_N "(cached) $ECHO_C" >&6
4395 # Extract the first word of "grep ggrep" to use in msg output
4396 if test -z "$GREP"; then
4397 set dummy grep ggrep; ac_prog_name=$2
4398 if test "${ac_cv_path_GREP+set}" = set; then
4399 echo $ECHO_N "(cached) $ECHO_C" >&6
4401 ac_path_GREP_found=false
4402 # Loop through the user's path and
test for each of PROGNAME-LIST
4403 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4404 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4407 test -z "$as_dir" && as_dir
=.
4408 for ac_prog
in grep ggrep
; do
4409 for ac_exec_ext
in '' $ac_executable_extensions; do
4410 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4411 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4412 # Check for GNU ac_path_GREP and select it if it is found.
4413 # Check for GNU $ac_path_GREP
4414 case `"$ac_path_GREP" --version 2>&1` in
4416 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4419 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4422 cat "conftest.in" "conftest.in" >"conftest.tmp"
4423 mv "conftest.tmp" "conftest.in"
4424 cp "conftest.in" "conftest.nl"
4425 echo 'GREP' >> "conftest.nl"
4426 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4427 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4428 ac_count
=`expr $ac_count + 1`
4429 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4430 # Best one so far, save it but keep looking for a better one
4431 ac_cv_path_GREP
="$ac_path_GREP"
4432 ac_path_GREP_max
=$ac_count
4434 # 10*(2^10) chars as input seems more than enough
4435 test $ac_count -gt 10 && break
4437 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4441 $ac_path_GREP_found && break 3
4451 GREP
="$ac_cv_path_GREP"
4452 if test -z "$GREP"; then
4453 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4454 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4455 { (exit 1); exit 1; }; }
4459 ac_cv_path_GREP
=$GREP
4464 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4465 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4466 GREP
="$ac_cv_path_GREP"
4469 { echo "$as_me:$LINENO: checking for egrep" >&5
4470 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4471 if test "${ac_cv_path_EGREP+set}" = set; then
4472 echo $ECHO_N "(cached) $ECHO_C" >&6
4474 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4475 then ac_cv_path_EGREP
="$GREP -E"
4477 # Extract the first word of "egrep" to use in msg output
4478 if test -z "$EGREP"; then
4479 set dummy
egrep; ac_prog_name
=$2
4480 if test "${ac_cv_path_EGREP+set}" = set; then
4481 echo $ECHO_N "(cached) $ECHO_C" >&6
4483 ac_path_EGREP_found
=false
4484 # Loop through the user's path and test for each of PROGNAME-LIST
4485 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4486 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4489 test -z "$as_dir" && as_dir
=.
4490 for ac_prog
in egrep; do
4491 for ac_exec_ext
in '' $ac_executable_extensions; do
4492 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4493 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4494 # Check for GNU ac_path_EGREP and select it if it is found.
4495 # Check for GNU $ac_path_EGREP
4496 case `"$ac_path_EGREP" --version 2>&1` in
4498 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4501 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4504 cat "conftest.in" "conftest.in" >"conftest.tmp"
4505 mv "conftest.tmp" "conftest.in"
4506 cp "conftest.in" "conftest.nl"
4507 echo 'EGREP' >> "conftest.nl"
4508 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4509 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4510 ac_count
=`expr $ac_count + 1`
4511 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4512 # Best one so far, save it but keep looking for a better one
4513 ac_cv_path_EGREP
="$ac_path_EGREP"
4514 ac_path_EGREP_max
=$ac_count
4516 # 10*(2^10) chars as input seems more than enough
4517 test $ac_count -gt 10 && break
4519 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4523 $ac_path_EGREP_found && break 3
4533 EGREP
="$ac_cv_path_EGREP"
4534 if test -z "$EGREP"; then
4535 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4536 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4537 { (exit 1); exit 1; }; }
4541 ac_cv_path_EGREP
=$EGREP
4547 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4548 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4549 EGREP
="$ac_cv_path_EGREP"
4553 { echo "$as_me:$LINENO: checking for AIX" >&5
4554 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4555 cat >conftest.
$ac_ext <<_ACEOF
4558 cat confdefs.h
>>conftest.
$ac_ext
4559 cat >>conftest.
$ac_ext <<_ACEOF
4560 /* end confdefs.h. */
4566 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4567 $EGREP "yes" >/dev
/null
2>&1; then
4568 { echo "$as_me:$LINENO: result: yes" >&5
4569 echo "${ECHO_T}yes" >&6; }
4570 cat >>confdefs.h
<<\_ACEOF
4571 #define _ALL_SOURCE 1
4575 { echo "$as_me:$LINENO: result: no" >&5
4576 echo "${ECHO_T}no" >&6; }
4582 cat >>confdefs.h
<<\_ACEOF
4583 #define _GNU_SOURCE 1
4588 ### Use -Wno-pointer-sign if the compiler supports it
4589 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4590 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4591 SAVE_CFLAGS
="$CFLAGS"
4592 CFLAGS
="$CFLAGS -Wno-pointer-sign"
4593 cat >conftest.
$ac_ext <<_ACEOF
4596 cat confdefs.h
>>conftest.
$ac_ext
4597 cat >>conftest.
$ac_ext <<_ACEOF
4598 /* end confdefs.h. */
4608 rm -f conftest.
$ac_objext
4609 if { (ac_try
="$ac_compile"
4611 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4612 *) ac_try_echo=$ac_try;;
4614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4615 (eval "$ac_compile") 2>conftest.er1
4617 grep -v '^ *+' conftest.er1 >conftest.err
4619 cat conftest.err >&5
4620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621 (exit $ac_status); } && {
4622 test -z "$ac_c_werror_flag" ||
4623 test ! -s conftest.err
4624 } && test -s conftest.$ac_objext; then
4627 echo "$as_me: failed program was:" >&5
4628 sed 's/^/| /' conftest.$ac_ext >&5
4633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4634 if test $has_option = yes; then
4635 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4637 { echo "$as_me:$LINENO: result: $has_option" >&5
4638 echo "${ECHO_T}$has_option" >&6; }
4639 CFLAGS="$SAVE_CFLAGS"
4643 #### Some other nice autoconf tests.
4645 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4646 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4648 if test "$LN_S" = "ln -s"; then
4649 { echo "$as_me:$LINENO: result: yes" >&5
4650 echo "${ECHO_T}yes" >&6; }
4652 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4653 echo "${ECHO_T}no, using $LN_S" >&6; }
4657 ac_cpp='$CPP $CPPFLAGS'
4658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4661 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4662 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4663 # On Suns, sometimes $CPP names a directory.
4664 if test -n "$CPP" && test -d "$CPP"; then
4667 if test -z "$CPP"; then
4668 if test "${ac_cv_prog_CPP+set}" = set; then
4669 echo $ECHO_N "(cached) $ECHO_C" >&6
4671 # Double quotes because CPP needs to be expanded
4672 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4675 for ac_c_preproc_warn_flag in '' yes
4677 # Use a header file that comes with gcc, so configuring glibc
4678 # with a fresh cross-compiler works.
4679 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4680 # <limits.h> exists even on freestanding compilers.
4681 # On the NeXT, cc -E runs the code through the compiler's parser,
4682 # not just through cpp. "Syntax error" is here to catch this case.
4683 cat >conftest.$ac_ext <<_ACEOF
4686 cat confdefs.h >>conftest.$ac_ext
4687 cat >>conftest.$ac_ext <<_ACEOF
4688 /* end confdefs.h. */
4690 # include <limits.h>
4692 # include <assert.h>
4696 if { (ac_try="$ac_cpp conftest.$ac_ext"
4698 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4699 *) ac_try_echo
=$ac_try;;
4701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4702 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4704 grep -v '^ *+' conftest.er1
>conftest.err
4706 cat conftest.err
>&5
4707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708 (exit $ac_status); } >/dev
/null
&& {
4709 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4710 test ! -s conftest.err
4714 echo "$as_me: failed program was:" >&5
4715 sed 's/^/| /' conftest.
$ac_ext >&5
4717 # Broken: fails on valid input.
4721 rm -f conftest.err conftest.
$ac_ext
4723 # OK, works on sane cases. Now check whether nonexistent headers
4724 # can be detected and how.
4725 cat >conftest.
$ac_ext <<_ACEOF
4728 cat confdefs.h
>>conftest.
$ac_ext
4729 cat >>conftest.
$ac_ext <<_ACEOF
4730 /* end confdefs.h. */
4731 #include <ac_nonexistent.h>
4733 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4735 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4736 *) ac_try_echo=$ac_try;;
4738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4739 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4741 grep -v '^ *+' conftest.er1 >conftest.err
4743 cat conftest.err >&5
4744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745 (exit $ac_status); } >/dev/null && {
4746 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4747 test ! -s conftest.err
4749 # Broken: success on invalid input.
4752 echo "$as_me: failed program was:" >&5
4753 sed 's/^/| /' conftest.$ac_ext >&5
4755 # Passes both tests.
4760 rm -f conftest.err conftest.$ac_ext
4763 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4764 rm -f conftest.err conftest.
$ac_ext
4765 if $ac_preproc_ok; then
4777 { echo "$as_me:$LINENO: result: $CPP" >&5
4778 echo "${ECHO_T}$CPP" >&6; }
4780 for ac_c_preproc_warn_flag
in '' yes
4782 # Use a header file that comes with gcc, so configuring glibc
4783 # with a fresh cross-compiler works.
4784 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4785 # <limits.h> exists even on freestanding compilers.
4786 # On the NeXT, cc -E runs the code through the compiler's parser,
4787 # not just through cpp. "Syntax error" is here to catch this case.
4788 cat >conftest.
$ac_ext <<_ACEOF
4791 cat confdefs.h
>>conftest.
$ac_ext
4792 cat >>conftest.
$ac_ext <<_ACEOF
4793 /* end confdefs.h. */
4795 # include <limits.h>
4797 # include <assert.h>
4801 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4803 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4804 *) ac_try_echo=$ac_try;;
4806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4807 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4809 grep -v '^ *+' conftest.er1 >conftest.err
4811 cat conftest.err >&5
4812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813 (exit $ac_status); } >/dev/null && {
4814 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4815 test ! -s conftest.err
4819 echo "$as_me: failed program was:" >&5
4820 sed 's/^/| /' conftest.$ac_ext >&5
4822 # Broken: fails on valid input.
4826 rm -f conftest.err conftest.$ac_ext
4828 # OK, works on sane cases. Now check whether nonexistent headers
4829 # can be detected and how.
4830 cat >conftest.$ac_ext <<_ACEOF
4833 cat confdefs.h >>conftest.$ac_ext
4834 cat >>conftest.$ac_ext <<_ACEOF
4835 /* end confdefs.h. */
4836 #include <ac_nonexistent.h>
4838 if { (ac_try="$ac_cpp conftest.$ac_ext"
4840 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4841 *) ac_try_echo
=$ac_try;;
4843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4844 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4846 grep -v '^ *+' conftest.er1
>conftest.err
4848 cat conftest.err
>&5
4849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4850 (exit $ac_status); } >/dev
/null
&& {
4851 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4852 test ! -s conftest.err
4854 # Broken: success on invalid input.
4857 echo "$as_me: failed program was:" >&5
4858 sed 's/^/| /' conftest.
$ac_ext >&5
4860 # Passes both tests.
4865 rm -f conftest.err conftest.
$ac_ext
4868 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4869 rm -f conftest.err conftest.
$ac_ext
4870 if $ac_preproc_ok; then
4873 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4874 See \`config.log' for more details." >&5
4875 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4876 See \`config.log' for more details." >&2;}
4877 { (exit 1); exit 1; }; }
4881 ac_cpp
='$CPP $CPPFLAGS'
4882 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4883 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4884 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4886 # Find a good install program. We prefer a C program (faster),
4887 # so one script is as good as another. But avoid the broken or
4888 # incompatible versions:
4889 # SysV /etc/install, /usr/sbin/install
4890 # SunOS /usr/etc/install
4891 # IRIX /sbin/install
4893 # AmigaOS /C/install, which installs bootblocks on floppy discs
4894 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4895 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4896 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4897 # OS/2's system install, which has a completely different semantic
4898 # ./install, which can be erroneously created by make from ./install.sh.
4899 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4900 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4901 if test -z "$INSTALL"; then
4902 if test "${ac_cv_path_install+set}" = set; then
4903 echo $ECHO_N "(cached) $ECHO_C" >&6
4905 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4909 test -z "$as_dir" && as_dir
=.
4910 # Account for people who put trailing slashes in PATH elements.
4912 .
/ | .
// |
/cC
/* | \
4913 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4914 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4917 # OSF1 and SCO ODT 3.0 have their own names for install.
4918 # Don't use installbsd from OSF since it installs stuff as root
4920 for ac_prog
in ginstall scoinst
install; do
4921 for ac_exec_ext
in '' $ac_executable_extensions; do
4922 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4923 if test $ac_prog = install &&
4924 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4925 # AIX install. It has an incompatible calling convention.
4927 elif test $ac_prog = install &&
4928 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4929 # program-specific install script used by HP pwplus--don't use.
4932 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4945 if test "${ac_cv_path_install+set}" = set; then
4946 INSTALL
=$ac_cv_path_install
4948 # As a last resort, use the slow shell script. Don't cache a
4949 # value for INSTALL within a source directory, because that will
4950 # break other packages using the cache if that directory is
4951 # removed, or if the value is a relative name.
4952 INSTALL
=$ac_install_sh
4955 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4956 echo "${ECHO_T}$INSTALL" >&6; }
4958 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4959 # It thinks the first close brace ends the variable substitution.
4960 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4962 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4964 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4966 if test "x$RANLIB" = x
; then
4967 if test -n "$ac_tool_prefix"; then
4968 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4969 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4970 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4972 if test "${ac_cv_prog_RANLIB+set}" = set; then
4973 echo $ECHO_N "(cached) $ECHO_C" >&6
4975 if test -n "$RANLIB"; then
4976 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4978 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4982 test -z "$as_dir" && as_dir
=.
4983 for ac_exec_ext
in '' $ac_executable_extensions; do
4984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4985 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4995 RANLIB
=$ac_cv_prog_RANLIB
4996 if test -n "$RANLIB"; then
4997 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4998 echo "${ECHO_T}$RANLIB" >&6; }
5000 { echo "$as_me:$LINENO: result: no" >&5
5001 echo "${ECHO_T}no" >&6; }
5006 if test -z "$ac_cv_prog_RANLIB"; then
5007 ac_ct_RANLIB
=$RANLIB
5008 # Extract the first word of "ranlib", so it can be a program name with args.
5009 set dummy ranlib
; ac_word
=$2
5010 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5012 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5013 echo $ECHO_N "(cached) $ECHO_C" >&6
5015 if test -n "$ac_ct_RANLIB"; then
5016 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5018 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5022 test -z "$as_dir" && as_dir
=.
5023 for ac_exec_ext
in '' $ac_executable_extensions; do
5024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5025 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5035 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5036 if test -n "$ac_ct_RANLIB"; then
5037 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5038 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5040 { echo "$as_me:$LINENO: result: no" >&5
5041 echo "${ECHO_T}no" >&6; }
5044 if test "x$ac_ct_RANLIB" = x
; then
5047 case $cross_compiling:$ac_tool_warned in
5049 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5050 whose name does not start with the host triplet. If you think this
5051 configuration is useful to you, please write to autoconf@gnu.org." >&5
5052 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5053 whose name does not start with the host triplet. If you think this
5054 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5055 ac_tool_warned
=yes ;;
5057 RANLIB
=$ac_ct_RANLIB
5060 RANLIB
="$ac_cv_prog_RANLIB"
5064 # Extract the first word of "install-info", so it can be a program name with args.
5065 set dummy install-info
; ac_word
=$2
5066 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5068 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5069 echo $ECHO_N "(cached) $ECHO_C" >&6
5071 case $INSTALL_INFO in
5073 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5076 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5080 test -z "$as_dir" && as_dir
=.
5081 for ac_exec_ext
in '' $ac_executable_extensions; do
5082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5083 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5094 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5095 if test -n "$INSTALL_INFO"; then
5096 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5097 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5099 { echo "$as_me:$LINENO: result: no" >&5
5100 echo "${ECHO_T}no" >&6; }
5104 # Extract the first word of "install-info", so it can be a program name with args.
5105 set dummy install-info
; ac_word
=$2
5106 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5108 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5109 echo $ECHO_N "(cached) $ECHO_C" >&6
5111 case $INSTALL_INFO in
5113 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5116 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5117 for as_dir
in /usr
/sbin
5120 test -z "$as_dir" && as_dir
=.
5121 for ac_exec_ext
in '' $ac_executable_extensions; do
5122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5123 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5134 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5135 if test -n "$INSTALL_INFO"; then
5136 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5137 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5139 { echo "$as_me:$LINENO: result: no" >&5
5140 echo "${ECHO_T}no" >&6; }
5144 # Extract the first word of "install-info", so it can be a program name with args.
5145 set dummy install-info
; ac_word
=$2
5146 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5148 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5149 echo $ECHO_N "(cached) $ECHO_C" >&6
5151 case $INSTALL_INFO in
5153 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5156 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5160 test -z "$as_dir" && as_dir
=.
5161 for ac_exec_ext
in '' $ac_executable_extensions; do
5162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5163 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5171 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5175 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5176 if test -n "$INSTALL_INFO"; then
5177 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5178 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5180 { echo "$as_me:$LINENO: result: no" >&5
5181 echo "${ECHO_T}no" >&6; }
5185 # Extract the first word of "gzip", so it can be a program name with args.
5186 set dummy
gzip; ac_word
=$2
5187 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5189 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5190 echo $ECHO_N "(cached) $ECHO_C" >&6
5194 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5197 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5201 test -z "$as_dir" && as_dir
=.
5202 for ac_exec_ext
in '' $ac_executable_extensions; do
5203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5204 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5215 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5216 if test -n "$GZIP_PROG"; then
5217 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5218 echo "${ECHO_T}$GZIP_PROG" >&6; }
5220 { echo "$as_me:$LINENO: result: no" >&5
5221 echo "${ECHO_T}no" >&6; }
5227 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5229 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5232 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5234 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5238 late_LDFLAGS
=$LDFLAGS
5239 if test "$GCC" = yes; then
5240 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5242 LDFLAGS
="$LDFLAGS -znocombreloc"
5245 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5246 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5247 cat >conftest.
$ac_ext <<_ACEOF
5250 rm -f conftest.
$ac_objext conftest
$ac_exeext
5251 if { (ac_try
="$ac_link"
5253 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5254 *) ac_try_echo=$ac_try;;
5256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5257 (eval "$ac_link") 2>conftest.er1
5259 grep -v '^ *+' conftest.er1 >conftest.err
5261 cat conftest.err >&5
5262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263 (exit $ac_status); } && {
5264 test -z "$ac_c_werror_flag" ||
5265 test ! -s conftest.err
5266 } && test -s conftest$ac_exeext &&
5267 $as_test_x conftest$ac_exeext; then
5268 { echo "$as_me:$LINENO: result: yes" >&5
5269 echo "${ECHO_T}yes" >&6; }
5271 echo "$as_me: failed program was:" >&5
5272 sed 's/^/| /' conftest.$ac_ext >&5
5274 LDFLAGS=$late_LDFLAGS
5275 { echo "$as_me:$LINENO: result: no" >&5
5276 echo "${ECHO_T}no" >&6; }
5279 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5280 conftest$ac_exeext conftest.$ac_ext
5282 #### Extract some information from the operating system and machine files.
5284 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5285 - which libraries the lib-src programs will want, and
5286 - whether the GNU malloc routines are usable..." >&5
5287 echo "$as_me: checking the machine- and system-dependent files to find out
5288 - which libraries the lib-src programs will want, and
5289 - whether the GNU malloc routines are usable..." >&6;}
5291 ### First figure out CFLAGS (which we use for running the compiler here)
5292 ### and REAL_CFLAGS (which we use for real compilation).
5293 ### The two are the same except on a few systems, where they are made
5294 ### different to work around various lossages. For example,
5295 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5296 ### as implying static linking.
5298 ### If the CFLAGS env var is specified, we use that value
5299 ### instead of the default.
5301 ### It's not important that this name contain the PID; you can't run
5302 ### two configures in the same directory and have anything work
5304 tempcname="conftest.c"
5307 #include "'${srcdir}'/src/'${opsysfile}'"
5308 #include "'${srcdir}'/src/'${machfile}'"
5309 #ifndef LIBS_MACHINE
5310 #define LIBS_MACHINE
5315 #ifndef C_SWITCH_SYSTEM
5316 #define C_SWITCH_SYSTEM
5318 #ifndef C_SWITCH_MACHINE
5319 #define C_SWITCH_MACHINE
5321 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5322 configure___ c_switch_system=C_SWITCH_SYSTEM
5323 configure___ c_switch_machine=C_SWITCH_MACHINE
5326 #define LIB_X11_LIB -lX11
5329 #ifndef LIBX11_MACHINE
5330 #define LIBX11_MACHINE
5333 #ifndef LIBX11_SYSTEM
5334 #define LIBX11_SYSTEM
5336 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5339 configure___ unexec=UNEXEC
5341 configure___ unexec=unexec.o
5344 #ifdef SYSTEM_MALLOC
5345 configure___ system_malloc=yes
5347 configure___ system_malloc=no
5350 #ifdef USE_MMAP_FOR_BUFFERS
5351 configure___ use_mmap_for_buffers=yes
5353 configure___ use_mmap_for_buffers=no
5356 #ifndef C_DEBUG_SWITCH
5357 #define C_DEBUG_SWITCH -g
5360 #ifndef C_OPTIMIZE_SWITCH
5362 #define C_OPTIMIZE_SWITCH -O2
5364 #define C_OPTIMIZE_SWITCH -O
5368 #ifndef C_WARNINGS_SWITCH
5369 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5372 #ifndef LD_SWITCH_MACHINE
5373 #define LD_SWITCH_MACHINE
5376 #ifndef LD_SWITCH_SYSTEM
5377 #define LD_SWITCH_SYSTEM
5380 #ifndef LD_SWITCH_X_SITE_AUX
5381 #define LD_SWITCH_X_SITE_AUX
5384 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5385 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5387 #ifdef THIS_IS_CONFIGURE
5389 /* Get the CFLAGS for tests in configure. */
5391 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5393 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5396 #else /* not THIS_IS_CONFIGURE */
5398 /* Get the CFLAGS for real compilation. */
5400 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5402 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5405 #endif /* not THIS_IS_CONFIGURE */
5408 # The value of CPP is a quoted variable reference, so we need to do this
5409 # to get its actual value...
5410 CPP=`eval "echo $CPP"`
5411 eval `${CPP} -Isrc ${tempcname} \
5412 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5413 if test "x$SPECIFIED_CFLAGS" = x; then
5414 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5415 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5417 REAL_CFLAGS="$CFLAGS"
5421 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5423 ### Make sure subsequent tests use flags consistent with the build flags.
5425 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5426 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5428 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5433 # Check whether --enable-largefile was given.
5434 if test "${enable_largefile+set}" = set; then
5435 enableval=$enable_largefile;
5438 if test "$enable_largefile" != no; then
5440 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5441 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5442 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5443 echo $ECHO_N "(cached) $ECHO_C" >&6
5445 ac_cv_sys_largefile_CC=no
5446 if test "$GCC" != yes; then
5449 # IRIX 6.2 and later do not support large files by default,
5450 # so use the C compiler's -n32 option if that helps.
5451 cat >conftest.$ac_ext <<_ACEOF
5454 cat confdefs.h >>conftest.$ac_ext
5455 cat >>conftest.$ac_ext <<_ACEOF
5456 /* end confdefs.h. */
5457 #include <sys/types.h>
5458 /* Check that off_t can represent 2**63 - 1 correctly.
5459 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5460 since some C++ compilers masquerading as C compilers
5461 incorrectly reject 9223372036854775807. */
5462 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5463 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5464 && LARGE_OFF_T % 2147483647 == 1)
5474 rm -f conftest.$ac_objext
5475 if { (ac_try="$ac_compile"
5477 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5478 *) ac_try_echo
=$ac_try;;
5480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5481 (eval "$ac_compile") 2>conftest.er1
5483 grep -v '^ *+' conftest.er1
>conftest.err
5485 cat conftest.err
>&5
5486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5487 (exit $ac_status); } && {
5488 test -z "$ac_c_werror_flag" ||
5489 test ! -s conftest.err
5490 } && test -s conftest.
$ac_objext; then
5493 echo "$as_me: failed program was:" >&5
5494 sed 's/^/| /' conftest.
$ac_ext >&5
5499 rm -f core conftest.err conftest.
$ac_objext
5501 rm -f conftest.
$ac_objext
5502 if { (ac_try
="$ac_compile"
5504 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5505 *) ac_try_echo=$ac_try;;
5507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5508 (eval "$ac_compile") 2>conftest.er1
5510 grep -v '^ *+' conftest.er1 >conftest.err
5512 cat conftest.err >&5
5513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514 (exit $ac_status); } && {
5515 test -z "$ac_c_werror_flag" ||
5516 test ! -s conftest.err
5517 } && test -s conftest.$ac_objext; then
5518 ac_cv_sys_largefile_CC=' -n32'; break
5520 echo "$as_me: failed program was:" >&5
5521 sed 's/^/| /' conftest.$ac_ext >&5
5526 rm -f core conftest.err conftest.$ac_objext
5530 rm -f conftest.$ac_ext
5533 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5534 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5535 if test "$ac_cv_sys_largefile_CC" != no; then
5536 CC=$CC$ac_cv_sys_largefile_CC
5539 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5540 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5541 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5542 echo $ECHO_N "(cached) $ECHO_C" >&6
5545 cat >conftest.$ac_ext <<_ACEOF
5548 cat confdefs.h >>conftest.$ac_ext
5549 cat >>conftest.$ac_ext <<_ACEOF
5550 /* end confdefs.h. */
5551 #include <sys/types.h>
5552 /* Check that off_t can represent 2**63 - 1 correctly.
5553 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5554 since some C++ compilers masquerading as C compilers
5555 incorrectly reject 9223372036854775807. */
5556 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5557 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5558 && LARGE_OFF_T % 2147483647 == 1)
5568 rm -f conftest.$ac_objext
5569 if { (ac_try="$ac_compile"
5571 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5572 *) ac_try_echo
=$ac_try;;
5574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5575 (eval "$ac_compile") 2>conftest.er1
5577 grep -v '^ *+' conftest.er1
>conftest.err
5579 cat conftest.err
>&5
5580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5581 (exit $ac_status); } && {
5582 test -z "$ac_c_werror_flag" ||
5583 test ! -s conftest.err
5584 } && test -s conftest.
$ac_objext; then
5585 ac_cv_sys_file_offset_bits
=no
; break
5587 echo "$as_me: failed program was:" >&5
5588 sed 's/^/| /' conftest.
$ac_ext >&5
5593 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5594 cat >conftest.
$ac_ext <<_ACEOF
5597 cat confdefs.h
>>conftest.
$ac_ext
5598 cat >>conftest.
$ac_ext <<_ACEOF
5599 /* end confdefs.h. */
5600 #define _FILE_OFFSET_BITS 64
5601 #include <sys/types.h>
5602 /* Check that off_t can represent 2**63 - 1 correctly.
5603 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5604 since some C++ compilers masquerading as C compilers
5605 incorrectly reject 9223372036854775807. */
5606 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5607 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5608 && LARGE_OFF_T % 2147483647 == 1)
5618 rm -f conftest.
$ac_objext
5619 if { (ac_try
="$ac_compile"
5621 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5622 *) ac_try_echo=$ac_try;;
5624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5625 (eval "$ac_compile") 2>conftest.er1
5627 grep -v '^ *+' conftest.er1 >conftest.err
5629 cat conftest.err >&5
5630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631 (exit $ac_status); } && {
5632 test -z "$ac_c_werror_flag" ||
5633 test ! -s conftest.err
5634 } && test -s conftest.$ac_objext; then
5635 ac_cv_sys_file_offset_bits=64; break
5637 echo "$as_me: failed program was:" >&5
5638 sed 's/^/| /' conftest.$ac_ext >&5
5643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5644 ac_cv_sys_file_offset_bits=unknown
5648 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5649 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5650 case $ac_cv_sys_file_offset_bits in #(
5653 cat >>confdefs.h <<_ACEOF
5654 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5659 if test $ac_cv_sys_file_offset_bits = unknown; then
5660 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5661 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5662 if test "${ac_cv_sys_large_files+set}" = set; then
5663 echo $ECHO_N "(cached) $ECHO_C" >&6
5666 cat >conftest.$ac_ext <<_ACEOF
5669 cat confdefs.h >>conftest.$ac_ext
5670 cat >>conftest.$ac_ext <<_ACEOF
5671 /* end confdefs.h. */
5672 #include <sys/types.h>
5673 /* Check that off_t can represent 2**63 - 1 correctly.
5674 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5675 since some C++ compilers masquerading as C compilers
5676 incorrectly reject 9223372036854775807. */
5677 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5678 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5679 && LARGE_OFF_T % 2147483647 == 1)
5689 rm -f conftest.$ac_objext
5690 if { (ac_try="$ac_compile"
5692 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5693 *) ac_try_echo
=$ac_try;;
5695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5696 (eval "$ac_compile") 2>conftest.er1
5698 grep -v '^ *+' conftest.er1
>conftest.err
5700 cat conftest.err
>&5
5701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702 (exit $ac_status); } && {
5703 test -z "$ac_c_werror_flag" ||
5704 test ! -s conftest.err
5705 } && test -s conftest.
$ac_objext; then
5706 ac_cv_sys_large_files
=no
; break
5708 echo "$as_me: failed program was:" >&5
5709 sed 's/^/| /' conftest.
$ac_ext >&5
5714 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5715 cat >conftest.
$ac_ext <<_ACEOF
5718 cat confdefs.h
>>conftest.
$ac_ext
5719 cat >>conftest.
$ac_ext <<_ACEOF
5720 /* end confdefs.h. */
5721 #define _LARGE_FILES 1
5722 #include <sys/types.h>
5723 /* Check that off_t can represent 2**63 - 1 correctly.
5724 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5725 since some C++ compilers masquerading as C compilers
5726 incorrectly reject 9223372036854775807. */
5727 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5728 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5729 && LARGE_OFF_T % 2147483647 == 1)
5739 rm -f conftest.
$ac_objext
5740 if { (ac_try
="$ac_compile"
5742 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5743 *) ac_try_echo=$ac_try;;
5745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5746 (eval "$ac_compile") 2>conftest.er1
5748 grep -v '^ *+' conftest.er1 >conftest.err
5750 cat conftest.err >&5
5751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752 (exit $ac_status); } && {
5753 test -z "$ac_c_werror_flag" ||
5754 test ! -s conftest.err
5755 } && test -s conftest.$ac_objext; then
5756 ac_cv_sys_large_files=1; break
5758 echo "$as_me: failed program was:" >&5
5759 sed 's/^/| /' conftest.$ac_ext >&5
5764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5765 ac_cv_sys_large_files=unknown
5769 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5770 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5771 case $ac_cv_sys_large_files in #(
5774 cat >>confdefs.h <<_ACEOF
5775 #define _LARGE_FILES $ac_cv_sys_large_files
5785 ### The standard library on x86-64 GNU/Linux distributions can
5786 ### be located in either /usr/lib64 or /usr/lib.
5787 case "${canonical}" in
5788 x86_64-*-linux-gnu* )
5789 if test -d /usr/lib64; then
5791 cat >>confdefs.h <<\_ACEOF
5792 #define HAVE_X86_64_LIB64_DIR 1
5801 if test "${with_sound}" != "no"; then
5802 # Sound support for GNU/Linux and the free BSDs.
5803 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5804 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5805 if test "${ac_cv_header_stdc+set}" = set; then
5806 echo $ECHO_N "(cached) $ECHO_C" >&6
5808 cat >conftest.$ac_ext <<_ACEOF
5811 cat confdefs.h >>conftest.$ac_ext
5812 cat >>conftest.$ac_ext <<_ACEOF
5813 /* end confdefs.h. */
5827 rm -f conftest.$ac_objext
5828 if { (ac_try="$ac_compile"
5830 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5831 *) ac_try_echo
=$ac_try;;
5833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5834 (eval "$ac_compile") 2>conftest.er1
5836 grep -v '^ *+' conftest.er1
>conftest.err
5838 cat conftest.err
>&5
5839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840 (exit $ac_status); } && {
5841 test -z "$ac_c_werror_flag" ||
5842 test ! -s conftest.err
5843 } && test -s conftest.
$ac_objext; then
5844 ac_cv_header_stdc
=yes
5846 echo "$as_me: failed program was:" >&5
5847 sed 's/^/| /' conftest.
$ac_ext >&5
5849 ac_cv_header_stdc
=no
5852 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5854 if test $ac_cv_header_stdc = yes; then
5855 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5856 cat >conftest.
$ac_ext <<_ACEOF
5859 cat confdefs.h
>>conftest.
$ac_ext
5860 cat >>conftest.
$ac_ext <<_ACEOF
5861 /* end confdefs.h. */
5865 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5866 $EGREP "memchr" >/dev
/null
2>&1; then
5869 ac_cv_header_stdc
=no
5875 if test $ac_cv_header_stdc = yes; then
5876 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5877 cat >conftest.
$ac_ext <<_ACEOF
5880 cat confdefs.h
>>conftest.
$ac_ext
5881 cat >>conftest.
$ac_ext <<_ACEOF
5882 /* end confdefs.h. */
5886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5887 $EGREP "free" >/dev
/null
2>&1; then
5890 ac_cv_header_stdc
=no
5896 if test $ac_cv_header_stdc = yes; then
5897 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5898 if test "$cross_compiling" = yes; then
5901 cat >conftest.
$ac_ext <<_ACEOF
5904 cat confdefs.h
>>conftest.
$ac_ext
5905 cat >>conftest.
$ac_ext <<_ACEOF
5906 /* end confdefs.h. */
5909 #if ((' ' & 0x0FF) == 0x020)
5910 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5911 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5913 # define ISLOWER(c) \
5914 (('a' <= (c) && (c) <= 'i') \
5915 || ('j' <= (c) && (c) <= 'r') \
5916 || ('s' <= (c) && (c) <= 'z'))
5917 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5920 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5925 for (i = 0; i < 256; i++)
5926 if (XOR (islower (i), ISLOWER (i))
5927 || toupper (i) != TOUPPER (i))
5932 rm -f conftest
$ac_exeext
5933 if { (ac_try
="$ac_link"
5935 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5936 *) ac_try_echo=$ac_try;;
5938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5939 (eval "$ac_link") 2>&5
5941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5943 { (case "(($ac_try" in
5944 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5945 *) ac_try_echo
=$ac_try;;
5947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5948 (eval "$ac_try") 2>&5
5950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951 (exit $ac_status); }; }; then
5954 echo "$as_me: program exited with status $ac_status" >&5
5955 echo "$as_me: failed program was:" >&5
5956 sed 's/^/| /' conftest.
$ac_ext >&5
5959 ac_cv_header_stdc
=no
5961 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5967 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5968 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5969 if test $ac_cv_header_stdc = yes; then
5971 cat >>confdefs.h
<<\_ACEOF
5972 #define STDC_HEADERS 1
5977 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5987 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5988 inttypes.h stdint.h unistd.h
5990 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5991 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5993 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5994 echo $ECHO_N "(cached) $ECHO_C" >&6
5996 cat >conftest.
$ac_ext <<_ACEOF
5999 cat confdefs.h
>>conftest.
$ac_ext
6000 cat >>conftest.
$ac_ext <<_ACEOF
6001 /* end confdefs.h. */
6002 $ac_includes_default
6004 #include <$ac_header>
6006 rm -f conftest.
$ac_objext
6007 if { (ac_try
="$ac_compile"
6009 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6010 *) ac_try_echo=$ac_try;;
6012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6013 (eval "$ac_compile") 2>conftest.er1
6015 grep -v '^ *+' conftest.er1 >conftest.err
6017 cat conftest.err >&5
6018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019 (exit $ac_status); } && {
6020 test -z "$ac_c_werror_flag" ||
6021 test ! -s conftest.err
6022 } && test -s conftest.$ac_objext; then
6023 eval "$as_ac_Header=yes"
6025 echo "$as_me: failed program was:" >&5
6026 sed 's/^/| /' conftest.$ac_ext >&5
6028 eval "$as_ac_Header=no"
6031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6033 ac_res=`eval echo '${'$as_ac_Header'}'`
6034 { echo "$as_me:$LINENO: result: $ac_res" >&5
6035 echo "${ECHO_T}$ac_res" >&6; }
6036 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6037 cat >>confdefs.h <<_ACEOF
6038 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6049 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6051 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6052 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6053 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6055 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6056 echo $ECHO_N "(cached) $ECHO_C" >&6
6058 ac_res=`eval echo '${'$as_ac_Header'}'`
6059 { echo "$as_me:$LINENO: result: $ac_res" >&5
6060 echo "${ECHO_T}$ac_res" >&6; }
6062 # Is the header compilable?
6063 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6064 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6065 cat >conftest.$ac_ext <<_ACEOF
6068 cat confdefs.h >>conftest.$ac_ext
6069 cat >>conftest.$ac_ext <<_ACEOF
6070 /* end confdefs.h. */
6071 $ac_includes_default
6072 #include <$ac_header>
6074 rm -f conftest.$ac_objext
6075 if { (ac_try="$ac_compile"
6077 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6078 *) ac_try_echo
=$ac_try;;
6080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6081 (eval "$ac_compile") 2>conftest.er1
6083 grep -v '^ *+' conftest.er1
>conftest.err
6085 cat conftest.err
>&5
6086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087 (exit $ac_status); } && {
6088 test -z "$ac_c_werror_flag" ||
6089 test ! -s conftest.err
6090 } && test -s conftest.
$ac_objext; then
6091 ac_header_compiler
=yes
6093 echo "$as_me: failed program was:" >&5
6094 sed 's/^/| /' conftest.
$ac_ext >&5
6096 ac_header_compiler
=no
6099 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6100 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6101 echo "${ECHO_T}$ac_header_compiler" >&6; }
6103 # Is the header present?
6104 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6105 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6106 cat >conftest.
$ac_ext <<_ACEOF
6109 cat confdefs.h
>>conftest.
$ac_ext
6110 cat >>conftest.
$ac_ext <<_ACEOF
6111 /* end confdefs.h. */
6112 #include <$ac_header>
6114 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6116 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6117 *) ac_try_echo=$ac_try;;
6119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6120 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6122 grep -v '^ *+' conftest.er1 >conftest.err
6124 cat conftest.err >&5
6125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126 (exit $ac_status); } >/dev/null && {
6127 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6128 test ! -s conftest.err
6130 ac_header_preproc=yes
6132 echo "$as_me: failed program was:" >&5
6133 sed 's/^/| /' conftest.$ac_ext >&5
6135 ac_header_preproc=no
6138 rm -f conftest.err conftest.$ac_ext
6139 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6140 echo "${ECHO_T}$ac_header_preproc" >&6; }
6142 # So? What about this header?
6143 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6145 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6146 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6147 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6148 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6149 ac_header_preproc=yes
6152 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6153 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6154 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6155 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6156 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6157 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6158 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6159 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6160 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6161 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6162 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6163 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6167 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6168 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6169 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6170 echo $ECHO_N "(cached) $ECHO_C" >&6
6172 eval "$as_ac_Header=\$ac_header_preproc"
6174 ac_res=`eval echo '${'$as_ac_Header'}'`
6175 { echo "$as_me:$LINENO: result: $ac_res" >&5
6176 echo "${ECHO_T}$ac_res" >&6; }
6179 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6180 cat >>confdefs.h <<_ACEOF
6181 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6188 # Emulation library used on NetBSD.
6189 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6190 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6191 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6192 echo $ECHO_N "(cached) $ECHO_C" >&6
6194 ac_check_lib_save_LIBS=$LIBS
6195 LIBS="-lossaudio $LIBS"
6196 cat >conftest.$ac_ext <<_ACEOF
6199 cat confdefs.h >>conftest.$ac_ext
6200 cat >>conftest.$ac_ext <<_ACEOF
6201 /* end confdefs.h. */
6203 /* Override any GCC internal prototype to avoid an error.
6204 Use char because int might match the return type of a GCC
6205 builtin and then its argument prototype would still apply. */
6213 return _oss_ioctl ();
6218 rm -f conftest.$ac_objext conftest$ac_exeext
6219 if { (ac_try="$ac_link"
6221 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6222 *) ac_try_echo
=$ac_try;;
6224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6225 (eval "$ac_link") 2>conftest.er1
6227 grep -v '^ *+' conftest.er1
>conftest.err
6229 cat conftest.err
>&5
6230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231 (exit $ac_status); } && {
6232 test -z "$ac_c_werror_flag" ||
6233 test ! -s conftest.err
6234 } && test -s conftest
$ac_exeext &&
6235 $as_test_x conftest
$ac_exeext; then
6236 ac_cv_lib_ossaudio__oss_ioctl
=yes
6238 echo "$as_me: failed program was:" >&5
6239 sed 's/^/| /' conftest.
$ac_ext >&5
6241 ac_cv_lib_ossaudio__oss_ioctl
=no
6244 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6245 conftest
$ac_exeext conftest.
$ac_ext
6246 LIBS
=$ac_check_lib_save_LIBS
6248 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6249 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6250 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6259 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6260 if test "X${with_pkg_config_prog}" != X
; then
6261 PKG_CONFIG
="${with_pkg_config_prog}"
6266 if test -z "$PKG_CONFIG"; then
6267 # Extract the first word of "pkg-config", so it can be a program name with args.
6268 set dummy pkg-config
; ac_word
=$2
6269 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6271 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6272 echo $ECHO_N "(cached) $ECHO_C" >&6
6276 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6279 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6283 test -z "$as_dir" && as_dir
=.
6284 for ac_exec_ext
in '' $ac_executable_extensions; do
6285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6286 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6294 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6298 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6299 if test -n "$PKG_CONFIG"; then
6300 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6301 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6303 { echo "$as_me:$LINENO: result: no" >&5
6304 echo "${ECHO_T}no" >&6; }
6310 if test "$PKG_CONFIG" = "no" ; then
6313 PKG_CONFIG_MIN_VERSION
=0.9.0
6314 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6315 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6316 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6318 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6319 { echo "$as_me:$LINENO: result: yes" >&5
6320 echo "${ECHO_T}yes" >&6; }
6323 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6324 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6325 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6326 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6327 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6329 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6330 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6331 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6332 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6333 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6335 { echo "$as_me:$LINENO: result: no" >&5
6336 echo "${ECHO_T}no" >&6; }
6339 ## If we have a custom action on failure, don't print errors, but
6340 ## do set a variable so people can do so.
6341 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6348 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6349 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6353 if test $succeeded = yes; then
6359 if test $HAVE_ALSA = yes; then
6360 SAVE_CFLAGS
="$CFLAGS"
6361 SAVE_LDFLAGS
="$LDFLAGS"
6362 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6363 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6364 cat >conftest.
$ac_ext <<_ACEOF
6367 cat confdefs.h
>>conftest.
$ac_ext
6368 cat >>conftest.
$ac_ext <<_ACEOF
6369 /* end confdefs.h. */
6370 #include <asoundlib.h>
6374 snd_lib_error_set_handler (0);
6379 rm -f conftest.
$ac_objext
6380 if { (ac_try
="$ac_compile"
6382 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6383 *) ac_try_echo=$ac_try;;
6385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6386 (eval "$ac_compile") 2>conftest.er1
6388 grep -v '^ *+' conftest.er1 >conftest.err
6390 cat conftest.err >&5
6391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392 (exit $ac_status); } && {
6393 test -z "$ac_c_werror_flag" ||
6394 test ! -s conftest.err
6395 } && test -s conftest.$ac_objext; then
6396 emacs_alsa_normal=yes
6398 echo "$as_me: failed program was:" >&5
6399 sed 's/^/| /' conftest.$ac_ext >&5
6401 emacs_alsa_normal=no
6404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6405 if test "$emacs_alsa_normal" != yes; then
6406 cat >conftest.$ac_ext <<_ACEOF
6409 cat confdefs.h >>conftest.$ac_ext
6410 cat >>conftest.$ac_ext <<_ACEOF
6411 /* end confdefs.h. */
6412 #include <alsa/asoundlib.h>
6416 snd_lib_error_set_handler (0);
6421 rm -f conftest.$ac_objext
6422 if { (ac_try="$ac_compile"
6424 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6425 *) ac_try_echo
=$ac_try;;
6427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6428 (eval "$ac_compile") 2>conftest.er1
6430 grep -v '^ *+' conftest.er1
>conftest.err
6432 cat conftest.err
>&5
6433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434 (exit $ac_status); } && {
6435 test -z "$ac_c_werror_flag" ||
6436 test ! -s conftest.err
6437 } && test -s conftest.
$ac_objext; then
6438 emacs_alsa_subdir
=yes
6440 echo "$as_me: failed program was:" >&5
6441 sed 's/^/| /' conftest.
$ac_ext >&5
6443 emacs_alsa_subdir
=no
6446 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6447 if test "$emacs_alsa_subdir" != yes; then
6448 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6449 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6450 { (exit 1); exit 1; }; }
6452 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6455 CFLAGS
="$SAVE_CFLAGS"
6456 LDFLAGS
="$SAVE_LDFLAGS"
6457 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6458 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6460 cat >>confdefs.h
<<\_ACEOF
6494 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6495 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6496 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6497 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6500 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6501 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6502 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6503 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6504 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6505 echo $ECHO_N "(cached) $ECHO_C" >&6
6507 ac_res
=`eval echo '${'$as_ac_Header'}'`
6508 { echo "$as_me:$LINENO: result: $ac_res" >&5
6509 echo "${ECHO_T}$ac_res" >&6; }
6511 # Is the header compilable?
6512 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6513 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6514 cat >conftest.
$ac_ext <<_ACEOF
6517 cat confdefs.h
>>conftest.
$ac_ext
6518 cat >>conftest.
$ac_ext <<_ACEOF
6519 /* end confdefs.h. */
6520 $ac_includes_default
6521 #include <$ac_header>
6523 rm -f conftest.
$ac_objext
6524 if { (ac_try
="$ac_compile"
6526 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6527 *) ac_try_echo=$ac_try;;
6529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6530 (eval "$ac_compile") 2>conftest.er1
6532 grep -v '^ *+' conftest.er1 >conftest.err
6534 cat conftest.err >&5
6535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536 (exit $ac_status); } && {
6537 test -z "$ac_c_werror_flag" ||
6538 test ! -s conftest.err
6539 } && test -s conftest.$ac_objext; then
6540 ac_header_compiler=yes
6542 echo "$as_me: failed program was:" >&5
6543 sed 's/^/| /' conftest.$ac_ext >&5
6545 ac_header_compiler=no
6548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6549 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6550 echo "${ECHO_T}$ac_header_compiler" >&6; }
6552 # Is the header present?
6553 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6554 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6555 cat >conftest.$ac_ext <<_ACEOF
6558 cat confdefs.h >>conftest.$ac_ext
6559 cat >>conftest.$ac_ext <<_ACEOF
6560 /* end confdefs.h. */
6561 #include <$ac_header>
6563 if { (ac_try="$ac_cpp conftest.$ac_ext"
6565 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6566 *) ac_try_echo
=$ac_try;;
6568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6569 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6571 grep -v '^ *+' conftest.er1
>conftest.err
6573 cat conftest.err
>&5
6574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6575 (exit $ac_status); } >/dev
/null
&& {
6576 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6577 test ! -s conftest.err
6579 ac_header_preproc
=yes
6581 echo "$as_me: failed program was:" >&5
6582 sed 's/^/| /' conftest.
$ac_ext >&5
6584 ac_header_preproc
=no
6587 rm -f conftest.err conftest.
$ac_ext
6588 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6589 echo "${ECHO_T}$ac_header_preproc" >&6; }
6591 # So? What about this header?
6592 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6594 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6595 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6596 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6597 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6598 ac_header_preproc
=yes
6601 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6602 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6603 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6604 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6605 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6606 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6607 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6608 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6609 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6610 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6611 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6612 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6616 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6617 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6618 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6619 echo $ECHO_N "(cached) $ECHO_C" >&6
6621 eval "$as_ac_Header=\$ac_header_preproc"
6623 ac_res
=`eval echo '${'$as_ac_Header'}'`
6624 { echo "$as_me:$LINENO: result: $ac_res" >&5
6625 echo "${ECHO_T}$ac_res" >&6; }
6628 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6629 cat >>confdefs.h
<<_ACEOF
6630 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6638 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6639 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6640 cat >conftest.
$ac_ext <<_ACEOF
6643 cat confdefs.h
>>conftest.
$ac_ext
6644 cat >>conftest.
$ac_ext <<_ACEOF
6645 /* end confdefs.h. */
6646 #include <sys/personality.h>
6650 personality (PER_LINUX32)
6655 rm -f conftest.
$ac_objext
6656 if { (ac_try
="$ac_compile"
6658 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6659 *) ac_try_echo=$ac_try;;
6661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6662 (eval "$ac_compile") 2>conftest.er1
6664 grep -v '^ *+' conftest.er1 >conftest.err
6666 cat conftest.err >&5
6667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6668 (exit $ac_status); } && {
6669 test -z "$ac_c_werror_flag" ||
6670 test ! -s conftest.err
6671 } && test -s conftest.$ac_objext; then
6672 emacs_cv_personality_linux32=yes
6674 echo "$as_me: failed program was:" >&5
6675 sed 's/^/| /' conftest.$ac_ext >&5
6677 emacs_cv_personality_linux32=no
6680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6681 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6682 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6684 if test $emacs_cv_personality_linux32 = yes; then
6686 cat >>confdefs.h <<\_ACEOF
6687 #define HAVE_PERSONALITY_LINUX32 1
6693 for ac_header in term.h
6695 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6696 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6698 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6699 echo $ECHO_N "(cached) $ECHO_C" >&6
6701 cat >conftest.$ac_ext <<_ACEOF
6704 cat confdefs.h >>conftest.$ac_ext
6705 cat >>conftest.$ac_ext <<_ACEOF
6706 /* end confdefs.h. */
6707 #include <$ac_header>
6709 if { (ac_try="$ac_cpp conftest.$ac_ext"
6711 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6712 *) ac_try_echo
=$ac_try;;
6714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6715 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6717 grep -v '^ *+' conftest.er1
>conftest.err
6719 cat conftest.err
>&5
6720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6721 (exit $ac_status); } >/dev
/null
&& {
6722 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6723 test ! -s conftest.err
6725 eval "$as_ac_Header=yes"
6727 echo "$as_me: failed program was:" >&5
6728 sed 's/^/| /' conftest.
$ac_ext >&5
6730 eval "$as_ac_Header=no"
6733 rm -f conftest.err conftest.
$ac_ext
6735 ac_res
=`eval echo '${'$as_ac_Header'}'`
6736 { echo "$as_me:$LINENO: result: $ac_res" >&5
6737 echo "${ECHO_T}$ac_res" >&6; }
6738 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6739 cat >>confdefs.h
<<_ACEOF
6740 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6747 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6748 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6749 if test "${ac_cv_header_stdc+set}" = set; then
6750 echo $ECHO_N "(cached) $ECHO_C" >&6
6752 cat >conftest.
$ac_ext <<_ACEOF
6755 cat confdefs.h
>>conftest.
$ac_ext
6756 cat >>conftest.
$ac_ext <<_ACEOF
6757 /* end confdefs.h. */
6771 rm -f conftest.
$ac_objext
6772 if { (ac_try
="$ac_compile"
6774 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6775 *) ac_try_echo=$ac_try;;
6777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6778 (eval "$ac_compile") 2>conftest.er1
6780 grep -v '^ *+' conftest.er1 >conftest.err
6782 cat conftest.err >&5
6783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6784 (exit $ac_status); } && {
6785 test -z "$ac_c_werror_flag" ||
6786 test ! -s conftest.err
6787 } && test -s conftest.$ac_objext; then
6788 ac_cv_header_stdc=yes
6790 echo "$as_me: failed program was:" >&5
6791 sed 's/^/| /' conftest.$ac_ext >&5
6793 ac_cv_header_stdc=no
6796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6798 if test $ac_cv_header_stdc = yes; then
6799 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6800 cat >conftest.$ac_ext <<_ACEOF
6803 cat confdefs.h >>conftest.$ac_ext
6804 cat >>conftest.$ac_ext <<_ACEOF
6805 /* end confdefs.h. */
6809 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6810 $EGREP "memchr" >/dev/null 2>&1; then
6813 ac_cv_header_stdc=no
6819 if test $ac_cv_header_stdc = yes; then
6820 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6821 cat >conftest.$ac_ext <<_ACEOF
6824 cat confdefs.h >>conftest.$ac_ext
6825 cat >>conftest.$ac_ext <<_ACEOF
6826 /* end confdefs.h. */
6830 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6831 $EGREP "free" >/dev/null 2>&1; then
6834 ac_cv_header_stdc=no
6840 if test $ac_cv_header_stdc = yes; then
6841 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6842 if test "$cross_compiling" = yes; then
6845 cat >conftest.$ac_ext <<_ACEOF
6848 cat confdefs.h >>conftest.$ac_ext
6849 cat >>conftest.$ac_ext <<_ACEOF
6850 /* end confdefs.h. */
6853 #if ((' ' & 0x0FF) == 0x020)
6854 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6855 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6857 # define ISLOWER(c) \
6858 (('a' <= (c) && (c) <= 'i') \
6859 || ('j' <= (c) && (c) <= 'r') \
6860 || ('s' <= (c) && (c) <= 'z'))
6861 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6864 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6869 for (i = 0; i < 256; i++)
6870 if (XOR (islower (i), ISLOWER (i))
6871 || toupper (i) != TOUPPER (i))
6876 rm -f conftest$ac_exeext
6877 if { (ac_try="$ac_link"
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_link") 2>&5
6885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6887 { (case "(($ac_try" in
6888 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6889 *) ac_try_echo=$ac_try;;
6891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6892 (eval "$ac_try") 2>&5
6894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6895 (exit $ac_status); }; }; then
6898 echo "$as_me: program exited with status $ac_status" >&5
6899 echo "$as_me: failed program was:" >&5
6900 sed 's/^/| /' conftest.$ac_ext >&5
6903 ac_cv_header_stdc=no
6905 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6911 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6912 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6913 if test $ac_cv_header_stdc = yes; then
6915 cat >>confdefs.h <<\_ACEOF
6916 #define STDC_HEADERS 1
6921 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6922 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6923 if test "${ac_cv_header_time+set}" = set; then
6924 echo $ECHO_N "(cached) $ECHO_C" >&6
6926 cat >conftest.$ac_ext <<_ACEOF
6929 cat confdefs.h >>conftest.$ac_ext
6930 cat >>conftest.$ac_ext <<_ACEOF
6931 /* end confdefs.h. */
6932 #include <sys/types.h>
6933 #include <sys/time.h>
6939 if ((struct tm *) 0)
6945 rm -f conftest.$ac_objext
6946 if { (ac_try="$ac_compile"
6948 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6949 *) ac_try_echo
=$ac_try;;
6951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6952 (eval "$ac_compile") 2>conftest.er1
6954 grep -v '^ *+' conftest.er1
>conftest.err
6956 cat conftest.err
>&5
6957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6958 (exit $ac_status); } && {
6959 test -z "$ac_c_werror_flag" ||
6960 test ! -s conftest.err
6961 } && test -s conftest.
$ac_objext; then
6962 ac_cv_header_time
=yes
6964 echo "$as_me: failed program was:" >&5
6965 sed 's/^/| /' conftest.
$ac_ext >&5
6967 ac_cv_header_time
=no
6970 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6972 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6973 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6974 if test $ac_cv_header_time = yes; then
6976 cat >>confdefs.h
<<\_ACEOF
6977 #define TIME_WITH_SYS_TIME 1
6982 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6983 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
6984 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6985 echo $ECHO_N "(cached) $ECHO_C" >&6
6987 cat >conftest.
$ac_ext <<_ACEOF
6990 cat confdefs.h
>>conftest.
$ac_ext
6991 cat >>conftest.
$ac_ext <<_ACEOF
6992 /* end confdefs.h. */
6993 $ac_includes_default
7005 rm -f conftest.
$ac_objext
7006 if { (ac_try
="$ac_compile"
7008 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7009 *) ac_try_echo=$ac_try;;
7011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7012 (eval "$ac_compile") 2>conftest.er1
7014 grep -v '^ *+' conftest.er1 >conftest.err
7016 cat conftest.err >&5
7017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018 (exit $ac_status); } && {
7019 test -z "$ac_c_werror_flag" ||
7020 test ! -s conftest.err
7021 } && test -s conftest.$ac_objext; then
7022 ac_cv_have_decl_sys_siglist=yes
7024 echo "$as_me: failed program was:" >&5
7025 sed 's/^/| /' conftest.$ac_ext >&5
7027 ac_cv_have_decl_sys_siglist=no
7030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7032 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7033 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7034 if test $ac_cv_have_decl_sys_siglist = yes; then
7036 cat >>confdefs.h <<_ACEOF
7037 #define HAVE_DECL_SYS_SIGLIST 1
7042 cat >>confdefs.h <<_ACEOF
7043 #define HAVE_DECL_SYS_SIGLIST 0
7050 if test $ac_cv_have_decl_sys_siglist != yes; then
7051 # For Tru64, at least:
7052 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7053 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7054 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7055 echo $ECHO_N "(cached) $ECHO_C" >&6
7057 cat >conftest.$ac_ext <<_ACEOF
7060 cat confdefs.h >>conftest.$ac_ext
7061 cat >>conftest.$ac_ext <<_ACEOF
7062 /* end confdefs.h. */
7063 $ac_includes_default
7067 #ifndef __sys_siglist
7068 (void) __sys_siglist;
7075 rm -f conftest.$ac_objext
7076 if { (ac_try="$ac_compile"
7078 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7079 *) ac_try_echo
=$ac_try;;
7081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7082 (eval "$ac_compile") 2>conftest.er1
7084 grep -v '^ *+' conftest.er1
>conftest.err
7086 cat conftest.err
>&5
7087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7088 (exit $ac_status); } && {
7089 test -z "$ac_c_werror_flag" ||
7090 test ! -s conftest.err
7091 } && test -s conftest.
$ac_objext; then
7092 ac_cv_have_decl___sys_siglist
=yes
7094 echo "$as_me: failed program was:" >&5
7095 sed 's/^/| /' conftest.
$ac_ext >&5
7097 ac_cv_have_decl___sys_siglist
=no
7100 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7102 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7103 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7104 if test $ac_cv_have_decl___sys_siglist = yes; then
7106 cat >>confdefs.h
<<_ACEOF
7107 #define HAVE_DECL___SYS_SIGLIST 1
7112 cat >>confdefs.h
<<_ACEOF
7113 #define HAVE_DECL___SYS_SIGLIST 0
7120 if test $ac_cv_have_decl___sys_siglist = yes; then
7122 cat >>confdefs.h
<<\_ACEOF
7123 #define sys_siglist __sys_siglist
7128 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7129 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7130 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7131 echo $ECHO_N "(cached) $ECHO_C" >&6
7133 cat >conftest.
$ac_ext <<_ACEOF
7136 cat confdefs.h
>>conftest.
$ac_ext
7137 cat >>conftest.
$ac_ext <<_ACEOF
7138 /* end confdefs.h. */
7139 #include <sys/types.h>
7140 #include <sys/wait.h>
7142 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7145 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7153 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7158 rm -f conftest.
$ac_objext
7159 if { (ac_try
="$ac_compile"
7161 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7162 *) ac_try_echo=$ac_try;;
7164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7165 (eval "$ac_compile") 2>conftest.er1
7167 grep -v '^ *+' conftest.er1 >conftest.err
7169 cat conftest.err >&5
7170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171 (exit $ac_status); } && {
7172 test -z "$ac_c_werror_flag" ||
7173 test ! -s conftest.err
7174 } && test -s conftest.$ac_objext; then
7175 ac_cv_header_sys_wait_h=yes
7177 echo "$as_me: failed program was:" >&5
7178 sed 's/^/| /' conftest.$ac_ext >&5
7180 ac_cv_header_sys_wait_h=no
7183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7185 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7186 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7187 if test $ac_cv_header_sys_wait_h = yes; then
7189 cat >>confdefs.h <<\_ACEOF
7190 #define HAVE_SYS_WAIT_H 1
7196 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7197 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7198 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7199 echo $ECHO_N "(cached) $ECHO_C" >&6
7201 cat >conftest.$ac_ext <<_ACEOF
7204 cat confdefs.h >>conftest.$ac_ext
7205 cat >>conftest.$ac_ext <<_ACEOF
7206 /* end confdefs.h. */
7207 #ifdef TIME_WITH_SYS_TIME
7208 #include <sys/time.h>
7211 #ifdef HAVE_SYS_TIME_H
7212 #include <sys/time.h>
7223 static struct utimbuf x; x.actime = x.modtime;
7228 rm -f conftest.$ac_objext
7229 if { (ac_try="$ac_compile"
7231 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7232 *) ac_try_echo
=$ac_try;;
7234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7235 (eval "$ac_compile") 2>conftest.er1
7237 grep -v '^ *+' conftest.er1
>conftest.err
7239 cat conftest.err
>&5
7240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7241 (exit $ac_status); } && {
7242 test -z "$ac_c_werror_flag" ||
7243 test ! -s conftest.err
7244 } && test -s conftest.
$ac_objext; then
7245 emacs_cv_struct_utimbuf
=yes
7247 echo "$as_me: failed program was:" >&5
7248 sed 's/^/| /' conftest.
$ac_ext >&5
7250 emacs_cv_struct_utimbuf
=no
7253 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7255 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7256 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7257 if test $emacs_cv_struct_utimbuf = yes; then
7259 cat >>confdefs.h
<<\_ACEOF
7260 #define HAVE_STRUCT_UTIMBUF 1
7265 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7266 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7267 if test "${ac_cv_type_signal+set}" = set; then
7268 echo $ECHO_N "(cached) $ECHO_C" >&6
7270 cat >conftest.
$ac_ext <<_ACEOF
7273 cat confdefs.h
>>conftest.
$ac_ext
7274 cat >>conftest.
$ac_ext <<_ACEOF
7275 /* end confdefs.h. */
7276 #include <sys/types.h>
7282 return *(signal (0, 0)) (0) == 1;
7287 rm -f conftest.
$ac_objext
7288 if { (ac_try
="$ac_compile"
7290 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7291 *) ac_try_echo=$ac_try;;
7293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7294 (eval "$ac_compile") 2>conftest.er1
7296 grep -v '^ *+' conftest.er1 >conftest.err
7298 cat conftest.err >&5
7299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7300 (exit $ac_status); } && {
7301 test -z "$ac_c_werror_flag" ||
7302 test ! -s conftest.err
7303 } && test -s conftest.$ac_objext; then
7304 ac_cv_type_signal=int
7306 echo "$as_me: failed program was:" >&5
7307 sed 's/^/| /' conftest.$ac_ext >&5
7309 ac_cv_type_signal=void
7312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7314 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7315 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7317 cat >>confdefs.h <<_ACEOF
7318 #define RETSIGTYPE $ac_cv_type_signal
7323 { echo "$as_me:$LINENO: checking for speed_t" >&5
7324 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7325 if test "${emacs_cv_speed_t+set}" = set; then
7326 echo $ECHO_N "(cached) $ECHO_C" >&6
7328 cat >conftest.$ac_ext <<_ACEOF
7331 cat confdefs.h >>conftest.$ac_ext
7332 cat >>conftest.$ac_ext <<_ACEOF
7333 /* end confdefs.h. */
7334 #include <termios.h>
7343 rm -f conftest.$ac_objext
7344 if { (ac_try="$ac_compile"
7346 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7347 *) ac_try_echo
=$ac_try;;
7349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7350 (eval "$ac_compile") 2>conftest.er1
7352 grep -v '^ *+' conftest.er1
>conftest.err
7354 cat conftest.err
>&5
7355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7356 (exit $ac_status); } && {
7357 test -z "$ac_c_werror_flag" ||
7358 test ! -s conftest.err
7359 } && test -s conftest.
$ac_objext; then
7360 emacs_cv_speed_t
=yes
7362 echo "$as_me: failed program was:" >&5
7363 sed 's/^/| /' conftest.
$ac_ext >&5
7368 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7370 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7371 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7372 if test $emacs_cv_speed_t = yes; then
7374 cat >>confdefs.h
<<\_ACEOF
7375 #define HAVE_SPEED_T 1
7380 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7381 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7382 if test "${emacs_cv_struct_timeval+set}" = set; then
7383 echo $ECHO_N "(cached) $ECHO_C" >&6
7385 cat >conftest.
$ac_ext <<_ACEOF
7388 cat confdefs.h
>>conftest.
$ac_ext
7389 cat >>conftest.
$ac_ext <<_ACEOF
7390 /* end confdefs.h. */
7391 #ifdef TIME_WITH_SYS_TIME
7392 #include <sys/time.h>
7395 #ifdef HAVE_SYS_TIME_H
7396 #include <sys/time.h>
7404 static struct timeval x; x.tv_sec = x.tv_usec;
7409 rm -f conftest.
$ac_objext
7410 if { (ac_try
="$ac_compile"
7412 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7413 *) ac_try_echo=$ac_try;;
7415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7416 (eval "$ac_compile") 2>conftest.er1
7418 grep -v '^ *+' conftest.er1 >conftest.err
7420 cat conftest.err >&5
7421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7422 (exit $ac_status); } && {
7423 test -z "$ac_c_werror_flag" ||
7424 test ! -s conftest.err
7425 } && test -s conftest.$ac_objext; then
7426 emacs_cv_struct_timeval=yes
7428 echo "$as_me: failed program was:" >&5
7429 sed 's/^/| /' conftest.$ac_ext >&5
7431 emacs_cv_struct_timeval=no
7434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7436 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7437 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7438 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7439 if test $emacs_cv_struct_timeval = yes; then
7441 cat >>confdefs.h <<\_ACEOF
7442 #define HAVE_TIMEVAL 1
7447 { echo "$as_me:$LINENO: checking for struct exception" >&5
7448 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7449 if test "${emacs_cv_struct_exception+set}" = set; then
7450 echo $ECHO_N "(cached) $ECHO_C" >&6
7452 cat >conftest.$ac_ext <<_ACEOF
7455 cat confdefs.h >>conftest.$ac_ext
7456 cat >>conftest.$ac_ext <<_ACEOF
7457 /* end confdefs.h. */
7462 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7467 rm -f conftest.$ac_objext
7468 if { (ac_try="$ac_compile"
7470 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7471 *) ac_try_echo
=$ac_try;;
7473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7474 (eval "$ac_compile") 2>conftest.er1
7476 grep -v '^ *+' conftest.er1
>conftest.err
7478 cat conftest.err
>&5
7479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7480 (exit $ac_status); } && {
7481 test -z "$ac_c_werror_flag" ||
7482 test ! -s conftest.err
7483 } && test -s conftest.
$ac_objext; then
7484 emacs_cv_struct_exception
=yes
7486 echo "$as_me: failed program was:" >&5
7487 sed 's/^/| /' conftest.
$ac_ext >&5
7489 emacs_cv_struct_exception
=no
7492 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7494 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7495 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7496 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7497 if test $emacs_cv_struct_exception != yes; then
7499 cat >>confdefs.h
<<\_ACEOF
7500 #define NO_MATHERR 1
7506 for ac_header
in sys
/socket.h
7508 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7509 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7510 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7511 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7512 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7513 echo $ECHO_N "(cached) $ECHO_C" >&6
7515 ac_res
=`eval echo '${'$as_ac_Header'}'`
7516 { echo "$as_me:$LINENO: result: $ac_res" >&5
7517 echo "${ECHO_T}$ac_res" >&6; }
7519 # Is the header compilable?
7520 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7521 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7522 cat >conftest.
$ac_ext <<_ACEOF
7525 cat confdefs.h
>>conftest.
$ac_ext
7526 cat >>conftest.
$ac_ext <<_ACEOF
7527 /* end confdefs.h. */
7528 $ac_includes_default
7529 #include <$ac_header>
7531 rm -f conftest.
$ac_objext
7532 if { (ac_try
="$ac_compile"
7534 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7535 *) ac_try_echo=$ac_try;;
7537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7538 (eval "$ac_compile") 2>conftest.er1
7540 grep -v '^ *+' conftest.er1 >conftest.err
7542 cat conftest.err >&5
7543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7544 (exit $ac_status); } && {
7545 test -z "$ac_c_werror_flag" ||
7546 test ! -s conftest.err
7547 } && test -s conftest.$ac_objext; then
7548 ac_header_compiler=yes
7550 echo "$as_me: failed program was:" >&5
7551 sed 's/^/| /' conftest.$ac_ext >&5
7553 ac_header_compiler=no
7556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7557 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7558 echo "${ECHO_T}$ac_header_compiler" >&6; }
7560 # Is the header present?
7561 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7562 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7563 cat >conftest.$ac_ext <<_ACEOF
7566 cat confdefs.h >>conftest.$ac_ext
7567 cat >>conftest.$ac_ext <<_ACEOF
7568 /* end confdefs.h. */
7569 #include <$ac_header>
7571 if { (ac_try="$ac_cpp conftest.$ac_ext"
7573 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7574 *) ac_try_echo
=$ac_try;;
7576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7577 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7579 grep -v '^ *+' conftest.er1
>conftest.err
7581 cat conftest.err
>&5
7582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7583 (exit $ac_status); } >/dev
/null
&& {
7584 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7585 test ! -s conftest.err
7587 ac_header_preproc
=yes
7589 echo "$as_me: failed program was:" >&5
7590 sed 's/^/| /' conftest.
$ac_ext >&5
7592 ac_header_preproc
=no
7595 rm -f conftest.err conftest.
$ac_ext
7596 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7597 echo "${ECHO_T}$ac_header_preproc" >&6; }
7599 # So? What about this header?
7600 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7602 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7603 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7604 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7605 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7606 ac_header_preproc
=yes
7609 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7610 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7611 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7612 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7613 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7614 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7615 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7616 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7617 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7618 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7619 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7620 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7624 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7625 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7626 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7627 echo $ECHO_N "(cached) $ECHO_C" >&6
7629 eval "$as_ac_Header=\$ac_header_preproc"
7631 ac_res
=`eval echo '${'$as_ac_Header'}'`
7632 { echo "$as_me:$LINENO: result: $ac_res" >&5
7633 echo "${ECHO_T}$ac_res" >&6; }
7636 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7637 cat >>confdefs.h
<<_ACEOF
7638 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7646 for ac_header
in net
/if.h
7648 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7649 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7651 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7652 echo $ECHO_N "(cached) $ECHO_C" >&6
7654 cat >conftest.
$ac_ext <<_ACEOF
7657 cat confdefs.h
>>conftest.
$ac_ext
7658 cat >>conftest.
$ac_ext <<_ACEOF
7659 /* end confdefs.h. */
7660 $ac_includes_default
7661 #if HAVE_SYS_SOCKET_H
7662 #include <sys/socket.h>
7665 #include <$ac_header>
7667 rm -f conftest.
$ac_objext
7668 if { (ac_try
="$ac_compile"
7670 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7671 *) ac_try_echo=$ac_try;;
7673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7674 (eval "$ac_compile") 2>conftest.er1
7676 grep -v '^ *+' conftest.er1 >conftest.err
7678 cat conftest.err >&5
7679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7680 (exit $ac_status); } && {
7681 test -z "$ac_c_werror_flag" ||
7682 test ! -s conftest.err
7683 } && test -s conftest.$ac_objext; then
7684 eval "$as_ac_Header=yes"
7686 echo "$as_me: failed program was:" >&5
7687 sed 's/^/| /' conftest.$ac_ext >&5
7689 eval "$as_ac_Header=no"
7692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7694 ac_res=`eval echo '${'$as_ac_Header'}'`
7695 { echo "$as_me:$LINENO: result: $ac_res" >&5
7696 echo "${ECHO_T}$ac_res" >&6; }
7697 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7698 cat >>confdefs.h <<_ACEOF
7699 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7707 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7708 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7709 if test "${ac_cv_struct_tm+set}" = set; then
7710 echo $ECHO_N "(cached) $ECHO_C" >&6
7712 cat >conftest.$ac_ext <<_ACEOF
7715 cat confdefs.h >>conftest.$ac_ext
7716 cat >>conftest.$ac_ext <<_ACEOF
7717 /* end confdefs.h. */
7718 #include <sys/types.h>
7725 int *p = &tm.tm_sec;
7731 rm -f conftest.$ac_objext
7732 if { (ac_try="$ac_compile"
7734 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7735 *) ac_try_echo
=$ac_try;;
7737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7738 (eval "$ac_compile") 2>conftest.er1
7740 grep -v '^ *+' conftest.er1
>conftest.err
7742 cat conftest.err
>&5
7743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744 (exit $ac_status); } && {
7745 test -z "$ac_c_werror_flag" ||
7746 test ! -s conftest.err
7747 } && test -s conftest.
$ac_objext; then
7748 ac_cv_struct_tm
=time.h
7750 echo "$as_me: failed program was:" >&5
7751 sed 's/^/| /' conftest.
$ac_ext >&5
7753 ac_cv_struct_tm
=sys
/time.h
7756 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7758 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7759 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7760 if test $ac_cv_struct_tm = sys
/time.h
; then
7762 cat >>confdefs.h
<<\_ACEOF
7763 #define TM_IN_SYS_TIME 1
7768 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7769 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7770 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7771 echo $ECHO_N "(cached) $ECHO_C" >&6
7773 cat >conftest.
$ac_ext <<_ACEOF
7776 cat confdefs.h
>>conftest.
$ac_ext
7777 cat >>conftest.
$ac_ext <<_ACEOF
7778 /* end confdefs.h. */
7779 #include <sys/types.h>
7780 #include <$ac_cv_struct_tm>
7786 static struct tm ac_aggr;
7787 if (ac_aggr.tm_zone)
7793 rm -f conftest.
$ac_objext
7794 if { (ac_try
="$ac_compile"
7796 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7797 *) ac_try_echo=$ac_try;;
7799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7800 (eval "$ac_compile") 2>conftest.er1
7802 grep -v '^ *+' conftest.er1 >conftest.err
7804 cat conftest.err >&5
7805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7806 (exit $ac_status); } && {
7807 test -z "$ac_c_werror_flag" ||
7808 test ! -s conftest.err
7809 } && test -s conftest.$ac_objext; then
7810 ac_cv_member_struct_tm_tm_zone=yes
7812 echo "$as_me: failed program was:" >&5
7813 sed 's/^/| /' conftest.$ac_ext >&5
7815 cat >conftest.$ac_ext <<_ACEOF
7818 cat confdefs.h >>conftest.$ac_ext
7819 cat >>conftest.$ac_ext <<_ACEOF
7820 /* end confdefs.h. */
7821 #include <sys/types.h>
7822 #include <$ac_cv_struct_tm>
7828 static struct tm ac_aggr;
7829 if (sizeof ac_aggr.tm_zone)
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 ac_cv_member_struct_tm_tm_zone
=yes
7854 echo "$as_me: failed program was:" >&5
7855 sed 's/^/| /' conftest.
$ac_ext >&5
7857 ac_cv_member_struct_tm_tm_zone
=no
7860 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7863 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7865 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7866 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7867 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7869 cat >>confdefs.h
<<_ACEOF
7870 #define HAVE_STRUCT_TM_TM_ZONE 1
7876 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7878 cat >>confdefs.h
<<\_ACEOF
7879 #define HAVE_TM_ZONE 1
7883 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7884 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7885 if test "${ac_cv_have_decl_tzname+set}" = set; then
7886 echo $ECHO_N "(cached) $ECHO_C" >&6
7888 cat >conftest.
$ac_ext <<_ACEOF
7891 cat confdefs.h
>>conftest.
$ac_ext
7892 cat >>conftest.
$ac_ext <<_ACEOF
7893 /* end confdefs.h. */
7907 rm -f conftest.
$ac_objext
7908 if { (ac_try
="$ac_compile"
7910 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7911 *) ac_try_echo=$ac_try;;
7913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7914 (eval "$ac_compile") 2>conftest.er1
7916 grep -v '^ *+' conftest.er1 >conftest.err
7918 cat conftest.err >&5
7919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7920 (exit $ac_status); } && {
7921 test -z "$ac_c_werror_flag" ||
7922 test ! -s conftest.err
7923 } && test -s conftest.$ac_objext; then
7924 ac_cv_have_decl_tzname=yes
7926 echo "$as_me: failed program was:" >&5
7927 sed 's/^/| /' conftest.$ac_ext >&5
7929 ac_cv_have_decl_tzname=no
7932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7934 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7935 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7936 if test $ac_cv_have_decl_tzname = yes; then
7938 cat >>confdefs.h <<_ACEOF
7939 #define HAVE_DECL_TZNAME 1
7944 cat >>confdefs.h <<_ACEOF
7945 #define HAVE_DECL_TZNAME 0
7952 { echo "$as_me:$LINENO: checking for tzname" >&5
7953 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7954 if test "${ac_cv_var_tzname+set}" = set; then
7955 echo $ECHO_N "(cached) $ECHO_C" >&6
7957 cat >conftest.$ac_ext <<_ACEOF
7960 cat confdefs.h >>conftest.$ac_ext
7961 cat >>conftest.$ac_ext <<_ACEOF
7962 /* end confdefs.h. */
7964 #if !HAVE_DECL_TZNAME
7965 extern char *tzname[];
7971 return tzname[0][0];
7976 rm -f conftest.$ac_objext conftest$ac_exeext
7977 if { (ac_try="$ac_link"
7979 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7980 *) ac_try_echo
=$ac_try;;
7982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7983 (eval "$ac_link") 2>conftest.er1
7985 grep -v '^ *+' conftest.er1
>conftest.err
7987 cat conftest.err
>&5
7988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7989 (exit $ac_status); } && {
7990 test -z "$ac_c_werror_flag" ||
7991 test ! -s conftest.err
7992 } && test -s conftest
$ac_exeext &&
7993 $as_test_x conftest
$ac_exeext; then
7994 ac_cv_var_tzname
=yes
7996 echo "$as_me: failed program was:" >&5
7997 sed 's/^/| /' conftest.
$ac_ext >&5
8002 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8003 conftest
$ac_exeext conftest.
$ac_ext
8005 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8006 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
8007 if test $ac_cv_var_tzname = yes; then
8009 cat >>confdefs.h
<<\_ACEOF
8010 #define HAVE_TZNAME 1
8016 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8017 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
8018 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8019 echo $ECHO_N "(cached) $ECHO_C" >&6
8021 cat >conftest.
$ac_ext <<_ACEOF
8024 cat confdefs.h
>>conftest.
$ac_ext
8025 cat >>conftest.
$ac_ext <<_ACEOF
8026 /* end confdefs.h. */
8032 static struct tm ac_aggr;
8033 if (ac_aggr.tm_gmtoff)
8039 rm -f conftest.
$ac_objext
8040 if { (ac_try
="$ac_compile"
8042 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8043 *) ac_try_echo=$ac_try;;
8045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8046 (eval "$ac_compile") 2>conftest.er1
8048 grep -v '^ *+' conftest.er1 >conftest.err
8050 cat conftest.err >&5
8051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052 (exit $ac_status); } && {
8053 test -z "$ac_c_werror_flag" ||
8054 test ! -s conftest.err
8055 } && test -s conftest.$ac_objext; then
8056 ac_cv_member_struct_tm_tm_gmtoff=yes
8058 echo "$as_me: failed program was:" >&5
8059 sed 's/^/| /' conftest.$ac_ext >&5
8061 cat >conftest.$ac_ext <<_ACEOF
8064 cat confdefs.h >>conftest.$ac_ext
8065 cat >>conftest.$ac_ext <<_ACEOF
8066 /* end confdefs.h. */
8072 static struct tm ac_aggr;
8073 if (sizeof ac_aggr.tm_gmtoff)
8079 rm -f conftest.$ac_objext
8080 if { (ac_try="$ac_compile"
8082 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8083 *) ac_try_echo
=$ac_try;;
8085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8086 (eval "$ac_compile") 2>conftest.er1
8088 grep -v '^ *+' conftest.er1
>conftest.err
8090 cat conftest.err
>&5
8091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092 (exit $ac_status); } && {
8093 test -z "$ac_c_werror_flag" ||
8094 test ! -s conftest.err
8095 } && test -s conftest.
$ac_objext; then
8096 ac_cv_member_struct_tm_tm_gmtoff
=yes
8098 echo "$as_me: failed program was:" >&5
8099 sed 's/^/| /' conftest.
$ac_ext >&5
8101 ac_cv_member_struct_tm_tm_gmtoff
=no
8104 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8107 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8109 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8110 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8111 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8113 cat >>confdefs.h
<<\_ACEOF
8114 #define HAVE_TM_GMTOFF 1
8119 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8120 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8121 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8122 echo $ECHO_N "(cached) $ECHO_C" >&6
8124 cat >conftest.
$ac_ext <<_ACEOF
8127 cat confdefs.h
>>conftest.
$ac_ext
8128 cat >>conftest.
$ac_ext <<_ACEOF
8129 /* end confdefs.h. */
8130 $ac_includes_default
8131 #if HAVE_SYS_SOCKET_H
8132 #include <sys/socket.h>
8141 static struct ifreq ac_aggr;
8142 if (ac_aggr.ifr_flags)
8148 rm -f conftest.
$ac_objext
8149 if { (ac_try
="$ac_compile"
8151 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8152 *) ac_try_echo=$ac_try;;
8154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8155 (eval "$ac_compile") 2>conftest.er1
8157 grep -v '^ *+' conftest.er1 >conftest.err
8159 cat conftest.err >&5
8160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161 (exit $ac_status); } && {
8162 test -z "$ac_c_werror_flag" ||
8163 test ! -s conftest.err
8164 } && test -s conftest.$ac_objext; then
8165 ac_cv_member_struct_ifreq_ifr_flags=yes
8167 echo "$as_me: failed program was:" >&5
8168 sed 's/^/| /' conftest.$ac_ext >&5
8170 cat >conftest.$ac_ext <<_ACEOF
8173 cat confdefs.h >>conftest.$ac_ext
8174 cat >>conftest.$ac_ext <<_ACEOF
8175 /* end confdefs.h. */
8176 $ac_includes_default
8177 #if HAVE_SYS_SOCKET_H
8178 #include <sys/socket.h>
8187 static struct ifreq ac_aggr;
8188 if (sizeof ac_aggr.ifr_flags)
8194 rm -f conftest.$ac_objext
8195 if { (ac_try="$ac_compile"
8197 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8198 *) ac_try_echo
=$ac_try;;
8200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8201 (eval "$ac_compile") 2>conftest.er1
8203 grep -v '^ *+' conftest.er1
>conftest.err
8205 cat conftest.err
>&5
8206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207 (exit $ac_status); } && {
8208 test -z "$ac_c_werror_flag" ||
8209 test ! -s conftest.err
8210 } && test -s conftest.
$ac_objext; then
8211 ac_cv_member_struct_ifreq_ifr_flags
=yes
8213 echo "$as_me: failed program was:" >&5
8214 sed 's/^/| /' conftest.
$ac_ext >&5
8216 ac_cv_member_struct_ifreq_ifr_flags
=no
8219 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8222 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8224 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8225 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8226 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8228 cat >>confdefs.h
<<_ACEOF
8229 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8234 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8235 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8236 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8237 echo $ECHO_N "(cached) $ECHO_C" >&6
8239 cat >conftest.
$ac_ext <<_ACEOF
8242 cat confdefs.h
>>conftest.
$ac_ext
8243 cat >>conftest.
$ac_ext <<_ACEOF
8244 /* end confdefs.h. */
8245 $ac_includes_default
8246 #if HAVE_SYS_SOCKET_H
8247 #include <sys/socket.h>
8256 static struct ifreq ac_aggr;
8257 if (ac_aggr.ifr_hwaddr)
8263 rm -f conftest.
$ac_objext
8264 if { (ac_try
="$ac_compile"
8266 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8267 *) ac_try_echo=$ac_try;;
8269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8270 (eval "$ac_compile") 2>conftest.er1
8272 grep -v '^ *+' conftest.er1 >conftest.err
8274 cat conftest.err >&5
8275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8276 (exit $ac_status); } && {
8277 test -z "$ac_c_werror_flag" ||
8278 test ! -s conftest.err
8279 } && test -s conftest.$ac_objext; then
8280 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8282 echo "$as_me: failed program was:" >&5
8283 sed 's/^/| /' conftest.$ac_ext >&5
8285 cat >conftest.$ac_ext <<_ACEOF
8288 cat confdefs.h >>conftest.$ac_ext
8289 cat >>conftest.$ac_ext <<_ACEOF
8290 /* end confdefs.h. */
8291 $ac_includes_default
8292 #if HAVE_SYS_SOCKET_H
8293 #include <sys/socket.h>
8302 static struct ifreq ac_aggr;
8303 if (sizeof ac_aggr.ifr_hwaddr)
8309 rm -f conftest.$ac_objext
8310 if { (ac_try="$ac_compile"
8312 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8313 *) ac_try_echo
=$ac_try;;
8315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8316 (eval "$ac_compile") 2>conftest.er1
8318 grep -v '^ *+' conftest.er1
>conftest.err
8320 cat conftest.err
>&5
8321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322 (exit $ac_status); } && {
8323 test -z "$ac_c_werror_flag" ||
8324 test ! -s conftest.err
8325 } && test -s conftest.
$ac_objext; then
8326 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8328 echo "$as_me: failed program was:" >&5
8329 sed 's/^/| /' conftest.
$ac_ext >&5
8331 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8334 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8337 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8339 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8340 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8341 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8343 cat >>confdefs.h
<<_ACEOF
8344 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8349 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8350 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8351 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8352 echo $ECHO_N "(cached) $ECHO_C" >&6
8354 cat >conftest.
$ac_ext <<_ACEOF
8357 cat confdefs.h
>>conftest.
$ac_ext
8358 cat >>conftest.
$ac_ext <<_ACEOF
8359 /* end confdefs.h. */
8360 $ac_includes_default
8361 #if HAVE_SYS_SOCKET_H
8362 #include <sys/socket.h>
8371 static struct ifreq ac_aggr;
8372 if (ac_aggr.ifr_netmask)
8378 rm -f conftest.
$ac_objext
8379 if { (ac_try
="$ac_compile"
8381 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8382 *) ac_try_echo=$ac_try;;
8384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8385 (eval "$ac_compile") 2>conftest.er1
8387 grep -v '^ *+' conftest.er1 >conftest.err
8389 cat conftest.err >&5
8390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391 (exit $ac_status); } && {
8392 test -z "$ac_c_werror_flag" ||
8393 test ! -s conftest.err
8394 } && test -s conftest.$ac_objext; then
8395 ac_cv_member_struct_ifreq_ifr_netmask=yes
8397 echo "$as_me: failed program was:" >&5
8398 sed 's/^/| /' conftest.$ac_ext >&5
8400 cat >conftest.$ac_ext <<_ACEOF
8403 cat confdefs.h >>conftest.$ac_ext
8404 cat >>conftest.$ac_ext <<_ACEOF
8405 /* end confdefs.h. */
8406 $ac_includes_default
8407 #if HAVE_SYS_SOCKET_H
8408 #include <sys/socket.h>
8417 static struct ifreq ac_aggr;
8418 if (sizeof ac_aggr.ifr_netmask)
8424 rm -f conftest.$ac_objext
8425 if { (ac_try="$ac_compile"
8427 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8428 *) ac_try_echo
=$ac_try;;
8430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8431 (eval "$ac_compile") 2>conftest.er1
8433 grep -v '^ *+' conftest.er1
>conftest.err
8435 cat conftest.err
>&5
8436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437 (exit $ac_status); } && {
8438 test -z "$ac_c_werror_flag" ||
8439 test ! -s conftest.err
8440 } && test -s conftest.
$ac_objext; then
8441 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8443 echo "$as_me: failed program was:" >&5
8444 sed 's/^/| /' conftest.
$ac_ext >&5
8446 ac_cv_member_struct_ifreq_ifr_netmask
=no
8449 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8452 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8454 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8455 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8456 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8458 cat >>confdefs.h
<<_ACEOF
8459 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8464 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8465 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8466 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8467 echo $ECHO_N "(cached) $ECHO_C" >&6
8469 cat >conftest.
$ac_ext <<_ACEOF
8472 cat confdefs.h
>>conftest.
$ac_ext
8473 cat >>conftest.
$ac_ext <<_ACEOF
8474 /* end confdefs.h. */
8475 $ac_includes_default
8476 #if HAVE_SYS_SOCKET_H
8477 #include <sys/socket.h>
8486 static struct ifreq ac_aggr;
8487 if (ac_aggr.ifr_broadaddr)
8493 rm -f conftest.
$ac_objext
8494 if { (ac_try
="$ac_compile"
8496 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8497 *) ac_try_echo=$ac_try;;
8499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8500 (eval "$ac_compile") 2>conftest.er1
8502 grep -v '^ *+' conftest.er1 >conftest.err
8504 cat conftest.err >&5
8505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506 (exit $ac_status); } && {
8507 test -z "$ac_c_werror_flag" ||
8508 test ! -s conftest.err
8509 } && test -s conftest.$ac_objext; then
8510 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8512 echo "$as_me: failed program was:" >&5
8513 sed 's/^/| /' conftest.$ac_ext >&5
8515 cat >conftest.$ac_ext <<_ACEOF
8518 cat confdefs.h >>conftest.$ac_ext
8519 cat >>conftest.$ac_ext <<_ACEOF
8520 /* end confdefs.h. */
8521 $ac_includes_default
8522 #if HAVE_SYS_SOCKET_H
8523 #include <sys/socket.h>
8532 static struct ifreq ac_aggr;
8533 if (sizeof ac_aggr.ifr_broadaddr)
8539 rm -f conftest.$ac_objext
8540 if { (ac_try="$ac_compile"
8542 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8543 *) ac_try_echo
=$ac_try;;
8545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8546 (eval "$ac_compile") 2>conftest.er1
8548 grep -v '^ *+' conftest.er1
>conftest.err
8550 cat conftest.err
>&5
8551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552 (exit $ac_status); } && {
8553 test -z "$ac_c_werror_flag" ||
8554 test ! -s conftest.err
8555 } && test -s conftest.
$ac_objext; then
8556 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
8558 echo "$as_me: failed program was:" >&5
8559 sed 's/^/| /' conftest.
$ac_ext >&5
8561 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
8564 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8567 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8569 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8570 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8571 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8573 cat >>confdefs.h
<<_ACEOF
8574 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8579 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8580 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8581 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8582 echo $ECHO_N "(cached) $ECHO_C" >&6
8584 cat >conftest.
$ac_ext <<_ACEOF
8587 cat confdefs.h
>>conftest.
$ac_ext
8588 cat >>conftest.
$ac_ext <<_ACEOF
8589 /* end confdefs.h. */
8590 $ac_includes_default
8591 #if HAVE_SYS_SOCKET_H
8592 #include <sys/socket.h>
8601 static struct ifreq ac_aggr;
8602 if (ac_aggr.ifr_addr)
8608 rm -f conftest.
$ac_objext
8609 if { (ac_try
="$ac_compile"
8611 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8612 *) ac_try_echo=$ac_try;;
8614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8615 (eval "$ac_compile") 2>conftest.er1
8617 grep -v '^ *+' conftest.er1 >conftest.err
8619 cat conftest.err >&5
8620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621 (exit $ac_status); } && {
8622 test -z "$ac_c_werror_flag" ||
8623 test ! -s conftest.err
8624 } && test -s conftest.$ac_objext; then
8625 ac_cv_member_struct_ifreq_ifr_addr=yes
8627 echo "$as_me: failed program was:" >&5
8628 sed 's/^/| /' conftest.$ac_ext >&5
8630 cat >conftest.$ac_ext <<_ACEOF
8633 cat confdefs.h >>conftest.$ac_ext
8634 cat >>conftest.$ac_ext <<_ACEOF
8635 /* end confdefs.h. */
8636 $ac_includes_default
8637 #if HAVE_SYS_SOCKET_H
8638 #include <sys/socket.h>
8647 static struct ifreq ac_aggr;
8648 if (sizeof ac_aggr.ifr_addr)
8654 rm -f conftest.$ac_objext
8655 if { (ac_try="$ac_compile"
8657 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8658 *) ac_try_echo
=$ac_try;;
8660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8661 (eval "$ac_compile") 2>conftest.er1
8663 grep -v '^ *+' conftest.er1
>conftest.err
8665 cat conftest.err
>&5
8666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667 (exit $ac_status); } && {
8668 test -z "$ac_c_werror_flag" ||
8669 test ! -s conftest.err
8670 } && test -s conftest.
$ac_objext; then
8671 ac_cv_member_struct_ifreq_ifr_addr
=yes
8673 echo "$as_me: failed program was:" >&5
8674 sed 's/^/| /' conftest.
$ac_ext >&5
8676 ac_cv_member_struct_ifreq_ifr_addr
=no
8679 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8682 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8684 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8685 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8686 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8688 cat >>confdefs.h
<<_ACEOF
8689 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8697 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8698 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8699 if test "$ac_cv_prog_cc_c89" != no
; then
8700 { echo "$as_me:$LINENO: result: yes" >&5
8701 echo "${ECHO_T}yes" >&6; }
8703 cat >>confdefs.h
<<\_ACEOF
8704 #define PROTOTYPES 1
8708 cat >>confdefs.h
<<\_ACEOF
8709 #define __PROTOTYPES 1
8713 { echo "$as_me:$LINENO: result: no" >&5
8714 echo "${ECHO_T}no" >&6; }
8717 { echo "$as_me:$LINENO: checking for working volatile" >&5
8718 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8719 if test "${ac_cv_c_volatile+set}" = set; then
8720 echo $ECHO_N "(cached) $ECHO_C" >&6
8722 cat >conftest.
$ac_ext <<_ACEOF
8725 cat confdefs.h
>>conftest.
$ac_ext
8726 cat >>conftest.
$ac_ext <<_ACEOF
8727 /* end confdefs.h. */
8734 int * volatile y = (int *) 0;
8740 rm -f conftest.
$ac_objext
8741 if { (ac_try
="$ac_compile"
8743 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8744 *) ac_try_echo=$ac_try;;
8746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8747 (eval "$ac_compile") 2>conftest.er1
8749 grep -v '^ *+' conftest.er1 >conftest.err
8751 cat conftest.err >&5
8752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753 (exit $ac_status); } && {
8754 test -z "$ac_c_werror_flag" ||
8755 test ! -s conftest.err
8756 } && test -s conftest.$ac_objext; then
8757 ac_cv_c_volatile=yes
8759 echo "$as_me: failed program was:" >&5
8760 sed 's/^/| /' conftest.$ac_ext >&5
8765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8767 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8768 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8769 if test $ac_cv_c_volatile = no; then
8771 cat >>confdefs.h <<\_ACEOF
8777 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8778 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8779 if test "${ac_cv_c_const+set}" = set; then
8780 echo $ECHO_N "(cached) $ECHO_C" >&6
8782 cat >conftest.$ac_ext <<_ACEOF
8785 cat confdefs.h >>conftest.$ac_ext
8786 cat >>conftest.$ac_ext <<_ACEOF
8787 /* end confdefs.h. */
8792 /* FIXME: Include the comments suggested by Paul. */
8794 /* Ultrix mips cc rejects this. */
8795 typedef int charset[2];
8797 /* SunOS 4.1.1 cc rejects this. */
8798 char const *const *pcpcc;
8800 /* NEC SVR4.0.2 mips cc rejects this. */
8801 struct point {int x, y;};
8802 static struct point const zero = {0,0};
8803 /* AIX XL C 1.02.0.0 rejects this.
8804 It does not let you subtract one const X* pointer from another in
8805 an arm of an if-expression whose if-part is not a constant
8807 const char *g = "string";
8808 pcpcc = &g + (g ? g-g : 0);
8809 /* HPUX 7.0 cc rejects these. */
8811 ppc = (char**) pcpcc;
8812 pcpcc = (char const *const *) ppc;
8813 { /* SCO 3.2v4 cc rejects this. */
8815 char const *s = 0 ? (char *) 0 : (char const *) 0;
8820 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8822 const int *foo = &x[0];
8825 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8826 typedef const int *iptr;
8830 { /* AIX XL C 1.02.0.0 rejects this saying
8831 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8832 struct s { int j; const int *ap[3]; };
8833 struct s *b; b->j = 5;
8835 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8839 return !cs[0] && !zero.x;
8846 rm -f conftest.$ac_objext
8847 if { (ac_try="$ac_compile"
8849 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8850 *) ac_try_echo
=$ac_try;;
8852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8853 (eval "$ac_compile") 2>conftest.er1
8855 grep -v '^ *+' conftest.er1
>conftest.err
8857 cat conftest.err
>&5
8858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859 (exit $ac_status); } && {
8860 test -z "$ac_c_werror_flag" ||
8861 test ! -s conftest.err
8862 } && test -s conftest.
$ac_objext; then
8865 echo "$as_me: failed program was:" >&5
8866 sed 's/^/| /' conftest.
$ac_ext >&5
8871 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8873 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8874 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8875 if test $ac_cv_c_const = no
; then
8877 cat >>confdefs.h
<<\_ACEOF
8883 { echo "$as_me:$LINENO: checking for void * support" >&5
8884 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8885 if test "${emacs_cv_void_star+set}" = set; then
8886 echo $ECHO_N "(cached) $ECHO_C" >&6
8888 cat >conftest.
$ac_ext <<_ACEOF
8891 cat confdefs.h
>>conftest.
$ac_ext
8892 cat >>conftest.
$ac_ext <<_ACEOF
8893 /* end confdefs.h. */
8903 rm -f conftest.
$ac_objext
8904 if { (ac_try
="$ac_compile"
8906 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8907 *) ac_try_echo=$ac_try;;
8909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8910 (eval "$ac_compile") 2>conftest.er1
8912 grep -v '^ *+' conftest.er1 >conftest.err
8914 cat conftest.err >&5
8915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8916 (exit $ac_status); } && {
8917 test -z "$ac_c_werror_flag" ||
8918 test ! -s conftest.err
8919 } && test -s conftest.$ac_objext; then
8920 emacs_cv_void_star=yes
8922 echo "$as_me: failed program was:" >&5
8923 sed 's/^/| /' conftest.$ac_ext >&5
8925 emacs_cv_void_star=no
8928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8930 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8931 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8932 if test $emacs_cv_void_star = yes; then
8933 cat >>confdefs.h <<\_ACEOF
8934 #define POINTER_TYPE void
8938 cat >>confdefs.h <<\_ACEOF
8939 #define POINTER_TYPE char
8948 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8949 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8950 set x ${MAKE-make}; ac_make=`echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8951 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8952 echo $ECHO_N "(cached) $ECHO_C" >&6
8954 cat >conftest.make <<\_ACEOF
8957 @echo '@@@%%%=$(MAKE)=@@@%%%'
8959 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8960 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
8962 eval ac_cv_prog_make_${ac_make}_set=yes;;
8964 eval ac_cv_prog_make_${ac_make}_set=no;;
8968 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8969 { echo "$as_me:$LINENO: result: yes" >&5
8970 echo "${ECHO_T}yes" >&6; }
8973 { echo "$as_me:$LINENO: result: no" >&5
8974 echo "${ECHO_T}no" >&6; }
8975 SET_MAKE="MAKE=${MAKE-make}"
8979 { echo "$as_me:$LINENO: checking for long file names" >&5
8980 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
8981 if test "${ac_cv_sys_long_file_names+set}" = set; then
8982 echo $ECHO_N "(cached) $ECHO_C" >&6
8984 ac_cv_sys_long_file_names=yes
8985 # Test for long file names in all the places we know might matter:
8986 # . the current directory, where building will happen
8987 # $prefix/lib where we will be installing things
8988 # $exec_prefix/lib likewise
8989 # $TMPDIR if set, where it might want to write temporary files
8990 # /tmp where it might want to write temporary files
8993 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8994 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8995 # in the usual case where exec_prefix is '${prefix}'.
8997 . | /* | ?:[\\/]*) ;; #(
9000 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9001 ac_xdir=$ac_dir/cf$$
9002 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9003 ac_tf1=$ac_xdir/conftest9012345
9004 ac_tf2=$ac_xdir/conftest9012346
9005 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9006 ac_cv_sys_long_file_names=no
9007 rm -f -r "$ac_xdir" 2>/dev/null
9008 test $ac_cv_sys_long_file_names = no && break
9011 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9012 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9013 if test $ac_cv_sys_long_file_names = yes; then
9015 cat >>confdefs.h <<\_ACEOF
9016 #define HAVE_LONG_FILE_NAMES 1
9022 #### Choose a window system.
9024 { echo "$as_me:$LINENO: checking for X" >&5
9025 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9028 # Check whether --with-x was given.
9029 if test "${with_x+set}" = set; then
9033 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9034 if test "x$with_x" = xno; then
9035 # The user explicitly disabled X.
9038 case $x_includes,$x_libraries in #(
9039 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9040 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9041 { (exit 1); exit 1; }; };; #(
9042 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9043 echo $ECHO_N "(cached) $ECHO_C" >&6
9045 # One or both of the vars are not set, and there is no cached value.
9046 ac_x_includes=no ac_x_libraries=no
9047 rm -f -r conftest.dir
9048 if mkdir conftest.dir; then
9050 cat >Imakefile <<'_ACEOF'
9052 @echo incroot='${INCROOT}'
9054 @echo usrlibdir='${USRLIBDIR}'
9056 @echo libdir='${LIBDIR}'
9058 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9059 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9060 for ac_var in incroot usrlibdir libdir; do
9061 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
9063 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9064 for ac_extension in a so sl; do
9065 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9066 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9067 ac_im_usrlibdir=$ac_im_libdir; break
9070 # Screen out bogus values from the imake configuration. They are
9071 # bogus both because they are the default anyway, and because
9072 # using them would break gcc on systems where it needs fixed includes.
9073 case $ac_im_incroot in
9074 /usr/include) ac_x_includes= ;;
9075 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9077 case $ac_im_usrlibdir in
9079 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9083 rm -f -r conftest.dir
9086 # Standard set of common directories for X headers.
9087 # Check X11 before X11Rn because it is often a symlink to the current release.
9099 /usr/local/X11/include
9100 /usr/local/X11R6/include
9101 /usr/local/X11R5/include
9102 /usr/local/X11R4/include
9104 /usr/local/include/X11
9105 /usr/local/include/X11R6
9106 /usr/local/include/X11R5
9107 /usr/local/include/X11R4
9111 /usr/XFree86/include/X11
9115 /usr/unsupported/include
9117 /usr/local/x11r5/include
9118 /usr/lpp/Xamples/include
9120 /usr/openwin/include
9121 /usr/openwin/share/include'
9123 if test "$ac_x_includes" = no; then
9124 # Guess where to find include files, by looking for Xlib.h.
9125 # First, try using that file with no special directory specified.
9126 cat >conftest.$ac_ext <<_ACEOF
9129 cat confdefs.h >>conftest.$ac_ext
9130 cat >>conftest.$ac_ext <<_ACEOF
9131 /* end confdefs.h. */
9132 #include <X11/Xlib.h>
9134 if { (ac_try="$ac_cpp conftest.$ac_ext"
9136 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9137 *) ac_try_echo
=$ac_try;;
9139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9140 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9142 grep -v '^ *+' conftest.er1
>conftest.err
9144 cat conftest.err
>&5
9145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9146 (exit $ac_status); } >/dev
/null
&& {
9147 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9148 test ! -s conftest.err
9150 # We can compile using X headers with no special include directory.
9153 echo "$as_me: failed program was:" >&5
9154 sed 's/^/| /' conftest.
$ac_ext >&5
9156 for ac_dir
in $ac_x_header_dirs; do
9157 if test -r "$ac_dir/X11/Xlib.h"; then
9158 ac_x_includes
=$ac_dir
9164 rm -f conftest.err conftest.
$ac_ext
9165 fi # $ac_x_includes = no
9167 if test "$ac_x_libraries" = no
; then
9168 # Check for the libraries.
9169 # See if we find them without any special options.
9170 # Don't add to $LIBS permanently.
9173 cat >conftest.
$ac_ext <<_ACEOF
9176 cat confdefs.h
>>conftest.
$ac_ext
9177 cat >>conftest.
$ac_ext <<_ACEOF
9178 /* end confdefs.h. */
9179 #include <X11/Xlib.h>
9188 rm -f conftest.
$ac_objext conftest
$ac_exeext
9189 if { (ac_try
="$ac_link"
9191 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9192 *) ac_try_echo=$ac_try;;
9194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9195 (eval "$ac_link") 2>conftest.er1
9197 grep -v '^ *+' conftest.er1 >conftest.err
9199 cat conftest.err >&5
9200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9201 (exit $ac_status); } && {
9202 test -z "$ac_c_werror_flag" ||
9203 test ! -s conftest.err
9204 } && test -s conftest$ac_exeext &&
9205 $as_test_x conftest$ac_exeext; then
9207 # We can link X programs with no special library path.
9210 echo "$as_me: failed program was:" >&5
9211 sed 's/^/| /' conftest.$ac_ext >&5
9214 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
9216 # Don't even attempt the hair of trying to link an X program!
9217 for ac_extension in a so sl; do
9218 if test -r "$ac_dir/libX11.$ac_extension"; then
9219 ac_x_libraries=$ac_dir
9226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9227 conftest$ac_exeext conftest.$ac_ext
9228 fi # $ac_x_libraries = no
9230 case $ac_x_includes,$ac_x_libraries in #(
9232 # Didn't find X, or a directory has "'" in its name.
9233 ac_cv_have_x="have_x=no";; #(
9235 # Record where we found X for the cache.
9236 ac_cv_have_x="have_x=yes\
9237 ac_x_includes='$ac_x_includes'\
9238 ac_x_libraries='$ac_x_libraries'"
9244 eval "$ac_cv_have_x"
9247 if test "$have_x" != yes; then
9248 { echo "$as_me:$LINENO: result: $have_x" >&5
9249 echo "${ECHO_T}$have_x" >&6; }
9252 # If each of the values was on the command line, it overrides each guess.
9253 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9254 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9255 # Update the cache value to reflect the command line values.
9256 ac_cv_have_x="have_x=yes\
9257 ac_x_includes='$x_includes'\
9258 ac_x_libraries='$x_libraries'"
9259 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9260 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9263 if test "$no_x" = yes; then
9269 if test "${x_libraries}" != NONE; then
9270 if test -n "${x_libraries}"; then
9271 LD_SWITCH_X_SITE=-L`echo ${x_libraries} |
sed -e "s/:/ -L/g"`
9272 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} |
sed -e "s/:/ -R/g"`
9274 x_default_search_path=""
9275 x_search_path=${x_libraries}
9276 if test -z "${x_search_path}"; then
9277 x_search_path=/usr/lib
9279 for x_library in `echo ${x_search_path}: | \
9280 sed -e "s/:/ /g" -e p
-e "s:/lib[^ /]* :/share :g"`; do
9282 ${x_library}/X11/%L/%T/%N%C%S:\
9283 ${x_library}/X11/%l/%T/%N%C%S:\
9284 ${x_library}/X11/%T/%N%C%S:\
9285 ${x_library}/X11/%L/%T/%N%S:\
9286 ${x_library}/X11/%l/%T/%N%S:\
9287 ${x_library}/X11/%T/%N%S"
9288 if test x"${x_default_search_path}" = x; then
9289 x_default_search_path=${x_search_path}
9291 x_default_search_path="${x_search_path}:${x_default_search_path}"
9295 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9296 C_SWITCH_X_SITE=-I`echo ${x_includes} |
sed -e "s/:/ -I/g"`
9299 if test x"${x_includes}" = x; then
9300 bitmapdir=/usr/include/X11/bitmaps
9302 # accumulate include directories that have X11 bitmap subdirectories
9304 for bmd in `echo ${x_includes} |
sed -e "s/:/ /g"`; do
9305 if test -d "${bmd}/X11/bitmaps"; then
9306 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9308 if test -d "${bmd}/bitmaps"; then
9309 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9312 if test ${bmd_acc} != "dummyval"; then
9313 bitmapdir=`echo ${bmd_acc} |
sed -e "s/^dummyval://"`
9318 if test "${with_carbon}" != no; then
9319 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9320 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9321 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9322 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9323 echo $ECHO_N "(cached) $ECHO_C" >&6
9325 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9326 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9328 # Is the header compilable?
9329 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9330 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9331 cat >conftest.$ac_ext <<_ACEOF
9334 cat confdefs.h >>conftest.$ac_ext
9335 cat >>conftest.$ac_ext <<_ACEOF
9336 /* end confdefs.h. */
9337 $ac_includes_default
9338 #include <Carbon/Carbon.h>
9340 rm -f conftest.$ac_objext
9341 if { (ac_try="$ac_compile"
9343 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9344 *) ac_try_echo
=$ac_try;;
9346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9347 (eval "$ac_compile") 2>conftest.er1
9349 grep -v '^ *+' conftest.er1
>conftest.err
9351 cat conftest.err
>&5
9352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9353 (exit $ac_status); } && {
9354 test -z "$ac_c_werror_flag" ||
9355 test ! -s conftest.err
9356 } && test -s conftest.
$ac_objext; then
9357 ac_header_compiler
=yes
9359 echo "$as_me: failed program was:" >&5
9360 sed 's/^/| /' conftest.
$ac_ext >&5
9362 ac_header_compiler
=no
9365 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9366 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9367 echo "${ECHO_T}$ac_header_compiler" >&6; }
9369 # Is the header present?
9370 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9371 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9372 cat >conftest.
$ac_ext <<_ACEOF
9375 cat confdefs.h
>>conftest.
$ac_ext
9376 cat >>conftest.
$ac_ext <<_ACEOF
9377 /* end confdefs.h. */
9378 #include <Carbon/Carbon.h>
9380 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9382 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9383 *) ac_try_echo=$ac_try;;
9385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9386 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9388 grep -v '^ *+' conftest.er1 >conftest.err
9390 cat conftest.err >&5
9391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9392 (exit $ac_status); } >/dev/null && {
9393 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9394 test ! -s conftest.err
9396 ac_header_preproc=yes
9398 echo "$as_me: failed program was:" >&5
9399 sed 's/^/| /' conftest.$ac_ext >&5
9401 ac_header_preproc=no
9404 rm -f conftest.err conftest.$ac_ext
9405 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9406 echo "${ECHO_T}$ac_header_preproc" >&6; }
9408 # So? What about this header?
9409 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9411 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9412 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9413 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9414 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9415 ac_header_preproc=yes
9418 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9419 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9420 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9421 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9422 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9423 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9424 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9425 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9426 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9427 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9428 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9429 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9433 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9434 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9435 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9436 echo $ECHO_N "(cached) $ECHO_C" >&6
9438 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9440 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9441 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9444 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9450 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9451 if test "${with_carbon+set}" != set \
9452 && test "${carbon_appdir_x+set}" != set; then
9453 for var in with_x with_x_toolkit with_gtk with_xim \
9454 with_xpm with_jpeg with_tiff with_gif with_png; do
9455 if eval test \"\${$var+set}\" = set; then
9462 if test "${HAVE_CARBON}" = yes; then
9466 case "${window_system}" in
9470 case "${with_x_toolkit}" in
9471 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9472 motif ) USE_X_TOOLKIT=MOTIF ;;
9474 USE_X_TOOLKIT=none ;;
9475 no ) USE_X_TOOLKIT=none ;;
9476 * ) USE_X_TOOLKIT=maybe ;;
9486 ### If we're using X11, we should use the X menu package.
9489 yes ) HAVE_MENUS=yes ;;
9492 if test "${opsys}" = "hpux9"; then
9493 case "${x_libraries}" in
9495 opsysfile="s/hpux9-x11r4.h"
9500 if test "${opsys}" = "hpux9shr"; then
9501 case "${x_libraries}" in
9503 opsysfile="s/hpux9shxr4.h"
9508 ### Compute the unexec source name from the object name.
9509 UNEXEC_SRC="`echo ${unexec} |
sed 's/\.o/.c/'`"
9511 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9512 # Assume not, until told otherwise.
9515 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9516 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9517 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9518 echo $ECHO_N "(cached) $ECHO_C" >&6
9520 cat >conftest.$ac_ext <<_ACEOF
9523 cat confdefs.h >>conftest.$ac_ext
9524 cat >>conftest.$ac_ext <<_ACEOF
9525 /* end confdefs.h. */
9526 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9527 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9528 #define malloc_get_state innocuous_malloc_get_state
9530 /* System header to define __stub macros and hopefully few prototypes,
9531 which can conflict with char malloc_get_state (); below.
9532 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9533 <limits.h> exists even on freestanding compilers. */
9536 # include <limits.h>
9538 # include <assert.h>
9541 #undef malloc_get_state
9543 /* Override any GCC internal prototype to avoid an error.
9544 Use char because int might match the return type of a GCC
9545 builtin and then its argument prototype would still apply. */
9549 char malloc_get_state ();
9550 /* The GNU C library defines this for functions which it implements
9551 to always fail with ENOSYS. Some functions are actually named
9552 something starting with __ and the normal name is an alias. */
9553 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9560 return malloc_get_state ();
9565 rm -f conftest.$ac_objext conftest$ac_exeext
9566 if { (ac_try="$ac_link"
9568 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9569 *) ac_try_echo
=$ac_try;;
9571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9572 (eval "$ac_link") 2>conftest.er1
9574 grep -v '^ *+' conftest.er1
>conftest.err
9576 cat conftest.err
>&5
9577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9578 (exit $ac_status); } && {
9579 test -z "$ac_c_werror_flag" ||
9580 test ! -s conftest.err
9581 } && test -s conftest
$ac_exeext &&
9582 $as_test_x conftest
$ac_exeext; then
9583 ac_cv_func_malloc_get_state
=yes
9585 echo "$as_me: failed program was:" >&5
9586 sed 's/^/| /' conftest.
$ac_ext >&5
9588 ac_cv_func_malloc_get_state
=no
9591 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9592 conftest
$ac_exeext conftest.
$ac_ext
9594 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9595 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9596 if test $ac_cv_func_malloc_get_state = yes; then
9602 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9603 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9604 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9605 echo $ECHO_N "(cached) $ECHO_C" >&6
9607 cat >conftest.
$ac_ext <<_ACEOF
9610 cat confdefs.h
>>conftest.
$ac_ext
9611 cat >>conftest.
$ac_ext <<_ACEOF
9612 /* end confdefs.h. */
9613 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9614 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9615 #define malloc_set_state innocuous_malloc_set_state
9617 /* System header to define __stub macros and hopefully few prototypes,
9618 which can conflict with char malloc_set_state (); below.
9619 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9620 <limits.h> exists even on freestanding compilers. */
9623 # include <limits.h>
9625 # include <assert.h>
9628 #undef malloc_set_state
9630 /* Override any GCC internal prototype to avoid an error.
9631 Use char because int might match the return type of a GCC
9632 builtin and then its argument prototype would still apply. */
9636 char malloc_set_state ();
9637 /* The GNU C library defines this for functions which it implements
9638 to always fail with ENOSYS. Some functions are actually named
9639 something starting with __ and the normal name is an alias. */
9640 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9647 return malloc_set_state ();
9652 rm -f conftest.
$ac_objext conftest
$ac_exeext
9653 if { (ac_try
="$ac_link"
9655 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9656 *) ac_try_echo=$ac_try;;
9658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9659 (eval "$ac_link") 2>conftest.er1
9661 grep -v '^ *+' conftest.er1 >conftest.err
9663 cat conftest.err >&5
9664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9665 (exit $ac_status); } && {
9666 test -z "$ac_c_werror_flag" ||
9667 test ! -s conftest.err
9668 } && test -s conftest$ac_exeext &&
9669 $as_test_x conftest$ac_exeext; then
9670 ac_cv_func_malloc_set_state=yes
9672 echo "$as_me: failed program was:" >&5
9673 sed 's/^/| /' conftest.$ac_ext >&5
9675 ac_cv_func_malloc_set_state=no
9678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9679 conftest$ac_exeext conftest.$ac_ext
9681 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9682 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9683 if test $ac_cv_func_malloc_set_state = yes; then
9689 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9690 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9691 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9692 echo $ECHO_N "(cached) $ECHO_C" >&6
9694 cat >conftest.$ac_ext <<_ACEOF
9697 cat confdefs.h >>conftest.$ac_ext
9698 cat >>conftest.$ac_ext <<_ACEOF
9699 /* end confdefs.h. */
9700 extern void (* __after_morecore_hook)();
9704 __after_morecore_hook = 0
9709 rm -f conftest.$ac_objext conftest$ac_exeext
9710 if { (ac_try="$ac_link"
9712 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9713 *) ac_try_echo
=$ac_try;;
9715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9716 (eval "$ac_link") 2>conftest.er1
9718 grep -v '^ *+' conftest.er1
>conftest.err
9720 cat conftest.err
>&5
9721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9722 (exit $ac_status); } && {
9723 test -z "$ac_c_werror_flag" ||
9724 test ! -s conftest.err
9725 } && test -s conftest
$ac_exeext &&
9726 $as_test_x conftest
$ac_exeext; then
9727 emacs_cv_var___after_morecore_hook
=yes
9729 echo "$as_me: failed program was:" >&5
9730 sed 's/^/| /' conftest.
$ac_ext >&5
9732 emacs_cv_var___after_morecore_hook
=no
9735 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9736 conftest
$ac_exeext conftest.
$ac_ext
9738 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9739 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9740 if test $emacs_cv_var___after_morecore_hook = no
; then
9743 if test "${system_malloc}" = "yes"; then
9746 (The GNU allocators don't work with this system configuration.)"
9748 if test "$doug_lea_malloc" = "yes" ; then
9749 if test "$GNU_MALLOC" = yes ; then
9751 (Using Doug Lea's new malloc from the GNU C Library.)"
9754 cat >>confdefs.h
<<\_ACEOF
9755 #define DOUG_LEA_MALLOC 1
9760 if test x
"${REL_ALLOC}" = x
; then
9761 REL_ALLOC
=${GNU_MALLOC}
9767 for ac_header
in stdlib.h unistd.h
9769 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9770 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9771 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9772 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9773 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9774 echo $ECHO_N "(cached) $ECHO_C" >&6
9776 ac_res
=`eval echo '${'$as_ac_Header'}'`
9777 { echo "$as_me:$LINENO: result: $ac_res" >&5
9778 echo "${ECHO_T}$ac_res" >&6; }
9780 # Is the header compilable?
9781 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9782 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9783 cat >conftest.
$ac_ext <<_ACEOF
9786 cat confdefs.h
>>conftest.
$ac_ext
9787 cat >>conftest.
$ac_ext <<_ACEOF
9788 /* end confdefs.h. */
9789 $ac_includes_default
9790 #include <$ac_header>
9792 rm -f conftest.
$ac_objext
9793 if { (ac_try
="$ac_compile"
9795 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9796 *) ac_try_echo=$ac_try;;
9798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9799 (eval "$ac_compile") 2>conftest.er1
9801 grep -v '^ *+' conftest.er1 >conftest.err
9803 cat conftest.err >&5
9804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805 (exit $ac_status); } && {
9806 test -z "$ac_c_werror_flag" ||
9807 test ! -s conftest.err
9808 } && test -s conftest.$ac_objext; then
9809 ac_header_compiler=yes
9811 echo "$as_me: failed program was:" >&5
9812 sed 's/^/| /' conftest.$ac_ext >&5
9814 ac_header_compiler=no
9817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9818 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9819 echo "${ECHO_T}$ac_header_compiler" >&6; }
9821 # Is the header present?
9822 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9823 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9824 cat >conftest.$ac_ext <<_ACEOF
9827 cat confdefs.h >>conftest.$ac_ext
9828 cat >>conftest.$ac_ext <<_ACEOF
9829 /* end confdefs.h. */
9830 #include <$ac_header>
9832 if { (ac_try="$ac_cpp conftest.$ac_ext"
9834 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9835 *) ac_try_echo
=$ac_try;;
9837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9838 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9840 grep -v '^ *+' conftest.er1
>conftest.err
9842 cat conftest.err
>&5
9843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9844 (exit $ac_status); } >/dev
/null
&& {
9845 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9846 test ! -s conftest.err
9848 ac_header_preproc
=yes
9850 echo "$as_me: failed program was:" >&5
9851 sed 's/^/| /' conftest.
$ac_ext >&5
9853 ac_header_preproc
=no
9856 rm -f conftest.err conftest.
$ac_ext
9857 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9858 echo "${ECHO_T}$ac_header_preproc" >&6; }
9860 # So? What about this header?
9861 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9863 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9864 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9865 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9866 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9867 ac_header_preproc
=yes
9870 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9871 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9872 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9873 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9874 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9875 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9876 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9877 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9878 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9879 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9880 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9881 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9885 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9886 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9887 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9888 echo $ECHO_N "(cached) $ECHO_C" >&6
9890 eval "$as_ac_Header=\$ac_header_preproc"
9892 ac_res
=`eval echo '${'$as_ac_Header'}'`
9893 { echo "$as_me:$LINENO: result: $ac_res" >&5
9894 echo "${ECHO_T}$ac_res" >&6; }
9897 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9898 cat >>confdefs.h
<<_ACEOF
9899 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9907 for ac_func
in getpagesize
9909 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9910 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9911 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9912 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9913 echo $ECHO_N "(cached) $ECHO_C" >&6
9915 cat >conftest.
$ac_ext <<_ACEOF
9918 cat confdefs.h
>>conftest.
$ac_ext
9919 cat >>conftest.
$ac_ext <<_ACEOF
9920 /* end confdefs.h. */
9921 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9922 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9923 #define $ac_func innocuous_$ac_func
9925 /* System header to define __stub macros and hopefully few prototypes,
9926 which can conflict with char $ac_func (); below.
9927 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9928 <limits.h> exists even on freestanding compilers. */
9931 # include <limits.h>
9933 # include <assert.h>
9938 /* Override any GCC internal prototype to avoid an error.
9939 Use char because int might match the return type of a GCC
9940 builtin and then its argument prototype would still apply. */
9945 /* The GNU C library defines this for functions which it implements
9946 to always fail with ENOSYS. Some functions are actually named
9947 something starting with __ and the normal name is an alias. */
9948 #if defined __stub_$ac_func || defined __stub___$ac_func
9960 rm -f conftest.
$ac_objext conftest
$ac_exeext
9961 if { (ac_try
="$ac_link"
9963 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9964 *) ac_try_echo=$ac_try;;
9966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9967 (eval "$ac_link") 2>conftest.er1
9969 grep -v '^ *+' conftest.er1 >conftest.err
9971 cat conftest.err >&5
9972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973 (exit $ac_status); } && {
9974 test -z "$ac_c_werror_flag" ||
9975 test ! -s conftest.err
9976 } && test -s conftest$ac_exeext &&
9977 $as_test_x conftest$ac_exeext; then
9978 eval "$as_ac_var=yes"
9980 echo "$as_me: failed program was:" >&5
9981 sed 's/^/| /' conftest.$ac_ext >&5
9983 eval "$as_ac_var=no"
9986 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9987 conftest$ac_exeext conftest.$ac_ext
9989 ac_res=`eval echo '${'$as_ac_var'}'`
9990 { echo "$as_me:$LINENO: result: $ac_res" >&5
9991 echo "${ECHO_T}$ac_res" >&6; }
9992 if test `eval echo '${'$as_ac_var'}'` = yes; then
9993 cat >>confdefs.h <<_ACEOF
9994 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10000 { echo "$as_me:$LINENO: checking for working mmap" >&5
10001 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10002 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10003 echo $ECHO_N "(cached) $ECHO_C" >&6
10005 if test "$cross_compiling" = yes; then
10006 ac_cv_func_mmap_fixed_mapped=no
10008 cat >conftest.$ac_ext <<_ACEOF
10011 cat confdefs.h >>conftest.$ac_ext
10012 cat >>conftest.$ac_ext <<_ACEOF
10013 /* end confdefs.h. */
10014 $ac_includes_default
10015 /* malloc might have been renamed as rpl_malloc. */
10018 /* Thanks to Mike Haertel and Jim Avera for this test.
10019 Here is a matrix of mmap possibilities:
10020 mmap private not fixed
10021 mmap private fixed at somewhere currently unmapped
10022 mmap private fixed at somewhere already mapped
10023 mmap shared not fixed
10024 mmap shared fixed at somewhere currently unmapped
10025 mmap shared fixed at somewhere already mapped
10026 For private mappings, we should verify that changes cannot be read()
10027 back from the file, nor mmap's back from the file at a different
10028 address. (There have been systems where private was not correctly
10029 implemented like the infamous i386 svr4.0, and systems where the
10030 VM page cache was not coherent with the file system buffer cache
10031 like early versions of FreeBSD and possibly contemporary NetBSD.)
10032 For shared mappings, we should conversely verify that changes get
10033 propagated back to all the places they're supposed to be.
10035 Grep wants private fixed already mapped.
10036 The main things grep needs to know about mmap are:
10037 * does it exist and is it safe to write into the mmap'd area
10038 * how to use it (BSD variants) */
10041 #include <sys/mman.h>
10043 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10047 /* This mess was copied from the GNU getpagesize.h. */
10048 #ifndef HAVE_GETPAGESIZE
10049 /* Assume that all systems that can run configure have sys/param.h. */
10050 # ifndef HAVE_SYS_PARAM_H
10051 # define HAVE_SYS_PARAM_H 1
10054 # ifdef _SC_PAGESIZE
10055 # define getpagesize() sysconf(_SC_PAGESIZE)
10056 # else /* no _SC_PAGESIZE */
10057 # ifdef HAVE_SYS_PARAM_H
10058 # include <sys/param.h>
10059 # ifdef EXEC_PAGESIZE
10060 # define getpagesize() EXEC_PAGESIZE
10061 # else /* no EXEC_PAGESIZE */
10063 # define getpagesize() NBPG * CLSIZE
10066 # endif /* no CLSIZE */
10067 # else /* no NBPG */
10069 # define getpagesize() NBPC
10070 # else /* no NBPC */
10072 # define getpagesize() PAGESIZE
10073 # endif /* PAGESIZE */
10074 # endif /* no NBPC */
10075 # endif /* no NBPG */
10076 # endif /* no EXEC_PAGESIZE */
10077 # else /* no HAVE_SYS_PARAM_H */
10078 # define getpagesize() 8192 /* punt totally */
10079 # endif /* no HAVE_SYS_PARAM_H */
10080 # endif /* no _SC_PAGESIZE */
10082 #endif /* no HAVE_GETPAGESIZE */
10087 char *data, *data2, *data3;
10091 pagesize = getpagesize ();
10093 /* First, make a file with some known garbage in it. */
10094 data = (char *) malloc (pagesize);
10097 for (i = 0; i < pagesize; ++i)
10098 *(data + i) = rand ();
10100 fd = creat ("conftest.mmap", 0600);
10103 if (write (fd, data, pagesize) != pagesize)
10107 /* Next, try to mmap the file at a fixed address which already has
10108 something else allocated at it. If we can, also make sure that
10109 we see the same garbage. */
10110 fd = open ("conftest.mmap", O_RDWR);
10113 data2 = (char *) malloc (2 * pagesize);
10116 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10117 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10118 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10120 for (i = 0; i < pagesize; ++i)
10121 if (*(data + i) != *(data2 + i))
10124 /* Finally, make sure that changes to the mapped area do not
10125 percolate back to the file as seen by read(). (This is a bug on
10126 some variants of i386 svr4.0.) */
10127 for (i = 0; i < pagesize; ++i)
10128 *(data2 + i) = *(data2 + i) + 1;
10129 data3 = (char *) malloc (pagesize);
10132 if (read (fd, data3, pagesize) != pagesize)
10134 for (i = 0; i < pagesize; ++i)
10135 if (*(data + i) != *(data3 + i))
10141 rm -f conftest$ac_exeext
10142 if { (ac_try="$ac_link"
10143 case "(($ac_try" in
10144 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10145 *) ac_try_echo
=$ac_try;;
10147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10148 (eval "$ac_link") 2>&5
10150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10152 { (case "(($ac_try" in
10153 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10154 *) ac_try_echo=$ac_try;;
10156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10157 (eval "$ac_try") 2>&5
10159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160 (exit $ac_status); }; }; then
10161 ac_cv_func_mmap_fixed_mapped=yes
10163 echo "$as_me: program exited with status $ac_status" >&5
10164 echo "$as_me: failed program was:" >&5
10165 sed 's/^/| /' conftest.$ac_ext >&5
10167 ( exit $ac_status )
10168 ac_cv_func_mmap_fixed_mapped=no
10170 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10175 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10176 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10177 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10179 cat >>confdefs.h <<\_ACEOF
10180 #define HAVE_MMAP 1
10184 rm -f conftest.mmap
10186 if test $use_mmap_for_buffers = yes; then
10190 LIBS="$libsrc_libs $LIBS"
10193 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10194 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10195 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10196 echo $ECHO_N "(cached) $ECHO_C" >&6
10198 ac_check_lib_save_LIBS=$LIBS
10199 LIBS="-ldnet $LIBS"
10200 cat >conftest.$ac_ext <<_ACEOF
10203 cat confdefs.h >>conftest.$ac_ext
10204 cat >>conftest.$ac_ext <<_ACEOF
10205 /* end confdefs.h. */
10207 /* Override any GCC internal prototype to avoid an error.
10208 Use char because int might match the return type of a GCC
10209 builtin and then its argument prototype would still apply. */
10217 return dnet_ntoa ();
10222 rm -f conftest.$ac_objext conftest$ac_exeext
10223 if { (ac_try="$ac_link"
10224 case "(($ac_try" in
10225 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10226 *) ac_try_echo
=$ac_try;;
10228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10229 (eval "$ac_link") 2>conftest.er1
10231 grep -v '^ *+' conftest.er1
>conftest.err
10233 cat conftest.err
>&5
10234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10235 (exit $ac_status); } && {
10236 test -z "$ac_c_werror_flag" ||
10237 test ! -s conftest.err
10238 } && test -s conftest
$ac_exeext &&
10239 $as_test_x conftest
$ac_exeext; then
10240 ac_cv_lib_dnet_dnet_ntoa
=yes
10242 echo "$as_me: failed program was:" >&5
10243 sed 's/^/| /' conftest.
$ac_ext >&5
10245 ac_cv_lib_dnet_dnet_ntoa
=no
10248 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10249 conftest
$ac_exeext conftest.
$ac_ext
10250 LIBS
=$ac_check_lib_save_LIBS
10252 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10253 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10254 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10255 cat >>confdefs.h
<<_ACEOF
10256 #define HAVE_LIBDNET 1
10259 LIBS
="-ldnet $LIBS"
10264 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10265 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10266 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10267 echo $ECHO_N "(cached) $ECHO_C" >&6
10269 ac_check_lib_save_LIBS
=$LIBS
10270 LIBS
="-lXbsd $LIBS"
10271 cat >conftest.
$ac_ext <<_ACEOF
10274 cat confdefs.h
>>conftest.
$ac_ext
10275 cat >>conftest.
$ac_ext <<_ACEOF
10276 /* end confdefs.h. */
10287 rm -f conftest.
$ac_objext conftest
$ac_exeext
10288 if { (ac_try
="$ac_link"
10289 case "(($ac_try" in
10290 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10291 *) ac_try_echo=$ac_try;;
10293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10294 (eval "$ac_link") 2>conftest.er1
10296 grep -v '^ *+' conftest.er1 >conftest.err
10298 cat conftest.err >&5
10299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300 (exit $ac_status); } && {
10301 test -z "$ac_c_werror_flag" ||
10302 test ! -s conftest.err
10303 } && test -s conftest$ac_exeext &&
10304 $as_test_x conftest$ac_exeext; then
10305 ac_cv_lib_Xbsd_main=yes
10307 echo "$as_me: failed program was:" >&5
10308 sed 's/^/| /' conftest.$ac_ext >&5
10310 ac_cv_lib_Xbsd_main=no
10313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10314 conftest$ac_exeext conftest.$ac_ext
10315 LIBS=$ac_check_lib_save_LIBS
10317 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10318 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10319 if test $ac_cv_lib_Xbsd_main = yes; then
10320 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10325 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10326 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10327 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10328 echo $ECHO_N "(cached) $ECHO_C" >&6
10330 ac_check_lib_save_LIBS=$LIBS
10331 LIBS="-lpthreads $LIBS"
10332 cat >conftest.$ac_ext <<_ACEOF
10335 cat confdefs.h >>conftest.$ac_ext
10336 cat >>conftest.$ac_ext <<_ACEOF
10337 /* end confdefs.h. */
10339 /* Override any GCC internal prototype to avoid an error.
10340 Use char because int might match the return type of a GCC
10341 builtin and then its argument prototype would still apply. */
10349 return cma_open ();
10354 rm -f conftest.$ac_objext conftest$ac_exeext
10355 if { (ac_try="$ac_link"
10356 case "(($ac_try" in
10357 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10358 *) ac_try_echo
=$ac_try;;
10360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10361 (eval "$ac_link") 2>conftest.er1
10363 grep -v '^ *+' conftest.er1
>conftest.err
10365 cat conftest.err
>&5
10366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10367 (exit $ac_status); } && {
10368 test -z "$ac_c_werror_flag" ||
10369 test ! -s conftest.err
10370 } && test -s conftest
$ac_exeext &&
10371 $as_test_x conftest
$ac_exeext; then
10372 ac_cv_lib_pthreads_cma_open
=yes
10374 echo "$as_me: failed program was:" >&5
10375 sed 's/^/| /' conftest.
$ac_ext >&5
10377 ac_cv_lib_pthreads_cma_open
=no
10380 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10381 conftest
$ac_exeext conftest.
$ac_ext
10382 LIBS
=$ac_check_lib_save_LIBS
10384 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10385 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10386 if test $ac_cv_lib_pthreads_cma_open = yes; then
10387 cat >>confdefs.h
<<_ACEOF
10388 #define HAVE_LIBPTHREADS 1
10391 LIBS
="-lpthreads $LIBS"
10396 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10397 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10398 if test -d /usr
/X386
/include
; then
10400 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10404 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10405 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10410 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10411 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10412 if test "${gdb_cv_bigtoc+set}" = set; then
10413 echo $ECHO_N "(cached) $ECHO_C" >&6
10417 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10418 *) gdb_cv_bigtoc
=-bbigtoc ;;
10421 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10422 cat >conftest.
$ac_ext <<_ACEOF
10425 cat confdefs.h
>>conftest.
$ac_ext
10426 cat >>conftest.
$ac_ext <<_ACEOF
10427 /* end confdefs.h. */
10437 rm -f conftest.
$ac_objext conftest
$ac_exeext
10438 if { (ac_try
="$ac_link"
10439 case "(($ac_try" in
10440 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10441 *) ac_try_echo=$ac_try;;
10443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10444 (eval "$ac_link") 2>conftest.er1
10446 grep -v '^ *+' conftest.er1 >conftest.err
10448 cat conftest.err >&5
10449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450 (exit $ac_status); } && {
10451 test -z "$ac_c_werror_flag" ||
10452 test ! -s conftest.err
10453 } && test -s conftest$ac_exeext &&
10454 $as_test_x conftest$ac_exeext; then
10457 echo "$as_me: failed program was:" >&5
10458 sed 's/^/| /' conftest.$ac_ext >&5
10463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10464 conftest$ac_exeext conftest.$ac_ext
10467 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10468 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10472 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10473 # used for the tests that follow. We set them back to REAL_CFLAGS and
10474 # REAL_CPPFLAGS later on.
10476 REAL_CPPFLAGS="$CPPFLAGS"
10478 if test "${HAVE_X11}" = "yes"; then
10479 DEFS="$C_SWITCH_X_SITE $DEFS"
10480 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10482 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10483 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10485 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10486 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10487 # but it's more convenient here to set LD_RUN_PATH
10488 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10489 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10490 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10494 if test "${opsys}" = "gnu-linux"; then
10495 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10496 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10497 cat >conftest.$ac_ext <<_ACEOF
10500 cat confdefs.h >>conftest.$ac_ext
10501 cat >>conftest.$ac_ext <<_ACEOF
10502 /* end confdefs.h. */
10507 XOpenDisplay ("foo");
10512 rm -f conftest.$ac_objext conftest$ac_exeext
10513 if { (ac_try="$ac_link"
10514 case "(($ac_try" in
10515 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10516 *) ac_try_echo
=$ac_try;;
10518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10519 (eval "$ac_link") 2>conftest.er1
10521 grep -v '^ *+' conftest.er1
>conftest.err
10523 cat conftest.err
>&5
10524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10525 (exit $ac_status); } && {
10526 test -z "$ac_c_werror_flag" ||
10527 test ! -s conftest.err
10528 } && test -s conftest
$ac_exeext &&
10529 $as_test_x conftest
$ac_exeext; then
10530 xlinux_first_failure
=no
10532 echo "$as_me: failed program was:" >&5
10533 sed 's/^/| /' conftest.
$ac_ext >&5
10535 xlinux_first_failure
=yes
10538 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10539 conftest
$ac_exeext conftest.
$ac_ext
10540 if test "${xlinux_first_failure}" = "yes"; then
10541 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10542 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10543 OLD_CPPFLAGS
="$CPPFLAGS"
10545 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10546 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10547 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10548 LIBS
="$LIBS -b i486-linuxaout"
10549 cat >conftest.
$ac_ext <<_ACEOF
10552 cat confdefs.h
>>conftest.
$ac_ext
10553 cat >>conftest.
$ac_ext <<_ACEOF
10554 /* end confdefs.h. */
10559 XOpenDisplay ("foo");
10564 rm -f conftest.
$ac_objext conftest
$ac_exeext
10565 if { (ac_try
="$ac_link"
10566 case "(($ac_try" in
10567 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10568 *) ac_try_echo=$ac_try;;
10570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10571 (eval "$ac_link") 2>conftest.er1
10573 grep -v '^ *+' conftest.er1 >conftest.err
10575 cat conftest.err >&5
10576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577 (exit $ac_status); } && {
10578 test -z "$ac_c_werror_flag" ||
10579 test ! -s conftest.err
10580 } && test -s conftest$ac_exeext &&
10581 $as_test_x conftest$ac_exeext; then
10582 xlinux_second_failure=no
10584 echo "$as_me: failed program was:" >&5
10585 sed 's/^/| /' conftest.$ac_ext >&5
10587 xlinux_second_failure=yes
10590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10591 conftest$ac_exeext conftest.$ac_ext
10592 if test "${xlinux_second_failure}" = "yes"; then
10593 # If we get the same failure with -b, there is no use adding -b.
10594 # So take it out. This plays safe.
10595 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10596 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10597 CPPFLAGS="$OLD_CPPFLAGS"
10599 { echo "$as_me:$LINENO: result: no" >&5
10600 echo "${ECHO_T}no" >&6; }
10602 { echo "$as_me:$LINENO: result: yes" >&5
10603 echo "${ECHO_T}yes" >&6; }
10606 { echo "$as_me:$LINENO: result: no" >&5
10607 echo "${ECHO_T}no" >&6; }
10611 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10612 # header files included from there.
10613 { echo "$as_me:$LINENO: checking for Xkb" >&5
10614 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10615 cat >conftest.$ac_ext <<_ACEOF
10618 cat confdefs.h >>conftest.$ac_ext
10619 cat >>conftest.$ac_ext <<_ACEOF
10620 /* end confdefs.h. */
10621 #include <X11/Xlib.h>
10622 #include <X11/XKBlib.h>
10626 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10631 rm -f conftest.$ac_objext conftest$ac_exeext
10632 if { (ac_try="$ac_link"
10633 case "(($ac_try" in
10634 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10635 *) ac_try_echo
=$ac_try;;
10637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10638 (eval "$ac_link") 2>conftest.er1
10640 grep -v '^ *+' conftest.er1
>conftest.err
10642 cat conftest.err
>&5
10643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644 (exit $ac_status); } && {
10645 test -z "$ac_c_werror_flag" ||
10646 test ! -s conftest.err
10647 } && test -s conftest
$ac_exeext &&
10648 $as_test_x conftest
$ac_exeext; then
10651 echo "$as_me: failed program was:" >&5
10652 sed 's/^/| /' conftest.
$ac_ext >&5
10657 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10658 conftest
$ac_exeext conftest.
$ac_ext
10659 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10660 echo "${ECHO_T}$emacs_xkb" >&6; }
10661 if test $emacs_xkb = yes; then
10663 cat >>confdefs.h
<<\_ACEOF
10664 #define HAVE_XKBGETKEYBOARD 1
10673 for ac_func
in XrmSetDatabase XScreenResourceString \
10674 XScreenNumberOfScreen XSetWMProtocols
10676 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10677 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10678 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10679 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10680 echo $ECHO_N "(cached) $ECHO_C" >&6
10682 cat >conftest.
$ac_ext <<_ACEOF
10685 cat confdefs.h
>>conftest.
$ac_ext
10686 cat >>conftest.
$ac_ext <<_ACEOF
10687 /* end confdefs.h. */
10688 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10689 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10690 #define $ac_func innocuous_$ac_func
10692 /* System header to define __stub macros and hopefully few prototypes,
10693 which can conflict with char $ac_func (); below.
10694 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10695 <limits.h> exists even on freestanding compilers. */
10698 # include <limits.h>
10700 # include <assert.h>
10705 /* Override any GCC internal prototype to avoid an error.
10706 Use char because int might match the return type of a GCC
10707 builtin and then its argument prototype would still apply. */
10712 /* The GNU C library defines this for functions which it implements
10713 to always fail with ENOSYS. Some functions are actually named
10714 something starting with __ and the normal name is an alias. */
10715 #if defined __stub_$ac_func || defined __stub___$ac_func
10722 return $ac_func ();
10727 rm -f conftest.
$ac_objext conftest
$ac_exeext
10728 if { (ac_try
="$ac_link"
10729 case "(($ac_try" in
10730 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10731 *) ac_try_echo=$ac_try;;
10733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10734 (eval "$ac_link") 2>conftest.er1
10736 grep -v '^ *+' conftest.er1 >conftest.err
10738 cat conftest.err >&5
10739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10740 (exit $ac_status); } && {
10741 test -z "$ac_c_werror_flag" ||
10742 test ! -s conftest.err
10743 } && test -s conftest$ac_exeext &&
10744 $as_test_x conftest$ac_exeext; then
10745 eval "$as_ac_var=yes"
10747 echo "$as_me: failed program was:" >&5
10748 sed 's/^/| /' conftest.$ac_ext >&5
10750 eval "$as_ac_var=no"
10753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10754 conftest$ac_exeext conftest.$ac_ext
10756 ac_res=`eval echo '${'$as_ac_var'}'`
10757 { echo "$as_me:$LINENO: result: $ac_res" >&5
10758 echo "${ECHO_T}$ac_res" >&6; }
10759 if test `eval echo '${'$as_ac_var'}'` = yes; then
10760 cat >>confdefs.h <<_ACEOF
10761 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10769 if test "${window_system}" = "x11"; then
10770 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10771 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10772 if test "${emacs_cv_x11_version_6+set}" = set; then
10773 echo $ECHO_N "(cached) $ECHO_C" >&6
10775 cat >conftest.$ac_ext <<_ACEOF
10778 cat confdefs.h >>conftest.$ac_ext
10779 cat >>conftest.$ac_ext <<_ACEOF
10780 /* end confdefs.h. */
10781 #include <X11/Xlib.h>
10785 #if XlibSpecificationRelease < 6
10793 rm -f conftest.$ac_objext conftest$ac_exeext
10794 if { (ac_try="$ac_link"
10795 case "(($ac_try" in
10796 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10797 *) ac_try_echo
=$ac_try;;
10799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10800 (eval "$ac_link") 2>conftest.er1
10802 grep -v '^ *+' conftest.er1
>conftest.err
10804 cat conftest.err
>&5
10805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10806 (exit $ac_status); } && {
10807 test -z "$ac_c_werror_flag" ||
10808 test ! -s conftest.err
10809 } && test -s conftest
$ac_exeext &&
10810 $as_test_x conftest
$ac_exeext; then
10811 emacs_cv_x11_version_6
=yes
10813 echo "$as_me: failed program was:" >&5
10814 sed 's/^/| /' conftest.
$ac_ext >&5
10816 emacs_cv_x11_version_6
=no
10819 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10820 conftest
$ac_exeext conftest.
$ac_ext
10823 if test $emacs_cv_x11_version_6 = yes; then
10824 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10825 echo "${ECHO_T}6 or newer" >&6; }
10827 cat >>confdefs.h
<<\_ACEOF
10828 #define HAVE_X11R6 1
10832 { echo "$as_me:$LINENO: result: before 6" >&5
10833 echo "${ECHO_T}before 6" >&6; }
10837 if test "${window_system}" = "x11"; then
10838 { echo "$as_me:$LINENO: checking X11 version 5" >&5
10839 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6; }
10840 if test "${emacs_cv_x11_version_5+set}" = set; then
10841 echo $ECHO_N "(cached) $ECHO_C" >&6
10843 cat >conftest.
$ac_ext <<_ACEOF
10846 cat confdefs.h
>>conftest.
$ac_ext
10847 cat >>conftest.
$ac_ext <<_ACEOF
10848 /* end confdefs.h. */
10849 #include <X11/Xlib.h>
10853 #if XlibSpecificationRelease < 5
10861 rm -f conftest.
$ac_objext conftest
$ac_exeext
10862 if { (ac_try
="$ac_link"
10863 case "(($ac_try" in
10864 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10865 *) ac_try_echo=$ac_try;;
10867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10868 (eval "$ac_link") 2>conftest.er1
10870 grep -v '^ *+' conftest.er1 >conftest.err
10872 cat conftest.err >&5
10873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874 (exit $ac_status); } && {
10875 test -z "$ac_c_werror_flag" ||
10876 test ! -s conftest.err
10877 } && test -s conftest$ac_exeext &&
10878 $as_test_x conftest$ac_exeext; then
10879 emacs_cv_x11_version_5=yes
10881 echo "$as_me: failed program was:" >&5
10882 sed 's/^/| /' conftest.$ac_ext >&5
10884 emacs_cv_x11_version_5=no
10887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10888 conftest$ac_exeext conftest.$ac_ext
10891 if test $emacs_cv_x11_version_5 = yes; then
10892 { echo "$as_me:$LINENO: result: 5 or newer" >&5
10893 echo "${ECHO_T}5 or newer" >&6; }
10896 cat >>confdefs.h <<\_ACEOF
10897 #define HAVE_X11R5 1
10902 { echo "$as_me:$LINENO: result: before 5" >&5
10903 echo "${ECHO_T}before 5" >&6; }
10908 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
10911 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
10912 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10913 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10914 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10915 { (exit 1); exit 1; }; };
10919 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10921 if test "X${with_pkg_config_prog}" != X; then
10922 PKG_CONFIG="${with_pkg_config_prog}"
10927 if test -z "$PKG_CONFIG"; then
10928 # Extract the first word of "pkg-config", so it can be a program name with args.
10929 set dummy pkg-config; ac_word=$2
10930 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10932 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10933 echo $ECHO_N "(cached) $ECHO_C" >&6
10935 case $PKG_CONFIG in
10937 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10941 for as_dir in $PATH
10944 test -z "$as_dir" && as_dir=.
10945 for ac_exec_ext in '' $ac_executable_extensions; do
10946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10947 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10955 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10959 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10960 if test -n "$PKG_CONFIG"; then
10961 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10962 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10964 { echo "$as_me:$LINENO: result: no" >&5
10965 echo "${ECHO_T}no" >&6; }
10971 if test "$PKG_CONFIG" = "no" ; then
10972 { { echo "$as_me:$LINENO: error:
10973 *** The pkg-config script could not be found. Make sure it is in your path, or give the full path to pkg-config with the PKG_CONFIG environment variable or --with-pkg-config-prog. Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." >&5
10974 echo "$as_me: error:
10975 *** The pkg-config script could not be found. Make sure it is in your path, or give the full path to pkg-config with the PKG_CONFIG environment variable or --with-pkg-config-prog. Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." >&2;}
10976 { (exit 1); exit 1; }; }
10978 PKG_CONFIG_MIN_VERSION=0.9.0
10979 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10980 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10981 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
10983 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10984 { echo "$as_me:$LINENO: result: yes" >&5
10985 echo "${ECHO_T}yes" >&6; }
10988 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10989 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
10990 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|
sed -e 's,///*,/,g'`
10991 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10992 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
10994 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10995 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
10996 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|
sed -e 's,///*,/,g'`
10997 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10998 echo "${ECHO_T}$GTK_LIBS" >&6; }
11000 { echo "$as_me:$LINENO: result: no" >&5
11001 echo "${ECHO_T}no" >&6; }
11004 ## If we have a custom action on failure, don't print errors, but
11005 ## do set a variable so people can do so.
11006 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11007 echo $GTK_PKG_ERRORS
11013 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11014 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11018 if test $succeeded = yes; then
11021 { { echo "$as_me:$LINENO: error: Library requirements ($GTK_MODULES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
11022 echo "$as_me: error: Library requirements ($GTK_MODULES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
11023 { (exit 1); exit 1; }; }
11028 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11029 CFLAGS="$CFLAGS $GTK_CFLAGS"
11030 LIBS="$GTK_LIBS $LIBS"
11033 for ac_func in gtk_main
11035 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11036 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11037 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11038 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11039 echo $ECHO_N "(cached) $ECHO_C" >&6
11041 cat >conftest.$ac_ext <<_ACEOF
11044 cat confdefs.h >>conftest.$ac_ext
11045 cat >>conftest.$ac_ext <<_ACEOF
11046 /* end confdefs.h. */
11047 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11048 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11049 #define $ac_func innocuous_$ac_func
11051 /* System header to define __stub macros and hopefully few prototypes,
11052 which can conflict with char $ac_func (); below.
11053 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11054 <limits.h> exists even on freestanding compilers. */
11057 # include <limits.h>
11059 # include <assert.h>
11064 /* Override any GCC internal prototype to avoid an error.
11065 Use char because int might match the return type of a GCC
11066 builtin and then its argument prototype would still apply. */
11071 /* The GNU C library defines this for functions which it implements
11072 to always fail with ENOSYS. Some functions are actually named
11073 something starting with __ and the normal name is an alias. */
11074 #if defined __stub_$ac_func || defined __stub___$ac_func
11081 return $ac_func ();
11086 rm -f conftest.$ac_objext conftest$ac_exeext
11087 if { (ac_try="$ac_link"
11088 case "(($ac_try" in
11089 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11090 *) ac_try_echo
=$ac_try;;
11092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11093 (eval "$ac_link") 2>conftest.er1
11095 grep -v '^ *+' conftest.er1
>conftest.err
11097 cat conftest.err
>&5
11098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11099 (exit $ac_status); } && {
11100 test -z "$ac_c_werror_flag" ||
11101 test ! -s conftest.err
11102 } && test -s conftest
$ac_exeext &&
11103 $as_test_x conftest
$ac_exeext; then
11104 eval "$as_ac_var=yes"
11106 echo "$as_me: failed program was:" >&5
11107 sed 's/^/| /' conftest.
$ac_ext >&5
11109 eval "$as_ac_var=no"
11112 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11113 conftest
$ac_exeext conftest.
$ac_ext
11115 ac_res
=`eval echo '${'$as_ac_var'}'`
11116 { echo "$as_me:$LINENO: result: $ac_res" >&5
11117 echo "${ECHO_T}$ac_res" >&6; }
11118 if test `eval echo '${'$as_ac_var'}'` = yes; then
11119 cat >>confdefs.h
<<_ACEOF
11120 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11126 if test "${GTK_COMPILES}" != "yes"; then
11127 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11128 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11129 { (exit 1); exit 1; }; };
11134 cat >>confdefs.h
<<\_ACEOF
11140 if test "$with_toolkit_scroll_bars" != no
; then
11141 with_toolkit_scroll_bars
=yes
11144 HAVE_GTK_MULTIDISPLAY
=no
11146 for ac_func
in gdk_display_open
11148 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11149 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11150 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11151 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11152 echo $ECHO_N "(cached) $ECHO_C" >&6
11154 cat >conftest.
$ac_ext <<_ACEOF
11157 cat confdefs.h
>>conftest.
$ac_ext
11158 cat >>conftest.
$ac_ext <<_ACEOF
11159 /* end confdefs.h. */
11160 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11161 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11162 #define $ac_func innocuous_$ac_func
11164 /* System header to define __stub macros and hopefully few prototypes,
11165 which can conflict with char $ac_func (); below.
11166 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11167 <limits.h> exists even on freestanding compilers. */
11170 # include <limits.h>
11172 # include <assert.h>
11177 /* Override any GCC internal prototype to avoid an error.
11178 Use char because int might match the return type of a GCC
11179 builtin and then its argument prototype would still apply. */
11184 /* The GNU C library defines this for functions which it implements
11185 to always fail with ENOSYS. Some functions are actually named
11186 something starting with __ and the normal name is an alias. */
11187 #if defined __stub_$ac_func || defined __stub___$ac_func
11194 return $ac_func ();
11199 rm -f conftest.
$ac_objext conftest
$ac_exeext
11200 if { (ac_try
="$ac_link"
11201 case "(($ac_try" in
11202 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11203 *) ac_try_echo=$ac_try;;
11205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11206 (eval "$ac_link") 2>conftest.er1
11208 grep -v '^ *+' conftest.er1 >conftest.err
11210 cat conftest.err >&5
11211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11212 (exit $ac_status); } && {
11213 test -z "$ac_c_werror_flag" ||
11214 test ! -s conftest.err
11215 } && test -s conftest$ac_exeext &&
11216 $as_test_x conftest$ac_exeext; then
11217 eval "$as_ac_var=yes"
11219 echo "$as_me: failed program was:" >&5
11220 sed 's/^/| /' conftest.$ac_ext >&5
11222 eval "$as_ac_var=no"
11225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11226 conftest$ac_exeext conftest.$ac_ext
11228 ac_res=`eval echo '${'$as_ac_var'}'`
11229 { echo "$as_me:$LINENO: result: $ac_res" >&5
11230 echo "${ECHO_T}$ac_res" >&6; }
11231 if test `eval echo '${'$as_ac_var'}'` = yes; then
11232 cat >>confdefs.h <<_ACEOF
11233 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11235 HAVE_GTK_MULTIDISPLAY=yes
11239 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11241 cat >>confdefs.h <<\_ACEOF
11242 #define HAVE_GTK_MULTIDISPLAY 1
11246 HAVE_GTK_FILE_SELECTION=no
11248 for ac_func in gtk_file_selection_new
11250 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11251 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11252 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11253 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11254 echo $ECHO_N "(cached) $ECHO_C" >&6
11256 cat >conftest.$ac_ext <<_ACEOF
11259 cat confdefs.h >>conftest.$ac_ext
11260 cat >>conftest.$ac_ext <<_ACEOF
11261 /* end confdefs.h. */
11262 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11263 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11264 #define $ac_func innocuous_$ac_func
11266 /* System header to define __stub macros and hopefully few prototypes,
11267 which can conflict with char $ac_func (); below.
11268 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11269 <limits.h> exists even on freestanding compilers. */
11272 # include <limits.h>
11274 # include <assert.h>
11279 /* Override any GCC internal prototype to avoid an error.
11280 Use char because int might match the return type of a GCC
11281 builtin and then its argument prototype would still apply. */
11286 /* The GNU C library defines this for functions which it implements
11287 to always fail with ENOSYS. Some functions are actually named
11288 something starting with __ and the normal name is an alias. */
11289 #if defined __stub_$ac_func || defined __stub___$ac_func
11296 return $ac_func ();
11301 rm -f conftest.$ac_objext conftest$ac_exeext
11302 if { (ac_try="$ac_link"
11303 case "(($ac_try" in
11304 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11305 *) ac_try_echo
=$ac_try;;
11307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11308 (eval "$ac_link") 2>conftest.er1
11310 grep -v '^ *+' conftest.er1
>conftest.err
11312 cat conftest.err
>&5
11313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314 (exit $ac_status); } && {
11315 test -z "$ac_c_werror_flag" ||
11316 test ! -s conftest.err
11317 } && test -s conftest
$ac_exeext &&
11318 $as_test_x conftest
$ac_exeext; then
11319 eval "$as_ac_var=yes"
11321 echo "$as_me: failed program was:" >&5
11322 sed 's/^/| /' conftest.
$ac_ext >&5
11324 eval "$as_ac_var=no"
11327 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11328 conftest
$ac_exeext conftest.
$ac_ext
11330 ac_res
=`eval echo '${'$as_ac_var'}'`
11331 { echo "$as_me:$LINENO: result: $ac_res" >&5
11332 echo "${ECHO_T}$ac_res" >&6; }
11333 if test `eval echo '${'$as_ac_var'}'` = yes; then
11334 cat >>confdefs.h
<<_ACEOF
11335 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11337 HAVE_GTK_FILE_SELECTION
=yes
11342 HAVE_GTK_FILE_CHOOSER
=no
11344 for ac_func
in gtk_file_chooser_dialog_new
11346 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11347 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11348 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11349 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11350 echo $ECHO_N "(cached) $ECHO_C" >&6
11352 cat >conftest.
$ac_ext <<_ACEOF
11355 cat confdefs.h
>>conftest.
$ac_ext
11356 cat >>conftest.
$ac_ext <<_ACEOF
11357 /* end confdefs.h. */
11358 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11359 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11360 #define $ac_func innocuous_$ac_func
11362 /* System header to define __stub macros and hopefully few prototypes,
11363 which can conflict with char $ac_func (); below.
11364 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11365 <limits.h> exists even on freestanding compilers. */
11368 # include <limits.h>
11370 # include <assert.h>
11375 /* Override any GCC internal prototype to avoid an error.
11376 Use char because int might match the return type of a GCC
11377 builtin and then its argument prototype would still apply. */
11382 /* The GNU C library defines this for functions which it implements
11383 to always fail with ENOSYS. Some functions are actually named
11384 something starting with __ and the normal name is an alias. */
11385 #if defined __stub_$ac_func || defined __stub___$ac_func
11392 return $ac_func ();
11397 rm -f conftest.
$ac_objext conftest
$ac_exeext
11398 if { (ac_try
="$ac_link"
11399 case "(($ac_try" in
11400 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11401 *) ac_try_echo=$ac_try;;
11403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11404 (eval "$ac_link") 2>conftest.er1
11406 grep -v '^ *+' conftest.er1 >conftest.err
11408 cat conftest.err >&5
11409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11410 (exit $ac_status); } && {
11411 test -z "$ac_c_werror_flag" ||
11412 test ! -s conftest.err
11413 } && test -s conftest$ac_exeext &&
11414 $as_test_x conftest$ac_exeext; then
11415 eval "$as_ac_var=yes"
11417 echo "$as_me: failed program was:" >&5
11418 sed 's/^/| /' conftest.$ac_ext >&5
11420 eval "$as_ac_var=no"
11423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11424 conftest$ac_exeext conftest.$ac_ext
11426 ac_res=`eval echo '${'$as_ac_var'}'`
11427 { echo "$as_me:$LINENO: result: $ac_res" >&5
11428 echo "${ECHO_T}$ac_res" >&6; }
11429 if test `eval echo '${'$as_ac_var'}'` = yes; then
11430 cat >>confdefs.h <<_ACEOF
11431 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11433 HAVE_GTK_FILE_CHOOSER=yes
11438 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11439 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11441 cat >>confdefs.h <<\_ACEOF
11442 #define HAVE_GTK_FILE_BOTH 1
11447 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11448 HAVE_GTK_AND_PTHREAD=no
11450 for ac_header in pthread.h
11452 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
11453 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11454 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11456 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11457 echo $ECHO_N "(cached) $ECHO_C" >&6
11459 ac_res=`eval echo '${'$as_ac_Header'}'`
11460 { echo "$as_me:$LINENO: result: $ac_res" >&5
11461 echo "${ECHO_T}$ac_res" >&6; }
11463 # Is the header compilable?
11464 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11465 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11466 cat >conftest.$ac_ext <<_ACEOF
11469 cat confdefs.h >>conftest.$ac_ext
11470 cat >>conftest.$ac_ext <<_ACEOF
11471 /* end confdefs.h. */
11472 $ac_includes_default
11473 #include <$ac_header>
11475 rm -f conftest.$ac_objext
11476 if { (ac_try="$ac_compile"
11477 case "(($ac_try" in
11478 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11479 *) ac_try_echo
=$ac_try;;
11481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11482 (eval "$ac_compile") 2>conftest.er1
11484 grep -v '^ *+' conftest.er1
>conftest.err
11486 cat conftest.err
>&5
11487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11488 (exit $ac_status); } && {
11489 test -z "$ac_c_werror_flag" ||
11490 test ! -s conftest.err
11491 } && test -s conftest.
$ac_objext; then
11492 ac_header_compiler
=yes
11494 echo "$as_me: failed program was:" >&5
11495 sed 's/^/| /' conftest.
$ac_ext >&5
11497 ac_header_compiler
=no
11500 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11501 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11502 echo "${ECHO_T}$ac_header_compiler" >&6; }
11504 # Is the header present?
11505 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11506 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11507 cat >conftest.
$ac_ext <<_ACEOF
11510 cat confdefs.h
>>conftest.
$ac_ext
11511 cat >>conftest.
$ac_ext <<_ACEOF
11512 /* end confdefs.h. */
11513 #include <$ac_header>
11515 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11516 case "(($ac_try" in
11517 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11518 *) ac_try_echo=$ac_try;;
11520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11521 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11523 grep -v '^ *+' conftest.er1 >conftest.err
11525 cat conftest.err >&5
11526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11527 (exit $ac_status); } >/dev/null && {
11528 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11529 test ! -s conftest.err
11531 ac_header_preproc=yes
11533 echo "$as_me: failed program was:" >&5
11534 sed 's/^/| /' conftest.$ac_ext >&5
11536 ac_header_preproc=no
11539 rm -f conftest.err conftest.$ac_ext
11540 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11541 echo "${ECHO_T}$ac_header_preproc" >&6; }
11543 # So? What about this header?
11544 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11546 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11547 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11548 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11549 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11550 ac_header_preproc=yes
11553 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11554 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11555 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11556 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11557 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11558 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11559 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11560 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11561 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11562 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11563 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11564 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11568 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11569 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11570 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11571 echo $ECHO_N "(cached) $ECHO_C" >&6
11573 eval "$as_ac_Header=\$ac_header_preproc"
11575 ac_res=`eval echo '${'$as_ac_Header'}'`
11576 { echo "$as_me:$LINENO: result: $ac_res" >&5
11577 echo "${ECHO_T}$ac_res" >&6; }
11580 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11581 cat >>confdefs.h <<_ACEOF
11582 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11589 if test "$ac_cv_header_pthread_h"; then
11590 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11591 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11592 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11593 echo $ECHO_N "(cached) $ECHO_C" >&6
11595 ac_check_lib_save_LIBS=$LIBS
11596 LIBS="-lpthread $LIBS"
11597 cat >conftest.$ac_ext <<_ACEOF
11600 cat confdefs.h >>conftest.$ac_ext
11601 cat >>conftest.$ac_ext <<_ACEOF
11602 /* end confdefs.h. */
11604 /* Override any GCC internal prototype to avoid an error.
11605 Use char because int might match the return type of a GCC
11606 builtin and then its argument prototype would still apply. */
11610 char pthread_self ();
11614 return pthread_self ();
11619 rm -f conftest.$ac_objext conftest$ac_exeext
11620 if { (ac_try="$ac_link"
11621 case "(($ac_try" in
11622 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11623 *) ac_try_echo
=$ac_try;;
11625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11626 (eval "$ac_link") 2>conftest.er1
11628 grep -v '^ *+' conftest.er1
>conftest.err
11630 cat conftest.err
>&5
11631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11632 (exit $ac_status); } && {
11633 test -z "$ac_c_werror_flag" ||
11634 test ! -s conftest.err
11635 } && test -s conftest
$ac_exeext &&
11636 $as_test_x conftest
$ac_exeext; then
11637 ac_cv_lib_pthread_pthread_self
=yes
11639 echo "$as_me: failed program was:" >&5
11640 sed 's/^/| /' conftest.
$ac_ext >&5
11642 ac_cv_lib_pthread_pthread_self
=no
11645 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11646 conftest
$ac_exeext conftest.
$ac_ext
11647 LIBS
=$ac_check_lib_save_LIBS
11649 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11650 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11651 if test $ac_cv_lib_pthread_pthread_self = yes; then
11652 HAVE_GTK_AND_PTHREAD
=yes
11656 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11657 GTK_LIBS
="$GTK_LIBS -lpthread"
11659 cat >>confdefs.h
<<\_ACEOF
11660 #define HAVE_GTK_AND_PTHREAD 1
11667 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
11668 if test x
"${HAVE_X11R5}" = xyes
; then
11669 { echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
11670 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6; }
11671 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
11672 echo $ECHO_N "(cached) $ECHO_C" >&6
11674 cat >conftest.
$ac_ext <<_ACEOF
11677 cat confdefs.h
>>conftest.
$ac_ext
11678 cat >>conftest.
$ac_ext <<_ACEOF
11679 /* end confdefs.h. */
11681 #include <X11/Intrinsic.h>
11682 #include <X11/Xaw/Simple.h>
11691 rm -f conftest.
$ac_objext conftest
$ac_exeext
11692 if { (ac_try
="$ac_link"
11693 case "(($ac_try" in
11694 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11695 *) ac_try_echo=$ac_try;;
11697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11698 (eval "$ac_link") 2>conftest.er1
11700 grep -v '^ *+' conftest.er1 >conftest.err
11702 cat conftest.err >&5
11703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11704 (exit $ac_status); } && {
11705 test -z "$ac_c_werror_flag" ||
11706 test ! -s conftest.err
11707 } && test -s conftest$ac_exeext &&
11708 $as_test_x conftest$ac_exeext; then
11709 emacs_cv_x11_version_5_with_xaw=yes
11711 echo "$as_me: failed program was:" >&5
11712 sed 's/^/| /' conftest.$ac_ext >&5
11714 emacs_cv_x11_version_5_with_xaw=no
11717 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11718 conftest$ac_exeext conftest.$ac_ext
11721 if test $emacs_cv_x11_version_5_with_xaw = yes; then
11722 { echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
11723 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6; }
11724 USE_X_TOOLKIT=LUCID
11726 { echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
11727 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6; }
11735 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11737 if test "${USE_X_TOOLKIT}" != "none"; then
11738 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11739 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
11740 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11741 echo $ECHO_N "(cached) $ECHO_C" >&6
11743 cat >conftest.$ac_ext <<_ACEOF
11746 cat confdefs.h >>conftest.$ac_ext
11747 cat >>conftest.$ac_ext <<_ACEOF
11748 /* end confdefs.h. */
11749 #include <X11/Intrinsic.h>
11753 #if XtSpecificationRelease < 6
11761 rm -f conftest.$ac_objext conftest$ac_exeext
11762 if { (ac_try="$ac_link"
11763 case "(($ac_try" in
11764 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11765 *) ac_try_echo
=$ac_try;;
11767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11768 (eval "$ac_link") 2>conftest.er1
11770 grep -v '^ *+' conftest.er1
>conftest.err
11772 cat conftest.err
>&5
11773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774 (exit $ac_status); } && {
11775 test -z "$ac_c_werror_flag" ||
11776 test ! -s conftest.err
11777 } && test -s conftest
$ac_exeext &&
11778 $as_test_x conftest
$ac_exeext; then
11779 emacs_cv_x11_toolkit_version_6
=yes
11781 echo "$as_me: failed program was:" >&5
11782 sed 's/^/| /' conftest.
$ac_ext >&5
11784 emacs_cv_x11_toolkit_version_6
=no
11787 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11788 conftest
$ac_exeext conftest.
$ac_ext
11791 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
11792 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11793 { echo "$as_me:$LINENO: result: 6 or newer" >&5
11794 echo "${ECHO_T}6 or newer" >&6; }
11796 cat >>confdefs.h
<<\_ACEOF
11797 #define HAVE_X11XTR6 1
11801 { echo "$as_me:$LINENO: result: before 6" >&5
11802 echo "${ECHO_T}before 6" >&6; }
11806 if test x
$HAVE_X11XTR6 = xyes
; then
11807 LIBS
="-lXt -lSM -lICE $LIBS"
11812 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
11813 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
11814 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
11815 echo $ECHO_N "(cached) $ECHO_C" >&6
11817 ac_check_lib_save_LIBS
=$LIBS
11819 cat >conftest.
$ac_ext <<_ACEOF
11822 cat confdefs.h
>>conftest.
$ac_ext
11823 cat >>conftest.
$ac_ext <<_ACEOF
11824 /* end confdefs.h. */
11826 /* Override any GCC internal prototype to avoid an error.
11827 Use char because int might match the return type of a GCC
11828 builtin and then its argument prototype would still apply. */
11832 char XmuConvertStandardSelection ();
11836 return XmuConvertStandardSelection ();
11841 rm -f conftest.
$ac_objext conftest
$ac_exeext
11842 if { (ac_try
="$ac_link"
11843 case "(($ac_try" in
11844 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11845 *) ac_try_echo=$ac_try;;
11847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11848 (eval "$ac_link") 2>conftest.er1
11850 grep -v '^ *+' conftest.er1 >conftest.err
11852 cat conftest.err >&5
11853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854 (exit $ac_status); } && {
11855 test -z "$ac_c_werror_flag" ||
11856 test ! -s conftest.err
11857 } && test -s conftest$ac_exeext &&
11858 $as_test_x conftest$ac_exeext; then
11859 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11861 echo "$as_me: failed program was:" >&5
11862 sed 's/^/| /' conftest.$ac_ext >&5
11864 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11868 conftest$ac_exeext conftest.$ac_ext
11869 LIBS=$ac_check_lib_save_LIBS
11871 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11872 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11873 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
11874 cat >>confdefs.h <<_ACEOF
11875 #define HAVE_LIBXMU 1
11882 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11885 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11886 if test "${HAVE_X11}" = "yes"; then
11887 if test "${USE_X_TOOLKIT}" != "none"; then
11889 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
11890 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
11891 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
11892 echo $ECHO_N "(cached) $ECHO_C" >&6
11894 ac_check_lib_save_LIBS=$LIBS
11895 LIBS="-lXext $LIBS"
11896 cat >conftest.$ac_ext <<_ACEOF
11899 cat confdefs.h >>conftest.$ac_ext
11900 cat >>conftest.$ac_ext <<_ACEOF
11901 /* end confdefs.h. */
11903 /* Override any GCC internal prototype to avoid an error.
11904 Use char because int might match the return type of a GCC
11905 builtin and then its argument prototype would still apply. */
11909 char XShapeQueryExtension ();
11913 return XShapeQueryExtension ();
11918 rm -f conftest.$ac_objext conftest$ac_exeext
11919 if { (ac_try="$ac_link"
11920 case "(($ac_try" in
11921 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11922 *) ac_try_echo
=$ac_try;;
11924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11925 (eval "$ac_link") 2>conftest.er1
11927 grep -v '^ *+' conftest.er1
>conftest.err
11929 cat conftest.err
>&5
11930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931 (exit $ac_status); } && {
11932 test -z "$ac_c_werror_flag" ||
11933 test ! -s conftest.err
11934 } && test -s conftest
$ac_exeext &&
11935 $as_test_x conftest
$ac_exeext; then
11936 ac_cv_lib_Xext_XShapeQueryExtension
=yes
11938 echo "$as_me: failed program was:" >&5
11939 sed 's/^/| /' conftest.
$ac_ext >&5
11941 ac_cv_lib_Xext_XShapeQueryExtension
=no
11944 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11945 conftest
$ac_exeext conftest.
$ac_ext
11946 LIBS
=$ac_check_lib_save_LIBS
11948 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11949 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11950 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
11951 cat >>confdefs.h
<<_ACEOF
11952 #define HAVE_LIBXEXT 1
11955 LIBS
="-lXext $LIBS"
11962 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11963 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
11964 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
11965 if test "${emacs_cv_motif_version_2_1+set}" = set; then
11966 echo $ECHO_N "(cached) $ECHO_C" >&6
11968 cat >conftest.
$ac_ext <<_ACEOF
11971 cat confdefs.h
>>conftest.
$ac_ext
11972 cat >>conftest.
$ac_ext <<_ACEOF
11973 /* end confdefs.h. */
11978 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11981 Motif version prior to 2.1.
11987 rm -f conftest.
$ac_objext
11988 if { (ac_try
="$ac_compile"
11989 case "(($ac_try" in
11990 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11991 *) ac_try_echo=$ac_try;;
11993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11994 (eval "$ac_compile") 2>conftest.er1
11996 grep -v '^ *+' conftest.er1 >conftest.err
11998 cat conftest.err >&5
11999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000 (exit $ac_status); } && {
12001 test -z "$ac_c_werror_flag" ||
12002 test ! -s conftest.err
12003 } && test -s conftest.$ac_objext; then
12004 emacs_cv_motif_version_2_1=yes
12006 echo "$as_me: failed program was:" >&5
12007 sed 's/^/| /' conftest.$ac_ext >&5
12009 emacs_cv_motif_version_2_1=no
12012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12014 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12015 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12016 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12017 if test $emacs_cv_motif_version_2_1 = yes; then
12020 cat >>confdefs.h <<\_ACEOF
12021 #define HAVE_MOTIF_2_1 1
12024 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12025 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12026 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12027 echo $ECHO_N "(cached) $ECHO_C" >&6
12029 ac_check_lib_save_LIBS=$LIBS
12031 cat >conftest.$ac_ext <<_ACEOF
12034 cat confdefs.h >>conftest.$ac_ext
12035 cat >>conftest.$ac_ext <<_ACEOF
12036 /* end confdefs.h. */
12038 /* Override any GCC internal prototype to avoid an error.
12039 Use char because int might match the return type of a GCC
12040 builtin and then its argument prototype would still apply. */
12044 char XpCreateContext ();
12048 return XpCreateContext ();
12053 rm -f conftest.$ac_objext conftest$ac_exeext
12054 if { (ac_try="$ac_link"
12055 case "(($ac_try" in
12056 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12057 *) ac_try_echo
=$ac_try;;
12059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12060 (eval "$ac_link") 2>conftest.er1
12062 grep -v '^ *+' conftest.er1
>conftest.err
12064 cat conftest.err
>&5
12065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066 (exit $ac_status); } && {
12067 test -z "$ac_c_werror_flag" ||
12068 test ! -s conftest.err
12069 } && test -s conftest
$ac_exeext &&
12070 $as_test_x conftest
$ac_exeext; then
12071 ac_cv_lib_Xp_XpCreateContext
=yes
12073 echo "$as_me: failed program was:" >&5
12074 sed 's/^/| /' conftest.
$ac_ext >&5
12076 ac_cv_lib_Xp_XpCreateContext
=no
12079 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12080 conftest
$ac_exeext conftest.
$ac_ext
12081 LIBS
=$ac_check_lib_save_LIBS
12083 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12084 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12085 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12089 if test ${HAVE_LIBXP} = yes; then
12091 cat >>confdefs.h
<<\_ACEOF
12092 #define HAVE_LIBXP 1
12097 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12098 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12099 if test "${emacs_cv_lesstif+set}" = set; then
12100 echo $ECHO_N "(cached) $ECHO_C" >&6
12102 # We put this in CFLAGS temporarily to precede other -I options
12103 # that might be in CFLAGS temporarily.
12104 # We put this in CPPFLAGS where it precedes the other -I options.
12105 OLD_CPPFLAGS
=$CPPFLAGS
12107 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12108 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12109 cat >conftest.
$ac_ext <<_ACEOF
12112 cat confdefs.h
>>conftest.
$ac_ext
12113 cat >>conftest.
$ac_ext <<_ACEOF
12114 /* end confdefs.h. */
12115 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12124 rm -f conftest.
$ac_objext
12125 if { (ac_try
="$ac_compile"
12126 case "(($ac_try" in
12127 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12128 *) ac_try_echo=$ac_try;;
12130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12131 (eval "$ac_compile") 2>conftest.er1
12133 grep -v '^ *+' conftest.er1 >conftest.err
12135 cat conftest.err >&5
12136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137 (exit $ac_status); } && {
12138 test -z "$ac_c_werror_flag" ||
12139 test ! -s conftest.err
12140 } && test -s conftest.$ac_objext; then
12141 emacs_cv_lesstif=yes
12143 echo "$as_me: failed program was:" >&5
12144 sed 's/^/| /' conftest.$ac_ext >&5
12146 emacs_cv_lesstif=no
12149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12151 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12152 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12153 if test $emacs_cv_lesstif = yes; then
12154 # Make sure this -I option remains in CPPFLAGS after it is set
12155 # back to REAL_CPPFLAGS.
12156 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12157 # have those other -I options anyway. Ultimately, having this
12158 # directory ultimately in CPPFLAGS will be enough.
12159 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12160 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12163 CPPFLAGS=$OLD_CPPFLAGS
12168 ### Is -lXaw3d available?
12170 if test "${HAVE_X11}" = "yes"; then
12171 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
12172 { echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
12173 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6; }
12174 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
12175 echo $ECHO_N "(cached) $ECHO_C" >&6
12177 cat >conftest.$ac_ext <<_ACEOF
12180 cat confdefs.h >>conftest.$ac_ext
12181 cat >>conftest.$ac_ext <<_ACEOF
12182 /* end confdefs.h. */
12183 #include <X11/Xaw3d/Scrollbar.h>
12185 if { (ac_try="$ac_cpp conftest.$ac_ext"
12186 case "(($ac_try" in
12187 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12188 *) ac_try_echo
=$ac_try;;
12190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12191 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12193 grep -v '^ *+' conftest.er1
>conftest.err
12195 cat conftest.err
>&5
12196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12197 (exit $ac_status); } >/dev
/null
&& {
12198 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12199 test ! -s conftest.err
12201 ac_cv_header_X11_Xaw3d_Scrollbar_h
=yes
12203 echo "$as_me: failed program was:" >&5
12204 sed 's/^/| /' conftest.
$ac_ext >&5
12206 ac_cv_header_X11_Xaw3d_Scrollbar_h
=no
12209 rm -f conftest.err conftest.
$ac_ext
12211 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
12212 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6; }
12213 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
12214 { echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
12215 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6; }
12216 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
12217 echo $ECHO_N "(cached) $ECHO_C" >&6
12219 ac_check_lib_save_LIBS
=$LIBS
12220 LIBS
="-lXaw3d $LIBS"
12221 cat >conftest.
$ac_ext <<_ACEOF
12224 cat confdefs.h
>>conftest.
$ac_ext
12225 cat >>conftest.
$ac_ext <<_ACEOF
12226 /* end confdefs.h. */
12228 /* Override any GCC internal prototype to avoid an error.
12229 Use char because int might match the return type of a GCC
12230 builtin and then its argument prototype would still apply. */
12234 char XawScrollbarSetThumb ();
12238 return XawScrollbarSetThumb ();
12243 rm -f conftest.
$ac_objext conftest
$ac_exeext
12244 if { (ac_try
="$ac_link"
12245 case "(($ac_try" in
12246 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12247 *) ac_try_echo=$ac_try;;
12249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12250 (eval "$ac_link") 2>conftest.er1
12252 grep -v '^ *+' conftest.er1 >conftest.err
12254 cat conftest.err >&5
12255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256 (exit $ac_status); } && {
12257 test -z "$ac_c_werror_flag" ||
12258 test ! -s conftest.err
12259 } && test -s conftest$ac_exeext &&
12260 $as_test_x conftest$ac_exeext; then
12261 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
12263 echo "$as_me: failed program was:" >&5
12264 sed 's/^/| /' conftest.$ac_ext >&5
12266 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
12269 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12270 conftest$ac_exeext conftest.$ac_ext
12271 LIBS=$ac_check_lib_save_LIBS
12273 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
12274 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
12275 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
12282 if test "${HAVE_XAW3D}" = "yes"; then
12284 cat >>confdefs.h <<\_ACEOF
12285 #define HAVE_XAW3D 1
12294 USE_TOOLKIT_SCROLL_BARS=no
12295 if test "${with_toolkit_scroll_bars}" != "no"; then
12296 if test "${USE_X_TOOLKIT}" != "none"; then
12297 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12298 cat >>confdefs.h <<\_ACEOF
12299 #define USE_TOOLKIT_SCROLL_BARS 1
12303 USE_TOOLKIT_SCROLL_BARS=yes
12304 elif test "${HAVE_XAW3D}" = "yes"; then
12305 cat >>confdefs.h <<\_ACEOF
12306 #define USE_TOOLKIT_SCROLL_BARS 1
12309 USE_TOOLKIT_SCROLL_BARS=yes
12311 elif test "${HAVE_GTK}" = "yes"; then
12312 cat >>confdefs.h <<\_ACEOF
12313 #define USE_TOOLKIT_SCROLL_BARS 1
12316 USE_TOOLKIT_SCROLL_BARS=yes
12317 elif test "${HAVE_CARBON}" = "yes"; then
12318 cat >>confdefs.h <<\_ACEOF
12319 #define USE_TOOLKIT_SCROLL_BARS 1
12322 USE_TOOLKIT_SCROLL_BARS=yes
12326 cat >conftest.$ac_ext <<_ACEOF
12329 cat confdefs.h >>conftest.$ac_ext
12330 cat >>conftest.$ac_ext <<_ACEOF
12331 /* end confdefs.h. */
12333 #include <X11/Xlib.h>
12334 #include <X11/Xresource.h>
12343 rm -f conftest.$ac_objext
12344 if { (ac_try="$ac_compile"
12345 case "(($ac_try" in
12346 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12347 *) ac_try_echo
=$ac_try;;
12349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12350 (eval "$ac_compile") 2>conftest.er1
12352 grep -v '^ *+' conftest.er1
>conftest.err
12354 cat conftest.err
>&5
12355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356 (exit $ac_status); } && {
12357 test -z "$ac_c_werror_flag" ||
12358 test ! -s conftest.err
12359 } && test -s conftest.
$ac_objext; then
12362 cat >>confdefs.h
<<\_ACEOF
12367 echo "$as_me: failed program was:" >&5
12368 sed 's/^/| /' conftest.
$ac_ext >&5
12373 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12376 if test "${with_xim}" != "no"; then
12378 cat >>confdefs.h
<<\_ACEOF
12385 if test "${HAVE_XIM}" != "no"; then
12386 late_CFLAGS
=$CFLAGS
12387 if test "$GCC" = yes; then
12388 CFLAGS
="$CFLAGS --pedantic-errors"
12390 cat >conftest.
$ac_ext <<_ACEOF
12393 cat confdefs.h
>>conftest.
$ac_ext
12394 cat >>conftest.
$ac_ext <<_ACEOF
12395 /* end confdefs.h. */
12397 #include <X11/Xlib.h>
12398 #include <X11/Xresource.h>
12407 XPointer *client_data;
12409 /* If we're not using GCC, it's probably not XFree86, and this is
12410 probably right, but we can't use something like --pedantic-errors. */
12411 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12412 char*, XIMProc, XPointer*);
12414 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12420 rm -f conftest.
$ac_objext
12421 if { (ac_try
="$ac_compile"
12422 case "(($ac_try" in
12423 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12424 *) ac_try_echo=$ac_try;;
12426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12427 (eval "$ac_compile") 2>conftest.er1
12429 grep -v '^ *+' conftest.er1 >conftest.err
12431 cat conftest.err >&5
12432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433 (exit $ac_status); } && {
12434 test -z "$ac_c_werror_flag" ||
12435 test ! -s conftest.err
12436 } && test -s conftest.$ac_objext; then
12437 emacs_cv_arg6_star=yes
12439 echo "$as_me: failed program was:" >&5
12440 sed 's/^/| /' conftest.$ac_ext >&5
12445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12447 if test "$emacs_cv_arg6_star" = yes; then
12448 cat >>confdefs.h <<\_ACEOF
12449 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12453 cat >>confdefs.h <<\_ACEOF
12454 #define XRegisterIMInstantiateCallback_arg6 XPointer
12458 CFLAGS=$late_CFLAGS
12461 ### For font-backend
12462 if test "${USE_FONT_BACKEND}" = "yes"; then
12465 cat >>confdefs.h <<\_ACEOF
12466 #define USE_FONT_BACKEND 1
12470 ### Use -lXft if available, unless `--with-freetype=no
' nor `--with-xft=no'.
12472 if test "${HAVE_X11}" = "yes"; then
12473 if test "x${with_freetype}" = "xno"; then
12476 if test "x${with_xft}" != "xno"; then
12478 if test "X${with_pkg_config_prog}" != X
; then
12479 PKG_CONFIG
="${with_pkg_config_prog}"
12485 if test -z "$PKG_CONFIG"; then
12486 # Extract the first word of "pkg-config", so it can be a program name with args.
12487 set dummy pkg-config
; ac_word
=$2
12488 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12490 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12491 echo $ECHO_N "(cached) $ECHO_C" >&6
12493 case $PKG_CONFIG in
12495 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12498 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12499 for as_dir
in $PATH
12502 test -z "$as_dir" && as_dir
=.
12503 for ac_exec_ext
in '' $ac_executable_extensions; do
12504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12505 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12513 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12517 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12518 if test -n "$PKG_CONFIG"; then
12519 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12520 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12522 { echo "$as_me:$LINENO: result: no" >&5
12523 echo "${ECHO_T}no" >&6; }
12529 if test "$PKG_CONFIG" = "no" ; then
12532 PKG_CONFIG_MIN_VERSION
=0.9.0
12533 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12534 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12535 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12537 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12538 { echo "$as_me:$LINENO: result: yes" >&5
12539 echo "${ECHO_T}yes" >&6; }
12542 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12543 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12544 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12545 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12546 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12548 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12549 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12550 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12551 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12552 echo "${ECHO_T}$XFT_LIBS" >&6; }
12554 { echo "$as_me:$LINENO: result: no" >&5
12555 echo "${ECHO_T}no" >&6; }
12558 ## If we have a custom action on failure, don't print errors, but
12559 ## do set a variable so people can do so.
12560 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12567 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12568 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12572 if test $succeeded = yes; then
12578 if test "$HAVE_XFT" != no
; then
12579 OLD_CPPFLAGS
="$CPPFLAGS"
12580 OLD_CFLAGS
="$CFLAGS"
12582 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
12583 CFLAGS
="$CFLAGS $XFT_CFLAGS"
12584 LIBS
="$XFT_LIBS $LIBS"
12585 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12586 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12587 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12588 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12589 echo $ECHO_N "(cached) $ECHO_C" >&6
12591 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12592 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12594 # Is the header compilable?
12595 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12596 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12597 cat >conftest.
$ac_ext <<_ACEOF
12600 cat confdefs.h
>>conftest.
$ac_ext
12601 cat >>conftest.
$ac_ext <<_ACEOF
12602 /* end confdefs.h. */
12603 $ac_includes_default
12604 #include <X11/Xft/Xft.h>
12606 rm -f conftest.
$ac_objext
12607 if { (ac_try
="$ac_compile"
12608 case "(($ac_try" in
12609 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12610 *) ac_try_echo=$ac_try;;
12612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12613 (eval "$ac_compile") 2>conftest.er1
12615 grep -v '^ *+' conftest.er1 >conftest.err
12617 cat conftest.err >&5
12618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619 (exit $ac_status); } && {
12620 test -z "$ac_c_werror_flag" ||
12621 test ! -s conftest.err
12622 } && test -s conftest.$ac_objext; then
12623 ac_header_compiler=yes
12625 echo "$as_me: failed program was:" >&5
12626 sed 's/^/| /' conftest.$ac_ext >&5
12628 ac_header_compiler=no
12631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12632 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12633 echo "${ECHO_T}$ac_header_compiler" >&6; }
12635 # Is the header present?
12636 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12637 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12638 cat >conftest.$ac_ext <<_ACEOF
12641 cat confdefs.h >>conftest.$ac_ext
12642 cat >>conftest.$ac_ext <<_ACEOF
12643 /* end confdefs.h. */
12644 #include <X11/Xft/Xft.h>
12646 if { (ac_try="$ac_cpp conftest.$ac_ext"
12647 case "(($ac_try" in
12648 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12649 *) ac_try_echo
=$ac_try;;
12651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12652 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12654 grep -v '^ *+' conftest.er1
>conftest.err
12656 cat conftest.err
>&5
12657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658 (exit $ac_status); } >/dev
/null
&& {
12659 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12660 test ! -s conftest.err
12662 ac_header_preproc
=yes
12664 echo "$as_me: failed program was:" >&5
12665 sed 's/^/| /' conftest.
$ac_ext >&5
12667 ac_header_preproc
=no
12670 rm -f conftest.err conftest.
$ac_ext
12671 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12672 echo "${ECHO_T}$ac_header_preproc" >&6; }
12674 # So? What about this header?
12675 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12677 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12678 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12679 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12680 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12681 ac_header_preproc
=yes
12684 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12685 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12686 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12687 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12688 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12689 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12690 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12691 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12692 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12693 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12694 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12695 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12699 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12700 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12701 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12702 echo $ECHO_N "(cached) $ECHO_C" >&6
12704 ac_cv_header_X11_Xft_Xft_h
=$ac_header_preproc
12706 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12707 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12710 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12711 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12712 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12713 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12714 echo $ECHO_N "(cached) $ECHO_C" >&6
12716 ac_check_lib_save_LIBS
=$LIBS
12717 LIBS
="-lXft $XFT_LIBS $LIBS"
12718 cat >conftest.
$ac_ext <<_ACEOF
12721 cat confdefs.h
>>conftest.
$ac_ext
12722 cat >>conftest.
$ac_ext <<_ACEOF
12723 /* end confdefs.h. */
12725 /* Override any GCC internal prototype to avoid an error.
12726 Use char because int might match the return type of a GCC
12727 builtin and then its argument prototype would still apply. */
12731 char XftFontOpen ();
12735 return XftFontOpen ();
12740 rm -f conftest.
$ac_objext conftest
$ac_exeext
12741 if { (ac_try
="$ac_link"
12742 case "(($ac_try" in
12743 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12744 *) ac_try_echo=$ac_try;;
12746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12747 (eval "$ac_link") 2>conftest.er1
12749 grep -v '^ *+' conftest.er1 >conftest.err
12751 cat conftest.err >&5
12752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12753 (exit $ac_status); } && {
12754 test -z "$ac_c_werror_flag" ||
12755 test ! -s conftest.err
12756 } && test -s conftest$ac_exeext &&
12757 $as_test_x conftest$ac_exeext; then
12758 ac_cv_lib_Xft_XftFontOpen=yes
12760 echo "$as_me: failed program was:" >&5
12761 sed 's/^/| /' conftest.$ac_ext >&5
12763 ac_cv_lib_Xft_XftFontOpen=no
12766 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12767 conftest$ac_exeext conftest.$ac_ext
12768 LIBS=$ac_check_lib_save_LIBS
12770 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12771 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12772 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12780 if test "${HAVE_XFT}" = "yes"; then
12782 cat >>confdefs.h <<\_ACEOF
12787 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12789 CFLAGS="$OLD_CPPFLAGS"
12790 CFLAGS="$OLD_CFLAGS"
12798 ### Use -lfreetype if available, unless `--with-freetype=no
'.
12799 if test "${HAVE_XFT}" = "yes"; then
12801 elif test "x${with_freetype}" != "xno"; then
12802 if test "X${with_pkg_config_prog}" != X; then
12803 PKG_CONFIG="${with_pkg_config_prog}"
12809 if test -z "$PKG_CONFIG"; then
12810 # Extract the first word of "pkg-config", so it can be a program name with args.
12811 set dummy pkg-config; ac_word=$2
12812 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12814 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12815 echo $ECHO_N "(cached) $ECHO_C" >&6
12817 case $PKG_CONFIG in
12819 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12823 for as_dir in $PATH
12826 test -z "$as_dir" && as_dir=.
12827 for ac_exec_ext in '' $ac_executable_extensions; do
12828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12829 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12837 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12841 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12842 if test -n "$PKG_CONFIG"; then
12843 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12844 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12846 { echo "$as_me:$LINENO: result: no" >&5
12847 echo "${ECHO_T}no" >&6; }
12853 if test "$PKG_CONFIG" = "no" ; then
12856 PKG_CONFIG_MIN_VERSION=0.9.0
12857 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12858 { echo "$as_me:$LINENO: checking for freetype2" >&5
12859 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6; }
12861 if $PKG_CONFIG --exists "freetype2" 2>&5; then
12862 { echo "$as_me:$LINENO: result: yes" >&5
12863 echo "${ECHO_T}yes" >&6; }
12866 { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
12867 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6; }
12868 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"`
12869 { echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
12870 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; }
12872 { echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
12873 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6; }
12874 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"`
12875 { echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
12876 echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
12878 { echo "$as_me:$LINENO: result: no" >&5
12879 echo "${ECHO_T}no" >&6; }
12882 ## If we have a custom action on failure, don't print errors
, but
12883 ## do set a variable so people can do so.
12884 FREETYPE_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12891 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12892 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12896 if test $succeeded = yes; then
12902 if test "${HAVE_FREETYPE}" = "yes"; then
12906 if test -z "$PKG_CONFIG"; then
12907 # Extract the first word of "pkg-config", so it can be a program name with args.
12908 set dummy pkg-config
; ac_word
=$2
12909 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12911 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12912 echo $ECHO_N "(cached) $ECHO_C" >&6
12914 case $PKG_CONFIG in
12916 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12919 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12920 for as_dir
in $PATH
12923 test -z "$as_dir" && as_dir
=.
12924 for ac_exec_ext
in '' $ac_executable_extensions; do
12925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12926 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12934 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12938 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12939 if test -n "$PKG_CONFIG"; then
12940 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12941 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12943 { echo "$as_me:$LINENO: result: no" >&5
12944 echo "${ECHO_T}no" >&6; }
12950 if test "$PKG_CONFIG" = "no" ; then
12953 PKG_CONFIG_MIN_VERSION
=0.9.0
12954 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12955 { echo "$as_me:$LINENO: checking for fontconfig" >&5
12956 echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6; }
12958 if $PKG_CONFIG --exists "fontconfig" 2>&5; then
12959 { echo "$as_me:$LINENO: result: yes" >&5
12960 echo "${ECHO_T}yes" >&6; }
12963 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
12964 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6; }
12965 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig"`
12966 { echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
12967 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
12969 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
12970 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6; }
12971 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig"`
12972 { echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
12973 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
12975 { echo "$as_me:$LINENO: result: no" >&5
12976 echo "${ECHO_T}no" >&6; }
12977 FONTCONFIG_CFLAGS
=""
12979 ## If we have a custom action on failure, don't print errors, but
12980 ## do set a variable so people can do so.
12981 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
12988 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12989 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12993 if test $succeeded = yes; then
12999 if test "${HAVE_FC}" = "no"; then
13004 if test "${HAVE_FREETYPE}" = "yes"; then
13006 cat >>confdefs.h
<<\_ACEOF
13007 #define HAVE_FREETYPE 1
13010 # Extract the first word of "libotf-config", so it can be a program name with args.
13011 set dummy libotf-config
; ac_word
=$2
13012 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13014 if test "${ac_cv_prog_HAVE_LIBOTF+set}" = set; then
13015 echo $ECHO_N "(cached) $ECHO_C" >&6
13017 if test -n "$HAVE_LIBOTF"; then
13018 ac_cv_prog_HAVE_LIBOTF
="$HAVE_LIBOTF" # Let the user override the test.
13020 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13021 for as_dir
in $PATH
13024 test -z "$as_dir" && as_dir
=.
13025 for ac_exec_ext
in '' $ac_executable_extensions; do
13026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13027 ac_cv_prog_HAVE_LIBOTF
="yes"
13028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13035 test -z "$ac_cv_prog_HAVE_LIBOTF" && ac_cv_prog_HAVE_LIBOTF
="no"
13038 HAVE_LIBOTF
=$ac_cv_prog_HAVE_LIBOTF
13039 if test -n "$HAVE_LIBOTF"; then
13040 { echo "$as_me:$LINENO: result: $HAVE_LIBOTF" >&5
13041 echo "${ECHO_T}$HAVE_LIBOTF" >&6; }
13043 { echo "$as_me:$LINENO: result: no" >&5
13044 echo "${ECHO_T}no" >&6; }
13048 if test "${HAVE_LIBOTF}" = "yes"; then
13050 cat >>confdefs.h
<<\_ACEOF
13051 #define HAVE_LIBOTF 1
13054 LIBOTF_CFLAGS
=`libotf-config --cflags`
13055 LIBOTF_LIBS
=`libotf-config --libs`
13067 ### Use -lXpm if available, unless `--with-xpm=no'.
13069 if test "${HAVE_X11}" = "yes"; then
13070 if test "${with_xpm}" != "no"; then
13071 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13072 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13073 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13074 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13075 echo $ECHO_N "(cached) $ECHO_C" >&6
13077 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13078 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13080 # Is the header compilable?
13081 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13082 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13083 cat >conftest.
$ac_ext <<_ACEOF
13086 cat confdefs.h
>>conftest.
$ac_ext
13087 cat >>conftest.
$ac_ext <<_ACEOF
13088 /* end confdefs.h. */
13089 $ac_includes_default
13090 #include <X11/xpm.h>
13092 rm -f conftest.
$ac_objext
13093 if { (ac_try
="$ac_compile"
13094 case "(($ac_try" in
13095 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13096 *) ac_try_echo=$ac_try;;
13098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13099 (eval "$ac_compile") 2>conftest.er1
13101 grep -v '^ *+' conftest.er1 >conftest.err
13103 cat conftest.err >&5
13104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13105 (exit $ac_status); } && {
13106 test -z "$ac_c_werror_flag" ||
13107 test ! -s conftest.err
13108 } && test -s conftest.$ac_objext; then
13109 ac_header_compiler=yes
13111 echo "$as_me: failed program was:" >&5
13112 sed 's/^/| /' conftest.$ac_ext >&5
13114 ac_header_compiler=no
13117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13118 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13119 echo "${ECHO_T}$ac_header_compiler" >&6; }
13121 # Is the header present?
13122 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13123 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13124 cat >conftest.$ac_ext <<_ACEOF
13127 cat confdefs.h >>conftest.$ac_ext
13128 cat >>conftest.$ac_ext <<_ACEOF
13129 /* end confdefs.h. */
13130 #include <X11/xpm.h>
13132 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev
/null
&& {
13145 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13146 test ! -s conftest.err
13148 ac_header_preproc
=yes
13150 echo "$as_me: failed program was:" >&5
13151 sed 's/^/| /' conftest.
$ac_ext >&5
13153 ac_header_preproc
=no
13156 rm -f conftest.err conftest.
$ac_ext
13157 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13158 echo "${ECHO_T}$ac_header_preproc" >&6; }
13160 # So? What about this header?
13161 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13163 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13164 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13165 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13166 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13167 ac_header_preproc
=yes
13170 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13171 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13172 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13173 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13174 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13175 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13176 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13177 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13178 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13179 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13180 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13181 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13185 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13186 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13187 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13188 echo $ECHO_N "(cached) $ECHO_C" >&6
13190 ac_cv_header_X11_xpm_h
=$ac_header_preproc
13192 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13193 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13196 if test $ac_cv_header_X11_xpm_h = yes; then
13197 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13198 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13199 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13200 echo $ECHO_N "(cached) $ECHO_C" >&6
13202 ac_check_lib_save_LIBS
=$LIBS
13203 LIBS
="-lXpm -lX11 $LIBS"
13204 cat >conftest.
$ac_ext <<_ACEOF
13207 cat confdefs.h
>>conftest.
$ac_ext
13208 cat >>conftest.
$ac_ext <<_ACEOF
13209 /* end confdefs.h. */
13211 /* Override any GCC internal prototype to avoid an error.
13212 Use char because int might match the return type of a GCC
13213 builtin and then its argument prototype would still apply. */
13217 char XpmReadFileToPixmap ();
13221 return XpmReadFileToPixmap ();
13226 rm -f conftest.
$ac_objext conftest
$ac_exeext
13227 if { (ac_try
="$ac_link"
13228 case "(($ac_try" in
13229 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13230 *) ac_try_echo=$ac_try;;
13232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13233 (eval "$ac_link") 2>conftest.er1
13235 grep -v '^ *+' conftest.er1 >conftest.err
13237 cat conftest.err >&5
13238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13239 (exit $ac_status); } && {
13240 test -z "$ac_c_werror_flag" ||
13241 test ! -s conftest.err
13242 } && test -s conftest$ac_exeext &&
13243 $as_test_x conftest$ac_exeext; then
13244 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13246 echo "$as_me: failed program was:" >&5
13247 sed 's/^/| /' conftest.$ac_ext >&5
13249 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13253 conftest$ac_exeext conftest.$ac_ext
13254 LIBS=$ac_check_lib_save_LIBS
13256 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13257 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13258 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13265 if test "${HAVE_XPM}" = "yes"; then
13266 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13267 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13268 cat >conftest.$ac_ext <<_ACEOF
13271 cat confdefs.h >>conftest.$ac_ext
13272 cat >>conftest.$ac_ext <<_ACEOF
13273 /* end confdefs.h. */
13274 #include "X11/xpm.h"
13275 #ifndef XpmReturnAllocPixels
13276 no_return_alloc_pixels
13280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13281 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13289 if test "${HAVE_XPM}" = "yes"; then
13290 { echo "$as_me:$LINENO: result: yes" >&5
13291 echo "${ECHO_T}yes" >&6; }
13293 { echo "$as_me:$LINENO: result: no" >&5
13294 echo "${ECHO_T}no" >&6; }
13299 if test "${HAVE_XPM}" = "yes"; then
13301 cat >>confdefs.h <<\_ACEOF
13308 ### Use -ljpeg if available, unless `--with-jpeg=no
'.
13310 if test "${HAVE_X11}" = "yes"; then
13311 if test "${with_jpeg}" != "no"; then
13312 if test "${ac_cv_header_jerror_h+set}" = set; then
13313 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13314 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13315 if test "${ac_cv_header_jerror_h+set}" = set; then
13316 echo $ECHO_N "(cached) $ECHO_C" >&6
13318 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13319 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13321 # Is the header compilable?
13322 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13323 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13324 cat >conftest.$ac_ext <<_ACEOF
13327 cat confdefs.h >>conftest.$ac_ext
13328 cat >>conftest.$ac_ext <<_ACEOF
13329 /* end confdefs.h. */
13330 $ac_includes_default
13331 #include <jerror.h>
13333 rm -f conftest.$ac_objext
13334 if { (ac_try="$ac_compile"
13335 case "(($ac_try" in
13336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13337 *) ac_try_echo=$ac_try;;
13339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13340 (eval "$ac_compile") 2>conftest.er1
13342 grep -v '^
*+' conftest.er1 >conftest.err
13344 cat conftest.err >&5
13345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13346 (exit $ac_status); } && {
13347 test -z "$ac_c_werror_flag" ||
13348 test ! -s conftest.err
13349 } && test -s conftest.$ac_objext; then
13350 ac_header_compiler=yes
13352 echo "$as_me: failed program was:" >&5
13353 sed 's
/^
/|
/' conftest.$ac_ext >&5
13355 ac_header_compiler=no
13358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13359 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13360 echo "${ECHO_T}$ac_header_compiler" >&6; }
13362 # Is the header present?
13363 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13364 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13365 cat >conftest.$ac_ext <<_ACEOF
13368 cat confdefs.h >>conftest.$ac_ext
13369 cat >>conftest.$ac_ext <<_ACEOF
13370 /* end confdefs.h. */
13371 #include <jerror.h>
13373 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
13386 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13387 test ! -s conftest.err
13389 ac_header_preproc=yes
13391 echo "$as_me: failed program was:" >&5
13392 sed 's
/^
/|
/' conftest.$ac_ext >&5
13394 ac_header_preproc=no
13397 rm -f conftest.err conftest.$ac_ext
13398 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13399 echo "${ECHO_T}$ac_header_preproc" >&6; }
13401 # So? What about this header?
13402 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13404 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13405 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13406 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result
" >&5
13407 echo "$as_me: WARNING
: jerror.h
: proceeding with the compiler
's result" >&2;}
13408 ac_header_preproc=yes
13411 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13412 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13413 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13414 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13415 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13416 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13417 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13418 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13419 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result
" >&5
13420 echo "$as_me: WARNING
: jerror.h
: proceeding with the preprocessor
's result" >&2;}
13421 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13422 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13426 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13427 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13428 if test "${ac_cv_header_jerror_h+set}" = set; then
13429 echo $ECHO_N "(cached) $ECHO_C" >&6
13431 ac_cv_header_jerror_h=$ac_header_preproc
13433 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13434 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13437 if test $ac_cv_header_jerror_h = yes; then
13438 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13439 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13440 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13441 echo $ECHO_N "(cached) $ECHO_C" >&6
13443 ac_check_lib_save_LIBS=$LIBS
13444 LIBS="-ljpeg $LIBS"
13445 cat >conftest.$ac_ext <<_ACEOF
13448 cat confdefs.h >>conftest.$ac_ext
13449 cat >>conftest.$ac_ext <<_ACEOF
13450 /* end confdefs.h. */
13452 /* Override any GCC internal prototype to avoid an error.
13453 Use char because int might match the return type of a GCC
13454 builtin and then its argument prototype would still apply. */
13458 char jpeg_destroy_compress ();
13462 return jpeg_destroy_compress ();
13467 rm -f conftest.$ac_objext conftest$ac_exeext
13468 if { (ac_try="$ac_link"
13469 case "(($ac_try" in
13470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13471 *) ac_try_echo=$ac_try;;
13473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13474 (eval "$ac_link") 2>conftest.er1
13476 grep -v '^
*+' conftest.er1 >conftest.err
13478 cat conftest.err >&5
13479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13480 (exit $ac_status); } && {
13481 test -z "$ac_c_werror_flag" ||
13482 test ! -s conftest.err
13483 } && test -s conftest$ac_exeext &&
13484 $as_test_x conftest$ac_exeext; then
13485 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13487 echo "$as_me: failed program was:" >&5
13488 sed 's
/^
/|
/' conftest.$ac_ext >&5
13490 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13494 conftest$ac_exeext conftest.$ac_ext
13495 LIBS=$ac_check_lib_save_LIBS
13497 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13498 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13499 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13509 if test "${HAVE_JPEG}" = "yes"; then
13510 cat >>confdefs.h <<\_ACEOF
13511 #define HAVE_JPEG 1
13514 cat >conftest.$ac_ext <<_ACEOF
13517 cat confdefs.h >>conftest.$ac_ext
13518 cat >>conftest.$ac_ext <<_ACEOF
13519 /* end confdefs.h. */
13520 #include <jpeglib.h>
13521 version=JPEG_LIB_VERSION
13524 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13525 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13526 cat >>confdefs.h <<\_ACEOF
13527 #define HAVE_JPEG 1
13531 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13532 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13540 ### Use -lpng if available, unless `--with-png=no'.
13542 if test "${HAVE_X11}" = "yes"; then
13543 if test "${with_png}" != "no"; then
13544 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13545 # in /usr/include/libpng.
13548 for ac_header
in png.h libpng
/png.h
13550 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13551 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13552 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13554 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13555 echo $ECHO_N "(cached) $ECHO_C" >&6
13557 ac_res
=`eval echo '${'$as_ac_Header'}'`
13558 { echo "$as_me:$LINENO: result: $ac_res" >&5
13559 echo "${ECHO_T}$ac_res" >&6; }
13561 # Is the header compilable?
13562 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13563 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13564 cat >conftest.
$ac_ext <<_ACEOF
13567 cat confdefs.h
>>conftest.
$ac_ext
13568 cat >>conftest.
$ac_ext <<_ACEOF
13569 /* end confdefs.h. */
13570 $ac_includes_default
13571 #include <$ac_header>
13573 rm -f conftest.
$ac_objext
13574 if { (ac_try
="$ac_compile"
13575 case "(($ac_try" in
13576 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13577 *) ac_try_echo=$ac_try;;
13579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13580 (eval "$ac_compile") 2>conftest.er1
13582 grep -v '^ *+' conftest.er1 >conftest.err
13584 cat conftest.err >&5
13585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586 (exit $ac_status); } && {
13587 test -z "$ac_c_werror_flag" ||
13588 test ! -s conftest.err
13589 } && test -s conftest.$ac_objext; then
13590 ac_header_compiler=yes
13592 echo "$as_me: failed program was:" >&5
13593 sed 's/^/| /' conftest.$ac_ext >&5
13595 ac_header_compiler=no
13598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13599 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13600 echo "${ECHO_T}$ac_header_compiler" >&6; }
13602 # Is the header present?
13603 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13604 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13605 cat >conftest.$ac_ext <<_ACEOF
13608 cat confdefs.h >>conftest.$ac_ext
13609 cat >>conftest.$ac_ext <<_ACEOF
13610 /* end confdefs.h. */
13611 #include <$ac_header>
13613 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev
/null
&& {
13626 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13627 test ! -s conftest.err
13629 ac_header_preproc
=yes
13631 echo "$as_me: failed program was:" >&5
13632 sed 's/^/| /' conftest.
$ac_ext >&5
13634 ac_header_preproc
=no
13637 rm -f conftest.err conftest.
$ac_ext
13638 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13639 echo "${ECHO_T}$ac_header_preproc" >&6; }
13641 # So? What about this header?
13642 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13644 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13645 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13646 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13647 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13648 ac_header_preproc
=yes
13651 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13652 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13653 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13654 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13655 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13656 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13657 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13658 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13659 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13660 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13661 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13662 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13666 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13667 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13668 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13669 echo $ECHO_N "(cached) $ECHO_C" >&6
13671 eval "$as_ac_Header=\$ac_header_preproc"
13673 ac_res
=`eval echo '${'$as_ac_Header'}'`
13674 { echo "$as_me:$LINENO: result: $ac_res" >&5
13675 echo "${ECHO_T}$ac_res" >&6; }
13678 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13679 cat >>confdefs.h
<<_ACEOF
13680 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13687 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
13688 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13689 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13690 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13691 echo $ECHO_N "(cached) $ECHO_C" >&6
13693 ac_check_lib_save_LIBS
=$LIBS
13694 LIBS
="-lpng -lz -lm $LIBS"
13695 cat >conftest.
$ac_ext <<_ACEOF
13698 cat confdefs.h
>>conftest.
$ac_ext
13699 cat >>conftest.
$ac_ext <<_ACEOF
13700 /* end confdefs.h. */
13702 /* Override any GCC internal prototype to avoid an error.
13703 Use char because int might match the return type of a GCC
13704 builtin and then its argument prototype would still apply. */
13708 char png_get_channels ();
13712 return png_get_channels ();
13717 rm -f conftest.
$ac_objext conftest
$ac_exeext
13718 if { (ac_try
="$ac_link"
13719 case "(($ac_try" in
13720 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13721 *) ac_try_echo=$ac_try;;
13723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13724 (eval "$ac_link") 2>conftest.er1
13726 grep -v '^ *+' conftest.er1 >conftest.err
13728 cat conftest.err >&5
13729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13730 (exit $ac_status); } && {
13731 test -z "$ac_c_werror_flag" ||
13732 test ! -s conftest.err
13733 } && test -s conftest$ac_exeext &&
13734 $as_test_x conftest$ac_exeext; then
13735 ac_cv_lib_png_png_get_channels=yes
13737 echo "$as_me: failed program was:" >&5
13738 sed 's/^/| /' conftest.$ac_ext >&5
13740 ac_cv_lib_png_png_get_channels=no
13743 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13744 conftest$ac_exeext conftest.$ac_ext
13745 LIBS=$ac_check_lib_save_LIBS
13747 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13748 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13749 if test $ac_cv_lib_png_png_get_channels = yes; then
13756 if test "${HAVE_PNG}" = "yes"; then
13758 cat >>confdefs.h <<\_ACEOF
13765 ### Use -ltiff if available, unless `--with-tiff=no
'.
13767 if test "${HAVE_X11}" = "yes"; then
13768 if test "${with_tiff}" != "no"; then
13769 if test "${ac_cv_header_tiffio_h+set}" = set; then
13770 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13771 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13772 if test "${ac_cv_header_tiffio_h+set}" = set; then
13773 echo $ECHO_N "(cached) $ECHO_C" >&6
13775 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13776 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13778 # Is the header compilable?
13779 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13780 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13781 cat >conftest.$ac_ext <<_ACEOF
13784 cat confdefs.h >>conftest.$ac_ext
13785 cat >>conftest.$ac_ext <<_ACEOF
13786 /* end confdefs.h. */
13787 $ac_includes_default
13788 #include <tiffio.h>
13790 rm -f conftest.$ac_objext
13791 if { (ac_try="$ac_compile"
13792 case "(($ac_try" in
13793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13794 *) ac_try_echo=$ac_try;;
13796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13797 (eval "$ac_compile") 2>conftest.er1
13799 grep -v '^
*+' conftest.er1 >conftest.err
13801 cat conftest.err >&5
13802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803 (exit $ac_status); } && {
13804 test -z "$ac_c_werror_flag" ||
13805 test ! -s conftest.err
13806 } && test -s conftest.$ac_objext; then
13807 ac_header_compiler=yes
13809 echo "$as_me: failed program was:" >&5
13810 sed 's
/^
/|
/' conftest.$ac_ext >&5
13812 ac_header_compiler=no
13815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13816 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13817 echo "${ECHO_T}$ac_header_compiler" >&6; }
13819 # Is the header present?
13820 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13821 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13822 cat >conftest.$ac_ext <<_ACEOF
13825 cat confdefs.h >>conftest.$ac_ext
13826 cat >>conftest.$ac_ext <<_ACEOF
13827 /* end confdefs.h. */
13828 #include <tiffio.h>
13830 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
13843 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13844 test ! -s conftest.err
13846 ac_header_preproc=yes
13848 echo "$as_me: failed program was:" >&5
13849 sed 's
/^
/|
/' conftest.$ac_ext >&5
13851 ac_header_preproc=no
13854 rm -f conftest.err conftest.$ac_ext
13855 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13856 echo "${ECHO_T}$ac_header_preproc" >&6; }
13858 # So? What about this header?
13859 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13861 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13862 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13863 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result
" >&5
13864 echo "$as_me: WARNING
: tiffio.h
: proceeding with the compiler
's result" >&2;}
13865 ac_header_preproc=yes
13868 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13869 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13870 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13871 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13872 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13873 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13874 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13875 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13876 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result
" >&5
13877 echo "$as_me: WARNING
: tiffio.h
: proceeding with the preprocessor
's result" >&2;}
13878 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13879 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13883 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13884 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13885 if test "${ac_cv_header_tiffio_h+set}" = set; then
13886 echo $ECHO_N "(cached) $ECHO_C" >&6
13888 ac_cv_header_tiffio_h=$ac_header_preproc
13890 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13891 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13894 if test $ac_cv_header_tiffio_h = yes; then
13896 # At least one tiff package requires the jpeg library.
13897 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13898 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
13899 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
13900 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
13901 echo $ECHO_N "(cached) $ECHO_C" >&6
13903 ac_check_lib_save_LIBS=$LIBS
13904 LIBS="-ltiff $tifflibs $LIBS"
13905 cat >conftest.$ac_ext <<_ACEOF
13908 cat confdefs.h >>conftest.$ac_ext
13909 cat >>conftest.$ac_ext <<_ACEOF
13910 /* end confdefs.h. */
13912 /* Override any GCC internal prototype to avoid an error.
13913 Use char because int might match the return type of a GCC
13914 builtin and then its argument prototype would still apply. */
13918 char TIFFGetVersion ();
13922 return TIFFGetVersion ();
13927 rm -f conftest.$ac_objext conftest$ac_exeext
13928 if { (ac_try="$ac_link"
13929 case "(($ac_try" in
13930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13931 *) ac_try_echo=$ac_try;;
13933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13934 (eval "$ac_link") 2>conftest.er1
13936 grep -v '^
*+' conftest.er1 >conftest.err
13938 cat conftest.err >&5
13939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13940 (exit $ac_status); } && {
13941 test -z "$ac_c_werror_flag" ||
13942 test ! -s conftest.err
13943 } && test -s conftest$ac_exeext &&
13944 $as_test_x conftest$ac_exeext; then
13945 ac_cv_lib_tiff_TIFFGetVersion=yes
13947 echo "$as_me: failed program was:" >&5
13948 sed 's
/^
/|
/' conftest.$ac_ext >&5
13950 ac_cv_lib_tiff_TIFFGetVersion=no
13953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13954 conftest$ac_exeext conftest.$ac_ext
13955 LIBS=$ac_check_lib_save_LIBS
13957 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13958 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13959 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
13968 if test "${HAVE_TIFF}" = "yes"; then
13970 cat >>confdefs.h <<\_ACEOF
13971 #define HAVE_TIFF 1
13977 ### Use -lgif if available, unless `--with-gif=no'.
13979 if test "${HAVE_X11}" = "yes"; then
13980 if test "${with_gif}" != "no"; then
13981 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13982 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13983 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13984 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13985 echo $ECHO_N "(cached) $ECHO_C" >&6
13987 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13988 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13990 # Is the header compilable?
13991 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
13992 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
13993 cat >conftest.
$ac_ext <<_ACEOF
13996 cat confdefs.h
>>conftest.
$ac_ext
13997 cat >>conftest.
$ac_ext <<_ACEOF
13998 /* end confdefs.h. */
13999 $ac_includes_default
14000 #include <gif_lib.h>
14002 rm -f conftest.
$ac_objext
14003 if { (ac_try
="$ac_compile"
14004 case "(($ac_try" in
14005 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14006 *) ac_try_echo=$ac_try;;
14008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14009 (eval "$ac_compile") 2>conftest.er1
14011 grep -v '^ *+' conftest.er1 >conftest.err
14013 cat conftest.err >&5
14014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14015 (exit $ac_status); } && {
14016 test -z "$ac_c_werror_flag" ||
14017 test ! -s conftest.err
14018 } && test -s conftest.$ac_objext; then
14019 ac_header_compiler=yes
14021 echo "$as_me: failed program was:" >&5
14022 sed 's/^/| /' conftest.$ac_ext >&5
14024 ac_header_compiler=no
14027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14028 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14029 echo "${ECHO_T}$ac_header_compiler" >&6; }
14031 # Is the header present?
14032 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14033 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14034 cat >conftest.$ac_ext <<_ACEOF
14037 cat confdefs.h >>conftest.$ac_ext
14038 cat >>conftest.$ac_ext <<_ACEOF
14039 /* end confdefs.h. */
14040 #include <gif_lib.h>
14042 if { (ac_try="$ac_cpp conftest.$ac_ext"
14043 case "(($ac_try" in
14044 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14045 *) ac_try_echo
=$ac_try;;
14047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14048 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14050 grep -v '^ *+' conftest.er1
>conftest.err
14052 cat conftest.err
>&5
14053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14054 (exit $ac_status); } >/dev
/null
&& {
14055 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14056 test ! -s conftest.err
14058 ac_header_preproc
=yes
14060 echo "$as_me: failed program was:" >&5
14061 sed 's/^/| /' conftest.
$ac_ext >&5
14063 ac_header_preproc
=no
14066 rm -f conftest.err conftest.
$ac_ext
14067 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14068 echo "${ECHO_T}$ac_header_preproc" >&6; }
14070 # So? What about this header?
14071 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14073 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14074 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14075 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14076 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14077 ac_header_preproc
=yes
14080 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14081 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14082 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14083 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14084 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14085 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14086 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14087 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14088 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14089 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14090 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14091 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14095 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14096 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14097 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14098 echo $ECHO_N "(cached) $ECHO_C" >&6
14100 ac_cv_header_gif_lib_h
=$ac_header_preproc
14102 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14103 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14106 if test $ac_cv_header_gif_lib_h = yes; then
14107 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14108 # Earlier versions can crash Emacs.
14109 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14110 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14111 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14112 echo $ECHO_N "(cached) $ECHO_C" >&6
14114 ac_check_lib_save_LIBS
=$LIBS
14115 LIBS
="-lungif $LIBS"
14116 cat >conftest.
$ac_ext <<_ACEOF
14119 cat confdefs.h
>>conftest.
$ac_ext
14120 cat >>conftest.
$ac_ext <<_ACEOF
14121 /* end confdefs.h. */
14123 /* Override any GCC internal prototype to avoid an error.
14124 Use char because int might match the return type of a GCC
14125 builtin and then its argument prototype would still apply. */
14129 char EGifPutExtensionLast ();
14133 return EGifPutExtensionLast ();
14138 rm -f conftest.
$ac_objext conftest
$ac_exeext
14139 if { (ac_try
="$ac_link"
14140 case "(($ac_try" in
14141 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14142 *) ac_try_echo=$ac_try;;
14144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14145 (eval "$ac_link") 2>conftest.er1
14147 grep -v '^ *+' conftest.er1 >conftest.err
14149 cat conftest.err >&5
14150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14151 (exit $ac_status); } && {
14152 test -z "$ac_c_werror_flag" ||
14153 test ! -s conftest.err
14154 } && test -s conftest$ac_exeext &&
14155 $as_test_x conftest$ac_exeext; then
14156 ac_cv_lib_ungif_EGifPutExtensionLast=yes
14158 echo "$as_me: failed program was:" >&5
14159 sed 's/^/| /' conftest.$ac_ext >&5
14161 ac_cv_lib_ungif_EGifPutExtensionLast=no
14164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14165 conftest$ac_exeext conftest.$ac_ext
14166 LIBS=$ac_check_lib_save_LIBS
14168 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14169 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14170 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14179 if test "${HAVE_GIF}" = "yes"; then
14181 cat >>confdefs.h <<\_ACEOF
14188 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14189 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14190 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14191 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14192 echo $ECHO_N "(cached) $ECHO_C" >&6
14194 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14195 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14197 # Is the header compilable?
14198 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14199 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14200 cat >conftest.$ac_ext <<_ACEOF
14203 cat confdefs.h >>conftest.$ac_ext
14204 cat >>conftest.$ac_ext <<_ACEOF
14205 /* end confdefs.h. */
14206 $ac_includes_default
14207 #include <malloc/malloc.h>
14209 rm -f conftest.$ac_objext
14210 if { (ac_try="$ac_compile"
14211 case "(($ac_try" in
14212 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14213 *) ac_try_echo
=$ac_try;;
14215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14216 (eval "$ac_compile") 2>conftest.er1
14218 grep -v '^ *+' conftest.er1
>conftest.err
14220 cat conftest.err
>&5
14221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14222 (exit $ac_status); } && {
14223 test -z "$ac_c_werror_flag" ||
14224 test ! -s conftest.err
14225 } && test -s conftest.
$ac_objext; then
14226 ac_header_compiler
=yes
14228 echo "$as_me: failed program was:" >&5
14229 sed 's/^/| /' conftest.
$ac_ext >&5
14231 ac_header_compiler
=no
14234 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14235 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14236 echo "${ECHO_T}$ac_header_compiler" >&6; }
14238 # Is the header present?
14239 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14240 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14241 cat >conftest.
$ac_ext <<_ACEOF
14244 cat confdefs.h
>>conftest.
$ac_ext
14245 cat >>conftest.
$ac_ext <<_ACEOF
14246 /* end confdefs.h. */
14247 #include <malloc/malloc.h>
14249 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14250 case "(($ac_try" in
14251 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14252 *) ac_try_echo=$ac_try;;
14254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14255 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14257 grep -v '^ *+' conftest.er1 >conftest.err
14259 cat conftest.err >&5
14260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14261 (exit $ac_status); } >/dev/null && {
14262 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14263 test ! -s conftest.err
14265 ac_header_preproc=yes
14267 echo "$as_me: failed program was:" >&5
14268 sed 's/^/| /' conftest.$ac_ext >&5
14270 ac_header_preproc=no
14273 rm -f conftest.err conftest.$ac_ext
14274 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14275 echo "${ECHO_T}$ac_header_preproc" >&6; }
14277 # So? What about this header?
14278 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14280 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14281 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14282 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14283 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14284 ac_header_preproc=yes
14287 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14288 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14289 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14290 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14291 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14292 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14293 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14294 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14295 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14296 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14297 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14298 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14302 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14303 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14304 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14305 echo $ECHO_N "(cached) $ECHO_C" >&6
14307 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14309 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14310 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14313 if test $ac_cv_header_malloc_malloc_h = yes; then
14315 cat >>confdefs.h <<\_ACEOF
14316 #define HAVE_MALLOC_MALLOC_H 1
14323 ### Use Mac OS X Carbon API to implement GUI.
14324 if test "${HAVE_CARBON}" = "yes"; then
14326 cat >>confdefs.h <<\_ACEOF
14327 #define HAVE_CARBON 1
14330 ## Specify the install directory
14332 if test "${carbon_appdir_x}" != ""; then
14333 case ${carbon_appdir_x} in
14334 y | ye | yes) carbon_appdir=/Applications ;;
14335 * ) carbon_appdir=${carbon_appdir_x} ;;
14338 # We also have mouse menus.
14342 ### Use session management (-lSM -lICE) if available
14344 if test "${HAVE_X11}" = "yes"; then
14345 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14346 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14347 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14348 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14349 echo $ECHO_N "(cached) $ECHO_C" >&6
14351 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14352 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14354 # Is the header compilable?
14355 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14356 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14357 cat >conftest.$ac_ext <<_ACEOF
14360 cat confdefs.h >>conftest.$ac_ext
14361 cat >>conftest.$ac_ext <<_ACEOF
14362 /* end confdefs.h. */
14363 $ac_includes_default
14364 #include <X11/SM/SMlib.h>
14366 rm -f conftest.$ac_objext
14367 if { (ac_try="$ac_compile"
14368 case "(($ac_try" in
14369 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14370 *) ac_try_echo
=$ac_try;;
14372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14373 (eval "$ac_compile") 2>conftest.er1
14375 grep -v '^ *+' conftest.er1
>conftest.err
14377 cat conftest.err
>&5
14378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14379 (exit $ac_status); } && {
14380 test -z "$ac_c_werror_flag" ||
14381 test ! -s conftest.err
14382 } && test -s conftest.
$ac_objext; then
14383 ac_header_compiler
=yes
14385 echo "$as_me: failed program was:" >&5
14386 sed 's/^/| /' conftest.
$ac_ext >&5
14388 ac_header_compiler
=no
14391 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14392 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14393 echo "${ECHO_T}$ac_header_compiler" >&6; }
14395 # Is the header present?
14396 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14397 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14398 cat >conftest.
$ac_ext <<_ACEOF
14401 cat confdefs.h
>>conftest.
$ac_ext
14402 cat >>conftest.
$ac_ext <<_ACEOF
14403 /* end confdefs.h. */
14404 #include <X11/SM/SMlib.h>
14406 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14407 case "(($ac_try" in
14408 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14409 *) ac_try_echo=$ac_try;;
14411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14412 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14414 grep -v '^ *+' conftest.er1 >conftest.err
14416 cat conftest.err >&5
14417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418 (exit $ac_status); } >/dev/null && {
14419 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14420 test ! -s conftest.err
14422 ac_header_preproc=yes
14424 echo "$as_me: failed program was:" >&5
14425 sed 's/^/| /' conftest.$ac_ext >&5
14427 ac_header_preproc=no
14430 rm -f conftest.err conftest.$ac_ext
14431 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14432 echo "${ECHO_T}$ac_header_preproc" >&6; }
14434 # So? What about this header?
14435 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14437 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14438 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14439 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14440 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14441 ac_header_preproc=yes
14444 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14445 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14446 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14447 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14448 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14449 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14450 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14451 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14452 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14453 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14454 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14455 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14459 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14460 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14461 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14462 echo $ECHO_N "(cached) $ECHO_C" >&6
14464 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14466 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14467 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14470 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14471 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14472 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14473 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14474 echo $ECHO_N "(cached) $ECHO_C" >&6
14476 ac_check_lib_save_LIBS=$LIBS
14477 LIBS="-lSM -lICE $LIBS"
14478 cat >conftest.$ac_ext <<_ACEOF
14481 cat confdefs.h >>conftest.$ac_ext
14482 cat >>conftest.$ac_ext <<_ACEOF
14483 /* end confdefs.h. */
14485 /* Override any GCC internal prototype to avoid an error.
14486 Use char because int might match the return type of a GCC
14487 builtin and then its argument prototype would still apply. */
14491 char SmcOpenConnection ();
14495 return SmcOpenConnection ();
14500 rm -f conftest.$ac_objext conftest$ac_exeext
14501 if { (ac_try="$ac_link"
14502 case "(($ac_try" in
14503 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14504 *) ac_try_echo
=$ac_try;;
14506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14507 (eval "$ac_link") 2>conftest.er1
14509 grep -v '^ *+' conftest.er1
>conftest.err
14511 cat conftest.err
>&5
14512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14513 (exit $ac_status); } && {
14514 test -z "$ac_c_werror_flag" ||
14515 test ! -s conftest.err
14516 } && test -s conftest
$ac_exeext &&
14517 $as_test_x conftest
$ac_exeext; then
14518 ac_cv_lib_SM_SmcOpenConnection
=yes
14520 echo "$as_me: failed program was:" >&5
14521 sed 's/^/| /' conftest.
$ac_ext >&5
14523 ac_cv_lib_SM_SmcOpenConnection
=no
14526 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14527 conftest
$ac_exeext conftest.
$ac_ext
14528 LIBS
=$ac_check_lib_save_LIBS
14530 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14531 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14532 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14540 if test "${HAVE_X_SM}" = "yes"; then
14542 cat >>confdefs.h
<<\_ACEOF
14543 #define HAVE_X_SM 1
14548 *) LIBS
="-lSM -lICE $LIBS" ;;
14553 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14554 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14555 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14556 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14557 echo $ECHO_N "(cached) $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. */
14574 rm -f conftest.
$ac_objext conftest
$ac_exeext
14575 if { (ac_try
="$ac_link"
14576 case "(($ac_try" in
14577 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14578 *) ac_try_echo=$ac_try;;
14580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14581 (eval "$ac_link") 2>conftest.er1
14583 grep -v '^ *+' conftest.er1 >conftest.err
14585 cat conftest.err >&5
14586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14587 (exit $ac_status); } && {
14588 test -z "$ac_c_werror_flag" ||
14589 test ! -s conftest.err
14590 } && test -s conftest$ac_exeext &&
14591 $as_test_x conftest$ac_exeext; then
14592 emacs_cv_netdb_declares_h_errno=yes
14594 echo "$as_me: failed program was:" >&5
14595 sed 's/^/| /' conftest.$ac_ext >&5
14597 emacs_cv_netdb_declares_h_errno=no
14600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14601 conftest$ac_exeext conftest.$ac_ext
14603 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
14604 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
14605 if test $emacs_cv_netdb_declares_h_errno = yes; then
14607 cat >>confdefs.h <<\_ACEOF
14608 #define HAVE_H_ERRNO 1
14613 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14614 # for constant arguments. Useless!
14615 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
14616 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
14617 if test "${ac_cv_working_alloca_h+set}" = set; then
14618 echo $ECHO_N "(cached) $ECHO_C" >&6
14620 cat >conftest.$ac_ext <<_ACEOF
14623 cat confdefs.h >>conftest.$ac_ext
14624 cat >>conftest.$ac_ext <<_ACEOF
14625 /* end confdefs.h. */
14626 #include <alloca.h>
14630 char *p = (char *) alloca (2 * sizeof (int));
14636 rm -f conftest.$ac_objext conftest$ac_exeext
14637 if { (ac_try="$ac_link"
14638 case "(($ac_try" in
14639 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14640 *) ac_try_echo
=$ac_try;;
14642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14643 (eval "$ac_link") 2>conftest.er1
14645 grep -v '^ *+' conftest.er1
>conftest.err
14647 cat conftest.err
>&5
14648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14649 (exit $ac_status); } && {
14650 test -z "$ac_c_werror_flag" ||
14651 test ! -s conftest.err
14652 } && test -s conftest
$ac_exeext &&
14653 $as_test_x conftest
$ac_exeext; then
14654 ac_cv_working_alloca_h
=yes
14656 echo "$as_me: failed program was:" >&5
14657 sed 's/^/| /' conftest.
$ac_ext >&5
14659 ac_cv_working_alloca_h
=no
14662 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14663 conftest
$ac_exeext conftest.
$ac_ext
14665 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14666 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
14667 if test $ac_cv_working_alloca_h = yes; then
14669 cat >>confdefs.h
<<\_ACEOF
14670 #define HAVE_ALLOCA_H 1
14675 { echo "$as_me:$LINENO: checking for alloca" >&5
14676 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
14677 if test "${ac_cv_func_alloca_works+set}" = set; then
14678 echo $ECHO_N "(cached) $ECHO_C" >&6
14680 cat >conftest.
$ac_ext <<_ACEOF
14683 cat confdefs.h
>>conftest.
$ac_ext
14684 cat >>conftest.
$ac_ext <<_ACEOF
14685 /* end confdefs.h. */
14687 # define alloca __builtin_alloca
14690 # include <malloc.h>
14691 # define alloca _alloca
14693 # ifdef HAVE_ALLOCA_H
14694 # include <alloca.h>
14699 # ifndef alloca /* predefined by HP cc +Olibcalls */
14710 char *p = (char *) alloca (1);
14716 rm -f conftest.
$ac_objext conftest
$ac_exeext
14717 if { (ac_try
="$ac_link"
14718 case "(($ac_try" in
14719 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14720 *) ac_try_echo=$ac_try;;
14722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14723 (eval "$ac_link") 2>conftest.er1
14725 grep -v '^ *+' conftest.er1 >conftest.err
14727 cat conftest.err >&5
14728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14729 (exit $ac_status); } && {
14730 test -z "$ac_c_werror_flag" ||
14731 test ! -s conftest.err
14732 } && test -s conftest$ac_exeext &&
14733 $as_test_x conftest$ac_exeext; then
14734 ac_cv_func_alloca_works=yes
14736 echo "$as_me: failed program was:" >&5
14737 sed 's/^/| /' conftest.$ac_ext >&5
14739 ac_cv_func_alloca_works=no
14742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14743 conftest$ac_exeext conftest.$ac_ext
14745 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14746 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
14748 if test $ac_cv_func_alloca_works = yes; then
14750 cat >>confdefs.h <<\_ACEOF
14751 #define HAVE_ALLOCA 1
14755 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14756 # that cause trouble. Some versions do not even contain alloca or
14757 # contain a buggy version. If you still want to use their alloca,
14758 # use ar to extract alloca.o from them instead of compiling alloca.c.
14760 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
14762 cat >>confdefs.h <<\_ACEOF
14767 { echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
14768 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks...
$ECHO_C" >&6; }
14769 if test "${ac_cv_os_cray+set}" = set; then
14770 echo $ECHO_N "(cached
) $ECHO_C" >&6
14772 cat >conftest.$ac_ext <<_ACEOF
14775 cat confdefs.h >>conftest.$ac_ext
14776 cat >>conftest.$ac_ext <<_ACEOF
14777 /* end confdefs.h. */
14778 #if defined CRAY && ! defined CRAY2
14785 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
14786 $EGREP "webecray
" >/dev/null 2>&1; then
14794 { echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
14795 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
14796 if test $ac_cv_os_cray = yes; then
14797 for ac_func in _getb67 GETB67 getb67; do
14798 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
14799 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
14800 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
14801 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
14802 echo $ECHO_N "(cached
) $ECHO_C" >&6
14804 cat >conftest.$ac_ext <<_ACEOF
14807 cat confdefs.h >>conftest.$ac_ext
14808 cat >>conftest.$ac_ext <<_ACEOF
14809 /* end confdefs.h. */
14810 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14811 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14812 #define $ac_func innocuous_$ac_func
14814 /* System header to define __stub macros and hopefully few prototypes,
14815 which can conflict with char $ac_func (); below.
14816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14817 <limits.h> exists even on freestanding compilers. */
14820 # include <limits.h>
14822 # include <assert.h>
14827 /* Override any GCC internal prototype to avoid an error.
14828 Use char because int might match the return type of a GCC
14829 builtin and then its argument prototype would still apply. */
14834 /* The GNU C library defines this for functions which it implements
14835 to always fail with ENOSYS. Some functions are actually named
14836 something starting with __ and the normal name is an alias. */
14837 #if defined __stub_$ac_func || defined __stub___$ac_func
14844 return $ac_func ();
14849 rm -f conftest.$ac_objext conftest$ac_exeext
14850 if { (ac_try="$ac_link"
14851 case "(($ac_try" in
14852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14853 *) ac_try_echo=$ac_try;;
14855 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14856 (eval "$ac_link") 2>conftest.er1
14858 grep -v '^ *+' conftest.er1 >conftest.err
14860 cat conftest.err >&5
14861 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14862 (exit $ac_status); } && {
14863 test -z "$ac_c_werror_flag" ||
14864 test ! -s conftest.err
14865 } && test -s conftest$ac_exeext &&
14866 $as_test_x conftest$ac_exeext; then
14867 eval "$as_ac_var=yes"
14869 echo "$as_me: failed program was
:" >&5
14870 sed 's/^/| /' conftest.$ac_ext >&5
14872 eval "$as_ac_var=no
"
14875 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14876 conftest$ac_exeext conftest.$ac_ext
14878 ac_res=`eval echo '${'$as_ac_var'}'`
14879 { echo "$as_me:$LINENO: result
: $ac_res" >&5
14880 echo "${ECHO_T}$ac_res" >&6; }
14881 if test `eval echo '${'$as_ac_var'}'` = yes; then
14883 cat >>confdefs.h <<_ACEOF
14884 #define CRAY_STACKSEG_END $ac_func
14893 { echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
14894 echo $ECHO_N "checking stack direction
for C alloca...
$ECHO_C" >&6; }
14895 if test "${ac_cv_c_stack_direction+set}" = set; then
14896 echo $ECHO_N "(cached
) $ECHO_C" >&6
14898 if test "$cross_compiling" = yes; then
14899 ac_cv_c_stack_direction=0
14901 cat >conftest.$ac_ext <<_ACEOF
14904 cat confdefs.h >>conftest.$ac_ext
14905 cat >>conftest.$ac_ext <<_ACEOF
14906 /* end confdefs.h. */
14907 $ac_includes_default
14909 find_stack_direction ()
14911 static char *addr = 0;
14916 return find_stack_direction ();
14919 return (&dummy > addr) ? 1 : -1;
14925 return find_stack_direction () < 0;
14928 rm -f conftest$ac_exeext
14929 if { (ac_try="$ac_link"
14930 case "(($ac_try" in
14931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14932 *) ac_try_echo=$ac_try;;
14934 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14935 (eval "$ac_link") 2>&5
14937 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14938 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14939 { (case "(($ac_try" in
14940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14941 *) ac_try_echo=$ac_try;;
14943 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14944 (eval "$ac_try") 2>&5
14946 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14947 (exit $ac_status); }; }; then
14948 ac_cv_c_stack_direction=1
14950 echo "$as_me: program exited with status
$ac_status" >&5
14951 echo "$as_me: failed program was
:" >&5
14952 sed 's/^/| /' conftest.$ac_ext >&5
14954 ( exit $ac_status )
14955 ac_cv_c_stack_direction=-1
14957 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14962 { echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
14963 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
14965 cat >>confdefs.h <<_ACEOF
14966 #define STACK_DIRECTION $ac_cv_c_stack_direction
14973 # fmod, logb, and frexp are found in -lm on most systems.
14974 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
14976 { echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
14977 echo $ECHO_N "checking
for sqrt
in -lm...
$ECHO_C" >&6; }
14978 if test "${ac_cv_lib_m_sqrt+set}" = set; then
14979 echo $ECHO_N "(cached
) $ECHO_C" >&6
14981 ac_check_lib_save_LIBS=$LIBS
14983 cat >conftest.$ac_ext <<_ACEOF
14986 cat confdefs.h >>conftest.$ac_ext
14987 cat >>conftest.$ac_ext <<_ACEOF
14988 /* end confdefs.h. */
14990 /* Override any GCC internal prototype to avoid an error.
14991 Use char because int might match the return type of a GCC
14992 builtin and then its argument prototype would still apply. */
15005 rm -f conftest.$ac_objext conftest$ac_exeext
15006 if { (ac_try="$ac_link"
15007 case "(($ac_try" in
15008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15009 *) ac_try_echo=$ac_try;;
15011 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15012 (eval "$ac_link") 2>conftest.er1
15014 grep -v '^ *+' conftest.er1 >conftest.err
15016 cat conftest.err >&5
15017 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15018 (exit $ac_status); } && {
15019 test -z "$ac_c_werror_flag" ||
15020 test ! -s conftest.err
15021 } && test -s conftest$ac_exeext &&
15022 $as_test_x conftest$ac_exeext; then
15023 ac_cv_lib_m_sqrt=yes
15025 echo "$as_me: failed program was
:" >&5
15026 sed 's/^/| /' conftest.$ac_ext >&5
15028 ac_cv_lib_m_sqrt=no
15031 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15032 conftest$ac_exeext conftest.$ac_ext
15033 LIBS=$ac_check_lib_save_LIBS
15035 { echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
15036 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15037 if test $ac_cv_lib_m_sqrt = yes; then
15038 cat >>confdefs.h <<_ACEOF
15039 #define HAVE_LIBM 1
15047 # Check for mail-locking functions in a "mail" library. Probably this should
15048 # have the same check as for liblockfile below.
15050 { echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
15051 echo $ECHO_N "checking
for maillock
in -lmail...
$ECHO_C" >&6; }
15052 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15053 echo $ECHO_N "(cached
) $ECHO_C" >&6
15055 ac_check_lib_save_LIBS=$LIBS
15056 LIBS="-lmail $LIBS"
15057 cat >conftest.$ac_ext <<_ACEOF
15060 cat confdefs.h >>conftest.$ac_ext
15061 cat >>conftest.$ac_ext <<_ACEOF
15062 /* end confdefs.h. */
15064 /* Override any GCC internal prototype to avoid an error.
15065 Use char because int might match the return type of a GCC
15066 builtin and then its argument prototype would still apply. */
15074 return maillock ();
15079 rm -f conftest.$ac_objext conftest$ac_exeext
15080 if { (ac_try="$ac_link"
15081 case "(($ac_try" in
15082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15083 *) ac_try_echo=$ac_try;;
15085 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15086 (eval "$ac_link") 2>conftest.er1
15088 grep -v '^ *+' conftest.er1 >conftest.err
15090 cat conftest.err >&5
15091 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15092 (exit $ac_status); } && {
15093 test -z "$ac_c_werror_flag" ||
15094 test ! -s conftest.err
15095 } && test -s conftest$ac_exeext &&
15096 $as_test_x conftest$ac_exeext; then
15097 ac_cv_lib_mail_maillock=yes
15099 echo "$as_me: failed program was
:" >&5
15100 sed 's/^/| /' conftest.$ac_ext >&5
15102 ac_cv_lib_mail_maillock=no
15105 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15106 conftest$ac_exeext conftest.$ac_ext
15107 LIBS=$ac_check_lib_save_LIBS
15109 { echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
15110 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15111 if test $ac_cv_lib_mail_maillock = yes; then
15112 cat >>confdefs.h <<_ACEOF
15113 #define HAVE_LIBMAIL 1
15116 LIBS="-lmail $LIBS"
15121 { echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
15122 echo $ECHO_N "checking
for maillock
in -llockfile...
$ECHO_C" >&6; }
15123 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15124 echo $ECHO_N "(cached
) $ECHO_C" >&6
15126 ac_check_lib_save_LIBS=$LIBS
15127 LIBS="-llockfile $LIBS"
15128 cat >conftest.$ac_ext <<_ACEOF
15131 cat confdefs.h >>conftest.$ac_ext
15132 cat >>conftest.$ac_ext <<_ACEOF
15133 /* end confdefs.h. */
15135 /* Override any GCC internal prototype to avoid an error.
15136 Use char because int might match the return type of a GCC
15137 builtin and then its argument prototype would still apply. */
15145 return maillock ();
15150 rm -f conftest.$ac_objext conftest$ac_exeext
15151 if { (ac_try="$ac_link"
15152 case "(($ac_try" in
15153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15154 *) ac_try_echo=$ac_try;;
15156 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15157 (eval "$ac_link") 2>conftest.er1
15159 grep -v '^ *+' conftest.er1 >conftest.err
15161 cat conftest.err >&5
15162 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15163 (exit $ac_status); } && {
15164 test -z "$ac_c_werror_flag" ||
15165 test ! -s conftest.err
15166 } && test -s conftest$ac_exeext &&
15167 $as_test_x conftest$ac_exeext; then
15168 ac_cv_lib_lockfile_maillock=yes
15170 echo "$as_me: failed program was
:" >&5
15171 sed 's/^/| /' conftest.$ac_ext >&5
15173 ac_cv_lib_lockfile_maillock=no
15176 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15177 conftest$ac_exeext conftest.$ac_ext
15178 LIBS=$ac_check_lib_save_LIBS
15180 { echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
15181 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15182 if test $ac_cv_lib_lockfile_maillock = yes; then
15183 cat >>confdefs.h <<_ACEOF
15184 #define HAVE_LIBLOCKFILE 1
15187 LIBS="-llockfile $LIBS"
15191 # If we have the shared liblockfile, assume we must use it for mail
15192 # locking (e.g. Debian). If we couldn't link against liblockfile
15193 # (no liblockfile.a installed), ensure that we don't need to.
15194 if test "$ac_cv_lib_lockfile_maillock" = no; then
15195 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
15196 set dummy liblockfile.so; ac_word=$2
15197 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
15198 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
15199 if test "${ac_cv_prog_liblockfile+set}" = set; then
15200 echo $ECHO_N "(cached
) $ECHO_C" >&6
15202 if test -n "$liblockfile"; then
15203 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15206 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
15207 for as_dir in $as_dummy
15210 test -z "$as_dir" && as_dir=.
15211 for ac_exec_ext in '' $ac_executable_extensions; do
15212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15213 ac_cv_prog_liblockfile="yes"
15214 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15221 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
15224 liblockfile=$ac_cv_prog_liblockfile
15225 if test -n "$liblockfile"; then
15226 { echo "$as_me:$LINENO: result
: $liblockfile" >&5
15227 echo "${ECHO_T}$liblockfile" >&6; }
15229 { echo "$as_me:$LINENO: result
: no
" >&5
15230 echo "${ECHO_T}no
" >&6; }
15234 if test $ac_cv_prog_liblockfile = yes; then
15235 { { echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
15236 This probably means that movemail could lose mail.
15237 There may be a \`development' package to
install containing liblockfile.
" >&5
15238 echo "$as_me: error
: Shared liblockfile found but can
't link against it.
15239 This probably means that movemail could lose mail.
15240 There may be a \`development' package to
install containing liblockfile.
" >&2;}
15241 { (exit 1); exit 1; }; }
15246 for ac_func in touchlock
15248 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15249 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15250 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15251 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15252 echo $ECHO_N "(cached
) $ECHO_C" >&6
15254 cat >conftest.$ac_ext <<_ACEOF
15257 cat confdefs.h >>conftest.$ac_ext
15258 cat >>conftest.$ac_ext <<_ACEOF
15259 /* end confdefs.h. */
15260 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15261 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15262 #define $ac_func innocuous_$ac_func
15264 /* System header to define __stub macros and hopefully few prototypes,
15265 which can conflict with char $ac_func (); below.
15266 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15267 <limits.h> exists even on freestanding compilers. */
15270 # include <limits.h>
15272 # include <assert.h>
15277 /* Override any GCC internal prototype to avoid an error.
15278 Use char because int might match the return type of a GCC
15279 builtin and then its argument prototype would still apply. */
15284 /* The GNU C library defines this for functions which it implements
15285 to always fail with ENOSYS. Some functions are actually named
15286 something starting with __ and the normal name is an alias. */
15287 #if defined __stub_$ac_func || defined __stub___$ac_func
15294 return $ac_func ();
15299 rm -f conftest.$ac_objext conftest$ac_exeext
15300 if { (ac_try="$ac_link"
15301 case "(($ac_try" in
15302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15303 *) ac_try_echo=$ac_try;;
15305 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15306 (eval "$ac_link") 2>conftest.er1
15308 grep -v '^ *+' conftest.er1 >conftest.err
15310 cat conftest.err >&5
15311 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15312 (exit $ac_status); } && {
15313 test -z "$ac_c_werror_flag" ||
15314 test ! -s conftest.err
15315 } && test -s conftest$ac_exeext &&
15316 $as_test_x conftest$ac_exeext; then
15317 eval "$as_ac_var=yes"
15319 echo "$as_me: failed program was
:" >&5
15320 sed 's/^/| /' conftest.$ac_ext >&5
15322 eval "$as_ac_var=no
"
15325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15326 conftest$ac_exeext conftest.$ac_ext
15328 ac_res=`eval echo '${'$as_ac_var'}'`
15329 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15330 echo "${ECHO_T}$ac_res" >&6; }
15331 if test `eval echo '${'$as_ac_var'}'` = yes; then
15332 cat >>confdefs.h <<_ACEOF
15333 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15340 for ac_header in maillock.h
15342 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15343 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15344 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15345 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15346 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15347 echo $ECHO_N "(cached
) $ECHO_C" >&6
15349 ac_res=`eval echo '${'$as_ac_Header'}'`
15350 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15351 echo "${ECHO_T}$ac_res" >&6; }
15353 # Is the header compilable?
15354 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15355 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15356 cat >conftest.$ac_ext <<_ACEOF
15359 cat confdefs.h >>conftest.$ac_ext
15360 cat >>conftest.$ac_ext <<_ACEOF
15361 /* end confdefs.h. */
15362 $ac_includes_default
15363 #include <$ac_header>
15365 rm -f conftest.$ac_objext
15366 if { (ac_try="$ac_compile"
15367 case "(($ac_try" in
15368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15369 *) ac_try_echo=$ac_try;;
15371 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15372 (eval "$ac_compile") 2>conftest.er1
15374 grep -v '^ *+' conftest.er1 >conftest.err
15376 cat conftest.err >&5
15377 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15378 (exit $ac_status); } && {
15379 test -z "$ac_c_werror_flag" ||
15380 test ! -s conftest.err
15381 } && test -s conftest.$ac_objext; then
15382 ac_header_compiler=yes
15384 echo "$as_me: failed program was
:" >&5
15385 sed 's/^/| /' conftest.$ac_ext >&5
15387 ac_header_compiler=no
15390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15391 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15392 echo "${ECHO_T}$ac_header_compiler" >&6; }
15394 # Is the header present?
15395 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15396 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15397 cat >conftest.$ac_ext <<_ACEOF
15400 cat confdefs.h >>conftest.$ac_ext
15401 cat >>conftest.$ac_ext <<_ACEOF
15402 /* end confdefs.h. */
15403 #include <$ac_header>
15405 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15406 case "(($ac_try" in
15407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15408 *) ac_try_echo=$ac_try;;
15410 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15411 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15413 grep -v '^ *+' conftest.er1 >conftest.err
15415 cat conftest.err >&5
15416 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15417 (exit $ac_status); } >/dev/null && {
15418 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15419 test ! -s conftest.err
15421 ac_header_preproc=yes
15423 echo "$as_me: failed program was
:" >&5
15424 sed 's/^/| /' conftest.$ac_ext >&5
15426 ac_header_preproc=no
15429 rm -f conftest.err conftest.$ac_ext
15430 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15431 echo "${ECHO_T}$ac_header_preproc" >&6; }
15433 # So? What about this header?
15434 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15436 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15437 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15438 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15439 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15440 ac_header_preproc=yes
15443 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15444 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15445 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15446 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15447 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15448 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15449 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15450 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15451 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15452 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15453 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15454 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15458 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15459 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15460 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15461 echo $ECHO_N "(cached
) $ECHO_C" >&6
15463 eval "$as_ac_Header=\
$ac_header_preproc"
15465 ac_res=`eval echo '${'$as_ac_Header'}'`
15466 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15467 echo "${ECHO_T}$ac_res" >&6; }
15470 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15471 cat >>confdefs.h <<_ACEOF
15472 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15549 for ac_func in gethostname getdomainname dup2 \
15550 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15551 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
15552 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15553 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15554 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15555 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15556 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15557 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15559 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15560 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15561 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15562 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15563 echo $ECHO_N "(cached
) $ECHO_C" >&6
15565 cat >conftest.$ac_ext <<_ACEOF
15568 cat confdefs.h >>conftest.$ac_ext
15569 cat >>conftest.$ac_ext <<_ACEOF
15570 /* end confdefs.h. */
15571 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15572 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15573 #define $ac_func innocuous_$ac_func
15575 /* System header to define __stub macros and hopefully few prototypes,
15576 which can conflict with char $ac_func (); below.
15577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15578 <limits.h> exists even on freestanding compilers. */
15581 # include <limits.h>
15583 # include <assert.h>
15588 /* Override any GCC internal prototype to avoid an error.
15589 Use char because int might match the return type of a GCC
15590 builtin and then its argument prototype would still apply. */
15595 /* The GNU C library defines this for functions which it implements
15596 to always fail with ENOSYS. Some functions are actually named
15597 something starting with __ and the normal name is an alias. */
15598 #if defined __stub_$ac_func || defined __stub___$ac_func
15605 return $ac_func ();
15610 rm -f conftest.$ac_objext conftest$ac_exeext
15611 if { (ac_try="$ac_link"
15612 case "(($ac_try" in
15613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15614 *) ac_try_echo=$ac_try;;
15616 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15617 (eval "$ac_link") 2>conftest.er1
15619 grep -v '^ *+' conftest.er1 >conftest.err
15621 cat conftest.err >&5
15622 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15623 (exit $ac_status); } && {
15624 test -z "$ac_c_werror_flag" ||
15625 test ! -s conftest.err
15626 } && test -s conftest$ac_exeext &&
15627 $as_test_x conftest$ac_exeext; then
15628 eval "$as_ac_var=yes"
15630 echo "$as_me: failed program was
:" >&5
15631 sed 's/^/| /' conftest.$ac_ext >&5
15633 eval "$as_ac_var=no
"
15636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15637 conftest$ac_exeext conftest.$ac_ext
15639 ac_res=`eval echo '${'$as_ac_var'}'`
15640 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15641 echo "${ECHO_T}$ac_res" >&6; }
15642 if test `eval echo '${'$as_ac_var'}'` = yes; then
15643 cat >>confdefs.h <<_ACEOF
15644 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15652 for ac_header in sys/un.h
15654 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15655 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15656 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15657 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15658 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15659 echo $ECHO_N "(cached
) $ECHO_C" >&6
15661 ac_res=`eval echo '${'$as_ac_Header'}'`
15662 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15663 echo "${ECHO_T}$ac_res" >&6; }
15665 # Is the header compilable?
15666 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15667 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15668 cat >conftest.$ac_ext <<_ACEOF
15671 cat confdefs.h >>conftest.$ac_ext
15672 cat >>conftest.$ac_ext <<_ACEOF
15673 /* end confdefs.h. */
15674 $ac_includes_default
15675 #include <$ac_header>
15677 rm -f conftest.$ac_objext
15678 if { (ac_try="$ac_compile"
15679 case "(($ac_try" in
15680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15681 *) ac_try_echo=$ac_try;;
15683 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15684 (eval "$ac_compile") 2>conftest.er1
15686 grep -v '^ *+' conftest.er1 >conftest.err
15688 cat conftest.err >&5
15689 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15690 (exit $ac_status); } && {
15691 test -z "$ac_c_werror_flag" ||
15692 test ! -s conftest.err
15693 } && test -s conftest.$ac_objext; then
15694 ac_header_compiler=yes
15696 echo "$as_me: failed program was
:" >&5
15697 sed 's/^/| /' conftest.$ac_ext >&5
15699 ac_header_compiler=no
15702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15703 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15704 echo "${ECHO_T}$ac_header_compiler" >&6; }
15706 # Is the header present?
15707 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15708 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15709 cat >conftest.$ac_ext <<_ACEOF
15712 cat confdefs.h >>conftest.$ac_ext
15713 cat >>conftest.$ac_ext <<_ACEOF
15714 /* end confdefs.h. */
15715 #include <$ac_header>
15717 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15718 case "(($ac_try" in
15719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15720 *) ac_try_echo=$ac_try;;
15722 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15723 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15725 grep -v '^ *+' conftest.er1 >conftest.err
15727 cat conftest.err >&5
15728 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15729 (exit $ac_status); } >/dev/null && {
15730 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15731 test ! -s conftest.err
15733 ac_header_preproc=yes
15735 echo "$as_me: failed program was
:" >&5
15736 sed 's/^/| /' conftest.$ac_ext >&5
15738 ac_header_preproc=no
15741 rm -f conftest.err conftest.$ac_ext
15742 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15743 echo "${ECHO_T}$ac_header_preproc" >&6; }
15745 # So? What about this header?
15746 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15748 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15749 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15750 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15751 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15752 ac_header_preproc=yes
15755 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15756 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15757 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15758 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15759 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15760 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15761 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15762 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15763 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15764 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15765 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15766 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15770 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15771 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15772 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15773 echo $ECHO_N "(cached
) $ECHO_C" >&6
15775 eval "$as_ac_Header=\
$ac_header_preproc"
15777 ac_res=`eval echo '${'$as_ac_Header'}'`
15778 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15779 echo "${ECHO_T}$ac_res" >&6; }
15782 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15783 cat >>confdefs.h <<_ACEOF
15784 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15796 for ac_header in $ac_header_list
15798 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15799 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15800 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15801 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15802 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15803 echo $ECHO_N "(cached
) $ECHO_C" >&6
15805 ac_res=`eval echo '${'$as_ac_Header'}'`
15806 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15807 echo "${ECHO_T}$ac_res" >&6; }
15809 # Is the header compilable?
15810 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15811 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15812 cat >conftest.$ac_ext <<_ACEOF
15815 cat confdefs.h >>conftest.$ac_ext
15816 cat >>conftest.$ac_ext <<_ACEOF
15817 /* end confdefs.h. */
15818 $ac_includes_default
15819 #include <$ac_header>
15821 rm -f conftest.$ac_objext
15822 if { (ac_try="$ac_compile"
15823 case "(($ac_try" in
15824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15825 *) ac_try_echo=$ac_try;;
15827 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15828 (eval "$ac_compile") 2>conftest.er1
15830 grep -v '^ *+' conftest.er1 >conftest.err
15832 cat conftest.err >&5
15833 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15834 (exit $ac_status); } && {
15835 test -z "$ac_c_werror_flag" ||
15836 test ! -s conftest.err
15837 } && test -s conftest.$ac_objext; then
15838 ac_header_compiler=yes
15840 echo "$as_me: failed program was
:" >&5
15841 sed 's/^/| /' conftest.$ac_ext >&5
15843 ac_header_compiler=no
15846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15847 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15848 echo "${ECHO_T}$ac_header_compiler" >&6; }
15850 # Is the header present?
15851 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15852 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15853 cat >conftest.$ac_ext <<_ACEOF
15856 cat confdefs.h >>conftest.$ac_ext
15857 cat >>conftest.$ac_ext <<_ACEOF
15858 /* end confdefs.h. */
15859 #include <$ac_header>
15861 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15862 case "(($ac_try" in
15863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15864 *) ac_try_echo=$ac_try;;
15866 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15867 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15869 grep -v '^ *+' conftest.er1 >conftest.err
15871 cat conftest.err >&5
15872 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15873 (exit $ac_status); } >/dev/null && {
15874 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15875 test ! -s conftest.err
15877 ac_header_preproc=yes
15879 echo "$as_me: failed program was
:" >&5
15880 sed 's/^/| /' conftest.$ac_ext >&5
15882 ac_header_preproc=no
15885 rm -f conftest.err conftest.$ac_ext
15886 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15887 echo "${ECHO_T}$ac_header_preproc" >&6; }
15889 # So? What about this header?
15890 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15892 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15893 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15894 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15895 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15896 ac_header_preproc=yes
15899 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15900 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15901 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15902 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15903 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15904 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15905 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15906 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15907 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15908 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15909 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15910 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15914 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15915 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15916 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15917 echo $ECHO_N "(cached
) $ECHO_C" >&6
15919 eval "$as_ac_Header=\
$ac_header_preproc"
15921 ac_res=`eval echo '${'$as_ac_Header'}'`
15922 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15923 echo "${ECHO_T}$ac_res" >&6; }
15926 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15927 cat >>confdefs.h <<_ACEOF
15928 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15943 for ac_func in $ac_func_list
15945 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15946 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15947 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15948 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15949 echo $ECHO_N "(cached
) $ECHO_C" >&6
15951 cat >conftest.$ac_ext <<_ACEOF
15954 cat confdefs.h >>conftest.$ac_ext
15955 cat >>conftest.$ac_ext <<_ACEOF
15956 /* end confdefs.h. */
15957 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15958 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15959 #define $ac_func innocuous_$ac_func
15961 /* System header to define __stub macros and hopefully few prototypes,
15962 which can conflict with char $ac_func (); below.
15963 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15964 <limits.h> exists even on freestanding compilers. */
15967 # include <limits.h>
15969 # include <assert.h>
15974 /* Override any GCC internal prototype to avoid an error.
15975 Use char because int might match the return type of a GCC
15976 builtin and then its argument prototype would still apply. */
15981 /* The GNU C library defines this for functions which it implements
15982 to always fail with ENOSYS. Some functions are actually named
15983 something starting with __ and the normal name is an alias. */
15984 #if defined __stub_$ac_func || defined __stub___$ac_func
15991 return $ac_func ();
15996 rm -f conftest.$ac_objext conftest$ac_exeext
15997 if { (ac_try="$ac_link"
15998 case "(($ac_try" in
15999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16000 *) ac_try_echo=$ac_try;;
16002 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16003 (eval "$ac_link") 2>conftest.er1
16005 grep -v '^ *+' conftest.er1 >conftest.err
16007 cat conftest.err >&5
16008 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16009 (exit $ac_status); } && {
16010 test -z "$ac_c_werror_flag" ||
16011 test ! -s conftest.err
16012 } && test -s conftest$ac_exeext &&
16013 $as_test_x conftest$ac_exeext; then
16014 eval "$as_ac_var=yes"
16016 echo "$as_me: failed program was
:" >&5
16017 sed 's/^/| /' conftest.$ac_ext >&5
16019 eval "$as_ac_var=no
"
16022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16023 conftest$ac_exeext conftest.$ac_ext
16025 ac_res=`eval echo '${'$as_ac_var'}'`
16026 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16027 echo "${ECHO_T}$ac_res" >&6; }
16028 if test `eval echo '${'$as_ac_var'}'` = yes; then
16029 cat >>confdefs.h <<_ACEOF
16030 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16052 { echo "$as_me:$LINENO: checking
for working mktime
" >&5
16053 echo $ECHO_N "checking
for working mktime...
$ECHO_C" >&6; }
16054 if test "${ac_cv_func_working_mktime+set}" = set; then
16055 echo $ECHO_N "(cached
) $ECHO_C" >&6
16057 if test "$cross_compiling" = yes; then
16058 ac_cv_func_working_mktime=no
16060 cat >conftest.$ac_ext <<_ACEOF
16063 cat confdefs.h >>conftest.$ac_ext
16064 cat >>conftest.$ac_ext <<_ACEOF
16065 /* end confdefs.h. */
16066 /* Test program from Paul Eggert and Tony Leneis. */
16067 #ifdef TIME_WITH_SYS_TIME
16068 # include <sys/time.h>
16071 # ifdef HAVE_SYS_TIME_H
16072 # include <sys/time.h>
16078 #include <stdlib.h>
16080 #ifdef HAVE_UNISTD_H
16081 # include <unistd.h>
16085 # define alarm(X) /* empty */
16088 /* Work around redefinition to rpl_putenv by other config tests. */
16091 static time_t time_t_max;
16092 static time_t time_t_min;
16094 /* Values we'll use to set the TZ environment variable. */
16095 static char *tz_strings[] = {
16096 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
16097 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
16099 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16101 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16102 Based on a problem report from Andreas Jaeger. */
16104 spring_forward_gap ()
16106 /* glibc (up to about 1998-10-07) failed this test. */
16109 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16110 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16111 on systems that don't support the Olson extension, or don't have the
16112 full zoneinfo tables installed. */
16113 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16122 return mktime (&tm) != (time_t) -1;
16130 return ! (lt = localtime (&now)) || mktime (lt) == now;
16137 return (mktime_test1 (now)
16138 && mktime_test1 ((time_t) (time_t_max - now))
16139 && mktime_test1 ((time_t) (time_t_min + now)));
16145 /* Based on code from Ariel Faigon. */
16155 return tm.tm_mon == 2 && tm.tm_mday == 31;
16164 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16165 now = mktime (&tm);
16166 if (now != (time_t) -1)
16168 struct tm *lt = localtime (&now);
16170 && lt->tm_year == tm.tm_year
16171 && lt->tm_mon == tm.tm_mon
16172 && lt->tm_mday == tm.tm_mday
16173 && lt->tm_hour == tm.tm_hour
16174 && lt->tm_min == tm.tm_min
16175 && lt->tm_sec == tm.tm_sec
16176 && lt->tm_yday == tm.tm_yday
16177 && lt->tm_wday == tm.tm_wday
16178 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16179 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16188 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16189 ignoring leap seconds. */
16190 unsigned long int answer = 2527315200UL;
16194 tm.tm_year = 2050 - 1900;
16197 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16200 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16201 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16202 on systems that don't support the Olson extension, or don't have the
16203 full zoneinfo tables installed. */
16204 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16208 /* Check that the result is either a failure, or close enough
16209 to the correct answer that we can assume the discrepancy is
16210 due to leap seconds. */
16211 return (t == (time_t) -1
16212 || (0 < t && answer - 120 <= t && t <= answer + 120));
16221 /* This test makes some buggy mktime implementations loop.
16222 Give up after 60 seconds; a mktime slower than that
16223 isn't worth using anyway. */
16226 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16229 if ((time_t) -1 < 0)
16230 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16232 delta = time_t_max / 997; /* a suitable prime number */
16233 for (i = 0; i < N_STRINGS; i++)
16236 putenv (tz_strings[i]);
16238 for (t = 0; t <= time_t_max - delta; t += delta)
16239 if (! mktime_test (t))
16241 if (! (mktime_test ((time_t) 1)
16242 && mktime_test ((time_t) (60 * 60))
16243 && mktime_test ((time_t) (60 * 60 * 24))))
16246 for (j = 1; 0 < j; j *= 2)
16247 if (! bigtime_test (j))
16249 if (! bigtime_test (j - 1))
16252 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16255 rm -f conftest$ac_exeext
16256 if { (ac_try="$ac_link"
16257 case "(($ac_try" in
16258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16259 *) ac_try_echo=$ac_try;;
16261 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16262 (eval "$ac_link") 2>&5
16264 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16265 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16266 { (case "(($ac_try" in
16267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16268 *) ac_try_echo=$ac_try;;
16270 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16271 (eval "$ac_try") 2>&5
16273 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16274 (exit $ac_status); }; }; then
16275 ac_cv_func_working_mktime=yes
16277 echo "$as_me: program exited with status
$ac_status" >&5
16278 echo "$as_me: failed program was
:" >&5
16279 sed 's/^/| /' conftest.$ac_ext >&5
16281 ( exit $ac_status )
16282 ac_cv_func_working_mktime=no
16284 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16289 { echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
16290 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16291 if test $ac_cv_func_working_mktime = no; then
16292 case " $LIBOBJS " in
16293 *" mktime.
$ac_objext "* ) ;;
16294 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
16300 if test "$ac_cv_func_working_mktime" = no; then
16302 cat >>confdefs.h <<\_ACEOF
16303 #define BROKEN_MKTIME 1
16308 ac_have_func=no # yes means we've found a way to get the load average.
16310 # Make sure getloadavg.c is where it belongs, at configure-time.
16311 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
16312 { { echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
16313 echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
16314 { (exit 1); exit 1; }; }
16318 # Check for getloadavg, but be sure not to touch the cache variable.
16319 ({ echo "$as_me:$LINENO: checking
for getloadavg
" >&5
16320 echo $ECHO_N "checking
for getloadavg...
$ECHO_C" >&6; }
16321 if test "${ac_cv_func_getloadavg+set}" = set; then
16322 echo $ECHO_N "(cached
) $ECHO_C" >&6
16324 cat >conftest.$ac_ext <<_ACEOF
16327 cat confdefs.h >>conftest.$ac_ext
16328 cat >>conftest.$ac_ext <<_ACEOF
16329 /* end confdefs.h. */
16330 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16331 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16332 #define getloadavg innocuous_getloadavg
16334 /* System header to define __stub macros and hopefully few prototypes,
16335 which can conflict with char getloadavg (); below.
16336 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16337 <limits.h> exists even on freestanding compilers. */
16340 # include <limits.h>
16342 # include <assert.h>
16347 /* Override any GCC internal prototype to avoid an error.
16348 Use char because int might match the return type of a GCC
16349 builtin and then its argument prototype would still apply. */
16353 char getloadavg ();
16354 /* The GNU C library defines this for functions which it implements
16355 to always fail with ENOSYS. Some functions are actually named
16356 something starting with __ and the normal name is an alias. */
16357 #if defined __stub_getloadavg || defined __stub___getloadavg
16364 return getloadavg ();
16369 rm -f conftest.$ac_objext conftest$ac_exeext
16370 if { (ac_try="$ac_link"
16371 case "(($ac_try" in
16372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16373 *) ac_try_echo=$ac_try;;
16375 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16376 (eval "$ac_link") 2>conftest.er1
16378 grep -v '^ *+' conftest.er1 >conftest.err
16380 cat conftest.err >&5
16381 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16382 (exit $ac_status); } && {
16383 test -z "$ac_c_werror_flag" ||
16384 test ! -s conftest.err
16385 } && test -s conftest$ac_exeext &&
16386 $as_test_x conftest$ac_exeext; then
16387 ac_cv_func_getloadavg=yes
16389 echo "$as_me: failed program was
:" >&5
16390 sed 's/^/| /' conftest.$ac_ext >&5
16392 ac_cv_func_getloadavg=no
16395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16396 conftest$ac_exeext conftest.$ac_ext
16398 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
16399 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16400 if test $ac_cv_func_getloadavg = yes; then
16405 ) && ac_have_func=yes
16407 # On HPUX9, an unprivileged user can get load averages through this function.
16409 for ac_func in pstat_getdynamic
16411 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16412 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16413 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16414 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16415 echo $ECHO_N "(cached
) $ECHO_C" >&6
16417 cat >conftest.$ac_ext <<_ACEOF
16420 cat confdefs.h >>conftest.$ac_ext
16421 cat >>conftest.$ac_ext <<_ACEOF
16422 /* end confdefs.h. */
16423 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16424 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16425 #define $ac_func innocuous_$ac_func
16427 /* System header to define __stub macros and hopefully few prototypes,
16428 which can conflict with char $ac_func (); below.
16429 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16430 <limits.h> exists even on freestanding compilers. */
16433 # include <limits.h>
16435 # include <assert.h>
16440 /* Override any GCC internal prototype to avoid an error.
16441 Use char because int might match the return type of a GCC
16442 builtin and then its argument prototype would still apply. */
16447 /* The GNU C library defines this for functions which it implements
16448 to always fail with ENOSYS. Some functions are actually named
16449 something starting with __ and the normal name is an alias. */
16450 #if defined __stub_$ac_func || defined __stub___$ac_func
16457 return $ac_func ();
16462 rm -f conftest.$ac_objext conftest$ac_exeext
16463 if { (ac_try="$ac_link"
16464 case "(($ac_try" in
16465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16466 *) ac_try_echo=$ac_try;;
16468 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16469 (eval "$ac_link") 2>conftest.er1
16471 grep -v '^ *+' conftest.er1 >conftest.err
16473 cat conftest.err >&5
16474 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16475 (exit $ac_status); } && {
16476 test -z "$ac_c_werror_flag" ||
16477 test ! -s conftest.err
16478 } && test -s conftest$ac_exeext &&
16479 $as_test_x conftest$ac_exeext; then
16480 eval "$as_ac_var=yes"
16482 echo "$as_me: failed program was
:" >&5
16483 sed 's/^/| /' conftest.$ac_ext >&5
16485 eval "$as_ac_var=no
"
16488 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16489 conftest$ac_exeext conftest.$ac_ext
16491 ac_res=`eval echo '${'$as_ac_var'}'`
16492 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16493 echo "${ECHO_T}$ac_res" >&6; }
16494 if test `eval echo '${'$as_ac_var'}'` = yes; then
16495 cat >>confdefs.h <<_ACEOF
16496 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16503 # Solaris has libkstat which does not require root.
16505 { echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
16506 echo $ECHO_N "checking
for kstat_open
in -lkstat...
$ECHO_C" >&6; }
16507 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16508 echo $ECHO_N "(cached
) $ECHO_C" >&6
16510 ac_check_lib_save_LIBS=$LIBS
16511 LIBS="-lkstat $LIBS"
16512 cat >conftest.$ac_ext <<_ACEOF
16515 cat confdefs.h >>conftest.$ac_ext
16516 cat >>conftest.$ac_ext <<_ACEOF
16517 /* end confdefs.h. */
16519 /* Override any GCC internal prototype to avoid an error.
16520 Use char because int might match the return type of a GCC
16521 builtin and then its argument prototype would still apply. */
16525 char kstat_open ();
16529 return kstat_open ();
16534 rm -f conftest.$ac_objext conftest$ac_exeext
16535 if { (ac_try="$ac_link"
16536 case "(($ac_try" in
16537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16538 *) ac_try_echo=$ac_try;;
16540 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16541 (eval "$ac_link") 2>conftest.er1
16543 grep -v '^ *+' conftest.er1 >conftest.err
16545 cat conftest.err >&5
16546 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16547 (exit $ac_status); } && {
16548 test -z "$ac_c_werror_flag" ||
16549 test ! -s conftest.err
16550 } && test -s conftest$ac_exeext &&
16551 $as_test_x conftest$ac_exeext; then
16552 ac_cv_lib_kstat_kstat_open=yes
16554 echo "$as_me: failed program was
:" >&5
16555 sed 's/^/| /' conftest.$ac_ext >&5
16557 ac_cv_lib_kstat_kstat_open=no
16560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16561 conftest$ac_exeext conftest.$ac_ext
16562 LIBS=$ac_check_lib_save_LIBS
16564 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
16565 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16566 if test $ac_cv_lib_kstat_kstat_open = yes; then
16567 cat >>confdefs.h <<_ACEOF
16568 #define HAVE_LIBKSTAT 1
16571 LIBS="-lkstat $LIBS"
16575 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
16577 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16578 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16579 # to get the right answer into the cache.
16580 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16581 if test $ac_have_func = no; then
16582 { echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
16583 echo $ECHO_N "checking
for elf_begin
in -lelf...
$ECHO_C" >&6; }
16584 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
16585 echo $ECHO_N "(cached
) $ECHO_C" >&6
16587 ac_check_lib_save_LIBS=$LIBS
16589 cat >conftest.$ac_ext <<_ACEOF
16592 cat confdefs.h >>conftest.$ac_ext
16593 cat >>conftest.$ac_ext <<_ACEOF
16594 /* end confdefs.h. */
16596 /* Override any GCC internal prototype to avoid an error.
16597 Use char because int might match the return type of a GCC
16598 builtin and then its argument prototype would still apply. */
16606 return elf_begin ();
16611 rm -f conftest.$ac_objext conftest$ac_exeext
16612 if { (ac_try="$ac_link"
16613 case "(($ac_try" in
16614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16615 *) ac_try_echo=$ac_try;;
16617 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16618 (eval "$ac_link") 2>conftest.er1
16620 grep -v '^ *+' conftest.er1 >conftest.err
16622 cat conftest.err >&5
16623 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16624 (exit $ac_status); } && {
16625 test -z "$ac_c_werror_flag" ||
16626 test ! -s conftest.err
16627 } && test -s conftest$ac_exeext &&
16628 $as_test_x conftest$ac_exeext; then
16629 ac_cv_lib_elf_elf_begin=yes
16631 echo "$as_me: failed program was
:" >&5
16632 sed 's/^/| /' conftest.$ac_ext >&5
16634 ac_cv_lib_elf_elf_begin=no
16637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16638 conftest$ac_exeext conftest.$ac_ext
16639 LIBS=$ac_check_lib_save_LIBS
16641 { echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
16642 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
16643 if test $ac_cv_lib_elf_elf_begin = yes; then
16648 if test $ac_have_func = no; then
16649 { echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
16650 echo $ECHO_N "checking
for kvm_open
in -lkvm...
$ECHO_C" >&6; }
16651 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
16652 echo $ECHO_N "(cached
) $ECHO_C" >&6
16654 ac_check_lib_save_LIBS=$LIBS
16656 cat >conftest.$ac_ext <<_ACEOF
16659 cat confdefs.h >>conftest.$ac_ext
16660 cat >>conftest.$ac_ext <<_ACEOF
16661 /* end confdefs.h. */
16663 /* Override any GCC internal prototype to avoid an error.
16664 Use char because int might match the return type of a GCC
16665 builtin and then its argument prototype would still apply. */
16673 return kvm_open ();
16678 rm -f conftest.$ac_objext conftest$ac_exeext
16679 if { (ac_try="$ac_link"
16680 case "(($ac_try" in
16681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16682 *) ac_try_echo=$ac_try;;
16684 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16685 (eval "$ac_link") 2>conftest.er1
16687 grep -v '^ *+' conftest.er1 >conftest.err
16689 cat conftest.err >&5
16690 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16691 (exit $ac_status); } && {
16692 test -z "$ac_c_werror_flag" ||
16693 test ! -s conftest.err
16694 } && test -s conftest$ac_exeext &&
16695 $as_test_x conftest$ac_exeext; then
16696 ac_cv_lib_kvm_kvm_open=yes
16698 echo "$as_me: failed program was
:" >&5
16699 sed 's/^/| /' conftest.$ac_ext >&5
16701 ac_cv_lib_kvm_kvm_open=no
16704 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16705 conftest$ac_exeext conftest.$ac_ext
16706 LIBS=$ac_check_lib_save_LIBS
16708 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
16709 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
16710 if test $ac_cv_lib_kvm_kvm_open = yes; then
16714 # Check for the 4.4BSD definition of getloadavg.
16715 { echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
16716 echo $ECHO_N "checking
for getloadavg
in -lutil...
$ECHO_C" >&6; }
16717 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
16718 echo $ECHO_N "(cached
) $ECHO_C" >&6
16720 ac_check_lib_save_LIBS=$LIBS
16721 LIBS="-lutil $LIBS"
16722 cat >conftest.$ac_ext <<_ACEOF
16725 cat confdefs.h >>conftest.$ac_ext
16726 cat >>conftest.$ac_ext <<_ACEOF
16727 /* end confdefs.h. */
16729 /* Override any GCC internal prototype to avoid an error.
16730 Use char because int might match the return type of a GCC
16731 builtin and then its argument prototype would still apply. */
16735 char getloadavg ();
16739 return getloadavg ();
16744 rm -f conftest.$ac_objext conftest$ac_exeext
16745 if { (ac_try="$ac_link"
16746 case "(($ac_try" in
16747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16748 *) ac_try_echo=$ac_try;;
16750 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16751 (eval "$ac_link") 2>conftest.er1
16753 grep -v '^ *+' conftest.er1 >conftest.err
16755 cat conftest.err >&5
16756 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16757 (exit $ac_status); } && {
16758 test -z "$ac_c_werror_flag" ||
16759 test ! -s conftest.err
16760 } && test -s conftest$ac_exeext &&
16761 $as_test_x conftest$ac_exeext; then
16762 ac_cv_lib_util_getloadavg=yes
16764 echo "$as_me: failed program was
:" >&5
16765 sed 's/^/| /' conftest.$ac_ext >&5
16767 ac_cv_lib_util_getloadavg=no
16770 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16771 conftest$ac_exeext conftest.$ac_ext
16772 LIBS=$ac_check_lib_save_LIBS
16774 { echo "$as_me:$LINENO: result
: $ac_cv_lib_util_getloadavg" >&5
16775 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
16776 if test $ac_cv_lib_util_getloadavg = yes; then
16777 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
16782 if test $ac_have_func = no; then
16783 # There is a commonly available library for RS/6000 AIX.
16784 # Since it is not a standard part of AIX, it might be installed locally.
16785 ac_getloadavg_LIBS=$LIBS
16786 LIBS="-L/usr
/local
/lib
$LIBS"
16787 { echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
16788 echo $ECHO_N "checking
for getloadavg
in -lgetloadavg...
$ECHO_C" >&6; }
16789 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
16790 echo $ECHO_N "(cached
) $ECHO_C" >&6
16792 ac_check_lib_save_LIBS=$LIBS
16793 LIBS="-lgetloadavg $LIBS"
16794 cat >conftest.$ac_ext <<_ACEOF
16797 cat confdefs.h >>conftest.$ac_ext
16798 cat >>conftest.$ac_ext <<_ACEOF
16799 /* end confdefs.h. */
16801 /* Override any GCC internal prototype to avoid an error.
16802 Use char because int might match the return type of a GCC
16803 builtin and then its argument prototype would still apply. */
16807 char getloadavg ();
16811 return getloadavg ();
16816 rm -f conftest.$ac_objext conftest$ac_exeext
16817 if { (ac_try="$ac_link"
16818 case "(($ac_try" in
16819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16820 *) ac_try_echo=$ac_try;;
16822 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16823 (eval "$ac_link") 2>conftest.er1
16825 grep -v '^ *+' conftest.er1 >conftest.err
16827 cat conftest.err >&5
16828 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16829 (exit $ac_status); } && {
16830 test -z "$ac_c_werror_flag" ||
16831 test ! -s conftest.err
16832 } && test -s conftest$ac_exeext &&
16833 $as_test_x conftest$ac_exeext; then
16834 ac_cv_lib_getloadavg_getloadavg=yes
16836 echo "$as_me: failed program was
:" >&5
16837 sed 's/^/| /' conftest.$ac_ext >&5
16839 ac_cv_lib_getloadavg_getloadavg=no
16842 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16843 conftest$ac_exeext conftest.$ac_ext
16844 LIBS=$ac_check_lib_save_LIBS
16846 { echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
16847 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
16848 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
16849 LIBS="-lgetloadavg $LIBS"
16851 LIBS=$ac_getloadavg_LIBS
16856 # Make sure it is really in the library, if we think we found it,
16857 # otherwise set up the replacement function.
16859 for ac_func in getloadavg
16861 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16862 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16863 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16864 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16865 echo $ECHO_N "(cached
) $ECHO_C" >&6
16867 cat >conftest.$ac_ext <<_ACEOF
16870 cat confdefs.h >>conftest.$ac_ext
16871 cat >>conftest.$ac_ext <<_ACEOF
16872 /* end confdefs.h. */
16873 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16874 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16875 #define $ac_func innocuous_$ac_func
16877 /* System header to define __stub macros and hopefully few prototypes,
16878 which can conflict with char $ac_func (); below.
16879 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16880 <limits.h> exists even on freestanding compilers. */
16883 # include <limits.h>
16885 # include <assert.h>
16890 /* Override any GCC internal prototype to avoid an error.
16891 Use char because int might match the return type of a GCC
16892 builtin and then its argument prototype would still apply. */
16897 /* The GNU C library defines this for functions which it implements
16898 to always fail with ENOSYS. Some functions are actually named
16899 something starting with __ and the normal name is an alias. */
16900 #if defined __stub_$ac_func || defined __stub___$ac_func
16907 return $ac_func ();
16912 rm -f conftest.$ac_objext conftest$ac_exeext
16913 if { (ac_try="$ac_link"
16914 case "(($ac_try" in
16915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16916 *) ac_try_echo=$ac_try;;
16918 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16919 (eval "$ac_link") 2>conftest.er1
16921 grep -v '^ *+' conftest.er1 >conftest.err
16923 cat conftest.err >&5
16924 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16925 (exit $ac_status); } && {
16926 test -z "$ac_c_werror_flag" ||
16927 test ! -s conftest.err
16928 } && test -s conftest$ac_exeext &&
16929 $as_test_x conftest$ac_exeext; then
16930 eval "$as_ac_var=yes"
16932 echo "$as_me: failed program was
:" >&5
16933 sed 's/^/| /' conftest.$ac_ext >&5
16935 eval "$as_ac_var=no
"
16938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16939 conftest$ac_exeext conftest.$ac_ext
16941 ac_res=`eval echo '${'$as_ac_var'}'`
16942 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16943 echo "${ECHO_T}$ac_res" >&6; }
16944 if test `eval echo '${'$as_ac_var'}'` = yes; then
16945 cat >>confdefs.h <<_ACEOF
16946 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16950 case " $LIBOBJS " in
16951 *" getloadavg.
$ac_objext "* ) ;;
16952 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
16957 cat >>confdefs.h <<\_ACEOF
16958 #define C_GETLOADAVG 1
16961 # Figure out what our getloadavg.c needs.
16963 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16964 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
16965 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
16966 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16967 echo $ECHO_N "(cached
) $ECHO_C" >&6
16969 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
16970 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
16972 # Is the header compilable?
16973 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
16974 echo $ECHO_N "checking sys
/dg_sys_info.h usability...
$ECHO_C" >&6; }
16975 cat >conftest.$ac_ext <<_ACEOF
16978 cat confdefs.h >>conftest.$ac_ext
16979 cat >>conftest.$ac_ext <<_ACEOF
16980 /* end confdefs.h. */
16981 $ac_includes_default
16982 #include <sys/dg_sys_info.h>
16984 rm -f conftest.$ac_objext
16985 if { (ac_try="$ac_compile"
16986 case "(($ac_try" in
16987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16988 *) ac_try_echo=$ac_try;;
16990 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16991 (eval "$ac_compile") 2>conftest.er1
16993 grep -v '^ *+' conftest.er1 >conftest.err
16995 cat conftest.err >&5
16996 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16997 (exit $ac_status); } && {
16998 test -z "$ac_c_werror_flag" ||
16999 test ! -s conftest.err
17000 } && test -s conftest.$ac_objext; then
17001 ac_header_compiler=yes
17003 echo "$as_me: failed program was
:" >&5
17004 sed 's/^/| /' conftest.$ac_ext >&5
17006 ac_header_compiler=no
17009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17010 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17011 echo "${ECHO_T}$ac_header_compiler" >&6; }
17013 # Is the header present?
17014 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
17015 echo $ECHO_N "checking sys
/dg_sys_info.h presence...
$ECHO_C" >&6; }
17016 cat >conftest.$ac_ext <<_ACEOF
17019 cat confdefs.h >>conftest.$ac_ext
17020 cat >>conftest.$ac_ext <<_ACEOF
17021 /* end confdefs.h. */
17022 #include <sys/dg_sys_info.h>
17024 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17025 case "(($ac_try" in
17026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17027 *) ac_try_echo=$ac_try;;
17029 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17030 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17032 grep -v '^ *+' conftest.er1 >conftest.err
17034 cat conftest.err >&5
17035 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17036 (exit $ac_status); } >/dev/null && {
17037 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17038 test ! -s conftest.err
17040 ac_header_preproc=yes
17042 echo "$as_me: failed program was
:" >&5
17043 sed 's/^/| /' conftest.$ac_ext >&5
17045 ac_header_preproc=no
17048 rm -f conftest.err conftest.$ac_ext
17049 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17050 echo "${ECHO_T}$ac_header_preproc" >&6; }
17052 # So? What about this header?
17053 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17055 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17056 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17057 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
17058 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
17059 ac_header_preproc=yes
17062 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
17063 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
17064 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
17065 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
17066 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
17067 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
17068 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17069 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17070 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
17071 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
17072 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
17073 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
17077 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17078 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17079 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17080 echo $ECHO_N "(cached
) $ECHO_C" >&6
17082 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17084 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17085 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17088 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17091 cat >>confdefs.h <<\_ACEOF
17096 { echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
17097 echo $ECHO_N "checking
for dg_sys_info
in -ldgc...
$ECHO_C" >&6; }
17098 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17099 echo $ECHO_N "(cached
) $ECHO_C" >&6
17101 ac_check_lib_save_LIBS=$LIBS
17103 cat >conftest.$ac_ext <<_ACEOF
17106 cat confdefs.h >>conftest.$ac_ext
17107 cat >>conftest.$ac_ext <<_ACEOF
17108 /* end confdefs.h. */
17110 /* Override any GCC internal prototype to avoid an error.
17111 Use char because int might match the return type of a GCC
17112 builtin and then its argument prototype would still apply. */
17116 char dg_sys_info ();
17120 return dg_sys_info ();
17125 rm -f conftest.$ac_objext conftest$ac_exeext
17126 if { (ac_try="$ac_link"
17127 case "(($ac_try" in
17128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17129 *) ac_try_echo=$ac_try;;
17131 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17132 (eval "$ac_link") 2>conftest.er1
17134 grep -v '^ *+' conftest.er1 >conftest.err
17136 cat conftest.err >&5
17137 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17138 (exit $ac_status); } && {
17139 test -z "$ac_c_werror_flag" ||
17140 test ! -s conftest.err
17141 } && test -s conftest$ac_exeext &&
17142 $as_test_x conftest$ac_exeext; then
17143 ac_cv_lib_dgc_dg_sys_info=yes
17145 echo "$as_me: failed program was
:" >&5
17146 sed 's/^/| /' conftest.$ac_ext >&5
17148 ac_cv_lib_dgc_dg_sys_info=no
17151 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17152 conftest$ac_exeext conftest.$ac_ext
17153 LIBS=$ac_check_lib_save_LIBS
17155 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
17156 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17157 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17158 cat >>confdefs.h <<_ACEOF
17159 #define HAVE_LIBDGC 1
17170 if test "${ac_cv_header_locale_h+set}" = set; then
17171 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17172 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17173 if test "${ac_cv_header_locale_h+set}" = set; then
17174 echo $ECHO_N "(cached
) $ECHO_C" >&6
17176 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17177 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17179 # Is the header compilable?
17180 { echo "$as_me:$LINENO: checking locale.h usability
" >&5
17181 echo $ECHO_N "checking locale.h usability...
$ECHO_C" >&6; }
17182 cat >conftest.$ac_ext <<_ACEOF
17185 cat confdefs.h >>conftest.$ac_ext
17186 cat >>conftest.$ac_ext <<_ACEOF
17187 /* end confdefs.h. */
17188 $ac_includes_default
17189 #include <locale.h>
17191 rm -f conftest.$ac_objext
17192 if { (ac_try="$ac_compile"
17193 case "(($ac_try" in
17194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17195 *) ac_try_echo=$ac_try;;
17197 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17198 (eval "$ac_compile") 2>conftest.er1
17200 grep -v '^ *+' conftest.er1 >conftest.err
17202 cat conftest.err >&5
17203 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17204 (exit $ac_status); } && {
17205 test -z "$ac_c_werror_flag" ||
17206 test ! -s conftest.err
17207 } && test -s conftest.$ac_objext; then
17208 ac_header_compiler=yes
17210 echo "$as_me: failed program was
:" >&5
17211 sed 's/^/| /' conftest.$ac_ext >&5
17213 ac_header_compiler=no
17216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17217 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17218 echo "${ECHO_T}$ac_header_compiler" >&6; }
17220 # Is the header present?
17221 { echo "$as_me:$LINENO: checking locale.h presence
" >&5
17222 echo $ECHO_N "checking locale.h presence...
$ECHO_C" >&6; }
17223 cat >conftest.$ac_ext <<_ACEOF
17226 cat confdefs.h >>conftest.$ac_ext
17227 cat >>conftest.$ac_ext <<_ACEOF
17228 /* end confdefs.h. */
17229 #include <locale.h>
17231 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17232 case "(($ac_try" in
17233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17234 *) ac_try_echo=$ac_try;;
17236 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17237 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17239 grep -v '^ *+' conftest.er1 >conftest.err
17241 cat conftest.err >&5
17242 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17243 (exit $ac_status); } >/dev/null && {
17244 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17245 test ! -s conftest.err
17247 ac_header_preproc=yes
17249 echo "$as_me: failed program was
:" >&5
17250 sed 's/^/| /' conftest.$ac_ext >&5
17252 ac_header_preproc=no
17255 rm -f conftest.err conftest.$ac_ext
17256 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17257 echo "${ECHO_T}$ac_header_preproc" >&6; }
17259 # So? What about this header?
17260 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17262 { echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17263 echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17264 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
17265 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
17266 ac_header_preproc=yes
17269 { echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
17270 echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
17271 { echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
17272 echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
17273 { echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
17274 echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
17275 { echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17276 echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17277 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
17278 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
17279 { echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
17280 echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
17284 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17285 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17286 if test "${ac_cv_header_locale_h+set}" = set; then
17287 echo $ECHO_N "(cached
) $ECHO_C" >&6
17289 ac_cv_header_locale_h=$ac_header_preproc
17291 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17292 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17298 for ac_func in setlocale
17300 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17301 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17302 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17303 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17304 echo $ECHO_N "(cached
) $ECHO_C" >&6
17306 cat >conftest.$ac_ext <<_ACEOF
17309 cat confdefs.h >>conftest.$ac_ext
17310 cat >>conftest.$ac_ext <<_ACEOF
17311 /* end confdefs.h. */
17312 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17313 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17314 #define $ac_func innocuous_$ac_func
17316 /* System header to define __stub macros and hopefully few prototypes,
17317 which can conflict with char $ac_func (); below.
17318 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17319 <limits.h> exists even on freestanding compilers. */
17322 # include <limits.h>
17324 # include <assert.h>
17329 /* Override any GCC internal prototype to avoid an error.
17330 Use char because int might match the return type of a GCC
17331 builtin and then its argument prototype would still apply. */
17336 /* The GNU C library defines this for functions which it implements
17337 to always fail with ENOSYS. Some functions are actually named
17338 something starting with __ and the normal name is an alias. */
17339 #if defined __stub_$ac_func || defined __stub___$ac_func
17346 return $ac_func ();
17351 rm -f conftest.$ac_objext conftest$ac_exeext
17352 if { (ac_try="$ac_link"
17353 case "(($ac_try" in
17354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17355 *) ac_try_echo=$ac_try;;
17357 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17358 (eval "$ac_link") 2>conftest.er1
17360 grep -v '^ *+' conftest.er1 >conftest.err
17362 cat conftest.err >&5
17363 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17364 (exit $ac_status); } && {
17365 test -z "$ac_c_werror_flag" ||
17366 test ! -s conftest.err
17367 } && test -s conftest$ac_exeext &&
17368 $as_test_x conftest$ac_exeext; then
17369 eval "$as_ac_var=yes"
17371 echo "$as_me: failed program was
:" >&5
17372 sed 's/^/| /' conftest.$ac_ext >&5
17374 eval "$as_ac_var=no
"
17377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17378 conftest$ac_exeext conftest.$ac_ext
17380 ac_res=`eval echo '${'$as_ac_var'}'`
17381 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17382 echo "${ECHO_T}$ac_res" >&6; }
17383 if test `eval echo '${'$as_ac_var'}'` = yes; then
17384 cat >>confdefs.h <<_ACEOF
17385 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17392 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17393 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17394 # Irix 4.0.5F has the header but not the library.
17395 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17398 cat >>confdefs.h <<\_ACEOF
17404 if test $ac_have_func = no; then
17405 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17406 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17407 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17408 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17409 echo $ECHO_N "(cached
) $ECHO_C" >&6
17411 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17412 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17414 # Is the header compilable?
17415 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
17416 echo $ECHO_N "checking inq_stats
/cpustats.h usability...
$ECHO_C" >&6; }
17417 cat >conftest.$ac_ext <<_ACEOF
17420 cat confdefs.h >>conftest.$ac_ext
17421 cat >>conftest.$ac_ext <<_ACEOF
17422 /* end confdefs.h. */
17423 $ac_includes_default
17424 #include <inq_stats/cpustats.h>
17426 rm -f conftest.$ac_objext
17427 if { (ac_try="$ac_compile"
17428 case "(($ac_try" in
17429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17430 *) ac_try_echo=$ac_try;;
17432 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17433 (eval "$ac_compile") 2>conftest.er1
17435 grep -v '^ *+' conftest.er1 >conftest.err
17437 cat conftest.err >&5
17438 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17439 (exit $ac_status); } && {
17440 test -z "$ac_c_werror_flag" ||
17441 test ! -s conftest.err
17442 } && test -s conftest.$ac_objext; then
17443 ac_header_compiler=yes
17445 echo "$as_me: failed program was
:" >&5
17446 sed 's/^/| /' conftest.$ac_ext >&5
17448 ac_header_compiler=no
17451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17452 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17453 echo "${ECHO_T}$ac_header_compiler" >&6; }
17455 # Is the header present?
17456 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
17457 echo $ECHO_N "checking inq_stats
/cpustats.h presence...
$ECHO_C" >&6; }
17458 cat >conftest.$ac_ext <<_ACEOF
17461 cat confdefs.h >>conftest.$ac_ext
17462 cat >>conftest.$ac_ext <<_ACEOF
17463 /* end confdefs.h. */
17464 #include <inq_stats/cpustats.h>
17466 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17467 case "(($ac_try" in
17468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17469 *) ac_try_echo=$ac_try;;
17471 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17472 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17474 grep -v '^ *+' conftest.er1 >conftest.err
17476 cat conftest.err >&5
17477 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17478 (exit $ac_status); } >/dev/null && {
17479 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17480 test ! -s conftest.err
17482 ac_header_preproc=yes
17484 echo "$as_me: failed program was
:" >&5
17485 sed 's/^/| /' conftest.$ac_ext >&5
17487 ac_header_preproc=no
17490 rm -f conftest.err conftest.$ac_ext
17491 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17492 echo "${ECHO_T}$ac_header_preproc" >&6; }
17494 # So? What about this header?
17495 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17497 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17498 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17499 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
17500 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
17501 ac_header_preproc=yes
17504 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
17505 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
17506 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
17507 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
17508 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
17509 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
17510 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17511 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17512 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
17513 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
17514 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
17515 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
17519 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17520 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17521 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17522 echo $ECHO_N "(cached
) $ECHO_C" >&6
17524 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17526 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17527 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17530 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17533 cat >>confdefs.h <<\_ACEOF
17538 cat >>confdefs.h <<\_ACEOF
17547 if test $ac_have_func = no; then
17548 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17549 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
17550 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
17551 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17552 echo $ECHO_N "(cached
) $ECHO_C" >&6
17554 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
17555 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17557 # Is the header compilable?
17558 { echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
17559 echo $ECHO_N "checking sys
/cpustats.h usability...
$ECHO_C" >&6; }
17560 cat >conftest.$ac_ext <<_ACEOF
17563 cat confdefs.h >>conftest.$ac_ext
17564 cat >>conftest.$ac_ext <<_ACEOF
17565 /* end confdefs.h. */
17566 $ac_includes_default
17567 #include <sys/cpustats.h>
17569 rm -f conftest.$ac_objext
17570 if { (ac_try="$ac_compile"
17571 case "(($ac_try" in
17572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17573 *) ac_try_echo=$ac_try;;
17575 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17576 (eval "$ac_compile") 2>conftest.er1
17578 grep -v '^ *+' conftest.er1 >conftest.err
17580 cat conftest.err >&5
17581 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17582 (exit $ac_status); } && {
17583 test -z "$ac_c_werror_flag" ||
17584 test ! -s conftest.err
17585 } && test -s conftest.$ac_objext; then
17586 ac_header_compiler=yes
17588 echo "$as_me: failed program was
:" >&5
17589 sed 's/^/| /' conftest.$ac_ext >&5
17591 ac_header_compiler=no
17594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17595 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17596 echo "${ECHO_T}$ac_header_compiler" >&6; }
17598 # Is the header present?
17599 { echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
17600 echo $ECHO_N "checking sys
/cpustats.h presence...
$ECHO_C" >&6; }
17601 cat >conftest.$ac_ext <<_ACEOF
17604 cat confdefs.h >>conftest.$ac_ext
17605 cat >>conftest.$ac_ext <<_ACEOF
17606 /* end confdefs.h. */
17607 #include <sys/cpustats.h>
17609 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17610 case "(($ac_try" in
17611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17612 *) ac_try_echo=$ac_try;;
17614 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17615 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17617 grep -v '^ *+' conftest.er1 >conftest.err
17619 cat conftest.err >&5
17620 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17621 (exit $ac_status); } >/dev/null && {
17622 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17623 test ! -s conftest.err
17625 ac_header_preproc=yes
17627 echo "$as_me: failed program was
:" >&5
17628 sed 's/^/| /' conftest.$ac_ext >&5
17630 ac_header_preproc=no
17633 rm -f conftest.err conftest.$ac_ext
17634 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17635 echo "${ECHO_T}$ac_header_preproc" >&6; }
17637 # So? What about this header?
17638 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17640 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17641 echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17642 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
17643 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
17644 ac_header_preproc=yes
17647 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
17648 echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
17649 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
17650 echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
17651 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
17652 echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
17653 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17654 echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17655 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
17656 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
17657 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
17658 echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
17662 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
17663 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
17664 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17665 echo $ECHO_N "(cached
) $ECHO_C" >&6
17667 ac_cv_header_sys_cpustats_h=$ac_header_preproc
17669 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
17670 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17673 if test $ac_cv_header_sys_cpustats_h = yes; then
17674 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
17683 if test $ac_have_func = no; then
17685 for ac_header in mach/mach.h
17687 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17688 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17689 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17690 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17691 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17692 echo $ECHO_N "(cached
) $ECHO_C" >&6
17694 ac_res=`eval echo '${'$as_ac_Header'}'`
17695 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17696 echo "${ECHO_T}$ac_res" >&6; }
17698 # Is the header compilable?
17699 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17700 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
17701 cat >conftest.$ac_ext <<_ACEOF
17704 cat confdefs.h >>conftest.$ac_ext
17705 cat >>conftest.$ac_ext <<_ACEOF
17706 /* end confdefs.h. */
17707 $ac_includes_default
17708 #include <$ac_header>
17710 rm -f conftest.$ac_objext
17711 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
17727 ac_header_compiler=yes
17729 echo "$as_me: failed program was
:" >&5
17730 sed 's/^/| /' conftest.$ac_ext >&5
17732 ac_header_compiler=no
17735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17736 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17737 echo "${ECHO_T}$ac_header_compiler" >&6; }
17739 # Is the header present?
17740 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17741 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
17742 cat >conftest.$ac_ext <<_ACEOF
17745 cat confdefs.h >>conftest.$ac_ext
17746 cat >>conftest.$ac_ext <<_ACEOF
17747 /* end confdefs.h. */
17748 #include <$ac_header>
17750 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17751 case "(($ac_try" in
17752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17753 *) ac_try_echo=$ac_try;;
17755 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17756 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17758 grep -v '^ *+' conftest.er1 >conftest.err
17760 cat conftest.err >&5
17761 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17762 (exit $ac_status); } >/dev/null && {
17763 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17764 test ! -s conftest.err
17766 ac_header_preproc=yes
17768 echo "$as_me: failed program was
:" >&5
17769 sed 's/^/| /' conftest.$ac_ext >&5
17771 ac_header_preproc=no
17774 rm -f conftest.err conftest.$ac_ext
17775 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17776 echo "${ECHO_T}$ac_header_preproc" >&6; }
17778 # So? What about this header?
17779 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17781 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17782 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17783 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17784 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17785 ac_header_preproc=yes
17788 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17789 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17790 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17791 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17792 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17793 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17794 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17795 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17796 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17797 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17798 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17799 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17803 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17804 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17805 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17806 echo $ECHO_N "(cached
) $ECHO_C" >&6
17808 eval "$as_ac_Header=\
$ac_header_preproc"
17810 ac_res=`eval echo '${'$as_ac_Header'}'`
17811 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17812 echo "${ECHO_T}$ac_res" >&6; }
17815 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17816 cat >>confdefs.h <<_ACEOF
17817 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17827 for ac_header in nlist.h
17829 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17830 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17831 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17832 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17833 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17834 echo $ECHO_N "(cached
) $ECHO_C" >&6
17836 ac_res=`eval echo '${'$as_ac_Header'}'`
17837 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17838 echo "${ECHO_T}$ac_res" >&6; }
17840 # Is the header compilable?
17841 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17842 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
17843 cat >conftest.$ac_ext <<_ACEOF
17846 cat confdefs.h >>conftest.$ac_ext
17847 cat >>conftest.$ac_ext <<_ACEOF
17848 /* end confdefs.h. */
17849 $ac_includes_default
17850 #include <$ac_header>
17852 rm -f conftest.$ac_objext
17853 if { (ac_try="$ac_compile"
17854 case "(($ac_try" in
17855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17856 *) ac_try_echo=$ac_try;;
17858 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17859 (eval "$ac_compile") 2>conftest.er1
17861 grep -v '^ *+' conftest.er1 >conftest.err
17863 cat conftest.err >&5
17864 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17865 (exit $ac_status); } && {
17866 test -z "$ac_c_werror_flag" ||
17867 test ! -s conftest.err
17868 } && test -s conftest.$ac_objext; then
17869 ac_header_compiler=yes
17871 echo "$as_me: failed program was
:" >&5
17872 sed 's/^/| /' conftest.$ac_ext >&5
17874 ac_header_compiler=no
17877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17878 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17879 echo "${ECHO_T}$ac_header_compiler" >&6; }
17881 # Is the header present?
17882 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17883 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
17884 cat >conftest.$ac_ext <<_ACEOF
17887 cat confdefs.h >>conftest.$ac_ext
17888 cat >>conftest.$ac_ext <<_ACEOF
17889 /* end confdefs.h. */
17890 #include <$ac_header>
17892 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17893 case "(($ac_try" in
17894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17895 *) ac_try_echo=$ac_try;;
17897 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17898 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17900 grep -v '^ *+' conftest.er1 >conftest.err
17902 cat conftest.err >&5
17903 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17904 (exit $ac_status); } >/dev/null && {
17905 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17906 test ! -s conftest.err
17908 ac_header_preproc=yes
17910 echo "$as_me: failed program was
:" >&5
17911 sed 's/^/| /' conftest.$ac_ext >&5
17913 ac_header_preproc=no
17916 rm -f conftest.err conftest.$ac_ext
17917 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17918 echo "${ECHO_T}$ac_header_preproc" >&6; }
17920 # So? What about this header?
17921 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17923 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17924 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17925 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17926 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17927 ac_header_preproc=yes
17930 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17931 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17932 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17933 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17934 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17935 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17936 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17937 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17938 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17939 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17940 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17941 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17945 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17946 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17947 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17948 echo $ECHO_N "(cached
) $ECHO_C" >&6
17950 eval "$as_ac_Header=\
$ac_header_preproc"
17952 ac_res=`eval echo '${'$as_ac_Header'}'`
17953 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17954 echo "${ECHO_T}$ac_res" >&6; }
17957 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17958 cat >>confdefs.h <<_ACEOF
17959 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17961 { echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
17962 echo $ECHO_N "checking
for struct nlist.n_un.n_name...
$ECHO_C" >&6; }
17963 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
17964 echo $ECHO_N "(cached
) $ECHO_C" >&6
17966 cat >conftest.$ac_ext <<_ACEOF
17969 cat confdefs.h >>conftest.$ac_ext
17970 cat >>conftest.$ac_ext <<_ACEOF
17971 /* end confdefs.h. */
17977 static struct nlist ac_aggr;
17978 if (ac_aggr.n_un.n_name)
17984 rm -f conftest.$ac_objext
17985 if { (ac_try="$ac_compile"
17986 case "(($ac_try" in
17987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17988 *) ac_try_echo=$ac_try;;
17990 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17991 (eval "$ac_compile") 2>conftest.er1
17993 grep -v '^ *+' conftest.er1 >conftest.err
17995 cat conftest.err >&5
17996 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17997 (exit $ac_status); } && {
17998 test -z "$ac_c_werror_flag" ||
17999 test ! -s conftest.err
18000 } && test -s conftest.$ac_objext; then
18001 ac_cv_member_struct_nlist_n_un_n_name=yes
18003 echo "$as_me: failed program was
:" >&5
18004 sed 's/^/| /' conftest.$ac_ext >&5
18006 cat >conftest.$ac_ext <<_ACEOF
18009 cat confdefs.h >>conftest.$ac_ext
18010 cat >>conftest.$ac_ext <<_ACEOF
18011 /* end confdefs.h. */
18017 static struct nlist ac_aggr;
18018 if (sizeof ac_aggr.n_un.n_name)
18024 rm -f conftest.$ac_objext
18025 if { (ac_try="$ac_compile"
18026 case "(($ac_try" in
18027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18028 *) ac_try_echo=$ac_try;;
18030 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18031 (eval "$ac_compile") 2>conftest.er1
18033 grep -v '^ *+' conftest.er1 >conftest.err
18035 cat conftest.err >&5
18036 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18037 (exit $ac_status); } && {
18038 test -z "$ac_c_werror_flag" ||
18039 test ! -s conftest.err
18040 } && test -s conftest.$ac_objext; then
18041 ac_cv_member_struct_nlist_n_un_n_name=yes
18043 echo "$as_me: failed program was
:" >&5
18044 sed 's/^/| /' conftest.$ac_ext >&5
18046 ac_cv_member_struct_nlist_n_un_n_name=no
18049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18054 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18055 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18056 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18058 cat >>confdefs.h <<_ACEOF
18059 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18063 cat >>confdefs.h <<\_ACEOF
18064 #define NLIST_NAME_UNION 1
18078 # Some definitions of getloadavg require that the program be installed setgid.
18079 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
18080 echo $ECHO_N "checking whether getloadavg requires setgid...
$ECHO_C" >&6; }
18081 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18082 echo $ECHO_N "(cached
) $ECHO_C" >&6
18084 cat >conftest.$ac_ext <<_ACEOF
18087 cat confdefs.h >>conftest.$ac_ext
18088 cat >>conftest.$ac_ext <<_ACEOF
18089 /* end confdefs.h. */
18090 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
18091 #ifdef LDAV_PRIVILEGED
18092 Yowza Am I SETGID yet
18095 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
18096 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
18097 ac_cv_func_getloadavg_setgid=yes
18099 ac_cv_func_getloadavg_setgid=no
18104 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
18105 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18106 if test $ac_cv_func_getloadavg_setgid = yes; then
18109 cat >>confdefs.h <<\_ACEOF
18110 #define GETLOADAVG_PRIVILEGED 1
18117 if test $ac_cv_func_getloadavg_setgid = yes; then
18118 { echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
18119 echo $ECHO_N "checking group of
/dev
/kmem...
$ECHO_C" >&6; }
18120 if test "${ac_cv_group_kmem+set}" = set; then
18121 echo $ECHO_N "(cached
) $ECHO_C" >&6
18123 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18124 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18125 # If we got an error (system does not support symlinks), try without -L.
18126 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18127 ac_cv_group_kmem=`echo $ac_ls_output \
18128 | sed -ne 's/[ ][ ]*/ /g;
18129 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18133 { echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
18134 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18135 KMEM_GROUP=$ac_cv_group_kmem
18137 if test "x
$ac_save_LIBS" = x; then
18138 GETLOADAVG_LIBS=$LIBS
18140 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s
!$ac_save_LIBS!!"`
18146 { echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
18147 echo $ECHO_N "checking
for _LARGEFILE_SOURCE value needed
for large files...
$ECHO_C" >&6; }
18148 if test "${ac_cv_sys_largefile_source+set}" = set; then
18149 echo $ECHO_N "(cached
) $ECHO_C" >&6
18152 cat >conftest.$ac_ext <<_ACEOF
18155 cat confdefs.h >>conftest.$ac_ext
18156 cat >>conftest.$ac_ext <<_ACEOF
18157 /* end confdefs.h. */
18162 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18167 rm -f conftest.$ac_objext conftest$ac_exeext
18168 if { (ac_try="$ac_link"
18169 case "(($ac_try" in
18170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18171 *) ac_try_echo=$ac_try;;
18173 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18174 (eval "$ac_link") 2>conftest.er1
18176 grep -v '^ *+' conftest.er1 >conftest.err
18178 cat conftest.err >&5
18179 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18180 (exit $ac_status); } && {
18181 test -z "$ac_c_werror_flag" ||
18182 test ! -s conftest.err
18183 } && test -s conftest$ac_exeext &&
18184 $as_test_x conftest$ac_exeext; then
18185 ac_cv_sys_largefile_source=no; break
18187 echo "$as_me: failed program was
:" >&5
18188 sed 's/^/| /' conftest.$ac_ext >&5
18193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18194 conftest$ac_exeext conftest.$ac_ext
18195 cat >conftest.$ac_ext <<_ACEOF
18198 cat confdefs.h >>conftest.$ac_ext
18199 cat >>conftest.$ac_ext <<_ACEOF
18200 /* end confdefs.h. */
18201 #define _LARGEFILE_SOURCE 1
18206 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18211 rm -f conftest.$ac_objext conftest$ac_exeext
18212 if { (ac_try="$ac_link"
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_link") 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_exeext &&
18228 $as_test_x conftest$ac_exeext; then
18229 ac_cv_sys_largefile_source=1; break
18231 echo "$as_me: failed program was
:" >&5
18232 sed 's/^/| /' conftest.$ac_ext >&5
18237 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18238 conftest$ac_exeext conftest.$ac_ext
18239 ac_cv_sys_largefile_source=unknown
18243 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
18244 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18245 case $ac_cv_sys_largefile_source in #(
18248 cat >>confdefs.h <<_ACEOF
18249 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18255 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18256 # in glibc 2.1.3, but that breaks too many other things.
18257 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18258 if test $ac_cv_sys_largefile_source != unknown; then
18260 cat >>confdefs.h <<\_ACEOF
18261 #define HAVE_FSEEKO 1
18267 # Configure getopt.
18268 # getopt.m4 serial 10
18270 # The getopt module assume you want GNU getopt, with getopt_long etc,
18271 # rather than vanilla POSIX getopt. This means your your code should
18272 # always include <getopt.h> for the getopt prototypes.
18284 # Prerequisites of lib/getopt*.
18291 for ac_header in getopt.h
18293 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18294 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18295 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18296 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18297 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18298 echo $ECHO_N "(cached
) $ECHO_C" >&6
18300 ac_res=`eval echo '${'$as_ac_Header'}'`
18301 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18302 echo "${ECHO_T}$ac_res" >&6; }
18304 # Is the header compilable?
18305 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18306 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18307 cat >conftest.$ac_ext <<_ACEOF
18310 cat confdefs.h >>conftest.$ac_ext
18311 cat >>conftest.$ac_ext <<_ACEOF
18312 /* end confdefs.h. */
18313 $ac_includes_default
18314 #include <$ac_header>
18316 rm -f conftest.$ac_objext
18317 if { (ac_try="$ac_compile"
18318 case "(($ac_try" in
18319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18320 *) ac_try_echo=$ac_try;;
18322 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18323 (eval "$ac_compile") 2>conftest.er1
18325 grep -v '^ *+' conftest.er1 >conftest.err
18327 cat conftest.err >&5
18328 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18329 (exit $ac_status); } && {
18330 test -z "$ac_c_werror_flag" ||
18331 test ! -s conftest.err
18332 } && test -s conftest.$ac_objext; then
18333 ac_header_compiler=yes
18335 echo "$as_me: failed program was
:" >&5
18336 sed 's/^/| /' conftest.$ac_ext >&5
18338 ac_header_compiler=no
18341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18342 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18343 echo "${ECHO_T}$ac_header_compiler" >&6; }
18345 # Is the header present?
18346 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18347 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18348 cat >conftest.$ac_ext <<_ACEOF
18351 cat confdefs.h >>conftest.$ac_ext
18352 cat >>conftest.$ac_ext <<_ACEOF
18353 /* end confdefs.h. */
18354 #include <$ac_header>
18356 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18357 case "(($ac_try" in
18358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18359 *) ac_try_echo=$ac_try;;
18361 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18362 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18364 grep -v '^ *+' conftest.er1 >conftest.err
18366 cat conftest.err >&5
18367 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18368 (exit $ac_status); } >/dev/null && {
18369 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18370 test ! -s conftest.err
18372 ac_header_preproc=yes
18374 echo "$as_me: failed program was
:" >&5
18375 sed 's/^/| /' conftest.$ac_ext >&5
18377 ac_header_preproc=no
18380 rm -f conftest.err conftest.$ac_ext
18381 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18382 echo "${ECHO_T}$ac_header_preproc" >&6; }
18384 # So? What about this header?
18385 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18387 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18388 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18389 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18390 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18391 ac_header_preproc=yes
18394 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18395 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18396 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18397 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18398 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18399 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18400 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18401 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18402 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18403 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18404 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18405 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18409 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18410 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18411 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18412 echo $ECHO_N "(cached
) $ECHO_C" >&6
18414 eval "$as_ac_Header=\
$ac_header_preproc"
18416 ac_res=`eval echo '${'$as_ac_Header'}'`
18417 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18418 echo "${ECHO_T}$ac_res" >&6; }
18421 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18422 cat >>confdefs.h <<_ACEOF
18423 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18432 if test -z "$GETOPT_H"; then
18434 for ac_func in getopt_long_only
18436 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18437 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18438 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18439 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18440 echo $ECHO_N "(cached
) $ECHO_C" >&6
18442 cat >conftest.$ac_ext <<_ACEOF
18445 cat confdefs.h >>conftest.$ac_ext
18446 cat >>conftest.$ac_ext <<_ACEOF
18447 /* end confdefs.h. */
18448 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18449 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18450 #define $ac_func innocuous_$ac_func
18452 /* System header to define __stub macros and hopefully few prototypes,
18453 which can conflict with char $ac_func (); below.
18454 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18455 <limits.h> exists even on freestanding compilers. */
18458 # include <limits.h>
18460 # include <assert.h>
18465 /* Override any GCC internal prototype to avoid an error.
18466 Use char because int might match the return type of a GCC
18467 builtin and then its argument prototype would still apply. */
18472 /* The GNU C library defines this for functions which it implements
18473 to always fail with ENOSYS. Some functions are actually named
18474 something starting with __ and the normal name is an alias. */
18475 #if defined __stub_$ac_func || defined __stub___$ac_func
18482 return $ac_func ();
18487 rm -f conftest.$ac_objext conftest$ac_exeext
18488 if { (ac_try="$ac_link"
18489 case "(($ac_try" in
18490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18491 *) ac_try_echo=$ac_try;;
18493 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18494 (eval "$ac_link") 2>conftest.er1
18496 grep -v '^ *+' conftest.er1 >conftest.err
18498 cat conftest.err >&5
18499 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18500 (exit $ac_status); } && {
18501 test -z "$ac_c_werror_flag" ||
18502 test ! -s conftest.err
18503 } && test -s conftest$ac_exeext &&
18504 $as_test_x conftest$ac_exeext; then
18505 eval "$as_ac_var=yes"
18507 echo "$as_me: failed program was
:" >&5
18508 sed 's/^/| /' conftest.$ac_ext >&5
18510 eval "$as_ac_var=no
"
18513 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18514 conftest$ac_exeext conftest.$ac_ext
18516 ac_res=`eval echo '${'$as_ac_var'}'`
18517 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18518 echo "${ECHO_T}$ac_res" >&6; }
18519 if test `eval echo '${'$as_ac_var'}'` = yes; then
18520 cat >>confdefs.h <<_ACEOF
18521 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18531 if test -z "$GETOPT_H"; then
18532 { echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
18533 echo $ECHO_N "checking whether optreset is declared...
$ECHO_C" >&6; }
18534 if test "${ac_cv_have_decl_optreset+set}" = set; then
18535 echo $ECHO_N "(cached
) $ECHO_C" >&6
18537 cat >conftest.$ac_ext <<_ACEOF
18540 cat confdefs.h >>conftest.$ac_ext
18541 cat >>conftest.$ac_ext <<_ACEOF
18542 /* end confdefs.h. */
18543 #include <getopt.h>
18556 rm -f conftest.$ac_objext
18557 if { (ac_try="$ac_compile"
18558 case "(($ac_try" in
18559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18560 *) ac_try_echo=$ac_try;;
18562 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18563 (eval "$ac_compile") 2>conftest.er1
18565 grep -v '^ *+' conftest.er1 >conftest.err
18567 cat conftest.err >&5
18568 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18569 (exit $ac_status); } && {
18570 test -z "$ac_c_werror_flag" ||
18571 test ! -s conftest.err
18572 } && test -s conftest.$ac_objext; then
18573 ac_cv_have_decl_optreset=yes
18575 echo "$as_me: failed program was
:" >&5
18576 sed 's/^/| /' conftest.$ac_ext >&5
18578 ac_cv_have_decl_optreset=no
18581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18583 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
18584 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
18585 if test $ac_cv_have_decl_optreset = yes; then
18591 if test -z "$GETOPT_H"; then
18592 { echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
18593 echo $ECHO_N "checking
for working GNU getopt
function...
$ECHO_C" >&6; }
18594 if test "${gl_cv_func_gnu_getopt+set}" = set; then
18595 echo $ECHO_N "(cached
) $ECHO_C" >&6
18597 if test "$cross_compiling" = yes; then
18598 { echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
18599 echo $ECHO_N "checking whether getopt_clip is declared...
$ECHO_C" >&6; }
18600 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
18601 echo $ECHO_N "(cached
) $ECHO_C" >&6
18603 cat >conftest.$ac_ext <<_ACEOF
18606 cat confdefs.h >>conftest.$ac_ext
18607 cat >>conftest.$ac_ext <<_ACEOF
18608 /* end confdefs.h. */
18609 #include <getopt.h>
18614 #ifndef getopt_clip
18615 (void) getopt_clip;
18622 rm -f conftest.$ac_objext
18623 if { (ac_try="$ac_compile"
18624 case "(($ac_try" in
18625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18626 *) ac_try_echo=$ac_try;;
18628 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18629 (eval "$ac_compile") 2>conftest.er1
18631 grep -v '^ *+' conftest.er1 >conftest.err
18633 cat conftest.err >&5
18634 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18635 (exit $ac_status); } && {
18636 test -z "$ac_c_werror_flag" ||
18637 test ! -s conftest.err
18638 } && test -s conftest.$ac_objext; then
18639 ac_cv_have_decl_getopt_clip=yes
18641 echo "$as_me: failed program was
:" >&5
18642 sed 's/^/| /' conftest.$ac_ext >&5
18644 ac_cv_have_decl_getopt_clip=no
18647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18649 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
18650 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
18651 if test $ac_cv_have_decl_getopt_clip = yes; then
18652 gl_cv_func_gnu_getopt=no
18654 gl_cv_func_gnu_getopt=yes
18658 cat >conftest.$ac_ext <<_ACEOF
18661 cat confdefs.h >>conftest.$ac_ext
18662 cat >>conftest.$ac_ext <<_ACEOF
18663 /* end confdefs.h. */
18664 #include <getopt.h>
18670 myargv[0] = "conftest
";
18673 return getopt (2, myargv, "+a
") != '?';
18679 rm -f conftest$ac_exeext
18680 if { (ac_try="$ac_link"
18681 case "(($ac_try" in
18682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18683 *) ac_try_echo=$ac_try;;
18685 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18686 (eval "$ac_link") 2>&5
18688 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18689 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18690 { (case "(($ac_try" in
18691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18692 *) ac_try_echo=$ac_try;;
18694 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18695 (eval "$ac_try") 2>&5
18697 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18698 (exit $ac_status); }; }; then
18699 gl_cv_func_gnu_getopt=yes
18701 echo "$as_me: program exited with status
$ac_status" >&5
18702 echo "$as_me: failed program was
:" >&5
18703 sed 's/^/| /' conftest.$ac_ext >&5
18705 ( exit $ac_status )
18706 gl_cv_func_gnu_getopt=no
18708 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18713 { echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
18714 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
18715 if test "$gl_cv_func_gnu_getopt" = "no
"; then
18722 if test -n "$GETOPT_H"; then
18727 cat >>confdefs.h <<\_ACEOF
18728 #define __GETOPT_PREFIX rpl_
18734 GETOPTOBJS='getopt.o getopt1.o'
18741 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
18742 echo $ECHO_N "checking whether getpgrp requires zero arguments...
$ECHO_C" >&6; }
18743 if test "${ac_cv_func_getpgrp_void+set}" = set; then
18744 echo $ECHO_N "(cached
) $ECHO_C" >&6
18746 # Use it with a single arg.
18747 cat >conftest.$ac_ext <<_ACEOF
18750 cat confdefs.h >>conftest.$ac_ext
18751 cat >>conftest.$ac_ext <<_ACEOF
18752 /* end confdefs.h. */
18753 $ac_includes_default
18762 rm -f conftest.$ac_objext
18763 if { (ac_try="$ac_compile"
18764 case "(($ac_try" in
18765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18766 *) ac_try_echo=$ac_try;;
18768 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18769 (eval "$ac_compile") 2>conftest.er1
18771 grep -v '^ *+' conftest.er1 >conftest.err
18773 cat conftest.err >&5
18774 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18775 (exit $ac_status); } && {
18776 test -z "$ac_c_werror_flag" ||
18777 test ! -s conftest.err
18778 } && test -s conftest.$ac_objext; then
18779 ac_cv_func_getpgrp_void=no
18781 echo "$as_me: failed program was
:" >&5
18782 sed 's/^/| /' conftest.$ac_ext >&5
18784 ac_cv_func_getpgrp_void=yes
18787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18790 { echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
18791 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
18792 if test $ac_cv_func_getpgrp_void = yes; then
18794 cat >>confdefs.h <<\_ACEOF
18795 #define GETPGRP_VOID 1
18802 for ac_func in strftime
18804 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18805 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18806 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18807 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18808 echo $ECHO_N "(cached
) $ECHO_C" >&6
18810 cat >conftest.$ac_ext <<_ACEOF
18813 cat confdefs.h >>conftest.$ac_ext
18814 cat >>conftest.$ac_ext <<_ACEOF
18815 /* end confdefs.h. */
18816 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18817 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18818 #define $ac_func innocuous_$ac_func
18820 /* System header to define __stub macros and hopefully few prototypes,
18821 which can conflict with char $ac_func (); below.
18822 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18823 <limits.h> exists even on freestanding compilers. */
18826 # include <limits.h>
18828 # include <assert.h>
18833 /* Override any GCC internal prototype to avoid an error.
18834 Use char because int might match the return type of a GCC
18835 builtin and then its argument prototype would still apply. */
18840 /* The GNU C library defines this for functions which it implements
18841 to always fail with ENOSYS. Some functions are actually named
18842 something starting with __ and the normal name is an alias. */
18843 #if defined __stub_$ac_func || defined __stub___$ac_func
18850 return $ac_func ();
18855 rm -f conftest.$ac_objext conftest$ac_exeext
18856 if { (ac_try="$ac_link"
18857 case "(($ac_try" in
18858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18859 *) ac_try_echo=$ac_try;;
18861 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18862 (eval "$ac_link") 2>conftest.er1
18864 grep -v '^ *+' conftest.er1 >conftest.err
18866 cat conftest.err >&5
18867 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18868 (exit $ac_status); } && {
18869 test -z "$ac_c_werror_flag" ||
18870 test ! -s conftest.err
18871 } && test -s conftest$ac_exeext &&
18872 $as_test_x conftest$ac_exeext; then
18873 eval "$as_ac_var=yes"
18875 echo "$as_me: failed program was
:" >&5
18876 sed 's/^/| /' conftest.$ac_ext >&5
18878 eval "$as_ac_var=no
"
18881 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18882 conftest$ac_exeext conftest.$ac_ext
18884 ac_res=`eval echo '${'$as_ac_var'}'`
18885 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18886 echo "${ECHO_T}$ac_res" >&6; }
18887 if test `eval echo '${'$as_ac_var'}'` = yes; then
18888 cat >>confdefs.h <<_ACEOF
18889 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18893 # strftime is in -lintl on SCO UNIX.
18894 { echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
18895 echo $ECHO_N "checking
for strftime
in -lintl...
$ECHO_C" >&6; }
18896 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18897 echo $ECHO_N "(cached
) $ECHO_C" >&6
18899 ac_check_lib_save_LIBS=$LIBS
18900 LIBS="-lintl $LIBS"
18901 cat >conftest.$ac_ext <<_ACEOF
18904 cat confdefs.h >>conftest.$ac_ext
18905 cat >>conftest.$ac_ext <<_ACEOF
18906 /* end confdefs.h. */
18908 /* Override any GCC internal prototype to avoid an error.
18909 Use char because int might match the return type of a GCC
18910 builtin and then its argument prototype would still apply. */
18918 return strftime ();
18923 rm -f conftest.$ac_objext conftest$ac_exeext
18924 if { (ac_try="$ac_link"
18925 case "(($ac_try" in
18926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18927 *) ac_try_echo=$ac_try;;
18929 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18930 (eval "$ac_link") 2>conftest.er1
18932 grep -v '^ *+' conftest.er1 >conftest.err
18934 cat conftest.err >&5
18935 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18936 (exit $ac_status); } && {
18937 test -z "$ac_c_werror_flag" ||
18938 test ! -s conftest.err
18939 } && test -s conftest$ac_exeext &&
18940 $as_test_x conftest$ac_exeext; then
18941 ac_cv_lib_intl_strftime=yes
18943 echo "$as_me: failed program was
:" >&5
18944 sed 's/^/| /' conftest.$ac_ext >&5
18946 ac_cv_lib_intl_strftime=no
18949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18950 conftest$ac_exeext conftest.$ac_ext
18951 LIBS=$ac_check_lib_save_LIBS
18953 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
18954 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
18955 if test $ac_cv_lib_intl_strftime = yes; then
18956 cat >>confdefs.h <<\_ACEOF
18957 #define HAVE_STRFTIME 1
18960 LIBS="-lintl $LIBS"
18969 for ac_func in grantpt
18971 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18972 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18973 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18974 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18975 echo $ECHO_N "(cached
) $ECHO_C" >&6
18977 cat >conftest.$ac_ext <<_ACEOF
18980 cat confdefs.h >>conftest.$ac_ext
18981 cat >>conftest.$ac_ext <<_ACEOF
18982 /* end confdefs.h. */
18983 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18984 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18985 #define $ac_func innocuous_$ac_func
18987 /* System header to define __stub macros and hopefully few prototypes,
18988 which can conflict with char $ac_func (); below.
18989 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18990 <limits.h> exists even on freestanding compilers. */
18993 # include <limits.h>
18995 # include <assert.h>
19000 /* Override any GCC internal prototype to avoid an error.
19001 Use char because int might match the return type of a GCC
19002 builtin and then its argument prototype would still apply. */
19007 /* The GNU C library defines this for functions which it implements
19008 to always fail with ENOSYS. Some functions are actually named
19009 something starting with __ and the normal name is an alias. */
19010 #if defined __stub_$ac_func || defined __stub___$ac_func
19017 return $ac_func ();
19022 rm -f conftest.$ac_objext conftest$ac_exeext
19023 if { (ac_try="$ac_link"
19024 case "(($ac_try" in
19025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19026 *) ac_try_echo=$ac_try;;
19028 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19029 (eval "$ac_link") 2>conftest.er1
19031 grep -v '^ *+' conftest.er1 >conftest.err
19033 cat conftest.err >&5
19034 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19035 (exit $ac_status); } && {
19036 test -z "$ac_c_werror_flag" ||
19037 test ! -s conftest.err
19038 } && test -s conftest$ac_exeext &&
19039 $as_test_x conftest$ac_exeext; then
19040 eval "$as_ac_var=yes"
19042 echo "$as_me: failed program was
:" >&5
19043 sed 's/^/| /' conftest.$ac_ext >&5
19045 eval "$as_ac_var=no
"
19048 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19049 conftest$ac_exeext conftest.$ac_ext
19051 ac_res=`eval echo '${'$as_ac_var'}'`
19052 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19053 echo "${ECHO_T}$ac_res" >&6; }
19054 if test `eval echo '${'$as_ac_var'}'` = yes; then
19055 cat >>confdefs.h <<_ACEOF
19056 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19063 # PTY-related GNU extensions.
19065 for ac_func in getpt
19067 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19068 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19069 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19070 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19071 echo $ECHO_N "(cached
) $ECHO_C" >&6
19073 cat >conftest.$ac_ext <<_ACEOF
19076 cat confdefs.h >>conftest.$ac_ext
19077 cat >>conftest.$ac_ext <<_ACEOF
19078 /* end confdefs.h. */
19079 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19080 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19081 #define $ac_func innocuous_$ac_func
19083 /* System header to define __stub macros and hopefully few prototypes,
19084 which can conflict with char $ac_func (); below.
19085 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19086 <limits.h> exists even on freestanding compilers. */
19089 # include <limits.h>
19091 # include <assert.h>
19096 /* Override any GCC internal prototype to avoid an error.
19097 Use char because int might match the return type of a GCC
19098 builtin and then its argument prototype would still apply. */
19103 /* The GNU C library defines this for functions which it implements
19104 to always fail with ENOSYS. Some functions are actually named
19105 something starting with __ and the normal name is an alias. */
19106 #if defined __stub_$ac_func || defined __stub___$ac_func
19113 return $ac_func ();
19118 rm -f conftest.$ac_objext conftest$ac_exeext
19119 if { (ac_try="$ac_link"
19120 case "(($ac_try" in
19121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19122 *) ac_try_echo=$ac_try;;
19124 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19125 (eval "$ac_link") 2>conftest.er1
19127 grep -v '^ *+' conftest.er1 >conftest.err
19129 cat conftest.err >&5
19130 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19131 (exit $ac_status); } && {
19132 test -z "$ac_c_werror_flag" ||
19133 test ! -s conftest.err
19134 } && test -s conftest$ac_exeext &&
19135 $as_test_x conftest$ac_exeext; then
19136 eval "$as_ac_var=yes"
19138 echo "$as_me: failed program was
:" >&5
19139 sed 's/^/| /' conftest.$ac_ext >&5
19141 eval "$as_ac_var=no
"
19144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19145 conftest$ac_exeext conftest.$ac_ext
19147 ac_res=`eval echo '${'$as_ac_var'}'`
19148 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19149 echo "${ECHO_T}$ac_res" >&6; }
19150 if test `eval echo '${'$as_ac_var'}'` = yes; then
19151 cat >>confdefs.h <<_ACEOF
19152 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19159 # Check this now, so that we will NOT find the above functions in ncurses.
19160 # That is because we have not set up to link ncurses in lib-src.
19161 # It's better to believe a function is not available
19162 # than to expect to find it in ncurses.
19164 { echo "$as_me:$LINENO: checking
for tparm
in -lncurses" >&5
19165 echo $ECHO_N "checking
for tparm
in -lncurses...
$ECHO_C" >&6; }
19166 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19167 echo $ECHO_N "(cached
) $ECHO_C" >&6
19169 ac_check_lib_save_LIBS=$LIBS
19170 LIBS="-lncurses $LIBS"
19171 cat >conftest.$ac_ext <<_ACEOF
19174 cat confdefs.h >>conftest.$ac_ext
19175 cat >>conftest.$ac_ext <<_ACEOF
19176 /* end confdefs.h. */
19178 /* Override any GCC internal prototype to avoid an error.
19179 Use char because int might match the return type of a GCC
19180 builtin and then its argument prototype would still apply. */
19193 rm -f conftest.$ac_objext conftest$ac_exeext
19194 if { (ac_try="$ac_link"
19195 case "(($ac_try" in
19196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19197 *) ac_try_echo=$ac_try;;
19199 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19200 (eval "$ac_link") 2>conftest.er1
19202 grep -v '^ *+' conftest.er1 >conftest.err
19204 cat conftest.err >&5
19205 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19206 (exit $ac_status); } && {
19207 test -z "$ac_c_werror_flag" ||
19208 test ! -s conftest.err
19209 } && test -s conftest$ac_exeext &&
19210 $as_test_x conftest$ac_exeext; then
19211 ac_cv_lib_ncurses_tparm=yes
19213 echo "$as_me: failed program was
:" >&5
19214 sed 's/^/| /' conftest.$ac_ext >&5
19216 ac_cv_lib_ncurses_tparm=no
19219 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19220 conftest$ac_exeext conftest.$ac_ext
19221 LIBS=$ac_check_lib_save_LIBS
19223 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ncurses_tparm" >&5
19224 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19225 if test $ac_cv_lib_ncurses_tparm = yes; then
19226 cat >>confdefs.h <<_ACEOF
19227 #define HAVE_LIBNCURSES 1
19230 LIBS="-lncurses $LIBS"
19235 # Do we need the Hesiod library to provide the support routines?
19236 if test "$with_hesiod" = yes ; then
19237 # Don't set $LIBS here -- see comments above.
19239 { echo "$as_me:$LINENO: checking
for res_send
" >&5
19240 echo $ECHO_N "checking
for res_send...
$ECHO_C" >&6; }
19241 if test "${ac_cv_func_res_send+set}" = set; then
19242 echo $ECHO_N "(cached
) $ECHO_C" >&6
19244 cat >conftest.$ac_ext <<_ACEOF
19247 cat confdefs.h >>conftest.$ac_ext
19248 cat >>conftest.$ac_ext <<_ACEOF
19249 /* end confdefs.h. */
19250 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19251 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19252 #define res_send innocuous_res_send
19254 /* System header to define __stub macros and hopefully few prototypes,
19255 which can conflict with char res_send (); below.
19256 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19257 <limits.h> exists even on freestanding compilers. */
19260 # include <limits.h>
19262 # include <assert.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. */
19274 /* The GNU C library defines this for functions which it implements
19275 to always fail with ENOSYS. Some functions are actually named
19276 something starting with __ and the normal name is an alias. */
19277 #if defined __stub_res_send || defined __stub___res_send
19284 return res_send ();
19289 rm -f conftest.$ac_objext conftest$ac_exeext
19290 if { (ac_try="$ac_link"
19291 case "(($ac_try" in
19292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19293 *) ac_try_echo=$ac_try;;
19295 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19296 (eval "$ac_link") 2>conftest.er1
19298 grep -v '^ *+' conftest.er1 >conftest.err
19300 cat conftest.err >&5
19301 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19302 (exit $ac_status); } && {
19303 test -z "$ac_c_werror_flag" ||
19304 test ! -s conftest.err
19305 } && test -s conftest$ac_exeext &&
19306 $as_test_x conftest$ac_exeext; then
19307 ac_cv_func_res_send=yes
19309 echo "$as_me: failed program was
:" >&5
19310 sed 's/^/| /' conftest.$ac_ext >&5
19312 ac_cv_func_res_send=no
19315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19316 conftest$ac_exeext conftest.$ac_ext
19318 { echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
19319 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19320 if test $ac_cv_func_res_send = yes; then
19323 { echo "$as_me:$LINENO: checking
for __res_send
" >&5
19324 echo $ECHO_N "checking
for __res_send...
$ECHO_C" >&6; }
19325 if test "${ac_cv_func___res_send+set}" = set; then
19326 echo $ECHO_N "(cached
) $ECHO_C" >&6
19328 cat >conftest.$ac_ext <<_ACEOF
19331 cat confdefs.h >>conftest.$ac_ext
19332 cat >>conftest.$ac_ext <<_ACEOF
19333 /* end confdefs.h. */
19334 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19335 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19336 #define __res_send innocuous___res_send
19338 /* System header to define __stub macros and hopefully few prototypes,
19339 which can conflict with char __res_send (); below.
19340 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19341 <limits.h> exists even on freestanding compilers. */
19344 # include <limits.h>
19346 # include <assert.h>
19351 /* Override any GCC internal prototype to avoid an error.
19352 Use char because int might match the return type of a GCC
19353 builtin and then its argument prototype would still apply. */
19357 char __res_send ();
19358 /* The GNU C library defines this for functions which it implements
19359 to always fail with ENOSYS. Some functions are actually named
19360 something starting with __ and the normal name is an alias. */
19361 #if defined __stub___res_send || defined __stub_____res_send
19368 return __res_send ();
19373 rm -f conftest.$ac_objext conftest$ac_exeext
19374 if { (ac_try="$ac_link"
19375 case "(($ac_try" in
19376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19377 *) ac_try_echo=$ac_try;;
19379 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19380 (eval "$ac_link") 2>conftest.er1
19382 grep -v '^ *+' conftest.er1 >conftest.err
19384 cat conftest.err >&5
19385 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19386 (exit $ac_status); } && {
19387 test -z "$ac_c_werror_flag" ||
19388 test ! -s conftest.err
19389 } && test -s conftest$ac_exeext &&
19390 $as_test_x conftest$ac_exeext; then
19391 ac_cv_func___res_send=yes
19393 echo "$as_me: failed program was
:" >&5
19394 sed 's/^/| /' conftest.$ac_ext >&5
19396 ac_cv_func___res_send=no
19399 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19400 conftest$ac_exeext conftest.$ac_ext
19402 { echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
19403 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19404 if test $ac_cv_func___res_send = yes; then
19407 { echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
19408 echo $ECHO_N "checking
for res_send
in -lresolv...
$ECHO_C" >&6; }
19409 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19410 echo $ECHO_N "(cached
) $ECHO_C" >&6
19412 ac_check_lib_save_LIBS=$LIBS
19413 LIBS="-lresolv $LIBS"
19414 cat >conftest.$ac_ext <<_ACEOF
19417 cat confdefs.h >>conftest.$ac_ext
19418 cat >>conftest.$ac_ext <<_ACEOF
19419 /* end confdefs.h. */
19421 /* Override any GCC internal prototype to avoid an error.
19422 Use char because int might match the return type of a GCC
19423 builtin and then its argument prototype would still apply. */
19431 return res_send ();
19436 rm -f conftest.$ac_objext conftest$ac_exeext
19437 if { (ac_try="$ac_link"
19438 case "(($ac_try" in
19439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19440 *) ac_try_echo=$ac_try;;
19442 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19443 (eval "$ac_link") 2>conftest.er1
19445 grep -v '^ *+' conftest.er1 >conftest.err
19447 cat conftest.err >&5
19448 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19449 (exit $ac_status); } && {
19450 test -z "$ac_c_werror_flag" ||
19451 test ! -s conftest.err
19452 } && test -s conftest$ac_exeext &&
19453 $as_test_x conftest$ac_exeext; then
19454 ac_cv_lib_resolv_res_send=yes
19456 echo "$as_me: failed program was
:" >&5
19457 sed 's/^/| /' conftest.$ac_ext >&5
19459 ac_cv_lib_resolv_res_send=no
19462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19463 conftest$ac_exeext conftest.$ac_ext
19464 LIBS=$ac_check_lib_save_LIBS
19466 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
19467 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
19468 if test $ac_cv_lib_resolv_res_send = yes; then
19471 { echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
19472 echo $ECHO_N "checking
for __res_send
in -lresolv...
$ECHO_C" >&6; }
19473 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
19474 echo $ECHO_N "(cached
) $ECHO_C" >&6
19476 ac_check_lib_save_LIBS=$LIBS
19477 LIBS="-lresolv $LIBS"
19478 cat >conftest.$ac_ext <<_ACEOF
19481 cat confdefs.h >>conftest.$ac_ext
19482 cat >>conftest.$ac_ext <<_ACEOF
19483 /* end confdefs.h. */
19485 /* Override any GCC internal prototype to avoid an error.
19486 Use char because int might match the return type of a GCC
19487 builtin and then its argument prototype would still apply. */
19491 char __res_send ();
19495 return __res_send ();
19500 rm -f conftest.$ac_objext conftest$ac_exeext
19501 if { (ac_try="$ac_link"
19502 case "(($ac_try" in
19503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19504 *) ac_try_echo=$ac_try;;
19506 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19507 (eval "$ac_link") 2>conftest.er1
19509 grep -v '^ *+' conftest.er1 >conftest.err
19511 cat conftest.err >&5
19512 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19513 (exit $ac_status); } && {
19514 test -z "$ac_c_werror_flag" ||
19515 test ! -s conftest.err
19516 } && test -s conftest$ac_exeext &&
19517 $as_test_x conftest$ac_exeext; then
19518 ac_cv_lib_resolv___res_send=yes
19520 echo "$as_me: failed program was
:" >&5
19521 sed 's/^/| /' conftest.$ac_ext >&5
19523 ac_cv_lib_resolv___res_send=no
19526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19527 conftest$ac_exeext conftest.$ac_ext
19528 LIBS=$ac_check_lib_save_LIBS
19530 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
19531 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
19532 if test $ac_cv_lib_resolv___res_send = yes; then
19542 if test "$resolv" = yes ; then
19545 cat >>confdefs.h <<\_ACEOF
19546 #define HAVE_LIBRESOLV 1
19552 { echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
19553 echo $ECHO_N "checking
for hes_getmailhost...
$ECHO_C" >&6; }
19554 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
19555 echo $ECHO_N "(cached
) $ECHO_C" >&6
19557 cat >conftest.$ac_ext <<_ACEOF
19560 cat confdefs.h >>conftest.$ac_ext
19561 cat >>conftest.$ac_ext <<_ACEOF
19562 /* end confdefs.h. */
19563 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
19564 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19565 #define hes_getmailhost innocuous_hes_getmailhost
19567 /* System header to define __stub macros and hopefully few prototypes,
19568 which can conflict with char hes_getmailhost (); below.
19569 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19570 <limits.h> exists even on freestanding compilers. */
19573 # include <limits.h>
19575 # include <assert.h>
19578 #undef hes_getmailhost
19580 /* Override any GCC internal prototype to avoid an error.
19581 Use char because int might match the return type of a GCC
19582 builtin and then its argument prototype would still apply. */
19586 char hes_getmailhost ();
19587 /* The GNU C library defines this for functions which it implements
19588 to always fail with ENOSYS. Some functions are actually named
19589 something starting with __ and the normal name is an alias. */
19590 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
19597 return hes_getmailhost ();
19602 rm -f conftest.$ac_objext conftest$ac_exeext
19603 if { (ac_try="$ac_link"
19604 case "(($ac_try" in
19605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19606 *) ac_try_echo=$ac_try;;
19608 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19609 (eval "$ac_link") 2>conftest.er1
19611 grep -v '^ *+' conftest.er1 >conftest.err
19613 cat conftest.err >&5
19614 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19615 (exit $ac_status); } && {
19616 test -z "$ac_c_werror_flag" ||
19617 test ! -s conftest.err
19618 } && test -s conftest$ac_exeext &&
19619 $as_test_x conftest$ac_exeext; then
19620 ac_cv_func_hes_getmailhost=yes
19622 echo "$as_me: failed program was
:" >&5
19623 sed 's/^/| /' conftest.$ac_ext >&5
19625 ac_cv_func_hes_getmailhost=no
19628 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19629 conftest$ac_exeext conftest.$ac_ext
19631 { echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
19632 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
19633 if test $ac_cv_func_hes_getmailhost = yes; then
19636 { echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
19637 echo $ECHO_N "checking
for hes_getmailhost
in -lhesiod...
$ECHO_C" >&6; }
19638 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
19639 echo $ECHO_N "(cached
) $ECHO_C" >&6
19641 ac_check_lib_save_LIBS=$LIBS
19642 LIBS="-lhesiod $RESOLVLIB $LIBS"
19643 cat >conftest.$ac_ext <<_ACEOF
19646 cat confdefs.h >>conftest.$ac_ext
19647 cat >>conftest.$ac_ext <<_ACEOF
19648 /* end confdefs.h. */
19650 /* Override any GCC internal prototype to avoid an error.
19651 Use char because int might match the return type of a GCC
19652 builtin and then its argument prototype would still apply. */
19656 char hes_getmailhost ();
19660 return hes_getmailhost ();
19665 rm -f conftest.$ac_objext conftest$ac_exeext
19666 if { (ac_try="$ac_link"
19667 case "(($ac_try" in
19668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19669 *) ac_try_echo=$ac_try;;
19671 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19672 (eval "$ac_link") 2>conftest.er1
19674 grep -v '^ *+' conftest.er1 >conftest.err
19676 cat conftest.err >&5
19677 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19678 (exit $ac_status); } && {
19679 test -z "$ac_c_werror_flag" ||
19680 test ! -s conftest.err
19681 } && test -s conftest$ac_exeext &&
19682 $as_test_x conftest$ac_exeext; then
19683 ac_cv_lib_hesiod_hes_getmailhost=yes
19685 echo "$as_me: failed program was
:" >&5
19686 sed 's/^/| /' conftest.$ac_ext >&5
19688 ac_cv_lib_hesiod_hes_getmailhost=no
19691 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19692 conftest$ac_exeext conftest.$ac_ext
19693 LIBS=$ac_check_lib_save_LIBS
19695 { echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
19696 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
19697 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
19699 cat >>confdefs.h <<\_ACEOF
19700 #define HAVE_LIBHESIOD 1
19711 # These tell us which Kerberos-related libraries to use.
19712 if test "${with_kerberos+set}" = set; then
19714 { echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
19715 echo $ECHO_N "checking
for com_err
in -lcom_err...
$ECHO_C" >&6; }
19716 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
19717 echo $ECHO_N "(cached
) $ECHO_C" >&6
19719 ac_check_lib_save_LIBS=$LIBS
19720 LIBS="-lcom_err $LIBS"
19721 cat >conftest.$ac_ext <<_ACEOF
19724 cat confdefs.h >>conftest.$ac_ext
19725 cat >>conftest.$ac_ext <<_ACEOF
19726 /* end confdefs.h. */
19728 /* Override any GCC internal prototype to avoid an error.
19729 Use char because int might match the return type of a GCC
19730 builtin and then its argument prototype would still apply. */
19743 rm -f conftest.$ac_objext conftest$ac_exeext
19744 if { (ac_try="$ac_link"
19745 case "(($ac_try" in
19746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19747 *) ac_try_echo=$ac_try;;
19749 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19750 (eval "$ac_link") 2>conftest.er1
19752 grep -v '^ *+' conftest.er1 >conftest.err
19754 cat conftest.err >&5
19755 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19756 (exit $ac_status); } && {
19757 test -z "$ac_c_werror_flag" ||
19758 test ! -s conftest.err
19759 } && test -s conftest$ac_exeext &&
19760 $as_test_x conftest$ac_exeext; then
19761 ac_cv_lib_com_err_com_err=yes
19763 echo "$as_me: failed program was
:" >&5
19764 sed 's/^/| /' conftest.$ac_ext >&5
19766 ac_cv_lib_com_err_com_err=no
19769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19770 conftest$ac_exeext conftest.$ac_ext
19771 LIBS=$ac_check_lib_save_LIBS
19773 { echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
19774 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
19775 if test $ac_cv_lib_com_err_com_err = yes; then
19776 cat >>confdefs.h <<_ACEOF
19777 #define HAVE_LIBCOM_ERR 1
19780 LIBS="-lcom_err $LIBS"
19785 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
19786 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lk5crypto...
$ECHO_C" >&6; }
19787 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
19788 echo $ECHO_N "(cached
) $ECHO_C" >&6
19790 ac_check_lib_save_LIBS=$LIBS
19791 LIBS="-lk5crypto $LIBS"
19792 cat >conftest.$ac_ext <<_ACEOF
19795 cat confdefs.h >>conftest.$ac_ext
19796 cat >>conftest.$ac_ext <<_ACEOF
19797 /* end confdefs.h. */
19799 /* Override any GCC internal prototype to avoid an error.
19800 Use char because int might match the return type of a GCC
19801 builtin and then its argument prototype would still apply. */
19805 char mit_des_cbc_encrypt ();
19809 return mit_des_cbc_encrypt ();
19814 rm -f conftest.$ac_objext conftest$ac_exeext
19815 if { (ac_try="$ac_link"
19816 case "(($ac_try" in
19817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19818 *) ac_try_echo=$ac_try;;
19820 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19821 (eval "$ac_link") 2>conftest.er1
19823 grep -v '^ *+' conftest.er1 >conftest.err
19825 cat conftest.err >&5
19826 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19827 (exit $ac_status); } && {
19828 test -z "$ac_c_werror_flag" ||
19829 test ! -s conftest.err
19830 } && test -s conftest$ac_exeext &&
19831 $as_test_x conftest$ac_exeext; then
19832 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
19834 echo "$as_me: failed program was
:" >&5
19835 sed 's/^/| /' conftest.$ac_ext >&5
19837 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
19840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19841 conftest$ac_exeext conftest.$ac_ext
19842 LIBS=$ac_check_lib_save_LIBS
19844 { echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
19845 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
19846 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
19847 cat >>confdefs.h <<_ACEOF
19848 #define HAVE_LIBK5CRYPTO 1
19851 LIBS="-lk5crypto $LIBS"
19856 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
19857 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lcrypto...
$ECHO_C" >&6; }
19858 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
19859 echo $ECHO_N "(cached
) $ECHO_C" >&6
19861 ac_check_lib_save_LIBS=$LIBS
19862 LIBS="-lcrypto $LIBS"
19863 cat >conftest.$ac_ext <<_ACEOF
19866 cat confdefs.h >>conftest.$ac_ext
19867 cat >>conftest.$ac_ext <<_ACEOF
19868 /* end confdefs.h. */
19870 /* Override any GCC internal prototype to avoid an error.
19871 Use char because int might match the return type of a GCC
19872 builtin and then its argument prototype would still apply. */
19876 char mit_des_cbc_encrypt ();
19880 return mit_des_cbc_encrypt ();
19885 rm -f conftest.$ac_objext conftest$ac_exeext
19886 if { (ac_try="$ac_link"
19887 case "(($ac_try" in
19888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19889 *) ac_try_echo=$ac_try;;
19891 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19892 (eval "$ac_link") 2>conftest.er1
19894 grep -v '^ *+' conftest.er1 >conftest.err
19896 cat conftest.err >&5
19897 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19898 (exit $ac_status); } && {
19899 test -z "$ac_c_werror_flag" ||
19900 test ! -s conftest.err
19901 } && test -s conftest$ac_exeext &&
19902 $as_test_x conftest$ac_exeext; then
19903 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
19905 echo "$as_me: failed program was
:" >&5
19906 sed 's/^/| /' conftest.$ac_ext >&5
19908 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
19911 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19912 conftest$ac_exeext conftest.$ac_ext
19913 LIBS=$ac_check_lib_save_LIBS
19915 { echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19916 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
19917 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
19918 cat >>confdefs.h <<_ACEOF
19919 #define HAVE_LIBCRYPTO 1
19922 LIBS="-lcrypto $LIBS"
19927 { echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
19928 echo $ECHO_N "checking
for krb5_init_context
in -lkrb5...
$ECHO_C" >&6; }
19929 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
19930 echo $ECHO_N "(cached
) $ECHO_C" >&6
19932 ac_check_lib_save_LIBS=$LIBS
19933 LIBS="-lkrb5 $LIBS"
19934 cat >conftest.$ac_ext <<_ACEOF
19937 cat confdefs.h >>conftest.$ac_ext
19938 cat >>conftest.$ac_ext <<_ACEOF
19939 /* end confdefs.h. */
19941 /* Override any GCC internal prototype to avoid an error.
19942 Use char because int might match the return type of a GCC
19943 builtin and then its argument prototype would still apply. */
19947 char krb5_init_context ();
19951 return krb5_init_context ();
19956 rm -f conftest.$ac_objext conftest$ac_exeext
19957 if { (ac_try="$ac_link"
19958 case "(($ac_try" in
19959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19960 *) ac_try_echo=$ac_try;;
19962 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19963 (eval "$ac_link") 2>conftest.er1
19965 grep -v '^ *+' conftest.er1 >conftest.err
19967 cat conftest.err >&5
19968 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19969 (exit $ac_status); } && {
19970 test -z "$ac_c_werror_flag" ||
19971 test ! -s conftest.err
19972 } && test -s conftest$ac_exeext &&
19973 $as_test_x conftest$ac_exeext; then
19974 ac_cv_lib_krb5_krb5_init_context=yes
19976 echo "$as_me: failed program was
:" >&5
19977 sed 's/^/| /' conftest.$ac_ext >&5
19979 ac_cv_lib_krb5_krb5_init_context=no
19982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19983 conftest$ac_exeext conftest.$ac_ext
19984 LIBS=$ac_check_lib_save_LIBS
19986 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
19987 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
19988 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
19989 cat >>confdefs.h <<_ACEOF
19990 #define HAVE_LIBKRB5 1
19993 LIBS="-lkrb5 $LIBS"
19997 if test "${with_kerberos5+set}" != set; then
19999 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
20000 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes425...
$ECHO_C" >&6; }
20001 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20002 echo $ECHO_N "(cached
) $ECHO_C" >&6
20004 ac_check_lib_save_LIBS=$LIBS
20005 LIBS="-ldes425 $LIBS"
20006 cat >conftest.$ac_ext <<_ACEOF
20009 cat confdefs.h >>conftest.$ac_ext
20010 cat >>conftest.$ac_ext <<_ACEOF
20011 /* end confdefs.h. */
20013 /* Override any GCC internal prototype to avoid an error.
20014 Use char because int might match the return type of a GCC
20015 builtin and then its argument prototype would still apply. */
20019 char des_cbc_encrypt ();
20023 return des_cbc_encrypt ();
20028 rm -f conftest.$ac_objext conftest$ac_exeext
20029 if { (ac_try="$ac_link"
20030 case "(($ac_try" in
20031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20032 *) ac_try_echo=$ac_try;;
20034 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20035 (eval "$ac_link") 2>conftest.er1
20037 grep -v '^ *+' conftest.er1 >conftest.err
20039 cat conftest.err >&5
20040 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20041 (exit $ac_status); } && {
20042 test -z "$ac_c_werror_flag" ||
20043 test ! -s conftest.err
20044 } && test -s conftest$ac_exeext &&
20045 $as_test_x conftest$ac_exeext; then
20046 ac_cv_lib_des425_des_cbc_encrypt=yes
20048 echo "$as_me: failed program was
:" >&5
20049 sed 's/^/| /' conftest.$ac_ext >&5
20051 ac_cv_lib_des425_des_cbc_encrypt=no
20054 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20055 conftest$ac_exeext conftest.$ac_ext
20056 LIBS=$ac_check_lib_save_LIBS
20058 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20059 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20060 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20061 cat >>confdefs.h <<_ACEOF
20062 #define HAVE_LIBDES425 1
20065 LIBS="-ldes425 $LIBS"
20069 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
20070 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes...
$ECHO_C" >&6; }
20071 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20072 echo $ECHO_N "(cached
) $ECHO_C" >&6
20074 ac_check_lib_save_LIBS=$LIBS
20076 cat >conftest.$ac_ext <<_ACEOF
20079 cat confdefs.h >>conftest.$ac_ext
20080 cat >>conftest.$ac_ext <<_ACEOF
20081 /* end confdefs.h. */
20083 /* Override any GCC internal prototype to avoid an error.
20084 Use char because int might match the return type of a GCC
20085 builtin and then its argument prototype would still apply. */
20089 char des_cbc_encrypt ();
20093 return des_cbc_encrypt ();
20098 rm -f conftest.$ac_objext conftest$ac_exeext
20099 if { (ac_try="$ac_link"
20100 case "(($ac_try" in
20101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20102 *) ac_try_echo=$ac_try;;
20104 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20105 (eval "$ac_link") 2>conftest.er1
20107 grep -v '^ *+' conftest.er1 >conftest.err
20109 cat conftest.err >&5
20110 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20111 (exit $ac_status); } && {
20112 test -z "$ac_c_werror_flag" ||
20113 test ! -s conftest.err
20114 } && test -s conftest$ac_exeext &&
20115 $as_test_x conftest$ac_exeext; then
20116 ac_cv_lib_des_des_cbc_encrypt=yes
20118 echo "$as_me: failed program was
:" >&5
20119 sed 's/^/| /' conftest.$ac_ext >&5
20121 ac_cv_lib_des_des_cbc_encrypt=no
20124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20125 conftest$ac_exeext conftest.$ac_ext
20126 LIBS=$ac_check_lib_save_LIBS
20128 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
20129 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20130 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20131 cat >>confdefs.h <<_ACEOF
20132 #define HAVE_LIBDES 1
20142 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
20143 echo $ECHO_N "checking
for krb_get_cred
in -lkrb4...
$ECHO_C" >&6; }
20144 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20145 echo $ECHO_N "(cached
) $ECHO_C" >&6
20147 ac_check_lib_save_LIBS=$LIBS
20148 LIBS="-lkrb4 $LIBS"
20149 cat >conftest.$ac_ext <<_ACEOF
20152 cat confdefs.h >>conftest.$ac_ext
20153 cat >>conftest.$ac_ext <<_ACEOF
20154 /* end confdefs.h. */
20156 /* Override any GCC internal prototype to avoid an error.
20157 Use char because int might match the return type of a GCC
20158 builtin and then its argument prototype would still apply. */
20162 char krb_get_cred ();
20166 return krb_get_cred ();
20171 rm -f conftest.$ac_objext conftest$ac_exeext
20172 if { (ac_try="$ac_link"
20173 case "(($ac_try" in
20174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20175 *) ac_try_echo=$ac_try;;
20177 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20178 (eval "$ac_link") 2>conftest.er1
20180 grep -v '^ *+' conftest.er1 >conftest.err
20182 cat conftest.err >&5
20183 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20184 (exit $ac_status); } && {
20185 test -z "$ac_c_werror_flag" ||
20186 test ! -s conftest.err
20187 } && test -s conftest$ac_exeext &&
20188 $as_test_x conftest$ac_exeext; then
20189 ac_cv_lib_krb4_krb_get_cred=yes
20191 echo "$as_me: failed program was
:" >&5
20192 sed 's/^/| /' conftest.$ac_ext >&5
20194 ac_cv_lib_krb4_krb_get_cred=no
20197 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20198 conftest$ac_exeext conftest.$ac_ext
20199 LIBS=$ac_check_lib_save_LIBS
20201 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
20202 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20203 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20204 cat >>confdefs.h <<_ACEOF
20205 #define HAVE_LIBKRB4 1
20208 LIBS="-lkrb4 $LIBS"
20212 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
20213 echo $ECHO_N "checking
for krb_get_cred
in -lkrb...
$ECHO_C" >&6; }
20214 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20215 echo $ECHO_N "(cached
) $ECHO_C" >&6
20217 ac_check_lib_save_LIBS=$LIBS
20219 cat >conftest.$ac_ext <<_ACEOF
20222 cat confdefs.h >>conftest.$ac_ext
20223 cat >>conftest.$ac_ext <<_ACEOF
20224 /* end confdefs.h. */
20226 /* Override any GCC internal prototype to avoid an error.
20227 Use char because int might match the return type of a GCC
20228 builtin and then its argument prototype would still apply. */
20232 char krb_get_cred ();
20236 return krb_get_cred ();
20241 rm -f conftest.$ac_objext conftest$ac_exeext
20242 if { (ac_try="$ac_link"
20243 case "(($ac_try" in
20244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20245 *) ac_try_echo=$ac_try;;
20247 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20248 (eval "$ac_link") 2>conftest.er1
20250 grep -v '^ *+' conftest.er1 >conftest.err
20252 cat conftest.err >&5
20253 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20254 (exit $ac_status); } && {
20255 test -z "$ac_c_werror_flag" ||
20256 test ! -s conftest.err
20257 } && test -s conftest$ac_exeext &&
20258 $as_test_x conftest$ac_exeext; then
20259 ac_cv_lib_krb_krb_get_cred=yes
20261 echo "$as_me: failed program was
:" >&5
20262 sed 's/^/| /' conftest.$ac_ext >&5
20264 ac_cv_lib_krb_krb_get_cred=no
20267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20268 conftest$ac_exeext conftest.$ac_ext
20269 LIBS=$ac_check_lib_save_LIBS
20271 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
20272 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20273 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20274 cat >>confdefs.h <<_ACEOF
20275 #define HAVE_LIBKRB 1
20286 if test "${with_kerberos5+set}" = set; then
20288 for ac_header in krb5.h
20290 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20291 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20292 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20293 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20294 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20295 echo $ECHO_N "(cached
) $ECHO_C" >&6
20297 ac_res=`eval echo '${'$as_ac_Header'}'`
20298 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20299 echo "${ECHO_T}$ac_res" >&6; }
20301 # Is the header compilable?
20302 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20303 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20304 cat >conftest.$ac_ext <<_ACEOF
20307 cat confdefs.h >>conftest.$ac_ext
20308 cat >>conftest.$ac_ext <<_ACEOF
20309 /* end confdefs.h. */
20310 $ac_includes_default
20311 #include <$ac_header>
20313 rm -f conftest.$ac_objext
20314 if { (ac_try="$ac_compile"
20315 case "(($ac_try" in
20316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20317 *) ac_try_echo=$ac_try;;
20319 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20320 (eval "$ac_compile") 2>conftest.er1
20322 grep -v '^ *+' conftest.er1 >conftest.err
20324 cat conftest.err >&5
20325 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20326 (exit $ac_status); } && {
20327 test -z "$ac_c_werror_flag" ||
20328 test ! -s conftest.err
20329 } && test -s conftest.$ac_objext; then
20330 ac_header_compiler=yes
20332 echo "$as_me: failed program was
:" >&5
20333 sed 's/^/| /' conftest.$ac_ext >&5
20335 ac_header_compiler=no
20338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20339 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20340 echo "${ECHO_T}$ac_header_compiler" >&6; }
20342 # Is the header present?
20343 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20344 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20345 cat >conftest.$ac_ext <<_ACEOF
20348 cat confdefs.h >>conftest.$ac_ext
20349 cat >>conftest.$ac_ext <<_ACEOF
20350 /* end confdefs.h. */
20351 #include <$ac_header>
20353 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20354 case "(($ac_try" in
20355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20356 *) ac_try_echo=$ac_try;;
20358 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20359 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20361 grep -v '^ *+' conftest.er1 >conftest.err
20363 cat conftest.err >&5
20364 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20365 (exit $ac_status); } >/dev/null && {
20366 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20367 test ! -s conftest.err
20369 ac_header_preproc=yes
20371 echo "$as_me: failed program was
:" >&5
20372 sed 's/^/| /' conftest.$ac_ext >&5
20374 ac_header_preproc=no
20377 rm -f conftest.err conftest.$ac_ext
20378 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20379 echo "${ECHO_T}$ac_header_preproc" >&6; }
20381 # So? What about this header?
20382 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20384 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20385 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20386 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20387 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20388 ac_header_preproc=yes
20391 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20392 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20393 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20394 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20395 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20396 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20397 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20398 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20399 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20400 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20401 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20402 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20406 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20407 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20408 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20409 echo $ECHO_N "(cached
) $ECHO_C" >&6
20411 eval "$as_ac_Header=\
$ac_header_preproc"
20413 ac_res=`eval echo '${'$as_ac_Header'}'`
20414 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20415 echo "${ECHO_T}$ac_res" >&6; }
20418 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20419 cat >>confdefs.h <<_ACEOF
20420 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20429 for ac_header in des.h
20431 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20432 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20433 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20434 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20435 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20436 echo $ECHO_N "(cached
) $ECHO_C" >&6
20438 ac_res=`eval echo '${'$as_ac_Header'}'`
20439 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20440 echo "${ECHO_T}$ac_res" >&6; }
20442 # Is the header compilable?
20443 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20444 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20445 cat >conftest.$ac_ext <<_ACEOF
20448 cat confdefs.h >>conftest.$ac_ext
20449 cat >>conftest.$ac_ext <<_ACEOF
20450 /* end confdefs.h. */
20451 $ac_includes_default
20452 #include <$ac_header>
20454 rm -f conftest.$ac_objext
20455 if { (ac_try="$ac_compile"
20456 case "(($ac_try" in
20457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20458 *) ac_try_echo=$ac_try;;
20460 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20461 (eval "$ac_compile") 2>conftest.er1
20463 grep -v '^ *+' conftest.er1 >conftest.err
20465 cat conftest.err >&5
20466 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20467 (exit $ac_status); } && {
20468 test -z "$ac_c_werror_flag" ||
20469 test ! -s conftest.err
20470 } && test -s conftest.$ac_objext; then
20471 ac_header_compiler=yes
20473 echo "$as_me: failed program was
:" >&5
20474 sed 's/^/| /' conftest.$ac_ext >&5
20476 ac_header_compiler=no
20479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20480 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20481 echo "${ECHO_T}$ac_header_compiler" >&6; }
20483 # Is the header present?
20484 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20485 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20486 cat >conftest.$ac_ext <<_ACEOF
20489 cat confdefs.h >>conftest.$ac_ext
20490 cat >>conftest.$ac_ext <<_ACEOF
20491 /* end confdefs.h. */
20492 #include <$ac_header>
20494 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20495 case "(($ac_try" in
20496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20497 *) ac_try_echo=$ac_try;;
20499 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20500 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20502 grep -v '^ *+' conftest.er1 >conftest.err
20504 cat conftest.err >&5
20505 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20506 (exit $ac_status); } >/dev/null && {
20507 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20508 test ! -s conftest.err
20510 ac_header_preproc=yes
20512 echo "$as_me: failed program was
:" >&5
20513 sed 's/^/| /' conftest.$ac_ext >&5
20515 ac_header_preproc=no
20518 rm -f conftest.err conftest.$ac_ext
20519 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20520 echo "${ECHO_T}$ac_header_preproc" >&6; }
20522 # So? What about this header?
20523 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20525 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20526 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20527 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20528 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20529 ac_header_preproc=yes
20532 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20533 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20534 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20535 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20536 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20537 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20538 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20539 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20540 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20541 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20542 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20543 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20547 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20548 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20549 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20550 echo $ECHO_N "(cached
) $ECHO_C" >&6
20552 eval "$as_ac_Header=\
$ac_header_preproc"
20554 ac_res=`eval echo '${'$as_ac_Header'}'`
20555 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20556 echo "${ECHO_T}$ac_res" >&6; }
20559 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20560 cat >>confdefs.h <<_ACEOF
20561 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20566 for ac_header in kerberosIV/des.h
20568 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20569 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20570 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20571 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20572 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20573 echo $ECHO_N "(cached
) $ECHO_C" >&6
20575 ac_res=`eval echo '${'$as_ac_Header'}'`
20576 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20577 echo "${ECHO_T}$ac_res" >&6; }
20579 # Is the header compilable?
20580 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20581 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20582 cat >conftest.$ac_ext <<_ACEOF
20585 cat confdefs.h >>conftest.$ac_ext
20586 cat >>conftest.$ac_ext <<_ACEOF
20587 /* end confdefs.h. */
20588 $ac_includes_default
20589 #include <$ac_header>
20591 rm -f conftest.$ac_objext
20592 if { (ac_try="$ac_compile"
20593 case "(($ac_try" in
20594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20595 *) ac_try_echo=$ac_try;;
20597 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20598 (eval "$ac_compile") 2>conftest.er1
20600 grep -v '^ *+' conftest.er1 >conftest.err
20602 cat conftest.err >&5
20603 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20604 (exit $ac_status); } && {
20605 test -z "$ac_c_werror_flag" ||
20606 test ! -s conftest.err
20607 } && test -s conftest.$ac_objext; then
20608 ac_header_compiler=yes
20610 echo "$as_me: failed program was
:" >&5
20611 sed 's/^/| /' conftest.$ac_ext >&5
20613 ac_header_compiler=no
20616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20617 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20618 echo "${ECHO_T}$ac_header_compiler" >&6; }
20620 # Is the header present?
20621 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20622 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20623 cat >conftest.$ac_ext <<_ACEOF
20626 cat confdefs.h >>conftest.$ac_ext
20627 cat >>conftest.$ac_ext <<_ACEOF
20628 /* end confdefs.h. */
20629 #include <$ac_header>
20631 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20632 case "(($ac_try" in
20633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20634 *) ac_try_echo=$ac_try;;
20636 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20637 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20639 grep -v '^ *+' conftest.er1 >conftest.err
20641 cat conftest.err >&5
20642 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20643 (exit $ac_status); } >/dev/null && {
20644 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20645 test ! -s conftest.err
20647 ac_header_preproc=yes
20649 echo "$as_me: failed program was
:" >&5
20650 sed 's/^/| /' conftest.$ac_ext >&5
20652 ac_header_preproc=no
20655 rm -f conftest.err conftest.$ac_ext
20656 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20657 echo "${ECHO_T}$ac_header_preproc" >&6; }
20659 # So? What about this header?
20660 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20662 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20663 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20664 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20665 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20666 ac_header_preproc=yes
20669 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20670 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20671 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20672 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20673 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20674 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20675 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20676 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20677 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20678 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20679 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20680 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20684 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20685 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20686 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20687 echo $ECHO_N "(cached
) $ECHO_C" >&6
20689 eval "$as_ac_Header=\
$ac_header_preproc"
20691 ac_res=`eval echo '${'$as_ac_Header'}'`
20692 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20693 echo "${ECHO_T}$ac_res" >&6; }
20696 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20697 cat >>confdefs.h <<_ACEOF
20698 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20703 for ac_header in kerberos/des.h
20705 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20706 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20707 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20708 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20709 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20710 echo $ECHO_N "(cached
) $ECHO_C" >&6
20712 ac_res=`eval echo '${'$as_ac_Header'}'`
20713 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20714 echo "${ECHO_T}$ac_res" >&6; }
20716 # Is the header compilable?
20717 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20718 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20719 cat >conftest.$ac_ext <<_ACEOF
20722 cat confdefs.h >>conftest.$ac_ext
20723 cat >>conftest.$ac_ext <<_ACEOF
20724 /* end confdefs.h. */
20725 $ac_includes_default
20726 #include <$ac_header>
20728 rm -f conftest.$ac_objext
20729 if { (ac_try="$ac_compile"
20730 case "(($ac_try" in
20731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20732 *) ac_try_echo=$ac_try;;
20734 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20735 (eval "$ac_compile") 2>conftest.er1
20737 grep -v '^ *+' conftest.er1 >conftest.err
20739 cat conftest.err >&5
20740 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20741 (exit $ac_status); } && {
20742 test -z "$ac_c_werror_flag" ||
20743 test ! -s conftest.err
20744 } && test -s conftest.$ac_objext; then
20745 ac_header_compiler=yes
20747 echo "$as_me: failed program was
:" >&5
20748 sed 's/^/| /' conftest.$ac_ext >&5
20750 ac_header_compiler=no
20753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20754 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20755 echo "${ECHO_T}$ac_header_compiler" >&6; }
20757 # Is the header present?
20758 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20759 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20760 cat >conftest.$ac_ext <<_ACEOF
20763 cat confdefs.h >>conftest.$ac_ext
20764 cat >>conftest.$ac_ext <<_ACEOF
20765 /* end confdefs.h. */
20766 #include <$ac_header>
20768 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20769 case "(($ac_try" in
20770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20771 *) ac_try_echo=$ac_try;;
20773 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20774 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20776 grep -v '^ *+' conftest.er1 >conftest.err
20778 cat conftest.err >&5
20779 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20780 (exit $ac_status); } >/dev/null && {
20781 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20782 test ! -s conftest.err
20784 ac_header_preproc=yes
20786 echo "$as_me: failed program was
:" >&5
20787 sed 's/^/| /' conftest.$ac_ext >&5
20789 ac_header_preproc=no
20792 rm -f conftest.err conftest.$ac_ext
20793 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20794 echo "${ECHO_T}$ac_header_preproc" >&6; }
20796 # So? What about this header?
20797 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20799 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20800 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20801 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20802 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20803 ac_header_preproc=yes
20806 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20807 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20808 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20809 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20810 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20811 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20812 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20813 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20814 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20815 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20816 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20817 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20821 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20822 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20823 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20824 echo $ECHO_N "(cached
) $ECHO_C" >&6
20826 eval "$as_ac_Header=\
$ac_header_preproc"
20828 ac_res=`eval echo '${'$as_ac_Header'}'`
20829 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20830 echo "${ECHO_T}$ac_res" >&6; }
20833 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20834 cat >>confdefs.h <<_ACEOF
20835 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20851 for ac_header in krb.h
20853 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20854 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20855 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20856 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20857 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20858 echo $ECHO_N "(cached
) $ECHO_C" >&6
20860 ac_res=`eval echo '${'$as_ac_Header'}'`
20861 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20862 echo "${ECHO_T}$ac_res" >&6; }
20864 # Is the header compilable?
20865 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20866 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20867 cat >conftest.$ac_ext <<_ACEOF
20870 cat confdefs.h >>conftest.$ac_ext
20871 cat >>conftest.$ac_ext <<_ACEOF
20872 /* end confdefs.h. */
20873 $ac_includes_default
20874 #include <$ac_header>
20876 rm -f conftest.$ac_objext
20877 if { (ac_try="$ac_compile"
20878 case "(($ac_try" in
20879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20880 *) ac_try_echo=$ac_try;;
20882 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20883 (eval "$ac_compile") 2>conftest.er1
20885 grep -v '^ *+' conftest.er1 >conftest.err
20887 cat conftest.err >&5
20888 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20889 (exit $ac_status); } && {
20890 test -z "$ac_c_werror_flag" ||
20891 test ! -s conftest.err
20892 } && test -s conftest.$ac_objext; then
20893 ac_header_compiler=yes
20895 echo "$as_me: failed program was
:" >&5
20896 sed 's/^/| /' conftest.$ac_ext >&5
20898 ac_header_compiler=no
20901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20902 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20903 echo "${ECHO_T}$ac_header_compiler" >&6; }
20905 # Is the header present?
20906 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20907 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20908 cat >conftest.$ac_ext <<_ACEOF
20911 cat confdefs.h >>conftest.$ac_ext
20912 cat >>conftest.$ac_ext <<_ACEOF
20913 /* end confdefs.h. */
20914 #include <$ac_header>
20916 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20917 case "(($ac_try" in
20918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20919 *) ac_try_echo=$ac_try;;
20921 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20922 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20924 grep -v '^ *+' conftest.er1 >conftest.err
20926 cat conftest.err >&5
20927 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20928 (exit $ac_status); } >/dev/null && {
20929 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20930 test ! -s conftest.err
20932 ac_header_preproc=yes
20934 echo "$as_me: failed program was
:" >&5
20935 sed 's/^/| /' conftest.$ac_ext >&5
20937 ac_header_preproc=no
20940 rm -f conftest.err conftest.$ac_ext
20941 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20942 echo "${ECHO_T}$ac_header_preproc" >&6; }
20944 # So? What about this header?
20945 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20947 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20948 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20949 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20950 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20951 ac_header_preproc=yes
20954 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20955 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20956 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20957 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20958 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20959 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20960 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20961 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20962 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20963 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20964 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20965 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20969 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20970 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20971 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20972 echo $ECHO_N "(cached
) $ECHO_C" >&6
20974 eval "$as_ac_Header=\
$ac_header_preproc"
20976 ac_res=`eval echo '${'$as_ac_Header'}'`
20977 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20978 echo "${ECHO_T}$ac_res" >&6; }
20981 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20982 cat >>confdefs.h <<_ACEOF
20983 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20988 for ac_header in kerberosIV/krb.h
20990 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20991 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20992 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20993 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20994 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20995 echo $ECHO_N "(cached
) $ECHO_C" >&6
20997 ac_res=`eval echo '${'$as_ac_Header'}'`
20998 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20999 echo "${ECHO_T}$ac_res" >&6; }
21001 # Is the header compilable?
21002 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21003 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21004 cat >conftest.$ac_ext <<_ACEOF
21007 cat confdefs.h >>conftest.$ac_ext
21008 cat >>conftest.$ac_ext <<_ACEOF
21009 /* end confdefs.h. */
21010 $ac_includes_default
21011 #include <$ac_header>
21013 rm -f conftest.$ac_objext
21014 if { (ac_try="$ac_compile"
21015 case "(($ac_try" in
21016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21017 *) ac_try_echo=$ac_try;;
21019 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21020 (eval "$ac_compile") 2>conftest.er1
21022 grep -v '^ *+' conftest.er1 >conftest.err
21024 cat conftest.err >&5
21025 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21026 (exit $ac_status); } && {
21027 test -z "$ac_c_werror_flag" ||
21028 test ! -s conftest.err
21029 } && test -s conftest.$ac_objext; then
21030 ac_header_compiler=yes
21032 echo "$as_me: failed program was
:" >&5
21033 sed 's/^/| /' conftest.$ac_ext >&5
21035 ac_header_compiler=no
21038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21039 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21040 echo "${ECHO_T}$ac_header_compiler" >&6; }
21042 # Is the header present?
21043 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21044 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21045 cat >conftest.$ac_ext <<_ACEOF
21048 cat confdefs.h >>conftest.$ac_ext
21049 cat >>conftest.$ac_ext <<_ACEOF
21050 /* end confdefs.h. */
21051 #include <$ac_header>
21053 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21054 case "(($ac_try" in
21055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21056 *) ac_try_echo=$ac_try;;
21058 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21059 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21061 grep -v '^ *+' conftest.er1 >conftest.err
21063 cat conftest.err >&5
21064 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21065 (exit $ac_status); } >/dev/null && {
21066 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21067 test ! -s conftest.err
21069 ac_header_preproc=yes
21071 echo "$as_me: failed program was
:" >&5
21072 sed 's/^/| /' conftest.$ac_ext >&5
21074 ac_header_preproc=no
21077 rm -f conftest.err conftest.$ac_ext
21078 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21079 echo "${ECHO_T}$ac_header_preproc" >&6; }
21081 # So? What about this header?
21082 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21084 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21085 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21086 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21087 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21088 ac_header_preproc=yes
21091 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21092 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21093 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21094 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21095 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21096 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21097 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21098 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21099 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21100 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21101 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21102 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21106 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21107 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21108 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21109 echo $ECHO_N "(cached
) $ECHO_C" >&6
21111 eval "$as_ac_Header=\
$ac_header_preproc"
21113 ac_res=`eval echo '${'$as_ac_Header'}'`
21114 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21115 echo "${ECHO_T}$ac_res" >&6; }
21118 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21119 cat >>confdefs.h <<_ACEOF
21120 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21125 for ac_header in kerberos/krb.h
21127 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21128 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21129 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21130 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21131 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21132 echo $ECHO_N "(cached
) $ECHO_C" >&6
21134 ac_res=`eval echo '${'$as_ac_Header'}'`
21135 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21136 echo "${ECHO_T}$ac_res" >&6; }
21138 # Is the header compilable?
21139 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21140 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21141 cat >conftest.$ac_ext <<_ACEOF
21144 cat confdefs.h >>conftest.$ac_ext
21145 cat >>conftest.$ac_ext <<_ACEOF
21146 /* end confdefs.h. */
21147 $ac_includes_default
21148 #include <$ac_header>
21150 rm -f conftest.$ac_objext
21151 if { (ac_try="$ac_compile"
21152 case "(($ac_try" in
21153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21154 *) ac_try_echo=$ac_try;;
21156 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21157 (eval "$ac_compile") 2>conftest.er1
21159 grep -v '^ *+' conftest.er1 >conftest.err
21161 cat conftest.err >&5
21162 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21163 (exit $ac_status); } && {
21164 test -z "$ac_c_werror_flag" ||
21165 test ! -s conftest.err
21166 } && test -s conftest.$ac_objext; then
21167 ac_header_compiler=yes
21169 echo "$as_me: failed program was
:" >&5
21170 sed 's/^/| /' conftest.$ac_ext >&5
21172 ac_header_compiler=no
21175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21176 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21177 echo "${ECHO_T}$ac_header_compiler" >&6; }
21179 # Is the header present?
21180 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21181 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21182 cat >conftest.$ac_ext <<_ACEOF
21185 cat confdefs.h >>conftest.$ac_ext
21186 cat >>conftest.$ac_ext <<_ACEOF
21187 /* end confdefs.h. */
21188 #include <$ac_header>
21190 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21191 case "(($ac_try" in
21192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21193 *) ac_try_echo=$ac_try;;
21195 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21196 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21198 grep -v '^ *+' conftest.er1 >conftest.err
21200 cat conftest.err >&5
21201 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21202 (exit $ac_status); } >/dev/null && {
21203 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21204 test ! -s conftest.err
21206 ac_header_preproc=yes
21208 echo "$as_me: failed program was
:" >&5
21209 sed 's/^/| /' conftest.$ac_ext >&5
21211 ac_header_preproc=no
21214 rm -f conftest.err conftest.$ac_ext
21215 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21216 echo "${ECHO_T}$ac_header_preproc" >&6; }
21218 # So? What about this header?
21219 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21221 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21222 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21223 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21224 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21225 ac_header_preproc=yes
21228 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21229 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21230 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21231 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21232 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21233 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21234 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21235 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21236 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21237 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21238 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21239 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21243 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21244 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21245 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21246 echo $ECHO_N "(cached
) $ECHO_C" >&6
21248 eval "$as_ac_Header=\
$ac_header_preproc"
21250 ac_res=`eval echo '${'$as_ac_Header'}'`
21251 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21252 echo "${ECHO_T}$ac_res" >&6; }
21255 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21256 cat >>confdefs.h <<_ACEOF
21257 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21274 for ac_header in com_err.h
21276 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21277 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21278 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21279 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21280 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21281 echo $ECHO_N "(cached
) $ECHO_C" >&6
21283 ac_res=`eval echo '${'$as_ac_Header'}'`
21284 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21285 echo "${ECHO_T}$ac_res" >&6; }
21287 # Is the header compilable?
21288 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21289 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21290 cat >conftest.$ac_ext <<_ACEOF
21293 cat confdefs.h >>conftest.$ac_ext
21294 cat >>conftest.$ac_ext <<_ACEOF
21295 /* end confdefs.h. */
21296 $ac_includes_default
21297 #include <$ac_header>
21299 rm -f conftest.$ac_objext
21300 if { (ac_try="$ac_compile"
21301 case "(($ac_try" in
21302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21303 *) ac_try_echo=$ac_try;;
21305 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21306 (eval "$ac_compile") 2>conftest.er1
21308 grep -v '^ *+' conftest.er1 >conftest.err
21310 cat conftest.err >&5
21311 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21312 (exit $ac_status); } && {
21313 test -z "$ac_c_werror_flag" ||
21314 test ! -s conftest.err
21315 } && test -s conftest.$ac_objext; then
21316 ac_header_compiler=yes
21318 echo "$as_me: failed program was
:" >&5
21319 sed 's/^/| /' conftest.$ac_ext >&5
21321 ac_header_compiler=no
21324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21325 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21326 echo "${ECHO_T}$ac_header_compiler" >&6; }
21328 # Is the header present?
21329 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21330 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21331 cat >conftest.$ac_ext <<_ACEOF
21334 cat confdefs.h >>conftest.$ac_ext
21335 cat >>conftest.$ac_ext <<_ACEOF
21336 /* end confdefs.h. */
21337 #include <$ac_header>
21339 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21340 case "(($ac_try" in
21341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21342 *) ac_try_echo=$ac_try;;
21344 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21345 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21347 grep -v '^ *+' conftest.er1 >conftest.err
21349 cat conftest.err >&5
21350 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21351 (exit $ac_status); } >/dev/null && {
21352 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21353 test ! -s conftest.err
21355 ac_header_preproc=yes
21357 echo "$as_me: failed program was
:" >&5
21358 sed 's/^/| /' conftest.$ac_ext >&5
21360 ac_header_preproc=no
21363 rm -f conftest.err conftest.$ac_ext
21364 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21365 echo "${ECHO_T}$ac_header_preproc" >&6; }
21367 # So? What about this header?
21368 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21370 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21371 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21372 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21373 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21374 ac_header_preproc=yes
21377 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21378 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21379 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21380 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21381 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21382 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21383 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21384 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21385 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21386 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21387 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21388 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21392 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21393 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21394 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21395 echo $ECHO_N "(cached
) $ECHO_C" >&6
21397 eval "$as_ac_Header=\
$ac_header_preproc"
21399 ac_res=`eval echo '${'$as_ac_Header'}'`
21400 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21401 echo "${ECHO_T}$ac_res" >&6; }
21404 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21405 cat >>confdefs.h <<_ACEOF
21406 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21415 # Solaris requires -lintl if you want strerror (which calls dgettext)
21416 # to return localized messages.
21418 { echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
21419 echo $ECHO_N "checking
for dgettext
in -lintl...
$ECHO_C" >&6; }
21420 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21421 echo $ECHO_N "(cached
) $ECHO_C" >&6
21423 ac_check_lib_save_LIBS=$LIBS
21424 LIBS="-lintl $LIBS"
21425 cat >conftest.$ac_ext <<_ACEOF
21428 cat confdefs.h >>conftest.$ac_ext
21429 cat >>conftest.$ac_ext <<_ACEOF
21430 /* end confdefs.h. */
21432 /* Override any GCC internal prototype to avoid an error.
21433 Use char because int might match the return type of a GCC
21434 builtin and then its argument prototype would still apply. */
21442 return dgettext ();
21447 rm -f conftest.$ac_objext conftest$ac_exeext
21448 if { (ac_try="$ac_link"
21449 case "(($ac_try" in
21450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21451 *) ac_try_echo=$ac_try;;
21453 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21454 (eval "$ac_link") 2>conftest.er1
21456 grep -v '^ *+' conftest.er1 >conftest.err
21458 cat conftest.err >&5
21459 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21460 (exit $ac_status); } && {
21461 test -z "$ac_c_werror_flag" ||
21462 test ! -s conftest.err
21463 } && test -s conftest$ac_exeext &&
21464 $as_test_x conftest$ac_exeext; then
21465 ac_cv_lib_intl_dgettext=yes
21467 echo "$as_me: failed program was
:" >&5
21468 sed 's/^/| /' conftest.$ac_ext >&5
21470 ac_cv_lib_intl_dgettext=no
21473 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21474 conftest$ac_exeext conftest.$ac_ext
21475 LIBS=$ac_check_lib_save_LIBS
21477 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
21478 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
21479 if test $ac_cv_lib_intl_dgettext = yes; then
21480 cat >>confdefs.h <<_ACEOF
21481 #define HAVE_LIBINTL 1
21484 LIBS="-lintl $LIBS"
21489 { echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
21490 echo $ECHO_N "checking whether localtime caches TZ...
$ECHO_C" >&6; }
21491 if test "${emacs_cv_localtime_cache+set}" = set; then
21492 echo $ECHO_N "(cached
) $ECHO_C" >&6
21494 if test x$ac_cv_func_tzset = xyes; then
21495 if test "$cross_compiling" = yes; then
21496 # If we have tzset, assume the worst when cross-compiling.
21497 emacs_cv_localtime_cache=yes
21499 cat >conftest.$ac_ext <<_ACEOF
21502 cat confdefs.h >>conftest.$ac_ext
21503 cat >>conftest.$ac_ext <<_ACEOF
21504 /* end confdefs.h. */
21506 extern char **environ;
21510 for (to = from = environ; (*to = *from); from++)
21511 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
21514 char TZ_GMT0[] = "TZ
=GMT0
";
21515 char TZ_PST8[] = "TZ
=PST8
";
21518 time_t now = time ((time_t *) 0);
21519 int hour_GMT0, hour_unset;
21520 if (putenv (TZ_GMT0) != 0)
21522 hour_GMT0 = localtime (&now)->tm_hour;
21524 hour_unset = localtime (&now)->tm_hour;
21525 if (putenv (TZ_PST8) != 0)
21527 if (localtime (&now)->tm_hour == hour_GMT0)
21530 if (localtime (&now)->tm_hour != hour_unset)
21535 rm -f conftest$ac_exeext
21536 if { (ac_try="$ac_link"
21537 case "(($ac_try" in
21538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21539 *) ac_try_echo=$ac_try;;
21541 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21542 (eval "$ac_link") 2>&5
21544 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21545 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21546 { (case "(($ac_try" in
21547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21548 *) ac_try_echo=$ac_try;;
21550 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21551 (eval "$ac_try") 2>&5
21553 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21554 (exit $ac_status); }; }; then
21555 emacs_cv_localtime_cache=no
21557 echo "$as_me: program exited with status
$ac_status" >&5
21558 echo "$as_me: failed program was
:" >&5
21559 sed 's/^/| /' conftest.$ac_ext >&5
21561 ( exit $ac_status )
21562 emacs_cv_localtime_cache=yes
21564 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21569 # If we lack tzset, report that localtime does not cache TZ,
21570 # since we can't invalidate the cache if we don't have tzset.
21571 emacs_cv_localtime_cache=no
21574 { echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
21575 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
21576 if test $emacs_cv_localtime_cache = yes; then
21578 cat >>confdefs.h <<\_ACEOF
21579 #define LOCALTIME_CACHE 1
21584 if test "x
$HAVE_TIMEVAL" = xyes; then
21586 for ac_func in gettimeofday
21588 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
21589 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
21590 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
21591 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
21592 echo $ECHO_N "(cached
) $ECHO_C" >&6
21594 cat >conftest.$ac_ext <<_ACEOF
21597 cat confdefs.h >>conftest.$ac_ext
21598 cat >>conftest.$ac_ext <<_ACEOF
21599 /* end confdefs.h. */
21600 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21601 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21602 #define $ac_func innocuous_$ac_func
21604 /* System header to define __stub macros and hopefully few prototypes,
21605 which can conflict with char $ac_func (); below.
21606 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21607 <limits.h> exists even on freestanding compilers. */
21610 # include <limits.h>
21612 # include <assert.h>
21617 /* Override any GCC internal prototype to avoid an error.
21618 Use char because int might match the return type of a GCC
21619 builtin and then its argument prototype would still apply. */
21624 /* The GNU C library defines this for functions which it implements
21625 to always fail with ENOSYS. Some functions are actually named
21626 something starting with __ and the normal name is an alias. */
21627 #if defined __stub_$ac_func || defined __stub___$ac_func
21634 return $ac_func ();
21639 rm -f conftest.$ac_objext conftest$ac_exeext
21640 if { (ac_try="$ac_link"
21641 case "(($ac_try" in
21642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21643 *) ac_try_echo=$ac_try;;
21645 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21646 (eval "$ac_link") 2>conftest.er1
21648 grep -v '^ *+' conftest.er1 >conftest.err
21650 cat conftest.err >&5
21651 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21652 (exit $ac_status); } && {
21653 test -z "$ac_c_werror_flag" ||
21654 test ! -s conftest.err
21655 } && test -s conftest$ac_exeext &&
21656 $as_test_x conftest$ac_exeext; then
21657 eval "$as_ac_var=yes"
21659 echo "$as_me: failed program was
:" >&5
21660 sed 's/^/| /' conftest.$ac_ext >&5
21662 eval "$as_ac_var=no
"
21665 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21666 conftest$ac_exeext conftest.$ac_ext
21668 ac_res=`eval echo '${'$as_ac_var'}'`
21669 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21670 echo "${ECHO_T}$ac_res" >&6; }
21671 if test `eval echo '${'$as_ac_var'}'` = yes; then
21672 cat >>confdefs.h <<_ACEOF
21673 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21679 if test $ac_cv_func_gettimeofday = yes; then
21680 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
21681 echo $ECHO_N "checking whether gettimeofday can accept two arguments...
$ECHO_C" >&6; }
21682 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
21683 echo $ECHO_N "(cached
) $ECHO_C" >&6
21685 cat >conftest.$ac_ext <<_ACEOF
21688 cat confdefs.h >>conftest.$ac_ext
21689 cat >>conftest.$ac_ext <<_ACEOF
21690 /* end confdefs.h. */
21692 #ifdef TIME_WITH_SYS_TIME
21693 #include <sys/time.h>
21696 #ifdef HAVE_SYS_TIME_H
21697 #include <sys/time.h>
21705 struct timeval time;
21706 gettimeofday (&time, 0);
21711 rm -f conftest.$ac_objext
21712 if { (ac_try="$ac_compile"
21713 case "(($ac_try" in
21714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21715 *) ac_try_echo=$ac_try;;
21717 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21718 (eval "$ac_compile") 2>conftest.er1
21720 grep -v '^ *+' conftest.er1 >conftest.err
21722 cat conftest.err >&5
21723 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21724 (exit $ac_status); } && {
21725 test -z "$ac_c_werror_flag" ||
21726 test ! -s conftest.err
21727 } && test -s conftest.$ac_objext; then
21728 emacs_cv_gettimeofday_two_arguments=yes
21730 echo "$as_me: failed program was
:" >&5
21731 sed 's/^/| /' conftest.$ac_ext >&5
21733 emacs_cv_gettimeofday_two_arguments=no
21736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21738 { echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
21739 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
21740 if test $emacs_cv_gettimeofday_two_arguments = no; then
21742 cat >>confdefs.h <<\_ACEOF
21743 #define GETTIMEOFDAY_ONE_ARGUMENT 1
21751 { echo "$as_me:$LINENO: checking
for socket
" >&5
21752 echo $ECHO_N "checking
for socket...
$ECHO_C" >&6; }
21753 if test "${ac_cv_func_socket+set}" = set; then
21754 echo $ECHO_N "(cached
) $ECHO_C" >&6
21756 cat >conftest.$ac_ext <<_ACEOF
21759 cat confdefs.h >>conftest.$ac_ext
21760 cat >>conftest.$ac_ext <<_ACEOF
21761 /* end confdefs.h. */
21762 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21763 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21764 #define socket innocuous_socket
21766 /* System header to define __stub macros and hopefully few prototypes,
21767 which can conflict with char socket (); below.
21768 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21769 <limits.h> exists even on freestanding compilers. */
21772 # include <limits.h>
21774 # include <assert.h>
21779 /* Override any GCC internal prototype to avoid an error.
21780 Use char because int might match the return type of a GCC
21781 builtin and then its argument prototype would still apply. */
21786 /* The GNU C library defines this for functions which it implements
21787 to always fail with ENOSYS. Some functions are actually named
21788 something starting with __ and the normal name is an alias. */
21789 #if defined __stub_socket || defined __stub___socket
21801 rm -f conftest.$ac_objext conftest$ac_exeext
21802 if { (ac_try="$ac_link"
21803 case "(($ac_try" in
21804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21805 *) ac_try_echo=$ac_try;;
21807 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21808 (eval "$ac_link") 2>conftest.er1
21810 grep -v '^ *+' conftest.er1 >conftest.err
21812 cat conftest.err >&5
21813 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21814 (exit $ac_status); } && {
21815 test -z "$ac_c_werror_flag" ||
21816 test ! -s conftest.err
21817 } && test -s conftest$ac_exeext &&
21818 $as_test_x conftest$ac_exeext; then
21819 ac_cv_func_socket=yes
21821 echo "$as_me: failed program was
:" >&5
21822 sed 's/^/| /' conftest.$ac_ext >&5
21824 ac_cv_func_socket=no
21827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21828 conftest$ac_exeext conftest.$ac_ext
21830 { echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
21831 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
21832 if test $ac_cv_func_socket = yes; then
21838 if test $ok_so_far = yes; then
21839 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21840 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
21841 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
21842 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21843 echo $ECHO_N "(cached
) $ECHO_C" >&6
21845 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
21846 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21848 # Is the header compilable?
21849 { echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
21850 echo $ECHO_N "checking netinet
/in.h usability...
$ECHO_C" >&6; }
21851 cat >conftest.$ac_ext <<_ACEOF
21854 cat confdefs.h >>conftest.$ac_ext
21855 cat >>conftest.$ac_ext <<_ACEOF
21856 /* end confdefs.h. */
21857 $ac_includes_default
21858 #include <netinet/in.h>
21860 rm -f conftest.$ac_objext
21861 if { (ac_try="$ac_compile"
21862 case "(($ac_try" in
21863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21864 *) ac_try_echo=$ac_try;;
21866 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21867 (eval "$ac_compile") 2>conftest.er1
21869 grep -v '^ *+' conftest.er1 >conftest.err
21871 cat conftest.err >&5
21872 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21873 (exit $ac_status); } && {
21874 test -z "$ac_c_werror_flag" ||
21875 test ! -s conftest.err
21876 } && test -s conftest.$ac_objext; then
21877 ac_header_compiler=yes
21879 echo "$as_me: failed program was
:" >&5
21880 sed 's/^/| /' conftest.$ac_ext >&5
21882 ac_header_compiler=no
21885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21886 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21887 echo "${ECHO_T}$ac_header_compiler" >&6; }
21889 # Is the header present?
21890 { echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
21891 echo $ECHO_N "checking netinet
/in.h presence...
$ECHO_C" >&6; }
21892 cat >conftest.$ac_ext <<_ACEOF
21895 cat confdefs.h >>conftest.$ac_ext
21896 cat >>conftest.$ac_ext <<_ACEOF
21897 /* end confdefs.h. */
21898 #include <netinet/in.h>
21900 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21901 case "(($ac_try" in
21902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21903 *) ac_try_echo=$ac_try;;
21905 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21906 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21908 grep -v '^ *+' conftest.er1 >conftest.err
21910 cat conftest.err >&5
21911 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21912 (exit $ac_status); } >/dev/null && {
21913 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21914 test ! -s conftest.err
21916 ac_header_preproc=yes
21918 echo "$as_me: failed program was
:" >&5
21919 sed 's/^/| /' conftest.$ac_ext >&5
21921 ac_header_preproc=no
21924 rm -f conftest.err conftest.$ac_ext
21925 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21926 echo "${ECHO_T}$ac_header_preproc" >&6; }
21928 # So? What about this header?
21929 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21931 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
21932 echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21933 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
21934 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
21935 ac_header_preproc=yes
21938 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
21939 echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
21940 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
21941 echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
21942 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
21943 echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
21944 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
21945 echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
21946 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
21947 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
21948 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
21949 echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
21953 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
21954 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
21955 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21956 echo $ECHO_N "(cached
) $ECHO_C" >&6
21958 ac_cv_header_netinet_in_h=$ac_header_preproc
21960 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
21961 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21964 if test $ac_cv_header_netinet_in_h = yes; then
21972 if test $ok_so_far = yes; then
21973 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21974 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
21975 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
21976 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21977 echo $ECHO_N "(cached
) $ECHO_C" >&6
21979 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
21980 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
21982 # Is the header compilable?
21983 { echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
21984 echo $ECHO_N "checking arpa
/inet.h usability...
$ECHO_C" >&6; }
21985 cat >conftest.$ac_ext <<_ACEOF
21988 cat confdefs.h >>conftest.$ac_ext
21989 cat >>conftest.$ac_ext <<_ACEOF
21990 /* end confdefs.h. */
21991 $ac_includes_default
21992 #include <arpa/inet.h>
21994 rm -f conftest.$ac_objext
21995 if { (ac_try="$ac_compile"
21996 case "(($ac_try" in
21997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21998 *) ac_try_echo=$ac_try;;
22000 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22001 (eval "$ac_compile") 2>conftest.er1
22003 grep -v '^ *+' conftest.er1 >conftest.err
22005 cat conftest.err >&5
22006 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22007 (exit $ac_status); } && {
22008 test -z "$ac_c_werror_flag" ||
22009 test ! -s conftest.err
22010 } && test -s conftest.$ac_objext; then
22011 ac_header_compiler=yes
22013 echo "$as_me: failed program was
:" >&5
22014 sed 's/^/| /' conftest.$ac_ext >&5
22016 ac_header_compiler=no
22019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22020 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22021 echo "${ECHO_T}$ac_header_compiler" >&6; }
22023 # Is the header present?
22024 { echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
22025 echo $ECHO_N "checking arpa
/inet.h presence...
$ECHO_C" >&6; }
22026 cat >conftest.$ac_ext <<_ACEOF
22029 cat confdefs.h >>conftest.$ac_ext
22030 cat >>conftest.$ac_ext <<_ACEOF
22031 /* end confdefs.h. */
22032 #include <arpa/inet.h>
22034 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22035 case "(($ac_try" in
22036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22037 *) ac_try_echo=$ac_try;;
22039 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22040 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22042 grep -v '^ *+' conftest.er1 >conftest.err
22044 cat conftest.err >&5
22045 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22046 (exit $ac_status); } >/dev/null && {
22047 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22048 test ! -s conftest.err
22050 ac_header_preproc=yes
22052 echo "$as_me: failed program was
:" >&5
22053 sed 's/^/| /' conftest.$ac_ext >&5
22055 ac_header_preproc=no
22058 rm -f conftest.err conftest.$ac_ext
22059 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22060 echo "${ECHO_T}$ac_header_preproc" >&6; }
22062 # So? What about this header?
22063 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22065 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22066 echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22067 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
22068 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
22069 ac_header_preproc=yes
22072 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
22073 echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
22074 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
22075 echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
22076 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
22077 echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
22078 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22079 echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22080 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
22081 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
22082 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
22083 echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
22087 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22088 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22089 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22090 echo $ECHO_N "(cached
) $ECHO_C" >&6
22092 ac_cv_header_arpa_inet_h=$ac_header_preproc
22094 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22095 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22098 if test $ac_cv_header_arpa_inet_h = yes; then
22106 if test $ok_so_far = yes; then
22108 cat >>confdefs.h <<\_ACEOF
22109 #define HAVE_INET_SOCKETS 1
22115 for ac_header in sys/ioctl.h
22117 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22118 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22119 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22120 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22121 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22122 echo $ECHO_N "(cached
) $ECHO_C" >&6
22124 ac_res=`eval echo '${'$as_ac_Header'}'`
22125 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22126 echo "${ECHO_T}$ac_res" >&6; }
22128 # Is the header compilable?
22129 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22130 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22131 cat >conftest.$ac_ext <<_ACEOF
22134 cat confdefs.h >>conftest.$ac_ext
22135 cat >>conftest.$ac_ext <<_ACEOF
22136 /* end confdefs.h. */
22137 $ac_includes_default
22138 #include <$ac_header>
22140 rm -f conftest.$ac_objext
22141 if { (ac_try="$ac_compile"
22142 case "(($ac_try" in
22143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22144 *) ac_try_echo=$ac_try;;
22146 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22147 (eval "$ac_compile") 2>conftest.er1
22149 grep -v '^ *+' conftest.er1 >conftest.err
22151 cat conftest.err >&5
22152 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22153 (exit $ac_status); } && {
22154 test -z "$ac_c_werror_flag" ||
22155 test ! -s conftest.err
22156 } && test -s conftest.$ac_objext; then
22157 ac_header_compiler=yes
22159 echo "$as_me: failed program was
:" >&5
22160 sed 's/^/| /' conftest.$ac_ext >&5
22162 ac_header_compiler=no
22165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22166 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22167 echo "${ECHO_T}$ac_header_compiler" >&6; }
22169 # Is the header present?
22170 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22171 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22172 cat >conftest.$ac_ext <<_ACEOF
22175 cat confdefs.h >>conftest.$ac_ext
22176 cat >>conftest.$ac_ext <<_ACEOF
22177 /* end confdefs.h. */
22178 #include <$ac_header>
22180 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22181 case "(($ac_try" in
22182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22183 *) ac_try_echo=$ac_try;;
22185 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22186 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22188 grep -v '^ *+' conftest.er1 >conftest.err
22190 cat conftest.err >&5
22191 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22192 (exit $ac_status); } >/dev/null && {
22193 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22194 test ! -s conftest.err
22196 ac_header_preproc=yes
22198 echo "$as_me: failed program was
:" >&5
22199 sed 's/^/| /' conftest.$ac_ext >&5
22201 ac_header_preproc=no
22204 rm -f conftest.err conftest.$ac_ext
22205 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22206 echo "${ECHO_T}$ac_header_preproc" >&6; }
22208 # So? What about this header?
22209 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22211 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22212 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22213 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22214 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22215 ac_header_preproc=yes
22218 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22219 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22220 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22221 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22222 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22223 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22224 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22225 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22226 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22227 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22228 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22229 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22233 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22234 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22235 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22236 echo $ECHO_N "(cached
) $ECHO_C" >&6
22238 eval "$as_ac_Header=\
$ac_header_preproc"
22240 ac_res=`eval echo '${'$as_ac_Header'}'`
22241 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22242 echo "${ECHO_T}$ac_res" >&6; }
22245 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22246 cat >>confdefs.h <<_ACEOF
22247 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22255 if test -f /usr/lpp/X11/bin/smt.exp; then
22257 cat >>confdefs.h <<\_ACEOF
22258 #define HAVE_AIX_SMT_EXP 1
22263 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
22264 echo $ECHO_N "checking whether system supports dynamic ptys...
$ECHO_C" >&6; }
22265 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22266 { echo "$as_me:$LINENO: result
: yes" >&5
22267 echo "${ECHO_T}yes" >&6; }
22269 cat >>confdefs.h <<\_ACEOF
22270 #define HAVE_DEV_PTMX 1
22274 { echo "$as_me:$LINENO: result
: no
" >&5
22275 echo "${ECHO_T}no
" >&6; }
22278 { echo "$as_me:$LINENO: checking
for pid_t
" >&5
22279 echo $ECHO_N "checking
for pid_t...
$ECHO_C" >&6; }
22280 if test "${ac_cv_type_pid_t+set}" = set; then
22281 echo $ECHO_N "(cached
) $ECHO_C" >&6
22283 cat >conftest.$ac_ext <<_ACEOF
22286 cat confdefs.h >>conftest.$ac_ext
22287 cat >>conftest.$ac_ext <<_ACEOF
22288 /* end confdefs.h. */
22289 $ac_includes_default
22290 typedef pid_t ac__type_new_;
22294 if ((ac__type_new_ *) 0)
22296 if (sizeof (ac__type_new_))
22302 rm -f conftest.$ac_objext
22303 if { (ac_try="$ac_compile"
22304 case "(($ac_try" in
22305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22306 *) ac_try_echo=$ac_try;;
22308 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22309 (eval "$ac_compile") 2>conftest.er1
22311 grep -v '^ *+' conftest.er1 >conftest.err
22313 cat conftest.err >&5
22314 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22315 (exit $ac_status); } && {
22316 test -z "$ac_c_werror_flag" ||
22317 test ! -s conftest.err
22318 } && test -s conftest.$ac_objext; then
22319 ac_cv_type_pid_t=yes
22321 echo "$as_me: failed program was
:" >&5
22322 sed 's/^/| /' conftest.$ac_ext >&5
22324 ac_cv_type_pid_t=no
22327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22329 { echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
22330 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22331 if test $ac_cv_type_pid_t = yes; then
22335 cat >>confdefs.h <<_ACEOF
22342 for ac_header in vfork.h
22344 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22345 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22346 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22347 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22348 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22349 echo $ECHO_N "(cached
) $ECHO_C" >&6
22351 ac_res=`eval echo '${'$as_ac_Header'}'`
22352 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22353 echo "${ECHO_T}$ac_res" >&6; }
22355 # Is the header compilable?
22356 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22357 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22358 cat >conftest.$ac_ext <<_ACEOF
22361 cat confdefs.h >>conftest.$ac_ext
22362 cat >>conftest.$ac_ext <<_ACEOF
22363 /* end confdefs.h. */
22364 $ac_includes_default
22365 #include <$ac_header>
22367 rm -f conftest.$ac_objext
22368 if { (ac_try="$ac_compile"
22369 case "(($ac_try" in
22370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22371 *) ac_try_echo=$ac_try;;
22373 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22374 (eval "$ac_compile") 2>conftest.er1
22376 grep -v '^ *+' conftest.er1 >conftest.err
22378 cat conftest.err >&5
22379 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22380 (exit $ac_status); } && {
22381 test -z "$ac_c_werror_flag" ||
22382 test ! -s conftest.err
22383 } && test -s conftest.$ac_objext; then
22384 ac_header_compiler=yes
22386 echo "$as_me: failed program was
:" >&5
22387 sed 's/^/| /' conftest.$ac_ext >&5
22389 ac_header_compiler=no
22392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22393 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22394 echo "${ECHO_T}$ac_header_compiler" >&6; }
22396 # Is the header present?
22397 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22398 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22399 cat >conftest.$ac_ext <<_ACEOF
22402 cat confdefs.h >>conftest.$ac_ext
22403 cat >>conftest.$ac_ext <<_ACEOF
22404 /* end confdefs.h. */
22405 #include <$ac_header>
22407 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22408 case "(($ac_try" in
22409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22410 *) ac_try_echo=$ac_try;;
22412 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22413 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22415 grep -v '^ *+' conftest.er1 >conftest.err
22417 cat conftest.err >&5
22418 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22419 (exit $ac_status); } >/dev/null && {
22420 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22421 test ! -s conftest.err
22423 ac_header_preproc=yes
22425 echo "$as_me: failed program was
:" >&5
22426 sed 's/^/| /' conftest.$ac_ext >&5
22428 ac_header_preproc=no
22431 rm -f conftest.err conftest.$ac_ext
22432 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22433 echo "${ECHO_T}$ac_header_preproc" >&6; }
22435 # So? What about this header?
22436 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22438 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22439 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22440 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22441 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22442 ac_header_preproc=yes
22445 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22446 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22447 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22448 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22449 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22450 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22451 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22452 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22453 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22454 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22455 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22456 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22460 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22461 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22462 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22463 echo $ECHO_N "(cached
) $ECHO_C" >&6
22465 eval "$as_ac_Header=\
$ac_header_preproc"
22467 ac_res=`eval echo '${'$as_ac_Header'}'`
22468 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22469 echo "${ECHO_T}$ac_res" >&6; }
22472 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22473 cat >>confdefs.h <<_ACEOF
22474 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22483 for ac_func in fork vfork
22485 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
22486 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
22487 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
22488 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
22489 echo $ECHO_N "(cached
) $ECHO_C" >&6
22491 cat >conftest.$ac_ext <<_ACEOF
22494 cat confdefs.h >>conftest.$ac_ext
22495 cat >>conftest.$ac_ext <<_ACEOF
22496 /* end confdefs.h. */
22497 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22498 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22499 #define $ac_func innocuous_$ac_func
22501 /* System header to define __stub macros and hopefully few prototypes,
22502 which can conflict with char $ac_func (); below.
22503 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22504 <limits.h> exists even on freestanding compilers. */
22507 # include <limits.h>
22509 # include <assert.h>
22514 /* Override any GCC internal prototype to avoid an error.
22515 Use char because int might match the return type of a GCC
22516 builtin and then its argument prototype would still apply. */
22521 /* The GNU C library defines this for functions which it implements
22522 to always fail with ENOSYS. Some functions are actually named
22523 something starting with __ and the normal name is an alias. */
22524 #if defined __stub_$ac_func || defined __stub___$ac_func
22531 return $ac_func ();
22536 rm -f conftest.$ac_objext conftest$ac_exeext
22537 if { (ac_try="$ac_link"
22538 case "(($ac_try" in
22539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22540 *) ac_try_echo=$ac_try;;
22542 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22543 (eval "$ac_link") 2>conftest.er1
22545 grep -v '^ *+' conftest.er1 >conftest.err
22547 cat conftest.err >&5
22548 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22549 (exit $ac_status); } && {
22550 test -z "$ac_c_werror_flag" ||
22551 test ! -s conftest.err
22552 } && test -s conftest$ac_exeext &&
22553 $as_test_x conftest$ac_exeext; then
22554 eval "$as_ac_var=yes"
22556 echo "$as_me: failed program was
:" >&5
22557 sed 's/^/| /' conftest.$ac_ext >&5
22559 eval "$as_ac_var=no
"
22562 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22563 conftest$ac_exeext conftest.$ac_ext
22565 ac_res=`eval echo '${'$as_ac_var'}'`
22566 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22567 echo "${ECHO_T}$ac_res" >&6; }
22568 if test `eval echo '${'$as_ac_var'}'` = yes; then
22569 cat >>confdefs.h <<_ACEOF
22570 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
22576 if test "x
$ac_cv_func_fork" = xyes; then
22577 { echo "$as_me:$LINENO: checking
for working fork
" >&5
22578 echo $ECHO_N "checking
for working fork...
$ECHO_C" >&6; }
22579 if test "${ac_cv_func_fork_works+set}" = set; then
22580 echo $ECHO_N "(cached
) $ECHO_C" >&6
22582 if test "$cross_compiling" = yes; then
22583 ac_cv_func_fork_works=cross
22585 cat >conftest.$ac_ext <<_ACEOF
22588 cat confdefs.h >>conftest.$ac_ext
22589 cat >>conftest.$ac_ext <<_ACEOF
22590 /* end confdefs.h. */
22591 $ac_includes_default
22596 /* By Ruediger Kuhlmann. */
22597 return fork () < 0;
22603 rm -f conftest$ac_exeext
22604 if { (ac_try="$ac_link"
22605 case "(($ac_try" in
22606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22607 *) ac_try_echo=$ac_try;;
22609 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22610 (eval "$ac_link") 2>&5
22612 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22613 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22614 { (case "(($ac_try" in
22615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22616 *) ac_try_echo=$ac_try;;
22618 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22619 (eval "$ac_try") 2>&5
22621 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22622 (exit $ac_status); }; }; then
22623 ac_cv_func_fork_works=yes
22625 echo "$as_me: program exited with status
$ac_status" >&5
22626 echo "$as_me: failed program was
:" >&5
22627 sed 's/^/| /' conftest.$ac_ext >&5
22629 ( exit $ac_status )
22630 ac_cv_func_fork_works=no
22632 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22637 { echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
22638 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
22641 ac_cv_func_fork_works=$ac_cv_func_fork
22643 if test "x
$ac_cv_func_fork_works" = xcross; then
22645 *-*-amigaos* | *-*-msdosdjgpp*)
22646 # Override, as these systems have only a dummy fork() stub
22647 ac_cv_func_fork_works=no
22650 ac_cv_func_fork_works=yes
22653 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
22654 echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
22656 ac_cv_func_vfork_works=$ac_cv_func_vfork
22657 if test "x
$ac_cv_func_vfork" = xyes; then
22658 { echo "$as_me:$LINENO: checking
for working vfork
" >&5
22659 echo $ECHO_N "checking
for working vfork...
$ECHO_C" >&6; }
22660 if test "${ac_cv_func_vfork_works+set}" = set; then
22661 echo $ECHO_N "(cached
) $ECHO_C" >&6
22663 if test "$cross_compiling" = yes; then
22664 ac_cv_func_vfork_works=cross
22666 cat >conftest.$ac_ext <<_ACEOF
22669 cat confdefs.h >>conftest.$ac_ext
22670 cat >>conftest.$ac_ext <<_ACEOF
22671 /* end confdefs.h. */
22672 /* Thanks to Paul Eggert for this test. */
22673 $ac_includes_default
22674 #include <sys/wait.h>
22675 #ifdef HAVE_VFORK_H
22676 # include <vfork.h>
22678 /* On some sparc systems, changes by the child to local and incoming
22679 argument registers are propagated back to the parent. The compiler
22680 is told about this with #include <vfork.h>, but some compilers
22681 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22682 static variable whose address is put into a register that is
22683 clobbered by the vfork. */
22686 sparc_address_test (int arg)
22688 sparc_address_test (arg) int arg;
22691 static pid_t child;
22709 pid_t parent = getpid ();
22712 sparc_address_test (0);
22717 /* Here is another test for sparc vfork register problems. This
22718 test uses lots of local variables, at least as many local
22719 variables as main has allocated so far including compiler
22720 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22721 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22722 reuse the register of parent for one of the local variables,
22723 since it will think that parent can't possibly be used any more
22724 in this routine. Assigning to the local variable will thus
22725 munge parent in the parent process. */
22727 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22728 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22729 /* Convince the compiler that p..p7 are live; otherwise, it might
22730 use the same hardware register for all 8 local variables. */
22731 if (p != p1 || p != p2 || p != p3 || p != p4
22732 || p != p5 || p != p6 || p != p7)
22735 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22736 from child file descriptors. If the child closes a descriptor
22737 before it execs or exits, this munges the parent's descriptor
22738 as well. Test for this by closing stdout in the child. */
22739 _exit(close(fileno(stdout)) != 0);
22744 while (wait(&status) != child)
22747 /* Was there some problem with vforking? */
22750 /* Did the child fail? (This shouldn't happen.) */
22753 /* Did the vfork/compiler bug occur? */
22754 || parent != getpid()
22756 /* Did the file descriptor bug occur? */
22757 || fstat(fileno(stdout), &st) != 0
22762 rm -f conftest$ac_exeext
22763 if { (ac_try="$ac_link"
22764 case "(($ac_try" in
22765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22766 *) ac_try_echo=$ac_try;;
22768 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22769 (eval "$ac_link") 2>&5
22771 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22772 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22773 { (case "(($ac_try" in
22774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22775 *) ac_try_echo=$ac_try;;
22777 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22778 (eval "$ac_try") 2>&5
22780 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22781 (exit $ac_status); }; }; then
22782 ac_cv_func_vfork_works=yes
22784 echo "$as_me: program exited with status
$ac_status" >&5
22785 echo "$as_me: failed program was
:" >&5
22786 sed 's/^/| /' conftest.$ac_ext >&5
22788 ( exit $ac_status )
22789 ac_cv_func_vfork_works=no
22791 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22796 { echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
22797 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
22800 if test "x
$ac_cv_func_fork_works" = xcross; then
22801 ac_cv_func_vfork_works=$ac_cv_func_vfork
22802 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
22803 echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
22806 if test "x
$ac_cv_func_vfork_works" = xyes; then
22808 cat >>confdefs.h <<\_ACEOF
22809 #define HAVE_WORKING_VFORK 1
22814 cat >>confdefs.h <<\_ACEOF
22819 if test "x
$ac_cv_func_fork_works" = xyes; then
22821 cat >>confdefs.h <<\_ACEOF
22822 #define HAVE_WORKING_FORK 1
22828 { echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
22829 echo $ECHO_N "checking
for nl_langinfo and CODESET...
$ECHO_C" >&6; }
22830 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22831 echo $ECHO_N "(cached
) $ECHO_C" >&6
22833 cat >conftest.$ac_ext <<_ACEOF
22836 cat confdefs.h >>conftest.$ac_ext
22837 cat >>conftest.$ac_ext <<_ACEOF
22838 /* end confdefs.h. */
22839 #include <langinfo.h>
22843 char* cs = nl_langinfo(CODESET);
22848 rm -f conftest.$ac_objext conftest$ac_exeext
22849 if { (ac_try="$ac_link"
22850 case "(($ac_try" in
22851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22852 *) ac_try_echo=$ac_try;;
22854 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22855 (eval "$ac_link") 2>conftest.er1
22857 grep -v '^ *+' conftest.er1 >conftest.err
22859 cat conftest.err >&5
22860 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22861 (exit $ac_status); } && {
22862 test -z "$ac_c_werror_flag" ||
22863 test ! -s conftest.err
22864 } && test -s conftest$ac_exeext &&
22865 $as_test_x conftest$ac_exeext; then
22866 emacs_cv_langinfo_codeset=yes
22868 echo "$as_me: failed program was
:" >&5
22869 sed 's/^/| /' conftest.$ac_ext >&5
22871 emacs_cv_langinfo_codeset=no
22874 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22875 conftest$ac_exeext conftest.$ac_ext
22878 { echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
22879 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
22880 if test $emacs_cv_langinfo_codeset = yes; then
22882 cat >>confdefs.h <<\_ACEOF
22883 #define HAVE_LANGINFO_CODESET 1
22888 { echo "$as_me:$LINENO: checking
for size_t
" >&5
22889 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
22890 if test "${ac_cv_type_size_t+set}" = set; then
22891 echo $ECHO_N "(cached
) $ECHO_C" >&6
22893 cat >conftest.$ac_ext <<_ACEOF
22896 cat confdefs.h >>conftest.$ac_ext
22897 cat >>conftest.$ac_ext <<_ACEOF
22898 /* end confdefs.h. */
22899 $ac_includes_default
22900 typedef size_t ac__type_new_;
22904 if ((ac__type_new_ *) 0)
22906 if (sizeof (ac__type_new_))
22912 rm -f conftest.$ac_objext
22913 if { (ac_try="$ac_compile"
22914 case "(($ac_try" in
22915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22916 *) ac_try_echo=$ac_try;;
22918 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22919 (eval "$ac_compile") 2>conftest.er1
22921 grep -v '^ *+' conftest.er1 >conftest.err
22923 cat conftest.err >&5
22924 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22925 (exit $ac_status); } && {
22926 test -z "$ac_c_werror_flag" ||
22927 test ! -s conftest.err
22928 } && test -s conftest.$ac_objext; then
22929 ac_cv_type_size_t=yes
22931 echo "$as_me: failed program was
:" >&5
22932 sed 's/^/| /' conftest.$ac_ext >&5
22934 ac_cv_type_size_t=no
22937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22939 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
22940 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22941 if test $ac_cv_type_size_t = yes; then
22943 cat >>confdefs.h <<_ACEOF
22944 #define HAVE_SIZE_T 1
22951 { echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
22952 echo $ECHO_N "checking
for mbstate_t...
$ECHO_C" >&6; }
22953 if test "${ac_cv_type_mbstate_t+set}" = set; then
22954 echo $ECHO_N "(cached
) $ECHO_C" >&6
22956 cat >conftest.$ac_ext <<_ACEOF
22959 cat confdefs.h >>conftest.$ac_ext
22960 cat >>conftest.$ac_ext <<_ACEOF
22961 /* end confdefs.h. */
22962 $ac_includes_default
22963 # include <wchar.h>
22967 mbstate_t x; return sizeof x;
22972 rm -f conftest.$ac_objext
22973 if { (ac_try="$ac_compile"
22974 case "(($ac_try" in
22975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22976 *) ac_try_echo=$ac_try;;
22978 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22979 (eval "$ac_compile") 2>conftest.er1
22981 grep -v '^ *+' conftest.er1 >conftest.err
22983 cat conftest.err >&5
22984 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22985 (exit $ac_status); } && {
22986 test -z "$ac_c_werror_flag" ||
22987 test ! -s conftest.err
22988 } && test -s conftest.$ac_objext; then
22989 ac_cv_type_mbstate_t=yes
22991 echo "$as_me: failed program was
:" >&5
22992 sed 's/^/| /' conftest.$ac_ext >&5
22994 ac_cv_type_mbstate_t=no
22997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22999 { echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
23000 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23001 if test $ac_cv_type_mbstate_t = yes; then
23003 cat >>confdefs.h <<\_ACEOF
23004 #define HAVE_MBSTATE_T 1
23009 cat >>confdefs.h <<\_ACEOF
23010 #define mbstate_t int
23015 { echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
23016 echo $ECHO_N "checking
for C restrict keyword...
$ECHO_C" >&6; }
23017 if test "${emacs_cv_c_restrict+set}" = set; then
23018 echo $ECHO_N "(cached
) $ECHO_C" >&6
23020 cat >conftest.$ac_ext <<_ACEOF
23023 cat confdefs.h >>conftest.$ac_ext
23024 cat >>conftest.$ac_ext <<_ACEOF
23025 /* end confdefs.h. */
23026 void fred (int *restrict x);
23035 rm -f conftest.$ac_objext
23036 if { (ac_try="$ac_compile"
23037 case "(($ac_try" in
23038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23039 *) ac_try_echo=$ac_try;;
23041 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23042 (eval "$ac_compile") 2>conftest.er1
23044 grep -v '^ *+' conftest.er1 >conftest.err
23046 cat conftest.err >&5
23047 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23048 (exit $ac_status); } && {
23049 test -z "$ac_c_werror_flag" ||
23050 test ! -s conftest.err
23051 } && test -s conftest.$ac_objext; then
23052 emacs_cv_c_restrict=yes
23054 echo "$as_me: failed program was
:" >&5
23055 sed 's/^/| /' conftest.$ac_ext >&5
23057 cat >conftest.$ac_ext <<_ACEOF
23060 cat confdefs.h >>conftest.$ac_ext
23061 cat >>conftest.$ac_ext <<_ACEOF
23062 /* end confdefs.h. */
23063 void fred (int *__restrict x);
23072 rm -f conftest.$ac_objext
23073 if { (ac_try="$ac_compile"
23074 case "(($ac_try" in
23075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23076 *) ac_try_echo=$ac_try;;
23078 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23079 (eval "$ac_compile") 2>conftest.er1
23081 grep -v '^ *+' conftest.er1 >conftest.err
23083 cat conftest.err >&5
23084 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23085 (exit $ac_status); } && {
23086 test -z "$ac_c_werror_flag" ||
23087 test ! -s conftest.err
23088 } && test -s conftest.$ac_objext; then
23089 emacs_cv_c_restrict=__restrict
23091 echo "$as_me: failed program was
:" >&5
23092 sed 's/^/| /' conftest.$ac_ext >&5
23094 emacs_cv_c_restrict=no
23097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23102 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
23103 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23104 case "$emacs_cv_c_restrict" in
23105 yes) emacs_restrict=restrict;;
23106 no) emacs_restrict="";;
23107 *) emacs_restrict="$emacs_cv_c_restrict";;
23109 if test "$emacs_restrict" != __restrict; then
23111 cat >>confdefs.h <<_ACEOF
23112 #define __restrict $emacs_restrict
23117 { echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
23118 echo $ECHO_N "checking
for C restricted array declarations...
$ECHO_C" >&6; }
23119 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23120 echo $ECHO_N "(cached
) $ECHO_C" >&6
23122 cat >conftest.$ac_ext <<_ACEOF
23125 cat confdefs.h >>conftest.$ac_ext
23126 cat >>conftest.$ac_ext <<_ACEOF
23127 /* end confdefs.h. */
23128 void fred (int x[__restrict]);
23137 rm -f conftest.$ac_objext
23138 if { (ac_try="$ac_compile"
23139 case "(($ac_try" in
23140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23141 *) ac_try_echo=$ac_try;;
23143 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23144 (eval "$ac_compile") 2>conftest.er1
23146 grep -v '^ *+' conftest.er1 >conftest.err
23148 cat conftest.err >&5
23149 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23150 (exit $ac_status); } && {
23151 test -z "$ac_c_werror_flag" ||
23152 test ! -s conftest.err
23153 } && test -s conftest.$ac_objext; then
23154 emacs_cv_c_restrict_arr=yes
23156 echo "$as_me: failed program was
:" >&5
23157 sed 's/^/| /' conftest.$ac_ext >&5
23159 emacs_cv_c_restrict_arr=no
23162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23164 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
23165 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23166 if test "$emacs_cv_c_restrict_arr" = yes; then
23168 cat >>confdefs.h <<\_ACEOF
23169 #define __restrict_arr __restrict
23176 # Set up the CFLAGS for real compilation, so we can substitute it.
23177 CFLAGS="$REAL_CFLAGS"
23178 CPPFLAGS="$REAL_CPPFLAGS"
23180 #### Find out which version of Emacs this is.
23181 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23182 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
23183 if test x"${version}" = x; then
23184 { { echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&5
23185 echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&2;}
23186 { (exit 1); exit 1; }; }
23189 ### Specify what sort of things we'll be editing into Makefile and config.h.
23190 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23226 cat >>confdefs.h <<_ACEOF
23227 #define EMACS_CONFIGURATION "${canonical}"
23231 cat >>confdefs.h <<_ACEOF
23232 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23236 cat >>confdefs.h <<_ACEOF
23237 #define config_machfile "${machfile}"
23241 cat >>confdefs.h <<_ACEOF
23242 #define config_opsysfile "${opsysfile}"
23246 cat >>confdefs.h <<_ACEOF
23247 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23251 cat >>confdefs.h <<_ACEOF
23252 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23256 cat >>confdefs.h <<_ACEOF
23257 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23261 cat >>confdefs.h <<_ACEOF
23262 #define UNEXEC_SRC ${UNEXEC_SRC}
23266 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23268 cat >>confdefs.h <<\_ACEOF
23269 #define HAVE_X_WINDOWS 1
23273 if test "${USE_X_TOOLKIT}" != "none
" ; then
23275 cat >>confdefs.h <<\_ACEOF
23276 #define USE_X_TOOLKIT 1
23280 if test "${HAVE_X11}" = "yes" ; then
23282 cat >>confdefs.h <<\_ACEOF
23287 if test "${HAVE_XFREE386}" = "yes" ; then
23289 cat >>confdefs.h <<\_ACEOF
23290 #define HAVE_XFREE386 1
23294 if test "${HAVE_MENUS}" = "yes" ; then
23296 cat >>confdefs.h <<\_ACEOF
23297 #define HAVE_MENUS 1
23301 if test "${GNU_MALLOC}" = "yes" ; then
23303 cat >>confdefs.h <<\_ACEOF
23304 #define GNU_MALLOC 1
23308 if test "${REL_ALLOC}" = "yes" ; then
23310 cat >>confdefs.h <<\_ACEOF
23311 #define REL_ALLOC 1
23320 #### Report on what we decided to do.
23321 #### Report GTK as a toolkit, even if it doesn't use Xt.
23322 #### It makes printing result more understandable as using GTK sets
23323 #### toolkit_scroll_bars to yes by default.
23324 if test "${HAVE_GTK}" = "yes"; then
23329 Configured
for \
`${canonical}'.
23331 Where should the build process find the source code? ${srcdir}
23332 What operating system and machine description files should Emacs use?
23333 \`${opsysfile}' and \`${machfile}'
23334 What compiler should emacs be built with?
${CC} ${CFLAGS}
23335 Should Emacs use the GNU version of malloc?
${GNU_MALLOC}${GNU_MALLOC_reason}
23336 Should Emacs use a relocating allocator
for buffers?
${REL_ALLOC}
23337 Should Emacs use mmap
(2) for buffer allocation?
$use_mmap_for_buffers
23338 What window system should Emacs use?
${window_system}
23339 What toolkit should Emacs use?
${USE_X_TOOLKIT}"
23341 if test -n "${x_includes}"; then
23342 echo " Where
do we
find X Windows header files?
${x_includes}"
23344 echo " Where
do we
find X Windows header files? Standard
dirs"
23346 if test -n "${x_libraries}"; then
23347 echo " Where
do we
find X Windows libraries?
${x_libraries}"
23349 echo " Where
do we
find X Windows libraries? Standard
dirs"
23352 echo " Does Emacs use
-lXaw3d?
${HAVE_XAW3D}"
23353 echo " Does Emacs use
-lXpm?
${HAVE_XPM}"
23354 echo " Does Emacs use
-ljpeg?
${HAVE_JPEG}"
23355 echo " Does Emacs use
-ltiff?
${HAVE_TIFF}"
23356 echo " Does Emacs use
-lungif?
${HAVE_GIF}"
23357 echo " Does Emacs use
-lpng?
${HAVE_PNG}"
23358 echo " Does Emacs use X toolkit scroll bars?
${USE_TOOLKIT_SCROLL_BARS}"
23361 if test $USE_XASSERTS = yes; then
23362 echo " Compiling with asserts turned on.
"
23363 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23369 # Remove any trailing slashes in these variables.
23370 test "${prefix}" != NONE &&
23371 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23372 test "${exec_prefix}" != NONE &&
23373 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23375 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23376 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23377 ## from Makefile.c can correctly provide the arg `-traditional' to the
23380 cat >conftest.$ac_ext <<_ACEOF
23383 cat confdefs.h >>conftest.$ac_ext
23384 cat >>conftest.$ac_ext <<_ACEOF
23385 /* end confdefs.h. */
23388 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
23389 $EGREP "yes..
yes" >/dev/null 2>&1; then
23390 CPP_NEED_TRADITIONAL=no
23392 CPP_NEED_TRADITIONAL=yes
23397 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
"
23399 ac_config_commands="$ac_config_commands default
"
23401 cat >confcache <<\_ACEOF
23402 # This file is a shell script that caches the results of configure
23403 # tests run on this system so they can be shared between configure
23404 # scripts and configure runs, see configure's option --config-cache.
23405 # It is not useful on other systems. If it contains results you don't
23406 # want to keep, you may remove or edit it.
23408 # config.status only pays attention to the cache file if you give it
23409 # the --recheck option to rerun configure.
23411 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23412 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23413 # following values.
23417 # The following way of writing the cache mishandles newlines in values,
23418 # but we know of no workaround that is simple, portable, and efficient.
23419 # So, we kill variables containing newlines.
23420 # Ultrix sh set writes to stderr and can't be redirected directly,
23421 # and sets the high bit in the cache file unless we assign to the vars.
23423 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23424 eval ac_val=\$$ac_var
23428 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
23429 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
23432 _ | IFS | as_nl) ;; #(
23433 *) $as_unset $ac_var ;;
23439 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23440 *${as_nl}ac_space=\ *)
23441 # `set' does not quote correctly, so add quotes (double-quote
23442 # substitution turns \\\\ into \\, and sed turns \\ into \).
23445 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
23448 # `set' quotes correctly as required by POSIX, so do not add quotes.
23449 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
23458 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23460 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23462 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23463 if test -w "$cache_file"; then
23464 test "x
$cache_file" != "x
/dev
/null
" &&
23465 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
23466 echo "$as_me: updating cache
$cache_file" >&6;}
23467 cat confcache >$cache_file
23469 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
23470 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
23475 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
23476 # Let make expand exec_prefix.
23477 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
23479 DEFS=-DHAVE_CONFIG_H
23483 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
23484 # 1. Remove the extension, and $U if already installed.
23485 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23486 ac_i=`echo "$ac_i" | sed "$ac_script"`
23487 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23488 # will be set to the directory where LIBOBJS objects are built.
23489 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
23490 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
23492 LIBOBJS=$ac_libobjs
23494 LTLIBOBJS=$ac_ltlibobjs
23498 : ${CONFIG_STATUS=./config.status}
23499 ac_clean_files_save=$ac_clean_files
23500 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23501 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
23502 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
23503 cat >$CONFIG_STATUS <<_ACEOF
23505 # Generated by $as_me.
23506 # Run this file to recreate the current configuration.
23507 # Compiler output produced by configure, useful for debugging
23508 # configure, is in config.log if it exists.
23511 ac_cs_recheck=false
23513 SHELL=\${CONFIG_SHELL-$SHELL}
23516 cat >>$CONFIG_STATUS <<\_ACEOF
23517 ## --------------------- ##
23518 ## M4sh Initialization. ##
23519 ## --------------------- ##
23521 # Be more Bourne compatible
23522 DUALCASE=1; export DUALCASE # for MKS sh
23523 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23526 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23527 # is contrary to our usage. Disable this feature.
23528 alias -g '${1+"$@"}'='"$@
"'
23529 setopt NO_GLOB_SUBST
23531 case `(set -o) 2>/dev/null` in
23532 *posix*) set -o posix ;;
23541 # Avoid depending upon Character Ranges.
23542 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23543 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23544 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23545 as_cr_digits='0123456789'
23546 as_cr_alnum=$as_cr_Letters$as_cr_digits
23548 # The user is always right.
23549 if test "${PATH_SEPARATOR+set}" != set; then
23550 echo "#! /bin/sh" >conf$$.sh
23551 echo "exit 0" >>conf$$.sh
23553 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
23561 # Support unset when possible.
23562 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
23570 # We need space, tab and new line, in precisely that order. Quoting is
23571 # there to prevent editors from complaining about space-tab.
23572 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23573 # splitting by setting IFS to empty value.)
23578 # Find who we are. Look in the path if we contain no directory separator.
23580 *[\\/]* ) as_myself
=$0 ;;
23581 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23582 for as_dir
in $PATH
23585 test -z "$as_dir" && as_dir
=.
23586 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
23592 # We did not find ourselves, most probably we were run as `sh COMMAND'
23593 # in which case we are not to be found in the path.
23594 if test "x$as_myself" = x
; then
23597 if test ! -f "$as_myself"; then
23598 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23599 { (exit 1); exit 1; }
23602 # Work around bugs in pre-3.0 UWIN ksh.
23603 for as_var
in ENV MAIL MAILPATH
23604 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
23612 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23613 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23614 LC_TELEPHONE LC_TIME
23616 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23617 eval $as_var=C
; export $as_var
23619 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
23623 # Required to use basename.
23624 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
23625 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
23631 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23632 as_basename
=basename
23638 # Name of the executable.
23639 as_me
=`$as_basename -- "$0" ||
23640 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23641 X"$0" : 'X\(//\)$' \| \
23642 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23644 sed '/^.*\/\([^/][^/]*\)\/*$/{
23663 as_lineno_1
=$LINENO
23664 as_lineno_2
=$LINENO
23665 test "x$as_lineno_1" != "x$as_lineno_2" &&
23666 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
23668 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23669 # uniformly replaced by the line number. The first 'sed' inserts a
23670 # line-number line after each line using $LINENO; the second 'sed'
23671 # does the real work. The second script uses 'N' to pair each
23672 # line-number line with the line containing $LINENO, and appends
23673 # trailing '-' during substitution so that $LINENO is not a special
23674 # case at line end.
23675 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23676 # scripts with optimization help from Paolo Bonzini. Blame Lee
23677 # E. McMahon (1931-1989) for sed's syntax. :-)
23689 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23692 ' >$as_me.lineno
&&
23693 chmod +x
"$as_me.lineno" ||
23694 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23695 { (exit 1); exit 1; }; }
23697 # Don't try to exec as it changes $[0], causing all sort of problems
23698 # (the dirname of $[0] is not the place where we might find the
23699 # original and so on. Autoconf is especially sensitive to this).
23700 .
"./$as_me.lineno"
23701 # Exit status is that of the last command.
23706 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
23712 ECHO_C
= ECHO_N
= ECHO_T
=
23713 case `echo -n x` in
23715 case `echo 'x\c'` in
23716 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
23723 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
23724 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
23730 rm -f conf$$ conf$$.exe conf$$.
file
23731 if test -d conf$$.dir
; then
23732 rm -f conf$$.dir
/conf$$.
file
23738 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
23740 # ... but there are two gotchas:
23741 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23742 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23743 # In both cases, we have to default to `cp -p'.
23744 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
23746 elif ln conf$$.
file conf$$
2>/dev
/null
; then
23751 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
23752 rmdir conf$$.dir
2>/dev
/null
23754 if mkdir
-p .
2>/dev
/null
; then
23757 test -d .
/-p && rmdir .
/-p
23761 if test -x / >/dev
/null
2>&1; then
23762 as_test_x
='test -x'
23764 if ls -dL / >/dev
/null
2>&1; then
23771 if test -d "$1"; then
23777 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23778 ???[sx]*):;;*)false;;esac;fi
23782 as_executable_p
=$as_test_x
23784 # Sed expression to map a string onto a valid CPP name.
23785 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23787 # Sed expression to map a string onto a valid variable name.
23788 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23793 # Save the log message, to keep $[0] and so on meaningful, and to
23794 # report actual input values of CONFIG_FILES etc. instead of their
23795 # values after options handling.
23797 This file was extended by $as_me, which was
23798 generated by GNU Autoconf 2.61. Invocation command line was
23800 CONFIG_FILES = $CONFIG_FILES
23801 CONFIG_HEADERS = $CONFIG_HEADERS
23802 CONFIG_LINKS = $CONFIG_LINKS
23803 CONFIG_COMMANDS = $CONFIG_COMMANDS
23806 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23811 cat >>$CONFIG_STATUS <<_ACEOF
23812 # Files that config.status was made for.
23813 config_files="$ac_config_files"
23814 config_headers="$ac_config_headers"
23815 config_commands="$ac_config_commands"
23819 cat >>$CONFIG_STATUS <<\_ACEOF
23821 \`$as_me' instantiates files from templates according to the
23822 current configuration.
23824 Usage: $0 [OPTIONS] [FILE]...
23826 -h, --help print this help, then exit
23827 -V, --version print version number and configuration settings, then exit
23828 -q, --quiet do not print progress messages
23829 -d, --debug don't remove temporary files
23830 --recheck update $as_me by reconfiguring in the same conditions
23831 --file=FILE[:TEMPLATE]
23832 instantiate the configuration file FILE
23833 --header=FILE[:TEMPLATE]
23834 instantiate the configuration header FILE
23836 Configuration files:
23839 Configuration headers:
23842 Configuration commands:
23845 Report bugs to <bug-autoconf@gnu.org>."
23848 cat >>$CONFIG_STATUS <<_ACEOF
23851 configured by $0, generated by GNU Autoconf 2.61,
23852 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23854 Copyright (C) 2006 Free Software Foundation, Inc.
23855 This config.status script is free software; the Free Software Foundation
23856 gives unlimited permission to copy, distribute and modify it."
23863 cat >>$CONFIG_STATUS <<\_ACEOF
23864 # If no file are specified by the user, then we need to provide default
23865 # value. By we need to know if files were specified by the user.
23871 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
23872 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
23883 # Handling of the options.
23884 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
23886 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
23887 echo "$ac_cs_version"; exit ;;
23888 --debug |
--debu |
--deb |
--de |
--d |
-d )
23890 --file |
--fil |
--fi |
--f )
23892 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
23893 ac_need_defaults
=false
;;
23894 --header |
--heade |
--head |
--hea )
23896 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
23897 ac_need_defaults
=false
;;
23899 # Conflict between --help and --header
23900 { echo "$as_me: error: ambiguous option: $1
23901 Try \`$0 --help' for more information." >&2
23902 { (exit 1); exit 1; }; };;
23903 --help |
--hel |
-h )
23904 echo "$ac_cs_usage"; exit ;;
23905 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
23906 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
23909 # This is an error.
23910 -*) { echo "$as_me: error: unrecognized option: $1
23911 Try \`$0 --help' for more information." >&2
23912 { (exit 1); exit 1; }; } ;;
23914 *) ac_config_targets
="$ac_config_targets $1"
23915 ac_need_defaults
=false
;;
23921 ac_configure_extra_args
=
23923 if $ac_cs_silent; then
23925 ac_configure_extra_args
="$ac_configure_extra_args --silent"
23929 cat >>$CONFIG_STATUS <<_ACEOF
23930 if \$ac_cs_recheck; then
23931 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23932 CONFIG_SHELL=$SHELL
23933 export CONFIG_SHELL
23934 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23938 cat >>$CONFIG_STATUS <<\_ACEOF
23942 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23943 ## Running $as_me. ##
23949 cat >>$CONFIG_STATUS <<_ACEOF
23953 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
23957 cat >>$CONFIG_STATUS <<\_ACEOF
23959 # Handling of arguments.
23960 for ac_config_target
in $ac_config_targets
23962 case $ac_config_target in
23963 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23964 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
23965 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
23966 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
23967 "man/Makefile") CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
23968 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
23969 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
23970 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
23971 "lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
23972 "lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
23973 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
23974 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
23976 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23977 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23978 { (exit 1); exit 1; }; };;
23983 # If the user did not use the arguments to specify the items to instantiate,
23984 # then the envvar interface is used. Set only those that are not.
23985 # We use the long form for the default assignment because of an extremely
23986 # bizarre bug on SunOS 4.1.3.
23987 if $ac_need_defaults; then
23988 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
23989 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
23990 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
23993 # Have a temporary directory for convenience. Make it in the build tree
23994 # simply because there is no reason against having it here, and in addition,
23995 # creating and moving files from /tmp can sometimes cause problems.
23996 # Hook for its removal unless debugging.
23997 # Note that there is a small window in which the directory will not be cleaned:
23998 # after its creation but before its name has been assigned to `$tmp'.
24002 trap 'exit_status=$?
24003 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24005 trap '{ (exit 1); exit 1; }' 1 2 13 15
24007 # Create a (secure) tmp directory for tmp files.
24010 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24011 test -n "$tmp" && test -d "$tmp"
24014 tmp
=.
/conf$$
-$RANDOM
24015 (umask 077 && mkdir
"$tmp")
24018 echo "$me: cannot create a temporary directory in ." >&2
24019 { (exit 1); exit 1; }
24023 # Set up the sed scripts for CONFIG_FILES section.
24026 # No need to generate the scripts if there are no CONFIG_FILES.
24027 # This happens for instance when ./config.status config.h
24028 if test -n "$CONFIG_FILES"; then
24035 for ac_last_try
in false false false false false
:; do
24036 cat >conf$
$subs.
sed <<_ACEOF
24037 SHELL!$SHELL$ac_delim
24038 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24039 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24040 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24041 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24042 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24043 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24044 exec_prefix!$exec_prefix$ac_delim
24045 prefix!$prefix$ac_delim
24046 program_transform_name!$program_transform_name$ac_delim
24047 bindir!$bindir$ac_delim
24048 sbindir!$sbindir$ac_delim
24049 libexecdir!$libexecdir$ac_delim
24050 datarootdir!$datarootdir$ac_delim
24051 datadir!$datadir$ac_delim
24052 sysconfdir!$sysconfdir$ac_delim
24053 sharedstatedir!$sharedstatedir$ac_delim
24054 localstatedir!$localstatedir$ac_delim
24055 includedir!$includedir$ac_delim
24056 oldincludedir!$oldincludedir$ac_delim
24057 docdir!$docdir$ac_delim
24058 infodir!$infodir$ac_delim
24059 htmldir!$htmldir$ac_delim
24060 dvidir!$dvidir$ac_delim
24061 pdfdir!$pdfdir$ac_delim
24062 psdir!$psdir$ac_delim
24063 libdir!$libdir$ac_delim
24064 localedir!$localedir$ac_delim
24065 mandir!$mandir$ac_delim
24066 DEFS!$DEFS$ac_delim
24067 ECHO_C!$ECHO_C$ac_delim
24068 ECHO_N!$ECHO_N$ac_delim
24069 ECHO_T!$ECHO_T$ac_delim
24070 LIBS!$LIBS$ac_delim
24071 build_alias!$build_alias$ac_delim
24072 host_alias!$host_alias$ac_delim
24073 target_alias!$target_alias$ac_delim
24074 MAINT!$MAINT$ac_delim
24075 build!$build$ac_delim
24076 build_cpu!$build_cpu$ac_delim
24077 build_vendor!$build_vendor$ac_delim
24078 build_os!$build_os$ac_delim
24079 host!$host$ac_delim
24080 host_cpu!$host_cpu$ac_delim
24081 host_vendor!$host_vendor$ac_delim
24082 host_os!$host_os$ac_delim
24084 CFLAGS!$CFLAGS$ac_delim
24085 LDFLAGS!$LDFLAGS$ac_delim
24086 CPPFLAGS!$CPPFLAGS$ac_delim
24087 ac_ct_CC!$ac_ct_CC$ac_delim
24088 EXEEXT!$EXEEXT$ac_delim
24089 OBJEXT!$OBJEXT$ac_delim
24091 GREP!$GREP$ac_delim
24092 EGREP!$EGREP$ac_delim
24093 LN_S!$LN_S$ac_delim
24094 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24095 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24096 INSTALL_DATA!$INSTALL_DATA$ac_delim
24097 RANLIB!$RANLIB$ac_delim
24098 INSTALL_INFO!$INSTALL_INFO$ac_delim
24099 GZIP_PROG!$GZIP_PROG$ac_delim
24100 LIBSOUND!$LIBSOUND$ac_delim
24101 PKG_CONFIG!$PKG_CONFIG$ac_delim
24102 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24103 ALSA_LIBS!$ALSA_LIBS$ac_delim
24104 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24105 SET_MAKE!$SET_MAKE$ac_delim
24106 XMKMF!$XMKMF$ac_delim
24107 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24108 GTK_LIBS!$GTK_LIBS$ac_delim
24109 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24110 XFT_LIBS!$XFT_LIBS$ac_delim
24111 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
24112 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
24113 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
24114 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
24115 HAVE_LIBOTF!$HAVE_LIBOTF$ac_delim
24116 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
24117 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
24118 ALLOCA!$ALLOCA$ac_delim
24119 liblockfile!$liblockfile$ac_delim
24120 LIBOBJS!$LIBOBJS$ac_delim
24121 NEED_SETGID!$NEED_SETGID$ac_delim
24122 KMEM_GROUP!$KMEM_GROUP$ac_delim
24123 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24124 GETOPT_H!$GETOPT_H$ac_delim
24125 GETOPTOBJS!$GETOPTOBJS$ac_delim
24126 version!$version$ac_delim
24127 configuration!$configuration$ac_delim
24128 canonical!$canonical$ac_delim
24129 srcdir!$srcdir$ac_delim
24130 lispdir!$lispdir$ac_delim
24131 locallisppath!$locallisppath$ac_delim
24132 lisppath!$lisppath$ac_delim
24133 x_default_search_path!$x_default_search_path$ac_delim
24136 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24138 elif $ac_last_try; then
24139 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24140 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24141 { (exit 1); exit 1; }; }
24143 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24147 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24148 if test -n "$ac_eof"; then
24149 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24150 ac_eof
=`expr $ac_eof + 1`
24153 cat >>$CONFIG_STATUS <<_ACEOF
24154 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24155 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24158 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24159 s/^/s,@/; s/!/@,|#_!!_#|/
24162 s/'"$ac_delim"'$/,g/; t
24164 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24165 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24166 rm -f conf$
$subs.
sed
24167 cat >>$CONFIG_STATUS <<_ACEOF
24173 for ac_last_try
in false false false false false
:; do
24174 cat >conf$
$subs.
sed <<_ACEOF
24175 etcdir!$etcdir$ac_delim
24176 archlibdir!$archlibdir$ac_delim
24177 bitmapdir!$bitmapdir$ac_delim
24178 gamedir!$gamedir$ac_delim
24179 gameuser!$gameuser$ac_delim
24180 c_switch_system!$c_switch_system$ac_delim
24181 c_switch_machine!$c_switch_machine$ac_delim
24182 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
24183 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
24184 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
24185 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
24186 machfile!$machfile$ac_delim
24187 opsysfile!$opsysfile$ac_delim
24188 carbon_appdir!$carbon_appdir$ac_delim
24189 LTLIBOBJS!$LTLIBOBJS$ac_delim
24192 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 15; then
24194 elif $ac_last_try; then
24195 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24196 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24197 { (exit 1); exit 1; }; }
24199 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24203 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24204 if test -n "$ac_eof"; then
24205 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24206 ac_eof
=`expr $ac_eof + 1`
24209 cat >>$CONFIG_STATUS <<_ACEOF
24210 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24211 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24214 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24215 s/^/s,@/; s/!/@,|#_!!_#|/
24218 s/'"$ac_delim"'$/,g/; t
24220 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24221 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24222 rm -f conf$
$subs.
sed
24223 cat >>$CONFIG_STATUS <<_ACEOF
24230 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24231 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24232 # trailing colons and then remove the whole line if VPATH becomes empty
24233 # (actually we leave an empty line to preserve line numbers).
24234 if test "x$srcdir" = x.
; then
24235 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
24236 s/:*\$(srcdir):*/:/
24237 s/:*\${srcdir}:*/:/
24239 s/^\([^=]*=[ ]*\):*/\1/
24245 cat >>$CONFIG_STATUS <<\_ACEOF
24246 fi # test -n "$CONFIG_FILES"
24249 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
24252 :[FHLC
]) ac_mode
=$ac_tag; continue;;
24254 case $ac_mode$ac_tag in
24256 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24257 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24258 { (exit 1); exit 1; }; };;
24259 :[FH
]-) ac_tag
=-:-;;
24260 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
24277 -) ac_f
="$tmp/stdin";;
24278 *) # Look for the file first in the build tree, then in the source tree
24279 # (if the path is not absolute). The absolute path cannot be DOS-style,
24280 # because $ac_f cannot contain `:'.
24284 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
24286 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24287 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24288 { (exit 1); exit 1; }; };;
24290 ac_file_inputs
="$ac_file_inputs $ac_f"
24293 # Let's still pretend it is `configure' which instantiates (i.e., don't
24294 # use $as_me), people would be surprised to read:
24295 # /* config.h. Generated by config.status. */
24296 configure_input
="Generated from "`IFS=:
24297 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24298 if test x
"$ac_file" != x-
; then
24299 configure_input
="$ac_file. $configure_input"
24300 { echo "$as_me:$LINENO: creating $ac_file" >&5
24301 echo "$as_me: creating $ac_file" >&6;}
24305 *:-:* |
*:-) cat >"$tmp/stdin";;
24310 ac_dir
=`$as_dirname -- "$ac_file" ||
24311 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24312 X"$ac_file" : 'X\(//\)[^/]' \| \
24313 X"$ac_file" : 'X\(//\)$' \| \
24314 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24320 /^X\(\/\/\)[^/].*/{
24335 -*) as_dir
=.
/$as_dir;;
24337 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
24341 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24342 *) as_qdir
=$as_dir;;
24344 as_dirs
="'$as_qdir' $as_dirs"
24345 as_dir
=`$as_dirname -- "$as_dir" ||
24346 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24347 X"$as_dir" : 'X\(//\)[^/]' \| \
24348 X"$as_dir" : 'X\(//\)$' \| \
24349 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24355 /^X\(\/\/\)[^/].*/{
24368 test -d "$as_dir" && break
24370 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
24371 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24372 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24373 { (exit 1); exit 1; }; }; }
24377 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24379 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24380 # A ".." for each directory in $ac_dir_suffix.
24381 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24382 case $ac_top_builddir_sub in
24383 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24384 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
24387 ac_abs_top_builddir
=$ac_pwd
24388 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
24389 # for backward compatibility:
24390 ac_top_builddir
=$ac_top_build_prefix
24393 .
) # We are building in place.
24395 ac_top_srcdir
=$ac_top_builddir_sub
24396 ac_abs_top_srcdir
=$ac_pwd ;;
24397 [\\/]* | ?
:[\\/]* ) # Absolute name.
24398 ac_srcdir
=$srcdir$ac_dir_suffix;
24399 ac_top_srcdir
=$srcdir
24400 ac_abs_top_srcdir
=$srcdir ;;
24401 *) # Relative name.
24402 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
24403 ac_top_srcdir
=$ac_top_build_prefix$srcdir
24404 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
24406 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
24416 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
24417 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
24421 cat >>$CONFIG_STATUS <<\_ACEOF
24422 # If the template does not know about datarootdir, expand it.
24423 # FIXME: This hack should be removed a few years after 2.60.
24424 ac_datarootdir_hack
=; ac_datarootdir_seen
=
24426 case `sed -n '/datarootdir/ {
24435 ' $ac_file_inputs` in
24436 *datarootdir
*) ac_datarootdir_seen
=yes;;
24437 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
24438 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24439 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24441 cat >>$CONFIG_STATUS <<_ACEOF
24442 ac_datarootdir_hack='
24443 s&@datadir@&$datadir&g
24444 s&@docdir@&$docdir&g
24445 s&@infodir@&$infodir&g
24446 s&@localedir@&$localedir&g
24447 s&@mandir@&$mandir&g
24448 s&\\\${datarootdir}&$datarootdir&g' ;;
24452 # Neutralize VPATH when `$srcdir' = `.'.
24453 # Shell code in configure.ac might set extrasub.
24454 # FIXME: do we really want to maintain this feature?
24455 cat >>$CONFIG_STATUS <<_ACEOF
24459 cat >>$CONFIG_STATUS <<\_ACEOF
24461 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
24462 s
&@configure_input@
&$configure_input&;t t
24463 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
24464 s
&@srcdir@
&$ac_srcdir&;t t
24465 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
24466 s
&@top_srcdir@
&$ac_top_srcdir&;t t
24467 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
24468 s
&@builddir@
&$ac_builddir&;t t
24469 s
&@abs_builddir@
&$ac_abs_builddir&;t t
24470 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
24471 s
&@INSTALL@
&$ac_INSTALL&;t t
24472 $ac_datarootdir_hack
24473 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
24475 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24476 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
24477 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
24478 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
24479 which seems to be undefined. Please make sure it is defined." >&5
24480 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
24481 which seems to be undefined. Please make sure it is defined." >&2;}
24485 -) cat "$tmp/out"; rm -f "$tmp/out";;
24486 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24495 # Transform confdefs.h into a sed script `conftest.defines', that
24496 # substitutes the proper values into config.h.in to produce config.h.
24497 rm -f conftest.defines conftest.
tail
24498 # First, append a space to every undef/define line, to ease matching.
24499 echo 's/$/ /' >conftest.defines
24500 # Then, protect against being on the right side of a sed subst, or in
24501 # an unquoted here document, in config.status. If some macros were
24502 # called several times there might be several #defines for the same
24503 # symbol, which is useless. But do not sort them, since the last
24504 # AC_DEFINE must be honored.
24505 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
24506 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24507 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24508 # PARAMS is the parameter list in the macro definition--in most cases, it's
24509 # just an empty string.
24510 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24511 ac_dB
='\\)[ (].*,\\1define\\2'
24519 s/^[ ]*#[ ]*define[ ][ ]*//
24524 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24525 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24526 ' >>conftest.defines
24528 # Remove the space that was appended to ease matching.
24529 # Then replace #undef with comments. This is necessary, for
24530 # example, in the case of _POSIX_SOURCE, which is predefined and required
24531 # on some systems where configure will not decide to define it.
24532 # (The regexp can be short, since the line contains either #define or #undef.)
24534 s,^[ #]*u.*,/* & */,' >>conftest.defines
24536 # Break up conftest.defines:
24537 ac_max_sed_lines
=50
24539 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24540 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24541 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24543 ac_in
='$ac_file_inputs'
24544 ac_out
='"$tmp/out1"'
24545 ac_nxt
='"$tmp/out2"'
24549 # Write a here document:
24550 cat >>$CONFIG_STATUS <<_ACEOF
24551 # First, check the format of the line:
24552 cat >"\$tmp/defines.sed" <<\\CEOF
24553 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24554 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24558 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
24560 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24561 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
24562 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
24563 grep . conftest.
tail >/dev
/null ||
break
24564 rm -f conftest.defines
24565 mv conftest.
tail conftest.defines
24567 rm -f conftest.defines conftest.
tail
24569 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24570 cat >>$CONFIG_STATUS <<\_ACEOF
24571 if test x
"$ac_file" != x-
; then
24572 echo "/* $configure_input */" >"$tmp/config.h"
24573 cat "$ac_result" >>"$tmp/config.h"
24574 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
24575 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24576 echo "$as_me: $ac_file is unchanged" >&6;}
24579 mv "$tmp/config.h" $ac_file
24582 echo "/* $configure_input */"
24588 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24589 echo "$as_me: executing $ac_file commands" >&6;}
24594 case $ac_file$ac_mode in
24597 ### Make the necessary directories, if they don't exist.
24598 for dir
in etc lisp
; do
24599 test -d ${dir} || mkdir
${dir}
24602 # Build src/Makefile from ${srcdir}/src/Makefile.c
24603 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24604 # This must be done after src/config.h is built, since we rely on that file.
24606 # Now get this: Some word that is part of the ${srcdir} directory name
24607 # or the ${configuration} value might, just might, happen to be an
24608 # identifier like `sun4' or `i386' or something, and be predefined by
24609 # the C preprocessor to some helpful value like 1, or maybe the empty
24610 # string. Needless to say consequent macro substitutions are less
24611 # than conducive to the makefile finding the correct directory.
24612 undefs
="`echo $top_srcdir $configuration $canonical |
24613 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24614 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24617 echo creating src
/epaths.h
24618 ${MAKE-make} epaths-force
24620 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24621 # `..' to `. .' unless invoked with -traditional
24623 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
24624 CPPFLAGS
="$CPPFLAGS -traditional"
24627 echo creating lib-src
/Makefile
24629 rm -f junk.c junk1.c junk2.c
24630 sed -e '/start of cpp stuff/q' \
24631 < Makefile.c
> junk1.c
24632 sed -e '1,/start of cpp stuff/d'\
24633 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24634 < Makefile.c
> junk.c
24635 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24636 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24637 cat junk1.c junk2.c
> Makefile.new
24638 rm -f junk.c junk1.c junk2.c
24639 chmod 444 Makefile.new
24640 mv -f Makefile.new Makefile
24643 echo creating src
/Makefile
24645 rm -f junk.c junk1.c junk2.c
24646 sed -e '/start of cpp stuff/q' \
24647 < Makefile.c
> junk1.c
24648 sed -e '1,/start of cpp stuff/d'\
24649 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24650 < Makefile.c
> junk.c
24651 if test -f ${srcdir}/admin
/unidata
/UnicodeData.txt
; then
24652 CPPFLAGS
="$CPPFLAGS -DHAVE_UNIDATA"
24654 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24655 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24656 cat junk1.c junk2.c
> Makefile.new
24657 rm -f junk.c junk1.c junk2.c
24658 chmod 444 Makefile.new
24659 mv -f Makefile.new Makefile
24662 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
24663 echo creating src
/.gdbinit
24664 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
24667 # This is how we know whether to re-run configure in certain cases.
24668 touch src
/config.stamp
24676 { (exit 0); exit 0; }
24678 chmod +x
$CONFIG_STATUS
24679 ac_clean_files
=$ac_clean_files_save
24682 # configure is writing to config.log, and then calls config.status.
24683 # config.status does its own redirection, appending to config.log.
24684 # Unfortunately, on DOS this fails, as config.log is still kept open
24685 # by configure, so config.status won't be able to write to it; its
24686 # output is simply discarded. So we exec the FD to /dev/null,
24687 # effectively closing config.log, so it can be properly (re)opened and
24688 # appended to by config.status. When coming back to configure, we
24689 # need to make the FD available again.
24690 if test "$no_create" != yes; then
24692 ac_config_status_args
=
24693 test "$silent" = yes &&
24694 ac_config_status_args
="$ac_config_status_args --quiet"
24696 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
24698 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24699 # would make configure fail if this is the last instruction.
24700 $ac_cs_success ||
{ (exit 1); exit 1; }