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"
2584 ## SR2001/SR2201 running HI-UX/MPP
2585 hppa1.1
-hitachi-hiuxmpp* )
2586 machine
=sr2k opsys
=hiuxmpp
2588 hppa1.1
-hitachi-hiuxwe2* )
2589 machine
=sr2k opsys
=hiuxwe2
2592 xps
*-honeywell-sysv* )
2593 machine
=xps100 opsys
=usg5-2
2596 ## HP 9000 series 200 or 300
2598 machine
=hp9000s300 opsys
=bsd4-3
2600 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2602 case "`uname -r`" in
2603 ## Someone's system reports A.B8.05 for this.
2604 ## I wonder what other possibilities there are.
2605 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2606 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2607 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2608 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2609 *) machine
=hp9000s300 opsys
=hpux
;;
2613 ## HP 9000 series 700 and 800, running HP/UX
2615 machine
=hp800 opsys
=hpux
2618 machine
=hp800 opsys
=hpux8
2620 hppa
*-hp-hpux9shr* )
2621 machine
=hp800 opsys
=hpux9shr
2624 machine
=hp800 opsys
=hpux9
2626 hppa
*-hp-hpux10.2
* )
2627 machine
=hp800 opsys
=hpux10-20
2630 machine
=hp800 opsys
=hpux10
2632 hppa
*-hp-hpux1[1-9]* )
2633 machine
=hp800 opsys
=hpux11
2634 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2637 hppa
*-*-linux-gnu* )
2638 machine
=hp800 opsys
=gnu-linux
2641 ## HP 9000 series 700 and 800, running HP/UX
2643 ## Cross-compilation? Nah!
2644 case "`uname -r`" in
2645 ## Someone's system reports A.B8.05 for this.
2646 ## I wonder what other possibilities there are.
2647 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2648 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2649 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2650 *) machine
=hp800 opsys
=hpux10
;;
2654 machine
=hp800 opsys
=nextstep
2659 machine
=orion opsys
=bsd4-2
2661 clipper-orion-bsd
* )
2662 machine
=orion105 opsys
=bsd4-2
2666 i
[3456]86-ibm-aix1.1
* )
2667 machine
=ibmps2-aix opsys
=usg5-2-2
2669 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2670 machine
=ibmps2-aix opsys
=usg5-3
2673 machine
=ibm370aix opsys
=usg5-3
2676 machine
=ibms390 opsys
=gnu-linux
2678 s390x-
*-linux-gnu* )
2679 machine
=ibms390x opsys
=gnu-linux
2681 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2682 machine
=ibmrs6000 opsys
=aix3-1
2684 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2685 machine
=ibmrs6000 opsys
=aix3-2-5
2687 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2688 machine
=ibmrs6000 opsys
=aix4-1
2690 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2691 machine
=ibmrs6000 opsys
=aix4-2
2693 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2694 machine
=ibmrs6000 opsys
=aix4-2
2696 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2697 machine
=ibmrs6000 opsys
=aix4
2699 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2700 machine
=ibmrs6000 opsys
=aix4-1
2702 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2703 machine
=ibmrs6000 opsys
=aix3-2
2706 machine
=ibmrt opsys
=bsd4-3
2709 machine
=ibmrt opsys
=bsd4-2
2712 machine
=ibmrt opsys
=bsd4-3
2715 machine
=ibmrt opsys
=bsd4-2
2718 machine
=ibmrt opsys
=bsd4-3
2721 machine
=ibmrt opsys
=bsd4-3
2724 machine
=ibmrt-aix opsys
=usg5-2-2
2727 ## Integrated Solutions `Optimum V'
2729 machine
=isi-ov opsys
=bsd4-2
2732 machine
=isi-ov opsys
=bsd4-3
2735 ## Intel 386 machines where we do care about the manufacturer
2736 i
[3456]86-intsys-sysv* )
2737 machine
=is386 opsys
=usg5-2-2
2741 i
[3456]86-prime-sysv* )
2742 machine
=i386 opsys
=usg5-3
2745 ## Sequent Symmetry running Dynix
2746 i
[3456]86-sequent-bsd* )
2747 machine
=symmetry opsys
=bsd4-3
2750 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2751 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2752 machine
=sequent-ptx opsys
=ptx4
2753 NON_GNU_CPP
=/lib
/cpp
2756 ## Sequent Symmetry running DYNIX/ptx
2757 ## Use the old cpp rather than the newer ANSI one.
2758 i
[3456]86-sequent-ptx* )
2759 machine
=sequent-ptx opsys
=ptx
2760 NON_GNU_CPP
="/lib/cpp"
2763 ## ncr machine running svr4.3.
2764 i
[3456]86-ncr-sysv4.3
)
2765 machine
=ncr386 opsys
=usg5-4-3
2768 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2769 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2770 i
[3456]86-ncr-sysv* )
2771 machine
=ncr386 opsys
=usg5-4-2
2774 ## Intel Paragon OSF/1
2776 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2781 machine
=i860 opsys
=usg5-4
2782 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2783 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2786 ## Macintosh PowerPC
2787 powerpc
*-*-linux-gnu* )
2788 machine
=macppc opsys
=gnu-linux
2791 ## Masscomp machines
2792 m68
*-masscomp-rtu* )
2793 machine
=masscomp opsys
=rtu
2796 ## Megatest machines
2797 m68
*-megatest-bsd* )
2798 machine
=mega68 opsys
=bsd4-2
2801 ## Workstations sold by MIPS
2802 ## This is not necessarily all workstations using the MIPS processor -
2803 ## Irises are produced by SGI, and DECstations by DEC.
2805 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2806 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2807 ## it gives for choosing between the alternatives seems to be "Use
2808 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2809 ## the BSD world." I'll assume that these are instructions for
2810 ## handling two odd situations, and that every other situation
2811 ## should use mips.h and usg5-2-2, they being listed first.
2814 ## Fall through to the general code at the bottom to decide on the OS.
2816 mips-mips-riscos4
* )
2817 machine
=mips4 opsys
=bsd4-3
2818 NON_GNU_CC
="cc -systype bsd43"
2819 NON_GNU_CPP
="cc -systype bsd43 -E"
2821 mips-mips-riscos5
* )
2822 machine
=mips4 opsys
=riscos5
2823 NON_GNU_CC
="cc -systype bsd43"
2824 NON_GNU_CPP
="cc -systype bsd43 -E"
2827 machine
=mips opsys
=bsd4-3
2830 machine
=mips opsys
=usg5-2-2
2834 m68
*-next-* | m68k-
*-nextstep* )
2835 machine
=m68k opsys
=nextstep
2838 ## The complete machine from National Semiconductor
2840 machine
=ns32000 opsys
=usg5-2
2844 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2845 machine
=tower32 opsys
=usg5-2-2
2847 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2848 machine
=tower32v3 opsys
=usg5-3
2853 machine
=ews4800 opsys
=ux4800
2856 ## Nixdorf Targon 31
2857 m68
*-nixdorf-sysv* )
2858 machine
=targon31 opsys
=usg5-2-2
2863 machine
=nu opsys
=usg5-2
2868 machine
=plexus opsys
=usg5-2
2872 ## I don't really have any idea what sort of processor the Pyramid has,
2873 ## so I'm assuming it is its own architecture.
2874 pyramid-pyramid-bsd
* )
2875 machine
=pyramid opsys
=bsd4-2
2879 ns32k-sequent-bsd4.2
* )
2880 machine
=sequent opsys
=bsd4-2
2882 ns32k-sequent-bsd4.3
* )
2883 machine
=sequent opsys
=bsd4-3
2887 mips-siemens-sysv
* | mips-sni-sysv
*)
2888 machine
=mips-siemens opsys
=usg5-4
2889 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2890 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2893 ## Silicon Graphics machines
2894 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2896 machine
=irist opsys
=iris3-5
2898 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2899 machine
=irist opsys
=iris3-6
2903 machine
=iris4d opsys
=irix3-3
2906 machine
=iris4d opsys
=irix4-0
2909 machine
=iris4d opsys
=irix6-5
2910 # Without defining _LANGUAGE_C, things get masked out in the headers
2911 # so that, for instance, grepping for `free' in stdlib.h fails and
2912 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2913 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2914 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2917 machine
=iris4d opsys
=irix6-0
2918 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2919 # but presumably it does no harm.
2920 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2921 # -32 probably isn't necessary in later v.6s -- anyone know which?
2922 NON_GCC_TEST_OPTIONS
=-32
2924 mips-sgi-irix5.
[01]* )
2925 machine
=iris4d opsys
=irix5-0
2927 mips-sgi-irix5
* | mips-sgi-irix
* )
2928 machine
=iris4d opsys
=irix5-2
2933 machine
=news opsys
=bsd4-2
2936 machine
=news opsys
=bsd4-3
2938 m68
*-sony-newsos3* | m68
*-sony-news3*)
2939 machine
=news opsys
=bsd4-3
2941 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2942 machine
=news-risc opsys
=bsd4-3
2944 mips-sony-newsos6
* )
2945 machine
=news-r6 opsys
=newsos6
2948 machine
=news-risc opsys
=newsos5
2953 machine
=stride opsys
=usg5-2
2957 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2958 machine
=sparc opsys
=gnu-linux
2961 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2962 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2963 | rs6000-
*-solaris2*)
2964 case "${canonical}" in
2965 m68
*-sunos1* ) machine
=sun1
;;
2966 m68
*-sunos2* ) machine
=sun2
;;
2967 m68
* ) machine
=sun3
;;
2968 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2969 i
[3456]86-*-* ) machine
=intel386
;;
2970 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2971 powerpcle
* ) machine
=powerpcle
;;
2972 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2973 sparc
* ) machine
=sparc
;;
2976 case "${canonical}" in
2977 ## The Sun386 didn't get past 4.0.
2978 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2979 *-sunos4.0
* ) opsys
=sunos4-0
;;
2980 *-sunos4.1.
[3-9]*noshare
)
2981 ## This name is sunos413 instead of sunos4-1-3
2982 ## to avoid a file name conflict on MSDOS.
2984 NON_GNU_CPP
=/usr
/lib
/cpp
2985 NON_GCC_TEST_OPTIONS
=-Bstatic
2986 GCC_TEST_OPTIONS
=-static
2988 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2990 NON_GNU_CPP
=/usr
/lib
/cpp
2992 *-sunos4* |
*-sunos )
2994 NON_GCC_TEST_OPTIONS
=-Bstatic
2995 GCC_TEST_OPTIONS
=-static
2997 *-sunos5.3
* |
*-solaris2.3
* )
2999 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3001 *-sunos5.4
* |
*-solaris2.4
* )
3003 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3006 *-sunos5.5
* |
*-solaris2.5
* )
3008 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3011 *-sunos5.6
* |
*-solaris2.6
* )
3013 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3016 *-sunos5* |
*-solaris* )
3018 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3022 ## Watch out for a compiler that we know will not work.
3023 case "${canonical}" in
3024 *-solaris* |
*-sunos5* )
3025 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
3026 ## /usr/ucb/cc doesn't work;
3027 ## we should find some other compiler that does work.
3035 machine
=sparc opsys
=nextstep
3039 m68
*-tadpole-sysv* )
3040 machine
=tad68k opsys
=usg5-3
3044 tahoe-tahoe-bsd4.2
* )
3045 machine
=tahoe opsys
=bsd4-2
3047 tahoe-tahoe-bsd4.3
* )
3048 machine
=tahoe opsys
=bsd4-3
3051 ## Tandem Integrity S2
3053 machine
=tandem-s2 opsys
=usg5-3
3057 m88k-tektronix-sysv3
* )
3058 machine
=tekxd88 opsys
=usg5-3
3061 ## Tektronix 16000 box (6130?)
3062 ns16k-tektronix-bsd
* )
3063 machine
=ns16000 opsys
=bsd4-2
3066 ## src/m/tek4300.h hints that this is a m68k machine.
3067 m68
*-tektronix-bsd* )
3068 machine
=tek4300 opsys
=bsd4-3
3072 ## We seem to have lost the machine-description file titan.h!
3074 machine
=titan opsys
=usg5-3
3077 ## Ustation E30 (SS5E)
3078 m68
*-unisys-uniplus* )
3079 machine
=ustation opsystem
=unipl5-2
3085 case "${canonical}" in
3086 *-bsd4.1
* ) opsys
=bsd4-1
;;
3087 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
3088 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
3089 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
3090 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
3091 *-vms* ) opsys
=vms
;;
3097 ns16k-whitechapel-
* )
3099 ## We don't know what sort of OS runs on these; we'll let the
3100 ## operating system guessing code below try.
3105 machine
=wicat opsys
=usg5-2
3110 machine
=ia64 opsys
=gnu-linux
3113 ## Intel 386 machines where we don't care about the manufacturer
3116 case "${canonical}" in
3117 *-cygwin ) opsys
=cygwin
;;
3118 *-darwin* ) opsys
=darwin
3119 CPP
="${CC-cc} -E -no-cpp-precomp"
3121 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
3122 *-isc2.2
* ) opsys
=isc2-2
;;
3123 *-isc4.0
* ) opsys
=isc4-0
;;
3124 *-isc4.
* ) opsys
=isc4-1
3125 GCC_TEST_OPTIONS
=-posix
3126 NON_GCC_TEST_OPTIONS
=-Xp
3128 *-isc* ) opsys
=isc3-0
;;
3129 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
3130 *-esix* ) opsys
=esix
;;
3131 *-xenix* ) opsys
=xenix
;;
3132 *-linux-gnu* ) opsys
=gnu-linux
;;
3133 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
3134 *-sco3.2v5
* ) opsys
=sco5
3135 NON_GNU_CPP
=/lib
/cpp
3136 # Prevent -belf from being passed to $CPP.
3137 # /lib/cpp does not accept it.
3138 OVERRIDE_CPPFLAGS
=" "
3140 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3141 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3142 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3143 *-386bsd* ) opsys
=386bsd
;;
3144 *-nextstep* ) opsys
=nextstep
;;
3145 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3149 ## m68k Linux-based GNU system
3151 machine
=m68k opsys
=gnu-linux
3154 ## Mips Linux-based GNU system
3155 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
3156 machine
=mips opsys
=gnu-linux
3160 sparc-fujitsu-sysv4
* )
3161 machine
=sparc opsys
=uxpds
3162 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3167 f301-fujitsu-uxpv4.1
)
3168 machine
=f301 opsys
=uxpv
3171 ## AMD x86-64 Linux-based GNU system
3172 x86_64-
*-linux-gnu* )
3173 machine
=amdx86-64 opsys
=gnu-linux
3181 ### If the code above didn't choose an operating system, just choose
3182 ### an operating system based on the configuration name. You really
3183 ### only want to use this when you have no idea what the right
3184 ### operating system is; if you know what operating systems a machine
3185 ### runs, it's cleaner to make it explicit in the case statement
3187 if test x
"${opsys}" = x
; then
3188 case "${canonical}" in
3189 *-gnu* ) opsys
=gnu
;;
3190 *-bsd4.
[01] ) opsys
=bsd4-1
;;
3191 *-bsd4.2
) opsys
=bsd4-2
;;
3192 *-bsd4.3
) opsys
=bsd4-3
;;
3193 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
3194 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
3195 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
3196 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
3197 *-sysv4.2uw
* ) opsys
=unixware
;;
3198 *-sysv5uw* ) opsys
=unixware
;;
3199 *-sysv5OpenUNIX* ) opsys
=unixware
;;
3200 *-sysv4.1
* |
*-sysvr4.1
* )
3201 NON_GNU_CPP
=/usr
/lib
/cpp
3203 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
3204 if [ x
$NON_GNU_CPP = x
]; then
3205 if [ -f /usr
/ccs
/lib
/cpp
]; then
3206 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3208 NON_GNU_CPP
=/lib
/cpp
3212 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
3221 if test $unported = yes; then
3222 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3223 Check \`etc/MACHINES' for recognized configuration names." >&5
3224 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3225 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3226 { (exit 1); exit 1; }; }
3229 machfile
="m/${machine}.h"
3230 opsysfile
="s/${opsys}.h"
3233 #### Choose a compiler.
3234 test -n "$CC" && cc_specified
=yes
3236 # Save the value of CFLAGS that the user specified.
3237 SPECIFIED_CFLAGS
="$CFLAGS"
3240 "yes" ) CC
="gcc" GCC
=yes ;;
3241 "no" ) : ${CC=cc} ;;
3245 ac_cpp
='$CPP $CPPFLAGS'
3246 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3247 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3248 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3249 if test -n "$ac_tool_prefix"; then
3250 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3251 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3252 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3254 if test "${ac_cv_prog_CC+set}" = set; then
3255 echo $ECHO_N "(cached) $ECHO_C" >&6
3257 if test -n "$CC"; then
3258 ac_cv_prog_CC
="$CC" # Let the user override the test.
3260 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3264 test -z "$as_dir" && as_dir
=.
3265 for ac_exec_ext
in '' $ac_executable_extensions; do
3266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3267 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3278 if test -n "$CC"; then
3279 { echo "$as_me:$LINENO: result: $CC" >&5
3280 echo "${ECHO_T}$CC" >&6; }
3282 { echo "$as_me:$LINENO: result: no" >&5
3283 echo "${ECHO_T}no" >&6; }
3288 if test -z "$ac_cv_prog_CC"; then
3290 # Extract the first word of "gcc", so it can be a program name with args.
3291 set dummy gcc
; ac_word
=$2
3292 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3294 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3295 echo $ECHO_N "(cached) $ECHO_C" >&6
3297 if test -n "$ac_ct_CC"; then
3298 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3300 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3304 test -z "$as_dir" && as_dir
=.
3305 for ac_exec_ext
in '' $ac_executable_extensions; do
3306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3307 ac_cv_prog_ac_ct_CC
="gcc"
3308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3317 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3318 if test -n "$ac_ct_CC"; then
3319 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3320 echo "${ECHO_T}$ac_ct_CC" >&6; }
3322 { echo "$as_me:$LINENO: result: no" >&5
3323 echo "${ECHO_T}no" >&6; }
3326 if test "x$ac_ct_CC" = x
; then
3329 case $cross_compiling:$ac_tool_warned in
3331 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3332 whose name does not start with the host triplet. If you think this
3333 configuration is useful to you, please write to autoconf@gnu.org." >&5
3334 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3335 whose name does not start with the host triplet. If you think this
3336 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3337 ac_tool_warned
=yes ;;
3345 if test -z "$CC"; then
3346 if test -n "$ac_tool_prefix"; then
3347 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3348 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3349 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3351 if test "${ac_cv_prog_CC+set}" = set; then
3352 echo $ECHO_N "(cached) $ECHO_C" >&6
3354 if test -n "$CC"; then
3355 ac_cv_prog_CC
="$CC" # Let the user override the test.
3357 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3361 test -z "$as_dir" && as_dir
=.
3362 for ac_exec_ext
in '' $ac_executable_extensions; do
3363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3364 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3375 if test -n "$CC"; then
3376 { echo "$as_me:$LINENO: result: $CC" >&5
3377 echo "${ECHO_T}$CC" >&6; }
3379 { echo "$as_me:$LINENO: result: no" >&5
3380 echo "${ECHO_T}no" >&6; }
3386 if test -z "$CC"; then
3387 # Extract the first word of "cc", so it can be a program name with args.
3388 set dummy cc
; ac_word
=$2
3389 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3391 if test "${ac_cv_prog_CC+set}" = set; then
3392 echo $ECHO_N "(cached) $ECHO_C" >&6
3394 if test -n "$CC"; then
3395 ac_cv_prog_CC
="$CC" # Let the user override the test.
3398 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3402 test -z "$as_dir" && as_dir
=.
3403 for ac_exec_ext
in '' $ac_executable_extensions; do
3404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3405 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3406 ac_prog_rejected
=yes
3410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3417 if test $ac_prog_rejected = yes; then
3418 # We found a bogon in the path, so make sure we never use it.
3419 set dummy
$ac_cv_prog_CC
3421 if test $# != 0; then
3422 # We chose a different compiler from the bogus one.
3423 # However, it has the same basename, so the bogon will be chosen
3424 # first if we set CC to just the basename; use the full file name.
3426 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3432 if test -n "$CC"; then
3433 { echo "$as_me:$LINENO: result: $CC" >&5
3434 echo "${ECHO_T}$CC" >&6; }
3436 { echo "$as_me:$LINENO: result: no" >&5
3437 echo "${ECHO_T}no" >&6; }
3442 if test -z "$CC"; then
3443 if test -n "$ac_tool_prefix"; then
3444 for ac_prog
in cl.exe
3446 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3447 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3448 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3450 if test "${ac_cv_prog_CC+set}" = set; then
3451 echo $ECHO_N "(cached) $ECHO_C" >&6
3453 if test -n "$CC"; then
3454 ac_cv_prog_CC
="$CC" # Let the user override the test.
3456 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3460 test -z "$as_dir" && as_dir
=.
3461 for ac_exec_ext
in '' $ac_executable_extensions; do
3462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3463 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3474 if test -n "$CC"; then
3475 { echo "$as_me:$LINENO: result: $CC" >&5
3476 echo "${ECHO_T}$CC" >&6; }
3478 { echo "$as_me:$LINENO: result: no" >&5
3479 echo "${ECHO_T}no" >&6; }
3483 test -n "$CC" && break
3486 if test -z "$CC"; then
3488 for ac_prog
in cl.exe
3490 # Extract the first word of "$ac_prog", so it can be a program name with args.
3491 set dummy
$ac_prog; ac_word
=$2
3492 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3494 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3495 echo $ECHO_N "(cached) $ECHO_C" >&6
3497 if test -n "$ac_ct_CC"; then
3498 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3500 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3504 test -z "$as_dir" && as_dir
=.
3505 for ac_exec_ext
in '' $ac_executable_extensions; do
3506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3507 ac_cv_prog_ac_ct_CC
="$ac_prog"
3508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3517 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3518 if test -n "$ac_ct_CC"; then
3519 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3520 echo "${ECHO_T}$ac_ct_CC" >&6; }
3522 { echo "$as_me:$LINENO: result: no" >&5
3523 echo "${ECHO_T}no" >&6; }
3527 test -n "$ac_ct_CC" && break
3530 if test "x$ac_ct_CC" = x
; then
3533 case $cross_compiling:$ac_tool_warned in
3535 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3536 whose name does not start with the host triplet. If you think this
3537 configuration is useful to you, please write to autoconf@gnu.org." >&5
3538 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3539 whose name does not start with the host triplet. If you think this
3540 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3541 ac_tool_warned
=yes ;;
3550 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3551 See \`config.log' for more details." >&5
3552 echo "$as_me: error: no acceptable C compiler found in \$PATH
3553 See \`config.log' for more details." >&2;}
3554 { (exit 1); exit 1; }; }
3556 # Provide some information about the compiler.
3557 echo "$as_me:$LINENO: checking for C compiler version" >&5
3558 ac_compiler
=`set X $ac_compile; echo $2`
3559 { (ac_try
="$ac_compiler --version >&5"
3561 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3562 *) ac_try_echo=$ac_try;;
3564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3565 (eval "$ac_compiler --version >&5") 2>&5
3567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568 (exit $ac_status); }
3569 { (ac_try="$ac_compiler -v >&5"
3571 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3572 *) ac_try_echo
=$ac_try;;
3574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3575 (eval "$ac_compiler -v >&5") 2>&5
3577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578 (exit $ac_status); }
3579 { (ac_try
="$ac_compiler -V >&5"
3581 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3582 *) ac_try_echo=$ac_try;;
3584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3585 (eval "$ac_compiler -V >&5") 2>&5
3587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588 (exit $ac_status); }
3590 cat >conftest.$ac_ext <<_ACEOF
3593 cat confdefs.h >>conftest.$ac_ext
3594 cat >>conftest.$ac_ext <<_ACEOF
3595 /* end confdefs.h. */
3605 ac_clean_files_save=$ac_clean_files
3606 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3607 # Try to create an executable without -o first, disregard a.out.
3608 # It will help us diagnose broken compilers, and finding out an intuition
3610 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3611 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3612 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3614 # List of possible output files, starting from the most likely.
3615 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
3616 # only as a last resort. b.out is created by i960 compilers.
3617 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
3619 # The IRIX 6 linker writes into existing files which may not be
3620 # executable, retaining their permissions. Remove them first so a
3621 # subsequent execution test works.
3623 for ac_file in $ac_files
3626 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3627 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3632 if { (ac_try="$ac_link_default"
3634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3635 *) ac_try_echo=$ac_try;;
3637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3638 (eval "$ac_link_default") 2>&5
3640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641 (exit $ac_status); }; then
3642 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3643 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3644 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3645 # so that the user can short-circuit this test for compilers unknown to
3647 for ac_file
in $ac_files ''
3649 test -f "$ac_file" ||
continue
3651 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
3654 # We found the default executable, but exeext='' is most
3658 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3660 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3662 # We set ac_cv_exeext here because the later test for it is not
3663 # safe: cross compilers may not add the suffix if given an `-o'
3664 # argument, so we may need to know it at that point already.
3665 # Even if this section looks crufty: it has the advantage of
3672 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3678 { echo "$as_me:$LINENO: result: $ac_file" >&5
3679 echo "${ECHO_T}$ac_file" >&6; }
3680 if test -z "$ac_file"; then
3681 echo "$as_me: failed program was:" >&5
3682 sed 's/^/| /' conftest.
$ac_ext >&5
3684 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3685 See \`config.log' for more details." >&5
3686 echo "$as_me: error: C compiler cannot create executables
3687 See \`config.log' for more details." >&2;}
3688 { (exit 77); exit 77; }; }
3691 ac_exeext
=$ac_cv_exeext
3693 # Check that the compiler produces executables we can run. If not, either
3694 # the compiler is broken, or we cross compile.
3695 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3696 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3697 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3698 # If not cross compiling, check that we can run a simple program.
3699 if test "$cross_compiling" != yes; then
3700 if { ac_try
='./$ac_file'
3701 { (case "(($ac_try" in
3702 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3703 *) ac_try_echo=$ac_try;;
3705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3706 (eval "$ac_try") 2>&5
3708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709 (exit $ac_status); }; }; then
3712 if test "$cross_compiling" = maybe; then
3715 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3716 If you meant to cross compile, use \`--host'.
3717 See \`config.log' for more details.
" >&5
3718 echo "$as_me: error
: cannot run C compiled programs.
3719 If you meant to cross compile
, use \
`--host'.
3720 See \`config.log
' for more details." >&2;}
3721 { (exit 1); exit 1; }; }
3725 { echo "$as_me:$LINENO: result: yes" >&5
3726 echo "${ECHO_T}yes" >&6; }
3728 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3729 ac_clean_files=$ac_clean_files_save
3730 # Check that the compiler produces executables we can run. If not, either
3731 # the compiler is broken, or we cross compile.
3732 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3733 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3734 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3735 echo "${ECHO_T}$cross_compiling" >&6; }
3737 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3738 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3739 if { (ac_try="$ac_link"
3741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3742 *) ac_try_echo=$ac_try;;
3744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3745 (eval "$ac_link") 2>&5
3747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748 (exit $ac_status); }; then
3749 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3750 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3751 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3753 for ac_file
in conftest.exe conftest conftest.
*; do
3754 test -f "$ac_file" ||
continue
3756 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
3757 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3763 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3764 See \`config.log' for more details." >&5
3765 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3766 See \`config.log' for more details." >&2;}
3767 { (exit 1); exit 1; }; }
3770 rm -f conftest
$ac_cv_exeext
3771 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3772 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3774 rm -f conftest.
$ac_ext
3775 EXEEXT
=$ac_cv_exeext
3777 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3778 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3779 if test "${ac_cv_objext+set}" = set; then
3780 echo $ECHO_N "(cached) $ECHO_C" >&6
3782 cat >conftest.
$ac_ext <<_ACEOF
3785 cat confdefs.h
>>conftest.
$ac_ext
3786 cat >>conftest.
$ac_ext <<_ACEOF
3787 /* end confdefs.h. */
3797 rm -f conftest.o conftest.obj
3798 if { (ac_try
="$ac_compile"
3800 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3801 *) ac_try_echo=$ac_try;;
3803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3804 (eval "$ac_compile") 2>&5
3806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807 (exit $ac_status); }; then
3808 for ac_file in conftest.o conftest.obj conftest.*; do
3809 test -f "$ac_file" || continue;
3811 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3812 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3817 echo "$as_me: failed program was:" >&5
3818 sed 's/^/| /' conftest.$ac_ext >&5
3820 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3821 See \`config.log
' for more details." >&5
3822 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3823 See \`config.log' for more details.
" >&2;}
3824 { (exit 1); exit 1; }; }
3827 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3829 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3830 echo "${ECHO_T}$ac_cv_objext" >&6; }
3831 OBJEXT=$ac_cv_objext
3833 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3834 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3835 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3836 echo $ECHO_N "(cached
) $ECHO_C" >&6
3838 cat >conftest.$ac_ext <<_ACEOF
3841 cat confdefs.h >>conftest.$ac_ext
3842 cat >>conftest.$ac_ext <<_ACEOF
3843 /* end confdefs.h. */
3856 rm -f conftest.$ac_objext
3857 if { (ac_try="$ac_compile"
3859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3860 *) ac_try_echo=$ac_try;;
3862 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3863 (eval "$ac_compile") 2>conftest.er1
3865 grep -v '^ *+' conftest.er1 >conftest.err
3867 cat conftest.err >&5
3868 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3869 (exit $ac_status); } && {
3870 test -z "$ac_c_werror_flag" ||
3871 test ! -s conftest.err
3872 } && test -s conftest.$ac_objext; then
3875 echo "$as_me: failed program was
:" >&5
3876 sed 's/^/| /' conftest.$ac_ext >&5
3881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3882 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3885 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3886 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3887 GCC=`test $ac_compiler_gnu = yes && echo yes`
3888 ac_test_CFLAGS=${CFLAGS+set}
3889 ac_save_CFLAGS=$CFLAGS
3890 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3891 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3892 if test "${ac_cv_prog_cc_g+set}" = set; then
3893 echo $ECHO_N "(cached
) $ECHO_C" >&6
3895 ac_save_c_werror_flag=$ac_c_werror_flag
3896 ac_c_werror_flag=yes
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
3937 cat >conftest.$ac_ext <<_ACEOF
3940 cat confdefs.h >>conftest.$ac_ext
3941 cat >>conftest.$ac_ext <<_ACEOF
3942 /* end confdefs.h. */
3952 rm -f conftest.$ac_objext
3953 if { (ac_try="$ac_compile"
3955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3956 *) ac_try_echo=$ac_try;;
3958 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3959 (eval "$ac_compile") 2>conftest.er1
3961 grep -v '^ *+' conftest.er1 >conftest.err
3963 cat conftest.err >&5
3964 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3965 (exit $ac_status); } && {
3966 test -z "$ac_c_werror_flag" ||
3967 test ! -s conftest.err
3968 } && test -s conftest.$ac_objext; then
3971 echo "$as_me: failed program was
:" >&5
3972 sed 's/^/| /' conftest.$ac_ext >&5
3974 ac_c_werror_flag=$ac_save_c_werror_flag
3976 cat >conftest.$ac_ext <<_ACEOF
3979 cat confdefs.h >>conftest.$ac_ext
3980 cat >>conftest.$ac_ext <<_ACEOF
3981 /* end confdefs.h. */
3991 rm -f conftest.$ac_objext
3992 if { (ac_try="$ac_compile"
3994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3995 *) ac_try_echo=$ac_try;;
3997 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3998 (eval "$ac_compile") 2>conftest.er1
4000 grep -v '^ *+' conftest.er1 >conftest.err
4002 cat conftest.err >&5
4003 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4004 (exit $ac_status); } && {
4005 test -z "$ac_c_werror_flag" ||
4006 test ! -s conftest.err
4007 } && test -s conftest.$ac_objext; then
4010 echo "$as_me: failed program was
:" >&5
4011 sed 's/^/| /' conftest.$ac_ext >&5
4016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4023 ac_c_werror_flag=$ac_save_c_werror_flag
4025 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
4026 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4027 if test "$ac_test_CFLAGS" = set; then
4028 CFLAGS=$ac_save_CFLAGS
4029 elif test $ac_cv_prog_cc_g = yes; then
4030 if test "$GCC" = yes; then
4036 if test "$GCC" = yes; then
4042 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
4043 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
4044 if test "${ac_cv_prog_cc_c89+set}" = set; then
4045 echo $ECHO_N "(cached
) $ECHO_C" >&6
4047 ac_cv_prog_cc_c89=no
4049 cat >conftest.$ac_ext <<_ACEOF
4052 cat confdefs.h >>conftest.$ac_ext
4053 cat >>conftest.$ac_ext <<_ACEOF
4054 /* end confdefs.h. */
4057 #include <sys/types.h>
4058 #include <sys/stat.h>
4059 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4060 struct buf { int x; };
4061 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4062 static char *e (p, i)
4068 static char *f (char * (*g) (char **, int), char **p, ...)
4073 s = g (p, va_arg (v,int));
4078 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4079 function prototypes and stuff, but not '\xHH' hex character constants.
4080 These don't provoke an error unfortunately, instead are silently treated
4081 as 'x'. The following induces an error, until -std is added to get
4082 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4083 array size at least. It's necessary to write '\x00'==0 to get something
4084 that's true only with -std. */
4085 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4087 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4088 inside strings and character constants. */
4090 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4092 int test (int i, double x);
4093 struct s1 {int (*f) (int a);};
4094 struct s2 {int (*f) (double a);};
4095 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4101 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4106 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4107 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4109 CC="$ac_save_CC $ac_arg"
4110 rm -f conftest.$ac_objext
4111 if { (ac_try="$ac_compile"
4113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4114 *) ac_try_echo=$ac_try;;
4116 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4117 (eval "$ac_compile") 2>conftest.er1
4119 grep -v '^ *+' conftest.er1 >conftest.err
4121 cat conftest.err >&5
4122 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4123 (exit $ac_status); } && {
4124 test -z "$ac_c_werror_flag" ||
4125 test ! -s conftest.err
4126 } && test -s conftest.$ac_objext; then
4127 ac_cv_prog_cc_c89=$ac_arg
4129 echo "$as_me: failed program was
:" >&5
4130 sed 's/^/| /' conftest.$ac_ext >&5
4135 rm -f core conftest.err conftest.$ac_objext
4136 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
4138 rm -f conftest.$ac_ext
4143 case "x
$ac_cv_prog_cc_c89" in
4145 { echo "$as_me:$LINENO: result
: none needed
" >&5
4146 echo "${ECHO_T}none needed
" >&6; } ;;
4148 { echo "$as_me:$LINENO: result
: unsupported
" >&5
4149 echo "${ECHO_T}unsupported
" >&6; } ;;
4151 CC="$CC $ac_cv_prog_cc_c89"
4152 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
4153 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4158 ac_cpp='$CPP $CPPFLAGS'
4159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4164 # On Suns, sometimes $CPP names a directory.
4165 if test -n "$CPP" && test -d "$CPP"; then
4169 #### Some systems specify a CPP to use unless we are using GCC.
4170 #### Now that we know whether we are using GCC, we can decide whether
4171 #### to use that one.
4172 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
4177 #### Some systems specify a CC to use unless we are using GCC.
4178 #### Now that we know whether we are using GCC, we can decide whether
4179 #### to use that one.
4180 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
4181 test x$cc_specified != xyes
4186 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
4188 CC="$CC $GCC_TEST_OPTIONS"
4191 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
4193 CC="$CC $NON_GCC_TEST_OPTIONS"
4198 ac_cpp='$CPP $CPPFLAGS'
4199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4202 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
4203 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
4204 # On Suns, sometimes $CPP names a directory.
4205 if test -n "$CPP" && test -d "$CPP"; then
4208 if test -z "$CPP"; then
4209 if test "${ac_cv_prog_CPP+set}" = set; then
4210 echo $ECHO_N "(cached
) $ECHO_C" >&6
4212 # Double quotes because CPP needs to be expanded
4213 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
4216 for ac_c_preproc_warn_flag in '' yes
4218 # Use a header file that comes with gcc, so configuring glibc
4219 # with a fresh cross-compiler works.
4220 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4221 # <limits.h> exists even on freestanding compilers.
4222 # On the NeXT, cc -E runs the code through the compiler's parser,
4223 # not just through cpp. "Syntax error
" is here to catch this case.
4224 cat >conftest.$ac_ext <<_ACEOF
4227 cat confdefs.h >>conftest.$ac_ext
4228 cat >>conftest.$ac_ext <<_ACEOF
4229 /* end confdefs.h. */
4231 # include <limits.h>
4233 # include <assert.h>
4237 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4240 *) ac_try_echo=$ac_try;;
4242 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4243 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4245 grep -v '^ *+' conftest.er1 >conftest.err
4247 cat conftest.err >&5
4248 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4249 (exit $ac_status); } >/dev/null && {
4250 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4251 test ! -s conftest.err
4255 echo "$as_me: failed program was
:" >&5
4256 sed 's/^/| /' conftest.$ac_ext >&5
4258 # Broken: fails on valid input.
4262 rm -f conftest.err conftest.$ac_ext
4264 # OK, works on sane cases. Now check whether nonexistent headers
4265 # can be detected and how.
4266 cat >conftest.$ac_ext <<_ACEOF
4269 cat confdefs.h >>conftest.$ac_ext
4270 cat >>conftest.$ac_ext <<_ACEOF
4271 /* end confdefs.h. */
4272 #include <ac_nonexistent.h>
4274 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4277 *) ac_try_echo=$ac_try;;
4279 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4280 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4282 grep -v '^ *+' conftest.er1 >conftest.err
4284 cat conftest.err >&5
4285 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4286 (exit $ac_status); } >/dev/null && {
4287 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4288 test ! -s conftest.err
4290 # Broken: success on invalid input.
4293 echo "$as_me: failed program was
:" >&5
4294 sed 's/^/| /' conftest.$ac_ext >&5
4296 # Passes both tests.
4301 rm -f conftest.err conftest.$ac_ext
4304 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4305 rm -f conftest.err conftest.$ac_ext
4306 if $ac_preproc_ok; then
4318 { echo "$as_me:$LINENO: result
: $CPP" >&5
4319 echo "${ECHO_T}$CPP" >&6; }
4321 for ac_c_preproc_warn_flag in '' yes
4323 # Use a header file that comes with gcc, so configuring glibc
4324 # with a fresh cross-compiler works.
4325 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4326 # <limits.h> exists even on freestanding compilers.
4327 # On the NeXT, cc -E runs the code through the compiler's parser,
4328 # not just through cpp. "Syntax error
" is here to catch this case.
4329 cat >conftest.$ac_ext <<_ACEOF
4332 cat confdefs.h >>conftest.$ac_ext
4333 cat >>conftest.$ac_ext <<_ACEOF
4334 /* end confdefs.h. */
4336 # include <limits.h>
4338 # include <assert.h>
4342 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4345 *) ac_try_echo=$ac_try;;
4347 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4348 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4350 grep -v '^ *+' conftest.er1 >conftest.err
4352 cat conftest.err >&5
4353 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4354 (exit $ac_status); } >/dev/null && {
4355 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4356 test ! -s conftest.err
4360 echo "$as_me: failed program was
:" >&5
4361 sed 's/^/| /' conftest.$ac_ext >&5
4363 # Broken: fails on valid input.
4367 rm -f conftest.err conftest.$ac_ext
4369 # OK, works on sane cases. Now check whether nonexistent headers
4370 # can be detected and how.
4371 cat >conftest.$ac_ext <<_ACEOF
4374 cat confdefs.h >>conftest.$ac_ext
4375 cat >>conftest.$ac_ext <<_ACEOF
4376 /* end confdefs.h. */
4377 #include <ac_nonexistent.h>
4379 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4382 *) ac_try_echo=$ac_try;;
4384 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4385 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4387 grep -v '^ *+' conftest.er1 >conftest.err
4389 cat conftest.err >&5
4390 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4391 (exit $ac_status); } >/dev/null && {
4392 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4393 test ! -s conftest.err
4395 # Broken: success on invalid input.
4398 echo "$as_me: failed program was
:" >&5
4399 sed 's/^/| /' conftest.$ac_ext >&5
4401 # Passes both tests.
4406 rm -f conftest.err conftest.$ac_ext
4409 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4410 rm -f conftest.err conftest.$ac_ext
4411 if $ac_preproc_ok; then
4414 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4415 See \
`config.log' for more details." >&5
4416 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4417 See \`config.log
' for more details." >&2;}
4418 { (exit 1); exit 1; }; }
4422 ac_cpp='$CPP $CPPFLAGS'
4423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4424 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4428 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4429 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4430 if test "${ac_cv_path_GREP+set}" = set; then
4431 echo $ECHO_N "(cached) $ECHO_C" >&6
4433 # Extract the first word of "grep ggrep" to use in msg output
4434 if test -z "$GREP"; then
4435 set dummy grep ggrep; ac_prog_name=$2
4436 if test "${ac_cv_path_GREP+set}" = set; then
4437 echo $ECHO_N "(cached) $ECHO_C" >&6
4439 ac_path_GREP_found=false
4440 # Loop through the user's path and
test for each of PROGNAME-LIST
4441 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4442 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4445 test -z "$as_dir" && as_dir
=.
4446 for ac_prog
in grep ggrep
; do
4447 for ac_exec_ext
in '' $ac_executable_extensions; do
4448 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4449 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4450 # Check for GNU ac_path_GREP and select it if it is found.
4451 # Check for GNU $ac_path_GREP
4452 case `"$ac_path_GREP" --version 2>&1` in
4454 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4457 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4460 cat "conftest.in" "conftest.in" >"conftest.tmp"
4461 mv "conftest.tmp" "conftest.in"
4462 cp "conftest.in" "conftest.nl"
4463 echo 'GREP' >> "conftest.nl"
4464 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4465 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4466 ac_count
=`expr $ac_count + 1`
4467 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4468 # Best one so far, save it but keep looking for a better one
4469 ac_cv_path_GREP
="$ac_path_GREP"
4470 ac_path_GREP_max
=$ac_count
4472 # 10*(2^10) chars as input seems more than enough
4473 test $ac_count -gt 10 && break
4475 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4479 $ac_path_GREP_found && break 3
4489 GREP
="$ac_cv_path_GREP"
4490 if test -z "$GREP"; then
4491 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4492 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4493 { (exit 1); exit 1; }; }
4497 ac_cv_path_GREP
=$GREP
4502 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4503 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4504 GREP
="$ac_cv_path_GREP"
4507 { echo "$as_me:$LINENO: checking for egrep" >&5
4508 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4509 if test "${ac_cv_path_EGREP+set}" = set; then
4510 echo $ECHO_N "(cached) $ECHO_C" >&6
4512 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4513 then ac_cv_path_EGREP
="$GREP -E"
4515 # Extract the first word of "egrep" to use in msg output
4516 if test -z "$EGREP"; then
4517 set dummy
egrep; ac_prog_name
=$2
4518 if test "${ac_cv_path_EGREP+set}" = set; then
4519 echo $ECHO_N "(cached) $ECHO_C" >&6
4521 ac_path_EGREP_found
=false
4522 # Loop through the user's path and test for each of PROGNAME-LIST
4523 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4524 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4527 test -z "$as_dir" && as_dir
=.
4528 for ac_prog
in egrep; do
4529 for ac_exec_ext
in '' $ac_executable_extensions; do
4530 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4531 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4532 # Check for GNU ac_path_EGREP and select it if it is found.
4533 # Check for GNU $ac_path_EGREP
4534 case `"$ac_path_EGREP" --version 2>&1` in
4536 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4539 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4542 cat "conftest.in" "conftest.in" >"conftest.tmp"
4543 mv "conftest.tmp" "conftest.in"
4544 cp "conftest.in" "conftest.nl"
4545 echo 'EGREP' >> "conftest.nl"
4546 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4547 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4548 ac_count
=`expr $ac_count + 1`
4549 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4550 # Best one so far, save it but keep looking for a better one
4551 ac_cv_path_EGREP
="$ac_path_EGREP"
4552 ac_path_EGREP_max
=$ac_count
4554 # 10*(2^10) chars as input seems more than enough
4555 test $ac_count -gt 10 && break
4557 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4561 $ac_path_EGREP_found && break 3
4571 EGREP
="$ac_cv_path_EGREP"
4572 if test -z "$EGREP"; then
4573 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4574 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4575 { (exit 1); exit 1; }; }
4579 ac_cv_path_EGREP
=$EGREP
4585 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4586 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4587 EGREP
="$ac_cv_path_EGREP"
4591 { echo "$as_me:$LINENO: checking for AIX" >&5
4592 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4593 cat >conftest.
$ac_ext <<_ACEOF
4596 cat confdefs.h
>>conftest.
$ac_ext
4597 cat >>conftest.
$ac_ext <<_ACEOF
4598 /* end confdefs.h. */
4604 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4605 $EGREP "yes" >/dev
/null
2>&1; then
4606 { echo "$as_me:$LINENO: result: yes" >&5
4607 echo "${ECHO_T}yes" >&6; }
4608 cat >>confdefs.h
<<\_ACEOF
4609 #define _ALL_SOURCE 1
4613 { echo "$as_me:$LINENO: result: no" >&5
4614 echo "${ECHO_T}no" >&6; }
4620 cat >>confdefs.h
<<\_ACEOF
4621 #define _GNU_SOURCE 1
4626 ### Use -Wno-pointer-sign if the compiler supports it
4627 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4628 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4629 SAVE_CFLAGS
="$CFLAGS"
4630 CFLAGS
="$CFLAGS -Wno-pointer-sign"
4631 cat >conftest.
$ac_ext <<_ACEOF
4634 cat confdefs.h
>>conftest.
$ac_ext
4635 cat >>conftest.
$ac_ext <<_ACEOF
4636 /* end confdefs.h. */
4646 rm -f conftest.
$ac_objext
4647 if { (ac_try
="$ac_compile"
4649 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4650 *) ac_try_echo=$ac_try;;
4652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4653 (eval "$ac_compile") 2>conftest.er1
4655 grep -v '^ *+' conftest.er1 >conftest.err
4657 cat conftest.err >&5
4658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659 (exit $ac_status); } && {
4660 test -z "$ac_c_werror_flag" ||
4661 test ! -s conftest.err
4662 } && test -s conftest.$ac_objext; then
4665 echo "$as_me: failed program was:" >&5
4666 sed 's/^/| /' conftest.$ac_ext >&5
4671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4672 if test $has_option = yes; then
4673 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4675 { echo "$as_me:$LINENO: result: $has_option" >&5
4676 echo "${ECHO_T}$has_option" >&6; }
4677 CFLAGS="$SAVE_CFLAGS"
4681 #### Some other nice autoconf tests.
4683 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4684 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4686 if test "$LN_S" = "ln -s"; then
4687 { echo "$as_me:$LINENO: result: yes" >&5
4688 echo "${ECHO_T}yes" >&6; }
4690 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4691 echo "${ECHO_T}no, using $LN_S" >&6; }
4695 ac_cpp='$CPP $CPPFLAGS'
4696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4699 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4700 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4701 # On Suns, sometimes $CPP names a directory.
4702 if test -n "$CPP" && test -d "$CPP"; then
4705 if test -z "$CPP"; then
4706 if test "${ac_cv_prog_CPP+set}" = set; then
4707 echo $ECHO_N "(cached) $ECHO_C" >&6
4709 # Double quotes because CPP needs to be expanded
4710 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4713 for ac_c_preproc_warn_flag in '' yes
4715 # Use a header file that comes with gcc, so configuring glibc
4716 # with a fresh cross-compiler works.
4717 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4718 # <limits.h> exists even on freestanding compilers.
4719 # On the NeXT, cc -E runs the code through the compiler's parser,
4720 # not just through cpp. "Syntax error" is here to catch this case.
4721 cat >conftest.$ac_ext <<_ACEOF
4724 cat confdefs.h >>conftest.$ac_ext
4725 cat >>conftest.$ac_ext <<_ACEOF
4726 /* end confdefs.h. */
4728 # include <limits.h>
4730 # include <assert.h>
4734 if { (ac_try="$ac_cpp conftest.$ac_ext"
4736 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4737 *) ac_try_echo
=$ac_try;;
4739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4740 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4742 grep -v '^ *+' conftest.er1
>conftest.err
4744 cat conftest.err
>&5
4745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746 (exit $ac_status); } >/dev
/null
&& {
4747 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4748 test ! -s conftest.err
4752 echo "$as_me: failed program was:" >&5
4753 sed 's/^/| /' conftest.
$ac_ext >&5
4755 # Broken: fails on valid input.
4759 rm -f conftest.err conftest.
$ac_ext
4761 # OK, works on sane cases. Now check whether nonexistent headers
4762 # can be detected and how.
4763 cat >conftest.
$ac_ext <<_ACEOF
4766 cat confdefs.h
>>conftest.
$ac_ext
4767 cat >>conftest.
$ac_ext <<_ACEOF
4768 /* end confdefs.h. */
4769 #include <ac_nonexistent.h>
4771 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4773 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4774 *) ac_try_echo=$ac_try;;
4776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4777 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4779 grep -v '^ *+' conftest.er1 >conftest.err
4781 cat conftest.err >&5
4782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783 (exit $ac_status); } >/dev/null && {
4784 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4785 test ! -s conftest.err
4787 # Broken: success on invalid input.
4790 echo "$as_me: failed program was:" >&5
4791 sed 's/^/| /' conftest.$ac_ext >&5
4793 # Passes both tests.
4798 rm -f conftest.err conftest.$ac_ext
4801 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4802 rm -f conftest.err conftest.
$ac_ext
4803 if $ac_preproc_ok; then
4815 { echo "$as_me:$LINENO: result: $CPP" >&5
4816 echo "${ECHO_T}$CPP" >&6; }
4818 for ac_c_preproc_warn_flag
in '' yes
4820 # Use a header file that comes with gcc, so configuring glibc
4821 # with a fresh cross-compiler works.
4822 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4823 # <limits.h> exists even on freestanding compilers.
4824 # On the NeXT, cc -E runs the code through the compiler's parser,
4825 # not just through cpp. "Syntax error" is here to catch this case.
4826 cat >conftest.
$ac_ext <<_ACEOF
4829 cat confdefs.h
>>conftest.
$ac_ext
4830 cat >>conftest.
$ac_ext <<_ACEOF
4831 /* end confdefs.h. */
4833 # include <limits.h>
4835 # include <assert.h>
4839 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4841 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4842 *) ac_try_echo=$ac_try;;
4844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4845 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4847 grep -v '^ *+' conftest.er1 >conftest.err
4849 cat conftest.err >&5
4850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851 (exit $ac_status); } >/dev/null && {
4852 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4853 test ! -s conftest.err
4857 echo "$as_me: failed program was:" >&5
4858 sed 's/^/| /' conftest.$ac_ext >&5
4860 # Broken: fails on valid input.
4864 rm -f conftest.err conftest.$ac_ext
4866 # OK, works on sane cases. Now check whether nonexistent headers
4867 # can be detected and how.
4868 cat >conftest.$ac_ext <<_ACEOF
4871 cat confdefs.h >>conftest.$ac_ext
4872 cat >>conftest.$ac_ext <<_ACEOF
4873 /* end confdefs.h. */
4874 #include <ac_nonexistent.h>
4876 if { (ac_try="$ac_cpp conftest.$ac_ext"
4878 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4879 *) ac_try_echo
=$ac_try;;
4881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4882 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4884 grep -v '^ *+' conftest.er1
>conftest.err
4886 cat conftest.err
>&5
4887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4888 (exit $ac_status); } >/dev
/null
&& {
4889 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4890 test ! -s conftest.err
4892 # Broken: success on invalid input.
4895 echo "$as_me: failed program was:" >&5
4896 sed 's/^/| /' conftest.
$ac_ext >&5
4898 # Passes both tests.
4903 rm -f conftest.err conftest.
$ac_ext
4906 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4907 rm -f conftest.err conftest.
$ac_ext
4908 if $ac_preproc_ok; then
4911 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4912 See \`config.log' for more details." >&5
4913 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4914 See \`config.log' for more details." >&2;}
4915 { (exit 1); exit 1; }; }
4919 ac_cpp
='$CPP $CPPFLAGS'
4920 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4921 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4922 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4924 # Find a good install program. We prefer a C program (faster),
4925 # so one script is as good as another. But avoid the broken or
4926 # incompatible versions:
4927 # SysV /etc/install, /usr/sbin/install
4928 # SunOS /usr/etc/install
4929 # IRIX /sbin/install
4931 # AmigaOS /C/install, which installs bootblocks on floppy discs
4932 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4933 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4934 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4935 # OS/2's system install, which has a completely different semantic
4936 # ./install, which can be erroneously created by make from ./install.sh.
4937 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4938 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4939 if test -z "$INSTALL"; then
4940 if test "${ac_cv_path_install+set}" = set; then
4941 echo $ECHO_N "(cached) $ECHO_C" >&6
4943 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4947 test -z "$as_dir" && as_dir
=.
4948 # Account for people who put trailing slashes in PATH elements.
4950 .
/ | .
// |
/cC
/* | \
4951 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4952 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4955 # OSF1 and SCO ODT 3.0 have their own names for install.
4956 # Don't use installbsd from OSF since it installs stuff as root
4958 for ac_prog
in ginstall scoinst
install; do
4959 for ac_exec_ext
in '' $ac_executable_extensions; do
4960 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4961 if test $ac_prog = install &&
4962 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4963 # AIX install. It has an incompatible calling convention.
4965 elif test $ac_prog = install &&
4966 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4967 # program-specific install script used by HP pwplus--don't use.
4970 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4983 if test "${ac_cv_path_install+set}" = set; then
4984 INSTALL
=$ac_cv_path_install
4986 # As a last resort, use the slow shell script. Don't cache a
4987 # value for INSTALL within a source directory, because that will
4988 # break other packages using the cache if that directory is
4989 # removed, or if the value is a relative name.
4990 INSTALL
=$ac_install_sh
4993 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4994 echo "${ECHO_T}$INSTALL" >&6; }
4996 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4997 # It thinks the first close brace ends the variable substitution.
4998 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5000 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5002 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5004 if test "x$RANLIB" = x
; then
5005 if test -n "$ac_tool_prefix"; then
5006 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5007 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5008 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5010 if test "${ac_cv_prog_RANLIB+set}" = set; then
5011 echo $ECHO_N "(cached) $ECHO_C" >&6
5013 if test -n "$RANLIB"; then
5014 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5016 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5020 test -z "$as_dir" && as_dir
=.
5021 for ac_exec_ext
in '' $ac_executable_extensions; do
5022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5023 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5033 RANLIB
=$ac_cv_prog_RANLIB
5034 if test -n "$RANLIB"; then
5035 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5036 echo "${ECHO_T}$RANLIB" >&6; }
5038 { echo "$as_me:$LINENO: result: no" >&5
5039 echo "${ECHO_T}no" >&6; }
5044 if test -z "$ac_cv_prog_RANLIB"; then
5045 ac_ct_RANLIB
=$RANLIB
5046 # Extract the first word of "ranlib", so it can be a program name with args.
5047 set dummy ranlib
; ac_word
=$2
5048 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5050 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5051 echo $ECHO_N "(cached) $ECHO_C" >&6
5053 if test -n "$ac_ct_RANLIB"; then
5054 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5056 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5060 test -z "$as_dir" && as_dir
=.
5061 for ac_exec_ext
in '' $ac_executable_extensions; do
5062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5063 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5073 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5074 if test -n "$ac_ct_RANLIB"; then
5075 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5076 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5078 { echo "$as_me:$LINENO: result: no" >&5
5079 echo "${ECHO_T}no" >&6; }
5082 if test "x$ac_ct_RANLIB" = x
; then
5085 case $cross_compiling:$ac_tool_warned in
5087 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5088 whose name does not start with the host triplet. If you think this
5089 configuration is useful to you, please write to autoconf@gnu.org." >&5
5090 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5091 whose name does not start with the host triplet. If you think this
5092 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5093 ac_tool_warned
=yes ;;
5095 RANLIB
=$ac_ct_RANLIB
5098 RANLIB
="$ac_cv_prog_RANLIB"
5102 # Extract the first word of "install-info", so it can be a program name with args.
5103 set dummy install-info
; ac_word
=$2
5104 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5106 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5107 echo $ECHO_N "(cached) $ECHO_C" >&6
5109 case $INSTALL_INFO in
5111 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5114 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5118 test -z "$as_dir" && as_dir
=.
5119 for ac_exec_ext
in '' $ac_executable_extensions; do
5120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5121 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5132 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5133 if test -n "$INSTALL_INFO"; then
5134 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5135 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5137 { echo "$as_me:$LINENO: result: no" >&5
5138 echo "${ECHO_T}no" >&6; }
5142 # Extract the first word of "install-info", so it can be a program name with args.
5143 set dummy install-info
; ac_word
=$2
5144 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5146 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5147 echo $ECHO_N "(cached) $ECHO_C" >&6
5149 case $INSTALL_INFO in
5151 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5154 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5155 for as_dir
in /usr
/sbin
5158 test -z "$as_dir" && as_dir
=.
5159 for ac_exec_ext
in '' $ac_executable_extensions; do
5160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5161 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5172 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5173 if test -n "$INSTALL_INFO"; then
5174 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5175 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5177 { echo "$as_me:$LINENO: result: no" >&5
5178 echo "${ECHO_T}no" >&6; }
5182 # Extract the first word of "install-info", so it can be a program name with args.
5183 set dummy install-info
; ac_word
=$2
5184 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5186 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5187 echo $ECHO_N "(cached) $ECHO_C" >&6
5189 case $INSTALL_INFO in
5191 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5194 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5198 test -z "$as_dir" && as_dir
=.
5199 for ac_exec_ext
in '' $ac_executable_extensions; do
5200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5201 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5209 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5213 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5214 if test -n "$INSTALL_INFO"; then
5215 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5216 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5218 { echo "$as_me:$LINENO: result: no" >&5
5219 echo "${ECHO_T}no" >&6; }
5223 # Extract the first word of "gzip", so it can be a program name with args.
5224 set dummy
gzip; ac_word
=$2
5225 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5227 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5228 echo $ECHO_N "(cached) $ECHO_C" >&6
5232 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5235 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5239 test -z "$as_dir" && as_dir
=.
5240 for ac_exec_ext
in '' $ac_executable_extensions; do
5241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5242 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5253 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5254 if test -n "$GZIP_PROG"; then
5255 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5256 echo "${ECHO_T}$GZIP_PROG" >&6; }
5258 { echo "$as_me:$LINENO: result: no" >&5
5259 echo "${ECHO_T}no" >&6; }
5265 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5267 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5270 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5272 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5276 late_LDFLAGS
=$LDFLAGS
5277 if test "$GCC" = yes; then
5278 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5280 LDFLAGS
="$LDFLAGS -znocombreloc"
5283 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5284 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5285 cat >conftest.
$ac_ext <<_ACEOF
5288 rm -f conftest.
$ac_objext conftest
$ac_exeext
5289 if { (ac_try
="$ac_link"
5291 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5292 *) ac_try_echo=$ac_try;;
5294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5295 (eval "$ac_link") 2>conftest.er1
5297 grep -v '^ *+' conftest.er1 >conftest.err
5299 cat conftest.err >&5
5300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301 (exit $ac_status); } && {
5302 test -z "$ac_c_werror_flag" ||
5303 test ! -s conftest.err
5304 } && test -s conftest$ac_exeext &&
5305 $as_test_x conftest$ac_exeext; then
5306 { echo "$as_me:$LINENO: result: yes" >&5
5307 echo "${ECHO_T}yes" >&6; }
5309 echo "$as_me: failed program was:" >&5
5310 sed 's/^/| /' conftest.$ac_ext >&5
5312 LDFLAGS=$late_LDFLAGS
5313 { echo "$as_me:$LINENO: result: no" >&5
5314 echo "${ECHO_T}no" >&6; }
5317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5318 conftest$ac_exeext conftest.$ac_ext
5320 #### Extract some information from the operating system and machine files.
5322 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5323 - which libraries the lib-src programs will want, and
5324 - whether the GNU malloc routines are usable..." >&5
5325 echo "$as_me: checking the machine- and system-dependent files to find out
5326 - which libraries the lib-src programs will want, and
5327 - whether the GNU malloc routines are usable..." >&6;}
5329 ### First figure out CFLAGS (which we use for running the compiler here)
5330 ### and REAL_CFLAGS (which we use for real compilation).
5331 ### The two are the same except on a few systems, where they are made
5332 ### different to work around various lossages. For example,
5333 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5334 ### as implying static linking.
5336 ### If the CFLAGS env var is specified, we use that value
5337 ### instead of the default.
5339 ### It's not important that this name contain the PID; you can't run
5340 ### two configures in the same directory and have anything work
5342 tempcname="conftest.c"
5345 #include "'${srcdir}'/src/'${opsysfile}'"
5346 #include "'${srcdir}'/src/'${machfile}'"
5347 #ifndef LIBS_MACHINE
5348 #define LIBS_MACHINE
5353 #ifndef C_SWITCH_SYSTEM
5354 #define C_SWITCH_SYSTEM
5356 #ifndef C_SWITCH_MACHINE
5357 #define C_SWITCH_MACHINE
5359 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5360 configure___ c_switch_system=C_SWITCH_SYSTEM
5361 configure___ c_switch_machine=C_SWITCH_MACHINE
5364 #define LIB_X11_LIB -lX11
5367 #ifndef LIBX11_MACHINE
5368 #define LIBX11_MACHINE
5371 #ifndef LIBX11_SYSTEM
5372 #define LIBX11_SYSTEM
5374 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5377 configure___ unexec=UNEXEC
5379 configure___ unexec=unexec.o
5382 #ifdef SYSTEM_MALLOC
5383 configure___ system_malloc=yes
5385 configure___ system_malloc=no
5388 #ifdef USE_MMAP_FOR_BUFFERS
5389 configure___ use_mmap_for_buffers=yes
5391 configure___ use_mmap_for_buffers=no
5394 #ifndef C_DEBUG_SWITCH
5395 #define C_DEBUG_SWITCH -g
5398 #ifndef C_OPTIMIZE_SWITCH
5400 #define C_OPTIMIZE_SWITCH -O2
5402 #define C_OPTIMIZE_SWITCH -O
5406 #ifndef C_WARNINGS_SWITCH
5407 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5410 #ifndef LD_SWITCH_MACHINE
5411 #define LD_SWITCH_MACHINE
5414 #ifndef LD_SWITCH_SYSTEM
5415 #define LD_SWITCH_SYSTEM
5418 #ifndef LD_SWITCH_X_SITE_AUX
5419 #define LD_SWITCH_X_SITE_AUX
5422 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5423 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5425 #ifdef THIS_IS_CONFIGURE
5427 /* Get the CFLAGS for tests in configure. */
5429 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5431 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5434 #else /* not THIS_IS_CONFIGURE */
5436 /* Get the CFLAGS for real compilation. */
5438 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5440 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5443 #endif /* not THIS_IS_CONFIGURE */
5446 # The value of CPP is a quoted variable reference, so we need to do this
5447 # to get its actual value...
5448 CPP=`eval "echo $CPP"`
5449 eval `${CPP} -Isrc ${tempcname} \
5450 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5451 if test "x$SPECIFIED_CFLAGS" = x; then
5452 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5453 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5455 REAL_CFLAGS="$CFLAGS"
5459 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5461 ### Make sure subsequent tests use flags consistent with the build flags.
5463 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5464 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5466 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5471 # Check whether --enable-largefile was given.
5472 if test "${enable_largefile+set}" = set; then
5473 enableval=$enable_largefile;
5476 if test "$enable_largefile" != no; then
5478 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5479 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5480 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5481 echo $ECHO_N "(cached) $ECHO_C" >&6
5483 ac_cv_sys_largefile_CC=no
5484 if test "$GCC" != yes; then
5487 # IRIX 6.2 and later do not support large files by default,
5488 # so use the C compiler's -n32 option if that helps.
5489 cat >conftest.$ac_ext <<_ACEOF
5492 cat confdefs.h >>conftest.$ac_ext
5493 cat >>conftest.$ac_ext <<_ACEOF
5494 /* end confdefs.h. */
5495 #include <sys/types.h>
5496 /* Check that off_t can represent 2**63 - 1 correctly.
5497 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5498 since some C++ compilers masquerading as C compilers
5499 incorrectly reject 9223372036854775807. */
5500 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5501 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5502 && LARGE_OFF_T % 2147483647 == 1)
5512 rm -f conftest.$ac_objext
5513 if { (ac_try="$ac_compile"
5515 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5516 *) ac_try_echo
=$ac_try;;
5518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5519 (eval "$ac_compile") 2>conftest.er1
5521 grep -v '^ *+' conftest.er1
>conftest.err
5523 cat conftest.err
>&5
5524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5525 (exit $ac_status); } && {
5526 test -z "$ac_c_werror_flag" ||
5527 test ! -s conftest.err
5528 } && test -s conftest.
$ac_objext; then
5531 echo "$as_me: failed program was:" >&5
5532 sed 's/^/| /' conftest.
$ac_ext >&5
5537 rm -f core conftest.err conftest.
$ac_objext
5539 rm -f conftest.
$ac_objext
5540 if { (ac_try
="$ac_compile"
5542 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5543 *) ac_try_echo=$ac_try;;
5545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5546 (eval "$ac_compile") 2>conftest.er1
5548 grep -v '^ *+' conftest.er1 >conftest.err
5550 cat conftest.err >&5
5551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5552 (exit $ac_status); } && {
5553 test -z "$ac_c_werror_flag" ||
5554 test ! -s conftest.err
5555 } && test -s conftest.$ac_objext; then
5556 ac_cv_sys_largefile_CC=' -n32'; break
5558 echo "$as_me: failed program was:" >&5
5559 sed 's/^/| /' conftest.$ac_ext >&5
5564 rm -f core conftest.err conftest.$ac_objext
5568 rm -f conftest.$ac_ext
5571 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5572 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5573 if test "$ac_cv_sys_largefile_CC" != no; then
5574 CC=$CC$ac_cv_sys_largefile_CC
5577 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5578 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5579 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5580 echo $ECHO_N "(cached) $ECHO_C" >&6
5583 cat >conftest.$ac_ext <<_ACEOF
5586 cat confdefs.h >>conftest.$ac_ext
5587 cat >>conftest.$ac_ext <<_ACEOF
5588 /* end confdefs.h. */
5589 #include <sys/types.h>
5590 /* Check that off_t can represent 2**63 - 1 correctly.
5591 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5592 since some C++ compilers masquerading as C compilers
5593 incorrectly reject 9223372036854775807. */
5594 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5595 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5596 && LARGE_OFF_T % 2147483647 == 1)
5606 rm -f conftest.$ac_objext
5607 if { (ac_try="$ac_compile"
5609 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5610 *) ac_try_echo
=$ac_try;;
5612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5613 (eval "$ac_compile") 2>conftest.er1
5615 grep -v '^ *+' conftest.er1
>conftest.err
5617 cat conftest.err
>&5
5618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619 (exit $ac_status); } && {
5620 test -z "$ac_c_werror_flag" ||
5621 test ! -s conftest.err
5622 } && test -s conftest.
$ac_objext; then
5623 ac_cv_sys_file_offset_bits
=no
; break
5625 echo "$as_me: failed program was:" >&5
5626 sed 's/^/| /' conftest.
$ac_ext >&5
5631 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5632 cat >conftest.
$ac_ext <<_ACEOF
5635 cat confdefs.h
>>conftest.
$ac_ext
5636 cat >>conftest.
$ac_ext <<_ACEOF
5637 /* end confdefs.h. */
5638 #define _FILE_OFFSET_BITS 64
5639 #include <sys/types.h>
5640 /* Check that off_t can represent 2**63 - 1 correctly.
5641 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5642 since some C++ compilers masquerading as C compilers
5643 incorrectly reject 9223372036854775807. */
5644 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5645 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5646 && LARGE_OFF_T % 2147483647 == 1)
5656 rm -f conftest.
$ac_objext
5657 if { (ac_try
="$ac_compile"
5659 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5660 *) ac_try_echo=$ac_try;;
5662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5663 (eval "$ac_compile") 2>conftest.er1
5665 grep -v '^ *+' conftest.er1 >conftest.err
5667 cat conftest.err >&5
5668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669 (exit $ac_status); } && {
5670 test -z "$ac_c_werror_flag" ||
5671 test ! -s conftest.err
5672 } && test -s conftest.$ac_objext; then
5673 ac_cv_sys_file_offset_bits=64; break
5675 echo "$as_me: failed program was:" >&5
5676 sed 's/^/| /' conftest.$ac_ext >&5
5681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5682 ac_cv_sys_file_offset_bits=unknown
5686 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5687 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5688 case $ac_cv_sys_file_offset_bits in #(
5691 cat >>confdefs.h <<_ACEOF
5692 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5697 if test $ac_cv_sys_file_offset_bits = unknown; then
5698 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5699 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5700 if test "${ac_cv_sys_large_files+set}" = set; then
5701 echo $ECHO_N "(cached) $ECHO_C" >&6
5704 cat >conftest.$ac_ext <<_ACEOF
5707 cat confdefs.h >>conftest.$ac_ext
5708 cat >>conftest.$ac_ext <<_ACEOF
5709 /* end confdefs.h. */
5710 #include <sys/types.h>
5711 /* Check that off_t can represent 2**63 - 1 correctly.
5712 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5713 since some C++ compilers masquerading as C compilers
5714 incorrectly reject 9223372036854775807. */
5715 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5716 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5717 && LARGE_OFF_T % 2147483647 == 1)
5727 rm -f conftest.$ac_objext
5728 if { (ac_try="$ac_compile"
5730 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5731 *) ac_try_echo
=$ac_try;;
5733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5734 (eval "$ac_compile") 2>conftest.er1
5736 grep -v '^ *+' conftest.er1
>conftest.err
5738 cat conftest.err
>&5
5739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740 (exit $ac_status); } && {
5741 test -z "$ac_c_werror_flag" ||
5742 test ! -s conftest.err
5743 } && test -s conftest.
$ac_objext; then
5744 ac_cv_sys_large_files
=no
; break
5746 echo "$as_me: failed program was:" >&5
5747 sed 's/^/| /' conftest.
$ac_ext >&5
5752 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5753 cat >conftest.
$ac_ext <<_ACEOF
5756 cat confdefs.h
>>conftest.
$ac_ext
5757 cat >>conftest.
$ac_ext <<_ACEOF
5758 /* end confdefs.h. */
5759 #define _LARGE_FILES 1
5760 #include <sys/types.h>
5761 /* Check that off_t can represent 2**63 - 1 correctly.
5762 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5763 since some C++ compilers masquerading as C compilers
5764 incorrectly reject 9223372036854775807. */
5765 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5766 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5767 && LARGE_OFF_T % 2147483647 == 1)
5777 rm -f conftest.
$ac_objext
5778 if { (ac_try
="$ac_compile"
5780 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5781 *) ac_try_echo=$ac_try;;
5783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5784 (eval "$ac_compile") 2>conftest.er1
5786 grep -v '^ *+' conftest.er1 >conftest.err
5788 cat conftest.err >&5
5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790 (exit $ac_status); } && {
5791 test -z "$ac_c_werror_flag" ||
5792 test ! -s conftest.err
5793 } && test -s conftest.$ac_objext; then
5794 ac_cv_sys_large_files=1; break
5796 echo "$as_me: failed program was:" >&5
5797 sed 's/^/| /' conftest.$ac_ext >&5
5802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5803 ac_cv_sys_large_files=unknown
5807 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5808 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5809 case $ac_cv_sys_large_files in #(
5812 cat >>confdefs.h <<_ACEOF
5813 #define _LARGE_FILES $ac_cv_sys_large_files
5823 ### The standard library on x86-64 GNU/Linux distributions can
5824 ### be located in either /usr/lib64 or /usr/lib.
5825 case "${canonical}" in
5826 x86_64-*-linux-gnu* )
5827 if test -d /usr/lib64; then
5829 cat >>confdefs.h <<\_ACEOF
5830 #define HAVE_X86_64_LIB64_DIR 1
5839 if test "${with_sound}" != "no"; then
5840 # Sound support for GNU/Linux and the free BSDs.
5841 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5842 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5843 if test "${ac_cv_header_stdc+set}" = set; then
5844 echo $ECHO_N "(cached) $ECHO_C" >&6
5846 cat >conftest.$ac_ext <<_ACEOF
5849 cat confdefs.h >>conftest.$ac_ext
5850 cat >>conftest.$ac_ext <<_ACEOF
5851 /* end confdefs.h. */
5865 rm -f conftest.$ac_objext
5866 if { (ac_try="$ac_compile"
5868 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5869 *) ac_try_echo
=$ac_try;;
5871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5872 (eval "$ac_compile") 2>conftest.er1
5874 grep -v '^ *+' conftest.er1
>conftest.err
5876 cat conftest.err
>&5
5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 (exit $ac_status); } && {
5879 test -z "$ac_c_werror_flag" ||
5880 test ! -s conftest.err
5881 } && test -s conftest.
$ac_objext; then
5882 ac_cv_header_stdc
=yes
5884 echo "$as_me: failed program was:" >&5
5885 sed 's/^/| /' conftest.
$ac_ext >&5
5887 ac_cv_header_stdc
=no
5890 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5892 if test $ac_cv_header_stdc = yes; then
5893 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5894 cat >conftest.
$ac_ext <<_ACEOF
5897 cat confdefs.h
>>conftest.
$ac_ext
5898 cat >>conftest.
$ac_ext <<_ACEOF
5899 /* end confdefs.h. */
5903 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5904 $EGREP "memchr" >/dev
/null
2>&1; then
5907 ac_cv_header_stdc
=no
5913 if test $ac_cv_header_stdc = yes; then
5914 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5915 cat >conftest.
$ac_ext <<_ACEOF
5918 cat confdefs.h
>>conftest.
$ac_ext
5919 cat >>conftest.
$ac_ext <<_ACEOF
5920 /* end confdefs.h. */
5924 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5925 $EGREP "free" >/dev
/null
2>&1; then
5928 ac_cv_header_stdc
=no
5934 if test $ac_cv_header_stdc = yes; then
5935 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5936 if test "$cross_compiling" = yes; then
5939 cat >conftest.
$ac_ext <<_ACEOF
5942 cat confdefs.h
>>conftest.
$ac_ext
5943 cat >>conftest.
$ac_ext <<_ACEOF
5944 /* end confdefs.h. */
5947 #if ((' ' & 0x0FF) == 0x020)
5948 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5949 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5951 # define ISLOWER(c) \
5952 (('a' <= (c) && (c) <= 'i') \
5953 || ('j' <= (c) && (c) <= 'r') \
5954 || ('s' <= (c) && (c) <= 'z'))
5955 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5958 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5963 for (i = 0; i < 256; i++)
5964 if (XOR (islower (i), ISLOWER (i))
5965 || toupper (i) != TOUPPER (i))
5970 rm -f conftest
$ac_exeext
5971 if { (ac_try
="$ac_link"
5973 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5974 *) ac_try_echo=$ac_try;;
5976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5977 (eval "$ac_link") 2>&5
5979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5980 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5981 { (case "(($ac_try" in
5982 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5983 *) ac_try_echo
=$ac_try;;
5985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5986 (eval "$ac_try") 2>&5
5988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5989 (exit $ac_status); }; }; then
5992 echo "$as_me: program exited with status $ac_status" >&5
5993 echo "$as_me: failed program was:" >&5
5994 sed 's/^/| /' conftest.
$ac_ext >&5
5997 ac_cv_header_stdc
=no
5999 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6005 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6006 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6007 if test $ac_cv_header_stdc = yes; then
6009 cat >>confdefs.h
<<\_ACEOF
6010 #define STDC_HEADERS 1
6015 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6025 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6026 inttypes.h stdint.h unistd.h
6028 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6029 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6031 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6032 echo $ECHO_N "(cached) $ECHO_C" >&6
6034 cat >conftest.
$ac_ext <<_ACEOF
6037 cat confdefs.h
>>conftest.
$ac_ext
6038 cat >>conftest.
$ac_ext <<_ACEOF
6039 /* end confdefs.h. */
6040 $ac_includes_default
6042 #include <$ac_header>
6044 rm -f conftest.
$ac_objext
6045 if { (ac_try
="$ac_compile"
6047 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6048 *) ac_try_echo=$ac_try;;
6050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6051 (eval "$ac_compile") 2>conftest.er1
6053 grep -v '^ *+' conftest.er1 >conftest.err
6055 cat conftest.err >&5
6056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6057 (exit $ac_status); } && {
6058 test -z "$ac_c_werror_flag" ||
6059 test ! -s conftest.err
6060 } && test -s conftest.$ac_objext; then
6061 eval "$as_ac_Header=yes"
6063 echo "$as_me: failed program was:" >&5
6064 sed 's/^/| /' conftest.$ac_ext >&5
6066 eval "$as_ac_Header=no"
6069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6071 ac_res=`eval echo '${'$as_ac_Header'}'`
6072 { echo "$as_me:$LINENO: result: $ac_res" >&5
6073 echo "${ECHO_T}$ac_res" >&6; }
6074 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6075 cat >>confdefs.h <<_ACEOF
6076 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6087 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6089 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6090 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6091 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6092 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6093 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6094 echo $ECHO_N "(cached) $ECHO_C" >&6
6096 ac_res=`eval echo '${'$as_ac_Header'}'`
6097 { echo "$as_me:$LINENO: result: $ac_res" >&5
6098 echo "${ECHO_T}$ac_res" >&6; }
6100 # Is the header compilable?
6101 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6102 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6103 cat >conftest.$ac_ext <<_ACEOF
6106 cat confdefs.h >>conftest.$ac_ext
6107 cat >>conftest.$ac_ext <<_ACEOF
6108 /* end confdefs.h. */
6109 $ac_includes_default
6110 #include <$ac_header>
6112 rm -f conftest.$ac_objext
6113 if { (ac_try="$ac_compile"
6115 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6116 *) ac_try_echo
=$ac_try;;
6118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6119 (eval "$ac_compile") 2>conftest.er1
6121 grep -v '^ *+' conftest.er1
>conftest.err
6123 cat conftest.err
>&5
6124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125 (exit $ac_status); } && {
6126 test -z "$ac_c_werror_flag" ||
6127 test ! -s conftest.err
6128 } && test -s conftest.
$ac_objext; then
6129 ac_header_compiler
=yes
6131 echo "$as_me: failed program was:" >&5
6132 sed 's/^/| /' conftest.
$ac_ext >&5
6134 ac_header_compiler
=no
6137 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6138 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6139 echo "${ECHO_T}$ac_header_compiler" >&6; }
6141 # Is the header present?
6142 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6143 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6144 cat >conftest.
$ac_ext <<_ACEOF
6147 cat confdefs.h
>>conftest.
$ac_ext
6148 cat >>conftest.
$ac_ext <<_ACEOF
6149 /* end confdefs.h. */
6150 #include <$ac_header>
6152 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6154 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6155 *) ac_try_echo=$ac_try;;
6157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6158 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6160 grep -v '^ *+' conftest.er1 >conftest.err
6162 cat conftest.err >&5
6163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6164 (exit $ac_status); } >/dev/null && {
6165 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6166 test ! -s conftest.err
6168 ac_header_preproc=yes
6170 echo "$as_me: failed program was:" >&5
6171 sed 's/^/| /' conftest.$ac_ext >&5
6173 ac_header_preproc=no
6176 rm -f conftest.err conftest.$ac_ext
6177 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6178 echo "${ECHO_T}$ac_header_preproc" >&6; }
6180 # So? What about this header?
6181 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6183 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6184 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6185 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6186 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6187 ac_header_preproc=yes
6190 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6191 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6192 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6193 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6194 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6195 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6196 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6197 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6198 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6199 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6200 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6201 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6205 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6206 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6207 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6208 echo $ECHO_N "(cached) $ECHO_C" >&6
6210 eval "$as_ac_Header=\$ac_header_preproc"
6212 ac_res=`eval echo '${'$as_ac_Header'}'`
6213 { echo "$as_me:$LINENO: result: $ac_res" >&5
6214 echo "${ECHO_T}$ac_res" >&6; }
6217 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6218 cat >>confdefs.h <<_ACEOF
6219 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6226 # Emulation library used on NetBSD.
6227 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6228 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6229 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6230 echo $ECHO_N "(cached) $ECHO_C" >&6
6232 ac_check_lib_save_LIBS=$LIBS
6233 LIBS="-lossaudio $LIBS"
6234 cat >conftest.$ac_ext <<_ACEOF
6237 cat confdefs.h >>conftest.$ac_ext
6238 cat >>conftest.$ac_ext <<_ACEOF
6239 /* end confdefs.h. */
6241 /* Override any GCC internal prototype to avoid an error.
6242 Use char because int might match the return type of a GCC
6243 builtin and then its argument prototype would still apply. */
6251 return _oss_ioctl ();
6256 rm -f conftest.$ac_objext conftest$ac_exeext
6257 if { (ac_try="$ac_link"
6259 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6260 *) ac_try_echo
=$ac_try;;
6262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6263 (eval "$ac_link") 2>conftest.er1
6265 grep -v '^ *+' conftest.er1
>conftest.err
6267 cat conftest.err
>&5
6268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269 (exit $ac_status); } && {
6270 test -z "$ac_c_werror_flag" ||
6271 test ! -s conftest.err
6272 } && test -s conftest
$ac_exeext &&
6273 $as_test_x conftest
$ac_exeext; then
6274 ac_cv_lib_ossaudio__oss_ioctl
=yes
6276 echo "$as_me: failed program was:" >&5
6277 sed 's/^/| /' conftest.
$ac_ext >&5
6279 ac_cv_lib_ossaudio__oss_ioctl
=no
6282 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6283 conftest
$ac_exeext conftest.
$ac_ext
6284 LIBS
=$ac_check_lib_save_LIBS
6286 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6287 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6288 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6297 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6298 if test "X${with_pkg_config_prog}" != X
; then
6299 PKG_CONFIG
="${with_pkg_config_prog}"
6304 if test -z "$PKG_CONFIG"; then
6305 # Extract the first word of "pkg-config", so it can be a program name with args.
6306 set dummy pkg-config
; ac_word
=$2
6307 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6309 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6310 echo $ECHO_N "(cached) $ECHO_C" >&6
6314 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6317 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6321 test -z "$as_dir" && as_dir
=.
6322 for ac_exec_ext
in '' $ac_executable_extensions; do
6323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6324 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6332 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6336 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6337 if test -n "$PKG_CONFIG"; then
6338 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6339 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6341 { echo "$as_me:$LINENO: result: no" >&5
6342 echo "${ECHO_T}no" >&6; }
6348 if test "$PKG_CONFIG" = "no" ; then
6351 PKG_CONFIG_MIN_VERSION
=0.9.0
6352 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6353 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6354 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6356 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6357 { echo "$as_me:$LINENO: result: yes" >&5
6358 echo "${ECHO_T}yes" >&6; }
6361 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6362 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6363 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"`
6364 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6365 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6367 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6368 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6369 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"`
6370 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6371 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6373 { echo "$as_me:$LINENO: result: no" >&5
6374 echo "${ECHO_T}no" >&6; }
6377 ## If we have a custom action on failure, don't print errors, but
6378 ## do set a variable so people can do so.
6379 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6386 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6387 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6391 if test $succeeded = yes; then
6397 if test $HAVE_ALSA = yes; then
6398 SAVE_CFLAGS
="$CFLAGS"
6399 SAVE_LDFLAGS
="$LDFLAGS"
6400 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6401 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6402 cat >conftest.
$ac_ext <<_ACEOF
6405 cat confdefs.h
>>conftest.
$ac_ext
6406 cat >>conftest.
$ac_ext <<_ACEOF
6407 /* end confdefs.h. */
6408 #include <asoundlib.h>
6412 snd_lib_error_set_handler (0);
6417 rm -f conftest.
$ac_objext
6418 if { (ac_try
="$ac_compile"
6420 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6421 *) ac_try_echo=$ac_try;;
6423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6424 (eval "$ac_compile") 2>conftest.er1
6426 grep -v '^ *+' conftest.er1 >conftest.err
6428 cat conftest.err >&5
6429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430 (exit $ac_status); } && {
6431 test -z "$ac_c_werror_flag" ||
6432 test ! -s conftest.err
6433 } && test -s conftest.$ac_objext; then
6434 emacs_alsa_normal=yes
6436 echo "$as_me: failed program was:" >&5
6437 sed 's/^/| /' conftest.$ac_ext >&5
6439 emacs_alsa_normal=no
6442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6443 if test "$emacs_alsa_normal" != yes; then
6444 cat >conftest.$ac_ext <<_ACEOF
6447 cat confdefs.h >>conftest.$ac_ext
6448 cat >>conftest.$ac_ext <<_ACEOF
6449 /* end confdefs.h. */
6450 #include <alsa/asoundlib.h>
6454 snd_lib_error_set_handler (0);
6459 rm -f conftest.$ac_objext
6460 if { (ac_try="$ac_compile"
6462 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6463 *) ac_try_echo
=$ac_try;;
6465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6466 (eval "$ac_compile") 2>conftest.er1
6468 grep -v '^ *+' conftest.er1
>conftest.err
6470 cat conftest.err
>&5
6471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472 (exit $ac_status); } && {
6473 test -z "$ac_c_werror_flag" ||
6474 test ! -s conftest.err
6475 } && test -s conftest.
$ac_objext; then
6476 emacs_alsa_subdir
=yes
6478 echo "$as_me: failed program was:" >&5
6479 sed 's/^/| /' conftest.
$ac_ext >&5
6481 emacs_alsa_subdir
=no
6484 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6485 if test "$emacs_alsa_subdir" != yes; then
6486 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6487 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6488 { (exit 1); exit 1; }; }
6490 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6493 CFLAGS
="$SAVE_CFLAGS"
6494 LDFLAGS
="$SAVE_LDFLAGS"
6495 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6496 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6498 cat >>confdefs.h
<<\_ACEOF
6532 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6533 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6534 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6535 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6538 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6539 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6540 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6541 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6542 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6543 echo $ECHO_N "(cached) $ECHO_C" >&6
6545 ac_res
=`eval echo '${'$as_ac_Header'}'`
6546 { echo "$as_me:$LINENO: result: $ac_res" >&5
6547 echo "${ECHO_T}$ac_res" >&6; }
6549 # Is the header compilable?
6550 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6551 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6552 cat >conftest.
$ac_ext <<_ACEOF
6555 cat confdefs.h
>>conftest.
$ac_ext
6556 cat >>conftest.
$ac_ext <<_ACEOF
6557 /* end confdefs.h. */
6558 $ac_includes_default
6559 #include <$ac_header>
6561 rm -f conftest.
$ac_objext
6562 if { (ac_try
="$ac_compile"
6564 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6565 *) ac_try_echo=$ac_try;;
6567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6568 (eval "$ac_compile") 2>conftest.er1
6570 grep -v '^ *+' conftest.er1 >conftest.err
6572 cat conftest.err >&5
6573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574 (exit $ac_status); } && {
6575 test -z "$ac_c_werror_flag" ||
6576 test ! -s conftest.err
6577 } && test -s conftest.$ac_objext; then
6578 ac_header_compiler=yes
6580 echo "$as_me: failed program was:" >&5
6581 sed 's/^/| /' conftest.$ac_ext >&5
6583 ac_header_compiler=no
6586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6587 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6588 echo "${ECHO_T}$ac_header_compiler" >&6; }
6590 # Is the header present?
6591 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6592 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6593 cat >conftest.$ac_ext <<_ACEOF
6596 cat confdefs.h >>conftest.$ac_ext
6597 cat >>conftest.$ac_ext <<_ACEOF
6598 /* end confdefs.h. */
6599 #include <$ac_header>
6601 if { (ac_try="$ac_cpp conftest.$ac_ext"
6603 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6604 *) ac_try_echo
=$ac_try;;
6606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6607 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6609 grep -v '^ *+' conftest.er1
>conftest.err
6611 cat conftest.err
>&5
6612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613 (exit $ac_status); } >/dev
/null
&& {
6614 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6615 test ! -s conftest.err
6617 ac_header_preproc
=yes
6619 echo "$as_me: failed program was:" >&5
6620 sed 's/^/| /' conftest.
$ac_ext >&5
6622 ac_header_preproc
=no
6625 rm -f conftest.err conftest.
$ac_ext
6626 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6627 echo "${ECHO_T}$ac_header_preproc" >&6; }
6629 # So? What about this header?
6630 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6632 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6633 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6634 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6635 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6636 ac_header_preproc
=yes
6639 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6640 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6641 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6642 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6643 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6644 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6645 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6646 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6647 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6648 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6649 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6650 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6654 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6655 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6656 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6657 echo $ECHO_N "(cached) $ECHO_C" >&6
6659 eval "$as_ac_Header=\$ac_header_preproc"
6661 ac_res
=`eval echo '${'$as_ac_Header'}'`
6662 { echo "$as_me:$LINENO: result: $ac_res" >&5
6663 echo "${ECHO_T}$ac_res" >&6; }
6666 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6667 cat >>confdefs.h
<<_ACEOF
6668 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6676 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6677 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6678 cat >conftest.
$ac_ext <<_ACEOF
6681 cat confdefs.h
>>conftest.
$ac_ext
6682 cat >>conftest.
$ac_ext <<_ACEOF
6683 /* end confdefs.h. */
6684 #include <sys/personality.h>
6688 personality (PER_LINUX32)
6693 rm -f conftest.
$ac_objext
6694 if { (ac_try
="$ac_compile"
6696 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6697 *) ac_try_echo=$ac_try;;
6699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6700 (eval "$ac_compile") 2>conftest.er1
6702 grep -v '^ *+' conftest.er1 >conftest.err
6704 cat conftest.err >&5
6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); } && {
6707 test -z "$ac_c_werror_flag" ||
6708 test ! -s conftest.err
6709 } && test -s conftest.$ac_objext; then
6710 emacs_cv_personality_linux32=yes
6712 echo "$as_me: failed program was:" >&5
6713 sed 's/^/| /' conftest.$ac_ext >&5
6715 emacs_cv_personality_linux32=no
6718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6719 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6720 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6722 if test $emacs_cv_personality_linux32 = yes; then
6724 cat >>confdefs.h <<\_ACEOF
6725 #define HAVE_PERSONALITY_LINUX32 1
6731 for ac_header in term.h
6733 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6734 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6735 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6736 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6737 echo $ECHO_N "(cached) $ECHO_C" >&6
6739 cat >conftest.$ac_ext <<_ACEOF
6742 cat confdefs.h >>conftest.$ac_ext
6743 cat >>conftest.$ac_ext <<_ACEOF
6744 /* end confdefs.h. */
6745 #include <$ac_header>
6747 if { (ac_try="$ac_cpp conftest.$ac_ext"
6749 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6750 *) ac_try_echo
=$ac_try;;
6752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6753 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6755 grep -v '^ *+' conftest.er1
>conftest.err
6757 cat conftest.err
>&5
6758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6759 (exit $ac_status); } >/dev
/null
&& {
6760 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6761 test ! -s conftest.err
6763 eval "$as_ac_Header=yes"
6765 echo "$as_me: failed program was:" >&5
6766 sed 's/^/| /' conftest.
$ac_ext >&5
6768 eval "$as_ac_Header=no"
6771 rm -f conftest.err conftest.
$ac_ext
6773 ac_res
=`eval echo '${'$as_ac_Header'}'`
6774 { echo "$as_me:$LINENO: result: $ac_res" >&5
6775 echo "${ECHO_T}$ac_res" >&6; }
6776 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6777 cat >>confdefs.h
<<_ACEOF
6778 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6785 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6786 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6787 if test "${ac_cv_header_stdc+set}" = set; then
6788 echo $ECHO_N "(cached) $ECHO_C" >&6
6790 cat >conftest.
$ac_ext <<_ACEOF
6793 cat confdefs.h
>>conftest.
$ac_ext
6794 cat >>conftest.
$ac_ext <<_ACEOF
6795 /* end confdefs.h. */
6809 rm -f conftest.
$ac_objext
6810 if { (ac_try
="$ac_compile"
6812 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6813 *) ac_try_echo=$ac_try;;
6815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6816 (eval "$ac_compile") 2>conftest.er1
6818 grep -v '^ *+' conftest.er1 >conftest.err
6820 cat conftest.err >&5
6821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6822 (exit $ac_status); } && {
6823 test -z "$ac_c_werror_flag" ||
6824 test ! -s conftest.err
6825 } && test -s conftest.$ac_objext; then
6826 ac_cv_header_stdc=yes
6828 echo "$as_me: failed program was:" >&5
6829 sed 's/^/| /' conftest.$ac_ext >&5
6831 ac_cv_header_stdc=no
6834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6836 if test $ac_cv_header_stdc = yes; then
6837 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6838 cat >conftest.$ac_ext <<_ACEOF
6841 cat confdefs.h >>conftest.$ac_ext
6842 cat >>conftest.$ac_ext <<_ACEOF
6843 /* end confdefs.h. */
6847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6848 $EGREP "memchr" >/dev/null 2>&1; then
6851 ac_cv_header_stdc=no
6857 if test $ac_cv_header_stdc = yes; then
6858 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6859 cat >conftest.$ac_ext <<_ACEOF
6862 cat confdefs.h >>conftest.$ac_ext
6863 cat >>conftest.$ac_ext <<_ACEOF
6864 /* end confdefs.h. */
6868 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6869 $EGREP "free" >/dev/null 2>&1; then
6872 ac_cv_header_stdc=no
6878 if test $ac_cv_header_stdc = yes; then
6879 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6880 if test "$cross_compiling" = yes; then
6883 cat >conftest.$ac_ext <<_ACEOF
6886 cat confdefs.h >>conftest.$ac_ext
6887 cat >>conftest.$ac_ext <<_ACEOF
6888 /* end confdefs.h. */
6891 #if ((' ' & 0x0FF) == 0x020)
6892 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6893 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6895 # define ISLOWER(c) \
6896 (('a' <= (c) && (c) <= 'i') \
6897 || ('j' <= (c) && (c) <= 'r') \
6898 || ('s' <= (c) && (c) <= 'z'))
6899 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6902 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6907 for (i = 0; i < 256; i++)
6908 if (XOR (islower (i), ISLOWER (i))
6909 || toupper (i) != TOUPPER (i))
6914 rm -f conftest$ac_exeext
6915 if { (ac_try="$ac_link"
6917 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6918 *) ac_try_echo
=$ac_try;;
6920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6921 (eval "$ac_link") 2>&5
6923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6924 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6925 { (case "(($ac_try" in
6926 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6927 *) ac_try_echo=$ac_try;;
6929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6930 (eval "$ac_try") 2>&5
6932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6933 (exit $ac_status); }; }; then
6936 echo "$as_me: program exited with status $ac_status" >&5
6937 echo "$as_me: failed program was:" >&5
6938 sed 's/^/| /' conftest.$ac_ext >&5
6941 ac_cv_header_stdc=no
6943 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6949 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6950 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6951 if test $ac_cv_header_stdc = yes; then
6953 cat >>confdefs.h <<\_ACEOF
6954 #define STDC_HEADERS 1
6959 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6960 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6961 if test "${ac_cv_header_time+set}" = set; then
6962 echo $ECHO_N "(cached) $ECHO_C" >&6
6964 cat >conftest.$ac_ext <<_ACEOF
6967 cat confdefs.h >>conftest.$ac_ext
6968 cat >>conftest.$ac_ext <<_ACEOF
6969 /* end confdefs.h. */
6970 #include <sys/types.h>
6971 #include <sys/time.h>
6977 if ((struct tm *) 0)
6983 rm -f conftest.$ac_objext
6984 if { (ac_try="$ac_compile"
6986 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6987 *) ac_try_echo
=$ac_try;;
6989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6990 (eval "$ac_compile") 2>conftest.er1
6992 grep -v '^ *+' conftest.er1
>conftest.err
6994 cat conftest.err
>&5
6995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6996 (exit $ac_status); } && {
6997 test -z "$ac_c_werror_flag" ||
6998 test ! -s conftest.err
6999 } && test -s conftest.
$ac_objext; then
7000 ac_cv_header_time
=yes
7002 echo "$as_me: failed program was:" >&5
7003 sed 's/^/| /' conftest.
$ac_ext >&5
7005 ac_cv_header_time
=no
7008 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7010 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7011 echo "${ECHO_T}$ac_cv_header_time" >&6; }
7012 if test $ac_cv_header_time = yes; then
7014 cat >>confdefs.h
<<\_ACEOF
7015 #define TIME_WITH_SYS_TIME 1
7020 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7021 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
7022 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7023 echo $ECHO_N "(cached) $ECHO_C" >&6
7025 cat >conftest.
$ac_ext <<_ACEOF
7028 cat confdefs.h
>>conftest.
$ac_ext
7029 cat >>conftest.
$ac_ext <<_ACEOF
7030 /* end confdefs.h. */
7031 $ac_includes_default
7043 rm -f conftest.
$ac_objext
7044 if { (ac_try
="$ac_compile"
7046 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7047 *) ac_try_echo=$ac_try;;
7049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7050 (eval "$ac_compile") 2>conftest.er1
7052 grep -v '^ *+' conftest.er1 >conftest.err
7054 cat conftest.err >&5
7055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7056 (exit $ac_status); } && {
7057 test -z "$ac_c_werror_flag" ||
7058 test ! -s conftest.err
7059 } && test -s conftest.$ac_objext; then
7060 ac_cv_have_decl_sys_siglist=yes
7062 echo "$as_me: failed program was:" >&5
7063 sed 's/^/| /' conftest.$ac_ext >&5
7065 ac_cv_have_decl_sys_siglist=no
7068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7070 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7071 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7072 if test $ac_cv_have_decl_sys_siglist = yes; then
7074 cat >>confdefs.h <<_ACEOF
7075 #define HAVE_DECL_SYS_SIGLIST 1
7080 cat >>confdefs.h <<_ACEOF
7081 #define HAVE_DECL_SYS_SIGLIST 0
7088 if test $ac_cv_have_decl_sys_siglist != yes; then
7089 # For Tru64, at least:
7090 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7091 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7092 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7093 echo $ECHO_N "(cached) $ECHO_C" >&6
7095 cat >conftest.$ac_ext <<_ACEOF
7098 cat confdefs.h >>conftest.$ac_ext
7099 cat >>conftest.$ac_ext <<_ACEOF
7100 /* end confdefs.h. */
7101 $ac_includes_default
7105 #ifndef __sys_siglist
7106 (void) __sys_siglist;
7113 rm -f conftest.$ac_objext
7114 if { (ac_try="$ac_compile"
7116 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7117 *) ac_try_echo
=$ac_try;;
7119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7120 (eval "$ac_compile") 2>conftest.er1
7122 grep -v '^ *+' conftest.er1
>conftest.err
7124 cat conftest.err
>&5
7125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126 (exit $ac_status); } && {
7127 test -z "$ac_c_werror_flag" ||
7128 test ! -s conftest.err
7129 } && test -s conftest.
$ac_objext; then
7130 ac_cv_have_decl___sys_siglist
=yes
7132 echo "$as_me: failed program was:" >&5
7133 sed 's/^/| /' conftest.
$ac_ext >&5
7135 ac_cv_have_decl___sys_siglist
=no
7138 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7140 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7141 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7142 if test $ac_cv_have_decl___sys_siglist = yes; then
7144 cat >>confdefs.h
<<_ACEOF
7145 #define HAVE_DECL___SYS_SIGLIST 1
7150 cat >>confdefs.h
<<_ACEOF
7151 #define HAVE_DECL___SYS_SIGLIST 0
7158 if test $ac_cv_have_decl___sys_siglist = yes; then
7160 cat >>confdefs.h
<<\_ACEOF
7161 #define sys_siglist __sys_siglist
7166 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7167 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7168 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7169 echo $ECHO_N "(cached) $ECHO_C" >&6
7171 cat >conftest.
$ac_ext <<_ACEOF
7174 cat confdefs.h
>>conftest.
$ac_ext
7175 cat >>conftest.
$ac_ext <<_ACEOF
7176 /* end confdefs.h. */
7177 #include <sys/types.h>
7178 #include <sys/wait.h>
7180 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7183 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7191 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7196 rm -f conftest.
$ac_objext
7197 if { (ac_try
="$ac_compile"
7199 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7200 *) ac_try_echo=$ac_try;;
7202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7203 (eval "$ac_compile") 2>conftest.er1
7205 grep -v '^ *+' conftest.er1 >conftest.err
7207 cat conftest.err >&5
7208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7209 (exit $ac_status); } && {
7210 test -z "$ac_c_werror_flag" ||
7211 test ! -s conftest.err
7212 } && test -s conftest.$ac_objext; then
7213 ac_cv_header_sys_wait_h=yes
7215 echo "$as_me: failed program was:" >&5
7216 sed 's/^/| /' conftest.$ac_ext >&5
7218 ac_cv_header_sys_wait_h=no
7221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7223 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7224 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7225 if test $ac_cv_header_sys_wait_h = yes; then
7227 cat >>confdefs.h <<\_ACEOF
7228 #define HAVE_SYS_WAIT_H 1
7234 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7235 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7236 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7237 echo $ECHO_N "(cached) $ECHO_C" >&6
7239 cat >conftest.$ac_ext <<_ACEOF
7242 cat confdefs.h >>conftest.$ac_ext
7243 cat >>conftest.$ac_ext <<_ACEOF
7244 /* end confdefs.h. */
7245 #ifdef TIME_WITH_SYS_TIME
7246 #include <sys/time.h>
7249 #ifdef HAVE_SYS_TIME_H
7250 #include <sys/time.h>
7261 static struct utimbuf x; x.actime = x.modtime;
7266 rm -f conftest.$ac_objext
7267 if { (ac_try="$ac_compile"
7269 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7270 *) ac_try_echo
=$ac_try;;
7272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7273 (eval "$ac_compile") 2>conftest.er1
7275 grep -v '^ *+' conftest.er1
>conftest.err
7277 cat conftest.err
>&5
7278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7279 (exit $ac_status); } && {
7280 test -z "$ac_c_werror_flag" ||
7281 test ! -s conftest.err
7282 } && test -s conftest.
$ac_objext; then
7283 emacs_cv_struct_utimbuf
=yes
7285 echo "$as_me: failed program was:" >&5
7286 sed 's/^/| /' conftest.
$ac_ext >&5
7288 emacs_cv_struct_utimbuf
=no
7291 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7293 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7294 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7295 if test $emacs_cv_struct_utimbuf = yes; then
7297 cat >>confdefs.h
<<\_ACEOF
7298 #define HAVE_STRUCT_UTIMBUF 1
7303 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7304 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7305 if test "${ac_cv_type_signal+set}" = set; then
7306 echo $ECHO_N "(cached) $ECHO_C" >&6
7308 cat >conftest.
$ac_ext <<_ACEOF
7311 cat confdefs.h
>>conftest.
$ac_ext
7312 cat >>conftest.
$ac_ext <<_ACEOF
7313 /* end confdefs.h. */
7314 #include <sys/types.h>
7320 return *(signal (0, 0)) (0) == 1;
7325 rm -f conftest.
$ac_objext
7326 if { (ac_try
="$ac_compile"
7328 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7329 *) ac_try_echo=$ac_try;;
7331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7332 (eval "$ac_compile") 2>conftest.er1
7334 grep -v '^ *+' conftest.er1 >conftest.err
7336 cat conftest.err >&5
7337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7338 (exit $ac_status); } && {
7339 test -z "$ac_c_werror_flag" ||
7340 test ! -s conftest.err
7341 } && test -s conftest.$ac_objext; then
7342 ac_cv_type_signal=int
7344 echo "$as_me: failed program was:" >&5
7345 sed 's/^/| /' conftest.$ac_ext >&5
7347 ac_cv_type_signal=void
7350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7352 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7353 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7355 cat >>confdefs.h <<_ACEOF
7356 #define RETSIGTYPE $ac_cv_type_signal
7361 { echo "$as_me:$LINENO: checking for speed_t" >&5
7362 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7363 if test "${emacs_cv_speed_t+set}" = set; then
7364 echo $ECHO_N "(cached) $ECHO_C" >&6
7366 cat >conftest.$ac_ext <<_ACEOF
7369 cat confdefs.h >>conftest.$ac_ext
7370 cat >>conftest.$ac_ext <<_ACEOF
7371 /* end confdefs.h. */
7372 #include <termios.h>
7381 rm -f conftest.$ac_objext
7382 if { (ac_try="$ac_compile"
7384 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7385 *) ac_try_echo
=$ac_try;;
7387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7388 (eval "$ac_compile") 2>conftest.er1
7390 grep -v '^ *+' conftest.er1
>conftest.err
7392 cat conftest.err
>&5
7393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7394 (exit $ac_status); } && {
7395 test -z "$ac_c_werror_flag" ||
7396 test ! -s conftest.err
7397 } && test -s conftest.
$ac_objext; then
7398 emacs_cv_speed_t
=yes
7400 echo "$as_me: failed program was:" >&5
7401 sed 's/^/| /' conftest.
$ac_ext >&5
7406 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7408 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7409 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7410 if test $emacs_cv_speed_t = yes; then
7412 cat >>confdefs.h
<<\_ACEOF
7413 #define HAVE_SPEED_T 1
7418 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7419 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7420 if test "${emacs_cv_struct_timeval+set}" = set; then
7421 echo $ECHO_N "(cached) $ECHO_C" >&6
7423 cat >conftest.
$ac_ext <<_ACEOF
7426 cat confdefs.h
>>conftest.
$ac_ext
7427 cat >>conftest.
$ac_ext <<_ACEOF
7428 /* end confdefs.h. */
7429 #ifdef TIME_WITH_SYS_TIME
7430 #include <sys/time.h>
7433 #ifdef HAVE_SYS_TIME_H
7434 #include <sys/time.h>
7442 static struct timeval x; x.tv_sec = x.tv_usec;
7447 rm -f conftest.
$ac_objext
7448 if { (ac_try
="$ac_compile"
7450 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7451 *) ac_try_echo=$ac_try;;
7453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7454 (eval "$ac_compile") 2>conftest.er1
7456 grep -v '^ *+' conftest.er1 >conftest.err
7458 cat conftest.err >&5
7459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7460 (exit $ac_status); } && {
7461 test -z "$ac_c_werror_flag" ||
7462 test ! -s conftest.err
7463 } && test -s conftest.$ac_objext; then
7464 emacs_cv_struct_timeval=yes
7466 echo "$as_me: failed program was:" >&5
7467 sed 's/^/| /' conftest.$ac_ext >&5
7469 emacs_cv_struct_timeval=no
7472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7474 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7475 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7476 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7477 if test $emacs_cv_struct_timeval = yes; then
7479 cat >>confdefs.h <<\_ACEOF
7480 #define HAVE_TIMEVAL 1
7485 { echo "$as_me:$LINENO: checking for struct exception" >&5
7486 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7487 if test "${emacs_cv_struct_exception+set}" = set; then
7488 echo $ECHO_N "(cached) $ECHO_C" >&6
7490 cat >conftest.$ac_ext <<_ACEOF
7493 cat confdefs.h >>conftest.$ac_ext
7494 cat >>conftest.$ac_ext <<_ACEOF
7495 /* end confdefs.h. */
7500 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7505 rm -f conftest.$ac_objext
7506 if { (ac_try="$ac_compile"
7508 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7509 *) ac_try_echo
=$ac_try;;
7511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7512 (eval "$ac_compile") 2>conftest.er1
7514 grep -v '^ *+' conftest.er1
>conftest.err
7516 cat conftest.err
>&5
7517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7518 (exit $ac_status); } && {
7519 test -z "$ac_c_werror_flag" ||
7520 test ! -s conftest.err
7521 } && test -s conftest.
$ac_objext; then
7522 emacs_cv_struct_exception
=yes
7524 echo "$as_me: failed program was:" >&5
7525 sed 's/^/| /' conftest.
$ac_ext >&5
7527 emacs_cv_struct_exception
=no
7530 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7532 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7533 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7534 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7535 if test $emacs_cv_struct_exception != yes; then
7537 cat >>confdefs.h
<<\_ACEOF
7538 #define NO_MATHERR 1
7544 for ac_header
in sys
/socket.h
7546 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7547 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7548 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7550 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7551 echo $ECHO_N "(cached) $ECHO_C" >&6
7553 ac_res
=`eval echo '${'$as_ac_Header'}'`
7554 { echo "$as_me:$LINENO: result: $ac_res" >&5
7555 echo "${ECHO_T}$ac_res" >&6; }
7557 # Is the header compilable?
7558 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7559 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7560 cat >conftest.
$ac_ext <<_ACEOF
7563 cat confdefs.h
>>conftest.
$ac_ext
7564 cat >>conftest.
$ac_ext <<_ACEOF
7565 /* end confdefs.h. */
7566 $ac_includes_default
7567 #include <$ac_header>
7569 rm -f conftest.
$ac_objext
7570 if { (ac_try
="$ac_compile"
7572 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7573 *) ac_try_echo=$ac_try;;
7575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7576 (eval "$ac_compile") 2>conftest.er1
7578 grep -v '^ *+' conftest.er1 >conftest.err
7580 cat conftest.err >&5
7581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7582 (exit $ac_status); } && {
7583 test -z "$ac_c_werror_flag" ||
7584 test ! -s conftest.err
7585 } && test -s conftest.$ac_objext; then
7586 ac_header_compiler=yes
7588 echo "$as_me: failed program was:" >&5
7589 sed 's/^/| /' conftest.$ac_ext >&5
7591 ac_header_compiler=no
7594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7595 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7596 echo "${ECHO_T}$ac_header_compiler" >&6; }
7598 # Is the header present?
7599 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7600 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7601 cat >conftest.$ac_ext <<_ACEOF
7604 cat confdefs.h >>conftest.$ac_ext
7605 cat >>conftest.$ac_ext <<_ACEOF
7606 /* end confdefs.h. */
7607 #include <$ac_header>
7609 if { (ac_try="$ac_cpp conftest.$ac_ext"
7611 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7612 *) ac_try_echo
=$ac_try;;
7614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7615 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7617 grep -v '^ *+' conftest.er1
>conftest.err
7619 cat conftest.err
>&5
7620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621 (exit $ac_status); } >/dev
/null
&& {
7622 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7623 test ! -s conftest.err
7625 ac_header_preproc
=yes
7627 echo "$as_me: failed program was:" >&5
7628 sed 's/^/| /' conftest.
$ac_ext >&5
7630 ac_header_preproc
=no
7633 rm -f conftest.err conftest.
$ac_ext
7634 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7635 echo "${ECHO_T}$ac_header_preproc" >&6; }
7637 # So? What about this header?
7638 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7640 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7641 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7643 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7644 ac_header_preproc
=yes
7647 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7648 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7649 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7650 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7651 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7652 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7653 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7654 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7655 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7656 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7657 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7658 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7662 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7664 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7665 echo $ECHO_N "(cached) $ECHO_C" >&6
7667 eval "$as_ac_Header=\$ac_header_preproc"
7669 ac_res
=`eval echo '${'$as_ac_Header'}'`
7670 { echo "$as_me:$LINENO: result: $ac_res" >&5
7671 echo "${ECHO_T}$ac_res" >&6; }
7674 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7675 cat >>confdefs.h
<<_ACEOF
7676 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7684 for ac_header
in net
/if.h
7686 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7687 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7689 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7690 echo $ECHO_N "(cached) $ECHO_C" >&6
7692 cat >conftest.
$ac_ext <<_ACEOF
7695 cat confdefs.h
>>conftest.
$ac_ext
7696 cat >>conftest.
$ac_ext <<_ACEOF
7697 /* end confdefs.h. */
7698 $ac_includes_default
7699 #if HAVE_SYS_SOCKET_H
7700 #include <sys/socket.h>
7703 #include <$ac_header>
7705 rm -f conftest.
$ac_objext
7706 if { (ac_try
="$ac_compile"
7708 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7709 *) ac_try_echo=$ac_try;;
7711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7712 (eval "$ac_compile") 2>conftest.er1
7714 grep -v '^ *+' conftest.er1 >conftest.err
7716 cat conftest.err >&5
7717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7718 (exit $ac_status); } && {
7719 test -z "$ac_c_werror_flag" ||
7720 test ! -s conftest.err
7721 } && test -s conftest.$ac_objext; then
7722 eval "$as_ac_Header=yes"
7724 echo "$as_me: failed program was:" >&5
7725 sed 's/^/| /' conftest.$ac_ext >&5
7727 eval "$as_ac_Header=no"
7730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7732 ac_res=`eval echo '${'$as_ac_Header'}'`
7733 { echo "$as_me:$LINENO: result: $ac_res" >&5
7734 echo "${ECHO_T}$ac_res" >&6; }
7735 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7736 cat >>confdefs.h <<_ACEOF
7737 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7745 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7746 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7747 if test "${ac_cv_struct_tm+set}" = set; then
7748 echo $ECHO_N "(cached) $ECHO_C" >&6
7750 cat >conftest.$ac_ext <<_ACEOF
7753 cat confdefs.h >>conftest.$ac_ext
7754 cat >>conftest.$ac_ext <<_ACEOF
7755 /* end confdefs.h. */
7756 #include <sys/types.h>
7763 int *p = &tm.tm_sec;
7769 rm -f conftest.$ac_objext
7770 if { (ac_try="$ac_compile"
7772 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7773 *) ac_try_echo
=$ac_try;;
7775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7776 (eval "$ac_compile") 2>conftest.er1
7778 grep -v '^ *+' conftest.er1
>conftest.err
7780 cat conftest.err
>&5
7781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7782 (exit $ac_status); } && {
7783 test -z "$ac_c_werror_flag" ||
7784 test ! -s conftest.err
7785 } && test -s conftest.
$ac_objext; then
7786 ac_cv_struct_tm
=time.h
7788 echo "$as_me: failed program was:" >&5
7789 sed 's/^/| /' conftest.
$ac_ext >&5
7791 ac_cv_struct_tm
=sys
/time.h
7794 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7796 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7797 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7798 if test $ac_cv_struct_tm = sys
/time.h
; then
7800 cat >>confdefs.h
<<\_ACEOF
7801 #define TM_IN_SYS_TIME 1
7806 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7807 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7808 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7809 echo $ECHO_N "(cached) $ECHO_C" >&6
7811 cat >conftest.
$ac_ext <<_ACEOF
7814 cat confdefs.h
>>conftest.
$ac_ext
7815 cat >>conftest.
$ac_ext <<_ACEOF
7816 /* end confdefs.h. */
7817 #include <sys/types.h>
7818 #include <$ac_cv_struct_tm>
7824 static struct tm ac_aggr;
7825 if (ac_aggr.tm_zone)
7831 rm -f conftest.
$ac_objext
7832 if { (ac_try
="$ac_compile"
7834 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7835 *) ac_try_echo=$ac_try;;
7837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7838 (eval "$ac_compile") 2>conftest.er1
7840 grep -v '^ *+' conftest.er1 >conftest.err
7842 cat conftest.err >&5
7843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7844 (exit $ac_status); } && {
7845 test -z "$ac_c_werror_flag" ||
7846 test ! -s conftest.err
7847 } && test -s conftest.$ac_objext; then
7848 ac_cv_member_struct_tm_tm_zone=yes
7850 echo "$as_me: failed program was:" >&5
7851 sed 's/^/| /' conftest.$ac_ext >&5
7853 cat >conftest.$ac_ext <<_ACEOF
7856 cat confdefs.h >>conftest.$ac_ext
7857 cat >>conftest.$ac_ext <<_ACEOF
7858 /* end confdefs.h. */
7859 #include <sys/types.h>
7860 #include <$ac_cv_struct_tm>
7866 static struct tm ac_aggr;
7867 if (sizeof ac_aggr.tm_zone)
7873 rm -f conftest.$ac_objext
7874 if { (ac_try="$ac_compile"
7876 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7877 *) ac_try_echo
=$ac_try;;
7879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7880 (eval "$ac_compile") 2>conftest.er1
7882 grep -v '^ *+' conftest.er1
>conftest.err
7884 cat conftest.err
>&5
7885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886 (exit $ac_status); } && {
7887 test -z "$ac_c_werror_flag" ||
7888 test ! -s conftest.err
7889 } && test -s conftest.
$ac_objext; then
7890 ac_cv_member_struct_tm_tm_zone
=yes
7892 echo "$as_me: failed program was:" >&5
7893 sed 's/^/| /' conftest.
$ac_ext >&5
7895 ac_cv_member_struct_tm_tm_zone
=no
7898 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7901 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7903 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7904 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7905 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7907 cat >>confdefs.h
<<_ACEOF
7908 #define HAVE_STRUCT_TM_TM_ZONE 1
7914 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7916 cat >>confdefs.h
<<\_ACEOF
7917 #define HAVE_TM_ZONE 1
7921 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7922 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7923 if test "${ac_cv_have_decl_tzname+set}" = set; then
7924 echo $ECHO_N "(cached) $ECHO_C" >&6
7926 cat >conftest.
$ac_ext <<_ACEOF
7929 cat confdefs.h
>>conftest.
$ac_ext
7930 cat >>conftest.
$ac_ext <<_ACEOF
7931 /* end confdefs.h. */
7945 rm -f conftest.
$ac_objext
7946 if { (ac_try
="$ac_compile"
7948 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7949 *) ac_try_echo=$ac_try;;
7951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7952 (eval "$ac_compile") 2>conftest.er1
7954 grep -v '^ *+' conftest.er1 >conftest.err
7956 cat conftest.err >&5
7957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7958 (exit $ac_status); } && {
7959 test -z "$ac_c_werror_flag" ||
7960 test ! -s conftest.err
7961 } && test -s conftest.$ac_objext; then
7962 ac_cv_have_decl_tzname=yes
7964 echo "$as_me: failed program was:" >&5
7965 sed 's/^/| /' conftest.$ac_ext >&5
7967 ac_cv_have_decl_tzname=no
7970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7972 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7973 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7974 if test $ac_cv_have_decl_tzname = yes; then
7976 cat >>confdefs.h <<_ACEOF
7977 #define HAVE_DECL_TZNAME 1
7982 cat >>confdefs.h <<_ACEOF
7983 #define HAVE_DECL_TZNAME 0
7990 { echo "$as_me:$LINENO: checking for tzname" >&5
7991 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7992 if test "${ac_cv_var_tzname+set}" = set; then
7993 echo $ECHO_N "(cached) $ECHO_C" >&6
7995 cat >conftest.$ac_ext <<_ACEOF
7998 cat confdefs.h >>conftest.$ac_ext
7999 cat >>conftest.$ac_ext <<_ACEOF
8000 /* end confdefs.h. */
8002 #if !HAVE_DECL_TZNAME
8003 extern char *tzname[];
8009 return tzname[0][0];
8014 rm -f conftest.$ac_objext conftest$ac_exeext
8015 if { (ac_try="$ac_link"
8017 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8018 *) ac_try_echo
=$ac_try;;
8020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8021 (eval "$ac_link") 2>conftest.er1
8023 grep -v '^ *+' conftest.er1
>conftest.err
8025 cat conftest.err
>&5
8026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027 (exit $ac_status); } && {
8028 test -z "$ac_c_werror_flag" ||
8029 test ! -s conftest.err
8030 } && test -s conftest
$ac_exeext &&
8031 $as_test_x conftest
$ac_exeext; then
8032 ac_cv_var_tzname
=yes
8034 echo "$as_me: failed program was:" >&5
8035 sed 's/^/| /' conftest.
$ac_ext >&5
8040 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8041 conftest
$ac_exeext conftest.
$ac_ext
8043 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8044 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
8045 if test $ac_cv_var_tzname = yes; then
8047 cat >>confdefs.h
<<\_ACEOF
8048 #define HAVE_TZNAME 1
8054 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8055 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
8056 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8057 echo $ECHO_N "(cached) $ECHO_C" >&6
8059 cat >conftest.
$ac_ext <<_ACEOF
8062 cat confdefs.h
>>conftest.
$ac_ext
8063 cat >>conftest.
$ac_ext <<_ACEOF
8064 /* end confdefs.h. */
8070 static struct tm ac_aggr;
8071 if (ac_aggr.tm_gmtoff)
8077 rm -f conftest.
$ac_objext
8078 if { (ac_try
="$ac_compile"
8080 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8081 *) ac_try_echo=$ac_try;;
8083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8084 (eval "$ac_compile") 2>conftest.er1
8086 grep -v '^ *+' conftest.er1 >conftest.err
8088 cat conftest.err >&5
8089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8090 (exit $ac_status); } && {
8091 test -z "$ac_c_werror_flag" ||
8092 test ! -s conftest.err
8093 } && test -s conftest.$ac_objext; then
8094 ac_cv_member_struct_tm_tm_gmtoff=yes
8096 echo "$as_me: failed program was:" >&5
8097 sed 's/^/| /' conftest.$ac_ext >&5
8099 cat >conftest.$ac_ext <<_ACEOF
8102 cat confdefs.h >>conftest.$ac_ext
8103 cat >>conftest.$ac_ext <<_ACEOF
8104 /* end confdefs.h. */
8110 static struct tm ac_aggr;
8111 if (sizeof ac_aggr.tm_gmtoff)
8117 rm -f conftest.$ac_objext
8118 if { (ac_try="$ac_compile"
8120 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8121 *) ac_try_echo
=$ac_try;;
8123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8124 (eval "$ac_compile") 2>conftest.er1
8126 grep -v '^ *+' conftest.er1
>conftest.err
8128 cat conftest.err
>&5
8129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130 (exit $ac_status); } && {
8131 test -z "$ac_c_werror_flag" ||
8132 test ! -s conftest.err
8133 } && test -s conftest.
$ac_objext; then
8134 ac_cv_member_struct_tm_tm_gmtoff
=yes
8136 echo "$as_me: failed program was:" >&5
8137 sed 's/^/| /' conftest.
$ac_ext >&5
8139 ac_cv_member_struct_tm_tm_gmtoff
=no
8142 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8145 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8147 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8148 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8149 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8151 cat >>confdefs.h
<<\_ACEOF
8152 #define HAVE_TM_GMTOFF 1
8157 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8158 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8159 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8160 echo $ECHO_N "(cached) $ECHO_C" >&6
8162 cat >conftest.
$ac_ext <<_ACEOF
8165 cat confdefs.h
>>conftest.
$ac_ext
8166 cat >>conftest.
$ac_ext <<_ACEOF
8167 /* end confdefs.h. */
8168 $ac_includes_default
8169 #if HAVE_SYS_SOCKET_H
8170 #include <sys/socket.h>
8179 static struct ifreq ac_aggr;
8180 if (ac_aggr.ifr_flags)
8186 rm -f conftest.
$ac_objext
8187 if { (ac_try
="$ac_compile"
8189 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8190 *) ac_try_echo=$ac_try;;
8192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8193 (eval "$ac_compile") 2>conftest.er1
8195 grep -v '^ *+' conftest.er1 >conftest.err
8197 cat conftest.err >&5
8198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8199 (exit $ac_status); } && {
8200 test -z "$ac_c_werror_flag" ||
8201 test ! -s conftest.err
8202 } && test -s conftest.$ac_objext; then
8203 ac_cv_member_struct_ifreq_ifr_flags=yes
8205 echo "$as_me: failed program was:" >&5
8206 sed 's/^/| /' conftest.$ac_ext >&5
8208 cat >conftest.$ac_ext <<_ACEOF
8211 cat confdefs.h >>conftest.$ac_ext
8212 cat >>conftest.$ac_ext <<_ACEOF
8213 /* end confdefs.h. */
8214 $ac_includes_default
8215 #if HAVE_SYS_SOCKET_H
8216 #include <sys/socket.h>
8225 static struct ifreq ac_aggr;
8226 if (sizeof ac_aggr.ifr_flags)
8232 rm -f conftest.$ac_objext
8233 if { (ac_try="$ac_compile"
8235 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8236 *) ac_try_echo
=$ac_try;;
8238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8239 (eval "$ac_compile") 2>conftest.er1
8241 grep -v '^ *+' conftest.er1
>conftest.err
8243 cat conftest.err
>&5
8244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8245 (exit $ac_status); } && {
8246 test -z "$ac_c_werror_flag" ||
8247 test ! -s conftest.err
8248 } && test -s conftest.
$ac_objext; then
8249 ac_cv_member_struct_ifreq_ifr_flags
=yes
8251 echo "$as_me: failed program was:" >&5
8252 sed 's/^/| /' conftest.
$ac_ext >&5
8254 ac_cv_member_struct_ifreq_ifr_flags
=no
8257 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8260 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8262 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8263 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8264 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8266 cat >>confdefs.h
<<_ACEOF
8267 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8272 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8273 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8274 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8275 echo $ECHO_N "(cached) $ECHO_C" >&6
8277 cat >conftest.
$ac_ext <<_ACEOF
8280 cat confdefs.h
>>conftest.
$ac_ext
8281 cat >>conftest.
$ac_ext <<_ACEOF
8282 /* end confdefs.h. */
8283 $ac_includes_default
8284 #if HAVE_SYS_SOCKET_H
8285 #include <sys/socket.h>
8294 static struct ifreq ac_aggr;
8295 if (ac_aggr.ifr_hwaddr)
8301 rm -f conftest.
$ac_objext
8302 if { (ac_try
="$ac_compile"
8304 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8305 *) ac_try_echo=$ac_try;;
8307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8308 (eval "$ac_compile") 2>conftest.er1
8310 grep -v '^ *+' conftest.er1 >conftest.err
8312 cat conftest.err >&5
8313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314 (exit $ac_status); } && {
8315 test -z "$ac_c_werror_flag" ||
8316 test ! -s conftest.err
8317 } && test -s conftest.$ac_objext; then
8318 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8320 echo "$as_me: failed program was:" >&5
8321 sed 's/^/| /' conftest.$ac_ext >&5
8323 cat >conftest.$ac_ext <<_ACEOF
8326 cat confdefs.h >>conftest.$ac_ext
8327 cat >>conftest.$ac_ext <<_ACEOF
8328 /* end confdefs.h. */
8329 $ac_includes_default
8330 #if HAVE_SYS_SOCKET_H
8331 #include <sys/socket.h>
8340 static struct ifreq ac_aggr;
8341 if (sizeof ac_aggr.ifr_hwaddr)
8347 rm -f conftest.$ac_objext
8348 if { (ac_try="$ac_compile"
8350 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8351 *) ac_try_echo
=$ac_try;;
8353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8354 (eval "$ac_compile") 2>conftest.er1
8356 grep -v '^ *+' conftest.er1
>conftest.err
8358 cat conftest.err
>&5
8359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8360 (exit $ac_status); } && {
8361 test -z "$ac_c_werror_flag" ||
8362 test ! -s conftest.err
8363 } && test -s conftest.
$ac_objext; then
8364 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8366 echo "$as_me: failed program was:" >&5
8367 sed 's/^/| /' conftest.
$ac_ext >&5
8369 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8372 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8375 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8377 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8378 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8379 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8381 cat >>confdefs.h
<<_ACEOF
8382 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8387 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8388 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8389 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8390 echo $ECHO_N "(cached) $ECHO_C" >&6
8392 cat >conftest.
$ac_ext <<_ACEOF
8395 cat confdefs.h
>>conftest.
$ac_ext
8396 cat >>conftest.
$ac_ext <<_ACEOF
8397 /* end confdefs.h. */
8398 $ac_includes_default
8399 #if HAVE_SYS_SOCKET_H
8400 #include <sys/socket.h>
8409 static struct ifreq ac_aggr;
8410 if (ac_aggr.ifr_netmask)
8416 rm -f conftest.
$ac_objext
8417 if { (ac_try
="$ac_compile"
8419 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8420 *) ac_try_echo=$ac_try;;
8422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8423 (eval "$ac_compile") 2>conftest.er1
8425 grep -v '^ *+' conftest.er1 >conftest.err
8427 cat conftest.err >&5
8428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429 (exit $ac_status); } && {
8430 test -z "$ac_c_werror_flag" ||
8431 test ! -s conftest.err
8432 } && test -s conftest.$ac_objext; then
8433 ac_cv_member_struct_ifreq_ifr_netmask=yes
8435 echo "$as_me: failed program was:" >&5
8436 sed 's/^/| /' conftest.$ac_ext >&5
8438 cat >conftest.$ac_ext <<_ACEOF
8441 cat confdefs.h >>conftest.$ac_ext
8442 cat >>conftest.$ac_ext <<_ACEOF
8443 /* end confdefs.h. */
8444 $ac_includes_default
8445 #if HAVE_SYS_SOCKET_H
8446 #include <sys/socket.h>
8455 static struct ifreq ac_aggr;
8456 if (sizeof ac_aggr.ifr_netmask)
8462 rm -f conftest.$ac_objext
8463 if { (ac_try="$ac_compile"
8465 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8466 *) ac_try_echo
=$ac_try;;
8468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8469 (eval "$ac_compile") 2>conftest.er1
8471 grep -v '^ *+' conftest.er1
>conftest.err
8473 cat conftest.err
>&5
8474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475 (exit $ac_status); } && {
8476 test -z "$ac_c_werror_flag" ||
8477 test ! -s conftest.err
8478 } && test -s conftest.
$ac_objext; then
8479 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8481 echo "$as_me: failed program was:" >&5
8482 sed 's/^/| /' conftest.
$ac_ext >&5
8484 ac_cv_member_struct_ifreq_ifr_netmask
=no
8487 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8490 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8492 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8493 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8494 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8496 cat >>confdefs.h
<<_ACEOF
8497 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8502 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8503 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8504 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8505 echo $ECHO_N "(cached) $ECHO_C" >&6
8507 cat >conftest.
$ac_ext <<_ACEOF
8510 cat confdefs.h
>>conftest.
$ac_ext
8511 cat >>conftest.
$ac_ext <<_ACEOF
8512 /* end confdefs.h. */
8513 $ac_includes_default
8514 #if HAVE_SYS_SOCKET_H
8515 #include <sys/socket.h>
8524 static struct ifreq ac_aggr;
8525 if (ac_aggr.ifr_broadaddr)
8531 rm -f conftest.
$ac_objext
8532 if { (ac_try
="$ac_compile"
8534 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8535 *) ac_try_echo=$ac_try;;
8537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8538 (eval "$ac_compile") 2>conftest.er1
8540 grep -v '^ *+' conftest.er1 >conftest.err
8542 cat conftest.err >&5
8543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544 (exit $ac_status); } && {
8545 test -z "$ac_c_werror_flag" ||
8546 test ! -s conftest.err
8547 } && test -s conftest.$ac_objext; then
8548 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8550 echo "$as_me: failed program was:" >&5
8551 sed 's/^/| /' conftest.$ac_ext >&5
8553 cat >conftest.$ac_ext <<_ACEOF
8556 cat confdefs.h >>conftest.$ac_ext
8557 cat >>conftest.$ac_ext <<_ACEOF
8558 /* end confdefs.h. */
8559 $ac_includes_default
8560 #if HAVE_SYS_SOCKET_H
8561 #include <sys/socket.h>
8570 static struct ifreq ac_aggr;
8571 if (sizeof ac_aggr.ifr_broadaddr)
8577 rm -f conftest.$ac_objext
8578 if { (ac_try="$ac_compile"
8580 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8581 *) ac_try_echo
=$ac_try;;
8583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8584 (eval "$ac_compile") 2>conftest.er1
8586 grep -v '^ *+' conftest.er1
>conftest.err
8588 cat conftest.err
>&5
8589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590 (exit $ac_status); } && {
8591 test -z "$ac_c_werror_flag" ||
8592 test ! -s conftest.err
8593 } && test -s conftest.
$ac_objext; then
8594 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
8596 echo "$as_me: failed program was:" >&5
8597 sed 's/^/| /' conftest.
$ac_ext >&5
8599 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
8602 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8605 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8607 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8608 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8609 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8611 cat >>confdefs.h
<<_ACEOF
8612 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8617 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8618 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8619 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8620 echo $ECHO_N "(cached) $ECHO_C" >&6
8622 cat >conftest.
$ac_ext <<_ACEOF
8625 cat confdefs.h
>>conftest.
$ac_ext
8626 cat >>conftest.
$ac_ext <<_ACEOF
8627 /* end confdefs.h. */
8628 $ac_includes_default
8629 #if HAVE_SYS_SOCKET_H
8630 #include <sys/socket.h>
8639 static struct ifreq ac_aggr;
8640 if (ac_aggr.ifr_addr)
8646 rm -f conftest.
$ac_objext
8647 if { (ac_try
="$ac_compile"
8649 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8650 *) ac_try_echo=$ac_try;;
8652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8653 (eval "$ac_compile") 2>conftest.er1
8655 grep -v '^ *+' conftest.er1 >conftest.err
8657 cat conftest.err >&5
8658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659 (exit $ac_status); } && {
8660 test -z "$ac_c_werror_flag" ||
8661 test ! -s conftest.err
8662 } && test -s conftest.$ac_objext; then
8663 ac_cv_member_struct_ifreq_ifr_addr=yes
8665 echo "$as_me: failed program was:" >&5
8666 sed 's/^/| /' conftest.$ac_ext >&5
8668 cat >conftest.$ac_ext <<_ACEOF
8671 cat confdefs.h >>conftest.$ac_ext
8672 cat >>conftest.$ac_ext <<_ACEOF
8673 /* end confdefs.h. */
8674 $ac_includes_default
8675 #if HAVE_SYS_SOCKET_H
8676 #include <sys/socket.h>
8685 static struct ifreq ac_aggr;
8686 if (sizeof ac_aggr.ifr_addr)
8692 rm -f conftest.$ac_objext
8693 if { (ac_try="$ac_compile"
8695 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8696 *) ac_try_echo
=$ac_try;;
8698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8699 (eval "$ac_compile") 2>conftest.er1
8701 grep -v '^ *+' conftest.er1
>conftest.err
8703 cat conftest.err
>&5
8704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705 (exit $ac_status); } && {
8706 test -z "$ac_c_werror_flag" ||
8707 test ! -s conftest.err
8708 } && test -s conftest.
$ac_objext; then
8709 ac_cv_member_struct_ifreq_ifr_addr
=yes
8711 echo "$as_me: failed program was:" >&5
8712 sed 's/^/| /' conftest.
$ac_ext >&5
8714 ac_cv_member_struct_ifreq_ifr_addr
=no
8717 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8720 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8722 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8723 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8724 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8726 cat >>confdefs.h
<<_ACEOF
8727 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8735 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8736 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8737 if test "$ac_cv_prog_cc_c89" != no
; then
8738 { echo "$as_me:$LINENO: result: yes" >&5
8739 echo "${ECHO_T}yes" >&6; }
8741 cat >>confdefs.h
<<\_ACEOF
8742 #define PROTOTYPES 1
8746 cat >>confdefs.h
<<\_ACEOF
8747 #define __PROTOTYPES 1
8751 { echo "$as_me:$LINENO: result: no" >&5
8752 echo "${ECHO_T}no" >&6; }
8755 { echo "$as_me:$LINENO: checking for working volatile" >&5
8756 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8757 if test "${ac_cv_c_volatile+set}" = set; then
8758 echo $ECHO_N "(cached) $ECHO_C" >&6
8760 cat >conftest.
$ac_ext <<_ACEOF
8763 cat confdefs.h
>>conftest.
$ac_ext
8764 cat >>conftest.
$ac_ext <<_ACEOF
8765 /* end confdefs.h. */
8772 int * volatile y = (int *) 0;
8778 rm -f conftest.
$ac_objext
8779 if { (ac_try
="$ac_compile"
8781 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8782 *) ac_try_echo=$ac_try;;
8784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8785 (eval "$ac_compile") 2>conftest.er1
8787 grep -v '^ *+' conftest.er1 >conftest.err
8789 cat conftest.err >&5
8790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8791 (exit $ac_status); } && {
8792 test -z "$ac_c_werror_flag" ||
8793 test ! -s conftest.err
8794 } && test -s conftest.$ac_objext; then
8795 ac_cv_c_volatile=yes
8797 echo "$as_me: failed program was:" >&5
8798 sed 's/^/| /' conftest.$ac_ext >&5
8803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8805 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8806 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8807 if test $ac_cv_c_volatile = no; then
8809 cat >>confdefs.h <<\_ACEOF
8815 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8816 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8817 if test "${ac_cv_c_const+set}" = set; then
8818 echo $ECHO_N "(cached) $ECHO_C" >&6
8820 cat >conftest.$ac_ext <<_ACEOF
8823 cat confdefs.h >>conftest.$ac_ext
8824 cat >>conftest.$ac_ext <<_ACEOF
8825 /* end confdefs.h. */
8830 /* FIXME: Include the comments suggested by Paul. */
8832 /* Ultrix mips cc rejects this. */
8833 typedef int charset[2];
8835 /* SunOS 4.1.1 cc rejects this. */
8836 char const *const *pcpcc;
8838 /* NEC SVR4.0.2 mips cc rejects this. */
8839 struct point {int x, y;};
8840 static struct point const zero = {0,0};
8841 /* AIX XL C 1.02.0.0 rejects this.
8842 It does not let you subtract one const X* pointer from another in
8843 an arm of an if-expression whose if-part is not a constant
8845 const char *g = "string";
8846 pcpcc = &g + (g ? g-g : 0);
8847 /* HPUX 7.0 cc rejects these. */
8849 ppc = (char**) pcpcc;
8850 pcpcc = (char const *const *) ppc;
8851 { /* SCO 3.2v4 cc rejects this. */
8853 char const *s = 0 ? (char *) 0 : (char const *) 0;
8858 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8860 const int *foo = &x[0];
8863 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8864 typedef const int *iptr;
8868 { /* AIX XL C 1.02.0.0 rejects this saying
8869 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8870 struct s { int j; const int *ap[3]; };
8871 struct s *b; b->j = 5;
8873 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8877 return !cs[0] && !zero.x;
8884 rm -f conftest.$ac_objext
8885 if { (ac_try="$ac_compile"
8887 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8888 *) ac_try_echo
=$ac_try;;
8890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8891 (eval "$ac_compile") 2>conftest.er1
8893 grep -v '^ *+' conftest.er1
>conftest.err
8895 cat conftest.err
>&5
8896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897 (exit $ac_status); } && {
8898 test -z "$ac_c_werror_flag" ||
8899 test ! -s conftest.err
8900 } && test -s conftest.
$ac_objext; then
8903 echo "$as_me: failed program was:" >&5
8904 sed 's/^/| /' conftest.
$ac_ext >&5
8909 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8911 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8912 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8913 if test $ac_cv_c_const = no
; then
8915 cat >>confdefs.h
<<\_ACEOF
8921 { echo "$as_me:$LINENO: checking for void * support" >&5
8922 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8923 if test "${emacs_cv_void_star+set}" = set; then
8924 echo $ECHO_N "(cached) $ECHO_C" >&6
8926 cat >conftest.
$ac_ext <<_ACEOF
8929 cat confdefs.h
>>conftest.
$ac_ext
8930 cat >>conftest.
$ac_ext <<_ACEOF
8931 /* end confdefs.h. */
8941 rm -f conftest.
$ac_objext
8942 if { (ac_try
="$ac_compile"
8944 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8945 *) ac_try_echo=$ac_try;;
8947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8948 (eval "$ac_compile") 2>conftest.er1
8950 grep -v '^ *+' conftest.er1 >conftest.err
8952 cat conftest.err >&5
8953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954 (exit $ac_status); } && {
8955 test -z "$ac_c_werror_flag" ||
8956 test ! -s conftest.err
8957 } && test -s conftest.$ac_objext; then
8958 emacs_cv_void_star=yes
8960 echo "$as_me: failed program was:" >&5
8961 sed 's/^/| /' conftest.$ac_ext >&5
8963 emacs_cv_void_star=no
8966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8968 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8969 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8970 if test $emacs_cv_void_star = yes; then
8971 cat >>confdefs.h <<\_ACEOF
8972 #define POINTER_TYPE void
8976 cat >>confdefs.h <<\_ACEOF
8977 #define POINTER_TYPE char
8986 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8987 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8988 set x ${MAKE-make}; ac_make=`echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8989 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8990 echo $ECHO_N "(cached) $ECHO_C" >&6
8992 cat >conftest.make <<\_ACEOF
8995 @echo '@@@%%%=$(MAKE)=@@@%%%'
8997 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8998 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
9000 eval ac_cv_prog_make_${ac_make}_set=yes;;
9002 eval ac_cv_prog_make_${ac_make}_set=no;;
9006 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9007 { echo "$as_me:$LINENO: result: yes" >&5
9008 echo "${ECHO_T}yes" >&6; }
9011 { echo "$as_me:$LINENO: result: no" >&5
9012 echo "${ECHO_T}no" >&6; }
9013 SET_MAKE="MAKE=${MAKE-make}"
9017 { echo "$as_me:$LINENO: checking for long file names" >&5
9018 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
9019 if test "${ac_cv_sys_long_file_names+set}" = set; then
9020 echo $ECHO_N "(cached) $ECHO_C" >&6
9022 ac_cv_sys_long_file_names=yes
9023 # Test for long file names in all the places we know might matter:
9024 # . the current directory, where building will happen
9025 # $prefix/lib where we will be installing things
9026 # $exec_prefix/lib likewise
9027 # $TMPDIR if set, where it might want to write temporary files
9028 # /tmp where it might want to write temporary files
9031 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9032 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9033 # in the usual case where exec_prefix is '${prefix}'.
9035 . | /* | ?:[\\/]*) ;; #(
9038 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9039 ac_xdir=$ac_dir/cf$$
9040 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9041 ac_tf1=$ac_xdir/conftest9012345
9042 ac_tf2=$ac_xdir/conftest9012346
9043 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9044 ac_cv_sys_long_file_names=no
9045 rm -f -r "$ac_xdir" 2>/dev/null
9046 test $ac_cv_sys_long_file_names = no && break
9049 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9050 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9051 if test $ac_cv_sys_long_file_names = yes; then
9053 cat >>confdefs.h <<\_ACEOF
9054 #define HAVE_LONG_FILE_NAMES 1
9060 #### Choose a window system.
9062 { echo "$as_me:$LINENO: checking for X" >&5
9063 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9066 # Check whether --with-x was given.
9067 if test "${with_x+set}" = set; then
9071 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9072 if test "x$with_x" = xno; then
9073 # The user explicitly disabled X.
9076 case $x_includes,$x_libraries in #(
9077 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9078 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9079 { (exit 1); exit 1; }; };; #(
9080 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9081 echo $ECHO_N "(cached) $ECHO_C" >&6
9083 # One or both of the vars are not set, and there is no cached value.
9084 ac_x_includes=no ac_x_libraries=no
9085 rm -f -r conftest.dir
9086 if mkdir conftest.dir; then
9088 cat >Imakefile <<'_ACEOF'
9090 @echo incroot='${INCROOT}'
9092 @echo usrlibdir='${USRLIBDIR}'
9094 @echo libdir='${LIBDIR}'
9096 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9097 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9098 for ac_var in incroot usrlibdir libdir; do
9099 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
9101 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9102 for ac_extension in a so sl; do
9103 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9104 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9105 ac_im_usrlibdir=$ac_im_libdir; break
9108 # Screen out bogus values from the imake configuration. They are
9109 # bogus both because they are the default anyway, and because
9110 # using them would break gcc on systems where it needs fixed includes.
9111 case $ac_im_incroot in
9112 /usr/include) ac_x_includes= ;;
9113 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9115 case $ac_im_usrlibdir in
9117 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9121 rm -f -r conftest.dir
9124 # Standard set of common directories for X headers.
9125 # Check X11 before X11Rn because it is often a symlink to the current release.
9137 /usr/local/X11/include
9138 /usr/local/X11R6/include
9139 /usr/local/X11R5/include
9140 /usr/local/X11R4/include
9142 /usr/local/include/X11
9143 /usr/local/include/X11R6
9144 /usr/local/include/X11R5
9145 /usr/local/include/X11R4
9149 /usr/XFree86/include/X11
9153 /usr/unsupported/include
9155 /usr/local/x11r5/include
9156 /usr/lpp/Xamples/include
9158 /usr/openwin/include
9159 /usr/openwin/share/include'
9161 if test "$ac_x_includes" = no; then
9162 # Guess where to find include files, by looking for Xlib.h.
9163 # First, try using that file with no special directory specified.
9164 cat >conftest.$ac_ext <<_ACEOF
9167 cat confdefs.h >>conftest.$ac_ext
9168 cat >>conftest.$ac_ext <<_ACEOF
9169 /* end confdefs.h. */
9170 #include <X11/Xlib.h>
9172 if { (ac_try="$ac_cpp conftest.$ac_ext"
9174 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9175 *) ac_try_echo
=$ac_try;;
9177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9178 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9180 grep -v '^ *+' conftest.er1
>conftest.err
9182 cat conftest.err
>&5
9183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184 (exit $ac_status); } >/dev
/null
&& {
9185 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9186 test ! -s conftest.err
9188 # We can compile using X headers with no special include directory.
9191 echo "$as_me: failed program was:" >&5
9192 sed 's/^/| /' conftest.
$ac_ext >&5
9194 for ac_dir
in $ac_x_header_dirs; do
9195 if test -r "$ac_dir/X11/Xlib.h"; then
9196 ac_x_includes
=$ac_dir
9202 rm -f conftest.err conftest.
$ac_ext
9203 fi # $ac_x_includes = no
9205 if test "$ac_x_libraries" = no
; then
9206 # Check for the libraries.
9207 # See if we find them without any special options.
9208 # Don't add to $LIBS permanently.
9211 cat >conftest.
$ac_ext <<_ACEOF
9214 cat confdefs.h
>>conftest.
$ac_ext
9215 cat >>conftest.
$ac_ext <<_ACEOF
9216 /* end confdefs.h. */
9217 #include <X11/Xlib.h>
9226 rm -f conftest.
$ac_objext conftest
$ac_exeext
9227 if { (ac_try
="$ac_link"
9229 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9230 *) ac_try_echo=$ac_try;;
9232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9233 (eval "$ac_link") 2>conftest.er1
9235 grep -v '^ *+' conftest.er1 >conftest.err
9237 cat conftest.err >&5
9238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239 (exit $ac_status); } && {
9240 test -z "$ac_c_werror_flag" ||
9241 test ! -s conftest.err
9242 } && test -s conftest$ac_exeext &&
9243 $as_test_x conftest$ac_exeext; then
9245 # We can link X programs with no special library path.
9248 echo "$as_me: failed program was:" >&5
9249 sed 's/^/| /' conftest.$ac_ext >&5
9252 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
9254 # Don't even attempt the hair of trying to link an X program!
9255 for ac_extension in a so sl; do
9256 if test -r "$ac_dir/libX11.$ac_extension"; then
9257 ac_x_libraries=$ac_dir
9264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9265 conftest$ac_exeext conftest.$ac_ext
9266 fi # $ac_x_libraries = no
9268 case $ac_x_includes,$ac_x_libraries in #(
9270 # Didn't find X, or a directory has "'" in its name.
9271 ac_cv_have_x="have_x=no";; #(
9273 # Record where we found X for the cache.
9274 ac_cv_have_x="have_x=yes\
9275 ac_x_includes='$ac_x_includes'\
9276 ac_x_libraries='$ac_x_libraries'"
9282 eval "$ac_cv_have_x"
9285 if test "$have_x" != yes; then
9286 { echo "$as_me:$LINENO: result: $have_x" >&5
9287 echo "${ECHO_T}$have_x" >&6; }
9290 # If each of the values was on the command line, it overrides each guess.
9291 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9292 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9293 # Update the cache value to reflect the command line values.
9294 ac_cv_have_x="have_x=yes\
9295 ac_x_includes='$x_includes'\
9296 ac_x_libraries='$x_libraries'"
9297 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9298 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9301 if test "$no_x" = yes; then
9307 if test "${x_libraries}" != NONE; then
9308 if test -n "${x_libraries}"; then
9309 LD_SWITCH_X_SITE=-L`echo ${x_libraries} |
sed -e "s/:/ -L/g"`
9310 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} |
sed -e "s/:/ -R/g"`
9312 x_default_search_path=""
9313 x_search_path=${x_libraries}
9314 if test -z "${x_search_path}"; then
9315 x_search_path=/usr/lib
9317 for x_library in `echo ${x_search_path}: | \
9318 sed -e "s/:/ /g" -e p
-e "s:/lib[^ /]* :/share :g"`; do
9320 ${x_library}/X11/%L/%T/%N%C%S:\
9321 ${x_library}/X11/%l/%T/%N%C%S:\
9322 ${x_library}/X11/%T/%N%C%S:\
9323 ${x_library}/X11/%L/%T/%N%S:\
9324 ${x_library}/X11/%l/%T/%N%S:\
9325 ${x_library}/X11/%T/%N%S"
9326 if test x"${x_default_search_path}" = x; then
9327 x_default_search_path=${x_search_path}
9329 x_default_search_path="${x_search_path}:${x_default_search_path}"
9333 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9334 C_SWITCH_X_SITE=-I`echo ${x_includes} |
sed -e "s/:/ -I/g"`
9337 if test x"${x_includes}" = x; then
9338 bitmapdir=/usr/include/X11/bitmaps
9340 # accumulate include directories that have X11 bitmap subdirectories
9342 for bmd in `echo ${x_includes} |
sed -e "s/:/ /g"`; do
9343 if test -d "${bmd}/X11/bitmaps"; then
9344 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9346 if test -d "${bmd}/bitmaps"; then
9347 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9350 if test ${bmd_acc} != "dummyval"; then
9351 bitmapdir=`echo ${bmd_acc} |
sed -e "s/^dummyval://"`
9356 if test "${with_carbon}" != no; then
9357 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9358 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9359 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9360 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9361 echo $ECHO_N "(cached) $ECHO_C" >&6
9363 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9364 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9366 # Is the header compilable?
9367 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9368 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9369 cat >conftest.$ac_ext <<_ACEOF
9372 cat confdefs.h >>conftest.$ac_ext
9373 cat >>conftest.$ac_ext <<_ACEOF
9374 /* end confdefs.h. */
9375 $ac_includes_default
9376 #include <Carbon/Carbon.h>
9378 rm -f conftest.$ac_objext
9379 if { (ac_try="$ac_compile"
9381 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9382 *) ac_try_echo
=$ac_try;;
9384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9385 (eval "$ac_compile") 2>conftest.er1
9387 grep -v '^ *+' conftest.er1
>conftest.err
9389 cat conftest.err
>&5
9390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391 (exit $ac_status); } && {
9392 test -z "$ac_c_werror_flag" ||
9393 test ! -s conftest.err
9394 } && test -s conftest.
$ac_objext; then
9395 ac_header_compiler
=yes
9397 echo "$as_me: failed program was:" >&5
9398 sed 's/^/| /' conftest.
$ac_ext >&5
9400 ac_header_compiler
=no
9403 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9404 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9405 echo "${ECHO_T}$ac_header_compiler" >&6; }
9407 # Is the header present?
9408 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9409 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9410 cat >conftest.
$ac_ext <<_ACEOF
9413 cat confdefs.h
>>conftest.
$ac_ext
9414 cat >>conftest.
$ac_ext <<_ACEOF
9415 /* end confdefs.h. */
9416 #include <Carbon/Carbon.h>
9418 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9420 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9421 *) ac_try_echo=$ac_try;;
9423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9424 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9426 grep -v '^ *+' conftest.er1 >conftest.err
9428 cat conftest.err >&5
9429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9430 (exit $ac_status); } >/dev/null && {
9431 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9432 test ! -s conftest.err
9434 ac_header_preproc=yes
9436 echo "$as_me: failed program was:" >&5
9437 sed 's/^/| /' conftest.$ac_ext >&5
9439 ac_header_preproc=no
9442 rm -f conftest.err conftest.$ac_ext
9443 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9444 echo "${ECHO_T}$ac_header_preproc" >&6; }
9446 # So? What about this header?
9447 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9449 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9450 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9451 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9452 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9453 ac_header_preproc=yes
9456 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9457 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9458 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9459 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9460 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9461 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9462 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9463 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9464 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9465 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9466 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9467 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9471 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9472 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9473 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9474 echo $ECHO_N "(cached) $ECHO_C" >&6
9476 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9478 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9479 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9482 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9488 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9489 if test "${with_carbon+set}" != set \
9490 && test "${carbon_appdir_x+set}" != set; then
9491 for var in with_x with_x_toolkit with_gtk with_xim \
9492 with_xpm with_jpeg with_tiff with_gif with_png; do
9493 if eval test \"\${$var+set}\" = set; then
9500 if test "${HAVE_CARBON}" = yes; then
9504 case "${window_system}" in
9508 case "${with_x_toolkit}" in
9509 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9510 motif ) USE_X_TOOLKIT=MOTIF ;;
9512 USE_X_TOOLKIT=none ;;
9513 no ) USE_X_TOOLKIT=none ;;
9514 * ) USE_X_TOOLKIT=maybe ;;
9524 ### If we're using X11, we should use the X menu package.
9527 yes ) HAVE_MENUS=yes ;;
9530 if test "${opsys}" = "hpux9"; then
9531 case "${x_libraries}" in
9533 opsysfile="s/hpux9-x11r4.h"
9538 if test "${opsys}" = "hpux9shr"; then
9539 case "${x_libraries}" in
9541 opsysfile="s/hpux9shxr4.h"
9546 ### Compute the unexec source name from the object name.
9547 UNEXEC_SRC="`echo ${unexec} |
sed 's/\.o/.c/'`"
9549 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9550 # Assume not, until told otherwise.
9553 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9554 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9555 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9556 echo $ECHO_N "(cached) $ECHO_C" >&6
9558 cat >conftest.$ac_ext <<_ACEOF
9561 cat confdefs.h >>conftest.$ac_ext
9562 cat >>conftest.$ac_ext <<_ACEOF
9563 /* end confdefs.h. */
9564 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9565 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9566 #define malloc_get_state innocuous_malloc_get_state
9568 /* System header to define __stub macros and hopefully few prototypes,
9569 which can conflict with char malloc_get_state (); below.
9570 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9571 <limits.h> exists even on freestanding compilers. */
9574 # include <limits.h>
9576 # include <assert.h>
9579 #undef malloc_get_state
9581 /* Override any GCC internal prototype to avoid an error.
9582 Use char because int might match the return type of a GCC
9583 builtin and then its argument prototype would still apply. */
9587 char malloc_get_state ();
9588 /* The GNU C library defines this for functions which it implements
9589 to always fail with ENOSYS. Some functions are actually named
9590 something starting with __ and the normal name is an alias. */
9591 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9598 return malloc_get_state ();
9603 rm -f conftest.$ac_objext conftest$ac_exeext
9604 if { (ac_try="$ac_link"
9606 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9607 *) ac_try_echo
=$ac_try;;
9609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9610 (eval "$ac_link") 2>conftest.er1
9612 grep -v '^ *+' conftest.er1
>conftest.err
9614 cat conftest.err
>&5
9615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9616 (exit $ac_status); } && {
9617 test -z "$ac_c_werror_flag" ||
9618 test ! -s conftest.err
9619 } && test -s conftest
$ac_exeext &&
9620 $as_test_x conftest
$ac_exeext; then
9621 ac_cv_func_malloc_get_state
=yes
9623 echo "$as_me: failed program was:" >&5
9624 sed 's/^/| /' conftest.
$ac_ext >&5
9626 ac_cv_func_malloc_get_state
=no
9629 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9630 conftest
$ac_exeext conftest.
$ac_ext
9632 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9633 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9634 if test $ac_cv_func_malloc_get_state = yes; then
9640 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9641 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9642 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9643 echo $ECHO_N "(cached) $ECHO_C" >&6
9645 cat >conftest.
$ac_ext <<_ACEOF
9648 cat confdefs.h
>>conftest.
$ac_ext
9649 cat >>conftest.
$ac_ext <<_ACEOF
9650 /* end confdefs.h. */
9651 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9652 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9653 #define malloc_set_state innocuous_malloc_set_state
9655 /* System header to define __stub macros and hopefully few prototypes,
9656 which can conflict with char malloc_set_state (); below.
9657 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9658 <limits.h> exists even on freestanding compilers. */
9661 # include <limits.h>
9663 # include <assert.h>
9666 #undef malloc_set_state
9668 /* Override any GCC internal prototype to avoid an error.
9669 Use char because int might match the return type of a GCC
9670 builtin and then its argument prototype would still apply. */
9674 char malloc_set_state ();
9675 /* The GNU C library defines this for functions which it implements
9676 to always fail with ENOSYS. Some functions are actually named
9677 something starting with __ and the normal name is an alias. */
9678 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9685 return malloc_set_state ();
9690 rm -f conftest.
$ac_objext conftest
$ac_exeext
9691 if { (ac_try
="$ac_link"
9693 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9694 *) ac_try_echo=$ac_try;;
9696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9697 (eval "$ac_link") 2>conftest.er1
9699 grep -v '^ *+' conftest.er1 >conftest.err
9701 cat conftest.err >&5
9702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9703 (exit $ac_status); } && {
9704 test -z "$ac_c_werror_flag" ||
9705 test ! -s conftest.err
9706 } && test -s conftest$ac_exeext &&
9707 $as_test_x conftest$ac_exeext; then
9708 ac_cv_func_malloc_set_state=yes
9710 echo "$as_me: failed program was:" >&5
9711 sed 's/^/| /' conftest.$ac_ext >&5
9713 ac_cv_func_malloc_set_state=no
9716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9717 conftest$ac_exeext conftest.$ac_ext
9719 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9720 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9721 if test $ac_cv_func_malloc_set_state = yes; then
9727 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9728 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9729 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9730 echo $ECHO_N "(cached) $ECHO_C" >&6
9732 cat >conftest.$ac_ext <<_ACEOF
9735 cat confdefs.h >>conftest.$ac_ext
9736 cat >>conftest.$ac_ext <<_ACEOF
9737 /* end confdefs.h. */
9738 extern void (* __after_morecore_hook)();
9742 __after_morecore_hook = 0
9747 rm -f conftest.$ac_objext conftest$ac_exeext
9748 if { (ac_try="$ac_link"
9750 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9751 *) ac_try_echo
=$ac_try;;
9753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9754 (eval "$ac_link") 2>conftest.er1
9756 grep -v '^ *+' conftest.er1
>conftest.err
9758 cat conftest.err
>&5
9759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760 (exit $ac_status); } && {
9761 test -z "$ac_c_werror_flag" ||
9762 test ! -s conftest.err
9763 } && test -s conftest
$ac_exeext &&
9764 $as_test_x conftest
$ac_exeext; then
9765 emacs_cv_var___after_morecore_hook
=yes
9767 echo "$as_me: failed program was:" >&5
9768 sed 's/^/| /' conftest.
$ac_ext >&5
9770 emacs_cv_var___after_morecore_hook
=no
9773 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9774 conftest
$ac_exeext conftest.
$ac_ext
9776 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9777 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9778 if test $emacs_cv_var___after_morecore_hook = no
; then
9781 if test "${system_malloc}" = "yes"; then
9784 (The GNU allocators don't work with this system configuration.)"
9786 if test "$doug_lea_malloc" = "yes" ; then
9787 if test "$GNU_MALLOC" = yes ; then
9789 (Using Doug Lea's new malloc from the GNU C Library.)"
9792 cat >>confdefs.h
<<\_ACEOF
9793 #define DOUG_LEA_MALLOC 1
9798 if test x
"${REL_ALLOC}" = x
; then
9799 REL_ALLOC
=${GNU_MALLOC}
9805 for ac_header
in stdlib.h unistd.h
9807 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9808 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9809 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9810 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9811 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9812 echo $ECHO_N "(cached) $ECHO_C" >&6
9814 ac_res
=`eval echo '${'$as_ac_Header'}'`
9815 { echo "$as_me:$LINENO: result: $ac_res" >&5
9816 echo "${ECHO_T}$ac_res" >&6; }
9818 # Is the header compilable?
9819 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9820 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9821 cat >conftest.
$ac_ext <<_ACEOF
9824 cat confdefs.h
>>conftest.
$ac_ext
9825 cat >>conftest.
$ac_ext <<_ACEOF
9826 /* end confdefs.h. */
9827 $ac_includes_default
9828 #include <$ac_header>
9830 rm -f conftest.
$ac_objext
9831 if { (ac_try
="$ac_compile"
9833 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9834 *) ac_try_echo=$ac_try;;
9836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9837 (eval "$ac_compile") 2>conftest.er1
9839 grep -v '^ *+' conftest.er1 >conftest.err
9841 cat conftest.err >&5
9842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843 (exit $ac_status); } && {
9844 test -z "$ac_c_werror_flag" ||
9845 test ! -s conftest.err
9846 } && test -s conftest.$ac_objext; then
9847 ac_header_compiler=yes
9849 echo "$as_me: failed program was:" >&5
9850 sed 's/^/| /' conftest.$ac_ext >&5
9852 ac_header_compiler=no
9855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9856 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9857 echo "${ECHO_T}$ac_header_compiler" >&6; }
9859 # Is the header present?
9860 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9861 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9862 cat >conftest.$ac_ext <<_ACEOF
9865 cat confdefs.h >>conftest.$ac_ext
9866 cat >>conftest.$ac_ext <<_ACEOF
9867 /* end confdefs.h. */
9868 #include <$ac_header>
9870 if { (ac_try="$ac_cpp conftest.$ac_ext"
9872 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9873 *) ac_try_echo
=$ac_try;;
9875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9876 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9878 grep -v '^ *+' conftest.er1
>conftest.err
9880 cat conftest.err
>&5
9881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9882 (exit $ac_status); } >/dev
/null
&& {
9883 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9884 test ! -s conftest.err
9886 ac_header_preproc
=yes
9888 echo "$as_me: failed program was:" >&5
9889 sed 's/^/| /' conftest.
$ac_ext >&5
9891 ac_header_preproc
=no
9894 rm -f conftest.err conftest.
$ac_ext
9895 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9896 echo "${ECHO_T}$ac_header_preproc" >&6; }
9898 # So? What about this header?
9899 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9901 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9902 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9903 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9904 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9905 ac_header_preproc
=yes
9908 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9909 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9910 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9911 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9912 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9913 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9914 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9915 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9916 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9917 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9918 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9919 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9923 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9924 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9925 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9926 echo $ECHO_N "(cached) $ECHO_C" >&6
9928 eval "$as_ac_Header=\$ac_header_preproc"
9930 ac_res
=`eval echo '${'$as_ac_Header'}'`
9931 { echo "$as_me:$LINENO: result: $ac_res" >&5
9932 echo "${ECHO_T}$ac_res" >&6; }
9935 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9936 cat >>confdefs.h
<<_ACEOF
9937 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9945 for ac_func
in getpagesize
9947 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9948 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9949 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9950 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9951 echo $ECHO_N "(cached) $ECHO_C" >&6
9953 cat >conftest.
$ac_ext <<_ACEOF
9956 cat confdefs.h
>>conftest.
$ac_ext
9957 cat >>conftest.
$ac_ext <<_ACEOF
9958 /* end confdefs.h. */
9959 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9960 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9961 #define $ac_func innocuous_$ac_func
9963 /* System header to define __stub macros and hopefully few prototypes,
9964 which can conflict with char $ac_func (); below.
9965 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9966 <limits.h> exists even on freestanding compilers. */
9969 # include <limits.h>
9971 # include <assert.h>
9976 /* Override any GCC internal prototype to avoid an error.
9977 Use char because int might match the return type of a GCC
9978 builtin and then its argument prototype would still apply. */
9983 /* The GNU C library defines this for functions which it implements
9984 to always fail with ENOSYS. Some functions are actually named
9985 something starting with __ and the normal name is an alias. */
9986 #if defined __stub_$ac_func || defined __stub___$ac_func
9998 rm -f conftest.
$ac_objext conftest
$ac_exeext
9999 if { (ac_try
="$ac_link"
10000 case "(($ac_try" in
10001 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10002 *) ac_try_echo=$ac_try;;
10004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10005 (eval "$ac_link") 2>conftest.er1
10007 grep -v '^ *+' conftest.er1 >conftest.err
10009 cat conftest.err >&5
10010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10011 (exit $ac_status); } && {
10012 test -z "$ac_c_werror_flag" ||
10013 test ! -s conftest.err
10014 } && test -s conftest$ac_exeext &&
10015 $as_test_x conftest$ac_exeext; then
10016 eval "$as_ac_var=yes"
10018 echo "$as_me: failed program was:" >&5
10019 sed 's/^/| /' conftest.$ac_ext >&5
10021 eval "$as_ac_var=no"
10024 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10025 conftest$ac_exeext conftest.$ac_ext
10027 ac_res=`eval echo '${'$as_ac_var'}'`
10028 { echo "$as_me:$LINENO: result: $ac_res" >&5
10029 echo "${ECHO_T}$ac_res" >&6; }
10030 if test `eval echo '${'$as_ac_var'}'` = yes; then
10031 cat >>confdefs.h <<_ACEOF
10032 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10038 { echo "$as_me:$LINENO: checking for working mmap" >&5
10039 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10040 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10041 echo $ECHO_N "(cached) $ECHO_C" >&6
10043 if test "$cross_compiling" = yes; then
10044 ac_cv_func_mmap_fixed_mapped=no
10046 cat >conftest.$ac_ext <<_ACEOF
10049 cat confdefs.h >>conftest.$ac_ext
10050 cat >>conftest.$ac_ext <<_ACEOF
10051 /* end confdefs.h. */
10052 $ac_includes_default
10053 /* malloc might have been renamed as rpl_malloc. */
10056 /* Thanks to Mike Haertel and Jim Avera for this test.
10057 Here is a matrix of mmap possibilities:
10058 mmap private not fixed
10059 mmap private fixed at somewhere currently unmapped
10060 mmap private fixed at somewhere already mapped
10061 mmap shared not fixed
10062 mmap shared fixed at somewhere currently unmapped
10063 mmap shared fixed at somewhere already mapped
10064 For private mappings, we should verify that changes cannot be read()
10065 back from the file, nor mmap's back from the file at a different
10066 address. (There have been systems where private was not correctly
10067 implemented like the infamous i386 svr4.0, and systems where the
10068 VM page cache was not coherent with the file system buffer cache
10069 like early versions of FreeBSD and possibly contemporary NetBSD.)
10070 For shared mappings, we should conversely verify that changes get
10071 propagated back to all the places they're supposed to be.
10073 Grep wants private fixed already mapped.
10074 The main things grep needs to know about mmap are:
10075 * does it exist and is it safe to write into the mmap'd area
10076 * how to use it (BSD variants) */
10079 #include <sys/mman.h>
10081 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10085 /* This mess was copied from the GNU getpagesize.h. */
10086 #ifndef HAVE_GETPAGESIZE
10087 /* Assume that all systems that can run configure have sys/param.h. */
10088 # ifndef HAVE_SYS_PARAM_H
10089 # define HAVE_SYS_PARAM_H 1
10092 # ifdef _SC_PAGESIZE
10093 # define getpagesize() sysconf(_SC_PAGESIZE)
10094 # else /* no _SC_PAGESIZE */
10095 # ifdef HAVE_SYS_PARAM_H
10096 # include <sys/param.h>
10097 # ifdef EXEC_PAGESIZE
10098 # define getpagesize() EXEC_PAGESIZE
10099 # else /* no EXEC_PAGESIZE */
10101 # define getpagesize() NBPG * CLSIZE
10104 # endif /* no CLSIZE */
10105 # else /* no NBPG */
10107 # define getpagesize() NBPC
10108 # else /* no NBPC */
10110 # define getpagesize() PAGESIZE
10111 # endif /* PAGESIZE */
10112 # endif /* no NBPC */
10113 # endif /* no NBPG */
10114 # endif /* no EXEC_PAGESIZE */
10115 # else /* no HAVE_SYS_PARAM_H */
10116 # define getpagesize() 8192 /* punt totally */
10117 # endif /* no HAVE_SYS_PARAM_H */
10118 # endif /* no _SC_PAGESIZE */
10120 #endif /* no HAVE_GETPAGESIZE */
10125 char *data, *data2, *data3;
10129 pagesize = getpagesize ();
10131 /* First, make a file with some known garbage in it. */
10132 data = (char *) malloc (pagesize);
10135 for (i = 0; i < pagesize; ++i)
10136 *(data + i) = rand ();
10138 fd = creat ("conftest.mmap", 0600);
10141 if (write (fd, data, pagesize) != pagesize)
10145 /* Next, try to mmap the file at a fixed address which already has
10146 something else allocated at it. If we can, also make sure that
10147 we see the same garbage. */
10148 fd = open ("conftest.mmap", O_RDWR);
10151 data2 = (char *) malloc (2 * pagesize);
10154 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10155 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10156 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10158 for (i = 0; i < pagesize; ++i)
10159 if (*(data + i) != *(data2 + i))
10162 /* Finally, make sure that changes to the mapped area do not
10163 percolate back to the file as seen by read(). (This is a bug on
10164 some variants of i386 svr4.0.) */
10165 for (i = 0; i < pagesize; ++i)
10166 *(data2 + i) = *(data2 + i) + 1;
10167 data3 = (char *) malloc (pagesize);
10170 if (read (fd, data3, pagesize) != pagesize)
10172 for (i = 0; i < pagesize; ++i)
10173 if (*(data + i) != *(data3 + i))
10179 rm -f conftest$ac_exeext
10180 if { (ac_try="$ac_link"
10181 case "(($ac_try" in
10182 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10183 *) ac_try_echo
=$ac_try;;
10185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10186 (eval "$ac_link") 2>&5
10188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10189 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10190 { (case "(($ac_try" in
10191 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10192 *) ac_try_echo=$ac_try;;
10194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10195 (eval "$ac_try") 2>&5
10197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10198 (exit $ac_status); }; }; then
10199 ac_cv_func_mmap_fixed_mapped=yes
10201 echo "$as_me: program exited with status $ac_status" >&5
10202 echo "$as_me: failed program was:" >&5
10203 sed 's/^/| /' conftest.$ac_ext >&5
10205 ( exit $ac_status )
10206 ac_cv_func_mmap_fixed_mapped=no
10208 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10213 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10214 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10215 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10217 cat >>confdefs.h <<\_ACEOF
10218 #define HAVE_MMAP 1
10222 rm -f conftest.mmap
10224 if test $use_mmap_for_buffers = yes; then
10228 LIBS="$libsrc_libs $LIBS"
10231 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10232 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10233 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10234 echo $ECHO_N "(cached) $ECHO_C" >&6
10236 ac_check_lib_save_LIBS=$LIBS
10237 LIBS="-ldnet $LIBS"
10238 cat >conftest.$ac_ext <<_ACEOF
10241 cat confdefs.h >>conftest.$ac_ext
10242 cat >>conftest.$ac_ext <<_ACEOF
10243 /* end confdefs.h. */
10245 /* Override any GCC internal prototype to avoid an error.
10246 Use char because int might match the return type of a GCC
10247 builtin and then its argument prototype would still apply. */
10255 return dnet_ntoa ();
10260 rm -f conftest.$ac_objext conftest$ac_exeext
10261 if { (ac_try="$ac_link"
10262 case "(($ac_try" in
10263 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10264 *) ac_try_echo
=$ac_try;;
10266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10267 (eval "$ac_link") 2>conftest.er1
10269 grep -v '^ *+' conftest.er1
>conftest.err
10271 cat conftest.err
>&5
10272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10273 (exit $ac_status); } && {
10274 test -z "$ac_c_werror_flag" ||
10275 test ! -s conftest.err
10276 } && test -s conftest
$ac_exeext &&
10277 $as_test_x conftest
$ac_exeext; then
10278 ac_cv_lib_dnet_dnet_ntoa
=yes
10280 echo "$as_me: failed program was:" >&5
10281 sed 's/^/| /' conftest.
$ac_ext >&5
10283 ac_cv_lib_dnet_dnet_ntoa
=no
10286 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10287 conftest
$ac_exeext conftest.
$ac_ext
10288 LIBS
=$ac_check_lib_save_LIBS
10290 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10291 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10292 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10293 cat >>confdefs.h
<<_ACEOF
10294 #define HAVE_LIBDNET 1
10297 LIBS
="-ldnet $LIBS"
10302 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10303 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10304 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10305 echo $ECHO_N "(cached) $ECHO_C" >&6
10307 ac_check_lib_save_LIBS
=$LIBS
10308 LIBS
="-lXbsd $LIBS"
10309 cat >conftest.
$ac_ext <<_ACEOF
10312 cat confdefs.h
>>conftest.
$ac_ext
10313 cat >>conftest.
$ac_ext <<_ACEOF
10314 /* end confdefs.h. */
10325 rm -f conftest.
$ac_objext conftest
$ac_exeext
10326 if { (ac_try
="$ac_link"
10327 case "(($ac_try" in
10328 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10329 *) ac_try_echo=$ac_try;;
10331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10332 (eval "$ac_link") 2>conftest.er1
10334 grep -v '^ *+' conftest.er1 >conftest.err
10336 cat conftest.err >&5
10337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338 (exit $ac_status); } && {
10339 test -z "$ac_c_werror_flag" ||
10340 test ! -s conftest.err
10341 } && test -s conftest$ac_exeext &&
10342 $as_test_x conftest$ac_exeext; then
10343 ac_cv_lib_Xbsd_main=yes
10345 echo "$as_me: failed program was:" >&5
10346 sed 's/^/| /' conftest.$ac_ext >&5
10348 ac_cv_lib_Xbsd_main=no
10351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10352 conftest$ac_exeext conftest.$ac_ext
10353 LIBS=$ac_check_lib_save_LIBS
10355 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10356 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10357 if test $ac_cv_lib_Xbsd_main = yes; then
10358 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10363 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10364 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10365 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10366 echo $ECHO_N "(cached) $ECHO_C" >&6
10368 ac_check_lib_save_LIBS=$LIBS
10369 LIBS="-lpthreads $LIBS"
10370 cat >conftest.$ac_ext <<_ACEOF
10373 cat confdefs.h >>conftest.$ac_ext
10374 cat >>conftest.$ac_ext <<_ACEOF
10375 /* end confdefs.h. */
10377 /* Override any GCC internal prototype to avoid an error.
10378 Use char because int might match the return type of a GCC
10379 builtin and then its argument prototype would still apply. */
10387 return cma_open ();
10392 rm -f conftest.$ac_objext conftest$ac_exeext
10393 if { (ac_try="$ac_link"
10394 case "(($ac_try" in
10395 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10396 *) ac_try_echo
=$ac_try;;
10398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10399 (eval "$ac_link") 2>conftest.er1
10401 grep -v '^ *+' conftest.er1
>conftest.err
10403 cat conftest.err
>&5
10404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10405 (exit $ac_status); } && {
10406 test -z "$ac_c_werror_flag" ||
10407 test ! -s conftest.err
10408 } && test -s conftest
$ac_exeext &&
10409 $as_test_x conftest
$ac_exeext; then
10410 ac_cv_lib_pthreads_cma_open
=yes
10412 echo "$as_me: failed program was:" >&5
10413 sed 's/^/| /' conftest.
$ac_ext >&5
10415 ac_cv_lib_pthreads_cma_open
=no
10418 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10419 conftest
$ac_exeext conftest.
$ac_ext
10420 LIBS
=$ac_check_lib_save_LIBS
10422 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10423 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10424 if test $ac_cv_lib_pthreads_cma_open = yes; then
10425 cat >>confdefs.h
<<_ACEOF
10426 #define HAVE_LIBPTHREADS 1
10429 LIBS
="-lpthreads $LIBS"
10434 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10435 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10436 if test -d /usr
/X386
/include
; then
10438 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10442 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10443 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10448 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10449 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10450 if test "${gdb_cv_bigtoc+set}" = set; then
10451 echo $ECHO_N "(cached) $ECHO_C" >&6
10455 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10456 *) gdb_cv_bigtoc
=-bbigtoc ;;
10459 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10460 cat >conftest.
$ac_ext <<_ACEOF
10463 cat confdefs.h
>>conftest.
$ac_ext
10464 cat >>conftest.
$ac_ext <<_ACEOF
10465 /* end confdefs.h. */
10475 rm -f conftest.
$ac_objext conftest
$ac_exeext
10476 if { (ac_try
="$ac_link"
10477 case "(($ac_try" in
10478 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10479 *) ac_try_echo=$ac_try;;
10481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10482 (eval "$ac_link") 2>conftest.er1
10484 grep -v '^ *+' conftest.er1 >conftest.err
10486 cat conftest.err >&5
10487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10488 (exit $ac_status); } && {
10489 test -z "$ac_c_werror_flag" ||
10490 test ! -s conftest.err
10491 } && test -s conftest$ac_exeext &&
10492 $as_test_x conftest$ac_exeext; then
10495 echo "$as_me: failed program was:" >&5
10496 sed 's/^/| /' conftest.$ac_ext >&5
10501 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10502 conftest$ac_exeext conftest.$ac_ext
10505 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10506 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10510 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10511 # used for the tests that follow. We set them back to REAL_CFLAGS and
10512 # REAL_CPPFLAGS later on.
10514 REAL_CPPFLAGS="$CPPFLAGS"
10516 if test "${HAVE_X11}" = "yes"; then
10517 DEFS="$C_SWITCH_X_SITE $DEFS"
10518 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10520 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10521 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10523 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10524 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10525 # but it's more convenient here to set LD_RUN_PATH
10526 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10527 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10528 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10532 if test "${opsys}" = "gnu-linux"; then
10533 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10534 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10535 cat >conftest.$ac_ext <<_ACEOF
10538 cat confdefs.h >>conftest.$ac_ext
10539 cat >>conftest.$ac_ext <<_ACEOF
10540 /* end confdefs.h. */
10545 XOpenDisplay ("foo");
10550 rm -f conftest.$ac_objext conftest$ac_exeext
10551 if { (ac_try="$ac_link"
10552 case "(($ac_try" in
10553 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10554 *) ac_try_echo
=$ac_try;;
10556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10557 (eval "$ac_link") 2>conftest.er1
10559 grep -v '^ *+' conftest.er1
>conftest.err
10561 cat conftest.err
>&5
10562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10563 (exit $ac_status); } && {
10564 test -z "$ac_c_werror_flag" ||
10565 test ! -s conftest.err
10566 } && test -s conftest
$ac_exeext &&
10567 $as_test_x conftest
$ac_exeext; then
10568 xlinux_first_failure
=no
10570 echo "$as_me: failed program was:" >&5
10571 sed 's/^/| /' conftest.
$ac_ext >&5
10573 xlinux_first_failure
=yes
10576 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10577 conftest
$ac_exeext conftest.
$ac_ext
10578 if test "${xlinux_first_failure}" = "yes"; then
10579 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10580 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10581 OLD_CPPFLAGS
="$CPPFLAGS"
10583 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10584 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10585 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10586 LIBS
="$LIBS -b i486-linuxaout"
10587 cat >conftest.
$ac_ext <<_ACEOF
10590 cat confdefs.h
>>conftest.
$ac_ext
10591 cat >>conftest.
$ac_ext <<_ACEOF
10592 /* end confdefs.h. */
10597 XOpenDisplay ("foo");
10602 rm -f conftest.
$ac_objext conftest
$ac_exeext
10603 if { (ac_try
="$ac_link"
10604 case "(($ac_try" in
10605 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10606 *) ac_try_echo=$ac_try;;
10608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10609 (eval "$ac_link") 2>conftest.er1
10611 grep -v '^ *+' conftest.er1 >conftest.err
10613 cat conftest.err >&5
10614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615 (exit $ac_status); } && {
10616 test -z "$ac_c_werror_flag" ||
10617 test ! -s conftest.err
10618 } && test -s conftest$ac_exeext &&
10619 $as_test_x conftest$ac_exeext; then
10620 xlinux_second_failure=no
10622 echo "$as_me: failed program was:" >&5
10623 sed 's/^/| /' conftest.$ac_ext >&5
10625 xlinux_second_failure=yes
10628 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10629 conftest$ac_exeext conftest.$ac_ext
10630 if test "${xlinux_second_failure}" = "yes"; then
10631 # If we get the same failure with -b, there is no use adding -b.
10632 # So take it out. This plays safe.
10633 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10634 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10635 CPPFLAGS="$OLD_CPPFLAGS"
10637 { echo "$as_me:$LINENO: result: no" >&5
10638 echo "${ECHO_T}no" >&6; }
10640 { echo "$as_me:$LINENO: result: yes" >&5
10641 echo "${ECHO_T}yes" >&6; }
10644 { echo "$as_me:$LINENO: result: no" >&5
10645 echo "${ECHO_T}no" >&6; }
10649 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10650 # header files included from there.
10651 { echo "$as_me:$LINENO: checking for Xkb" >&5
10652 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10653 cat >conftest.$ac_ext <<_ACEOF
10656 cat confdefs.h >>conftest.$ac_ext
10657 cat >>conftest.$ac_ext <<_ACEOF
10658 /* end confdefs.h. */
10659 #include <X11/Xlib.h>
10660 #include <X11/XKBlib.h>
10664 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10669 rm -f conftest.$ac_objext conftest$ac_exeext
10670 if { (ac_try="$ac_link"
10671 case "(($ac_try" in
10672 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10673 *) ac_try_echo
=$ac_try;;
10675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10676 (eval "$ac_link") 2>conftest.er1
10678 grep -v '^ *+' conftest.er1
>conftest.err
10680 cat conftest.err
>&5
10681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682 (exit $ac_status); } && {
10683 test -z "$ac_c_werror_flag" ||
10684 test ! -s conftest.err
10685 } && test -s conftest
$ac_exeext &&
10686 $as_test_x conftest
$ac_exeext; then
10689 echo "$as_me: failed program was:" >&5
10690 sed 's/^/| /' conftest.
$ac_ext >&5
10695 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10696 conftest
$ac_exeext conftest.
$ac_ext
10697 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10698 echo "${ECHO_T}$emacs_xkb" >&6; }
10699 if test $emacs_xkb = yes; then
10701 cat >>confdefs.h
<<\_ACEOF
10702 #define HAVE_XKBGETKEYBOARD 1
10711 for ac_func
in XrmSetDatabase XScreenResourceString \
10712 XScreenNumberOfScreen XSetWMProtocols
10714 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10715 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10716 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10717 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10718 echo $ECHO_N "(cached) $ECHO_C" >&6
10720 cat >conftest.
$ac_ext <<_ACEOF
10723 cat confdefs.h
>>conftest.
$ac_ext
10724 cat >>conftest.
$ac_ext <<_ACEOF
10725 /* end confdefs.h. */
10726 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10727 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10728 #define $ac_func innocuous_$ac_func
10730 /* System header to define __stub macros and hopefully few prototypes,
10731 which can conflict with char $ac_func (); below.
10732 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10733 <limits.h> exists even on freestanding compilers. */
10736 # include <limits.h>
10738 # include <assert.h>
10743 /* Override any GCC internal prototype to avoid an error.
10744 Use char because int might match the return type of a GCC
10745 builtin and then its argument prototype would still apply. */
10750 /* The GNU C library defines this for functions which it implements
10751 to always fail with ENOSYS. Some functions are actually named
10752 something starting with __ and the normal name is an alias. */
10753 #if defined __stub_$ac_func || defined __stub___$ac_func
10760 return $ac_func ();
10765 rm -f conftest.
$ac_objext conftest
$ac_exeext
10766 if { (ac_try
="$ac_link"
10767 case "(($ac_try" in
10768 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10769 *) ac_try_echo=$ac_try;;
10771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10772 (eval "$ac_link") 2>conftest.er1
10774 grep -v '^ *+' conftest.er1 >conftest.err
10776 cat conftest.err >&5
10777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778 (exit $ac_status); } && {
10779 test -z "$ac_c_werror_flag" ||
10780 test ! -s conftest.err
10781 } && test -s conftest$ac_exeext &&
10782 $as_test_x conftest$ac_exeext; then
10783 eval "$as_ac_var=yes"
10785 echo "$as_me: failed program was:" >&5
10786 sed 's/^/| /' conftest.$ac_ext >&5
10788 eval "$as_ac_var=no"
10791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10792 conftest$ac_exeext conftest.$ac_ext
10794 ac_res=`eval echo '${'$as_ac_var'}'`
10795 { echo "$as_me:$LINENO: result: $ac_res" >&5
10796 echo "${ECHO_T}$ac_res" >&6; }
10797 if test `eval echo '${'$as_ac_var'}'` = yes; then
10798 cat >>confdefs.h <<_ACEOF
10799 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10807 if test "${window_system}" = "x11"; then
10808 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10809 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10810 if test "${emacs_cv_x11_version_6+set}" = set; then
10811 echo $ECHO_N "(cached) $ECHO_C" >&6
10813 cat >conftest.$ac_ext <<_ACEOF
10816 cat confdefs.h >>conftest.$ac_ext
10817 cat >>conftest.$ac_ext <<_ACEOF
10818 /* end confdefs.h. */
10819 #include <X11/Xlib.h>
10823 #if XlibSpecificationRelease < 6
10831 rm -f conftest.$ac_objext conftest$ac_exeext
10832 if { (ac_try="$ac_link"
10833 case "(($ac_try" in
10834 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10835 *) ac_try_echo
=$ac_try;;
10837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10838 (eval "$ac_link") 2>conftest.er1
10840 grep -v '^ *+' conftest.er1
>conftest.err
10842 cat conftest.err
>&5
10843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10844 (exit $ac_status); } && {
10845 test -z "$ac_c_werror_flag" ||
10846 test ! -s conftest.err
10847 } && test -s conftest
$ac_exeext &&
10848 $as_test_x conftest
$ac_exeext; then
10849 emacs_cv_x11_version_6
=yes
10851 echo "$as_me: failed program was:" >&5
10852 sed 's/^/| /' conftest.
$ac_ext >&5
10854 emacs_cv_x11_version_6
=no
10857 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10858 conftest
$ac_exeext conftest.
$ac_ext
10861 if test $emacs_cv_x11_version_6 = yes; then
10862 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10863 echo "${ECHO_T}6 or newer" >&6; }
10865 cat >>confdefs.h
<<\_ACEOF
10866 #define HAVE_X11R6 1
10870 { echo "$as_me:$LINENO: result: before 6" >&5
10871 echo "${ECHO_T}before 6" >&6; }
10875 if test "${window_system}" = "x11"; then
10876 { echo "$as_me:$LINENO: checking X11 version 5" >&5
10877 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6; }
10878 if test "${emacs_cv_x11_version_5+set}" = set; then
10879 echo $ECHO_N "(cached) $ECHO_C" >&6
10881 cat >conftest.
$ac_ext <<_ACEOF
10884 cat confdefs.h
>>conftest.
$ac_ext
10885 cat >>conftest.
$ac_ext <<_ACEOF
10886 /* end confdefs.h. */
10887 #include <X11/Xlib.h>
10891 #if XlibSpecificationRelease < 5
10899 rm -f conftest.
$ac_objext conftest
$ac_exeext
10900 if { (ac_try
="$ac_link"
10901 case "(($ac_try" in
10902 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10903 *) ac_try_echo=$ac_try;;
10905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10906 (eval "$ac_link") 2>conftest.er1
10908 grep -v '^ *+' conftest.er1 >conftest.err
10910 cat conftest.err >&5
10911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912 (exit $ac_status); } && {
10913 test -z "$ac_c_werror_flag" ||
10914 test ! -s conftest.err
10915 } && test -s conftest$ac_exeext &&
10916 $as_test_x conftest$ac_exeext; then
10917 emacs_cv_x11_version_5=yes
10919 echo "$as_me: failed program was:" >&5
10920 sed 's/^/| /' conftest.$ac_ext >&5
10922 emacs_cv_x11_version_5=no
10925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10926 conftest$ac_exeext conftest.$ac_ext
10929 if test $emacs_cv_x11_version_5 = yes; then
10930 { echo "$as_me:$LINENO: result: 5 or newer" >&5
10931 echo "${ECHO_T}5 or newer" >&6; }
10934 cat >>confdefs.h <<\_ACEOF
10935 #define HAVE_X11R5 1
10940 { echo "$as_me:$LINENO: result: before 5" >&5
10941 echo "${ECHO_T}before 5" >&6; }
10946 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
10949 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
10950 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10951 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10952 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10953 { (exit 1); exit 1; }; };
10957 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10959 if test "X${with_pkg_config_prog}" != X; then
10960 PKG_CONFIG="${with_pkg_config_prog}"
10965 if test -z "$PKG_CONFIG"; then
10966 # Extract the first word of "pkg-config", so it can be a program name with args.
10967 set dummy pkg-config; ac_word=$2
10968 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10970 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10971 echo $ECHO_N "(cached) $ECHO_C" >&6
10973 case $PKG_CONFIG in
10975 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10979 for as_dir in $PATH
10982 test -z "$as_dir" && as_dir=.
10983 for ac_exec_ext in '' $ac_executable_extensions; do
10984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10985 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10993 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10997 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10998 if test -n "$PKG_CONFIG"; then
10999 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11000 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11002 { echo "$as_me:$LINENO: result: no" >&5
11003 echo "${ECHO_T}no" >&6; }
11009 if test "$PKG_CONFIG" = "no" ; then
11010 { { echo "$as_me:$LINENO: error:
11011 *** 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
11012 echo "$as_me: error:
11013 *** 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;}
11014 { (exit 1); exit 1; }; }
11016 PKG_CONFIG_MIN_VERSION=0.9.0
11017 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11018 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11019 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
11021 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11022 { echo "$as_me:$LINENO: result: yes" >&5
11023 echo "${ECHO_T}yes" >&6; }
11026 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11027 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
11028 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"`
11029 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11030 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11032 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11033 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11034 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"`
11035 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11036 echo "${ECHO_T}$GTK_LIBS" >&6; }
11038 { echo "$as_me:$LINENO: result: no" >&5
11039 echo "${ECHO_T}no" >&6; }
11042 ## If we have a custom action on failure, don't print errors, but
11043 ## do set a variable so people can do so.
11044 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11045 echo $GTK_PKG_ERRORS
11051 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11052 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11056 if test $succeeded = yes; then
11059 { { 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
11060 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;}
11061 { (exit 1); exit 1; }; }
11066 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11067 CFLAGS="$CFLAGS $GTK_CFLAGS"
11068 LIBS="$GTK_LIBS $LIBS"
11071 for ac_func in gtk_main
11073 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11074 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11075 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11076 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11077 echo $ECHO_N "(cached) $ECHO_C" >&6
11079 cat >conftest.$ac_ext <<_ACEOF
11082 cat confdefs.h >>conftest.$ac_ext
11083 cat >>conftest.$ac_ext <<_ACEOF
11084 /* end confdefs.h. */
11085 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11086 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11087 #define $ac_func innocuous_$ac_func
11089 /* System header to define __stub macros and hopefully few prototypes,
11090 which can conflict with char $ac_func (); below.
11091 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11092 <limits.h> exists even on freestanding compilers. */
11095 # include <limits.h>
11097 # include <assert.h>
11102 /* Override any GCC internal prototype to avoid an error.
11103 Use char because int might match the return type of a GCC
11104 builtin and then its argument prototype would still apply. */
11109 /* The GNU C library defines this for functions which it implements
11110 to always fail with ENOSYS. Some functions are actually named
11111 something starting with __ and the normal name is an alias. */
11112 #if defined __stub_$ac_func || defined __stub___$ac_func
11119 return $ac_func ();
11124 rm -f conftest.$ac_objext conftest$ac_exeext
11125 if { (ac_try="$ac_link"
11126 case "(($ac_try" in
11127 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11128 *) ac_try_echo
=$ac_try;;
11130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11131 (eval "$ac_link") 2>conftest.er1
11133 grep -v '^ *+' conftest.er1
>conftest.err
11135 cat conftest.err
>&5
11136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11137 (exit $ac_status); } && {
11138 test -z "$ac_c_werror_flag" ||
11139 test ! -s conftest.err
11140 } && test -s conftest
$ac_exeext &&
11141 $as_test_x conftest
$ac_exeext; then
11142 eval "$as_ac_var=yes"
11144 echo "$as_me: failed program was:" >&5
11145 sed 's/^/| /' conftest.
$ac_ext >&5
11147 eval "$as_ac_var=no"
11150 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11151 conftest
$ac_exeext conftest.
$ac_ext
11153 ac_res
=`eval echo '${'$as_ac_var'}'`
11154 { echo "$as_me:$LINENO: result: $ac_res" >&5
11155 echo "${ECHO_T}$ac_res" >&6; }
11156 if test `eval echo '${'$as_ac_var'}'` = yes; then
11157 cat >>confdefs.h
<<_ACEOF
11158 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11164 if test "${GTK_COMPILES}" != "yes"; then
11165 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11166 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11167 { (exit 1); exit 1; }; };
11172 cat >>confdefs.h
<<\_ACEOF
11178 if test "$with_toolkit_scroll_bars" != no
; then
11179 with_toolkit_scroll_bars
=yes
11182 HAVE_GTK_MULTIDISPLAY
=no
11184 for ac_func
in gdk_display_open
11186 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11187 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11188 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11189 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11190 echo $ECHO_N "(cached) $ECHO_C" >&6
11192 cat >conftest.
$ac_ext <<_ACEOF
11195 cat confdefs.h
>>conftest.
$ac_ext
11196 cat >>conftest.
$ac_ext <<_ACEOF
11197 /* end confdefs.h. */
11198 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11199 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11200 #define $ac_func innocuous_$ac_func
11202 /* System header to define __stub macros and hopefully few prototypes,
11203 which can conflict with char $ac_func (); below.
11204 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11205 <limits.h> exists even on freestanding compilers. */
11208 # include <limits.h>
11210 # include <assert.h>
11215 /* Override any GCC internal prototype to avoid an error.
11216 Use char because int might match the return type of a GCC
11217 builtin and then its argument prototype would still apply. */
11222 /* The GNU C library defines this for functions which it implements
11223 to always fail with ENOSYS. Some functions are actually named
11224 something starting with __ and the normal name is an alias. */
11225 #if defined __stub_$ac_func || defined __stub___$ac_func
11232 return $ac_func ();
11237 rm -f conftest.
$ac_objext conftest
$ac_exeext
11238 if { (ac_try
="$ac_link"
11239 case "(($ac_try" in
11240 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11241 *) ac_try_echo=$ac_try;;
11243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11244 (eval "$ac_link") 2>conftest.er1
11246 grep -v '^ *+' conftest.er1 >conftest.err
11248 cat conftest.err >&5
11249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11250 (exit $ac_status); } && {
11251 test -z "$ac_c_werror_flag" ||
11252 test ! -s conftest.err
11253 } && test -s conftest$ac_exeext &&
11254 $as_test_x conftest$ac_exeext; then
11255 eval "$as_ac_var=yes"
11257 echo "$as_me: failed program was:" >&5
11258 sed 's/^/| /' conftest.$ac_ext >&5
11260 eval "$as_ac_var=no"
11263 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11264 conftest$ac_exeext conftest.$ac_ext
11266 ac_res=`eval echo '${'$as_ac_var'}'`
11267 { echo "$as_me:$LINENO: result: $ac_res" >&5
11268 echo "${ECHO_T}$ac_res" >&6; }
11269 if test `eval echo '${'$as_ac_var'}'` = yes; then
11270 cat >>confdefs.h <<_ACEOF
11271 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11273 HAVE_GTK_MULTIDISPLAY=yes
11277 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11279 cat >>confdefs.h <<\_ACEOF
11280 #define HAVE_GTK_MULTIDISPLAY 1
11284 HAVE_GTK_FILE_SELECTION=no
11286 for ac_func in gtk_file_selection_new
11288 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11289 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11290 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11291 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11292 echo $ECHO_N "(cached) $ECHO_C" >&6
11294 cat >conftest.$ac_ext <<_ACEOF
11297 cat confdefs.h >>conftest.$ac_ext
11298 cat >>conftest.$ac_ext <<_ACEOF
11299 /* end confdefs.h. */
11300 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11301 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11302 #define $ac_func innocuous_$ac_func
11304 /* System header to define __stub macros and hopefully few prototypes,
11305 which can conflict with char $ac_func (); below.
11306 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11307 <limits.h> exists even on freestanding compilers. */
11310 # include <limits.h>
11312 # include <assert.h>
11317 /* Override any GCC internal prototype to avoid an error.
11318 Use char because int might match the return type of a GCC
11319 builtin and then its argument prototype would still apply. */
11324 /* The GNU C library defines this for functions which it implements
11325 to always fail with ENOSYS. Some functions are actually named
11326 something starting with __ and the normal name is an alias. */
11327 #if defined __stub_$ac_func || defined __stub___$ac_func
11334 return $ac_func ();
11339 rm -f conftest.$ac_objext conftest$ac_exeext
11340 if { (ac_try="$ac_link"
11341 case "(($ac_try" in
11342 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11343 *) ac_try_echo
=$ac_try;;
11345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11346 (eval "$ac_link") 2>conftest.er1
11348 grep -v '^ *+' conftest.er1
>conftest.err
11350 cat conftest.err
>&5
11351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11352 (exit $ac_status); } && {
11353 test -z "$ac_c_werror_flag" ||
11354 test ! -s conftest.err
11355 } && test -s conftest
$ac_exeext &&
11356 $as_test_x conftest
$ac_exeext; then
11357 eval "$as_ac_var=yes"
11359 echo "$as_me: failed program was:" >&5
11360 sed 's/^/| /' conftest.
$ac_ext >&5
11362 eval "$as_ac_var=no"
11365 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11366 conftest
$ac_exeext conftest.
$ac_ext
11368 ac_res
=`eval echo '${'$as_ac_var'}'`
11369 { echo "$as_me:$LINENO: result: $ac_res" >&5
11370 echo "${ECHO_T}$ac_res" >&6; }
11371 if test `eval echo '${'$as_ac_var'}'` = yes; then
11372 cat >>confdefs.h
<<_ACEOF
11373 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11375 HAVE_GTK_FILE_SELECTION
=yes
11380 HAVE_GTK_FILE_CHOOSER
=no
11382 for ac_func
in gtk_file_chooser_dialog_new
11384 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11385 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11386 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11387 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11388 echo $ECHO_N "(cached) $ECHO_C" >&6
11390 cat >conftest.
$ac_ext <<_ACEOF
11393 cat confdefs.h
>>conftest.
$ac_ext
11394 cat >>conftest.
$ac_ext <<_ACEOF
11395 /* end confdefs.h. */
11396 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11397 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11398 #define $ac_func innocuous_$ac_func
11400 /* System header to define __stub macros and hopefully few prototypes,
11401 which can conflict with char $ac_func (); below.
11402 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11403 <limits.h> exists even on freestanding compilers. */
11406 # include <limits.h>
11408 # include <assert.h>
11413 /* Override any GCC internal prototype to avoid an error.
11414 Use char because int might match the return type of a GCC
11415 builtin and then its argument prototype would still apply. */
11420 /* The GNU C library defines this for functions which it implements
11421 to always fail with ENOSYS. Some functions are actually named
11422 something starting with __ and the normal name is an alias. */
11423 #if defined __stub_$ac_func || defined __stub___$ac_func
11430 return $ac_func ();
11435 rm -f conftest.
$ac_objext conftest
$ac_exeext
11436 if { (ac_try
="$ac_link"
11437 case "(($ac_try" in
11438 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11439 *) ac_try_echo=$ac_try;;
11441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11442 (eval "$ac_link") 2>conftest.er1
11444 grep -v '^ *+' conftest.er1 >conftest.err
11446 cat conftest.err >&5
11447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11448 (exit $ac_status); } && {
11449 test -z "$ac_c_werror_flag" ||
11450 test ! -s conftest.err
11451 } && test -s conftest$ac_exeext &&
11452 $as_test_x conftest$ac_exeext; then
11453 eval "$as_ac_var=yes"
11455 echo "$as_me: failed program was:" >&5
11456 sed 's/^/| /' conftest.$ac_ext >&5
11458 eval "$as_ac_var=no"
11461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11462 conftest$ac_exeext conftest.$ac_ext
11464 ac_res=`eval echo '${'$as_ac_var'}'`
11465 { echo "$as_me:$LINENO: result: $ac_res" >&5
11466 echo "${ECHO_T}$ac_res" >&6; }
11467 if test `eval echo '${'$as_ac_var'}'` = yes; then
11468 cat >>confdefs.h <<_ACEOF
11469 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11471 HAVE_GTK_FILE_CHOOSER=yes
11476 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11477 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11479 cat >>confdefs.h <<\_ACEOF
11480 #define HAVE_GTK_FILE_BOTH 1
11485 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11486 HAVE_GTK_AND_PTHREAD=no
11488 for ac_header in pthread.h
11490 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
11491 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11492 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11495 echo $ECHO_N "(cached) $ECHO_C" >&6
11497 ac_res=`eval echo '${'$as_ac_Header'}'`
11498 { echo "$as_me:$LINENO: result: $ac_res" >&5
11499 echo "${ECHO_T}$ac_res" >&6; }
11501 # Is the header compilable?
11502 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11503 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11504 cat >conftest.$ac_ext <<_ACEOF
11507 cat confdefs.h >>conftest.$ac_ext
11508 cat >>conftest.$ac_ext <<_ACEOF
11509 /* end confdefs.h. */
11510 $ac_includes_default
11511 #include <$ac_header>
11513 rm -f conftest.$ac_objext
11514 if { (ac_try="$ac_compile"
11515 case "(($ac_try" in
11516 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11517 *) ac_try_echo
=$ac_try;;
11519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11520 (eval "$ac_compile") 2>conftest.er1
11522 grep -v '^ *+' conftest.er1
>conftest.err
11524 cat conftest.err
>&5
11525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526 (exit $ac_status); } && {
11527 test -z "$ac_c_werror_flag" ||
11528 test ! -s conftest.err
11529 } && test -s conftest.
$ac_objext; then
11530 ac_header_compiler
=yes
11532 echo "$as_me: failed program was:" >&5
11533 sed 's/^/| /' conftest.
$ac_ext >&5
11535 ac_header_compiler
=no
11538 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11539 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11540 echo "${ECHO_T}$ac_header_compiler" >&6; }
11542 # Is the header present?
11543 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11544 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11545 cat >conftest.
$ac_ext <<_ACEOF
11548 cat confdefs.h
>>conftest.
$ac_ext
11549 cat >>conftest.
$ac_ext <<_ACEOF
11550 /* end confdefs.h. */
11551 #include <$ac_header>
11553 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11554 case "(($ac_try" in
11555 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11556 *) ac_try_echo=$ac_try;;
11558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11559 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11561 grep -v '^ *+' conftest.er1 >conftest.err
11563 cat conftest.err >&5
11564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565 (exit $ac_status); } >/dev/null && {
11566 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11567 test ! -s conftest.err
11569 ac_header_preproc=yes
11571 echo "$as_me: failed program was:" >&5
11572 sed 's/^/| /' conftest.$ac_ext >&5
11574 ac_header_preproc=no
11577 rm -f conftest.err conftest.$ac_ext
11578 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11579 echo "${ECHO_T}$ac_header_preproc" >&6; }
11581 # So? What about this header?
11582 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11584 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11585 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11586 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11587 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11588 ac_header_preproc=yes
11591 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11592 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11593 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11594 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11595 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11596 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11597 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11598 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11599 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11600 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11601 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11602 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11606 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11607 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11608 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11609 echo $ECHO_N "(cached) $ECHO_C" >&6
11611 eval "$as_ac_Header=\$ac_header_preproc"
11613 ac_res=`eval echo '${'$as_ac_Header'}'`
11614 { echo "$as_me:$LINENO: result: $ac_res" >&5
11615 echo "${ECHO_T}$ac_res" >&6; }
11618 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11619 cat >>confdefs.h <<_ACEOF
11620 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11627 if test "$ac_cv_header_pthread_h"; then
11628 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11629 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11630 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11631 echo $ECHO_N "(cached) $ECHO_C" >&6
11633 ac_check_lib_save_LIBS=$LIBS
11634 LIBS="-lpthread $LIBS"
11635 cat >conftest.$ac_ext <<_ACEOF
11638 cat confdefs.h >>conftest.$ac_ext
11639 cat >>conftest.$ac_ext <<_ACEOF
11640 /* end confdefs.h. */
11642 /* Override any GCC internal prototype to avoid an error.
11643 Use char because int might match the return type of a GCC
11644 builtin and then its argument prototype would still apply. */
11648 char pthread_self ();
11652 return pthread_self ();
11657 rm -f conftest.$ac_objext conftest$ac_exeext
11658 if { (ac_try="$ac_link"
11659 case "(($ac_try" in
11660 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11661 *) ac_try_echo
=$ac_try;;
11663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11664 (eval "$ac_link") 2>conftest.er1
11666 grep -v '^ *+' conftest.er1
>conftest.err
11668 cat conftest.err
>&5
11669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11670 (exit $ac_status); } && {
11671 test -z "$ac_c_werror_flag" ||
11672 test ! -s conftest.err
11673 } && test -s conftest
$ac_exeext &&
11674 $as_test_x conftest
$ac_exeext; then
11675 ac_cv_lib_pthread_pthread_self
=yes
11677 echo "$as_me: failed program was:" >&5
11678 sed 's/^/| /' conftest.
$ac_ext >&5
11680 ac_cv_lib_pthread_pthread_self
=no
11683 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11684 conftest
$ac_exeext conftest.
$ac_ext
11685 LIBS
=$ac_check_lib_save_LIBS
11687 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11688 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11689 if test $ac_cv_lib_pthread_pthread_self = yes; then
11690 HAVE_GTK_AND_PTHREAD
=yes
11694 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11695 GTK_LIBS
="$GTK_LIBS -lpthread"
11697 cat >>confdefs.h
<<\_ACEOF
11698 #define HAVE_GTK_AND_PTHREAD 1
11705 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
11706 if test x
"${HAVE_X11R5}" = xyes
; then
11707 { echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
11708 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6; }
11709 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
11710 echo $ECHO_N "(cached) $ECHO_C" >&6
11712 cat >conftest.
$ac_ext <<_ACEOF
11715 cat confdefs.h
>>conftest.
$ac_ext
11716 cat >>conftest.
$ac_ext <<_ACEOF
11717 /* end confdefs.h. */
11719 #include <X11/Intrinsic.h>
11720 #include <X11/Xaw/Simple.h>
11729 rm -f conftest.
$ac_objext conftest
$ac_exeext
11730 if { (ac_try
="$ac_link"
11731 case "(($ac_try" in
11732 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11733 *) ac_try_echo=$ac_try;;
11735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11736 (eval "$ac_link") 2>conftest.er1
11738 grep -v '^ *+' conftest.er1 >conftest.err
11740 cat conftest.err >&5
11741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11742 (exit $ac_status); } && {
11743 test -z "$ac_c_werror_flag" ||
11744 test ! -s conftest.err
11745 } && test -s conftest$ac_exeext &&
11746 $as_test_x conftest$ac_exeext; then
11747 emacs_cv_x11_version_5_with_xaw=yes
11749 echo "$as_me: failed program was:" >&5
11750 sed 's/^/| /' conftest.$ac_ext >&5
11752 emacs_cv_x11_version_5_with_xaw=no
11755 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11756 conftest$ac_exeext conftest.$ac_ext
11759 if test $emacs_cv_x11_version_5_with_xaw = yes; then
11760 { echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
11761 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6; }
11762 USE_X_TOOLKIT=LUCID
11764 { echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
11765 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6; }
11773 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11775 if test "${USE_X_TOOLKIT}" != "none"; then
11776 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11777 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
11778 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11779 echo $ECHO_N "(cached) $ECHO_C" >&6
11781 cat >conftest.$ac_ext <<_ACEOF
11784 cat confdefs.h >>conftest.$ac_ext
11785 cat >>conftest.$ac_ext <<_ACEOF
11786 /* end confdefs.h. */
11787 #include <X11/Intrinsic.h>
11791 #if XtSpecificationRelease < 6
11799 rm -f conftest.$ac_objext conftest$ac_exeext
11800 if { (ac_try="$ac_link"
11801 case "(($ac_try" in
11802 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11803 *) ac_try_echo
=$ac_try;;
11805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11806 (eval "$ac_link") 2>conftest.er1
11808 grep -v '^ *+' conftest.er1
>conftest.err
11810 cat conftest.err
>&5
11811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812 (exit $ac_status); } && {
11813 test -z "$ac_c_werror_flag" ||
11814 test ! -s conftest.err
11815 } && test -s conftest
$ac_exeext &&
11816 $as_test_x conftest
$ac_exeext; then
11817 emacs_cv_x11_toolkit_version_6
=yes
11819 echo "$as_me: failed program was:" >&5
11820 sed 's/^/| /' conftest.
$ac_ext >&5
11822 emacs_cv_x11_toolkit_version_6
=no
11825 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11826 conftest
$ac_exeext conftest.
$ac_ext
11829 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
11830 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11831 { echo "$as_me:$LINENO: result: 6 or newer" >&5
11832 echo "${ECHO_T}6 or newer" >&6; }
11834 cat >>confdefs.h
<<\_ACEOF
11835 #define HAVE_X11XTR6 1
11839 { echo "$as_me:$LINENO: result: before 6" >&5
11840 echo "${ECHO_T}before 6" >&6; }
11844 if test x
$HAVE_X11XTR6 = xyes
; then
11845 LIBS
="-lXt -lSM -lICE $LIBS"
11850 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
11851 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
11852 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
11853 echo $ECHO_N "(cached) $ECHO_C" >&6
11855 ac_check_lib_save_LIBS
=$LIBS
11857 cat >conftest.
$ac_ext <<_ACEOF
11860 cat confdefs.h
>>conftest.
$ac_ext
11861 cat >>conftest.
$ac_ext <<_ACEOF
11862 /* end confdefs.h. */
11864 /* Override any GCC internal prototype to avoid an error.
11865 Use char because int might match the return type of a GCC
11866 builtin and then its argument prototype would still apply. */
11870 char XmuConvertStandardSelection ();
11874 return XmuConvertStandardSelection ();
11879 rm -f conftest.
$ac_objext conftest
$ac_exeext
11880 if { (ac_try
="$ac_link"
11881 case "(($ac_try" in
11882 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11883 *) ac_try_echo=$ac_try;;
11885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11886 (eval "$ac_link") 2>conftest.er1
11888 grep -v '^ *+' conftest.er1 >conftest.err
11890 cat conftest.err >&5
11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892 (exit $ac_status); } && {
11893 test -z "$ac_c_werror_flag" ||
11894 test ! -s conftest.err
11895 } && test -s conftest$ac_exeext &&
11896 $as_test_x conftest$ac_exeext; then
11897 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11899 echo "$as_me: failed program was:" >&5
11900 sed 's/^/| /' conftest.$ac_ext >&5
11902 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11906 conftest$ac_exeext conftest.$ac_ext
11907 LIBS=$ac_check_lib_save_LIBS
11909 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11910 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11911 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
11912 cat >>confdefs.h <<_ACEOF
11913 #define HAVE_LIBXMU 1
11920 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11923 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11924 if test "${HAVE_X11}" = "yes"; then
11925 if test "${USE_X_TOOLKIT}" != "none"; then
11927 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
11928 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
11929 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
11930 echo $ECHO_N "(cached) $ECHO_C" >&6
11932 ac_check_lib_save_LIBS=$LIBS
11933 LIBS="-lXext $LIBS"
11934 cat >conftest.$ac_ext <<_ACEOF
11937 cat confdefs.h >>conftest.$ac_ext
11938 cat >>conftest.$ac_ext <<_ACEOF
11939 /* end confdefs.h. */
11941 /* Override any GCC internal prototype to avoid an error.
11942 Use char because int might match the return type of a GCC
11943 builtin and then its argument prototype would still apply. */
11947 char XShapeQueryExtension ();
11951 return XShapeQueryExtension ();
11956 rm -f conftest.$ac_objext conftest$ac_exeext
11957 if { (ac_try="$ac_link"
11958 case "(($ac_try" in
11959 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11960 *) ac_try_echo
=$ac_try;;
11962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11963 (eval "$ac_link") 2>conftest.er1
11965 grep -v '^ *+' conftest.er1
>conftest.err
11967 cat conftest.err
>&5
11968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11969 (exit $ac_status); } && {
11970 test -z "$ac_c_werror_flag" ||
11971 test ! -s conftest.err
11972 } && test -s conftest
$ac_exeext &&
11973 $as_test_x conftest
$ac_exeext; then
11974 ac_cv_lib_Xext_XShapeQueryExtension
=yes
11976 echo "$as_me: failed program was:" >&5
11977 sed 's/^/| /' conftest.
$ac_ext >&5
11979 ac_cv_lib_Xext_XShapeQueryExtension
=no
11982 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11983 conftest
$ac_exeext conftest.
$ac_ext
11984 LIBS
=$ac_check_lib_save_LIBS
11986 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11987 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11988 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
11989 cat >>confdefs.h
<<_ACEOF
11990 #define HAVE_LIBXEXT 1
11993 LIBS
="-lXext $LIBS"
12000 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12001 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12002 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12003 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12004 echo $ECHO_N "(cached) $ECHO_C" >&6
12006 cat >conftest.
$ac_ext <<_ACEOF
12009 cat confdefs.h
>>conftest.
$ac_ext
12010 cat >>conftest.
$ac_ext <<_ACEOF
12011 /* end confdefs.h. */
12016 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12019 Motif version prior to 2.1.
12025 rm -f conftest.
$ac_objext
12026 if { (ac_try
="$ac_compile"
12027 case "(($ac_try" in
12028 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12029 *) ac_try_echo=$ac_try;;
12031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12032 (eval "$ac_compile") 2>conftest.er1
12034 grep -v '^ *+' conftest.er1 >conftest.err
12036 cat conftest.err >&5
12037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12038 (exit $ac_status); } && {
12039 test -z "$ac_c_werror_flag" ||
12040 test ! -s conftest.err
12041 } && test -s conftest.$ac_objext; then
12042 emacs_cv_motif_version_2_1=yes
12044 echo "$as_me: failed program was:" >&5
12045 sed 's/^/| /' conftest.$ac_ext >&5
12047 emacs_cv_motif_version_2_1=no
12050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12052 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12053 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12054 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12055 if test $emacs_cv_motif_version_2_1 = yes; then
12058 cat >>confdefs.h <<\_ACEOF
12059 #define HAVE_MOTIF_2_1 1
12062 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12063 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12064 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12065 echo $ECHO_N "(cached) $ECHO_C" >&6
12067 ac_check_lib_save_LIBS=$LIBS
12069 cat >conftest.$ac_ext <<_ACEOF
12072 cat confdefs.h >>conftest.$ac_ext
12073 cat >>conftest.$ac_ext <<_ACEOF
12074 /* end confdefs.h. */
12076 /* Override any GCC internal prototype to avoid an error.
12077 Use char because int might match the return type of a GCC
12078 builtin and then its argument prototype would still apply. */
12082 char XpCreateContext ();
12086 return XpCreateContext ();
12091 rm -f conftest.$ac_objext conftest$ac_exeext
12092 if { (ac_try="$ac_link"
12093 case "(($ac_try" in
12094 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12095 *) ac_try_echo
=$ac_try;;
12097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12098 (eval "$ac_link") 2>conftest.er1
12100 grep -v '^ *+' conftest.er1
>conftest.err
12102 cat conftest.err
>&5
12103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104 (exit $ac_status); } && {
12105 test -z "$ac_c_werror_flag" ||
12106 test ! -s conftest.err
12107 } && test -s conftest
$ac_exeext &&
12108 $as_test_x conftest
$ac_exeext; then
12109 ac_cv_lib_Xp_XpCreateContext
=yes
12111 echo "$as_me: failed program was:" >&5
12112 sed 's/^/| /' conftest.
$ac_ext >&5
12114 ac_cv_lib_Xp_XpCreateContext
=no
12117 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12118 conftest
$ac_exeext conftest.
$ac_ext
12119 LIBS
=$ac_check_lib_save_LIBS
12121 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12122 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12123 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12127 if test ${HAVE_LIBXP} = yes; then
12129 cat >>confdefs.h
<<\_ACEOF
12130 #define HAVE_LIBXP 1
12135 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12136 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12137 if test "${emacs_cv_lesstif+set}" = set; then
12138 echo $ECHO_N "(cached) $ECHO_C" >&6
12140 # We put this in CFLAGS temporarily to precede other -I options
12141 # that might be in CFLAGS temporarily.
12142 # We put this in CPPFLAGS where it precedes the other -I options.
12143 OLD_CPPFLAGS
=$CPPFLAGS
12145 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12146 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12147 cat >conftest.
$ac_ext <<_ACEOF
12150 cat confdefs.h
>>conftest.
$ac_ext
12151 cat >>conftest.
$ac_ext <<_ACEOF
12152 /* end confdefs.h. */
12153 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12162 rm -f conftest.
$ac_objext
12163 if { (ac_try
="$ac_compile"
12164 case "(($ac_try" in
12165 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12166 *) ac_try_echo=$ac_try;;
12168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12169 (eval "$ac_compile") 2>conftest.er1
12171 grep -v '^ *+' conftest.er1 >conftest.err
12173 cat conftest.err >&5
12174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12175 (exit $ac_status); } && {
12176 test -z "$ac_c_werror_flag" ||
12177 test ! -s conftest.err
12178 } && test -s conftest.$ac_objext; then
12179 emacs_cv_lesstif=yes
12181 echo "$as_me: failed program was:" >&5
12182 sed 's/^/| /' conftest.$ac_ext >&5
12184 emacs_cv_lesstif=no
12187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12189 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12190 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12191 if test $emacs_cv_lesstif = yes; then
12192 # Make sure this -I option remains in CPPFLAGS after it is set
12193 # back to REAL_CPPFLAGS.
12194 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12195 # have those other -I options anyway. Ultimately, having this
12196 # directory ultimately in CPPFLAGS will be enough.
12197 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12198 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12201 CPPFLAGS=$OLD_CPPFLAGS
12206 ### Is -lXaw3d available?
12208 if test "${HAVE_X11}" = "yes"; then
12209 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
12210 { echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
12211 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6; }
12212 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
12213 echo $ECHO_N "(cached) $ECHO_C" >&6
12215 cat >conftest.$ac_ext <<_ACEOF
12218 cat confdefs.h >>conftest.$ac_ext
12219 cat >>conftest.$ac_ext <<_ACEOF
12220 /* end confdefs.h. */
12221 #include <X11/Xaw3d/Scrollbar.h>
12223 if { (ac_try="$ac_cpp conftest.$ac_ext"
12224 case "(($ac_try" in
12225 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12226 *) ac_try_echo
=$ac_try;;
12228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12229 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12231 grep -v '^ *+' conftest.er1
>conftest.err
12233 cat conftest.err
>&5
12234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12235 (exit $ac_status); } >/dev
/null
&& {
12236 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12237 test ! -s conftest.err
12239 ac_cv_header_X11_Xaw3d_Scrollbar_h
=yes
12241 echo "$as_me: failed program was:" >&5
12242 sed 's/^/| /' conftest.
$ac_ext >&5
12244 ac_cv_header_X11_Xaw3d_Scrollbar_h
=no
12247 rm -f conftest.err conftest.
$ac_ext
12249 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
12250 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6; }
12251 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
12252 { echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
12253 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6; }
12254 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
12255 echo $ECHO_N "(cached) $ECHO_C" >&6
12257 ac_check_lib_save_LIBS
=$LIBS
12258 LIBS
="-lXaw3d $LIBS"
12259 cat >conftest.
$ac_ext <<_ACEOF
12262 cat confdefs.h
>>conftest.
$ac_ext
12263 cat >>conftest.
$ac_ext <<_ACEOF
12264 /* end confdefs.h. */
12266 /* Override any GCC internal prototype to avoid an error.
12267 Use char because int might match the return type of a GCC
12268 builtin and then its argument prototype would still apply. */
12272 char XawScrollbarSetThumb ();
12276 return XawScrollbarSetThumb ();
12281 rm -f conftest.
$ac_objext conftest
$ac_exeext
12282 if { (ac_try
="$ac_link"
12283 case "(($ac_try" in
12284 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12285 *) ac_try_echo=$ac_try;;
12287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12288 (eval "$ac_link") 2>conftest.er1
12290 grep -v '^ *+' conftest.er1 >conftest.err
12292 cat conftest.err >&5
12293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12294 (exit $ac_status); } && {
12295 test -z "$ac_c_werror_flag" ||
12296 test ! -s conftest.err
12297 } && test -s conftest$ac_exeext &&
12298 $as_test_x conftest$ac_exeext; then
12299 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
12301 echo "$as_me: failed program was:" >&5
12302 sed 's/^/| /' conftest.$ac_ext >&5
12304 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
12307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12308 conftest$ac_exeext conftest.$ac_ext
12309 LIBS=$ac_check_lib_save_LIBS
12311 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
12312 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
12313 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
12320 if test "${HAVE_XAW3D}" = "yes"; then
12322 cat >>confdefs.h <<\_ACEOF
12323 #define HAVE_XAW3D 1
12332 USE_TOOLKIT_SCROLL_BARS=no
12333 if test "${with_toolkit_scroll_bars}" != "no"; then
12334 if test "${USE_X_TOOLKIT}" != "none"; then
12335 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12336 cat >>confdefs.h <<\_ACEOF
12337 #define USE_TOOLKIT_SCROLL_BARS 1
12341 USE_TOOLKIT_SCROLL_BARS=yes
12342 elif test "${HAVE_XAW3D}" = "yes"; then
12343 cat >>confdefs.h <<\_ACEOF
12344 #define USE_TOOLKIT_SCROLL_BARS 1
12347 USE_TOOLKIT_SCROLL_BARS=yes
12349 elif test "${HAVE_GTK}" = "yes"; then
12350 cat >>confdefs.h <<\_ACEOF
12351 #define USE_TOOLKIT_SCROLL_BARS 1
12354 USE_TOOLKIT_SCROLL_BARS=yes
12355 elif test "${HAVE_CARBON}" = "yes"; then
12356 cat >>confdefs.h <<\_ACEOF
12357 #define USE_TOOLKIT_SCROLL_BARS 1
12360 USE_TOOLKIT_SCROLL_BARS=yes
12364 cat >conftest.$ac_ext <<_ACEOF
12367 cat confdefs.h >>conftest.$ac_ext
12368 cat >>conftest.$ac_ext <<_ACEOF
12369 /* end confdefs.h. */
12371 #include <X11/Xlib.h>
12372 #include <X11/Xresource.h>
12381 rm -f conftest.$ac_objext
12382 if { (ac_try="$ac_compile"
12383 case "(($ac_try" in
12384 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12385 *) ac_try_echo
=$ac_try;;
12387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12388 (eval "$ac_compile") 2>conftest.er1
12390 grep -v '^ *+' conftest.er1
>conftest.err
12392 cat conftest.err
>&5
12393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394 (exit $ac_status); } && {
12395 test -z "$ac_c_werror_flag" ||
12396 test ! -s conftest.err
12397 } && test -s conftest.
$ac_objext; then
12400 cat >>confdefs.h
<<\_ACEOF
12405 echo "$as_me: failed program was:" >&5
12406 sed 's/^/| /' conftest.
$ac_ext >&5
12411 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12414 if test "${with_xim}" != "no"; then
12416 cat >>confdefs.h
<<\_ACEOF
12423 if test "${HAVE_XIM}" != "no"; then
12424 late_CFLAGS
=$CFLAGS
12425 if test "$GCC" = yes; then
12426 CFLAGS
="$CFLAGS --pedantic-errors"
12428 cat >conftest.
$ac_ext <<_ACEOF
12431 cat confdefs.h
>>conftest.
$ac_ext
12432 cat >>conftest.
$ac_ext <<_ACEOF
12433 /* end confdefs.h. */
12435 #include <X11/Xlib.h>
12436 #include <X11/Xresource.h>
12445 XPointer *client_data;
12447 /* If we're not using GCC, it's probably not XFree86, and this is
12448 probably right, but we can't use something like --pedantic-errors. */
12449 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12450 char*, XIMProc, XPointer*);
12452 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12458 rm -f conftest.
$ac_objext
12459 if { (ac_try
="$ac_compile"
12460 case "(($ac_try" in
12461 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12462 *) ac_try_echo=$ac_try;;
12464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12465 (eval "$ac_compile") 2>conftest.er1
12467 grep -v '^ *+' conftest.er1 >conftest.err
12469 cat conftest.err >&5
12470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12471 (exit $ac_status); } && {
12472 test -z "$ac_c_werror_flag" ||
12473 test ! -s conftest.err
12474 } && test -s conftest.$ac_objext; then
12475 emacs_cv_arg6_star=yes
12477 echo "$as_me: failed program was:" >&5
12478 sed 's/^/| /' conftest.$ac_ext >&5
12483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12485 if test "$emacs_cv_arg6_star" = yes; then
12486 cat >>confdefs.h <<\_ACEOF
12487 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12491 cat >>confdefs.h <<\_ACEOF
12492 #define XRegisterIMInstantiateCallback_arg6 XPointer
12496 CFLAGS=$late_CFLAGS
12499 ### For font-backend
12500 if test "${USE_FONT_BACKEND}" = "yes"; then
12503 cat >>confdefs.h <<\_ACEOF
12504 #define USE_FONT_BACKEND 1
12508 ### Use -lXft if available, unless `--with-freetype=no
' nor `--with-xft=no'.
12510 if test "${HAVE_X11}" = "yes"; then
12511 if test "x${with_freetype}" = "xno"; then
12514 if test "x${with_xft}" != "xno"; then
12516 if test "X${with_pkg_config_prog}" != X
; then
12517 PKG_CONFIG
="${with_pkg_config_prog}"
12523 if test -z "$PKG_CONFIG"; then
12524 # Extract the first word of "pkg-config", so it can be a program name with args.
12525 set dummy pkg-config
; ac_word
=$2
12526 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12528 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12529 echo $ECHO_N "(cached) $ECHO_C" >&6
12531 case $PKG_CONFIG in
12533 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12536 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12537 for as_dir
in $PATH
12540 test -z "$as_dir" && as_dir
=.
12541 for ac_exec_ext
in '' $ac_executable_extensions; do
12542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12543 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12551 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12555 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12556 if test -n "$PKG_CONFIG"; then
12557 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12558 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12560 { echo "$as_me:$LINENO: result: no" >&5
12561 echo "${ECHO_T}no" >&6; }
12567 if test "$PKG_CONFIG" = "no" ; then
12570 PKG_CONFIG_MIN_VERSION
=0.9.0
12571 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12572 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12573 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12575 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12576 { echo "$as_me:$LINENO: result: yes" >&5
12577 echo "${ECHO_T}yes" >&6; }
12580 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12581 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12582 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"`
12583 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12584 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12586 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12587 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12588 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"`
12589 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12590 echo "${ECHO_T}$XFT_LIBS" >&6; }
12592 { echo "$as_me:$LINENO: result: no" >&5
12593 echo "${ECHO_T}no" >&6; }
12596 ## If we have a custom action on failure, don't print errors, but
12597 ## do set a variable so people can do so.
12598 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12605 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12606 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12610 if test $succeeded = yes; then
12616 if test "$HAVE_XFT" != no
; then
12617 OLD_CPPFLAGS
="$CPPFLAGS"
12618 OLD_CFLAGS
="$CFLAGS"
12620 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
12621 CFLAGS
="$CFLAGS $XFT_CFLAGS"
12622 LIBS
="$XFT_LIBS $LIBS"
12623 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12624 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12625 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12626 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12627 echo $ECHO_N "(cached) $ECHO_C" >&6
12629 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12630 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12632 # Is the header compilable?
12633 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12634 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12635 cat >conftest.
$ac_ext <<_ACEOF
12638 cat confdefs.h
>>conftest.
$ac_ext
12639 cat >>conftest.
$ac_ext <<_ACEOF
12640 /* end confdefs.h. */
12641 $ac_includes_default
12642 #include <X11/Xft/Xft.h>
12644 rm -f conftest.
$ac_objext
12645 if { (ac_try
="$ac_compile"
12646 case "(($ac_try" in
12647 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12648 *) ac_try_echo=$ac_try;;
12650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12651 (eval "$ac_compile") 2>conftest.er1
12653 grep -v '^ *+' conftest.er1 >conftest.err
12655 cat conftest.err >&5
12656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657 (exit $ac_status); } && {
12658 test -z "$ac_c_werror_flag" ||
12659 test ! -s conftest.err
12660 } && test -s conftest.$ac_objext; then
12661 ac_header_compiler=yes
12663 echo "$as_me: failed program was:" >&5
12664 sed 's/^/| /' conftest.$ac_ext >&5
12666 ac_header_compiler=no
12669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12670 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12671 echo "${ECHO_T}$ac_header_compiler" >&6; }
12673 # Is the header present?
12674 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12675 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12676 cat >conftest.$ac_ext <<_ACEOF
12679 cat confdefs.h >>conftest.$ac_ext
12680 cat >>conftest.$ac_ext <<_ACEOF
12681 /* end confdefs.h. */
12682 #include <X11/Xft/Xft.h>
12684 if { (ac_try="$ac_cpp conftest.$ac_ext"
12685 case "(($ac_try" in
12686 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12687 *) ac_try_echo
=$ac_try;;
12689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12690 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12692 grep -v '^ *+' conftest.er1
>conftest.err
12694 cat conftest.err
>&5
12695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12696 (exit $ac_status); } >/dev
/null
&& {
12697 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12698 test ! -s conftest.err
12700 ac_header_preproc
=yes
12702 echo "$as_me: failed program was:" >&5
12703 sed 's/^/| /' conftest.
$ac_ext >&5
12705 ac_header_preproc
=no
12708 rm -f conftest.err conftest.
$ac_ext
12709 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12710 echo "${ECHO_T}$ac_header_preproc" >&6; }
12712 # So? What about this header?
12713 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12715 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12716 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12717 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12718 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12719 ac_header_preproc
=yes
12722 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12723 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12724 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12725 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12726 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12727 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12728 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12729 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12730 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12731 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12732 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12733 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12737 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12738 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12739 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12740 echo $ECHO_N "(cached) $ECHO_C" >&6
12742 ac_cv_header_X11_Xft_Xft_h
=$ac_header_preproc
12744 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12745 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12748 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12749 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12750 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12751 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12752 echo $ECHO_N "(cached) $ECHO_C" >&6
12754 ac_check_lib_save_LIBS
=$LIBS
12755 LIBS
="-lXft $XFT_LIBS $LIBS"
12756 cat >conftest.
$ac_ext <<_ACEOF
12759 cat confdefs.h
>>conftest.
$ac_ext
12760 cat >>conftest.
$ac_ext <<_ACEOF
12761 /* end confdefs.h. */
12763 /* Override any GCC internal prototype to avoid an error.
12764 Use char because int might match the return type of a GCC
12765 builtin and then its argument prototype would still apply. */
12769 char XftFontOpen ();
12773 return XftFontOpen ();
12778 rm -f conftest.
$ac_objext conftest
$ac_exeext
12779 if { (ac_try
="$ac_link"
12780 case "(($ac_try" in
12781 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12782 *) ac_try_echo=$ac_try;;
12784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12785 (eval "$ac_link") 2>conftest.er1
12787 grep -v '^ *+' conftest.er1 >conftest.err
12789 cat conftest.err >&5
12790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791 (exit $ac_status); } && {
12792 test -z "$ac_c_werror_flag" ||
12793 test ! -s conftest.err
12794 } && test -s conftest$ac_exeext &&
12795 $as_test_x conftest$ac_exeext; then
12796 ac_cv_lib_Xft_XftFontOpen=yes
12798 echo "$as_me: failed program was:" >&5
12799 sed 's/^/| /' conftest.$ac_ext >&5
12801 ac_cv_lib_Xft_XftFontOpen=no
12804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12805 conftest$ac_exeext conftest.$ac_ext
12806 LIBS=$ac_check_lib_save_LIBS
12808 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12809 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12810 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12818 if test "${HAVE_XFT}" = "yes"; then
12820 cat >>confdefs.h <<\_ACEOF
12825 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12827 CFLAGS="$OLD_CPPFLAGS"
12828 CFLAGS="$OLD_CFLAGS"
12836 ### Use -lfreetype if available, unless `--with-freetype=no
'.
12837 if test "${HAVE_XFT}" = "yes"; then
12839 elif test "x${with_freetype}" != "xno"; then
12840 if test "X${with_pkg_config_prog}" != X; then
12841 PKG_CONFIG="${with_pkg_config_prog}"
12847 if test -z "$PKG_CONFIG"; then
12848 # Extract the first word of "pkg-config", so it can be a program name with args.
12849 set dummy pkg-config; ac_word=$2
12850 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12852 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12853 echo $ECHO_N "(cached) $ECHO_C" >&6
12855 case $PKG_CONFIG in
12857 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12861 for as_dir in $PATH
12864 test -z "$as_dir" && as_dir=.
12865 for ac_exec_ext in '' $ac_executable_extensions; do
12866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12867 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12875 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12879 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12880 if test -n "$PKG_CONFIG"; then
12881 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12882 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12884 { echo "$as_me:$LINENO: result: no" >&5
12885 echo "${ECHO_T}no" >&6; }
12891 if test "$PKG_CONFIG" = "no" ; then
12894 PKG_CONFIG_MIN_VERSION=0.9.0
12895 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12896 { echo "$as_me:$LINENO: checking for freetype2" >&5
12897 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6; }
12899 if $PKG_CONFIG --exists "freetype2" 2>&5; then
12900 { echo "$as_me:$LINENO: result: yes" >&5
12901 echo "${ECHO_T}yes" >&6; }
12904 { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
12905 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6; }
12906 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"`
12907 { echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
12908 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; }
12910 { echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
12911 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6; }
12912 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"`
12913 { echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
12914 echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
12916 { echo "$as_me:$LINENO: result: no" >&5
12917 echo "${ECHO_T}no" >&6; }
12920 ## If we have a custom action on failure, don't print errors
, but
12921 ## do set a variable so people can do so.
12922 FREETYPE_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12929 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12930 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12934 if test $succeeded = yes; then
12940 if test "${HAVE_FREETYPE}" = "yes"; then
12944 if test -z "$PKG_CONFIG"; then
12945 # Extract the first word of "pkg-config", so it can be a program name with args.
12946 set dummy pkg-config
; ac_word
=$2
12947 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12949 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12950 echo $ECHO_N "(cached) $ECHO_C" >&6
12952 case $PKG_CONFIG in
12954 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12957 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12958 for as_dir
in $PATH
12961 test -z "$as_dir" && as_dir
=.
12962 for ac_exec_ext
in '' $ac_executable_extensions; do
12963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12964 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12972 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12976 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12977 if test -n "$PKG_CONFIG"; then
12978 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12979 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12981 { echo "$as_me:$LINENO: result: no" >&5
12982 echo "${ECHO_T}no" >&6; }
12988 if test "$PKG_CONFIG" = "no" ; then
12991 PKG_CONFIG_MIN_VERSION
=0.9.0
12992 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12993 { echo "$as_me:$LINENO: checking for fontconfig" >&5
12994 echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6; }
12996 if $PKG_CONFIG --exists "fontconfig" 2>&5; then
12997 { echo "$as_me:$LINENO: result: yes" >&5
12998 echo "${ECHO_T}yes" >&6; }
13001 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13002 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6; }
13003 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig"`
13004 { echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13005 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
13007 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13008 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6; }
13009 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig"`
13010 { echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13011 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
13013 { echo "$as_me:$LINENO: result: no" >&5
13014 echo "${ECHO_T}no" >&6; }
13015 FONTCONFIG_CFLAGS
=""
13017 ## If we have a custom action on failure, don't print errors, but
13018 ## do set a variable so people can do so.
13019 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
13026 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13027 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13031 if test $succeeded = yes; then
13037 if test "${HAVE_FC}" = "no"; then
13042 if test "${HAVE_FREETYPE}" = "yes"; then
13044 cat >>confdefs.h
<<\_ACEOF
13045 #define HAVE_FREETYPE 1
13048 # Extract the first word of "libotf-config", so it can be a program name with args.
13049 set dummy libotf-config
; ac_word
=$2
13050 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13052 if test "${ac_cv_prog_HAVE_LIBOTF+set}" = set; then
13053 echo $ECHO_N "(cached) $ECHO_C" >&6
13055 if test -n "$HAVE_LIBOTF"; then
13056 ac_cv_prog_HAVE_LIBOTF
="$HAVE_LIBOTF" # Let the user override the test.
13058 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13059 for as_dir
in $PATH
13062 test -z "$as_dir" && as_dir
=.
13063 for ac_exec_ext
in '' $ac_executable_extensions; do
13064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13065 ac_cv_prog_HAVE_LIBOTF
="yes"
13066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13073 test -z "$ac_cv_prog_HAVE_LIBOTF" && ac_cv_prog_HAVE_LIBOTF
="no"
13076 HAVE_LIBOTF
=$ac_cv_prog_HAVE_LIBOTF
13077 if test -n "$HAVE_LIBOTF"; then
13078 { echo "$as_me:$LINENO: result: $HAVE_LIBOTF" >&5
13079 echo "${ECHO_T}$HAVE_LIBOTF" >&6; }
13081 { echo "$as_me:$LINENO: result: no" >&5
13082 echo "${ECHO_T}no" >&6; }
13086 if test "${HAVE_LIBOTF}" = "yes"; then
13088 cat >>confdefs.h
<<\_ACEOF
13089 #define HAVE_LIBOTF 1
13092 LIBOTF_CFLAGS
=`libotf-config --cflags`
13093 LIBOTF_LIBS
=`libotf-config --libs`
13105 ### Use -lXpm if available, unless `--with-xpm=no'.
13107 if test "${HAVE_X11}" = "yes"; then
13108 if test "${with_xpm}" != "no"; then
13109 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13110 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13111 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13112 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13113 echo $ECHO_N "(cached) $ECHO_C" >&6
13115 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13116 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13118 # Is the header compilable?
13119 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13120 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13121 cat >conftest.
$ac_ext <<_ACEOF
13124 cat confdefs.h
>>conftest.
$ac_ext
13125 cat >>conftest.
$ac_ext <<_ACEOF
13126 /* end confdefs.h. */
13127 $ac_includes_default
13128 #include <X11/xpm.h>
13130 rm -f conftest.
$ac_objext
13131 if { (ac_try
="$ac_compile"
13132 case "(($ac_try" in
13133 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13134 *) ac_try_echo=$ac_try;;
13136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13137 (eval "$ac_compile") 2>conftest.er1
13139 grep -v '^ *+' conftest.er1 >conftest.err
13141 cat conftest.err >&5
13142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13143 (exit $ac_status); } && {
13144 test -z "$ac_c_werror_flag" ||
13145 test ! -s conftest.err
13146 } && test -s conftest.$ac_objext; then
13147 ac_header_compiler=yes
13149 echo "$as_me: failed program was:" >&5
13150 sed 's/^/| /' conftest.$ac_ext >&5
13152 ac_header_compiler=no
13155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13156 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13157 echo "${ECHO_T}$ac_header_compiler" >&6; }
13159 # Is the header present?
13160 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13161 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13162 cat >conftest.$ac_ext <<_ACEOF
13165 cat confdefs.h >>conftest.$ac_ext
13166 cat >>conftest.$ac_ext <<_ACEOF
13167 /* end confdefs.h. */
13168 #include <X11/xpm.h>
13170 if { (ac_try="$ac_cpp conftest.$ac_ext"
13171 case "(($ac_try" in
13172 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13173 *) ac_try_echo
=$ac_try;;
13175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13176 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13178 grep -v '^ *+' conftest.er1
>conftest.err
13180 cat conftest.err
>&5
13181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13182 (exit $ac_status); } >/dev
/null
&& {
13183 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13184 test ! -s conftest.err
13186 ac_header_preproc
=yes
13188 echo "$as_me: failed program was:" >&5
13189 sed 's/^/| /' conftest.
$ac_ext >&5
13191 ac_header_preproc
=no
13194 rm -f conftest.err conftest.
$ac_ext
13195 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13196 echo "${ECHO_T}$ac_header_preproc" >&6; }
13198 # So? What about this header?
13199 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13201 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13202 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13203 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13204 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13205 ac_header_preproc
=yes
13208 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13209 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13210 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13211 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13212 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13213 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13214 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13215 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13216 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13217 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13218 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13219 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13223 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13224 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13225 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13226 echo $ECHO_N "(cached) $ECHO_C" >&6
13228 ac_cv_header_X11_xpm_h
=$ac_header_preproc
13230 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13231 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13234 if test $ac_cv_header_X11_xpm_h = yes; then
13235 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13236 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13237 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13238 echo $ECHO_N "(cached) $ECHO_C" >&6
13240 ac_check_lib_save_LIBS
=$LIBS
13241 LIBS
="-lXpm -lX11 $LIBS"
13242 cat >conftest.
$ac_ext <<_ACEOF
13245 cat confdefs.h
>>conftest.
$ac_ext
13246 cat >>conftest.
$ac_ext <<_ACEOF
13247 /* end confdefs.h. */
13249 /* Override any GCC internal prototype to avoid an error.
13250 Use char because int might match the return type of a GCC
13251 builtin and then its argument prototype would still apply. */
13255 char XpmReadFileToPixmap ();
13259 return XpmReadFileToPixmap ();
13264 rm -f conftest.
$ac_objext conftest
$ac_exeext
13265 if { (ac_try
="$ac_link"
13266 case "(($ac_try" in
13267 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13268 *) ac_try_echo=$ac_try;;
13270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13271 (eval "$ac_link") 2>conftest.er1
13273 grep -v '^ *+' conftest.er1 >conftest.err
13275 cat conftest.err >&5
13276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13277 (exit $ac_status); } && {
13278 test -z "$ac_c_werror_flag" ||
13279 test ! -s conftest.err
13280 } && test -s conftest$ac_exeext &&
13281 $as_test_x conftest$ac_exeext; then
13282 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13284 echo "$as_me: failed program was:" >&5
13285 sed 's/^/| /' conftest.$ac_ext >&5
13287 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13291 conftest$ac_exeext conftest.$ac_ext
13292 LIBS=$ac_check_lib_save_LIBS
13294 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13295 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13296 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13303 if test "${HAVE_XPM}" = "yes"; then
13304 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13305 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13306 cat >conftest.$ac_ext <<_ACEOF
13309 cat confdefs.h >>conftest.$ac_ext
13310 cat >>conftest.$ac_ext <<_ACEOF
13311 /* end confdefs.h. */
13312 #include "X11/xpm.h"
13313 #ifndef XpmReturnAllocPixels
13314 no_return_alloc_pixels
13318 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13319 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13327 if test "${HAVE_XPM}" = "yes"; then
13328 { echo "$as_me:$LINENO: result: yes" >&5
13329 echo "${ECHO_T}yes" >&6; }
13331 { echo "$as_me:$LINENO: result: no" >&5
13332 echo "${ECHO_T}no" >&6; }
13337 if test "${HAVE_XPM}" = "yes"; then
13339 cat >>confdefs.h <<\_ACEOF
13346 ### Use -ljpeg if available, unless `--with-jpeg=no
'.
13348 if test "${HAVE_X11}" = "yes"; then
13349 if test "${with_jpeg}" != "no"; then
13350 if test "${ac_cv_header_jerror_h+set}" = set; then
13351 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13352 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13353 if test "${ac_cv_header_jerror_h+set}" = set; then
13354 echo $ECHO_N "(cached) $ECHO_C" >&6
13356 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13357 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13359 # Is the header compilable?
13360 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13361 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13362 cat >conftest.$ac_ext <<_ACEOF
13365 cat confdefs.h >>conftest.$ac_ext
13366 cat >>conftest.$ac_ext <<_ACEOF
13367 /* end confdefs.h. */
13368 $ac_includes_default
13369 #include <jerror.h>
13371 rm -f conftest.$ac_objext
13372 if { (ac_try="$ac_compile"
13373 case "(($ac_try" in
13374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13375 *) ac_try_echo=$ac_try;;
13377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13378 (eval "$ac_compile") 2>conftest.er1
13380 grep -v '^
*+' conftest.er1 >conftest.err
13382 cat conftest.err >&5
13383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13384 (exit $ac_status); } && {
13385 test -z "$ac_c_werror_flag" ||
13386 test ! -s conftest.err
13387 } && test -s conftest.$ac_objext; then
13388 ac_header_compiler=yes
13390 echo "$as_me: failed program was:" >&5
13391 sed 's
/^
/|
/' conftest.$ac_ext >&5
13393 ac_header_compiler=no
13396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13397 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13398 echo "${ECHO_T}$ac_header_compiler" >&6; }
13400 # Is the header present?
13401 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13402 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13403 cat >conftest.$ac_ext <<_ACEOF
13406 cat confdefs.h >>conftest.$ac_ext
13407 cat >>conftest.$ac_ext <<_ACEOF
13408 /* end confdefs.h. */
13409 #include <jerror.h>
13411 if { (ac_try="$ac_cpp conftest.$ac_ext"
13412 case "(($ac_try" in
13413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13414 *) ac_try_echo=$ac_try;;
13416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13417 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13419 grep -v '^
*+' conftest.er1 >conftest.err
13421 cat conftest.err >&5
13422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13423 (exit $ac_status); } >/dev/null && {
13424 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13425 test ! -s conftest.err
13427 ac_header_preproc=yes
13429 echo "$as_me: failed program was:" >&5
13430 sed 's
/^
/|
/' conftest.$ac_ext >&5
13432 ac_header_preproc=no
13435 rm -f conftest.err conftest.$ac_ext
13436 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13437 echo "${ECHO_T}$ac_header_preproc" >&6; }
13439 # So? What about this header?
13440 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13442 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13443 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13444 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result
" >&5
13445 echo "$as_me: WARNING
: jerror.h
: proceeding with the compiler
's result" >&2;}
13446 ac_header_preproc=yes
13449 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13450 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13451 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13452 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13453 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13454 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13455 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13456 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13457 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result
" >&5
13458 echo "$as_me: WARNING
: jerror.h
: proceeding with the preprocessor
's result" >&2;}
13459 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13460 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13464 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13465 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13466 if test "${ac_cv_header_jerror_h+set}" = set; then
13467 echo $ECHO_N "(cached) $ECHO_C" >&6
13469 ac_cv_header_jerror_h=$ac_header_preproc
13471 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13472 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13475 if test $ac_cv_header_jerror_h = yes; then
13476 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13477 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13478 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13479 echo $ECHO_N "(cached) $ECHO_C" >&6
13481 ac_check_lib_save_LIBS=$LIBS
13482 LIBS="-ljpeg $LIBS"
13483 cat >conftest.$ac_ext <<_ACEOF
13486 cat confdefs.h >>conftest.$ac_ext
13487 cat >>conftest.$ac_ext <<_ACEOF
13488 /* end confdefs.h. */
13490 /* Override any GCC internal prototype to avoid an error.
13491 Use char because int might match the return type of a GCC
13492 builtin and then its argument prototype would still apply. */
13496 char jpeg_destroy_compress ();
13500 return jpeg_destroy_compress ();
13505 rm -f conftest.$ac_objext conftest$ac_exeext
13506 if { (ac_try="$ac_link"
13507 case "(($ac_try" in
13508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13509 *) ac_try_echo=$ac_try;;
13511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13512 (eval "$ac_link") 2>conftest.er1
13514 grep -v '^
*+' conftest.er1 >conftest.err
13516 cat conftest.err >&5
13517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13518 (exit $ac_status); } && {
13519 test -z "$ac_c_werror_flag" ||
13520 test ! -s conftest.err
13521 } && test -s conftest$ac_exeext &&
13522 $as_test_x conftest$ac_exeext; then
13523 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13525 echo "$as_me: failed program was:" >&5
13526 sed 's
/^
/|
/' conftest.$ac_ext >&5
13528 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13532 conftest$ac_exeext conftest.$ac_ext
13533 LIBS=$ac_check_lib_save_LIBS
13535 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13536 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13537 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13547 if test "${HAVE_JPEG}" = "yes"; then
13548 cat >>confdefs.h <<\_ACEOF
13549 #define HAVE_JPEG 1
13552 cat >conftest.$ac_ext <<_ACEOF
13555 cat confdefs.h >>conftest.$ac_ext
13556 cat >>conftest.$ac_ext <<_ACEOF
13557 /* end confdefs.h. */
13558 #include <jpeglib.h>
13559 version=JPEG_LIB_VERSION
13562 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13563 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13564 cat >>confdefs.h <<\_ACEOF
13565 #define HAVE_JPEG 1
13569 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13570 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13578 ### Use -lpng if available, unless `--with-png=no'.
13580 if test "${HAVE_X11}" = "yes"; then
13581 if test "${with_png}" != "no"; then
13582 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13583 # in /usr/include/libpng.
13586 for ac_header
in png.h libpng
/png.h
13588 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13589 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13590 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13591 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13592 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13593 echo $ECHO_N "(cached) $ECHO_C" >&6
13595 ac_res
=`eval echo '${'$as_ac_Header'}'`
13596 { echo "$as_me:$LINENO: result: $ac_res" >&5
13597 echo "${ECHO_T}$ac_res" >&6; }
13599 # Is the header compilable?
13600 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13601 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13602 cat >conftest.
$ac_ext <<_ACEOF
13605 cat confdefs.h
>>conftest.
$ac_ext
13606 cat >>conftest.
$ac_ext <<_ACEOF
13607 /* end confdefs.h. */
13608 $ac_includes_default
13609 #include <$ac_header>
13611 rm -f conftest.
$ac_objext
13612 if { (ac_try
="$ac_compile"
13613 case "(($ac_try" in
13614 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13615 *) ac_try_echo=$ac_try;;
13617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13618 (eval "$ac_compile") 2>conftest.er1
13620 grep -v '^ *+' conftest.er1 >conftest.err
13622 cat conftest.err >&5
13623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624 (exit $ac_status); } && {
13625 test -z "$ac_c_werror_flag" ||
13626 test ! -s conftest.err
13627 } && test -s conftest.$ac_objext; then
13628 ac_header_compiler=yes
13630 echo "$as_me: failed program was:" >&5
13631 sed 's/^/| /' conftest.$ac_ext >&5
13633 ac_header_compiler=no
13636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13637 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13638 echo "${ECHO_T}$ac_header_compiler" >&6; }
13640 # Is the header present?
13641 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13642 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13643 cat >conftest.$ac_ext <<_ACEOF
13646 cat confdefs.h >>conftest.$ac_ext
13647 cat >>conftest.$ac_ext <<_ACEOF
13648 /* end confdefs.h. */
13649 #include <$ac_header>
13651 if { (ac_try="$ac_cpp conftest.$ac_ext"
13652 case "(($ac_try" in
13653 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13654 *) ac_try_echo
=$ac_try;;
13656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13657 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13659 grep -v '^ *+' conftest.er1
>conftest.err
13661 cat conftest.err
>&5
13662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663 (exit $ac_status); } >/dev
/null
&& {
13664 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13665 test ! -s conftest.err
13667 ac_header_preproc
=yes
13669 echo "$as_me: failed program was:" >&5
13670 sed 's/^/| /' conftest.
$ac_ext >&5
13672 ac_header_preproc
=no
13675 rm -f conftest.err conftest.
$ac_ext
13676 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13677 echo "${ECHO_T}$ac_header_preproc" >&6; }
13679 # So? What about this header?
13680 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13682 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13683 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13684 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13685 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13686 ac_header_preproc
=yes
13689 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13690 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13691 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13692 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13693 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13694 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13695 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13696 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13697 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13698 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13699 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13700 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13704 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13705 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13706 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13707 echo $ECHO_N "(cached) $ECHO_C" >&6
13709 eval "$as_ac_Header=\$ac_header_preproc"
13711 ac_res
=`eval echo '${'$as_ac_Header'}'`
13712 { echo "$as_me:$LINENO: result: $ac_res" >&5
13713 echo "${ECHO_T}$ac_res" >&6; }
13716 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13717 cat >>confdefs.h
<<_ACEOF
13718 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13725 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
13726 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13727 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13728 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13729 echo $ECHO_N "(cached) $ECHO_C" >&6
13731 ac_check_lib_save_LIBS
=$LIBS
13732 LIBS
="-lpng -lz -lm $LIBS"
13733 cat >conftest.
$ac_ext <<_ACEOF
13736 cat confdefs.h
>>conftest.
$ac_ext
13737 cat >>conftest.
$ac_ext <<_ACEOF
13738 /* end confdefs.h. */
13740 /* Override any GCC internal prototype to avoid an error.
13741 Use char because int might match the return type of a GCC
13742 builtin and then its argument prototype would still apply. */
13746 char png_get_channels ();
13750 return png_get_channels ();
13755 rm -f conftest.
$ac_objext conftest
$ac_exeext
13756 if { (ac_try
="$ac_link"
13757 case "(($ac_try" in
13758 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13759 *) ac_try_echo=$ac_try;;
13761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13762 (eval "$ac_link") 2>conftest.er1
13764 grep -v '^ *+' conftest.er1 >conftest.err
13766 cat conftest.err >&5
13767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768 (exit $ac_status); } && {
13769 test -z "$ac_c_werror_flag" ||
13770 test ! -s conftest.err
13771 } && test -s conftest$ac_exeext &&
13772 $as_test_x conftest$ac_exeext; then
13773 ac_cv_lib_png_png_get_channels=yes
13775 echo "$as_me: failed program was:" >&5
13776 sed 's/^/| /' conftest.$ac_ext >&5
13778 ac_cv_lib_png_png_get_channels=no
13781 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13782 conftest$ac_exeext conftest.$ac_ext
13783 LIBS=$ac_check_lib_save_LIBS
13785 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13786 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13787 if test $ac_cv_lib_png_png_get_channels = yes; then
13794 if test "${HAVE_PNG}" = "yes"; then
13796 cat >>confdefs.h <<\_ACEOF
13803 ### Use -ltiff if available, unless `--with-tiff=no
'.
13805 if test "${HAVE_X11}" = "yes"; then
13806 if test "${with_tiff}" != "no"; then
13807 if test "${ac_cv_header_tiffio_h+set}" = set; then
13808 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13809 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13810 if test "${ac_cv_header_tiffio_h+set}" = set; then
13811 echo $ECHO_N "(cached) $ECHO_C" >&6
13813 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13814 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13816 # Is the header compilable?
13817 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13818 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13819 cat >conftest.$ac_ext <<_ACEOF
13822 cat confdefs.h >>conftest.$ac_ext
13823 cat >>conftest.$ac_ext <<_ACEOF
13824 /* end confdefs.h. */
13825 $ac_includes_default
13826 #include <tiffio.h>
13828 rm -f conftest.$ac_objext
13829 if { (ac_try="$ac_compile"
13830 case "(($ac_try" in
13831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13832 *) ac_try_echo=$ac_try;;
13834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13835 (eval "$ac_compile") 2>conftest.er1
13837 grep -v '^
*+' conftest.er1 >conftest.err
13839 cat conftest.err >&5
13840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13841 (exit $ac_status); } && {
13842 test -z "$ac_c_werror_flag" ||
13843 test ! -s conftest.err
13844 } && test -s conftest.$ac_objext; then
13845 ac_header_compiler=yes
13847 echo "$as_me: failed program was:" >&5
13848 sed 's
/^
/|
/' conftest.$ac_ext >&5
13850 ac_header_compiler=no
13853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13854 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13855 echo "${ECHO_T}$ac_header_compiler" >&6; }
13857 # Is the header present?
13858 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13859 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13860 cat >conftest.$ac_ext <<_ACEOF
13863 cat confdefs.h >>conftest.$ac_ext
13864 cat >>conftest.$ac_ext <<_ACEOF
13865 /* end confdefs.h. */
13866 #include <tiffio.h>
13868 if { (ac_try="$ac_cpp conftest.$ac_ext"
13869 case "(($ac_try" in
13870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13871 *) ac_try_echo=$ac_try;;
13873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13874 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13876 grep -v '^
*+' conftest.er1 >conftest.err
13878 cat conftest.err >&5
13879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13880 (exit $ac_status); } >/dev/null && {
13881 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13882 test ! -s conftest.err
13884 ac_header_preproc=yes
13886 echo "$as_me: failed program was:" >&5
13887 sed 's
/^
/|
/' conftest.$ac_ext >&5
13889 ac_header_preproc=no
13892 rm -f conftest.err conftest.$ac_ext
13893 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13894 echo "${ECHO_T}$ac_header_preproc" >&6; }
13896 # So? What about this header?
13897 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13899 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13900 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13901 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result
" >&5
13902 echo "$as_me: WARNING
: tiffio.h
: proceeding with the compiler
's result" >&2;}
13903 ac_header_preproc=yes
13906 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13907 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13908 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13909 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13910 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13911 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13912 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13913 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13914 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result
" >&5
13915 echo "$as_me: WARNING
: tiffio.h
: proceeding with the preprocessor
's result" >&2;}
13916 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13917 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13921 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13922 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13923 if test "${ac_cv_header_tiffio_h+set}" = set; then
13924 echo $ECHO_N "(cached) $ECHO_C" >&6
13926 ac_cv_header_tiffio_h=$ac_header_preproc
13928 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13929 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13932 if test $ac_cv_header_tiffio_h = yes; then
13934 # At least one tiff package requires the jpeg library.
13935 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13936 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
13937 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
13938 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
13939 echo $ECHO_N "(cached) $ECHO_C" >&6
13941 ac_check_lib_save_LIBS=$LIBS
13942 LIBS="-ltiff $tifflibs $LIBS"
13943 cat >conftest.$ac_ext <<_ACEOF
13946 cat confdefs.h >>conftest.$ac_ext
13947 cat >>conftest.$ac_ext <<_ACEOF
13948 /* end confdefs.h. */
13950 /* Override any GCC internal prototype to avoid an error.
13951 Use char because int might match the return type of a GCC
13952 builtin and then its argument prototype would still apply. */
13956 char TIFFGetVersion ();
13960 return TIFFGetVersion ();
13965 rm -f conftest.$ac_objext conftest$ac_exeext
13966 if { (ac_try="$ac_link"
13967 case "(($ac_try" in
13968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13969 *) ac_try_echo=$ac_try;;
13971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13972 (eval "$ac_link") 2>conftest.er1
13974 grep -v '^
*+' conftest.er1 >conftest.err
13976 cat conftest.err >&5
13977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13978 (exit $ac_status); } && {
13979 test -z "$ac_c_werror_flag" ||
13980 test ! -s conftest.err
13981 } && test -s conftest$ac_exeext &&
13982 $as_test_x conftest$ac_exeext; then
13983 ac_cv_lib_tiff_TIFFGetVersion=yes
13985 echo "$as_me: failed program was:" >&5
13986 sed 's
/^
/|
/' conftest.$ac_ext >&5
13988 ac_cv_lib_tiff_TIFFGetVersion=no
13991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13992 conftest$ac_exeext conftest.$ac_ext
13993 LIBS=$ac_check_lib_save_LIBS
13995 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13996 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13997 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14006 if test "${HAVE_TIFF}" = "yes"; then
14008 cat >>confdefs.h <<\_ACEOF
14009 #define HAVE_TIFF 1
14015 ### Use -lgif if available, unless `--with-gif=no'.
14017 if test "${HAVE_X11}" = "yes"; then
14018 if test "${with_gif}" != "no"; then
14019 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14020 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14021 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14022 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14023 echo $ECHO_N "(cached) $ECHO_C" >&6
14025 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14026 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14028 # Is the header compilable?
14029 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14030 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14031 cat >conftest.
$ac_ext <<_ACEOF
14034 cat confdefs.h
>>conftest.
$ac_ext
14035 cat >>conftest.
$ac_ext <<_ACEOF
14036 /* end confdefs.h. */
14037 $ac_includes_default
14038 #include <gif_lib.h>
14040 rm -f conftest.
$ac_objext
14041 if { (ac_try
="$ac_compile"
14042 case "(($ac_try" in
14043 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14044 *) ac_try_echo=$ac_try;;
14046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14047 (eval "$ac_compile") 2>conftest.er1
14049 grep -v '^ *+' conftest.er1 >conftest.err
14051 cat conftest.err >&5
14052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14053 (exit $ac_status); } && {
14054 test -z "$ac_c_werror_flag" ||
14055 test ! -s conftest.err
14056 } && test -s conftest.$ac_objext; then
14057 ac_header_compiler=yes
14059 echo "$as_me: failed program was:" >&5
14060 sed 's/^/| /' conftest.$ac_ext >&5
14062 ac_header_compiler=no
14065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14066 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14067 echo "${ECHO_T}$ac_header_compiler" >&6; }
14069 # Is the header present?
14070 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14071 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14072 cat >conftest.$ac_ext <<_ACEOF
14075 cat confdefs.h >>conftest.$ac_ext
14076 cat >>conftest.$ac_ext <<_ACEOF
14077 /* end confdefs.h. */
14078 #include <gif_lib.h>
14080 if { (ac_try="$ac_cpp conftest.$ac_ext"
14081 case "(($ac_try" in
14082 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14083 *) ac_try_echo
=$ac_try;;
14085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14086 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14088 grep -v '^ *+' conftest.er1
>conftest.err
14090 cat conftest.err
>&5
14091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14092 (exit $ac_status); } >/dev
/null
&& {
14093 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14094 test ! -s conftest.err
14096 ac_header_preproc
=yes
14098 echo "$as_me: failed program was:" >&5
14099 sed 's/^/| /' conftest.
$ac_ext >&5
14101 ac_header_preproc
=no
14104 rm -f conftest.err conftest.
$ac_ext
14105 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14106 echo "${ECHO_T}$ac_header_preproc" >&6; }
14108 # So? What about this header?
14109 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14111 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14112 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14113 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14114 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14115 ac_header_preproc
=yes
14118 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14119 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14120 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14121 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14122 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14123 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14124 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14125 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14126 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14127 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14128 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14129 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14133 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14134 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14135 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14136 echo $ECHO_N "(cached) $ECHO_C" >&6
14138 ac_cv_header_gif_lib_h
=$ac_header_preproc
14140 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14141 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14144 if test $ac_cv_header_gif_lib_h = yes; then
14145 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14146 # Earlier versions can crash Emacs.
14147 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14148 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14149 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14150 echo $ECHO_N "(cached) $ECHO_C" >&6
14152 ac_check_lib_save_LIBS
=$LIBS
14153 LIBS
="-lungif $LIBS"
14154 cat >conftest.
$ac_ext <<_ACEOF
14157 cat confdefs.h
>>conftest.
$ac_ext
14158 cat >>conftest.
$ac_ext <<_ACEOF
14159 /* end confdefs.h. */
14161 /* Override any GCC internal prototype to avoid an error.
14162 Use char because int might match the return type of a GCC
14163 builtin and then its argument prototype would still apply. */
14167 char EGifPutExtensionLast ();
14171 return EGifPutExtensionLast ();
14176 rm -f conftest.
$ac_objext conftest
$ac_exeext
14177 if { (ac_try
="$ac_link"
14178 case "(($ac_try" in
14179 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14180 *) ac_try_echo=$ac_try;;
14182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14183 (eval "$ac_link") 2>conftest.er1
14185 grep -v '^ *+' conftest.er1 >conftest.err
14187 cat conftest.err >&5
14188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189 (exit $ac_status); } && {
14190 test -z "$ac_c_werror_flag" ||
14191 test ! -s conftest.err
14192 } && test -s conftest$ac_exeext &&
14193 $as_test_x conftest$ac_exeext; then
14194 ac_cv_lib_ungif_EGifPutExtensionLast=yes
14196 echo "$as_me: failed program was:" >&5
14197 sed 's/^/| /' conftest.$ac_ext >&5
14199 ac_cv_lib_ungif_EGifPutExtensionLast=no
14202 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14203 conftest$ac_exeext conftest.$ac_ext
14204 LIBS=$ac_check_lib_save_LIBS
14206 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14207 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14208 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14217 if test "${HAVE_GIF}" = "yes"; then
14219 cat >>confdefs.h <<\_ACEOF
14226 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14227 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14228 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14229 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14230 echo $ECHO_N "(cached) $ECHO_C" >&6
14232 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14233 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14235 # Is the header compilable?
14236 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14237 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14238 cat >conftest.$ac_ext <<_ACEOF
14241 cat confdefs.h >>conftest.$ac_ext
14242 cat >>conftest.$ac_ext <<_ACEOF
14243 /* end confdefs.h. */
14244 $ac_includes_default
14245 #include <malloc/malloc.h>
14247 rm -f conftest.$ac_objext
14248 if { (ac_try="$ac_compile"
14249 case "(($ac_try" in
14250 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14251 *) ac_try_echo
=$ac_try;;
14253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14254 (eval "$ac_compile") 2>conftest.er1
14256 grep -v '^ *+' conftest.er1
>conftest.err
14258 cat conftest.err
>&5
14259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260 (exit $ac_status); } && {
14261 test -z "$ac_c_werror_flag" ||
14262 test ! -s conftest.err
14263 } && test -s conftest.
$ac_objext; then
14264 ac_header_compiler
=yes
14266 echo "$as_me: failed program was:" >&5
14267 sed 's/^/| /' conftest.
$ac_ext >&5
14269 ac_header_compiler
=no
14272 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14273 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14274 echo "${ECHO_T}$ac_header_compiler" >&6; }
14276 # Is the header present?
14277 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14278 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14279 cat >conftest.
$ac_ext <<_ACEOF
14282 cat confdefs.h
>>conftest.
$ac_ext
14283 cat >>conftest.
$ac_ext <<_ACEOF
14284 /* end confdefs.h. */
14285 #include <malloc/malloc.h>
14287 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14288 case "(($ac_try" in
14289 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14290 *) ac_try_echo=$ac_try;;
14292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14293 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14295 grep -v '^ *+' conftest.er1 >conftest.err
14297 cat conftest.err >&5
14298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14299 (exit $ac_status); } >/dev/null && {
14300 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14301 test ! -s conftest.err
14303 ac_header_preproc=yes
14305 echo "$as_me: failed program was:" >&5
14306 sed 's/^/| /' conftest.$ac_ext >&5
14308 ac_header_preproc=no
14311 rm -f conftest.err conftest.$ac_ext
14312 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14313 echo "${ECHO_T}$ac_header_preproc" >&6; }
14315 # So? What about this header?
14316 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14318 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14319 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14320 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14321 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14322 ac_header_preproc=yes
14325 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14326 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14327 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14328 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14329 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14330 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14331 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14332 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14333 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14334 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14335 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14336 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14340 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14341 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14342 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14343 echo $ECHO_N "(cached) $ECHO_C" >&6
14345 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14347 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14348 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14351 if test $ac_cv_header_malloc_malloc_h = yes; then
14353 cat >>confdefs.h <<\_ACEOF
14354 #define HAVE_MALLOC_MALLOC_H 1
14361 ### Use Mac OS X Carbon API to implement GUI.
14362 if test "${HAVE_CARBON}" = "yes"; then
14364 cat >>confdefs.h <<\_ACEOF
14365 #define HAVE_CARBON 1
14368 ## Specify the install directory
14370 if test "${carbon_appdir_x}" != ""; then
14371 case ${carbon_appdir_x} in
14372 y | ye | yes) carbon_appdir=/Applications ;;
14373 * ) carbon_appdir=${carbon_appdir_x} ;;
14376 # We also have mouse menus.
14380 ### Use session management (-lSM -lICE) if available
14382 if test "${HAVE_X11}" = "yes"; then
14383 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14384 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14385 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14386 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14387 echo $ECHO_N "(cached) $ECHO_C" >&6
14389 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14390 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14392 # Is the header compilable?
14393 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14394 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14395 cat >conftest.$ac_ext <<_ACEOF
14398 cat confdefs.h >>conftest.$ac_ext
14399 cat >>conftest.$ac_ext <<_ACEOF
14400 /* end confdefs.h. */
14401 $ac_includes_default
14402 #include <X11/SM/SMlib.h>
14404 rm -f conftest.$ac_objext
14405 if { (ac_try="$ac_compile"
14406 case "(($ac_try" in
14407 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14408 *) ac_try_echo
=$ac_try;;
14410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14411 (eval "$ac_compile") 2>conftest.er1
14413 grep -v '^ *+' conftest.er1
>conftest.err
14415 cat conftest.err
>&5
14416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417 (exit $ac_status); } && {
14418 test -z "$ac_c_werror_flag" ||
14419 test ! -s conftest.err
14420 } && test -s conftest.
$ac_objext; then
14421 ac_header_compiler
=yes
14423 echo "$as_me: failed program was:" >&5
14424 sed 's/^/| /' conftest.
$ac_ext >&5
14426 ac_header_compiler
=no
14429 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14430 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14431 echo "${ECHO_T}$ac_header_compiler" >&6; }
14433 # Is the header present?
14434 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14435 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14436 cat >conftest.
$ac_ext <<_ACEOF
14439 cat confdefs.h
>>conftest.
$ac_ext
14440 cat >>conftest.
$ac_ext <<_ACEOF
14441 /* end confdefs.h. */
14442 #include <X11/SM/SMlib.h>
14444 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14445 case "(($ac_try" in
14446 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14447 *) ac_try_echo=$ac_try;;
14449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14450 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14452 grep -v '^ *+' conftest.er1 >conftest.err
14454 cat conftest.err >&5
14455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14456 (exit $ac_status); } >/dev/null && {
14457 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14458 test ! -s conftest.err
14460 ac_header_preproc=yes
14462 echo "$as_me: failed program was:" >&5
14463 sed 's/^/| /' conftest.$ac_ext >&5
14465 ac_header_preproc=no
14468 rm -f conftest.err conftest.$ac_ext
14469 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14470 echo "${ECHO_T}$ac_header_preproc" >&6; }
14472 # So? What about this header?
14473 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14475 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14476 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14477 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14478 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14479 ac_header_preproc=yes
14482 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14483 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14484 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14485 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14486 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14487 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14488 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14489 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14490 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14491 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14492 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14493 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14497 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14498 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14499 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14500 echo $ECHO_N "(cached) $ECHO_C" >&6
14502 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14504 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14505 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14508 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14509 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14510 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14511 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14512 echo $ECHO_N "(cached) $ECHO_C" >&6
14514 ac_check_lib_save_LIBS=$LIBS
14515 LIBS="-lSM -lICE $LIBS"
14516 cat >conftest.$ac_ext <<_ACEOF
14519 cat confdefs.h >>conftest.$ac_ext
14520 cat >>conftest.$ac_ext <<_ACEOF
14521 /* end confdefs.h. */
14523 /* Override any GCC internal prototype to avoid an error.
14524 Use char because int might match the return type of a GCC
14525 builtin and then its argument prototype would still apply. */
14529 char SmcOpenConnection ();
14533 return SmcOpenConnection ();
14538 rm -f conftest.$ac_objext conftest$ac_exeext
14539 if { (ac_try="$ac_link"
14540 case "(($ac_try" in
14541 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14542 *) ac_try_echo
=$ac_try;;
14544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14545 (eval "$ac_link") 2>conftest.er1
14547 grep -v '^ *+' conftest.er1
>conftest.err
14549 cat conftest.err
>&5
14550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14551 (exit $ac_status); } && {
14552 test -z "$ac_c_werror_flag" ||
14553 test ! -s conftest.err
14554 } && test -s conftest
$ac_exeext &&
14555 $as_test_x conftest
$ac_exeext; then
14556 ac_cv_lib_SM_SmcOpenConnection
=yes
14558 echo "$as_me: failed program was:" >&5
14559 sed 's/^/| /' conftest.
$ac_ext >&5
14561 ac_cv_lib_SM_SmcOpenConnection
=no
14564 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14565 conftest
$ac_exeext conftest.
$ac_ext
14566 LIBS
=$ac_check_lib_save_LIBS
14568 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14569 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14570 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14578 if test "${HAVE_X_SM}" = "yes"; then
14580 cat >>confdefs.h
<<\_ACEOF
14581 #define HAVE_X_SM 1
14586 *) LIBS
="-lSM -lICE $LIBS" ;;
14591 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14592 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14593 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14594 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14595 echo $ECHO_N "(cached) $ECHO_C" >&6
14597 cat >conftest.
$ac_ext <<_ACEOF
14600 cat confdefs.h
>>conftest.
$ac_ext
14601 cat >>conftest.
$ac_ext <<_ACEOF
14602 /* end confdefs.h. */
14612 rm -f conftest.
$ac_objext conftest
$ac_exeext
14613 if { (ac_try
="$ac_link"
14614 case "(($ac_try" in
14615 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14616 *) ac_try_echo=$ac_try;;
14618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14619 (eval "$ac_link") 2>conftest.er1
14621 grep -v '^ *+' conftest.er1 >conftest.err
14623 cat conftest.err >&5
14624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14625 (exit $ac_status); } && {
14626 test -z "$ac_c_werror_flag" ||
14627 test ! -s conftest.err
14628 } && test -s conftest$ac_exeext &&
14629 $as_test_x conftest$ac_exeext; then
14630 emacs_cv_netdb_declares_h_errno=yes
14632 echo "$as_me: failed program was:" >&5
14633 sed 's/^/| /' conftest.$ac_ext >&5
14635 emacs_cv_netdb_declares_h_errno=no
14638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14639 conftest$ac_exeext conftest.$ac_ext
14641 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
14642 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
14643 if test $emacs_cv_netdb_declares_h_errno = yes; then
14645 cat >>confdefs.h <<\_ACEOF
14646 #define HAVE_H_ERRNO 1
14651 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14652 # for constant arguments. Useless!
14653 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
14654 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
14655 if test "${ac_cv_working_alloca_h+set}" = set; then
14656 echo $ECHO_N "(cached) $ECHO_C" >&6
14658 cat >conftest.$ac_ext <<_ACEOF
14661 cat confdefs.h >>conftest.$ac_ext
14662 cat >>conftest.$ac_ext <<_ACEOF
14663 /* end confdefs.h. */
14664 #include <alloca.h>
14668 char *p = (char *) alloca (2 * sizeof (int));
14674 rm -f conftest.$ac_objext conftest$ac_exeext
14675 if { (ac_try="$ac_link"
14676 case "(($ac_try" in
14677 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14678 *) ac_try_echo
=$ac_try;;
14680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14681 (eval "$ac_link") 2>conftest.er1
14683 grep -v '^ *+' conftest.er1
>conftest.err
14685 cat conftest.err
>&5
14686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14687 (exit $ac_status); } && {
14688 test -z "$ac_c_werror_flag" ||
14689 test ! -s conftest.err
14690 } && test -s conftest
$ac_exeext &&
14691 $as_test_x conftest
$ac_exeext; then
14692 ac_cv_working_alloca_h
=yes
14694 echo "$as_me: failed program was:" >&5
14695 sed 's/^/| /' conftest.
$ac_ext >&5
14697 ac_cv_working_alloca_h
=no
14700 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14701 conftest
$ac_exeext conftest.
$ac_ext
14703 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14704 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
14705 if test $ac_cv_working_alloca_h = yes; then
14707 cat >>confdefs.h
<<\_ACEOF
14708 #define HAVE_ALLOCA_H 1
14713 { echo "$as_me:$LINENO: checking for alloca" >&5
14714 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
14715 if test "${ac_cv_func_alloca_works+set}" = set; then
14716 echo $ECHO_N "(cached) $ECHO_C" >&6
14718 cat >conftest.
$ac_ext <<_ACEOF
14721 cat confdefs.h
>>conftest.
$ac_ext
14722 cat >>conftest.
$ac_ext <<_ACEOF
14723 /* end confdefs.h. */
14725 # define alloca __builtin_alloca
14728 # include <malloc.h>
14729 # define alloca _alloca
14731 # ifdef HAVE_ALLOCA_H
14732 # include <alloca.h>
14737 # ifndef alloca /* predefined by HP cc +Olibcalls */
14748 char *p = (char *) alloca (1);
14754 rm -f conftest.
$ac_objext conftest
$ac_exeext
14755 if { (ac_try
="$ac_link"
14756 case "(($ac_try" in
14757 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14758 *) ac_try_echo=$ac_try;;
14760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14761 (eval "$ac_link") 2>conftest.er1
14763 grep -v '^ *+' conftest.er1 >conftest.err
14765 cat conftest.err >&5
14766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14767 (exit $ac_status); } && {
14768 test -z "$ac_c_werror_flag" ||
14769 test ! -s conftest.err
14770 } && test -s conftest$ac_exeext &&
14771 $as_test_x conftest$ac_exeext; then
14772 ac_cv_func_alloca_works=yes
14774 echo "$as_me: failed program was:" >&5
14775 sed 's/^/| /' conftest.$ac_ext >&5
14777 ac_cv_func_alloca_works=no
14780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14781 conftest$ac_exeext conftest.$ac_ext
14783 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14784 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
14786 if test $ac_cv_func_alloca_works = yes; then
14788 cat >>confdefs.h <<\_ACEOF
14789 #define HAVE_ALLOCA 1
14793 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14794 # that cause trouble. Some versions do not even contain alloca or
14795 # contain a buggy version. If you still want to use their alloca,
14796 # use ar to extract alloca.o from them instead of compiling alloca.c.
14798 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
14800 cat >>confdefs.h <<\_ACEOF
14805 { echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
14806 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks...
$ECHO_C" >&6; }
14807 if test "${ac_cv_os_cray+set}" = set; then
14808 echo $ECHO_N "(cached
) $ECHO_C" >&6
14810 cat >conftest.$ac_ext <<_ACEOF
14813 cat confdefs.h >>conftest.$ac_ext
14814 cat >>conftest.$ac_ext <<_ACEOF
14815 /* end confdefs.h. */
14816 #if defined CRAY && ! defined CRAY2
14823 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
14824 $EGREP "webecray
" >/dev/null 2>&1; then
14832 { echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
14833 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
14834 if test $ac_cv_os_cray = yes; then
14835 for ac_func in _getb67 GETB67 getb67; do
14836 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
14837 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
14838 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
14839 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
14840 echo $ECHO_N "(cached
) $ECHO_C" >&6
14842 cat >conftest.$ac_ext <<_ACEOF
14845 cat confdefs.h >>conftest.$ac_ext
14846 cat >>conftest.$ac_ext <<_ACEOF
14847 /* end confdefs.h. */
14848 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14850 #define $ac_func innocuous_$ac_func
14852 /* System header to define __stub macros and hopefully few prototypes,
14853 which can conflict with char $ac_func (); below.
14854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14855 <limits.h> exists even on freestanding compilers. */
14858 # include <limits.h>
14860 # include <assert.h>
14865 /* Override any GCC internal prototype to avoid an error.
14866 Use char because int might match the return type of a GCC
14867 builtin and then its argument prototype would still apply. */
14872 /* The GNU C library defines this for functions which it implements
14873 to always fail with ENOSYS. Some functions are actually named
14874 something starting with __ and the normal name is an alias. */
14875 #if defined __stub_$ac_func || defined __stub___$ac_func
14882 return $ac_func ();
14887 rm -f conftest.$ac_objext conftest$ac_exeext
14888 if { (ac_try="$ac_link"
14889 case "(($ac_try" in
14890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14891 *) ac_try_echo=$ac_try;;
14893 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14894 (eval "$ac_link") 2>conftest.er1
14896 grep -v '^ *+' conftest.er1 >conftest.err
14898 cat conftest.err >&5
14899 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14900 (exit $ac_status); } && {
14901 test -z "$ac_c_werror_flag" ||
14902 test ! -s conftest.err
14903 } && test -s conftest$ac_exeext &&
14904 $as_test_x conftest$ac_exeext; then
14905 eval "$as_ac_var=yes"
14907 echo "$as_me: failed program was
:" >&5
14908 sed 's/^/| /' conftest.$ac_ext >&5
14910 eval "$as_ac_var=no
"
14913 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14914 conftest$ac_exeext conftest.$ac_ext
14916 ac_res=`eval echo '${'$as_ac_var'}'`
14917 { echo "$as_me:$LINENO: result
: $ac_res" >&5
14918 echo "${ECHO_T}$ac_res" >&6; }
14919 if test `eval echo '${'$as_ac_var'}'` = yes; then
14921 cat >>confdefs.h <<_ACEOF
14922 #define CRAY_STACKSEG_END $ac_func
14931 { echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
14932 echo $ECHO_N "checking stack direction
for C alloca...
$ECHO_C" >&6; }
14933 if test "${ac_cv_c_stack_direction+set}" = set; then
14934 echo $ECHO_N "(cached
) $ECHO_C" >&6
14936 if test "$cross_compiling" = yes; then
14937 ac_cv_c_stack_direction=0
14939 cat >conftest.$ac_ext <<_ACEOF
14942 cat confdefs.h >>conftest.$ac_ext
14943 cat >>conftest.$ac_ext <<_ACEOF
14944 /* end confdefs.h. */
14945 $ac_includes_default
14947 find_stack_direction ()
14949 static char *addr = 0;
14954 return find_stack_direction ();
14957 return (&dummy > addr) ? 1 : -1;
14963 return find_stack_direction () < 0;
14966 rm -f conftest$ac_exeext
14967 if { (ac_try="$ac_link"
14968 case "(($ac_try" in
14969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14970 *) ac_try_echo=$ac_try;;
14972 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14973 (eval "$ac_link") 2>&5
14975 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14976 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14977 { (case "(($ac_try" in
14978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14979 *) ac_try_echo=$ac_try;;
14981 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14982 (eval "$ac_try") 2>&5
14984 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14985 (exit $ac_status); }; }; then
14986 ac_cv_c_stack_direction=1
14988 echo "$as_me: program exited with status
$ac_status" >&5
14989 echo "$as_me: failed program was
:" >&5
14990 sed 's/^/| /' conftest.$ac_ext >&5
14992 ( exit $ac_status )
14993 ac_cv_c_stack_direction=-1
14995 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15000 { echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
15001 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15003 cat >>confdefs.h <<_ACEOF
15004 #define STACK_DIRECTION $ac_cv_c_stack_direction
15011 # fmod, logb, and frexp are found in -lm on most systems.
15012 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15014 { echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
15015 echo $ECHO_N "checking
for sqrt
in -lm...
$ECHO_C" >&6; }
15016 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15017 echo $ECHO_N "(cached
) $ECHO_C" >&6
15019 ac_check_lib_save_LIBS=$LIBS
15021 cat >conftest.$ac_ext <<_ACEOF
15024 cat confdefs.h >>conftest.$ac_ext
15025 cat >>conftest.$ac_ext <<_ACEOF
15026 /* end confdefs.h. */
15028 /* Override any GCC internal prototype to avoid an error.
15029 Use char because int might match the return type of a GCC
15030 builtin and then its argument prototype would still apply. */
15043 rm -f conftest.$ac_objext conftest$ac_exeext
15044 if { (ac_try="$ac_link"
15045 case "(($ac_try" in
15046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15047 *) ac_try_echo=$ac_try;;
15049 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15050 (eval "$ac_link") 2>conftest.er1
15052 grep -v '^ *+' conftest.er1 >conftest.err
15054 cat conftest.err >&5
15055 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15056 (exit $ac_status); } && {
15057 test -z "$ac_c_werror_flag" ||
15058 test ! -s conftest.err
15059 } && test -s conftest$ac_exeext &&
15060 $as_test_x conftest$ac_exeext; then
15061 ac_cv_lib_m_sqrt=yes
15063 echo "$as_me: failed program was
:" >&5
15064 sed 's/^/| /' conftest.$ac_ext >&5
15066 ac_cv_lib_m_sqrt=no
15069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15070 conftest$ac_exeext conftest.$ac_ext
15071 LIBS=$ac_check_lib_save_LIBS
15073 { echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
15074 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15075 if test $ac_cv_lib_m_sqrt = yes; then
15076 cat >>confdefs.h <<_ACEOF
15077 #define HAVE_LIBM 1
15085 # Check for mail-locking functions in a "mail" library. Probably this should
15086 # have the same check as for liblockfile below.
15088 { echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
15089 echo $ECHO_N "checking
for maillock
in -lmail...
$ECHO_C" >&6; }
15090 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15091 echo $ECHO_N "(cached
) $ECHO_C" >&6
15093 ac_check_lib_save_LIBS=$LIBS
15094 LIBS="-lmail $LIBS"
15095 cat >conftest.$ac_ext <<_ACEOF
15098 cat confdefs.h >>conftest.$ac_ext
15099 cat >>conftest.$ac_ext <<_ACEOF
15100 /* end confdefs.h. */
15102 /* Override any GCC internal prototype to avoid an error.
15103 Use char because int might match the return type of a GCC
15104 builtin and then its argument prototype would still apply. */
15112 return maillock ();
15117 rm -f conftest.$ac_objext conftest$ac_exeext
15118 if { (ac_try="$ac_link"
15119 case "(($ac_try" in
15120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15121 *) ac_try_echo=$ac_try;;
15123 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15124 (eval "$ac_link") 2>conftest.er1
15126 grep -v '^ *+' conftest.er1 >conftest.err
15128 cat conftest.err >&5
15129 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15130 (exit $ac_status); } && {
15131 test -z "$ac_c_werror_flag" ||
15132 test ! -s conftest.err
15133 } && test -s conftest$ac_exeext &&
15134 $as_test_x conftest$ac_exeext; then
15135 ac_cv_lib_mail_maillock=yes
15137 echo "$as_me: failed program was
:" >&5
15138 sed 's/^/| /' conftest.$ac_ext >&5
15140 ac_cv_lib_mail_maillock=no
15143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15144 conftest$ac_exeext conftest.$ac_ext
15145 LIBS=$ac_check_lib_save_LIBS
15147 { echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
15148 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15149 if test $ac_cv_lib_mail_maillock = yes; then
15150 cat >>confdefs.h <<_ACEOF
15151 #define HAVE_LIBMAIL 1
15154 LIBS="-lmail $LIBS"
15159 { echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
15160 echo $ECHO_N "checking
for maillock
in -llockfile...
$ECHO_C" >&6; }
15161 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15162 echo $ECHO_N "(cached
) $ECHO_C" >&6
15164 ac_check_lib_save_LIBS=$LIBS
15165 LIBS="-llockfile $LIBS"
15166 cat >conftest.$ac_ext <<_ACEOF
15169 cat confdefs.h >>conftest.$ac_ext
15170 cat >>conftest.$ac_ext <<_ACEOF
15171 /* end confdefs.h. */
15173 /* Override any GCC internal prototype to avoid an error.
15174 Use char because int might match the return type of a GCC
15175 builtin and then its argument prototype would still apply. */
15183 return maillock ();
15188 rm -f conftest.$ac_objext conftest$ac_exeext
15189 if { (ac_try="$ac_link"
15190 case "(($ac_try" in
15191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15192 *) ac_try_echo=$ac_try;;
15194 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15195 (eval "$ac_link") 2>conftest.er1
15197 grep -v '^ *+' conftest.er1 >conftest.err
15199 cat conftest.err >&5
15200 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15201 (exit $ac_status); } && {
15202 test -z "$ac_c_werror_flag" ||
15203 test ! -s conftest.err
15204 } && test -s conftest$ac_exeext &&
15205 $as_test_x conftest$ac_exeext; then
15206 ac_cv_lib_lockfile_maillock=yes
15208 echo "$as_me: failed program was
:" >&5
15209 sed 's/^/| /' conftest.$ac_ext >&5
15211 ac_cv_lib_lockfile_maillock=no
15214 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15215 conftest$ac_exeext conftest.$ac_ext
15216 LIBS=$ac_check_lib_save_LIBS
15218 { echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
15219 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15220 if test $ac_cv_lib_lockfile_maillock = yes; then
15221 cat >>confdefs.h <<_ACEOF
15222 #define HAVE_LIBLOCKFILE 1
15225 LIBS="-llockfile $LIBS"
15229 # If we have the shared liblockfile, assume we must use it for mail
15230 # locking (e.g. Debian). If we couldn't link against liblockfile
15231 # (no liblockfile.a installed), ensure that we don't need to.
15232 if test "$ac_cv_lib_lockfile_maillock" = no; then
15233 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
15234 set dummy liblockfile.so; ac_word=$2
15235 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
15236 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
15237 if test "${ac_cv_prog_liblockfile+set}" = set; then
15238 echo $ECHO_N "(cached
) $ECHO_C" >&6
15240 if test -n "$liblockfile"; then
15241 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15244 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
15245 for as_dir in $as_dummy
15248 test -z "$as_dir" && as_dir=.
15249 for ac_exec_ext in '' $ac_executable_extensions; do
15250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15251 ac_cv_prog_liblockfile="yes"
15252 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15259 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
15262 liblockfile=$ac_cv_prog_liblockfile
15263 if test -n "$liblockfile"; then
15264 { echo "$as_me:$LINENO: result
: $liblockfile" >&5
15265 echo "${ECHO_T}$liblockfile" >&6; }
15267 { echo "$as_me:$LINENO: result
: no
" >&5
15268 echo "${ECHO_T}no
" >&6; }
15272 if test $ac_cv_prog_liblockfile = yes; then
15273 { { echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
15274 This probably means that movemail could lose mail.
15275 There may be a \`development' package to
install containing liblockfile.
" >&5
15276 echo "$as_me: error
: Shared liblockfile found but can
't link against it.
15277 This probably means that movemail could lose mail.
15278 There may be a \`development' package to
install containing liblockfile.
" >&2;}
15279 { (exit 1); exit 1; }; }
15284 for ac_func in touchlock
15286 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15287 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15288 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15289 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15290 echo $ECHO_N "(cached
) $ECHO_C" >&6
15292 cat >conftest.$ac_ext <<_ACEOF
15295 cat confdefs.h >>conftest.$ac_ext
15296 cat >>conftest.$ac_ext <<_ACEOF
15297 /* end confdefs.h. */
15298 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15299 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15300 #define $ac_func innocuous_$ac_func
15302 /* System header to define __stub macros and hopefully few prototypes,
15303 which can conflict with char $ac_func (); below.
15304 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15305 <limits.h> exists even on freestanding compilers. */
15308 # include <limits.h>
15310 # include <assert.h>
15315 /* Override any GCC internal prototype to avoid an error.
15316 Use char because int might match the return type of a GCC
15317 builtin and then its argument prototype would still apply. */
15322 /* The GNU C library defines this for functions which it implements
15323 to always fail with ENOSYS. Some functions are actually named
15324 something starting with __ and the normal name is an alias. */
15325 #if defined __stub_$ac_func || defined __stub___$ac_func
15332 return $ac_func ();
15337 rm -f conftest.$ac_objext conftest$ac_exeext
15338 if { (ac_try="$ac_link"
15339 case "(($ac_try" in
15340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15341 *) ac_try_echo=$ac_try;;
15343 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15344 (eval "$ac_link") 2>conftest.er1
15346 grep -v '^ *+' conftest.er1 >conftest.err
15348 cat conftest.err >&5
15349 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15350 (exit $ac_status); } && {
15351 test -z "$ac_c_werror_flag" ||
15352 test ! -s conftest.err
15353 } && test -s conftest$ac_exeext &&
15354 $as_test_x conftest$ac_exeext; then
15355 eval "$as_ac_var=yes"
15357 echo "$as_me: failed program was
:" >&5
15358 sed 's/^/| /' conftest.$ac_ext >&5
15360 eval "$as_ac_var=no
"
15363 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15364 conftest$ac_exeext conftest.$ac_ext
15366 ac_res=`eval echo '${'$as_ac_var'}'`
15367 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15368 echo "${ECHO_T}$ac_res" >&6; }
15369 if test `eval echo '${'$as_ac_var'}'` = yes; then
15370 cat >>confdefs.h <<_ACEOF
15371 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15378 for ac_header in maillock.h
15380 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15381 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15382 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15383 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15384 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15385 echo $ECHO_N "(cached
) $ECHO_C" >&6
15387 ac_res=`eval echo '${'$as_ac_Header'}'`
15388 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15389 echo "${ECHO_T}$ac_res" >&6; }
15391 # Is the header compilable?
15392 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15393 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15394 cat >conftest.$ac_ext <<_ACEOF
15397 cat confdefs.h >>conftest.$ac_ext
15398 cat >>conftest.$ac_ext <<_ACEOF
15399 /* end confdefs.h. */
15400 $ac_includes_default
15401 #include <$ac_header>
15403 rm -f conftest.$ac_objext
15404 if { (ac_try="$ac_compile"
15405 case "(($ac_try" in
15406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15407 *) ac_try_echo=$ac_try;;
15409 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15410 (eval "$ac_compile") 2>conftest.er1
15412 grep -v '^ *+' conftest.er1 >conftest.err
15414 cat conftest.err >&5
15415 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15416 (exit $ac_status); } && {
15417 test -z "$ac_c_werror_flag" ||
15418 test ! -s conftest.err
15419 } && test -s conftest.$ac_objext; then
15420 ac_header_compiler=yes
15422 echo "$as_me: failed program was
:" >&5
15423 sed 's/^/| /' conftest.$ac_ext >&5
15425 ac_header_compiler=no
15428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15429 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15430 echo "${ECHO_T}$ac_header_compiler" >&6; }
15432 # Is the header present?
15433 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15434 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15435 cat >conftest.$ac_ext <<_ACEOF
15438 cat confdefs.h >>conftest.$ac_ext
15439 cat >>conftest.$ac_ext <<_ACEOF
15440 /* end confdefs.h. */
15441 #include <$ac_header>
15443 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15444 case "(($ac_try" in
15445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15446 *) ac_try_echo=$ac_try;;
15448 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15449 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15451 grep -v '^ *+' conftest.er1 >conftest.err
15453 cat conftest.err >&5
15454 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15455 (exit $ac_status); } >/dev/null && {
15456 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15457 test ! -s conftest.err
15459 ac_header_preproc=yes
15461 echo "$as_me: failed program was
:" >&5
15462 sed 's/^/| /' conftest.$ac_ext >&5
15464 ac_header_preproc=no
15467 rm -f conftest.err conftest.$ac_ext
15468 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15469 echo "${ECHO_T}$ac_header_preproc" >&6; }
15471 # So? What about this header?
15472 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15474 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15475 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15476 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15477 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15478 ac_header_preproc=yes
15481 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15482 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15483 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15484 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15485 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15486 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15487 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15488 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15489 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15490 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15491 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15492 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15496 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15497 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15498 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15499 echo $ECHO_N "(cached
) $ECHO_C" >&6
15501 eval "$as_ac_Header=\
$ac_header_preproc"
15503 ac_res=`eval echo '${'$as_ac_Header'}'`
15504 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15505 echo "${ECHO_T}$ac_res" >&6; }
15508 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15509 cat >>confdefs.h <<_ACEOF
15510 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15587 for ac_func in gethostname getdomainname dup2 \
15588 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15589 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
15590 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15591 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15592 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15593 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15594 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15595 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15597 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15598 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15599 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15600 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15601 echo $ECHO_N "(cached
) $ECHO_C" >&6
15603 cat >conftest.$ac_ext <<_ACEOF
15606 cat confdefs.h >>conftest.$ac_ext
15607 cat >>conftest.$ac_ext <<_ACEOF
15608 /* end confdefs.h. */
15609 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15610 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15611 #define $ac_func innocuous_$ac_func
15613 /* System header to define __stub macros and hopefully few prototypes,
15614 which can conflict with char $ac_func (); below.
15615 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15616 <limits.h> exists even on freestanding compilers. */
15619 # include <limits.h>
15621 # include <assert.h>
15626 /* Override any GCC internal prototype to avoid an error.
15627 Use char because int might match the return type of a GCC
15628 builtin and then its argument prototype would still apply. */
15633 /* The GNU C library defines this for functions which it implements
15634 to always fail with ENOSYS. Some functions are actually named
15635 something starting with __ and the normal name is an alias. */
15636 #if defined __stub_$ac_func || defined __stub___$ac_func
15643 return $ac_func ();
15648 rm -f conftest.$ac_objext conftest$ac_exeext
15649 if { (ac_try="$ac_link"
15650 case "(($ac_try" in
15651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15652 *) ac_try_echo=$ac_try;;
15654 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15655 (eval "$ac_link") 2>conftest.er1
15657 grep -v '^ *+' conftest.er1 >conftest.err
15659 cat conftest.err >&5
15660 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15661 (exit $ac_status); } && {
15662 test -z "$ac_c_werror_flag" ||
15663 test ! -s conftest.err
15664 } && test -s conftest$ac_exeext &&
15665 $as_test_x conftest$ac_exeext; then
15666 eval "$as_ac_var=yes"
15668 echo "$as_me: failed program was
:" >&5
15669 sed 's/^/| /' conftest.$ac_ext >&5
15671 eval "$as_ac_var=no
"
15674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15675 conftest$ac_exeext conftest.$ac_ext
15677 ac_res=`eval echo '${'$as_ac_var'}'`
15678 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15679 echo "${ECHO_T}$ac_res" >&6; }
15680 if test `eval echo '${'$as_ac_var'}'` = yes; then
15681 cat >>confdefs.h <<_ACEOF
15682 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15690 for ac_header in sys/un.h
15692 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15693 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15694 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15695 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15696 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15697 echo $ECHO_N "(cached
) $ECHO_C" >&6
15699 ac_res=`eval echo '${'$as_ac_Header'}'`
15700 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15701 echo "${ECHO_T}$ac_res" >&6; }
15703 # Is the header compilable?
15704 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15705 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15706 cat >conftest.$ac_ext <<_ACEOF
15709 cat confdefs.h >>conftest.$ac_ext
15710 cat >>conftest.$ac_ext <<_ACEOF
15711 /* end confdefs.h. */
15712 $ac_includes_default
15713 #include <$ac_header>
15715 rm -f conftest.$ac_objext
15716 if { (ac_try="$ac_compile"
15717 case "(($ac_try" in
15718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15719 *) ac_try_echo=$ac_try;;
15721 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15722 (eval "$ac_compile") 2>conftest.er1
15724 grep -v '^ *+' conftest.er1 >conftest.err
15726 cat conftest.err >&5
15727 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15728 (exit $ac_status); } && {
15729 test -z "$ac_c_werror_flag" ||
15730 test ! -s conftest.err
15731 } && test -s conftest.$ac_objext; then
15732 ac_header_compiler=yes
15734 echo "$as_me: failed program was
:" >&5
15735 sed 's/^/| /' conftest.$ac_ext >&5
15737 ac_header_compiler=no
15740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15741 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15742 echo "${ECHO_T}$ac_header_compiler" >&6; }
15744 # Is the header present?
15745 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15746 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15747 cat >conftest.$ac_ext <<_ACEOF
15750 cat confdefs.h >>conftest.$ac_ext
15751 cat >>conftest.$ac_ext <<_ACEOF
15752 /* end confdefs.h. */
15753 #include <$ac_header>
15755 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15756 case "(($ac_try" in
15757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15758 *) ac_try_echo=$ac_try;;
15760 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15761 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15763 grep -v '^ *+' conftest.er1 >conftest.err
15765 cat conftest.err >&5
15766 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15767 (exit $ac_status); } >/dev/null && {
15768 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15769 test ! -s conftest.err
15771 ac_header_preproc=yes
15773 echo "$as_me: failed program was
:" >&5
15774 sed 's/^/| /' conftest.$ac_ext >&5
15776 ac_header_preproc=no
15779 rm -f conftest.err conftest.$ac_ext
15780 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15781 echo "${ECHO_T}$ac_header_preproc" >&6; }
15783 # So? What about this header?
15784 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15786 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15787 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15788 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15789 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15790 ac_header_preproc=yes
15793 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15794 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15795 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15796 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15797 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15798 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15799 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15800 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15801 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15802 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15803 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15804 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15808 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15809 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15810 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15811 echo $ECHO_N "(cached
) $ECHO_C" >&6
15813 eval "$as_ac_Header=\
$ac_header_preproc"
15815 ac_res=`eval echo '${'$as_ac_Header'}'`
15816 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15817 echo "${ECHO_T}$ac_res" >&6; }
15820 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15821 cat >>confdefs.h <<_ACEOF
15822 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15834 for ac_header in $ac_header_list
15836 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15837 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15838 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15839 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15840 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15841 echo $ECHO_N "(cached
) $ECHO_C" >&6
15843 ac_res=`eval echo '${'$as_ac_Header'}'`
15844 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15845 echo "${ECHO_T}$ac_res" >&6; }
15847 # Is the header compilable?
15848 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15849 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15850 cat >conftest.$ac_ext <<_ACEOF
15853 cat confdefs.h >>conftest.$ac_ext
15854 cat >>conftest.$ac_ext <<_ACEOF
15855 /* end confdefs.h. */
15856 $ac_includes_default
15857 #include <$ac_header>
15859 rm -f conftest.$ac_objext
15860 if { (ac_try="$ac_compile"
15861 case "(($ac_try" in
15862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15863 *) ac_try_echo=$ac_try;;
15865 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15866 (eval "$ac_compile") 2>conftest.er1
15868 grep -v '^ *+' conftest.er1 >conftest.err
15870 cat conftest.err >&5
15871 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15872 (exit $ac_status); } && {
15873 test -z "$ac_c_werror_flag" ||
15874 test ! -s conftest.err
15875 } && test -s conftest.$ac_objext; then
15876 ac_header_compiler=yes
15878 echo "$as_me: failed program was
:" >&5
15879 sed 's/^/| /' conftest.$ac_ext >&5
15881 ac_header_compiler=no
15884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15885 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15886 echo "${ECHO_T}$ac_header_compiler" >&6; }
15888 # Is the header present?
15889 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15890 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15891 cat >conftest.$ac_ext <<_ACEOF
15894 cat confdefs.h >>conftest.$ac_ext
15895 cat >>conftest.$ac_ext <<_ACEOF
15896 /* end confdefs.h. */
15897 #include <$ac_header>
15899 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15900 case "(($ac_try" in
15901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15902 *) ac_try_echo=$ac_try;;
15904 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15905 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15907 grep -v '^ *+' conftest.er1 >conftest.err
15909 cat conftest.err >&5
15910 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15911 (exit $ac_status); } >/dev/null && {
15912 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15913 test ! -s conftest.err
15915 ac_header_preproc=yes
15917 echo "$as_me: failed program was
:" >&5
15918 sed 's/^/| /' conftest.$ac_ext >&5
15920 ac_header_preproc=no
15923 rm -f conftest.err conftest.$ac_ext
15924 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15925 echo "${ECHO_T}$ac_header_preproc" >&6; }
15927 # So? What about this header?
15928 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15930 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15931 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15932 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15933 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15934 ac_header_preproc=yes
15937 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15938 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15939 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15940 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15941 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15942 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15943 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15944 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15945 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15946 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15947 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15948 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15952 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15953 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15954 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15955 echo $ECHO_N "(cached
) $ECHO_C" >&6
15957 eval "$as_ac_Header=\
$ac_header_preproc"
15959 ac_res=`eval echo '${'$as_ac_Header'}'`
15960 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15961 echo "${ECHO_T}$ac_res" >&6; }
15964 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15965 cat >>confdefs.h <<_ACEOF
15966 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15981 for ac_func in $ac_func_list
15983 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15984 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15985 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15986 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15987 echo $ECHO_N "(cached
) $ECHO_C" >&6
15989 cat >conftest.$ac_ext <<_ACEOF
15992 cat confdefs.h >>conftest.$ac_ext
15993 cat >>conftest.$ac_ext <<_ACEOF
15994 /* end confdefs.h. */
15995 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15996 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15997 #define $ac_func innocuous_$ac_func
15999 /* System header to define __stub macros and hopefully few prototypes,
16000 which can conflict with char $ac_func (); below.
16001 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16002 <limits.h> exists even on freestanding compilers. */
16005 # include <limits.h>
16007 # include <assert.h>
16012 /* Override any GCC internal prototype to avoid an error.
16013 Use char because int might match the return type of a GCC
16014 builtin and then its argument prototype would still apply. */
16019 /* The GNU C library defines this for functions which it implements
16020 to always fail with ENOSYS. Some functions are actually named
16021 something starting with __ and the normal name is an alias. */
16022 #if defined __stub_$ac_func || defined __stub___$ac_func
16029 return $ac_func ();
16034 rm -f conftest.$ac_objext conftest$ac_exeext
16035 if { (ac_try="$ac_link"
16036 case "(($ac_try" in
16037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16038 *) ac_try_echo=$ac_try;;
16040 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16041 (eval "$ac_link") 2>conftest.er1
16043 grep -v '^ *+' conftest.er1 >conftest.err
16045 cat conftest.err >&5
16046 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16047 (exit $ac_status); } && {
16048 test -z "$ac_c_werror_flag" ||
16049 test ! -s conftest.err
16050 } && test -s conftest$ac_exeext &&
16051 $as_test_x conftest$ac_exeext; then
16052 eval "$as_ac_var=yes"
16054 echo "$as_me: failed program was
:" >&5
16055 sed 's/^/| /' conftest.$ac_ext >&5
16057 eval "$as_ac_var=no
"
16060 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16061 conftest$ac_exeext conftest.$ac_ext
16063 ac_res=`eval echo '${'$as_ac_var'}'`
16064 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16065 echo "${ECHO_T}$ac_res" >&6; }
16066 if test `eval echo '${'$as_ac_var'}'` = yes; then
16067 cat >>confdefs.h <<_ACEOF
16068 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16090 { echo "$as_me:$LINENO: checking
for working mktime
" >&5
16091 echo $ECHO_N "checking
for working mktime...
$ECHO_C" >&6; }
16092 if test "${ac_cv_func_working_mktime+set}" = set; then
16093 echo $ECHO_N "(cached
) $ECHO_C" >&6
16095 if test "$cross_compiling" = yes; then
16096 ac_cv_func_working_mktime=no
16098 cat >conftest.$ac_ext <<_ACEOF
16101 cat confdefs.h >>conftest.$ac_ext
16102 cat >>conftest.$ac_ext <<_ACEOF
16103 /* end confdefs.h. */
16104 /* Test program from Paul Eggert and Tony Leneis. */
16105 #ifdef TIME_WITH_SYS_TIME
16106 # include <sys/time.h>
16109 # ifdef HAVE_SYS_TIME_H
16110 # include <sys/time.h>
16116 #include <stdlib.h>
16118 #ifdef HAVE_UNISTD_H
16119 # include <unistd.h>
16123 # define alarm(X) /* empty */
16126 /* Work around redefinition to rpl_putenv by other config tests. */
16129 static time_t time_t_max;
16130 static time_t time_t_min;
16132 /* Values we'll use to set the TZ environment variable. */
16133 static char *tz_strings[] = {
16134 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
16135 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
16137 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16139 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16140 Based on a problem report from Andreas Jaeger. */
16142 spring_forward_gap ()
16144 /* glibc (up to about 1998-10-07) failed this test. */
16147 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16148 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16149 on systems that don't support the Olson extension, or don't have the
16150 full zoneinfo tables installed. */
16151 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16160 return mktime (&tm) != (time_t) -1;
16168 return ! (lt = localtime (&now)) || mktime (lt) == now;
16175 return (mktime_test1 (now)
16176 && mktime_test1 ((time_t) (time_t_max - now))
16177 && mktime_test1 ((time_t) (time_t_min + now)));
16183 /* Based on code from Ariel Faigon. */
16193 return tm.tm_mon == 2 && tm.tm_mday == 31;
16202 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16203 now = mktime (&tm);
16204 if (now != (time_t) -1)
16206 struct tm *lt = localtime (&now);
16208 && lt->tm_year == tm.tm_year
16209 && lt->tm_mon == tm.tm_mon
16210 && lt->tm_mday == tm.tm_mday
16211 && lt->tm_hour == tm.tm_hour
16212 && lt->tm_min == tm.tm_min
16213 && lt->tm_sec == tm.tm_sec
16214 && lt->tm_yday == tm.tm_yday
16215 && lt->tm_wday == tm.tm_wday
16216 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16217 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16226 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16227 ignoring leap seconds. */
16228 unsigned long int answer = 2527315200UL;
16232 tm.tm_year = 2050 - 1900;
16235 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16238 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16239 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16240 on systems that don't support the Olson extension, or don't have the
16241 full zoneinfo tables installed. */
16242 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16246 /* Check that the result is either a failure, or close enough
16247 to the correct answer that we can assume the discrepancy is
16248 due to leap seconds. */
16249 return (t == (time_t) -1
16250 || (0 < t && answer - 120 <= t && t <= answer + 120));
16259 /* This test makes some buggy mktime implementations loop.
16260 Give up after 60 seconds; a mktime slower than that
16261 isn't worth using anyway. */
16264 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16267 if ((time_t) -1 < 0)
16268 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16270 delta = time_t_max / 997; /* a suitable prime number */
16271 for (i = 0; i < N_STRINGS; i++)
16274 putenv (tz_strings[i]);
16276 for (t = 0; t <= time_t_max - delta; t += delta)
16277 if (! mktime_test (t))
16279 if (! (mktime_test ((time_t) 1)
16280 && mktime_test ((time_t) (60 * 60))
16281 && mktime_test ((time_t) (60 * 60 * 24))))
16284 for (j = 1; 0 < j; j *= 2)
16285 if (! bigtime_test (j))
16287 if (! bigtime_test (j - 1))
16290 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16293 rm -f conftest$ac_exeext
16294 if { (ac_try="$ac_link"
16295 case "(($ac_try" in
16296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16297 *) ac_try_echo=$ac_try;;
16299 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16300 (eval "$ac_link") 2>&5
16302 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16303 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16304 { (case "(($ac_try" in
16305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16306 *) ac_try_echo=$ac_try;;
16308 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16309 (eval "$ac_try") 2>&5
16311 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16312 (exit $ac_status); }; }; then
16313 ac_cv_func_working_mktime=yes
16315 echo "$as_me: program exited with status
$ac_status" >&5
16316 echo "$as_me: failed program was
:" >&5
16317 sed 's/^/| /' conftest.$ac_ext >&5
16319 ( exit $ac_status )
16320 ac_cv_func_working_mktime=no
16322 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16327 { echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
16328 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16329 if test $ac_cv_func_working_mktime = no; then
16330 case " $LIBOBJS " in
16331 *" mktime.
$ac_objext "* ) ;;
16332 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
16338 if test "$ac_cv_func_working_mktime" = no; then
16340 cat >>confdefs.h <<\_ACEOF
16341 #define BROKEN_MKTIME 1
16346 ac_have_func=no # yes means we've found a way to get the load average.
16348 # Make sure getloadavg.c is where it belongs, at configure-time.
16349 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
16350 { { echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
16351 echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
16352 { (exit 1); exit 1; }; }
16356 # Check for getloadavg, but be sure not to touch the cache variable.
16357 ({ echo "$as_me:$LINENO: checking
for getloadavg
" >&5
16358 echo $ECHO_N "checking
for getloadavg...
$ECHO_C" >&6; }
16359 if test "${ac_cv_func_getloadavg+set}" = set; then
16360 echo $ECHO_N "(cached
) $ECHO_C" >&6
16362 cat >conftest.$ac_ext <<_ACEOF
16365 cat confdefs.h >>conftest.$ac_ext
16366 cat >>conftest.$ac_ext <<_ACEOF
16367 /* end confdefs.h. */
16368 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16369 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16370 #define getloadavg innocuous_getloadavg
16372 /* System header to define __stub macros and hopefully few prototypes,
16373 which can conflict with char getloadavg (); below.
16374 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16375 <limits.h> exists even on freestanding compilers. */
16378 # include <limits.h>
16380 # include <assert.h>
16385 /* Override any GCC internal prototype to avoid an error.
16386 Use char because int might match the return type of a GCC
16387 builtin and then its argument prototype would still apply. */
16391 char getloadavg ();
16392 /* The GNU C library defines this for functions which it implements
16393 to always fail with ENOSYS. Some functions are actually named
16394 something starting with __ and the normal name is an alias. */
16395 #if defined __stub_getloadavg || defined __stub___getloadavg
16402 return getloadavg ();
16407 rm -f conftest.$ac_objext conftest$ac_exeext
16408 if { (ac_try="$ac_link"
16409 case "(($ac_try" in
16410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16411 *) ac_try_echo=$ac_try;;
16413 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16414 (eval "$ac_link") 2>conftest.er1
16416 grep -v '^ *+' conftest.er1 >conftest.err
16418 cat conftest.err >&5
16419 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16420 (exit $ac_status); } && {
16421 test -z "$ac_c_werror_flag" ||
16422 test ! -s conftest.err
16423 } && test -s conftest$ac_exeext &&
16424 $as_test_x conftest$ac_exeext; then
16425 ac_cv_func_getloadavg=yes
16427 echo "$as_me: failed program was
:" >&5
16428 sed 's/^/| /' conftest.$ac_ext >&5
16430 ac_cv_func_getloadavg=no
16433 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16434 conftest$ac_exeext conftest.$ac_ext
16436 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
16437 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16438 if test $ac_cv_func_getloadavg = yes; then
16443 ) && ac_have_func=yes
16445 # On HPUX9, an unprivileged user can get load averages through this function.
16447 for ac_func in pstat_getdynamic
16449 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16450 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16451 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16452 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16453 echo $ECHO_N "(cached
) $ECHO_C" >&6
16455 cat >conftest.$ac_ext <<_ACEOF
16458 cat confdefs.h >>conftest.$ac_ext
16459 cat >>conftest.$ac_ext <<_ACEOF
16460 /* end confdefs.h. */
16461 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16462 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16463 #define $ac_func innocuous_$ac_func
16465 /* System header to define __stub macros and hopefully few prototypes,
16466 which can conflict with char $ac_func (); below.
16467 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16468 <limits.h> exists even on freestanding compilers. */
16471 # include <limits.h>
16473 # include <assert.h>
16478 /* Override any GCC internal prototype to avoid an error.
16479 Use char because int might match the return type of a GCC
16480 builtin and then its argument prototype would still apply. */
16485 /* The GNU C library defines this for functions which it implements
16486 to always fail with ENOSYS. Some functions are actually named
16487 something starting with __ and the normal name is an alias. */
16488 #if defined __stub_$ac_func || defined __stub___$ac_func
16495 return $ac_func ();
16500 rm -f conftest.$ac_objext conftest$ac_exeext
16501 if { (ac_try="$ac_link"
16502 case "(($ac_try" in
16503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16504 *) ac_try_echo=$ac_try;;
16506 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16507 (eval "$ac_link") 2>conftest.er1
16509 grep -v '^ *+' conftest.er1 >conftest.err
16511 cat conftest.err >&5
16512 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16513 (exit $ac_status); } && {
16514 test -z "$ac_c_werror_flag" ||
16515 test ! -s conftest.err
16516 } && test -s conftest$ac_exeext &&
16517 $as_test_x conftest$ac_exeext; then
16518 eval "$as_ac_var=yes"
16520 echo "$as_me: failed program was
:" >&5
16521 sed 's/^/| /' conftest.$ac_ext >&5
16523 eval "$as_ac_var=no
"
16526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16527 conftest$ac_exeext conftest.$ac_ext
16529 ac_res=`eval echo '${'$as_ac_var'}'`
16530 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16531 echo "${ECHO_T}$ac_res" >&6; }
16532 if test `eval echo '${'$as_ac_var'}'` = yes; then
16533 cat >>confdefs.h <<_ACEOF
16534 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16541 # Solaris has libkstat which does not require root.
16543 { echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
16544 echo $ECHO_N "checking
for kstat_open
in -lkstat...
$ECHO_C" >&6; }
16545 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16546 echo $ECHO_N "(cached
) $ECHO_C" >&6
16548 ac_check_lib_save_LIBS=$LIBS
16549 LIBS="-lkstat $LIBS"
16550 cat >conftest.$ac_ext <<_ACEOF
16553 cat confdefs.h >>conftest.$ac_ext
16554 cat >>conftest.$ac_ext <<_ACEOF
16555 /* end confdefs.h. */
16557 /* Override any GCC internal prototype to avoid an error.
16558 Use char because int might match the return type of a GCC
16559 builtin and then its argument prototype would still apply. */
16563 char kstat_open ();
16567 return kstat_open ();
16572 rm -f conftest.$ac_objext conftest$ac_exeext
16573 if { (ac_try="$ac_link"
16574 case "(($ac_try" in
16575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16576 *) ac_try_echo=$ac_try;;
16578 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16579 (eval "$ac_link") 2>conftest.er1
16581 grep -v '^ *+' conftest.er1 >conftest.err
16583 cat conftest.err >&5
16584 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16585 (exit $ac_status); } && {
16586 test -z "$ac_c_werror_flag" ||
16587 test ! -s conftest.err
16588 } && test -s conftest$ac_exeext &&
16589 $as_test_x conftest$ac_exeext; then
16590 ac_cv_lib_kstat_kstat_open=yes
16592 echo "$as_me: failed program was
:" >&5
16593 sed 's/^/| /' conftest.$ac_ext >&5
16595 ac_cv_lib_kstat_kstat_open=no
16598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16599 conftest$ac_exeext conftest.$ac_ext
16600 LIBS=$ac_check_lib_save_LIBS
16602 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
16603 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16604 if test $ac_cv_lib_kstat_kstat_open = yes; then
16605 cat >>confdefs.h <<_ACEOF
16606 #define HAVE_LIBKSTAT 1
16609 LIBS="-lkstat $LIBS"
16613 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
16615 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16616 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16617 # to get the right answer into the cache.
16618 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16619 if test $ac_have_func = no; then
16620 { echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
16621 echo $ECHO_N "checking
for elf_begin
in -lelf...
$ECHO_C" >&6; }
16622 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
16623 echo $ECHO_N "(cached
) $ECHO_C" >&6
16625 ac_check_lib_save_LIBS=$LIBS
16627 cat >conftest.$ac_ext <<_ACEOF
16630 cat confdefs.h >>conftest.$ac_ext
16631 cat >>conftest.$ac_ext <<_ACEOF
16632 /* end confdefs.h. */
16634 /* Override any GCC internal prototype to avoid an error.
16635 Use char because int might match the return type of a GCC
16636 builtin and then its argument prototype would still apply. */
16644 return elf_begin ();
16649 rm -f conftest.$ac_objext conftest$ac_exeext
16650 if { (ac_try="$ac_link"
16651 case "(($ac_try" in
16652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16653 *) ac_try_echo=$ac_try;;
16655 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16656 (eval "$ac_link") 2>conftest.er1
16658 grep -v '^ *+' conftest.er1 >conftest.err
16660 cat conftest.err >&5
16661 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16662 (exit $ac_status); } && {
16663 test -z "$ac_c_werror_flag" ||
16664 test ! -s conftest.err
16665 } && test -s conftest$ac_exeext &&
16666 $as_test_x conftest$ac_exeext; then
16667 ac_cv_lib_elf_elf_begin=yes
16669 echo "$as_me: failed program was
:" >&5
16670 sed 's/^/| /' conftest.$ac_ext >&5
16672 ac_cv_lib_elf_elf_begin=no
16675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16676 conftest$ac_exeext conftest.$ac_ext
16677 LIBS=$ac_check_lib_save_LIBS
16679 { echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
16680 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
16681 if test $ac_cv_lib_elf_elf_begin = yes; then
16686 if test $ac_have_func = no; then
16687 { echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
16688 echo $ECHO_N "checking
for kvm_open
in -lkvm...
$ECHO_C" >&6; }
16689 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
16690 echo $ECHO_N "(cached
) $ECHO_C" >&6
16692 ac_check_lib_save_LIBS=$LIBS
16694 cat >conftest.$ac_ext <<_ACEOF
16697 cat confdefs.h >>conftest.$ac_ext
16698 cat >>conftest.$ac_ext <<_ACEOF
16699 /* end confdefs.h. */
16701 /* Override any GCC internal prototype to avoid an error.
16702 Use char because int might match the return type of a GCC
16703 builtin and then its argument prototype would still apply. */
16711 return kvm_open ();
16716 rm -f conftest.$ac_objext conftest$ac_exeext
16717 if { (ac_try="$ac_link"
16718 case "(($ac_try" in
16719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16720 *) ac_try_echo=$ac_try;;
16722 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16723 (eval "$ac_link") 2>conftest.er1
16725 grep -v '^ *+' conftest.er1 >conftest.err
16727 cat conftest.err >&5
16728 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16729 (exit $ac_status); } && {
16730 test -z "$ac_c_werror_flag" ||
16731 test ! -s conftest.err
16732 } && test -s conftest$ac_exeext &&
16733 $as_test_x conftest$ac_exeext; then
16734 ac_cv_lib_kvm_kvm_open=yes
16736 echo "$as_me: failed program was
:" >&5
16737 sed 's/^/| /' conftest.$ac_ext >&5
16739 ac_cv_lib_kvm_kvm_open=no
16742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16743 conftest$ac_exeext conftest.$ac_ext
16744 LIBS=$ac_check_lib_save_LIBS
16746 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
16747 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
16748 if test $ac_cv_lib_kvm_kvm_open = yes; then
16752 # Check for the 4.4BSD definition of getloadavg.
16753 { echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
16754 echo $ECHO_N "checking
for getloadavg
in -lutil...
$ECHO_C" >&6; }
16755 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
16756 echo $ECHO_N "(cached
) $ECHO_C" >&6
16758 ac_check_lib_save_LIBS=$LIBS
16759 LIBS="-lutil $LIBS"
16760 cat >conftest.$ac_ext <<_ACEOF
16763 cat confdefs.h >>conftest.$ac_ext
16764 cat >>conftest.$ac_ext <<_ACEOF
16765 /* end confdefs.h. */
16767 /* Override any GCC internal prototype to avoid an error.
16768 Use char because int might match the return type of a GCC
16769 builtin and then its argument prototype would still apply. */
16773 char getloadavg ();
16777 return getloadavg ();
16782 rm -f conftest.$ac_objext conftest$ac_exeext
16783 if { (ac_try="$ac_link"
16784 case "(($ac_try" in
16785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16786 *) ac_try_echo=$ac_try;;
16788 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16789 (eval "$ac_link") 2>conftest.er1
16791 grep -v '^ *+' conftest.er1 >conftest.err
16793 cat conftest.err >&5
16794 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16795 (exit $ac_status); } && {
16796 test -z "$ac_c_werror_flag" ||
16797 test ! -s conftest.err
16798 } && test -s conftest$ac_exeext &&
16799 $as_test_x conftest$ac_exeext; then
16800 ac_cv_lib_util_getloadavg=yes
16802 echo "$as_me: failed program was
:" >&5
16803 sed 's/^/| /' conftest.$ac_ext >&5
16805 ac_cv_lib_util_getloadavg=no
16808 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16809 conftest$ac_exeext conftest.$ac_ext
16810 LIBS=$ac_check_lib_save_LIBS
16812 { echo "$as_me:$LINENO: result
: $ac_cv_lib_util_getloadavg" >&5
16813 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
16814 if test $ac_cv_lib_util_getloadavg = yes; then
16815 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
16820 if test $ac_have_func = no; then
16821 # There is a commonly available library for RS/6000 AIX.
16822 # Since it is not a standard part of AIX, it might be installed locally.
16823 ac_getloadavg_LIBS=$LIBS
16824 LIBS="-L/usr
/local
/lib
$LIBS"
16825 { echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
16826 echo $ECHO_N "checking
for getloadavg
in -lgetloadavg...
$ECHO_C" >&6; }
16827 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
16828 echo $ECHO_N "(cached
) $ECHO_C" >&6
16830 ac_check_lib_save_LIBS=$LIBS
16831 LIBS="-lgetloadavg $LIBS"
16832 cat >conftest.$ac_ext <<_ACEOF
16835 cat confdefs.h >>conftest.$ac_ext
16836 cat >>conftest.$ac_ext <<_ACEOF
16837 /* end confdefs.h. */
16839 /* Override any GCC internal prototype to avoid an error.
16840 Use char because int might match the return type of a GCC
16841 builtin and then its argument prototype would still apply. */
16845 char getloadavg ();
16849 return getloadavg ();
16854 rm -f conftest.$ac_objext conftest$ac_exeext
16855 if { (ac_try="$ac_link"
16856 case "(($ac_try" in
16857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16858 *) ac_try_echo=$ac_try;;
16860 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16861 (eval "$ac_link") 2>conftest.er1
16863 grep -v '^ *+' conftest.er1 >conftest.err
16865 cat conftest.err >&5
16866 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16867 (exit $ac_status); } && {
16868 test -z "$ac_c_werror_flag" ||
16869 test ! -s conftest.err
16870 } && test -s conftest$ac_exeext &&
16871 $as_test_x conftest$ac_exeext; then
16872 ac_cv_lib_getloadavg_getloadavg=yes
16874 echo "$as_me: failed program was
:" >&5
16875 sed 's/^/| /' conftest.$ac_ext >&5
16877 ac_cv_lib_getloadavg_getloadavg=no
16880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16881 conftest$ac_exeext conftest.$ac_ext
16882 LIBS=$ac_check_lib_save_LIBS
16884 { echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
16885 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
16886 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
16887 LIBS="-lgetloadavg $LIBS"
16889 LIBS=$ac_getloadavg_LIBS
16894 # Make sure it is really in the library, if we think we found it,
16895 # otherwise set up the replacement function.
16897 for ac_func in getloadavg
16899 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16900 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16901 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16902 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16903 echo $ECHO_N "(cached
) $ECHO_C" >&6
16905 cat >conftest.$ac_ext <<_ACEOF
16908 cat confdefs.h >>conftest.$ac_ext
16909 cat >>conftest.$ac_ext <<_ACEOF
16910 /* end confdefs.h. */
16911 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16912 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16913 #define $ac_func innocuous_$ac_func
16915 /* System header to define __stub macros and hopefully few prototypes,
16916 which can conflict with char $ac_func (); below.
16917 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16918 <limits.h> exists even on freestanding compilers. */
16921 # include <limits.h>
16923 # include <assert.h>
16928 /* Override any GCC internal prototype to avoid an error.
16929 Use char because int might match the return type of a GCC
16930 builtin and then its argument prototype would still apply. */
16935 /* The GNU C library defines this for functions which it implements
16936 to always fail with ENOSYS. Some functions are actually named
16937 something starting with __ and the normal name is an alias. */
16938 #if defined __stub_$ac_func || defined __stub___$ac_func
16945 return $ac_func ();
16950 rm -f conftest.$ac_objext conftest$ac_exeext
16951 if { (ac_try="$ac_link"
16952 case "(($ac_try" in
16953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16954 *) ac_try_echo=$ac_try;;
16956 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16957 (eval "$ac_link") 2>conftest.er1
16959 grep -v '^ *+' conftest.er1 >conftest.err
16961 cat conftest.err >&5
16962 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16963 (exit $ac_status); } && {
16964 test -z "$ac_c_werror_flag" ||
16965 test ! -s conftest.err
16966 } && test -s conftest$ac_exeext &&
16967 $as_test_x conftest$ac_exeext; then
16968 eval "$as_ac_var=yes"
16970 echo "$as_me: failed program was
:" >&5
16971 sed 's/^/| /' conftest.$ac_ext >&5
16973 eval "$as_ac_var=no
"
16976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16977 conftest$ac_exeext conftest.$ac_ext
16979 ac_res=`eval echo '${'$as_ac_var'}'`
16980 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16981 echo "${ECHO_T}$ac_res" >&6; }
16982 if test `eval echo '${'$as_ac_var'}'` = yes; then
16983 cat >>confdefs.h <<_ACEOF
16984 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16988 case " $LIBOBJS " in
16989 *" getloadavg.
$ac_objext "* ) ;;
16990 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
16995 cat >>confdefs.h <<\_ACEOF
16996 #define C_GETLOADAVG 1
16999 # Figure out what our getloadavg.c needs.
17001 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17002 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17003 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17004 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17005 echo $ECHO_N "(cached
) $ECHO_C" >&6
17007 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17008 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17010 # Is the header compilable?
17011 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
17012 echo $ECHO_N "checking sys
/dg_sys_info.h usability...
$ECHO_C" >&6; }
17013 cat >conftest.$ac_ext <<_ACEOF
17016 cat confdefs.h >>conftest.$ac_ext
17017 cat >>conftest.$ac_ext <<_ACEOF
17018 /* end confdefs.h. */
17019 $ac_includes_default
17020 #include <sys/dg_sys_info.h>
17022 rm -f conftest.$ac_objext
17023 if { (ac_try="$ac_compile"
17024 case "(($ac_try" in
17025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17026 *) ac_try_echo=$ac_try;;
17028 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17029 (eval "$ac_compile") 2>conftest.er1
17031 grep -v '^ *+' conftest.er1 >conftest.err
17033 cat conftest.err >&5
17034 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17035 (exit $ac_status); } && {
17036 test -z "$ac_c_werror_flag" ||
17037 test ! -s conftest.err
17038 } && test -s conftest.$ac_objext; then
17039 ac_header_compiler=yes
17041 echo "$as_me: failed program was
:" >&5
17042 sed 's/^/| /' conftest.$ac_ext >&5
17044 ac_header_compiler=no
17047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17048 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17049 echo "${ECHO_T}$ac_header_compiler" >&6; }
17051 # Is the header present?
17052 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
17053 echo $ECHO_N "checking sys
/dg_sys_info.h presence...
$ECHO_C" >&6; }
17054 cat >conftest.$ac_ext <<_ACEOF
17057 cat confdefs.h >>conftest.$ac_ext
17058 cat >>conftest.$ac_ext <<_ACEOF
17059 /* end confdefs.h. */
17060 #include <sys/dg_sys_info.h>
17062 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17063 case "(($ac_try" in
17064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17065 *) ac_try_echo=$ac_try;;
17067 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17068 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17070 grep -v '^ *+' conftest.er1 >conftest.err
17072 cat conftest.err >&5
17073 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17074 (exit $ac_status); } >/dev/null && {
17075 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17076 test ! -s conftest.err
17078 ac_header_preproc=yes
17080 echo "$as_me: failed program was
:" >&5
17081 sed 's/^/| /' conftest.$ac_ext >&5
17083 ac_header_preproc=no
17086 rm -f conftest.err conftest.$ac_ext
17087 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17088 echo "${ECHO_T}$ac_header_preproc" >&6; }
17090 # So? What about this header?
17091 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17093 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17094 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17095 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
17096 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
17097 ac_header_preproc=yes
17100 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
17101 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
17102 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
17103 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
17104 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
17105 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
17106 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17107 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17108 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
17109 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
17110 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
17111 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
17115 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17116 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17117 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17118 echo $ECHO_N "(cached
) $ECHO_C" >&6
17120 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17122 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17123 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17126 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17129 cat >>confdefs.h <<\_ACEOF
17134 { echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
17135 echo $ECHO_N "checking
for dg_sys_info
in -ldgc...
$ECHO_C" >&6; }
17136 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17137 echo $ECHO_N "(cached
) $ECHO_C" >&6
17139 ac_check_lib_save_LIBS=$LIBS
17141 cat >conftest.$ac_ext <<_ACEOF
17144 cat confdefs.h >>conftest.$ac_ext
17145 cat >>conftest.$ac_ext <<_ACEOF
17146 /* end confdefs.h. */
17148 /* Override any GCC internal prototype to avoid an error.
17149 Use char because int might match the return type of a GCC
17150 builtin and then its argument prototype would still apply. */
17154 char dg_sys_info ();
17158 return dg_sys_info ();
17163 rm -f conftest.$ac_objext conftest$ac_exeext
17164 if { (ac_try="$ac_link"
17165 case "(($ac_try" in
17166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17167 *) ac_try_echo=$ac_try;;
17169 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17170 (eval "$ac_link") 2>conftest.er1
17172 grep -v '^ *+' conftest.er1 >conftest.err
17174 cat conftest.err >&5
17175 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17176 (exit $ac_status); } && {
17177 test -z "$ac_c_werror_flag" ||
17178 test ! -s conftest.err
17179 } && test -s conftest$ac_exeext &&
17180 $as_test_x conftest$ac_exeext; then
17181 ac_cv_lib_dgc_dg_sys_info=yes
17183 echo "$as_me: failed program was
:" >&5
17184 sed 's/^/| /' conftest.$ac_ext >&5
17186 ac_cv_lib_dgc_dg_sys_info=no
17189 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17190 conftest$ac_exeext conftest.$ac_ext
17191 LIBS=$ac_check_lib_save_LIBS
17193 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
17194 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17195 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17196 cat >>confdefs.h <<_ACEOF
17197 #define HAVE_LIBDGC 1
17208 if test "${ac_cv_header_locale_h+set}" = set; then
17209 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17210 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17211 if test "${ac_cv_header_locale_h+set}" = set; then
17212 echo $ECHO_N "(cached
) $ECHO_C" >&6
17214 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17215 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17217 # Is the header compilable?
17218 { echo "$as_me:$LINENO: checking locale.h usability
" >&5
17219 echo $ECHO_N "checking locale.h usability...
$ECHO_C" >&6; }
17220 cat >conftest.$ac_ext <<_ACEOF
17223 cat confdefs.h >>conftest.$ac_ext
17224 cat >>conftest.$ac_ext <<_ACEOF
17225 /* end confdefs.h. */
17226 $ac_includes_default
17227 #include <locale.h>
17229 rm -f conftest.$ac_objext
17230 if { (ac_try="$ac_compile"
17231 case "(($ac_try" in
17232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17233 *) ac_try_echo=$ac_try;;
17235 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17236 (eval "$ac_compile") 2>conftest.er1
17238 grep -v '^ *+' conftest.er1 >conftest.err
17240 cat conftest.err >&5
17241 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17242 (exit $ac_status); } && {
17243 test -z "$ac_c_werror_flag" ||
17244 test ! -s conftest.err
17245 } && test -s conftest.$ac_objext; then
17246 ac_header_compiler=yes
17248 echo "$as_me: failed program was
:" >&5
17249 sed 's/^/| /' conftest.$ac_ext >&5
17251 ac_header_compiler=no
17254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17255 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17256 echo "${ECHO_T}$ac_header_compiler" >&6; }
17258 # Is the header present?
17259 { echo "$as_me:$LINENO: checking locale.h presence
" >&5
17260 echo $ECHO_N "checking locale.h presence...
$ECHO_C" >&6; }
17261 cat >conftest.$ac_ext <<_ACEOF
17264 cat confdefs.h >>conftest.$ac_ext
17265 cat >>conftest.$ac_ext <<_ACEOF
17266 /* end confdefs.h. */
17267 #include <locale.h>
17269 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17270 case "(($ac_try" in
17271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17272 *) ac_try_echo=$ac_try;;
17274 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17275 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17277 grep -v '^ *+' conftest.er1 >conftest.err
17279 cat conftest.err >&5
17280 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17281 (exit $ac_status); } >/dev/null && {
17282 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17283 test ! -s conftest.err
17285 ac_header_preproc=yes
17287 echo "$as_me: failed program was
:" >&5
17288 sed 's/^/| /' conftest.$ac_ext >&5
17290 ac_header_preproc=no
17293 rm -f conftest.err conftest.$ac_ext
17294 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17295 echo "${ECHO_T}$ac_header_preproc" >&6; }
17297 # So? What about this header?
17298 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17300 { echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17301 echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17302 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
17303 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
17304 ac_header_preproc=yes
17307 { echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
17308 echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
17309 { echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
17310 echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
17311 { echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
17312 echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
17313 { echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17314 echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17315 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
17316 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
17317 { echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
17318 echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
17322 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17323 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17324 if test "${ac_cv_header_locale_h+set}" = set; then
17325 echo $ECHO_N "(cached
) $ECHO_C" >&6
17327 ac_cv_header_locale_h=$ac_header_preproc
17329 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17330 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17336 for ac_func in setlocale
17338 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17339 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17340 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17341 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17342 echo $ECHO_N "(cached
) $ECHO_C" >&6
17344 cat >conftest.$ac_ext <<_ACEOF
17347 cat confdefs.h >>conftest.$ac_ext
17348 cat >>conftest.$ac_ext <<_ACEOF
17349 /* end confdefs.h. */
17350 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17351 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17352 #define $ac_func innocuous_$ac_func
17354 /* System header to define __stub macros and hopefully few prototypes,
17355 which can conflict with char $ac_func (); below.
17356 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17357 <limits.h> exists even on freestanding compilers. */
17360 # include <limits.h>
17362 # include <assert.h>
17367 /* Override any GCC internal prototype to avoid an error.
17368 Use char because int might match the return type of a GCC
17369 builtin and then its argument prototype would still apply. */
17374 /* The GNU C library defines this for functions which it implements
17375 to always fail with ENOSYS. Some functions are actually named
17376 something starting with __ and the normal name is an alias. */
17377 #if defined __stub_$ac_func || defined __stub___$ac_func
17384 return $ac_func ();
17389 rm -f conftest.$ac_objext conftest$ac_exeext
17390 if { (ac_try="$ac_link"
17391 case "(($ac_try" in
17392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17393 *) ac_try_echo=$ac_try;;
17395 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17396 (eval "$ac_link") 2>conftest.er1
17398 grep -v '^ *+' conftest.er1 >conftest.err
17400 cat conftest.err >&5
17401 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17402 (exit $ac_status); } && {
17403 test -z "$ac_c_werror_flag" ||
17404 test ! -s conftest.err
17405 } && test -s conftest$ac_exeext &&
17406 $as_test_x conftest$ac_exeext; then
17407 eval "$as_ac_var=yes"
17409 echo "$as_me: failed program was
:" >&5
17410 sed 's/^/| /' conftest.$ac_ext >&5
17412 eval "$as_ac_var=no
"
17415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17416 conftest$ac_exeext conftest.$ac_ext
17418 ac_res=`eval echo '${'$as_ac_var'}'`
17419 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17420 echo "${ECHO_T}$ac_res" >&6; }
17421 if test `eval echo '${'$as_ac_var'}'` = yes; then
17422 cat >>confdefs.h <<_ACEOF
17423 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17430 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17431 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17432 # Irix 4.0.5F has the header but not the library.
17433 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17436 cat >>confdefs.h <<\_ACEOF
17442 if test $ac_have_func = no; then
17443 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17444 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17445 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17446 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17447 echo $ECHO_N "(cached
) $ECHO_C" >&6
17449 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17450 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17452 # Is the header compilable?
17453 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
17454 echo $ECHO_N "checking inq_stats
/cpustats.h usability...
$ECHO_C" >&6; }
17455 cat >conftest.$ac_ext <<_ACEOF
17458 cat confdefs.h >>conftest.$ac_ext
17459 cat >>conftest.$ac_ext <<_ACEOF
17460 /* end confdefs.h. */
17461 $ac_includes_default
17462 #include <inq_stats/cpustats.h>
17464 rm -f conftest.$ac_objext
17465 if { (ac_try="$ac_compile"
17466 case "(($ac_try" in
17467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17468 *) ac_try_echo=$ac_try;;
17470 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17471 (eval "$ac_compile") 2>conftest.er1
17473 grep -v '^ *+' conftest.er1 >conftest.err
17475 cat conftest.err >&5
17476 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17477 (exit $ac_status); } && {
17478 test -z "$ac_c_werror_flag" ||
17479 test ! -s conftest.err
17480 } && test -s conftest.$ac_objext; then
17481 ac_header_compiler=yes
17483 echo "$as_me: failed program was
:" >&5
17484 sed 's/^/| /' conftest.$ac_ext >&5
17486 ac_header_compiler=no
17489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17490 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17491 echo "${ECHO_T}$ac_header_compiler" >&6; }
17493 # Is the header present?
17494 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
17495 echo $ECHO_N "checking inq_stats
/cpustats.h presence...
$ECHO_C" >&6; }
17496 cat >conftest.$ac_ext <<_ACEOF
17499 cat confdefs.h >>conftest.$ac_ext
17500 cat >>conftest.$ac_ext <<_ACEOF
17501 /* end confdefs.h. */
17502 #include <inq_stats/cpustats.h>
17504 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17505 case "(($ac_try" in
17506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17507 *) ac_try_echo=$ac_try;;
17509 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17510 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17512 grep -v '^ *+' conftest.er1 >conftest.err
17514 cat conftest.err >&5
17515 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17516 (exit $ac_status); } >/dev/null && {
17517 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17518 test ! -s conftest.err
17520 ac_header_preproc=yes
17522 echo "$as_me: failed program was
:" >&5
17523 sed 's/^/| /' conftest.$ac_ext >&5
17525 ac_header_preproc=no
17528 rm -f conftest.err conftest.$ac_ext
17529 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17530 echo "${ECHO_T}$ac_header_preproc" >&6; }
17532 # So? What about this header?
17533 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17535 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17536 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17537 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
17538 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
17539 ac_header_preproc=yes
17542 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
17543 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
17544 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
17545 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
17546 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
17547 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
17548 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17549 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17550 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
17551 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
17552 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
17553 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
17557 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17558 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17559 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17560 echo $ECHO_N "(cached
) $ECHO_C" >&6
17562 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17564 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17565 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17568 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17571 cat >>confdefs.h <<\_ACEOF
17576 cat >>confdefs.h <<\_ACEOF
17585 if test $ac_have_func = no; then
17586 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17587 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
17588 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
17589 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17590 echo $ECHO_N "(cached
) $ECHO_C" >&6
17592 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
17593 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17595 # Is the header compilable?
17596 { echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
17597 echo $ECHO_N "checking sys
/cpustats.h usability...
$ECHO_C" >&6; }
17598 cat >conftest.$ac_ext <<_ACEOF
17601 cat confdefs.h >>conftest.$ac_ext
17602 cat >>conftest.$ac_ext <<_ACEOF
17603 /* end confdefs.h. */
17604 $ac_includes_default
17605 #include <sys/cpustats.h>
17607 rm -f conftest.$ac_objext
17608 if { (ac_try="$ac_compile"
17609 case "(($ac_try" in
17610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17611 *) ac_try_echo=$ac_try;;
17613 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17614 (eval "$ac_compile") 2>conftest.er1
17616 grep -v '^ *+' conftest.er1 >conftest.err
17618 cat conftest.err >&5
17619 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17620 (exit $ac_status); } && {
17621 test -z "$ac_c_werror_flag" ||
17622 test ! -s conftest.err
17623 } && test -s conftest.$ac_objext; then
17624 ac_header_compiler=yes
17626 echo "$as_me: failed program was
:" >&5
17627 sed 's/^/| /' conftest.$ac_ext >&5
17629 ac_header_compiler=no
17632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17633 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17634 echo "${ECHO_T}$ac_header_compiler" >&6; }
17636 # Is the header present?
17637 { echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
17638 echo $ECHO_N "checking sys
/cpustats.h presence...
$ECHO_C" >&6; }
17639 cat >conftest.$ac_ext <<_ACEOF
17642 cat confdefs.h >>conftest.$ac_ext
17643 cat >>conftest.$ac_ext <<_ACEOF
17644 /* end confdefs.h. */
17645 #include <sys/cpustats.h>
17647 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17648 case "(($ac_try" in
17649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17650 *) ac_try_echo=$ac_try;;
17652 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17653 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17655 grep -v '^ *+' conftest.er1 >conftest.err
17657 cat conftest.err >&5
17658 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17659 (exit $ac_status); } >/dev/null && {
17660 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17661 test ! -s conftest.err
17663 ac_header_preproc=yes
17665 echo "$as_me: failed program was
:" >&5
17666 sed 's/^/| /' conftest.$ac_ext >&5
17668 ac_header_preproc=no
17671 rm -f conftest.err conftest.$ac_ext
17672 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17673 echo "${ECHO_T}$ac_header_preproc" >&6; }
17675 # So? What about this header?
17676 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17678 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17679 echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17680 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
17681 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
17682 ac_header_preproc=yes
17685 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
17686 echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
17687 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
17688 echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
17689 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
17690 echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
17691 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17692 echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17693 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
17694 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
17695 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
17696 echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
17700 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
17701 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
17702 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17703 echo $ECHO_N "(cached
) $ECHO_C" >&6
17705 ac_cv_header_sys_cpustats_h=$ac_header_preproc
17707 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
17708 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17711 if test $ac_cv_header_sys_cpustats_h = yes; then
17712 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
17721 if test $ac_have_func = no; then
17723 for ac_header in mach/mach.h
17725 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17726 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17727 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17728 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17729 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17730 echo $ECHO_N "(cached
) $ECHO_C" >&6
17732 ac_res=`eval echo '${'$as_ac_Header'}'`
17733 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17734 echo "${ECHO_T}$ac_res" >&6; }
17736 # Is the header compilable?
17737 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17738 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
17739 cat >conftest.$ac_ext <<_ACEOF
17742 cat confdefs.h >>conftest.$ac_ext
17743 cat >>conftest.$ac_ext <<_ACEOF
17744 /* end confdefs.h. */
17745 $ac_includes_default
17746 #include <$ac_header>
17748 rm -f conftest.$ac_objext
17749 if { (ac_try="$ac_compile"
17750 case "(($ac_try" in
17751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17752 *) ac_try_echo=$ac_try;;
17754 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17755 (eval "$ac_compile") 2>conftest.er1
17757 grep -v '^ *+' conftest.er1 >conftest.err
17759 cat conftest.err >&5
17760 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17761 (exit $ac_status); } && {
17762 test -z "$ac_c_werror_flag" ||
17763 test ! -s conftest.err
17764 } && test -s conftest.$ac_objext; then
17765 ac_header_compiler=yes
17767 echo "$as_me: failed program was
:" >&5
17768 sed 's/^/| /' conftest.$ac_ext >&5
17770 ac_header_compiler=no
17773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17774 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17775 echo "${ECHO_T}$ac_header_compiler" >&6; }
17777 # Is the header present?
17778 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17779 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
17780 cat >conftest.$ac_ext <<_ACEOF
17783 cat confdefs.h >>conftest.$ac_ext
17784 cat >>conftest.$ac_ext <<_ACEOF
17785 /* end confdefs.h. */
17786 #include <$ac_header>
17788 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17789 case "(($ac_try" in
17790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17791 *) ac_try_echo=$ac_try;;
17793 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17794 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17796 grep -v '^ *+' conftest.er1 >conftest.err
17798 cat conftest.err >&5
17799 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17800 (exit $ac_status); } >/dev/null && {
17801 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17802 test ! -s conftest.err
17804 ac_header_preproc=yes
17806 echo "$as_me: failed program was
:" >&5
17807 sed 's/^/| /' conftest.$ac_ext >&5
17809 ac_header_preproc=no
17812 rm -f conftest.err conftest.$ac_ext
17813 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17814 echo "${ECHO_T}$ac_header_preproc" >&6; }
17816 # So? What about this header?
17817 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17819 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17820 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17821 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17822 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17823 ac_header_preproc=yes
17826 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17827 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17828 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17829 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17830 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17831 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17832 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17833 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17834 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17835 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17836 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17837 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17841 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17842 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17843 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17844 echo $ECHO_N "(cached
) $ECHO_C" >&6
17846 eval "$as_ac_Header=\
$ac_header_preproc"
17848 ac_res=`eval echo '${'$as_ac_Header'}'`
17849 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17850 echo "${ECHO_T}$ac_res" >&6; }
17853 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17854 cat >>confdefs.h <<_ACEOF
17855 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17865 for ac_header in nlist.h
17867 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17868 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17869 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17870 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17871 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17872 echo $ECHO_N "(cached
) $ECHO_C" >&6
17874 ac_res=`eval echo '${'$as_ac_Header'}'`
17875 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17876 echo "${ECHO_T}$ac_res" >&6; }
17878 # Is the header compilable?
17879 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17880 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
17881 cat >conftest.$ac_ext <<_ACEOF
17884 cat confdefs.h >>conftest.$ac_ext
17885 cat >>conftest.$ac_ext <<_ACEOF
17886 /* end confdefs.h. */
17887 $ac_includes_default
17888 #include <$ac_header>
17890 rm -f conftest.$ac_objext
17891 if { (ac_try="$ac_compile"
17892 case "(($ac_try" in
17893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17894 *) ac_try_echo=$ac_try;;
17896 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17897 (eval "$ac_compile") 2>conftest.er1
17899 grep -v '^ *+' conftest.er1 >conftest.err
17901 cat conftest.err >&5
17902 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17903 (exit $ac_status); } && {
17904 test -z "$ac_c_werror_flag" ||
17905 test ! -s conftest.err
17906 } && test -s conftest.$ac_objext; then
17907 ac_header_compiler=yes
17909 echo "$as_me: failed program was
:" >&5
17910 sed 's/^/| /' conftest.$ac_ext >&5
17912 ac_header_compiler=no
17915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17916 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17917 echo "${ECHO_T}$ac_header_compiler" >&6; }
17919 # Is the header present?
17920 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17921 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
17922 cat >conftest.$ac_ext <<_ACEOF
17925 cat confdefs.h >>conftest.$ac_ext
17926 cat >>conftest.$ac_ext <<_ACEOF
17927 /* end confdefs.h. */
17928 #include <$ac_header>
17930 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17931 case "(($ac_try" in
17932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17933 *) ac_try_echo=$ac_try;;
17935 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17936 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17938 grep -v '^ *+' conftest.er1 >conftest.err
17940 cat conftest.err >&5
17941 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17942 (exit $ac_status); } >/dev/null && {
17943 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17944 test ! -s conftest.err
17946 ac_header_preproc=yes
17948 echo "$as_me: failed program was
:" >&5
17949 sed 's/^/| /' conftest.$ac_ext >&5
17951 ac_header_preproc=no
17954 rm -f conftest.err conftest.$ac_ext
17955 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17956 echo "${ECHO_T}$ac_header_preproc" >&6; }
17958 # So? What about this header?
17959 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17961 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17962 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17963 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17964 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17965 ac_header_preproc=yes
17968 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17969 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17970 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17971 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17972 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17973 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17974 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17975 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17976 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17977 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17978 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17979 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17983 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17984 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17985 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17986 echo $ECHO_N "(cached
) $ECHO_C" >&6
17988 eval "$as_ac_Header=\
$ac_header_preproc"
17990 ac_res=`eval echo '${'$as_ac_Header'}'`
17991 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17992 echo "${ECHO_T}$ac_res" >&6; }
17995 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17996 cat >>confdefs.h <<_ACEOF
17997 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17999 { echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
18000 echo $ECHO_N "checking
for struct nlist.n_un.n_name...
$ECHO_C" >&6; }
18001 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18002 echo $ECHO_N "(cached
) $ECHO_C" >&6
18004 cat >conftest.$ac_ext <<_ACEOF
18007 cat confdefs.h >>conftest.$ac_ext
18008 cat >>conftest.$ac_ext <<_ACEOF
18009 /* end confdefs.h. */
18015 static struct nlist ac_aggr;
18016 if (ac_aggr.n_un.n_name)
18022 rm -f conftest.$ac_objext
18023 if { (ac_try="$ac_compile"
18024 case "(($ac_try" in
18025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18026 *) ac_try_echo=$ac_try;;
18028 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18029 (eval "$ac_compile") 2>conftest.er1
18031 grep -v '^ *+' conftest.er1 >conftest.err
18033 cat conftest.err >&5
18034 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18035 (exit $ac_status); } && {
18036 test -z "$ac_c_werror_flag" ||
18037 test ! -s conftest.err
18038 } && test -s conftest.$ac_objext; then
18039 ac_cv_member_struct_nlist_n_un_n_name=yes
18041 echo "$as_me: failed program was
:" >&5
18042 sed 's/^/| /' conftest.$ac_ext >&5
18044 cat >conftest.$ac_ext <<_ACEOF
18047 cat confdefs.h >>conftest.$ac_ext
18048 cat >>conftest.$ac_ext <<_ACEOF
18049 /* end confdefs.h. */
18055 static struct nlist ac_aggr;
18056 if (sizeof ac_aggr.n_un.n_name)
18062 rm -f conftest.$ac_objext
18063 if { (ac_try="$ac_compile"
18064 case "(($ac_try" in
18065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18066 *) ac_try_echo=$ac_try;;
18068 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18069 (eval "$ac_compile") 2>conftest.er1
18071 grep -v '^ *+' conftest.er1 >conftest.err
18073 cat conftest.err >&5
18074 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18075 (exit $ac_status); } && {
18076 test -z "$ac_c_werror_flag" ||
18077 test ! -s conftest.err
18078 } && test -s conftest.$ac_objext; then
18079 ac_cv_member_struct_nlist_n_un_n_name=yes
18081 echo "$as_me: failed program was
:" >&5
18082 sed 's/^/| /' conftest.$ac_ext >&5
18084 ac_cv_member_struct_nlist_n_un_n_name=no
18087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18092 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18093 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18094 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18096 cat >>confdefs.h <<_ACEOF
18097 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18101 cat >>confdefs.h <<\_ACEOF
18102 #define NLIST_NAME_UNION 1
18116 # Some definitions of getloadavg require that the program be installed setgid.
18117 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
18118 echo $ECHO_N "checking whether getloadavg requires setgid...
$ECHO_C" >&6; }
18119 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18120 echo $ECHO_N "(cached
) $ECHO_C" >&6
18122 cat >conftest.$ac_ext <<_ACEOF
18125 cat confdefs.h >>conftest.$ac_ext
18126 cat >>conftest.$ac_ext <<_ACEOF
18127 /* end confdefs.h. */
18128 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
18129 #ifdef LDAV_PRIVILEGED
18130 Yowza Am I SETGID yet
18133 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
18134 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
18135 ac_cv_func_getloadavg_setgid=yes
18137 ac_cv_func_getloadavg_setgid=no
18142 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
18143 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18144 if test $ac_cv_func_getloadavg_setgid = yes; then
18147 cat >>confdefs.h <<\_ACEOF
18148 #define GETLOADAVG_PRIVILEGED 1
18155 if test $ac_cv_func_getloadavg_setgid = yes; then
18156 { echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
18157 echo $ECHO_N "checking group of
/dev
/kmem...
$ECHO_C" >&6; }
18158 if test "${ac_cv_group_kmem+set}" = set; then
18159 echo $ECHO_N "(cached
) $ECHO_C" >&6
18161 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18162 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18163 # If we got an error (system does not support symlinks), try without -L.
18164 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18165 ac_cv_group_kmem=`echo $ac_ls_output \
18166 | sed -ne 's/[ ][ ]*/ /g;
18167 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18171 { echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
18172 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18173 KMEM_GROUP=$ac_cv_group_kmem
18175 if test "x
$ac_save_LIBS" = x; then
18176 GETLOADAVG_LIBS=$LIBS
18178 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s
!$ac_save_LIBS!!"`
18184 { echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
18185 echo $ECHO_N "checking
for _LARGEFILE_SOURCE value needed
for large files...
$ECHO_C" >&6; }
18186 if test "${ac_cv_sys_largefile_source+set}" = set; then
18187 echo $ECHO_N "(cached
) $ECHO_C" >&6
18190 cat >conftest.$ac_ext <<_ACEOF
18193 cat confdefs.h >>conftest.$ac_ext
18194 cat >>conftest.$ac_ext <<_ACEOF
18195 /* end confdefs.h. */
18200 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18205 rm -f conftest.$ac_objext conftest$ac_exeext
18206 if { (ac_try="$ac_link"
18207 case "(($ac_try" in
18208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18209 *) ac_try_echo=$ac_try;;
18211 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18212 (eval "$ac_link") 2>conftest.er1
18214 grep -v '^ *+' conftest.er1 >conftest.err
18216 cat conftest.err >&5
18217 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18218 (exit $ac_status); } && {
18219 test -z "$ac_c_werror_flag" ||
18220 test ! -s conftest.err
18221 } && test -s conftest$ac_exeext &&
18222 $as_test_x conftest$ac_exeext; then
18223 ac_cv_sys_largefile_source=no; break
18225 echo "$as_me: failed program was
:" >&5
18226 sed 's/^/| /' conftest.$ac_ext >&5
18231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18232 conftest$ac_exeext conftest.$ac_ext
18233 cat >conftest.$ac_ext <<_ACEOF
18236 cat confdefs.h >>conftest.$ac_ext
18237 cat >>conftest.$ac_ext <<_ACEOF
18238 /* end confdefs.h. */
18239 #define _LARGEFILE_SOURCE 1
18244 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18249 rm -f conftest.$ac_objext conftest$ac_exeext
18250 if { (ac_try="$ac_link"
18251 case "(($ac_try" in
18252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18253 *) ac_try_echo=$ac_try;;
18255 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18256 (eval "$ac_link") 2>conftest.er1
18258 grep -v '^ *+' conftest.er1 >conftest.err
18260 cat conftest.err >&5
18261 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18262 (exit $ac_status); } && {
18263 test -z "$ac_c_werror_flag" ||
18264 test ! -s conftest.err
18265 } && test -s conftest$ac_exeext &&
18266 $as_test_x conftest$ac_exeext; then
18267 ac_cv_sys_largefile_source=1; break
18269 echo "$as_me: failed program was
:" >&5
18270 sed 's/^/| /' conftest.$ac_ext >&5
18275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18276 conftest$ac_exeext conftest.$ac_ext
18277 ac_cv_sys_largefile_source=unknown
18281 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
18282 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18283 case $ac_cv_sys_largefile_source in #(
18286 cat >>confdefs.h <<_ACEOF
18287 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18293 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18294 # in glibc 2.1.3, but that breaks too many other things.
18295 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18296 if test $ac_cv_sys_largefile_source != unknown; then
18298 cat >>confdefs.h <<\_ACEOF
18299 #define HAVE_FSEEKO 1
18305 # Configure getopt.
18306 # getopt.m4 serial 10
18308 # The getopt module assume you want GNU getopt, with getopt_long etc,
18309 # rather than vanilla POSIX getopt. This means your your code should
18310 # always include <getopt.h> for the getopt prototypes.
18322 # Prerequisites of lib/getopt*.
18329 for ac_header in getopt.h
18331 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18332 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18333 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18334 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18335 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18336 echo $ECHO_N "(cached
) $ECHO_C" >&6
18338 ac_res=`eval echo '${'$as_ac_Header'}'`
18339 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18340 echo "${ECHO_T}$ac_res" >&6; }
18342 # Is the header compilable?
18343 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18344 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18345 cat >conftest.$ac_ext <<_ACEOF
18348 cat confdefs.h >>conftest.$ac_ext
18349 cat >>conftest.$ac_ext <<_ACEOF
18350 /* end confdefs.h. */
18351 $ac_includes_default
18352 #include <$ac_header>
18354 rm -f conftest.$ac_objext
18355 if { (ac_try="$ac_compile"
18356 case "(($ac_try" in
18357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18358 *) ac_try_echo=$ac_try;;
18360 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18361 (eval "$ac_compile") 2>conftest.er1
18363 grep -v '^ *+' conftest.er1 >conftest.err
18365 cat conftest.err >&5
18366 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18367 (exit $ac_status); } && {
18368 test -z "$ac_c_werror_flag" ||
18369 test ! -s conftest.err
18370 } && test -s conftest.$ac_objext; then
18371 ac_header_compiler=yes
18373 echo "$as_me: failed program was
:" >&5
18374 sed 's/^/| /' conftest.$ac_ext >&5
18376 ac_header_compiler=no
18379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18380 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18381 echo "${ECHO_T}$ac_header_compiler" >&6; }
18383 # Is the header present?
18384 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18385 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18386 cat >conftest.$ac_ext <<_ACEOF
18389 cat confdefs.h >>conftest.$ac_ext
18390 cat >>conftest.$ac_ext <<_ACEOF
18391 /* end confdefs.h. */
18392 #include <$ac_header>
18394 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18395 case "(($ac_try" in
18396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18397 *) ac_try_echo=$ac_try;;
18399 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18400 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18402 grep -v '^ *+' conftest.er1 >conftest.err
18404 cat conftest.err >&5
18405 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18406 (exit $ac_status); } >/dev/null && {
18407 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18408 test ! -s conftest.err
18410 ac_header_preproc=yes
18412 echo "$as_me: failed program was
:" >&5
18413 sed 's/^/| /' conftest.$ac_ext >&5
18415 ac_header_preproc=no
18418 rm -f conftest.err conftest.$ac_ext
18419 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18420 echo "${ECHO_T}$ac_header_preproc" >&6; }
18422 # So? What about this header?
18423 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18425 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18426 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18427 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18428 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18429 ac_header_preproc=yes
18432 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18433 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18434 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18435 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18436 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18437 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18438 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18439 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18440 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18441 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18442 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18443 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18447 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18448 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18449 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18450 echo $ECHO_N "(cached
) $ECHO_C" >&6
18452 eval "$as_ac_Header=\
$ac_header_preproc"
18454 ac_res=`eval echo '${'$as_ac_Header'}'`
18455 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18456 echo "${ECHO_T}$ac_res" >&6; }
18459 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18460 cat >>confdefs.h <<_ACEOF
18461 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18470 if test -z "$GETOPT_H"; then
18472 for ac_func in getopt_long_only
18474 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18475 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18476 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18477 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18478 echo $ECHO_N "(cached
) $ECHO_C" >&6
18480 cat >conftest.$ac_ext <<_ACEOF
18483 cat confdefs.h >>conftest.$ac_ext
18484 cat >>conftest.$ac_ext <<_ACEOF
18485 /* end confdefs.h. */
18486 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18487 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18488 #define $ac_func innocuous_$ac_func
18490 /* System header to define __stub macros and hopefully few prototypes,
18491 which can conflict with char $ac_func (); below.
18492 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18493 <limits.h> exists even on freestanding compilers. */
18496 # include <limits.h>
18498 # include <assert.h>
18503 /* Override any GCC internal prototype to avoid an error.
18504 Use char because int might match the return type of a GCC
18505 builtin and then its argument prototype would still apply. */
18510 /* The GNU C library defines this for functions which it implements
18511 to always fail with ENOSYS. Some functions are actually named
18512 something starting with __ and the normal name is an alias. */
18513 #if defined __stub_$ac_func || defined __stub___$ac_func
18520 return $ac_func ();
18525 rm -f conftest.$ac_objext conftest$ac_exeext
18526 if { (ac_try="$ac_link"
18527 case "(($ac_try" in
18528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18529 *) ac_try_echo=$ac_try;;
18531 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18532 (eval "$ac_link") 2>conftest.er1
18534 grep -v '^ *+' conftest.er1 >conftest.err
18536 cat conftest.err >&5
18537 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18538 (exit $ac_status); } && {
18539 test -z "$ac_c_werror_flag" ||
18540 test ! -s conftest.err
18541 } && test -s conftest$ac_exeext &&
18542 $as_test_x conftest$ac_exeext; then
18543 eval "$as_ac_var=yes"
18545 echo "$as_me: failed program was
:" >&5
18546 sed 's/^/| /' conftest.$ac_ext >&5
18548 eval "$as_ac_var=no
"
18551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18552 conftest$ac_exeext conftest.$ac_ext
18554 ac_res=`eval echo '${'$as_ac_var'}'`
18555 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18556 echo "${ECHO_T}$ac_res" >&6; }
18557 if test `eval echo '${'$as_ac_var'}'` = yes; then
18558 cat >>confdefs.h <<_ACEOF
18559 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18569 if test -z "$GETOPT_H"; then
18570 { echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
18571 echo $ECHO_N "checking whether optreset is declared...
$ECHO_C" >&6; }
18572 if test "${ac_cv_have_decl_optreset+set}" = set; then
18573 echo $ECHO_N "(cached
) $ECHO_C" >&6
18575 cat >conftest.$ac_ext <<_ACEOF
18578 cat confdefs.h >>conftest.$ac_ext
18579 cat >>conftest.$ac_ext <<_ACEOF
18580 /* end confdefs.h. */
18581 #include <getopt.h>
18594 rm -f conftest.$ac_objext
18595 if { (ac_try="$ac_compile"
18596 case "(($ac_try" in
18597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18598 *) ac_try_echo=$ac_try;;
18600 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18601 (eval "$ac_compile") 2>conftest.er1
18603 grep -v '^ *+' conftest.er1 >conftest.err
18605 cat conftest.err >&5
18606 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18607 (exit $ac_status); } && {
18608 test -z "$ac_c_werror_flag" ||
18609 test ! -s conftest.err
18610 } && test -s conftest.$ac_objext; then
18611 ac_cv_have_decl_optreset=yes
18613 echo "$as_me: failed program was
:" >&5
18614 sed 's/^/| /' conftest.$ac_ext >&5
18616 ac_cv_have_decl_optreset=no
18619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18621 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
18622 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
18623 if test $ac_cv_have_decl_optreset = yes; then
18629 if test -z "$GETOPT_H"; then
18630 { echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
18631 echo $ECHO_N "checking
for working GNU getopt
function...
$ECHO_C" >&6; }
18632 if test "${gl_cv_func_gnu_getopt+set}" = set; then
18633 echo $ECHO_N "(cached
) $ECHO_C" >&6
18635 if test "$cross_compiling" = yes; then
18636 { echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
18637 echo $ECHO_N "checking whether getopt_clip is declared...
$ECHO_C" >&6; }
18638 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
18639 echo $ECHO_N "(cached
) $ECHO_C" >&6
18641 cat >conftest.$ac_ext <<_ACEOF
18644 cat confdefs.h >>conftest.$ac_ext
18645 cat >>conftest.$ac_ext <<_ACEOF
18646 /* end confdefs.h. */
18647 #include <getopt.h>
18652 #ifndef getopt_clip
18653 (void) getopt_clip;
18660 rm -f conftest.$ac_objext
18661 if { (ac_try="$ac_compile"
18662 case "(($ac_try" in
18663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18664 *) ac_try_echo=$ac_try;;
18666 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18667 (eval "$ac_compile") 2>conftest.er1
18669 grep -v '^ *+' conftest.er1 >conftest.err
18671 cat conftest.err >&5
18672 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18673 (exit $ac_status); } && {
18674 test -z "$ac_c_werror_flag" ||
18675 test ! -s conftest.err
18676 } && test -s conftest.$ac_objext; then
18677 ac_cv_have_decl_getopt_clip=yes
18679 echo "$as_me: failed program was
:" >&5
18680 sed 's/^/| /' conftest.$ac_ext >&5
18682 ac_cv_have_decl_getopt_clip=no
18685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18687 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
18688 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
18689 if test $ac_cv_have_decl_getopt_clip = yes; then
18690 gl_cv_func_gnu_getopt=no
18692 gl_cv_func_gnu_getopt=yes
18696 cat >conftest.$ac_ext <<_ACEOF
18699 cat confdefs.h >>conftest.$ac_ext
18700 cat >>conftest.$ac_ext <<_ACEOF
18701 /* end confdefs.h. */
18702 #include <getopt.h>
18708 myargv[0] = "conftest
";
18711 return getopt (2, myargv, "+a
") != '?';
18717 rm -f conftest$ac_exeext
18718 if { (ac_try="$ac_link"
18719 case "(($ac_try" in
18720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18721 *) ac_try_echo=$ac_try;;
18723 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18724 (eval "$ac_link") 2>&5
18726 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18727 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18728 { (case "(($ac_try" in
18729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18730 *) ac_try_echo=$ac_try;;
18732 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18733 (eval "$ac_try") 2>&5
18735 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18736 (exit $ac_status); }; }; then
18737 gl_cv_func_gnu_getopt=yes
18739 echo "$as_me: program exited with status
$ac_status" >&5
18740 echo "$as_me: failed program was
:" >&5
18741 sed 's/^/| /' conftest.$ac_ext >&5
18743 ( exit $ac_status )
18744 gl_cv_func_gnu_getopt=no
18746 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18751 { echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
18752 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
18753 if test "$gl_cv_func_gnu_getopt" = "no
"; then
18760 if test -n "$GETOPT_H"; then
18765 cat >>confdefs.h <<\_ACEOF
18766 #define __GETOPT_PREFIX rpl_
18772 GETOPTOBJS='getopt.o getopt1.o'
18779 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
18780 echo $ECHO_N "checking whether getpgrp requires zero arguments...
$ECHO_C" >&6; }
18781 if test "${ac_cv_func_getpgrp_void+set}" = set; then
18782 echo $ECHO_N "(cached
) $ECHO_C" >&6
18784 # Use it with a single arg.
18785 cat >conftest.$ac_ext <<_ACEOF
18788 cat confdefs.h >>conftest.$ac_ext
18789 cat >>conftest.$ac_ext <<_ACEOF
18790 /* end confdefs.h. */
18791 $ac_includes_default
18800 rm -f conftest.$ac_objext
18801 if { (ac_try="$ac_compile"
18802 case "(($ac_try" in
18803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18804 *) ac_try_echo=$ac_try;;
18806 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18807 (eval "$ac_compile") 2>conftest.er1
18809 grep -v '^ *+' conftest.er1 >conftest.err
18811 cat conftest.err >&5
18812 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18813 (exit $ac_status); } && {
18814 test -z "$ac_c_werror_flag" ||
18815 test ! -s conftest.err
18816 } && test -s conftest.$ac_objext; then
18817 ac_cv_func_getpgrp_void=no
18819 echo "$as_me: failed program was
:" >&5
18820 sed 's/^/| /' conftest.$ac_ext >&5
18822 ac_cv_func_getpgrp_void=yes
18825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18828 { echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
18829 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
18830 if test $ac_cv_func_getpgrp_void = yes; then
18832 cat >>confdefs.h <<\_ACEOF
18833 #define GETPGRP_VOID 1
18840 for ac_func in strftime
18842 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18843 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18844 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18845 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18846 echo $ECHO_N "(cached
) $ECHO_C" >&6
18848 cat >conftest.$ac_ext <<_ACEOF
18851 cat confdefs.h >>conftest.$ac_ext
18852 cat >>conftest.$ac_ext <<_ACEOF
18853 /* end confdefs.h. */
18854 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18855 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18856 #define $ac_func innocuous_$ac_func
18858 /* System header to define __stub macros and hopefully few prototypes,
18859 which can conflict with char $ac_func (); below.
18860 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18861 <limits.h> exists even on freestanding compilers. */
18864 # include <limits.h>
18866 # include <assert.h>
18871 /* Override any GCC internal prototype to avoid an error.
18872 Use char because int might match the return type of a GCC
18873 builtin and then its argument prototype would still apply. */
18878 /* The GNU C library defines this for functions which it implements
18879 to always fail with ENOSYS. Some functions are actually named
18880 something starting with __ and the normal name is an alias. */
18881 #if defined __stub_$ac_func || defined __stub___$ac_func
18888 return $ac_func ();
18893 rm -f conftest.$ac_objext conftest$ac_exeext
18894 if { (ac_try="$ac_link"
18895 case "(($ac_try" in
18896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18897 *) ac_try_echo=$ac_try;;
18899 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18900 (eval "$ac_link") 2>conftest.er1
18902 grep -v '^ *+' conftest.er1 >conftest.err
18904 cat conftest.err >&5
18905 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18906 (exit $ac_status); } && {
18907 test -z "$ac_c_werror_flag" ||
18908 test ! -s conftest.err
18909 } && test -s conftest$ac_exeext &&
18910 $as_test_x conftest$ac_exeext; then
18911 eval "$as_ac_var=yes"
18913 echo "$as_me: failed program was
:" >&5
18914 sed 's/^/| /' conftest.$ac_ext >&5
18916 eval "$as_ac_var=no
"
18919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18920 conftest$ac_exeext conftest.$ac_ext
18922 ac_res=`eval echo '${'$as_ac_var'}'`
18923 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18924 echo "${ECHO_T}$ac_res" >&6; }
18925 if test `eval echo '${'$as_ac_var'}'` = yes; then
18926 cat >>confdefs.h <<_ACEOF
18927 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18931 # strftime is in -lintl on SCO UNIX.
18932 { echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
18933 echo $ECHO_N "checking
for strftime
in -lintl...
$ECHO_C" >&6; }
18934 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18935 echo $ECHO_N "(cached
) $ECHO_C" >&6
18937 ac_check_lib_save_LIBS=$LIBS
18938 LIBS="-lintl $LIBS"
18939 cat >conftest.$ac_ext <<_ACEOF
18942 cat confdefs.h >>conftest.$ac_ext
18943 cat >>conftest.$ac_ext <<_ACEOF
18944 /* end confdefs.h. */
18946 /* Override any GCC internal prototype to avoid an error.
18947 Use char because int might match the return type of a GCC
18948 builtin and then its argument prototype would still apply. */
18956 return strftime ();
18961 rm -f conftest.$ac_objext conftest$ac_exeext
18962 if { (ac_try="$ac_link"
18963 case "(($ac_try" in
18964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18965 *) ac_try_echo=$ac_try;;
18967 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18968 (eval "$ac_link") 2>conftest.er1
18970 grep -v '^ *+' conftest.er1 >conftest.err
18972 cat conftest.err >&5
18973 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18974 (exit $ac_status); } && {
18975 test -z "$ac_c_werror_flag" ||
18976 test ! -s conftest.err
18977 } && test -s conftest$ac_exeext &&
18978 $as_test_x conftest$ac_exeext; then
18979 ac_cv_lib_intl_strftime=yes
18981 echo "$as_me: failed program was
:" >&5
18982 sed 's/^/| /' conftest.$ac_ext >&5
18984 ac_cv_lib_intl_strftime=no
18987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18988 conftest$ac_exeext conftest.$ac_ext
18989 LIBS=$ac_check_lib_save_LIBS
18991 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
18992 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
18993 if test $ac_cv_lib_intl_strftime = yes; then
18994 cat >>confdefs.h <<\_ACEOF
18995 #define HAVE_STRFTIME 1
18998 LIBS="-lintl $LIBS"
19007 for ac_func in grantpt
19009 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19010 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19011 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19012 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19013 echo $ECHO_N "(cached
) $ECHO_C" >&6
19015 cat >conftest.$ac_ext <<_ACEOF
19018 cat confdefs.h >>conftest.$ac_ext
19019 cat >>conftest.$ac_ext <<_ACEOF
19020 /* end confdefs.h. */
19021 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19022 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19023 #define $ac_func innocuous_$ac_func
19025 /* System header to define __stub macros and hopefully few prototypes,
19026 which can conflict with char $ac_func (); below.
19027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19028 <limits.h> exists even on freestanding compilers. */
19031 # include <limits.h>
19033 # include <assert.h>
19038 /* Override any GCC internal prototype to avoid an error.
19039 Use char because int might match the return type of a GCC
19040 builtin and then its argument prototype would still apply. */
19045 /* The GNU C library defines this for functions which it implements
19046 to always fail with ENOSYS. Some functions are actually named
19047 something starting with __ and the normal name is an alias. */
19048 #if defined __stub_$ac_func || defined __stub___$ac_func
19055 return $ac_func ();
19060 rm -f conftest.$ac_objext conftest$ac_exeext
19061 if { (ac_try="$ac_link"
19062 case "(($ac_try" in
19063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19064 *) ac_try_echo=$ac_try;;
19066 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19067 (eval "$ac_link") 2>conftest.er1
19069 grep -v '^ *+' conftest.er1 >conftest.err
19071 cat conftest.err >&5
19072 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19073 (exit $ac_status); } && {
19074 test -z "$ac_c_werror_flag" ||
19075 test ! -s conftest.err
19076 } && test -s conftest$ac_exeext &&
19077 $as_test_x conftest$ac_exeext; then
19078 eval "$as_ac_var=yes"
19080 echo "$as_me: failed program was
:" >&5
19081 sed 's/^/| /' conftest.$ac_ext >&5
19083 eval "$as_ac_var=no
"
19086 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19087 conftest$ac_exeext conftest.$ac_ext
19089 ac_res=`eval echo '${'$as_ac_var'}'`
19090 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19091 echo "${ECHO_T}$ac_res" >&6; }
19092 if test `eval echo '${'$as_ac_var'}'` = yes; then
19093 cat >>confdefs.h <<_ACEOF
19094 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19101 # PTY-related GNU extensions.
19103 for ac_func in getpt
19105 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19106 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19107 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19108 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19109 echo $ECHO_N "(cached
) $ECHO_C" >&6
19111 cat >conftest.$ac_ext <<_ACEOF
19114 cat confdefs.h >>conftest.$ac_ext
19115 cat >>conftest.$ac_ext <<_ACEOF
19116 /* end confdefs.h. */
19117 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19118 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19119 #define $ac_func innocuous_$ac_func
19121 /* System header to define __stub macros and hopefully few prototypes,
19122 which can conflict with char $ac_func (); below.
19123 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19124 <limits.h> exists even on freestanding compilers. */
19127 # include <limits.h>
19129 # include <assert.h>
19134 /* Override any GCC internal prototype to avoid an error.
19135 Use char because int might match the return type of a GCC
19136 builtin and then its argument prototype would still apply. */
19141 /* The GNU C library defines this for functions which it implements
19142 to always fail with ENOSYS. Some functions are actually named
19143 something starting with __ and the normal name is an alias. */
19144 #if defined __stub_$ac_func || defined __stub___$ac_func
19151 return $ac_func ();
19156 rm -f conftest.$ac_objext conftest$ac_exeext
19157 if { (ac_try="$ac_link"
19158 case "(($ac_try" in
19159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19160 *) ac_try_echo=$ac_try;;
19162 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19163 (eval "$ac_link") 2>conftest.er1
19165 grep -v '^ *+' conftest.er1 >conftest.err
19167 cat conftest.err >&5
19168 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19169 (exit $ac_status); } && {
19170 test -z "$ac_c_werror_flag" ||
19171 test ! -s conftest.err
19172 } && test -s conftest$ac_exeext &&
19173 $as_test_x conftest$ac_exeext; then
19174 eval "$as_ac_var=yes"
19176 echo "$as_me: failed program was
:" >&5
19177 sed 's/^/| /' conftest.$ac_ext >&5
19179 eval "$as_ac_var=no
"
19182 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19183 conftest$ac_exeext conftest.$ac_ext
19185 ac_res=`eval echo '${'$as_ac_var'}'`
19186 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19187 echo "${ECHO_T}$ac_res" >&6; }
19188 if test `eval echo '${'$as_ac_var'}'` = yes; then
19189 cat >>confdefs.h <<_ACEOF
19190 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19197 # Check this now, so that we will NOT find the above functions in ncurses.
19198 # That is because we have not set up to link ncurses in lib-src.
19199 # It's better to believe a function is not available
19200 # than to expect to find it in ncurses.
19202 { echo "$as_me:$LINENO: checking
for tparm
in -lncurses" >&5
19203 echo $ECHO_N "checking
for tparm
in -lncurses...
$ECHO_C" >&6; }
19204 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19205 echo $ECHO_N "(cached
) $ECHO_C" >&6
19207 ac_check_lib_save_LIBS=$LIBS
19208 LIBS="-lncurses $LIBS"
19209 cat >conftest.$ac_ext <<_ACEOF
19212 cat confdefs.h >>conftest.$ac_ext
19213 cat >>conftest.$ac_ext <<_ACEOF
19214 /* end confdefs.h. */
19216 /* Override any GCC internal prototype to avoid an error.
19217 Use char because int might match the return type of a GCC
19218 builtin and then its argument prototype would still apply. */
19231 rm -f conftest.$ac_objext conftest$ac_exeext
19232 if { (ac_try="$ac_link"
19233 case "(($ac_try" in
19234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19235 *) ac_try_echo=$ac_try;;
19237 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19238 (eval "$ac_link") 2>conftest.er1
19240 grep -v '^ *+' conftest.er1 >conftest.err
19242 cat conftest.err >&5
19243 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19244 (exit $ac_status); } && {
19245 test -z "$ac_c_werror_flag" ||
19246 test ! -s conftest.err
19247 } && test -s conftest$ac_exeext &&
19248 $as_test_x conftest$ac_exeext; then
19249 ac_cv_lib_ncurses_tparm=yes
19251 echo "$as_me: failed program was
:" >&5
19252 sed 's/^/| /' conftest.$ac_ext >&5
19254 ac_cv_lib_ncurses_tparm=no
19257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19258 conftest$ac_exeext conftest.$ac_ext
19259 LIBS=$ac_check_lib_save_LIBS
19261 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ncurses_tparm" >&5
19262 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19263 if test $ac_cv_lib_ncurses_tparm = yes; then
19264 cat >>confdefs.h <<_ACEOF
19265 #define HAVE_LIBNCURSES 1
19268 LIBS="-lncurses $LIBS"
19273 # Do we need the Hesiod library to provide the support routines?
19274 if test "$with_hesiod" = yes ; then
19275 # Don't set $LIBS here -- see comments above.
19277 { echo "$as_me:$LINENO: checking
for res_send
" >&5
19278 echo $ECHO_N "checking
for res_send...
$ECHO_C" >&6; }
19279 if test "${ac_cv_func_res_send+set}" = set; then
19280 echo $ECHO_N "(cached
) $ECHO_C" >&6
19282 cat >conftest.$ac_ext <<_ACEOF
19285 cat confdefs.h >>conftest.$ac_ext
19286 cat >>conftest.$ac_ext <<_ACEOF
19287 /* end confdefs.h. */
19288 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19289 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19290 #define res_send innocuous_res_send
19292 /* System header to define __stub macros and hopefully few prototypes,
19293 which can conflict with char res_send (); below.
19294 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19295 <limits.h> exists even on freestanding compilers. */
19298 # include <limits.h>
19300 # include <assert.h>
19305 /* Override any GCC internal prototype to avoid an error.
19306 Use char because int might match the return type of a GCC
19307 builtin and then its argument prototype would still apply. */
19312 /* The GNU C library defines this for functions which it implements
19313 to always fail with ENOSYS. Some functions are actually named
19314 something starting with __ and the normal name is an alias. */
19315 #if defined __stub_res_send || defined __stub___res_send
19322 return res_send ();
19327 rm -f conftest.$ac_objext conftest$ac_exeext
19328 if { (ac_try="$ac_link"
19329 case "(($ac_try" in
19330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19331 *) ac_try_echo=$ac_try;;
19333 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19334 (eval "$ac_link") 2>conftest.er1
19336 grep -v '^ *+' conftest.er1 >conftest.err
19338 cat conftest.err >&5
19339 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19340 (exit $ac_status); } && {
19341 test -z "$ac_c_werror_flag" ||
19342 test ! -s conftest.err
19343 } && test -s conftest$ac_exeext &&
19344 $as_test_x conftest$ac_exeext; then
19345 ac_cv_func_res_send=yes
19347 echo "$as_me: failed program was
:" >&5
19348 sed 's/^/| /' conftest.$ac_ext >&5
19350 ac_cv_func_res_send=no
19353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19354 conftest$ac_exeext conftest.$ac_ext
19356 { echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
19357 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19358 if test $ac_cv_func_res_send = yes; then
19361 { echo "$as_me:$LINENO: checking
for __res_send
" >&5
19362 echo $ECHO_N "checking
for __res_send...
$ECHO_C" >&6; }
19363 if test "${ac_cv_func___res_send+set}" = set; then
19364 echo $ECHO_N "(cached
) $ECHO_C" >&6
19366 cat >conftest.$ac_ext <<_ACEOF
19369 cat confdefs.h >>conftest.$ac_ext
19370 cat >>conftest.$ac_ext <<_ACEOF
19371 /* end confdefs.h. */
19372 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19373 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19374 #define __res_send innocuous___res_send
19376 /* System header to define __stub macros and hopefully few prototypes,
19377 which can conflict with char __res_send (); below.
19378 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19379 <limits.h> exists even on freestanding compilers. */
19382 # include <limits.h>
19384 # include <assert.h>
19389 /* Override any GCC internal prototype to avoid an error.
19390 Use char because int might match the return type of a GCC
19391 builtin and then its argument prototype would still apply. */
19395 char __res_send ();
19396 /* The GNU C library defines this for functions which it implements
19397 to always fail with ENOSYS. Some functions are actually named
19398 something starting with __ and the normal name is an alias. */
19399 #if defined __stub___res_send || defined __stub_____res_send
19406 return __res_send ();
19411 rm -f conftest.$ac_objext conftest$ac_exeext
19412 if { (ac_try="$ac_link"
19413 case "(($ac_try" in
19414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19415 *) ac_try_echo=$ac_try;;
19417 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19418 (eval "$ac_link") 2>conftest.er1
19420 grep -v '^ *+' conftest.er1 >conftest.err
19422 cat conftest.err >&5
19423 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19424 (exit $ac_status); } && {
19425 test -z "$ac_c_werror_flag" ||
19426 test ! -s conftest.err
19427 } && test -s conftest$ac_exeext &&
19428 $as_test_x conftest$ac_exeext; then
19429 ac_cv_func___res_send=yes
19431 echo "$as_me: failed program was
:" >&5
19432 sed 's/^/| /' conftest.$ac_ext >&5
19434 ac_cv_func___res_send=no
19437 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19438 conftest$ac_exeext conftest.$ac_ext
19440 { echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
19441 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19442 if test $ac_cv_func___res_send = yes; then
19445 { echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
19446 echo $ECHO_N "checking
for res_send
in -lresolv...
$ECHO_C" >&6; }
19447 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19448 echo $ECHO_N "(cached
) $ECHO_C" >&6
19450 ac_check_lib_save_LIBS=$LIBS
19451 LIBS="-lresolv $LIBS"
19452 cat >conftest.$ac_ext <<_ACEOF
19455 cat confdefs.h >>conftest.$ac_ext
19456 cat >>conftest.$ac_ext <<_ACEOF
19457 /* end confdefs.h. */
19459 /* Override any GCC internal prototype to avoid an error.
19460 Use char because int might match the return type of a GCC
19461 builtin and then its argument prototype would still apply. */
19469 return res_send ();
19474 rm -f conftest.$ac_objext conftest$ac_exeext
19475 if { (ac_try="$ac_link"
19476 case "(($ac_try" in
19477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19478 *) ac_try_echo=$ac_try;;
19480 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19481 (eval "$ac_link") 2>conftest.er1
19483 grep -v '^ *+' conftest.er1 >conftest.err
19485 cat conftest.err >&5
19486 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19487 (exit $ac_status); } && {
19488 test -z "$ac_c_werror_flag" ||
19489 test ! -s conftest.err
19490 } && test -s conftest$ac_exeext &&
19491 $as_test_x conftest$ac_exeext; then
19492 ac_cv_lib_resolv_res_send=yes
19494 echo "$as_me: failed program was
:" >&5
19495 sed 's/^/| /' conftest.$ac_ext >&5
19497 ac_cv_lib_resolv_res_send=no
19500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19501 conftest$ac_exeext conftest.$ac_ext
19502 LIBS=$ac_check_lib_save_LIBS
19504 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
19505 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
19506 if test $ac_cv_lib_resolv_res_send = yes; then
19509 { echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
19510 echo $ECHO_N "checking
for __res_send
in -lresolv...
$ECHO_C" >&6; }
19511 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
19512 echo $ECHO_N "(cached
) $ECHO_C" >&6
19514 ac_check_lib_save_LIBS=$LIBS
19515 LIBS="-lresolv $LIBS"
19516 cat >conftest.$ac_ext <<_ACEOF
19519 cat confdefs.h >>conftest.$ac_ext
19520 cat >>conftest.$ac_ext <<_ACEOF
19521 /* end confdefs.h. */
19523 /* Override any GCC internal prototype to avoid an error.
19524 Use char because int might match the return type of a GCC
19525 builtin and then its argument prototype would still apply. */
19529 char __res_send ();
19533 return __res_send ();
19538 rm -f conftest.$ac_objext conftest$ac_exeext
19539 if { (ac_try="$ac_link"
19540 case "(($ac_try" in
19541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19542 *) ac_try_echo=$ac_try;;
19544 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19545 (eval "$ac_link") 2>conftest.er1
19547 grep -v '^ *+' conftest.er1 >conftest.err
19549 cat conftest.err >&5
19550 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19551 (exit $ac_status); } && {
19552 test -z "$ac_c_werror_flag" ||
19553 test ! -s conftest.err
19554 } && test -s conftest$ac_exeext &&
19555 $as_test_x conftest$ac_exeext; then
19556 ac_cv_lib_resolv___res_send=yes
19558 echo "$as_me: failed program was
:" >&5
19559 sed 's/^/| /' conftest.$ac_ext >&5
19561 ac_cv_lib_resolv___res_send=no
19564 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19565 conftest$ac_exeext conftest.$ac_ext
19566 LIBS=$ac_check_lib_save_LIBS
19568 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
19569 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
19570 if test $ac_cv_lib_resolv___res_send = yes; then
19580 if test "$resolv" = yes ; then
19583 cat >>confdefs.h <<\_ACEOF
19584 #define HAVE_LIBRESOLV 1
19590 { echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
19591 echo $ECHO_N "checking
for hes_getmailhost...
$ECHO_C" >&6; }
19592 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
19593 echo $ECHO_N "(cached
) $ECHO_C" >&6
19595 cat >conftest.$ac_ext <<_ACEOF
19598 cat confdefs.h >>conftest.$ac_ext
19599 cat >>conftest.$ac_ext <<_ACEOF
19600 /* end confdefs.h. */
19601 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
19602 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19603 #define hes_getmailhost innocuous_hes_getmailhost
19605 /* System header to define __stub macros and hopefully few prototypes,
19606 which can conflict with char hes_getmailhost (); below.
19607 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19608 <limits.h> exists even on freestanding compilers. */
19611 # include <limits.h>
19613 # include <assert.h>
19616 #undef hes_getmailhost
19618 /* Override any GCC internal prototype to avoid an error.
19619 Use char because int might match the return type of a GCC
19620 builtin and then its argument prototype would still apply. */
19624 char hes_getmailhost ();
19625 /* The GNU C library defines this for functions which it implements
19626 to always fail with ENOSYS. Some functions are actually named
19627 something starting with __ and the normal name is an alias. */
19628 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
19635 return hes_getmailhost ();
19640 rm -f conftest.$ac_objext conftest$ac_exeext
19641 if { (ac_try="$ac_link"
19642 case "(($ac_try" in
19643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19644 *) ac_try_echo=$ac_try;;
19646 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19647 (eval "$ac_link") 2>conftest.er1
19649 grep -v '^ *+' conftest.er1 >conftest.err
19651 cat conftest.err >&5
19652 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19653 (exit $ac_status); } && {
19654 test -z "$ac_c_werror_flag" ||
19655 test ! -s conftest.err
19656 } && test -s conftest$ac_exeext &&
19657 $as_test_x conftest$ac_exeext; then
19658 ac_cv_func_hes_getmailhost=yes
19660 echo "$as_me: failed program was
:" >&5
19661 sed 's/^/| /' conftest.$ac_ext >&5
19663 ac_cv_func_hes_getmailhost=no
19666 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19667 conftest$ac_exeext conftest.$ac_ext
19669 { echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
19670 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
19671 if test $ac_cv_func_hes_getmailhost = yes; then
19674 { echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
19675 echo $ECHO_N "checking
for hes_getmailhost
in -lhesiod...
$ECHO_C" >&6; }
19676 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
19677 echo $ECHO_N "(cached
) $ECHO_C" >&6
19679 ac_check_lib_save_LIBS=$LIBS
19680 LIBS="-lhesiod $RESOLVLIB $LIBS"
19681 cat >conftest.$ac_ext <<_ACEOF
19684 cat confdefs.h >>conftest.$ac_ext
19685 cat >>conftest.$ac_ext <<_ACEOF
19686 /* end confdefs.h. */
19688 /* Override any GCC internal prototype to avoid an error.
19689 Use char because int might match the return type of a GCC
19690 builtin and then its argument prototype would still apply. */
19694 char hes_getmailhost ();
19698 return hes_getmailhost ();
19703 rm -f conftest.$ac_objext conftest$ac_exeext
19704 if { (ac_try="$ac_link"
19705 case "(($ac_try" in
19706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19707 *) ac_try_echo=$ac_try;;
19709 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19710 (eval "$ac_link") 2>conftest.er1
19712 grep -v '^ *+' conftest.er1 >conftest.err
19714 cat conftest.err >&5
19715 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19716 (exit $ac_status); } && {
19717 test -z "$ac_c_werror_flag" ||
19718 test ! -s conftest.err
19719 } && test -s conftest$ac_exeext &&
19720 $as_test_x conftest$ac_exeext; then
19721 ac_cv_lib_hesiod_hes_getmailhost=yes
19723 echo "$as_me: failed program was
:" >&5
19724 sed 's/^/| /' conftest.$ac_ext >&5
19726 ac_cv_lib_hesiod_hes_getmailhost=no
19729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19730 conftest$ac_exeext conftest.$ac_ext
19731 LIBS=$ac_check_lib_save_LIBS
19733 { echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
19734 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
19735 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
19737 cat >>confdefs.h <<\_ACEOF
19738 #define HAVE_LIBHESIOD 1
19749 # These tell us which Kerberos-related libraries to use.
19750 if test "${with_kerberos+set}" = set; then
19752 { echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
19753 echo $ECHO_N "checking
for com_err
in -lcom_err...
$ECHO_C" >&6; }
19754 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
19755 echo $ECHO_N "(cached
) $ECHO_C" >&6
19757 ac_check_lib_save_LIBS=$LIBS
19758 LIBS="-lcom_err $LIBS"
19759 cat >conftest.$ac_ext <<_ACEOF
19762 cat confdefs.h >>conftest.$ac_ext
19763 cat >>conftest.$ac_ext <<_ACEOF
19764 /* end confdefs.h. */
19766 /* Override any GCC internal prototype to avoid an error.
19767 Use char because int might match the return type of a GCC
19768 builtin and then its argument prototype would still apply. */
19781 rm -f conftest.$ac_objext conftest$ac_exeext
19782 if { (ac_try="$ac_link"
19783 case "(($ac_try" in
19784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19785 *) ac_try_echo=$ac_try;;
19787 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19788 (eval "$ac_link") 2>conftest.er1
19790 grep -v '^ *+' conftest.er1 >conftest.err
19792 cat conftest.err >&5
19793 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19794 (exit $ac_status); } && {
19795 test -z "$ac_c_werror_flag" ||
19796 test ! -s conftest.err
19797 } && test -s conftest$ac_exeext &&
19798 $as_test_x conftest$ac_exeext; then
19799 ac_cv_lib_com_err_com_err=yes
19801 echo "$as_me: failed program was
:" >&5
19802 sed 's/^/| /' conftest.$ac_ext >&5
19804 ac_cv_lib_com_err_com_err=no
19807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19808 conftest$ac_exeext conftest.$ac_ext
19809 LIBS=$ac_check_lib_save_LIBS
19811 { echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
19812 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
19813 if test $ac_cv_lib_com_err_com_err = yes; then
19814 cat >>confdefs.h <<_ACEOF
19815 #define HAVE_LIBCOM_ERR 1
19818 LIBS="-lcom_err $LIBS"
19823 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
19824 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lk5crypto...
$ECHO_C" >&6; }
19825 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
19826 echo $ECHO_N "(cached
) $ECHO_C" >&6
19828 ac_check_lib_save_LIBS=$LIBS
19829 LIBS="-lk5crypto $LIBS"
19830 cat >conftest.$ac_ext <<_ACEOF
19833 cat confdefs.h >>conftest.$ac_ext
19834 cat >>conftest.$ac_ext <<_ACEOF
19835 /* end confdefs.h. */
19837 /* Override any GCC internal prototype to avoid an error.
19838 Use char because int might match the return type of a GCC
19839 builtin and then its argument prototype would still apply. */
19843 char mit_des_cbc_encrypt ();
19847 return mit_des_cbc_encrypt ();
19852 rm -f conftest.$ac_objext conftest$ac_exeext
19853 if { (ac_try="$ac_link"
19854 case "(($ac_try" in
19855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19856 *) ac_try_echo=$ac_try;;
19858 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19859 (eval "$ac_link") 2>conftest.er1
19861 grep -v '^ *+' conftest.er1 >conftest.err
19863 cat conftest.err >&5
19864 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19865 (exit $ac_status); } && {
19866 test -z "$ac_c_werror_flag" ||
19867 test ! -s conftest.err
19868 } && test -s conftest$ac_exeext &&
19869 $as_test_x conftest$ac_exeext; then
19870 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
19872 echo "$as_me: failed program was
:" >&5
19873 sed 's/^/| /' conftest.$ac_ext >&5
19875 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
19878 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19879 conftest$ac_exeext conftest.$ac_ext
19880 LIBS=$ac_check_lib_save_LIBS
19882 { echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
19883 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
19884 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
19885 cat >>confdefs.h <<_ACEOF
19886 #define HAVE_LIBK5CRYPTO 1
19889 LIBS="-lk5crypto $LIBS"
19894 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
19895 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lcrypto...
$ECHO_C" >&6; }
19896 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
19897 echo $ECHO_N "(cached
) $ECHO_C" >&6
19899 ac_check_lib_save_LIBS=$LIBS
19900 LIBS="-lcrypto $LIBS"
19901 cat >conftest.$ac_ext <<_ACEOF
19904 cat confdefs.h >>conftest.$ac_ext
19905 cat >>conftest.$ac_ext <<_ACEOF
19906 /* end confdefs.h. */
19908 /* Override any GCC internal prototype to avoid an error.
19909 Use char because int might match the return type of a GCC
19910 builtin and then its argument prototype would still apply. */
19914 char mit_des_cbc_encrypt ();
19918 return mit_des_cbc_encrypt ();
19923 rm -f conftest.$ac_objext conftest$ac_exeext
19924 if { (ac_try="$ac_link"
19925 case "(($ac_try" in
19926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19927 *) ac_try_echo=$ac_try;;
19929 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19930 (eval "$ac_link") 2>conftest.er1
19932 grep -v '^ *+' conftest.er1 >conftest.err
19934 cat conftest.err >&5
19935 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19936 (exit $ac_status); } && {
19937 test -z "$ac_c_werror_flag" ||
19938 test ! -s conftest.err
19939 } && test -s conftest$ac_exeext &&
19940 $as_test_x conftest$ac_exeext; then
19941 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
19943 echo "$as_me: failed program was
:" >&5
19944 sed 's/^/| /' conftest.$ac_ext >&5
19946 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
19949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19950 conftest$ac_exeext conftest.$ac_ext
19951 LIBS=$ac_check_lib_save_LIBS
19953 { echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19954 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
19955 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
19956 cat >>confdefs.h <<_ACEOF
19957 #define HAVE_LIBCRYPTO 1
19960 LIBS="-lcrypto $LIBS"
19965 { echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
19966 echo $ECHO_N "checking
for krb5_init_context
in -lkrb5...
$ECHO_C" >&6; }
19967 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
19968 echo $ECHO_N "(cached
) $ECHO_C" >&6
19970 ac_check_lib_save_LIBS=$LIBS
19971 LIBS="-lkrb5 $LIBS"
19972 cat >conftest.$ac_ext <<_ACEOF
19975 cat confdefs.h >>conftest.$ac_ext
19976 cat >>conftest.$ac_ext <<_ACEOF
19977 /* end confdefs.h. */
19979 /* Override any GCC internal prototype to avoid an error.
19980 Use char because int might match the return type of a GCC
19981 builtin and then its argument prototype would still apply. */
19985 char krb5_init_context ();
19989 return krb5_init_context ();
19994 rm -f conftest.$ac_objext conftest$ac_exeext
19995 if { (ac_try="$ac_link"
19996 case "(($ac_try" in
19997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19998 *) ac_try_echo=$ac_try;;
20000 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20001 (eval "$ac_link") 2>conftest.er1
20003 grep -v '^ *+' conftest.er1 >conftest.err
20005 cat conftest.err >&5
20006 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20007 (exit $ac_status); } && {
20008 test -z "$ac_c_werror_flag" ||
20009 test ! -s conftest.err
20010 } && test -s conftest$ac_exeext &&
20011 $as_test_x conftest$ac_exeext; then
20012 ac_cv_lib_krb5_krb5_init_context=yes
20014 echo "$as_me: failed program was
:" >&5
20015 sed 's/^/| /' conftest.$ac_ext >&5
20017 ac_cv_lib_krb5_krb5_init_context=no
20020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20021 conftest$ac_exeext conftest.$ac_ext
20022 LIBS=$ac_check_lib_save_LIBS
20024 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
20025 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20026 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20027 cat >>confdefs.h <<_ACEOF
20028 #define HAVE_LIBKRB5 1
20031 LIBS="-lkrb5 $LIBS"
20035 if test "${with_kerberos5+set}" != set; then
20037 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
20038 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes425...
$ECHO_C" >&6; }
20039 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20040 echo $ECHO_N "(cached
) $ECHO_C" >&6
20042 ac_check_lib_save_LIBS=$LIBS
20043 LIBS="-ldes425 $LIBS"
20044 cat >conftest.$ac_ext <<_ACEOF
20047 cat confdefs.h >>conftest.$ac_ext
20048 cat >>conftest.$ac_ext <<_ACEOF
20049 /* end confdefs.h. */
20051 /* Override any GCC internal prototype to avoid an error.
20052 Use char because int might match the return type of a GCC
20053 builtin and then its argument prototype would still apply. */
20057 char des_cbc_encrypt ();
20061 return des_cbc_encrypt ();
20066 rm -f conftest.$ac_objext conftest$ac_exeext
20067 if { (ac_try="$ac_link"
20068 case "(($ac_try" in
20069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20070 *) ac_try_echo=$ac_try;;
20072 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20073 (eval "$ac_link") 2>conftest.er1
20075 grep -v '^ *+' conftest.er1 >conftest.err
20077 cat conftest.err >&5
20078 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20079 (exit $ac_status); } && {
20080 test -z "$ac_c_werror_flag" ||
20081 test ! -s conftest.err
20082 } && test -s conftest$ac_exeext &&
20083 $as_test_x conftest$ac_exeext; then
20084 ac_cv_lib_des425_des_cbc_encrypt=yes
20086 echo "$as_me: failed program was
:" >&5
20087 sed 's/^/| /' conftest.$ac_ext >&5
20089 ac_cv_lib_des425_des_cbc_encrypt=no
20092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20093 conftest$ac_exeext conftest.$ac_ext
20094 LIBS=$ac_check_lib_save_LIBS
20096 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20097 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20098 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20099 cat >>confdefs.h <<_ACEOF
20100 #define HAVE_LIBDES425 1
20103 LIBS="-ldes425 $LIBS"
20107 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
20108 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes...
$ECHO_C" >&6; }
20109 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20110 echo $ECHO_N "(cached
) $ECHO_C" >&6
20112 ac_check_lib_save_LIBS=$LIBS
20114 cat >conftest.$ac_ext <<_ACEOF
20117 cat confdefs.h >>conftest.$ac_ext
20118 cat >>conftest.$ac_ext <<_ACEOF
20119 /* end confdefs.h. */
20121 /* Override any GCC internal prototype to avoid an error.
20122 Use char because int might match the return type of a GCC
20123 builtin and then its argument prototype would still apply. */
20127 char des_cbc_encrypt ();
20131 return des_cbc_encrypt ();
20136 rm -f conftest.$ac_objext conftest$ac_exeext
20137 if { (ac_try="$ac_link"
20138 case "(($ac_try" in
20139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20140 *) ac_try_echo=$ac_try;;
20142 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20143 (eval "$ac_link") 2>conftest.er1
20145 grep -v '^ *+' conftest.er1 >conftest.err
20147 cat conftest.err >&5
20148 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20149 (exit $ac_status); } && {
20150 test -z "$ac_c_werror_flag" ||
20151 test ! -s conftest.err
20152 } && test -s conftest$ac_exeext &&
20153 $as_test_x conftest$ac_exeext; then
20154 ac_cv_lib_des_des_cbc_encrypt=yes
20156 echo "$as_me: failed program was
:" >&5
20157 sed 's/^/| /' conftest.$ac_ext >&5
20159 ac_cv_lib_des_des_cbc_encrypt=no
20162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20163 conftest$ac_exeext conftest.$ac_ext
20164 LIBS=$ac_check_lib_save_LIBS
20166 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
20167 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20168 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20169 cat >>confdefs.h <<_ACEOF
20170 #define HAVE_LIBDES 1
20180 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
20181 echo $ECHO_N "checking
for krb_get_cred
in -lkrb4...
$ECHO_C" >&6; }
20182 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20183 echo $ECHO_N "(cached
) $ECHO_C" >&6
20185 ac_check_lib_save_LIBS=$LIBS
20186 LIBS="-lkrb4 $LIBS"
20187 cat >conftest.$ac_ext <<_ACEOF
20190 cat confdefs.h >>conftest.$ac_ext
20191 cat >>conftest.$ac_ext <<_ACEOF
20192 /* end confdefs.h. */
20194 /* Override any GCC internal prototype to avoid an error.
20195 Use char because int might match the return type of a GCC
20196 builtin and then its argument prototype would still apply. */
20200 char krb_get_cred ();
20204 return krb_get_cred ();
20209 rm -f conftest.$ac_objext conftest$ac_exeext
20210 if { (ac_try="$ac_link"
20211 case "(($ac_try" in
20212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20213 *) ac_try_echo=$ac_try;;
20215 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20216 (eval "$ac_link") 2>conftest.er1
20218 grep -v '^ *+' conftest.er1 >conftest.err
20220 cat conftest.err >&5
20221 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20222 (exit $ac_status); } && {
20223 test -z "$ac_c_werror_flag" ||
20224 test ! -s conftest.err
20225 } && test -s conftest$ac_exeext &&
20226 $as_test_x conftest$ac_exeext; then
20227 ac_cv_lib_krb4_krb_get_cred=yes
20229 echo "$as_me: failed program was
:" >&5
20230 sed 's/^/| /' conftest.$ac_ext >&5
20232 ac_cv_lib_krb4_krb_get_cred=no
20235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20236 conftest$ac_exeext conftest.$ac_ext
20237 LIBS=$ac_check_lib_save_LIBS
20239 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
20240 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20241 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20242 cat >>confdefs.h <<_ACEOF
20243 #define HAVE_LIBKRB4 1
20246 LIBS="-lkrb4 $LIBS"
20250 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
20251 echo $ECHO_N "checking
for krb_get_cred
in -lkrb...
$ECHO_C" >&6; }
20252 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20253 echo $ECHO_N "(cached
) $ECHO_C" >&6
20255 ac_check_lib_save_LIBS=$LIBS
20257 cat >conftest.$ac_ext <<_ACEOF
20260 cat confdefs.h >>conftest.$ac_ext
20261 cat >>conftest.$ac_ext <<_ACEOF
20262 /* end confdefs.h. */
20264 /* Override any GCC internal prototype to avoid an error.
20265 Use char because int might match the return type of a GCC
20266 builtin and then its argument prototype would still apply. */
20270 char krb_get_cred ();
20274 return krb_get_cred ();
20279 rm -f conftest.$ac_objext conftest$ac_exeext
20280 if { (ac_try="$ac_link"
20281 case "(($ac_try" in
20282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20283 *) ac_try_echo=$ac_try;;
20285 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20286 (eval "$ac_link") 2>conftest.er1
20288 grep -v '^ *+' conftest.er1 >conftest.err
20290 cat conftest.err >&5
20291 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20292 (exit $ac_status); } && {
20293 test -z "$ac_c_werror_flag" ||
20294 test ! -s conftest.err
20295 } && test -s conftest$ac_exeext &&
20296 $as_test_x conftest$ac_exeext; then
20297 ac_cv_lib_krb_krb_get_cred=yes
20299 echo "$as_me: failed program was
:" >&5
20300 sed 's/^/| /' conftest.$ac_ext >&5
20302 ac_cv_lib_krb_krb_get_cred=no
20305 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20306 conftest$ac_exeext conftest.$ac_ext
20307 LIBS=$ac_check_lib_save_LIBS
20309 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
20310 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20311 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20312 cat >>confdefs.h <<_ACEOF
20313 #define HAVE_LIBKRB 1
20324 if test "${with_kerberos5+set}" = set; then
20326 for ac_header in krb5.h
20328 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20329 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20330 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20331 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20332 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20333 echo $ECHO_N "(cached
) $ECHO_C" >&6
20335 ac_res=`eval echo '${'$as_ac_Header'}'`
20336 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20337 echo "${ECHO_T}$ac_res" >&6; }
20339 # Is the header compilable?
20340 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20341 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20342 cat >conftest.$ac_ext <<_ACEOF
20345 cat confdefs.h >>conftest.$ac_ext
20346 cat >>conftest.$ac_ext <<_ACEOF
20347 /* end confdefs.h. */
20348 $ac_includes_default
20349 #include <$ac_header>
20351 rm -f conftest.$ac_objext
20352 if { (ac_try="$ac_compile"
20353 case "(($ac_try" in
20354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20355 *) ac_try_echo=$ac_try;;
20357 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20358 (eval "$ac_compile") 2>conftest.er1
20360 grep -v '^ *+' conftest.er1 >conftest.err
20362 cat conftest.err >&5
20363 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20364 (exit $ac_status); } && {
20365 test -z "$ac_c_werror_flag" ||
20366 test ! -s conftest.err
20367 } && test -s conftest.$ac_objext; then
20368 ac_header_compiler=yes
20370 echo "$as_me: failed program was
:" >&5
20371 sed 's/^/| /' conftest.$ac_ext >&5
20373 ac_header_compiler=no
20376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20377 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20378 echo "${ECHO_T}$ac_header_compiler" >&6; }
20380 # Is the header present?
20381 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20382 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20383 cat >conftest.$ac_ext <<_ACEOF
20386 cat confdefs.h >>conftest.$ac_ext
20387 cat >>conftest.$ac_ext <<_ACEOF
20388 /* end confdefs.h. */
20389 #include <$ac_header>
20391 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20392 case "(($ac_try" in
20393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20394 *) ac_try_echo=$ac_try;;
20396 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20397 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20399 grep -v '^ *+' conftest.er1 >conftest.err
20401 cat conftest.err >&5
20402 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20403 (exit $ac_status); } >/dev/null && {
20404 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20405 test ! -s conftest.err
20407 ac_header_preproc=yes
20409 echo "$as_me: failed program was
:" >&5
20410 sed 's/^/| /' conftest.$ac_ext >&5
20412 ac_header_preproc=no
20415 rm -f conftest.err conftest.$ac_ext
20416 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20417 echo "${ECHO_T}$ac_header_preproc" >&6; }
20419 # So? What about this header?
20420 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20422 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20423 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20424 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20425 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20426 ac_header_preproc=yes
20429 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20430 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20431 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20432 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20433 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20434 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20435 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20436 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20437 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20438 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20439 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20440 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20444 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20445 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20446 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20447 echo $ECHO_N "(cached
) $ECHO_C" >&6
20449 eval "$as_ac_Header=\
$ac_header_preproc"
20451 ac_res=`eval echo '${'$as_ac_Header'}'`
20452 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20453 echo "${ECHO_T}$ac_res" >&6; }
20456 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20457 cat >>confdefs.h <<_ACEOF
20458 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20467 for ac_header in des.h
20469 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20470 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20471 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20472 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20473 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20474 echo $ECHO_N "(cached
) $ECHO_C" >&6
20476 ac_res=`eval echo '${'$as_ac_Header'}'`
20477 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20478 echo "${ECHO_T}$ac_res" >&6; }
20480 # Is the header compilable?
20481 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20482 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20483 cat >conftest.$ac_ext <<_ACEOF
20486 cat confdefs.h >>conftest.$ac_ext
20487 cat >>conftest.$ac_ext <<_ACEOF
20488 /* end confdefs.h. */
20489 $ac_includes_default
20490 #include <$ac_header>
20492 rm -f conftest.$ac_objext
20493 if { (ac_try="$ac_compile"
20494 case "(($ac_try" in
20495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20496 *) ac_try_echo=$ac_try;;
20498 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20499 (eval "$ac_compile") 2>conftest.er1
20501 grep -v '^ *+' conftest.er1 >conftest.err
20503 cat conftest.err >&5
20504 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20505 (exit $ac_status); } && {
20506 test -z "$ac_c_werror_flag" ||
20507 test ! -s conftest.err
20508 } && test -s conftest.$ac_objext; then
20509 ac_header_compiler=yes
20511 echo "$as_me: failed program was
:" >&5
20512 sed 's/^/| /' conftest.$ac_ext >&5
20514 ac_header_compiler=no
20517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20518 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20519 echo "${ECHO_T}$ac_header_compiler" >&6; }
20521 # Is the header present?
20522 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20523 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20524 cat >conftest.$ac_ext <<_ACEOF
20527 cat confdefs.h >>conftest.$ac_ext
20528 cat >>conftest.$ac_ext <<_ACEOF
20529 /* end confdefs.h. */
20530 #include <$ac_header>
20532 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20533 case "(($ac_try" in
20534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20535 *) ac_try_echo=$ac_try;;
20537 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20538 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20540 grep -v '^ *+' conftest.er1 >conftest.err
20542 cat conftest.err >&5
20543 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20544 (exit $ac_status); } >/dev/null && {
20545 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20546 test ! -s conftest.err
20548 ac_header_preproc=yes
20550 echo "$as_me: failed program was
:" >&5
20551 sed 's/^/| /' conftest.$ac_ext >&5
20553 ac_header_preproc=no
20556 rm -f conftest.err conftest.$ac_ext
20557 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20558 echo "${ECHO_T}$ac_header_preproc" >&6; }
20560 # So? What about this header?
20561 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20563 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20564 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20565 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20566 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20567 ac_header_preproc=yes
20570 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20571 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20572 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20573 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20574 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20575 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20576 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20577 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20578 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20579 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20580 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20581 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20585 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20586 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20587 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20588 echo $ECHO_N "(cached
) $ECHO_C" >&6
20590 eval "$as_ac_Header=\
$ac_header_preproc"
20592 ac_res=`eval echo '${'$as_ac_Header'}'`
20593 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20594 echo "${ECHO_T}$ac_res" >&6; }
20597 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20598 cat >>confdefs.h <<_ACEOF
20599 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20604 for ac_header in kerberosIV/des.h
20606 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20607 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20608 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20609 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20610 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20611 echo $ECHO_N "(cached
) $ECHO_C" >&6
20613 ac_res=`eval echo '${'$as_ac_Header'}'`
20614 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20615 echo "${ECHO_T}$ac_res" >&6; }
20617 # Is the header compilable?
20618 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20619 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20620 cat >conftest.$ac_ext <<_ACEOF
20623 cat confdefs.h >>conftest.$ac_ext
20624 cat >>conftest.$ac_ext <<_ACEOF
20625 /* end confdefs.h. */
20626 $ac_includes_default
20627 #include <$ac_header>
20629 rm -f conftest.$ac_objext
20630 if { (ac_try="$ac_compile"
20631 case "(($ac_try" in
20632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20633 *) ac_try_echo=$ac_try;;
20635 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20636 (eval "$ac_compile") 2>conftest.er1
20638 grep -v '^ *+' conftest.er1 >conftest.err
20640 cat conftest.err >&5
20641 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20642 (exit $ac_status); } && {
20643 test -z "$ac_c_werror_flag" ||
20644 test ! -s conftest.err
20645 } && test -s conftest.$ac_objext; then
20646 ac_header_compiler=yes
20648 echo "$as_me: failed program was
:" >&5
20649 sed 's/^/| /' conftest.$ac_ext >&5
20651 ac_header_compiler=no
20654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20655 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20656 echo "${ECHO_T}$ac_header_compiler" >&6; }
20658 # Is the header present?
20659 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20660 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20661 cat >conftest.$ac_ext <<_ACEOF
20664 cat confdefs.h >>conftest.$ac_ext
20665 cat >>conftest.$ac_ext <<_ACEOF
20666 /* end confdefs.h. */
20667 #include <$ac_header>
20669 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20670 case "(($ac_try" in
20671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20672 *) ac_try_echo=$ac_try;;
20674 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20675 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20677 grep -v '^ *+' conftest.er1 >conftest.err
20679 cat conftest.err >&5
20680 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20681 (exit $ac_status); } >/dev/null && {
20682 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20683 test ! -s conftest.err
20685 ac_header_preproc=yes
20687 echo "$as_me: failed program was
:" >&5
20688 sed 's/^/| /' conftest.$ac_ext >&5
20690 ac_header_preproc=no
20693 rm -f conftest.err conftest.$ac_ext
20694 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20695 echo "${ECHO_T}$ac_header_preproc" >&6; }
20697 # So? What about this header?
20698 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20700 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20701 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20702 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20703 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20704 ac_header_preproc=yes
20707 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20708 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20709 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20710 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20711 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20712 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20713 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20714 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20715 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20716 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20717 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20718 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20722 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20723 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20724 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20725 echo $ECHO_N "(cached
) $ECHO_C" >&6
20727 eval "$as_ac_Header=\
$ac_header_preproc"
20729 ac_res=`eval echo '${'$as_ac_Header'}'`
20730 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20731 echo "${ECHO_T}$ac_res" >&6; }
20734 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20735 cat >>confdefs.h <<_ACEOF
20736 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20741 for ac_header in kerberos/des.h
20743 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20744 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20745 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20746 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20747 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20748 echo $ECHO_N "(cached
) $ECHO_C" >&6
20750 ac_res=`eval echo '${'$as_ac_Header'}'`
20751 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20752 echo "${ECHO_T}$ac_res" >&6; }
20754 # Is the header compilable?
20755 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20756 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20757 cat >conftest.$ac_ext <<_ACEOF
20760 cat confdefs.h >>conftest.$ac_ext
20761 cat >>conftest.$ac_ext <<_ACEOF
20762 /* end confdefs.h. */
20763 $ac_includes_default
20764 #include <$ac_header>
20766 rm -f conftest.$ac_objext
20767 if { (ac_try="$ac_compile"
20768 case "(($ac_try" in
20769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20770 *) ac_try_echo=$ac_try;;
20772 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20773 (eval "$ac_compile") 2>conftest.er1
20775 grep -v '^ *+' conftest.er1 >conftest.err
20777 cat conftest.err >&5
20778 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20779 (exit $ac_status); } && {
20780 test -z "$ac_c_werror_flag" ||
20781 test ! -s conftest.err
20782 } && test -s conftest.$ac_objext; then
20783 ac_header_compiler=yes
20785 echo "$as_me: failed program was
:" >&5
20786 sed 's/^/| /' conftest.$ac_ext >&5
20788 ac_header_compiler=no
20791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20792 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20793 echo "${ECHO_T}$ac_header_compiler" >&6; }
20795 # Is the header present?
20796 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20797 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20798 cat >conftest.$ac_ext <<_ACEOF
20801 cat confdefs.h >>conftest.$ac_ext
20802 cat >>conftest.$ac_ext <<_ACEOF
20803 /* end confdefs.h. */
20804 #include <$ac_header>
20806 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20807 case "(($ac_try" in
20808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20809 *) ac_try_echo=$ac_try;;
20811 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20812 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20814 grep -v '^ *+' conftest.er1 >conftest.err
20816 cat conftest.err >&5
20817 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20818 (exit $ac_status); } >/dev/null && {
20819 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20820 test ! -s conftest.err
20822 ac_header_preproc=yes
20824 echo "$as_me: failed program was
:" >&5
20825 sed 's/^/| /' conftest.$ac_ext >&5
20827 ac_header_preproc=no
20830 rm -f conftest.err conftest.$ac_ext
20831 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20832 echo "${ECHO_T}$ac_header_preproc" >&6; }
20834 # So? What about this header?
20835 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20837 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20838 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20839 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20840 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20841 ac_header_preproc=yes
20844 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20845 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20846 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20847 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20848 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20849 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20850 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20851 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20852 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20853 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20854 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20855 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20859 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20860 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20861 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20862 echo $ECHO_N "(cached
) $ECHO_C" >&6
20864 eval "$as_ac_Header=\
$ac_header_preproc"
20866 ac_res=`eval echo '${'$as_ac_Header'}'`
20867 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20868 echo "${ECHO_T}$ac_res" >&6; }
20871 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20872 cat >>confdefs.h <<_ACEOF
20873 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20889 for ac_header in krb.h
20891 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20892 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20893 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20894 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20895 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20896 echo $ECHO_N "(cached
) $ECHO_C" >&6
20898 ac_res=`eval echo '${'$as_ac_Header'}'`
20899 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20900 echo "${ECHO_T}$ac_res" >&6; }
20902 # Is the header compilable?
20903 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20904 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20905 cat >conftest.$ac_ext <<_ACEOF
20908 cat confdefs.h >>conftest.$ac_ext
20909 cat >>conftest.$ac_ext <<_ACEOF
20910 /* end confdefs.h. */
20911 $ac_includes_default
20912 #include <$ac_header>
20914 rm -f conftest.$ac_objext
20915 if { (ac_try="$ac_compile"
20916 case "(($ac_try" in
20917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20918 *) ac_try_echo=$ac_try;;
20920 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20921 (eval "$ac_compile") 2>conftest.er1
20923 grep -v '^ *+' conftest.er1 >conftest.err
20925 cat conftest.err >&5
20926 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20927 (exit $ac_status); } && {
20928 test -z "$ac_c_werror_flag" ||
20929 test ! -s conftest.err
20930 } && test -s conftest.$ac_objext; then
20931 ac_header_compiler=yes
20933 echo "$as_me: failed program was
:" >&5
20934 sed 's/^/| /' conftest.$ac_ext >&5
20936 ac_header_compiler=no
20939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20940 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20941 echo "${ECHO_T}$ac_header_compiler" >&6; }
20943 # Is the header present?
20944 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20945 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20946 cat >conftest.$ac_ext <<_ACEOF
20949 cat confdefs.h >>conftest.$ac_ext
20950 cat >>conftest.$ac_ext <<_ACEOF
20951 /* end confdefs.h. */
20952 #include <$ac_header>
20954 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20955 case "(($ac_try" in
20956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20957 *) ac_try_echo=$ac_try;;
20959 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20960 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20962 grep -v '^ *+' conftest.er1 >conftest.err
20964 cat conftest.err >&5
20965 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20966 (exit $ac_status); } >/dev/null && {
20967 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20968 test ! -s conftest.err
20970 ac_header_preproc=yes
20972 echo "$as_me: failed program was
:" >&5
20973 sed 's/^/| /' conftest.$ac_ext >&5
20975 ac_header_preproc=no
20978 rm -f conftest.err conftest.$ac_ext
20979 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20980 echo "${ECHO_T}$ac_header_preproc" >&6; }
20982 # So? What about this header?
20983 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20985 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20986 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20987 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20988 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20989 ac_header_preproc=yes
20992 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20993 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20994 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20995 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20996 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20997 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20998 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20999 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21000 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21001 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21002 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21003 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21007 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21008 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21009 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21010 echo $ECHO_N "(cached
) $ECHO_C" >&6
21012 eval "$as_ac_Header=\
$ac_header_preproc"
21014 ac_res=`eval echo '${'$as_ac_Header'}'`
21015 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21016 echo "${ECHO_T}$ac_res" >&6; }
21019 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21020 cat >>confdefs.h <<_ACEOF
21021 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21026 for ac_header in kerberosIV/krb.h
21028 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21029 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21030 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21031 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21032 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21033 echo $ECHO_N "(cached
) $ECHO_C" >&6
21035 ac_res=`eval echo '${'$as_ac_Header'}'`
21036 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21037 echo "${ECHO_T}$ac_res" >&6; }
21039 # Is the header compilable?
21040 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21041 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21042 cat >conftest.$ac_ext <<_ACEOF
21045 cat confdefs.h >>conftest.$ac_ext
21046 cat >>conftest.$ac_ext <<_ACEOF
21047 /* end confdefs.h. */
21048 $ac_includes_default
21049 #include <$ac_header>
21051 rm -f conftest.$ac_objext
21052 if { (ac_try="$ac_compile"
21053 case "(($ac_try" in
21054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21055 *) ac_try_echo=$ac_try;;
21057 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21058 (eval "$ac_compile") 2>conftest.er1
21060 grep -v '^ *+' conftest.er1 >conftest.err
21062 cat conftest.err >&5
21063 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21064 (exit $ac_status); } && {
21065 test -z "$ac_c_werror_flag" ||
21066 test ! -s conftest.err
21067 } && test -s conftest.$ac_objext; then
21068 ac_header_compiler=yes
21070 echo "$as_me: failed program was
:" >&5
21071 sed 's/^/| /' conftest.$ac_ext >&5
21073 ac_header_compiler=no
21076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21077 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21078 echo "${ECHO_T}$ac_header_compiler" >&6; }
21080 # Is the header present?
21081 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21082 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21083 cat >conftest.$ac_ext <<_ACEOF
21086 cat confdefs.h >>conftest.$ac_ext
21087 cat >>conftest.$ac_ext <<_ACEOF
21088 /* end confdefs.h. */
21089 #include <$ac_header>
21091 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21092 case "(($ac_try" in
21093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21094 *) ac_try_echo=$ac_try;;
21096 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21097 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21099 grep -v '^ *+' conftest.er1 >conftest.err
21101 cat conftest.err >&5
21102 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21103 (exit $ac_status); } >/dev/null && {
21104 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21105 test ! -s conftest.err
21107 ac_header_preproc=yes
21109 echo "$as_me: failed program was
:" >&5
21110 sed 's/^/| /' conftest.$ac_ext >&5
21112 ac_header_preproc=no
21115 rm -f conftest.err conftest.$ac_ext
21116 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21117 echo "${ECHO_T}$ac_header_preproc" >&6; }
21119 # So? What about this header?
21120 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21122 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21123 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21124 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21125 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21126 ac_header_preproc=yes
21129 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21130 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21131 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21132 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21133 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21134 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21135 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21136 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21137 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21138 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21139 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21140 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21144 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21145 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21146 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21147 echo $ECHO_N "(cached
) $ECHO_C" >&6
21149 eval "$as_ac_Header=\
$ac_header_preproc"
21151 ac_res=`eval echo '${'$as_ac_Header'}'`
21152 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21153 echo "${ECHO_T}$ac_res" >&6; }
21156 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21157 cat >>confdefs.h <<_ACEOF
21158 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21163 for ac_header in kerberos/krb.h
21165 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21166 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21167 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21168 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21169 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21170 echo $ECHO_N "(cached
) $ECHO_C" >&6
21172 ac_res=`eval echo '${'$as_ac_Header'}'`
21173 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21174 echo "${ECHO_T}$ac_res" >&6; }
21176 # Is the header compilable?
21177 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21178 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21179 cat >conftest.$ac_ext <<_ACEOF
21182 cat confdefs.h >>conftest.$ac_ext
21183 cat >>conftest.$ac_ext <<_ACEOF
21184 /* end confdefs.h. */
21185 $ac_includes_default
21186 #include <$ac_header>
21188 rm -f conftest.$ac_objext
21189 if { (ac_try="$ac_compile"
21190 case "(($ac_try" in
21191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21192 *) ac_try_echo=$ac_try;;
21194 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21195 (eval "$ac_compile") 2>conftest.er1
21197 grep -v '^ *+' conftest.er1 >conftest.err
21199 cat conftest.err >&5
21200 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21201 (exit $ac_status); } && {
21202 test -z "$ac_c_werror_flag" ||
21203 test ! -s conftest.err
21204 } && test -s conftest.$ac_objext; then
21205 ac_header_compiler=yes
21207 echo "$as_me: failed program was
:" >&5
21208 sed 's/^/| /' conftest.$ac_ext >&5
21210 ac_header_compiler=no
21213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21214 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21215 echo "${ECHO_T}$ac_header_compiler" >&6; }
21217 # Is the header present?
21218 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21219 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21220 cat >conftest.$ac_ext <<_ACEOF
21223 cat confdefs.h >>conftest.$ac_ext
21224 cat >>conftest.$ac_ext <<_ACEOF
21225 /* end confdefs.h. */
21226 #include <$ac_header>
21228 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21229 case "(($ac_try" in
21230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21231 *) ac_try_echo=$ac_try;;
21233 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21234 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21236 grep -v '^ *+' conftest.er1 >conftest.err
21238 cat conftest.err >&5
21239 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21240 (exit $ac_status); } >/dev/null && {
21241 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21242 test ! -s conftest.err
21244 ac_header_preproc=yes
21246 echo "$as_me: failed program was
:" >&5
21247 sed 's/^/| /' conftest.$ac_ext >&5
21249 ac_header_preproc=no
21252 rm -f conftest.err conftest.$ac_ext
21253 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21254 echo "${ECHO_T}$ac_header_preproc" >&6; }
21256 # So? What about this header?
21257 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21259 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21260 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21261 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21262 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21263 ac_header_preproc=yes
21266 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21267 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21268 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21269 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21270 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21271 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21272 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21273 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21274 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21275 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21276 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21277 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21281 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21282 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21283 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21284 echo $ECHO_N "(cached
) $ECHO_C" >&6
21286 eval "$as_ac_Header=\
$ac_header_preproc"
21288 ac_res=`eval echo '${'$as_ac_Header'}'`
21289 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21290 echo "${ECHO_T}$ac_res" >&6; }
21293 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21294 cat >>confdefs.h <<_ACEOF
21295 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21312 for ac_header in com_err.h
21314 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21315 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21316 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21317 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21318 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21319 echo $ECHO_N "(cached
) $ECHO_C" >&6
21321 ac_res=`eval echo '${'$as_ac_Header'}'`
21322 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21323 echo "${ECHO_T}$ac_res" >&6; }
21325 # Is the header compilable?
21326 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21327 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21328 cat >conftest.$ac_ext <<_ACEOF
21331 cat confdefs.h >>conftest.$ac_ext
21332 cat >>conftest.$ac_ext <<_ACEOF
21333 /* end confdefs.h. */
21334 $ac_includes_default
21335 #include <$ac_header>
21337 rm -f conftest.$ac_objext
21338 if { (ac_try="$ac_compile"
21339 case "(($ac_try" in
21340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21341 *) ac_try_echo=$ac_try;;
21343 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21344 (eval "$ac_compile") 2>conftest.er1
21346 grep -v '^ *+' conftest.er1 >conftest.err
21348 cat conftest.err >&5
21349 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21350 (exit $ac_status); } && {
21351 test -z "$ac_c_werror_flag" ||
21352 test ! -s conftest.err
21353 } && test -s conftest.$ac_objext; then
21354 ac_header_compiler=yes
21356 echo "$as_me: failed program was
:" >&5
21357 sed 's/^/| /' conftest.$ac_ext >&5
21359 ac_header_compiler=no
21362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21363 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21364 echo "${ECHO_T}$ac_header_compiler" >&6; }
21366 # Is the header present?
21367 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21368 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21369 cat >conftest.$ac_ext <<_ACEOF
21372 cat confdefs.h >>conftest.$ac_ext
21373 cat >>conftest.$ac_ext <<_ACEOF
21374 /* end confdefs.h. */
21375 #include <$ac_header>
21377 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21378 case "(($ac_try" in
21379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21380 *) ac_try_echo=$ac_try;;
21382 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21383 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21385 grep -v '^ *+' conftest.er1 >conftest.err
21387 cat conftest.err >&5
21388 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21389 (exit $ac_status); } >/dev/null && {
21390 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21391 test ! -s conftest.err
21393 ac_header_preproc=yes
21395 echo "$as_me: failed program was
:" >&5
21396 sed 's/^/| /' conftest.$ac_ext >&5
21398 ac_header_preproc=no
21401 rm -f conftest.err conftest.$ac_ext
21402 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21403 echo "${ECHO_T}$ac_header_preproc" >&6; }
21405 # So? What about this header?
21406 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21408 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21409 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21410 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21411 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21412 ac_header_preproc=yes
21415 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21416 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21417 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21418 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21419 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21420 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21421 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21422 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21423 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21424 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21425 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21426 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21430 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21431 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21432 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21433 echo $ECHO_N "(cached
) $ECHO_C" >&6
21435 eval "$as_ac_Header=\
$ac_header_preproc"
21437 ac_res=`eval echo '${'$as_ac_Header'}'`
21438 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21439 echo "${ECHO_T}$ac_res" >&6; }
21442 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21443 cat >>confdefs.h <<_ACEOF
21444 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21453 # Solaris requires -lintl if you want strerror (which calls dgettext)
21454 # to return localized messages.
21456 { echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
21457 echo $ECHO_N "checking
for dgettext
in -lintl...
$ECHO_C" >&6; }
21458 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21459 echo $ECHO_N "(cached
) $ECHO_C" >&6
21461 ac_check_lib_save_LIBS=$LIBS
21462 LIBS="-lintl $LIBS"
21463 cat >conftest.$ac_ext <<_ACEOF
21466 cat confdefs.h >>conftest.$ac_ext
21467 cat >>conftest.$ac_ext <<_ACEOF
21468 /* end confdefs.h. */
21470 /* Override any GCC internal prototype to avoid an error.
21471 Use char because int might match the return type of a GCC
21472 builtin and then its argument prototype would still apply. */
21480 return dgettext ();
21485 rm -f conftest.$ac_objext conftest$ac_exeext
21486 if { (ac_try="$ac_link"
21487 case "(($ac_try" in
21488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21489 *) ac_try_echo=$ac_try;;
21491 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21492 (eval "$ac_link") 2>conftest.er1
21494 grep -v '^ *+' conftest.er1 >conftest.err
21496 cat conftest.err >&5
21497 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21498 (exit $ac_status); } && {
21499 test -z "$ac_c_werror_flag" ||
21500 test ! -s conftest.err
21501 } && test -s conftest$ac_exeext &&
21502 $as_test_x conftest$ac_exeext; then
21503 ac_cv_lib_intl_dgettext=yes
21505 echo "$as_me: failed program was
:" >&5
21506 sed 's/^/| /' conftest.$ac_ext >&5
21508 ac_cv_lib_intl_dgettext=no
21511 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21512 conftest$ac_exeext conftest.$ac_ext
21513 LIBS=$ac_check_lib_save_LIBS
21515 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
21516 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
21517 if test $ac_cv_lib_intl_dgettext = yes; then
21518 cat >>confdefs.h <<_ACEOF
21519 #define HAVE_LIBINTL 1
21522 LIBS="-lintl $LIBS"
21527 { echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
21528 echo $ECHO_N "checking whether localtime caches TZ...
$ECHO_C" >&6; }
21529 if test "${emacs_cv_localtime_cache+set}" = set; then
21530 echo $ECHO_N "(cached
) $ECHO_C" >&6
21532 if test x$ac_cv_func_tzset = xyes; then
21533 if test "$cross_compiling" = yes; then
21534 # If we have tzset, assume the worst when cross-compiling.
21535 emacs_cv_localtime_cache=yes
21537 cat >conftest.$ac_ext <<_ACEOF
21540 cat confdefs.h >>conftest.$ac_ext
21541 cat >>conftest.$ac_ext <<_ACEOF
21542 /* end confdefs.h. */
21544 extern char **environ;
21548 for (to = from = environ; (*to = *from); from++)
21549 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
21552 char TZ_GMT0[] = "TZ
=GMT0
";
21553 char TZ_PST8[] = "TZ
=PST8
";
21556 time_t now = time ((time_t *) 0);
21557 int hour_GMT0, hour_unset;
21558 if (putenv (TZ_GMT0) != 0)
21560 hour_GMT0 = localtime (&now)->tm_hour;
21562 hour_unset = localtime (&now)->tm_hour;
21563 if (putenv (TZ_PST8) != 0)
21565 if (localtime (&now)->tm_hour == hour_GMT0)
21568 if (localtime (&now)->tm_hour != hour_unset)
21573 rm -f conftest$ac_exeext
21574 if { (ac_try="$ac_link"
21575 case "(($ac_try" in
21576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21577 *) ac_try_echo=$ac_try;;
21579 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21580 (eval "$ac_link") 2>&5
21582 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21583 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21584 { (case "(($ac_try" in
21585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21586 *) ac_try_echo=$ac_try;;
21588 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21589 (eval "$ac_try") 2>&5
21591 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21592 (exit $ac_status); }; }; then
21593 emacs_cv_localtime_cache=no
21595 echo "$as_me: program exited with status
$ac_status" >&5
21596 echo "$as_me: failed program was
:" >&5
21597 sed 's/^/| /' conftest.$ac_ext >&5
21599 ( exit $ac_status )
21600 emacs_cv_localtime_cache=yes
21602 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21607 # If we lack tzset, report that localtime does not cache TZ,
21608 # since we can't invalidate the cache if we don't have tzset.
21609 emacs_cv_localtime_cache=no
21612 { echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
21613 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
21614 if test $emacs_cv_localtime_cache = yes; then
21616 cat >>confdefs.h <<\_ACEOF
21617 #define LOCALTIME_CACHE 1
21622 if test "x
$HAVE_TIMEVAL" = xyes; then
21624 for ac_func in gettimeofday
21626 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
21627 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
21628 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
21629 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
21630 echo $ECHO_N "(cached
) $ECHO_C" >&6
21632 cat >conftest.$ac_ext <<_ACEOF
21635 cat confdefs.h >>conftest.$ac_ext
21636 cat >>conftest.$ac_ext <<_ACEOF
21637 /* end confdefs.h. */
21638 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21639 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21640 #define $ac_func innocuous_$ac_func
21642 /* System header to define __stub macros and hopefully few prototypes,
21643 which can conflict with char $ac_func (); below.
21644 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21645 <limits.h> exists even on freestanding compilers. */
21648 # include <limits.h>
21650 # include <assert.h>
21655 /* Override any GCC internal prototype to avoid an error.
21656 Use char because int might match the return type of a GCC
21657 builtin and then its argument prototype would still apply. */
21662 /* The GNU C library defines this for functions which it implements
21663 to always fail with ENOSYS. Some functions are actually named
21664 something starting with __ and the normal name is an alias. */
21665 #if defined __stub_$ac_func || defined __stub___$ac_func
21672 return $ac_func ();
21677 rm -f conftest.$ac_objext conftest$ac_exeext
21678 if { (ac_try="$ac_link"
21679 case "(($ac_try" in
21680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21681 *) ac_try_echo=$ac_try;;
21683 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21684 (eval "$ac_link") 2>conftest.er1
21686 grep -v '^ *+' conftest.er1 >conftest.err
21688 cat conftest.err >&5
21689 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21690 (exit $ac_status); } && {
21691 test -z "$ac_c_werror_flag" ||
21692 test ! -s conftest.err
21693 } && test -s conftest$ac_exeext &&
21694 $as_test_x conftest$ac_exeext; then
21695 eval "$as_ac_var=yes"
21697 echo "$as_me: failed program was
:" >&5
21698 sed 's/^/| /' conftest.$ac_ext >&5
21700 eval "$as_ac_var=no
"
21703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21704 conftest$ac_exeext conftest.$ac_ext
21706 ac_res=`eval echo '${'$as_ac_var'}'`
21707 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21708 echo "${ECHO_T}$ac_res" >&6; }
21709 if test `eval echo '${'$as_ac_var'}'` = yes; then
21710 cat >>confdefs.h <<_ACEOF
21711 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21717 if test $ac_cv_func_gettimeofday = yes; then
21718 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
21719 echo $ECHO_N "checking whether gettimeofday can accept two arguments...
$ECHO_C" >&6; }
21720 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
21721 echo $ECHO_N "(cached
) $ECHO_C" >&6
21723 cat >conftest.$ac_ext <<_ACEOF
21726 cat confdefs.h >>conftest.$ac_ext
21727 cat >>conftest.$ac_ext <<_ACEOF
21728 /* end confdefs.h. */
21730 #ifdef TIME_WITH_SYS_TIME
21731 #include <sys/time.h>
21734 #ifdef HAVE_SYS_TIME_H
21735 #include <sys/time.h>
21743 struct timeval time;
21744 gettimeofday (&time, 0);
21749 rm -f conftest.$ac_objext
21750 if { (ac_try="$ac_compile"
21751 case "(($ac_try" in
21752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21753 *) ac_try_echo=$ac_try;;
21755 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21756 (eval "$ac_compile") 2>conftest.er1
21758 grep -v '^ *+' conftest.er1 >conftest.err
21760 cat conftest.err >&5
21761 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21762 (exit $ac_status); } && {
21763 test -z "$ac_c_werror_flag" ||
21764 test ! -s conftest.err
21765 } && test -s conftest.$ac_objext; then
21766 emacs_cv_gettimeofday_two_arguments=yes
21768 echo "$as_me: failed program was
:" >&5
21769 sed 's/^/| /' conftest.$ac_ext >&5
21771 emacs_cv_gettimeofday_two_arguments=no
21774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21776 { echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
21777 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
21778 if test $emacs_cv_gettimeofday_two_arguments = no; then
21780 cat >>confdefs.h <<\_ACEOF
21781 #define GETTIMEOFDAY_ONE_ARGUMENT 1
21789 { echo "$as_me:$LINENO: checking
for socket
" >&5
21790 echo $ECHO_N "checking
for socket...
$ECHO_C" >&6; }
21791 if test "${ac_cv_func_socket+set}" = set; then
21792 echo $ECHO_N "(cached
) $ECHO_C" >&6
21794 cat >conftest.$ac_ext <<_ACEOF
21797 cat confdefs.h >>conftest.$ac_ext
21798 cat >>conftest.$ac_ext <<_ACEOF
21799 /* end confdefs.h. */
21800 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21801 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21802 #define socket innocuous_socket
21804 /* System header to define __stub macros and hopefully few prototypes,
21805 which can conflict with char socket (); below.
21806 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21807 <limits.h> exists even on freestanding compilers. */
21810 # include <limits.h>
21812 # include <assert.h>
21817 /* Override any GCC internal prototype to avoid an error.
21818 Use char because int might match the return type of a GCC
21819 builtin and then its argument prototype would still apply. */
21824 /* The GNU C library defines this for functions which it implements
21825 to always fail with ENOSYS. Some functions are actually named
21826 something starting with __ and the normal name is an alias. */
21827 #if defined __stub_socket || defined __stub___socket
21839 rm -f conftest.$ac_objext conftest$ac_exeext
21840 if { (ac_try="$ac_link"
21841 case "(($ac_try" in
21842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21843 *) ac_try_echo=$ac_try;;
21845 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21846 (eval "$ac_link") 2>conftest.er1
21848 grep -v '^ *+' conftest.er1 >conftest.err
21850 cat conftest.err >&5
21851 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21852 (exit $ac_status); } && {
21853 test -z "$ac_c_werror_flag" ||
21854 test ! -s conftest.err
21855 } && test -s conftest$ac_exeext &&
21856 $as_test_x conftest$ac_exeext; then
21857 ac_cv_func_socket=yes
21859 echo "$as_me: failed program was
:" >&5
21860 sed 's/^/| /' conftest.$ac_ext >&5
21862 ac_cv_func_socket=no
21865 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21866 conftest$ac_exeext conftest.$ac_ext
21868 { echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
21869 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
21870 if test $ac_cv_func_socket = yes; then
21876 if test $ok_so_far = yes; then
21877 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21878 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
21879 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
21880 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21881 echo $ECHO_N "(cached
) $ECHO_C" >&6
21883 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
21884 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21886 # Is the header compilable?
21887 { echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
21888 echo $ECHO_N "checking netinet
/in.h usability...
$ECHO_C" >&6; }
21889 cat >conftest.$ac_ext <<_ACEOF
21892 cat confdefs.h >>conftest.$ac_ext
21893 cat >>conftest.$ac_ext <<_ACEOF
21894 /* end confdefs.h. */
21895 $ac_includes_default
21896 #include <netinet/in.h>
21898 rm -f conftest.$ac_objext
21899 if { (ac_try="$ac_compile"
21900 case "(($ac_try" in
21901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21902 *) ac_try_echo=$ac_try;;
21904 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21905 (eval "$ac_compile") 2>conftest.er1
21907 grep -v '^ *+' conftest.er1 >conftest.err
21909 cat conftest.err >&5
21910 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21911 (exit $ac_status); } && {
21912 test -z "$ac_c_werror_flag" ||
21913 test ! -s conftest.err
21914 } && test -s conftest.$ac_objext; then
21915 ac_header_compiler=yes
21917 echo "$as_me: failed program was
:" >&5
21918 sed 's/^/| /' conftest.$ac_ext >&5
21920 ac_header_compiler=no
21923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21924 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21925 echo "${ECHO_T}$ac_header_compiler" >&6; }
21927 # Is the header present?
21928 { echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
21929 echo $ECHO_N "checking netinet
/in.h presence...
$ECHO_C" >&6; }
21930 cat >conftest.$ac_ext <<_ACEOF
21933 cat confdefs.h >>conftest.$ac_ext
21934 cat >>conftest.$ac_ext <<_ACEOF
21935 /* end confdefs.h. */
21936 #include <netinet/in.h>
21938 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21939 case "(($ac_try" in
21940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21941 *) ac_try_echo=$ac_try;;
21943 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21944 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21946 grep -v '^ *+' conftest.er1 >conftest.err
21948 cat conftest.err >&5
21949 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21950 (exit $ac_status); } >/dev/null && {
21951 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21952 test ! -s conftest.err
21954 ac_header_preproc=yes
21956 echo "$as_me: failed program was
:" >&5
21957 sed 's/^/| /' conftest.$ac_ext >&5
21959 ac_header_preproc=no
21962 rm -f conftest.err conftest.$ac_ext
21963 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21964 echo "${ECHO_T}$ac_header_preproc" >&6; }
21966 # So? What about this header?
21967 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21969 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
21970 echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21971 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
21972 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
21973 ac_header_preproc=yes
21976 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
21977 echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
21978 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
21979 echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
21980 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
21981 echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
21982 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
21983 echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
21984 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
21985 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
21986 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
21987 echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
21991 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
21992 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
21993 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21994 echo $ECHO_N "(cached
) $ECHO_C" >&6
21996 ac_cv_header_netinet_in_h=$ac_header_preproc
21998 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
21999 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22002 if test $ac_cv_header_netinet_in_h = yes; then
22010 if test $ok_so_far = yes; then
22011 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22012 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22013 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22014 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22015 echo $ECHO_N "(cached
) $ECHO_C" >&6
22017 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22018 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22020 # Is the header compilable?
22021 { echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
22022 echo $ECHO_N "checking arpa
/inet.h usability...
$ECHO_C" >&6; }
22023 cat >conftest.$ac_ext <<_ACEOF
22026 cat confdefs.h >>conftest.$ac_ext
22027 cat >>conftest.$ac_ext <<_ACEOF
22028 /* end confdefs.h. */
22029 $ac_includes_default
22030 #include <arpa/inet.h>
22032 rm -f conftest.$ac_objext
22033 if { (ac_try="$ac_compile"
22034 case "(($ac_try" in
22035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22036 *) ac_try_echo=$ac_try;;
22038 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22039 (eval "$ac_compile") 2>conftest.er1
22041 grep -v '^ *+' conftest.er1 >conftest.err
22043 cat conftest.err >&5
22044 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22045 (exit $ac_status); } && {
22046 test -z "$ac_c_werror_flag" ||
22047 test ! -s conftest.err
22048 } && test -s conftest.$ac_objext; then
22049 ac_header_compiler=yes
22051 echo "$as_me: failed program was
:" >&5
22052 sed 's/^/| /' conftest.$ac_ext >&5
22054 ac_header_compiler=no
22057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22058 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22059 echo "${ECHO_T}$ac_header_compiler" >&6; }
22061 # Is the header present?
22062 { echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
22063 echo $ECHO_N "checking arpa
/inet.h presence...
$ECHO_C" >&6; }
22064 cat >conftest.$ac_ext <<_ACEOF
22067 cat confdefs.h >>conftest.$ac_ext
22068 cat >>conftest.$ac_ext <<_ACEOF
22069 /* end confdefs.h. */
22070 #include <arpa/inet.h>
22072 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22073 case "(($ac_try" in
22074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22075 *) ac_try_echo=$ac_try;;
22077 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22078 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22080 grep -v '^ *+' conftest.er1 >conftest.err
22082 cat conftest.err >&5
22083 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22084 (exit $ac_status); } >/dev/null && {
22085 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22086 test ! -s conftest.err
22088 ac_header_preproc=yes
22090 echo "$as_me: failed program was
:" >&5
22091 sed 's/^/| /' conftest.$ac_ext >&5
22093 ac_header_preproc=no
22096 rm -f conftest.err conftest.$ac_ext
22097 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22098 echo "${ECHO_T}$ac_header_preproc" >&6; }
22100 # So? What about this header?
22101 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22103 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22104 echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22105 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
22106 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
22107 ac_header_preproc=yes
22110 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
22111 echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
22112 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
22113 echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
22114 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
22115 echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
22116 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22117 echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22118 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
22119 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
22120 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
22121 echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
22125 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22126 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22127 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22128 echo $ECHO_N "(cached
) $ECHO_C" >&6
22130 ac_cv_header_arpa_inet_h=$ac_header_preproc
22132 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22133 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22136 if test $ac_cv_header_arpa_inet_h = yes; then
22144 if test $ok_so_far = yes; then
22146 cat >>confdefs.h <<\_ACEOF
22147 #define HAVE_INET_SOCKETS 1
22153 for ac_header in sys/ioctl.h
22155 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22156 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22157 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22158 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22159 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22160 echo $ECHO_N "(cached
) $ECHO_C" >&6
22162 ac_res=`eval echo '${'$as_ac_Header'}'`
22163 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22164 echo "${ECHO_T}$ac_res" >&6; }
22166 # Is the header compilable?
22167 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22168 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22169 cat >conftest.$ac_ext <<_ACEOF
22172 cat confdefs.h >>conftest.$ac_ext
22173 cat >>conftest.$ac_ext <<_ACEOF
22174 /* end confdefs.h. */
22175 $ac_includes_default
22176 #include <$ac_header>
22178 rm -f conftest.$ac_objext
22179 if { (ac_try="$ac_compile"
22180 case "(($ac_try" in
22181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22182 *) ac_try_echo=$ac_try;;
22184 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22185 (eval "$ac_compile") 2>conftest.er1
22187 grep -v '^ *+' conftest.er1 >conftest.err
22189 cat conftest.err >&5
22190 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22191 (exit $ac_status); } && {
22192 test -z "$ac_c_werror_flag" ||
22193 test ! -s conftest.err
22194 } && test -s conftest.$ac_objext; then
22195 ac_header_compiler=yes
22197 echo "$as_me: failed program was
:" >&5
22198 sed 's/^/| /' conftest.$ac_ext >&5
22200 ac_header_compiler=no
22203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22204 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22205 echo "${ECHO_T}$ac_header_compiler" >&6; }
22207 # Is the header present?
22208 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22209 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22210 cat >conftest.$ac_ext <<_ACEOF
22213 cat confdefs.h >>conftest.$ac_ext
22214 cat >>conftest.$ac_ext <<_ACEOF
22215 /* end confdefs.h. */
22216 #include <$ac_header>
22218 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22219 case "(($ac_try" in
22220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22221 *) ac_try_echo=$ac_try;;
22223 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22224 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22226 grep -v '^ *+' conftest.er1 >conftest.err
22228 cat conftest.err >&5
22229 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22230 (exit $ac_status); } >/dev/null && {
22231 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22232 test ! -s conftest.err
22234 ac_header_preproc=yes
22236 echo "$as_me: failed program was
:" >&5
22237 sed 's/^/| /' conftest.$ac_ext >&5
22239 ac_header_preproc=no
22242 rm -f conftest.err conftest.$ac_ext
22243 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22244 echo "${ECHO_T}$ac_header_preproc" >&6; }
22246 # So? What about this header?
22247 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22249 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22250 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22251 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22252 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22253 ac_header_preproc=yes
22256 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22257 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22258 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22259 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22260 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22261 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22262 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22263 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22264 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22265 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22266 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22267 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22271 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22272 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22273 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22274 echo $ECHO_N "(cached
) $ECHO_C" >&6
22276 eval "$as_ac_Header=\
$ac_header_preproc"
22278 ac_res=`eval echo '${'$as_ac_Header'}'`
22279 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22280 echo "${ECHO_T}$ac_res" >&6; }
22283 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22284 cat >>confdefs.h <<_ACEOF
22285 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22293 if test -f /usr/lpp/X11/bin/smt.exp; then
22295 cat >>confdefs.h <<\_ACEOF
22296 #define HAVE_AIX_SMT_EXP 1
22301 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
22302 echo $ECHO_N "checking whether system supports dynamic ptys...
$ECHO_C" >&6; }
22303 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22304 { echo "$as_me:$LINENO: result
: yes" >&5
22305 echo "${ECHO_T}yes" >&6; }
22307 cat >>confdefs.h <<\_ACEOF
22308 #define HAVE_DEV_PTMX 1
22312 { echo "$as_me:$LINENO: result
: no
" >&5
22313 echo "${ECHO_T}no
" >&6; }
22316 { echo "$as_me:$LINENO: checking
for pid_t
" >&5
22317 echo $ECHO_N "checking
for pid_t...
$ECHO_C" >&6; }
22318 if test "${ac_cv_type_pid_t+set}" = set; then
22319 echo $ECHO_N "(cached
) $ECHO_C" >&6
22321 cat >conftest.$ac_ext <<_ACEOF
22324 cat confdefs.h >>conftest.$ac_ext
22325 cat >>conftest.$ac_ext <<_ACEOF
22326 /* end confdefs.h. */
22327 $ac_includes_default
22328 typedef pid_t ac__type_new_;
22332 if ((ac__type_new_ *) 0)
22334 if (sizeof (ac__type_new_))
22340 rm -f conftest.$ac_objext
22341 if { (ac_try="$ac_compile"
22342 case "(($ac_try" in
22343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22344 *) ac_try_echo=$ac_try;;
22346 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22347 (eval "$ac_compile") 2>conftest.er1
22349 grep -v '^ *+' conftest.er1 >conftest.err
22351 cat conftest.err >&5
22352 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22353 (exit $ac_status); } && {
22354 test -z "$ac_c_werror_flag" ||
22355 test ! -s conftest.err
22356 } && test -s conftest.$ac_objext; then
22357 ac_cv_type_pid_t=yes
22359 echo "$as_me: failed program was
:" >&5
22360 sed 's/^/| /' conftest.$ac_ext >&5
22362 ac_cv_type_pid_t=no
22365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22367 { echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
22368 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22369 if test $ac_cv_type_pid_t = yes; then
22373 cat >>confdefs.h <<_ACEOF
22380 for ac_header in vfork.h
22382 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22383 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22384 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22385 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22386 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22387 echo $ECHO_N "(cached
) $ECHO_C" >&6
22389 ac_res=`eval echo '${'$as_ac_Header'}'`
22390 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22391 echo "${ECHO_T}$ac_res" >&6; }
22393 # Is the header compilable?
22394 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22395 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22396 cat >conftest.$ac_ext <<_ACEOF
22399 cat confdefs.h >>conftest.$ac_ext
22400 cat >>conftest.$ac_ext <<_ACEOF
22401 /* end confdefs.h. */
22402 $ac_includes_default
22403 #include <$ac_header>
22405 rm -f conftest.$ac_objext
22406 if { (ac_try="$ac_compile"
22407 case "(($ac_try" in
22408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22409 *) ac_try_echo=$ac_try;;
22411 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22412 (eval "$ac_compile") 2>conftest.er1
22414 grep -v '^ *+' conftest.er1 >conftest.err
22416 cat conftest.err >&5
22417 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22418 (exit $ac_status); } && {
22419 test -z "$ac_c_werror_flag" ||
22420 test ! -s conftest.err
22421 } && test -s conftest.$ac_objext; then
22422 ac_header_compiler=yes
22424 echo "$as_me: failed program was
:" >&5
22425 sed 's/^/| /' conftest.$ac_ext >&5
22427 ac_header_compiler=no
22430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22431 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22432 echo "${ECHO_T}$ac_header_compiler" >&6; }
22434 # Is the header present?
22435 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22436 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22437 cat >conftest.$ac_ext <<_ACEOF
22440 cat confdefs.h >>conftest.$ac_ext
22441 cat >>conftest.$ac_ext <<_ACEOF
22442 /* end confdefs.h. */
22443 #include <$ac_header>
22445 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22446 case "(($ac_try" in
22447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22448 *) ac_try_echo=$ac_try;;
22450 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22451 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22453 grep -v '^ *+' conftest.er1 >conftest.err
22455 cat conftest.err >&5
22456 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22457 (exit $ac_status); } >/dev/null && {
22458 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22459 test ! -s conftest.err
22461 ac_header_preproc=yes
22463 echo "$as_me: failed program was
:" >&5
22464 sed 's/^/| /' conftest.$ac_ext >&5
22466 ac_header_preproc=no
22469 rm -f conftest.err conftest.$ac_ext
22470 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22471 echo "${ECHO_T}$ac_header_preproc" >&6; }
22473 # So? What about this header?
22474 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22476 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22477 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22478 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22479 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22480 ac_header_preproc=yes
22483 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22484 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22485 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22486 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22487 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22488 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22489 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22490 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22491 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22492 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22493 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22494 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22498 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22499 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22500 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22501 echo $ECHO_N "(cached
) $ECHO_C" >&6
22503 eval "$as_ac_Header=\
$ac_header_preproc"
22505 ac_res=`eval echo '${'$as_ac_Header'}'`
22506 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22507 echo "${ECHO_T}$ac_res" >&6; }
22510 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22511 cat >>confdefs.h <<_ACEOF
22512 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22521 for ac_func in fork vfork
22523 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
22524 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
22525 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
22526 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
22527 echo $ECHO_N "(cached
) $ECHO_C" >&6
22529 cat >conftest.$ac_ext <<_ACEOF
22532 cat confdefs.h >>conftest.$ac_ext
22533 cat >>conftest.$ac_ext <<_ACEOF
22534 /* end confdefs.h. */
22535 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22536 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22537 #define $ac_func innocuous_$ac_func
22539 /* System header to define __stub macros and hopefully few prototypes,
22540 which can conflict with char $ac_func (); below.
22541 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22542 <limits.h> exists even on freestanding compilers. */
22545 # include <limits.h>
22547 # include <assert.h>
22552 /* Override any GCC internal prototype to avoid an error.
22553 Use char because int might match the return type of a GCC
22554 builtin and then its argument prototype would still apply. */
22559 /* The GNU C library defines this for functions which it implements
22560 to always fail with ENOSYS. Some functions are actually named
22561 something starting with __ and the normal name is an alias. */
22562 #if defined __stub_$ac_func || defined __stub___$ac_func
22569 return $ac_func ();
22574 rm -f conftest.$ac_objext conftest$ac_exeext
22575 if { (ac_try="$ac_link"
22576 case "(($ac_try" in
22577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22578 *) ac_try_echo=$ac_try;;
22580 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22581 (eval "$ac_link") 2>conftest.er1
22583 grep -v '^ *+' conftest.er1 >conftest.err
22585 cat conftest.err >&5
22586 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22587 (exit $ac_status); } && {
22588 test -z "$ac_c_werror_flag" ||
22589 test ! -s conftest.err
22590 } && test -s conftest$ac_exeext &&
22591 $as_test_x conftest$ac_exeext; then
22592 eval "$as_ac_var=yes"
22594 echo "$as_me: failed program was
:" >&5
22595 sed 's/^/| /' conftest.$ac_ext >&5
22597 eval "$as_ac_var=no
"
22600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22601 conftest$ac_exeext conftest.$ac_ext
22603 ac_res=`eval echo '${'$as_ac_var'}'`
22604 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22605 echo "${ECHO_T}$ac_res" >&6; }
22606 if test `eval echo '${'$as_ac_var'}'` = yes; then
22607 cat >>confdefs.h <<_ACEOF
22608 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
22614 if test "x
$ac_cv_func_fork" = xyes; then
22615 { echo "$as_me:$LINENO: checking
for working fork
" >&5
22616 echo $ECHO_N "checking
for working fork...
$ECHO_C" >&6; }
22617 if test "${ac_cv_func_fork_works+set}" = set; then
22618 echo $ECHO_N "(cached
) $ECHO_C" >&6
22620 if test "$cross_compiling" = yes; then
22621 ac_cv_func_fork_works=cross
22623 cat >conftest.$ac_ext <<_ACEOF
22626 cat confdefs.h >>conftest.$ac_ext
22627 cat >>conftest.$ac_ext <<_ACEOF
22628 /* end confdefs.h. */
22629 $ac_includes_default
22634 /* By Ruediger Kuhlmann. */
22635 return fork () < 0;
22641 rm -f conftest$ac_exeext
22642 if { (ac_try="$ac_link"
22643 case "(($ac_try" in
22644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22645 *) ac_try_echo=$ac_try;;
22647 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22648 (eval "$ac_link") 2>&5
22650 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22651 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22652 { (case "(($ac_try" in
22653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22654 *) ac_try_echo=$ac_try;;
22656 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22657 (eval "$ac_try") 2>&5
22659 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22660 (exit $ac_status); }; }; then
22661 ac_cv_func_fork_works=yes
22663 echo "$as_me: program exited with status
$ac_status" >&5
22664 echo "$as_me: failed program was
:" >&5
22665 sed 's/^/| /' conftest.$ac_ext >&5
22667 ( exit $ac_status )
22668 ac_cv_func_fork_works=no
22670 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22675 { echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
22676 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
22679 ac_cv_func_fork_works=$ac_cv_func_fork
22681 if test "x
$ac_cv_func_fork_works" = xcross; then
22683 *-*-amigaos* | *-*-msdosdjgpp*)
22684 # Override, as these systems have only a dummy fork() stub
22685 ac_cv_func_fork_works=no
22688 ac_cv_func_fork_works=yes
22691 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
22692 echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
22694 ac_cv_func_vfork_works=$ac_cv_func_vfork
22695 if test "x
$ac_cv_func_vfork" = xyes; then
22696 { echo "$as_me:$LINENO: checking
for working vfork
" >&5
22697 echo $ECHO_N "checking
for working vfork...
$ECHO_C" >&6; }
22698 if test "${ac_cv_func_vfork_works+set}" = set; then
22699 echo $ECHO_N "(cached
) $ECHO_C" >&6
22701 if test "$cross_compiling" = yes; then
22702 ac_cv_func_vfork_works=cross
22704 cat >conftest.$ac_ext <<_ACEOF
22707 cat confdefs.h >>conftest.$ac_ext
22708 cat >>conftest.$ac_ext <<_ACEOF
22709 /* end confdefs.h. */
22710 /* Thanks to Paul Eggert for this test. */
22711 $ac_includes_default
22712 #include <sys/wait.h>
22713 #ifdef HAVE_VFORK_H
22714 # include <vfork.h>
22716 /* On some sparc systems, changes by the child to local and incoming
22717 argument registers are propagated back to the parent. The compiler
22718 is told about this with #include <vfork.h>, but some compilers
22719 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22720 static variable whose address is put into a register that is
22721 clobbered by the vfork. */
22724 sparc_address_test (int arg)
22726 sparc_address_test (arg) int arg;
22729 static pid_t child;
22747 pid_t parent = getpid ();
22750 sparc_address_test (0);
22755 /* Here is another test for sparc vfork register problems. This
22756 test uses lots of local variables, at least as many local
22757 variables as main has allocated so far including compiler
22758 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22759 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22760 reuse the register of parent for one of the local variables,
22761 since it will think that parent can't possibly be used any more
22762 in this routine. Assigning to the local variable will thus
22763 munge parent in the parent process. */
22765 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22766 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22767 /* Convince the compiler that p..p7 are live; otherwise, it might
22768 use the same hardware register for all 8 local variables. */
22769 if (p != p1 || p != p2 || p != p3 || p != p4
22770 || p != p5 || p != p6 || p != p7)
22773 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22774 from child file descriptors. If the child closes a descriptor
22775 before it execs or exits, this munges the parent's descriptor
22776 as well. Test for this by closing stdout in the child. */
22777 _exit(close(fileno(stdout)) != 0);
22782 while (wait(&status) != child)
22785 /* Was there some problem with vforking? */
22788 /* Did the child fail? (This shouldn't happen.) */
22791 /* Did the vfork/compiler bug occur? */
22792 || parent != getpid()
22794 /* Did the file descriptor bug occur? */
22795 || fstat(fileno(stdout), &st) != 0
22800 rm -f conftest$ac_exeext
22801 if { (ac_try="$ac_link"
22802 case "(($ac_try" in
22803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22804 *) ac_try_echo=$ac_try;;
22806 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22807 (eval "$ac_link") 2>&5
22809 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22810 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22811 { (case "(($ac_try" in
22812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22813 *) ac_try_echo=$ac_try;;
22815 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22816 (eval "$ac_try") 2>&5
22818 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22819 (exit $ac_status); }; }; then
22820 ac_cv_func_vfork_works=yes
22822 echo "$as_me: program exited with status
$ac_status" >&5
22823 echo "$as_me: failed program was
:" >&5
22824 sed 's/^/| /' conftest.$ac_ext >&5
22826 ( exit $ac_status )
22827 ac_cv_func_vfork_works=no
22829 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22834 { echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
22835 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
22838 if test "x
$ac_cv_func_fork_works" = xcross; then
22839 ac_cv_func_vfork_works=$ac_cv_func_vfork
22840 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
22841 echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
22844 if test "x
$ac_cv_func_vfork_works" = xyes; then
22846 cat >>confdefs.h <<\_ACEOF
22847 #define HAVE_WORKING_VFORK 1
22852 cat >>confdefs.h <<\_ACEOF
22857 if test "x
$ac_cv_func_fork_works" = xyes; then
22859 cat >>confdefs.h <<\_ACEOF
22860 #define HAVE_WORKING_FORK 1
22866 { echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
22867 echo $ECHO_N "checking
for nl_langinfo and CODESET...
$ECHO_C" >&6; }
22868 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22869 echo $ECHO_N "(cached
) $ECHO_C" >&6
22871 cat >conftest.$ac_ext <<_ACEOF
22874 cat confdefs.h >>conftest.$ac_ext
22875 cat >>conftest.$ac_ext <<_ACEOF
22876 /* end confdefs.h. */
22877 #include <langinfo.h>
22881 char* cs = nl_langinfo(CODESET);
22886 rm -f conftest.$ac_objext conftest$ac_exeext
22887 if { (ac_try="$ac_link"
22888 case "(($ac_try" in
22889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22890 *) ac_try_echo=$ac_try;;
22892 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22893 (eval "$ac_link") 2>conftest.er1
22895 grep -v '^ *+' conftest.er1 >conftest.err
22897 cat conftest.err >&5
22898 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22899 (exit $ac_status); } && {
22900 test -z "$ac_c_werror_flag" ||
22901 test ! -s conftest.err
22902 } && test -s conftest$ac_exeext &&
22903 $as_test_x conftest$ac_exeext; then
22904 emacs_cv_langinfo_codeset=yes
22906 echo "$as_me: failed program was
:" >&5
22907 sed 's/^/| /' conftest.$ac_ext >&5
22909 emacs_cv_langinfo_codeset=no
22912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22913 conftest$ac_exeext conftest.$ac_ext
22916 { echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
22917 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
22918 if test $emacs_cv_langinfo_codeset = yes; then
22920 cat >>confdefs.h <<\_ACEOF
22921 #define HAVE_LANGINFO_CODESET 1
22926 { echo "$as_me:$LINENO: checking
for size_t
" >&5
22927 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
22928 if test "${ac_cv_type_size_t+set}" = set; then
22929 echo $ECHO_N "(cached
) $ECHO_C" >&6
22931 cat >conftest.$ac_ext <<_ACEOF
22934 cat confdefs.h >>conftest.$ac_ext
22935 cat >>conftest.$ac_ext <<_ACEOF
22936 /* end confdefs.h. */
22937 $ac_includes_default
22938 typedef size_t ac__type_new_;
22942 if ((ac__type_new_ *) 0)
22944 if (sizeof (ac__type_new_))
22950 rm -f conftest.$ac_objext
22951 if { (ac_try="$ac_compile"
22952 case "(($ac_try" in
22953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22954 *) ac_try_echo=$ac_try;;
22956 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22957 (eval "$ac_compile") 2>conftest.er1
22959 grep -v '^ *+' conftest.er1 >conftest.err
22961 cat conftest.err >&5
22962 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22963 (exit $ac_status); } && {
22964 test -z "$ac_c_werror_flag" ||
22965 test ! -s conftest.err
22966 } && test -s conftest.$ac_objext; then
22967 ac_cv_type_size_t=yes
22969 echo "$as_me: failed program was
:" >&5
22970 sed 's/^/| /' conftest.$ac_ext >&5
22972 ac_cv_type_size_t=no
22975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22977 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
22978 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22979 if test $ac_cv_type_size_t = yes; then
22981 cat >>confdefs.h <<_ACEOF
22982 #define HAVE_SIZE_T 1
22989 { echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
22990 echo $ECHO_N "checking
for mbstate_t...
$ECHO_C" >&6; }
22991 if test "${ac_cv_type_mbstate_t+set}" = set; then
22992 echo $ECHO_N "(cached
) $ECHO_C" >&6
22994 cat >conftest.$ac_ext <<_ACEOF
22997 cat confdefs.h >>conftest.$ac_ext
22998 cat >>conftest.$ac_ext <<_ACEOF
22999 /* end confdefs.h. */
23000 $ac_includes_default
23001 # include <wchar.h>
23005 mbstate_t x; return sizeof x;
23010 rm -f conftest.$ac_objext
23011 if { (ac_try="$ac_compile"
23012 case "(($ac_try" in
23013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23014 *) ac_try_echo=$ac_try;;
23016 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23017 (eval "$ac_compile") 2>conftest.er1
23019 grep -v '^ *+' conftest.er1 >conftest.err
23021 cat conftest.err >&5
23022 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23023 (exit $ac_status); } && {
23024 test -z "$ac_c_werror_flag" ||
23025 test ! -s conftest.err
23026 } && test -s conftest.$ac_objext; then
23027 ac_cv_type_mbstate_t=yes
23029 echo "$as_me: failed program was
:" >&5
23030 sed 's/^/| /' conftest.$ac_ext >&5
23032 ac_cv_type_mbstate_t=no
23035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23037 { echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
23038 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23039 if test $ac_cv_type_mbstate_t = yes; then
23041 cat >>confdefs.h <<\_ACEOF
23042 #define HAVE_MBSTATE_T 1
23047 cat >>confdefs.h <<\_ACEOF
23048 #define mbstate_t int
23053 { echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
23054 echo $ECHO_N "checking
for C restrict keyword...
$ECHO_C" >&6; }
23055 if test "${emacs_cv_c_restrict+set}" = set; then
23056 echo $ECHO_N "(cached
) $ECHO_C" >&6
23058 cat >conftest.$ac_ext <<_ACEOF
23061 cat confdefs.h >>conftest.$ac_ext
23062 cat >>conftest.$ac_ext <<_ACEOF
23063 /* end confdefs.h. */
23064 void fred (int *restrict x);
23073 rm -f conftest.$ac_objext
23074 if { (ac_try="$ac_compile"
23075 case "(($ac_try" in
23076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23077 *) ac_try_echo=$ac_try;;
23079 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23080 (eval "$ac_compile") 2>conftest.er1
23082 grep -v '^ *+' conftest.er1 >conftest.err
23084 cat conftest.err >&5
23085 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23086 (exit $ac_status); } && {
23087 test -z "$ac_c_werror_flag" ||
23088 test ! -s conftest.err
23089 } && test -s conftest.$ac_objext; then
23090 emacs_cv_c_restrict=yes
23092 echo "$as_me: failed program was
:" >&5
23093 sed 's/^/| /' conftest.$ac_ext >&5
23095 cat >conftest.$ac_ext <<_ACEOF
23098 cat confdefs.h >>conftest.$ac_ext
23099 cat >>conftest.$ac_ext <<_ACEOF
23100 /* end confdefs.h. */
23101 void fred (int *__restrict x);
23110 rm -f conftest.$ac_objext
23111 if { (ac_try="$ac_compile"
23112 case "(($ac_try" in
23113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23114 *) ac_try_echo=$ac_try;;
23116 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23117 (eval "$ac_compile") 2>conftest.er1
23119 grep -v '^ *+' conftest.er1 >conftest.err
23121 cat conftest.err >&5
23122 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23123 (exit $ac_status); } && {
23124 test -z "$ac_c_werror_flag" ||
23125 test ! -s conftest.err
23126 } && test -s conftest.$ac_objext; then
23127 emacs_cv_c_restrict=__restrict
23129 echo "$as_me: failed program was
:" >&5
23130 sed 's/^/| /' conftest.$ac_ext >&5
23132 emacs_cv_c_restrict=no
23135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23140 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
23141 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23142 case "$emacs_cv_c_restrict" in
23143 yes) emacs_restrict=restrict;;
23144 no) emacs_restrict="";;
23145 *) emacs_restrict="$emacs_cv_c_restrict";;
23147 if test "$emacs_restrict" != __restrict; then
23149 cat >>confdefs.h <<_ACEOF
23150 #define __restrict $emacs_restrict
23155 { echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
23156 echo $ECHO_N "checking
for C restricted array declarations...
$ECHO_C" >&6; }
23157 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23158 echo $ECHO_N "(cached
) $ECHO_C" >&6
23160 cat >conftest.$ac_ext <<_ACEOF
23163 cat confdefs.h >>conftest.$ac_ext
23164 cat >>conftest.$ac_ext <<_ACEOF
23165 /* end confdefs.h. */
23166 void fred (int x[__restrict]);
23175 rm -f conftest.$ac_objext
23176 if { (ac_try="$ac_compile"
23177 case "(($ac_try" in
23178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23179 *) ac_try_echo=$ac_try;;
23181 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23182 (eval "$ac_compile") 2>conftest.er1
23184 grep -v '^ *+' conftest.er1 >conftest.err
23186 cat conftest.err >&5
23187 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23188 (exit $ac_status); } && {
23189 test -z "$ac_c_werror_flag" ||
23190 test ! -s conftest.err
23191 } && test -s conftest.$ac_objext; then
23192 emacs_cv_c_restrict_arr=yes
23194 echo "$as_me: failed program was
:" >&5
23195 sed 's/^/| /' conftest.$ac_ext >&5
23197 emacs_cv_c_restrict_arr=no
23200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23202 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
23203 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23204 if test "$emacs_cv_c_restrict_arr" = yes; then
23206 cat >>confdefs.h <<\_ACEOF
23207 #define __restrict_arr __restrict
23214 # Set up the CFLAGS for real compilation, so we can substitute it.
23215 CFLAGS="$REAL_CFLAGS"
23216 CPPFLAGS="$REAL_CPPFLAGS"
23218 #### Find out which version of Emacs this is.
23219 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23220 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
23221 if test x"${version}" = x; then
23222 { { echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&5
23223 echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&2;}
23224 { (exit 1); exit 1; }; }
23227 ### Specify what sort of things we'll be editing into Makefile and config.h.
23228 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23264 cat >>confdefs.h <<_ACEOF
23265 #define EMACS_CONFIGURATION "${canonical}"
23269 cat >>confdefs.h <<_ACEOF
23270 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23274 cat >>confdefs.h <<_ACEOF
23275 #define config_machfile "${machfile}"
23279 cat >>confdefs.h <<_ACEOF
23280 #define config_opsysfile "${opsysfile}"
23284 cat >>confdefs.h <<_ACEOF
23285 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23289 cat >>confdefs.h <<_ACEOF
23290 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23294 cat >>confdefs.h <<_ACEOF
23295 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23299 cat >>confdefs.h <<_ACEOF
23300 #define UNEXEC_SRC ${UNEXEC_SRC}
23304 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23306 cat >>confdefs.h <<\_ACEOF
23307 #define HAVE_X_WINDOWS 1
23311 if test "${USE_X_TOOLKIT}" != "none
" ; then
23313 cat >>confdefs.h <<\_ACEOF
23314 #define USE_X_TOOLKIT 1
23318 if test "${HAVE_X11}" = "yes" ; then
23320 cat >>confdefs.h <<\_ACEOF
23325 if test "${HAVE_XFREE386}" = "yes" ; then
23327 cat >>confdefs.h <<\_ACEOF
23328 #define HAVE_XFREE386 1
23332 if test "${HAVE_MENUS}" = "yes" ; then
23334 cat >>confdefs.h <<\_ACEOF
23335 #define HAVE_MENUS 1
23339 if test "${GNU_MALLOC}" = "yes" ; then
23341 cat >>confdefs.h <<\_ACEOF
23342 #define GNU_MALLOC 1
23346 if test "${REL_ALLOC}" = "yes" ; then
23348 cat >>confdefs.h <<\_ACEOF
23349 #define REL_ALLOC 1
23358 #### Report on what we decided to do.
23359 #### Report GTK as a toolkit, even if it doesn't use Xt.
23360 #### It makes printing result more understandable as using GTK sets
23361 #### toolkit_scroll_bars to yes by default.
23362 if test "${HAVE_GTK}" = "yes"; then
23367 Configured
for \
`${canonical}'.
23369 Where should the build process find the source code? ${srcdir}
23370 What operating system and machine description files should Emacs use?
23371 \`${opsysfile}' and \`${machfile}'
23372 What compiler should emacs be built with?
${CC} ${CFLAGS}
23373 Should Emacs use the GNU version of malloc?
${GNU_MALLOC}${GNU_MALLOC_reason}
23374 Should Emacs use a relocating allocator
for buffers?
${REL_ALLOC}
23375 Should Emacs use mmap
(2) for buffer allocation?
$use_mmap_for_buffers
23376 What window system should Emacs use?
${window_system}
23377 What toolkit should Emacs use?
${USE_X_TOOLKIT}"
23379 if test -n "${x_includes}"; then
23380 echo " Where
do we
find X Windows header files?
${x_includes}"
23382 echo " Where
do we
find X Windows header files? Standard
dirs"
23384 if test -n "${x_libraries}"; then
23385 echo " Where
do we
find X Windows libraries?
${x_libraries}"
23387 echo " Where
do we
find X Windows libraries? Standard
dirs"
23390 echo " Does Emacs use
-lXaw3d?
${HAVE_XAW3D}"
23391 echo " Does Emacs use
-lXpm?
${HAVE_XPM}"
23392 echo " Does Emacs use
-ljpeg?
${HAVE_JPEG}"
23393 echo " Does Emacs use
-ltiff?
${HAVE_TIFF}"
23394 echo " Does Emacs use
-lungif?
${HAVE_GIF}"
23395 echo " Does Emacs use
-lpng?
${HAVE_PNG}"
23396 echo " Does Emacs use X toolkit scroll bars?
${USE_TOOLKIT_SCROLL_BARS}"
23399 if test $USE_XASSERTS = yes; then
23400 echo " Compiling with asserts turned on.
"
23401 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23407 # Remove any trailing slashes in these variables.
23408 test "${prefix}" != NONE &&
23409 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23410 test "${exec_prefix}" != NONE &&
23411 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23413 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23414 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23415 ## from Makefile.c can correctly provide the arg `-traditional' to the
23418 cat >conftest.$ac_ext <<_ACEOF
23421 cat confdefs.h >>conftest.$ac_ext
23422 cat >>conftest.$ac_ext <<_ACEOF
23423 /* end confdefs.h. */
23426 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
23427 $EGREP "yes..
yes" >/dev/null 2>&1; then
23428 CPP_NEED_TRADITIONAL=no
23430 CPP_NEED_TRADITIONAL=yes
23435 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
"
23437 ac_config_commands="$ac_config_commands default
"
23439 cat >confcache <<\_ACEOF
23440 # This file is a shell script that caches the results of configure
23441 # tests run on this system so they can be shared between configure
23442 # scripts and configure runs, see configure's option --config-cache.
23443 # It is not useful on other systems. If it contains results you don't
23444 # want to keep, you may remove or edit it.
23446 # config.status only pays attention to the cache file if you give it
23447 # the --recheck option to rerun configure.
23449 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23450 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23451 # following values.
23455 # The following way of writing the cache mishandles newlines in values,
23456 # but we know of no workaround that is simple, portable, and efficient.
23457 # So, we kill variables containing newlines.
23458 # Ultrix sh set writes to stderr and can't be redirected directly,
23459 # and sets the high bit in the cache file unless we assign to the vars.
23461 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23462 eval ac_val=\$$ac_var
23466 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
23467 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
23470 _ | IFS | as_nl) ;; #(
23471 *) $as_unset $ac_var ;;
23477 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23478 *${as_nl}ac_space=\ *)
23479 # `set' does not quote correctly, so add quotes (double-quote
23480 # substitution turns \\\\ into \\, and sed turns \\ into \).
23483 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
23486 # `set' quotes correctly as required by POSIX, so do not add quotes.
23487 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
23496 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23498 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23500 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23501 if test -w "$cache_file"; then
23502 test "x
$cache_file" != "x
/dev
/null
" &&
23503 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
23504 echo "$as_me: updating cache
$cache_file" >&6;}
23505 cat confcache >$cache_file
23507 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
23508 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
23513 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
23514 # Let make expand exec_prefix.
23515 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
23517 DEFS=-DHAVE_CONFIG_H
23521 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
23522 # 1. Remove the extension, and $U if already installed.
23523 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23524 ac_i=`echo "$ac_i" | sed "$ac_script"`
23525 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23526 # will be set to the directory where LIBOBJS objects are built.
23527 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
23528 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
23530 LIBOBJS=$ac_libobjs
23532 LTLIBOBJS=$ac_ltlibobjs
23536 : ${CONFIG_STATUS=./config.status}
23537 ac_clean_files_save=$ac_clean_files
23538 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23539 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
23540 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
23541 cat >$CONFIG_STATUS <<_ACEOF
23543 # Generated by $as_me.
23544 # Run this file to recreate the current configuration.
23545 # Compiler output produced by configure, useful for debugging
23546 # configure, is in config.log if it exists.
23549 ac_cs_recheck=false
23551 SHELL=\${CONFIG_SHELL-$SHELL}
23554 cat >>$CONFIG_STATUS <<\_ACEOF
23555 ## --------------------- ##
23556 ## M4sh Initialization. ##
23557 ## --------------------- ##
23559 # Be more Bourne compatible
23560 DUALCASE=1; export DUALCASE # for MKS sh
23561 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23564 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23565 # is contrary to our usage. Disable this feature.
23566 alias -g '${1+"$@"}'='"$@
"'
23567 setopt NO_GLOB_SUBST
23569 case `(set -o) 2>/dev/null` in
23570 *posix*) set -o posix ;;
23579 # Avoid depending upon Character Ranges.
23580 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23581 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23582 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23583 as_cr_digits='0123456789'
23584 as_cr_alnum=$as_cr_Letters$as_cr_digits
23586 # The user is always right.
23587 if test "${PATH_SEPARATOR+set}" != set; then
23588 echo "#! /bin/sh" >conf$$.sh
23589 echo "exit 0" >>conf$$.sh
23591 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
23599 # Support unset when possible.
23600 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
23608 # We need space, tab and new line, in precisely that order. Quoting is
23609 # there to prevent editors from complaining about space-tab.
23610 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23611 # splitting by setting IFS to empty value.)
23616 # Find who we are. Look in the path if we contain no directory separator.
23618 *[\\/]* ) as_myself
=$0 ;;
23619 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23620 for as_dir
in $PATH
23623 test -z "$as_dir" && as_dir
=.
23624 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
23630 # We did not find ourselves, most probably we were run as `sh COMMAND'
23631 # in which case we are not to be found in the path.
23632 if test "x$as_myself" = x
; then
23635 if test ! -f "$as_myself"; then
23636 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23637 { (exit 1); exit 1; }
23640 # Work around bugs in pre-3.0 UWIN ksh.
23641 for as_var
in ENV MAIL MAILPATH
23642 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
23650 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23651 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23652 LC_TELEPHONE LC_TIME
23654 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23655 eval $as_var=C
; export $as_var
23657 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
23661 # Required to use basename.
23662 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
23663 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
23669 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23670 as_basename
=basename
23676 # Name of the executable.
23677 as_me
=`$as_basename -- "$0" ||
23678 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23679 X"$0" : 'X\(//\)$' \| \
23680 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23682 sed '/^.*\/\([^/][^/]*\)\/*$/{
23701 as_lineno_1
=$LINENO
23702 as_lineno_2
=$LINENO
23703 test "x$as_lineno_1" != "x$as_lineno_2" &&
23704 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
23706 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23707 # uniformly replaced by the line number. The first 'sed' inserts a
23708 # line-number line after each line using $LINENO; the second 'sed'
23709 # does the real work. The second script uses 'N' to pair each
23710 # line-number line with the line containing $LINENO, and appends
23711 # trailing '-' during substitution so that $LINENO is not a special
23712 # case at line end.
23713 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23714 # scripts with optimization help from Paolo Bonzini. Blame Lee
23715 # E. McMahon (1931-1989) for sed's syntax. :-)
23727 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23730 ' >$as_me.lineno
&&
23731 chmod +x
"$as_me.lineno" ||
23732 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23733 { (exit 1); exit 1; }; }
23735 # Don't try to exec as it changes $[0], causing all sort of problems
23736 # (the dirname of $[0] is not the place where we might find the
23737 # original and so on. Autoconf is especially sensitive to this).
23738 .
"./$as_me.lineno"
23739 # Exit status is that of the last command.
23744 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
23750 ECHO_C
= ECHO_N
= ECHO_T
=
23751 case `echo -n x` in
23753 case `echo 'x\c'` in
23754 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
23761 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
23762 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
23768 rm -f conf$$ conf$$.exe conf$$.
file
23769 if test -d conf$$.dir
; then
23770 rm -f conf$$.dir
/conf$$.
file
23776 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
23778 # ... but there are two gotchas:
23779 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23780 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23781 # In both cases, we have to default to `cp -p'.
23782 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
23784 elif ln conf$$.
file conf$$
2>/dev
/null
; then
23789 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
23790 rmdir conf$$.dir
2>/dev
/null
23792 if mkdir
-p .
2>/dev
/null
; then
23795 test -d .
/-p && rmdir .
/-p
23799 if test -x / >/dev
/null
2>&1; then
23800 as_test_x
='test -x'
23802 if ls -dL / >/dev
/null
2>&1; then
23809 if test -d "$1"; then
23815 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23816 ???[sx]*):;;*)false;;esac;fi
23820 as_executable_p
=$as_test_x
23822 # Sed expression to map a string onto a valid CPP name.
23823 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23825 # Sed expression to map a string onto a valid variable name.
23826 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23831 # Save the log message, to keep $[0] and so on meaningful, and to
23832 # report actual input values of CONFIG_FILES etc. instead of their
23833 # values after options handling.
23835 This file was extended by $as_me, which was
23836 generated by GNU Autoconf 2.61. Invocation command line was
23838 CONFIG_FILES = $CONFIG_FILES
23839 CONFIG_HEADERS = $CONFIG_HEADERS
23840 CONFIG_LINKS = $CONFIG_LINKS
23841 CONFIG_COMMANDS = $CONFIG_COMMANDS
23844 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23849 cat >>$CONFIG_STATUS <<_ACEOF
23850 # Files that config.status was made for.
23851 config_files="$ac_config_files"
23852 config_headers="$ac_config_headers"
23853 config_commands="$ac_config_commands"
23857 cat >>$CONFIG_STATUS <<\_ACEOF
23859 \`$as_me' instantiates files from templates according to the
23860 current configuration.
23862 Usage: $0 [OPTIONS] [FILE]...
23864 -h, --help print this help, then exit
23865 -V, --version print version number and configuration settings, then exit
23866 -q, --quiet do not print progress messages
23867 -d, --debug don't remove temporary files
23868 --recheck update $as_me by reconfiguring in the same conditions
23869 --file=FILE[:TEMPLATE]
23870 instantiate the configuration file FILE
23871 --header=FILE[:TEMPLATE]
23872 instantiate the configuration header FILE
23874 Configuration files:
23877 Configuration headers:
23880 Configuration commands:
23883 Report bugs to <bug-autoconf@gnu.org>."
23886 cat >>$CONFIG_STATUS <<_ACEOF
23889 configured by $0, generated by GNU Autoconf 2.61,
23890 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23892 Copyright (C) 2006 Free Software Foundation, Inc.
23893 This config.status script is free software; the Free Software Foundation
23894 gives unlimited permission to copy, distribute and modify it."
23901 cat >>$CONFIG_STATUS <<\_ACEOF
23902 # If no file are specified by the user, then we need to provide default
23903 # value. By we need to know if files were specified by the user.
23909 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
23910 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
23921 # Handling of the options.
23922 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
23924 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
23925 echo "$ac_cs_version"; exit ;;
23926 --debug |
--debu |
--deb |
--de |
--d |
-d )
23928 --file |
--fil |
--fi |
--f )
23930 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
23931 ac_need_defaults
=false
;;
23932 --header |
--heade |
--head |
--hea )
23934 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
23935 ac_need_defaults
=false
;;
23937 # Conflict between --help and --header
23938 { echo "$as_me: error: ambiguous option: $1
23939 Try \`$0 --help' for more information." >&2
23940 { (exit 1); exit 1; }; };;
23941 --help |
--hel |
-h )
23942 echo "$ac_cs_usage"; exit ;;
23943 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
23944 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
23947 # This is an error.
23948 -*) { echo "$as_me: error: unrecognized option: $1
23949 Try \`$0 --help' for more information." >&2
23950 { (exit 1); exit 1; }; } ;;
23952 *) ac_config_targets
="$ac_config_targets $1"
23953 ac_need_defaults
=false
;;
23959 ac_configure_extra_args
=
23961 if $ac_cs_silent; then
23963 ac_configure_extra_args
="$ac_configure_extra_args --silent"
23967 cat >>$CONFIG_STATUS <<_ACEOF
23968 if \$ac_cs_recheck; then
23969 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23970 CONFIG_SHELL=$SHELL
23971 export CONFIG_SHELL
23972 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23976 cat >>$CONFIG_STATUS <<\_ACEOF
23980 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23981 ## Running $as_me. ##
23987 cat >>$CONFIG_STATUS <<_ACEOF
23991 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
23995 cat >>$CONFIG_STATUS <<\_ACEOF
23997 # Handling of arguments.
23998 for ac_config_target
in $ac_config_targets
24000 case $ac_config_target in
24001 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24002 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
24003 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24004 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
24005 "man/Makefile") CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
24006 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
24007 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24008 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
24009 "lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
24010 "lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
24011 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
24012 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
24014 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24015 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24016 { (exit 1); exit 1; }; };;
24021 # If the user did not use the arguments to specify the items to instantiate,
24022 # then the envvar interface is used. Set only those that are not.
24023 # We use the long form for the default assignment because of an extremely
24024 # bizarre bug on SunOS 4.1.3.
24025 if $ac_need_defaults; then
24026 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
24027 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
24028 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
24031 # Have a temporary directory for convenience. Make it in the build tree
24032 # simply because there is no reason against having it here, and in addition,
24033 # creating and moving files from /tmp can sometimes cause problems.
24034 # Hook for its removal unless debugging.
24035 # Note that there is a small window in which the directory will not be cleaned:
24036 # after its creation but before its name has been assigned to `$tmp'.
24040 trap 'exit_status=$?
24041 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24043 trap '{ (exit 1); exit 1; }' 1 2 13 15
24045 # Create a (secure) tmp directory for tmp files.
24048 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24049 test -n "$tmp" && test -d "$tmp"
24052 tmp
=.
/conf$$
-$RANDOM
24053 (umask 077 && mkdir
"$tmp")
24056 echo "$me: cannot create a temporary directory in ." >&2
24057 { (exit 1); exit 1; }
24061 # Set up the sed scripts for CONFIG_FILES section.
24064 # No need to generate the scripts if there are no CONFIG_FILES.
24065 # This happens for instance when ./config.status config.h
24066 if test -n "$CONFIG_FILES"; then
24073 for ac_last_try
in false false false false false
:; do
24074 cat >conf$
$subs.
sed <<_ACEOF
24075 SHELL!$SHELL$ac_delim
24076 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24077 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24078 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24079 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24080 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24081 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24082 exec_prefix!$exec_prefix$ac_delim
24083 prefix!$prefix$ac_delim
24084 program_transform_name!$program_transform_name$ac_delim
24085 bindir!$bindir$ac_delim
24086 sbindir!$sbindir$ac_delim
24087 libexecdir!$libexecdir$ac_delim
24088 datarootdir!$datarootdir$ac_delim
24089 datadir!$datadir$ac_delim
24090 sysconfdir!$sysconfdir$ac_delim
24091 sharedstatedir!$sharedstatedir$ac_delim
24092 localstatedir!$localstatedir$ac_delim
24093 includedir!$includedir$ac_delim
24094 oldincludedir!$oldincludedir$ac_delim
24095 docdir!$docdir$ac_delim
24096 infodir!$infodir$ac_delim
24097 htmldir!$htmldir$ac_delim
24098 dvidir!$dvidir$ac_delim
24099 pdfdir!$pdfdir$ac_delim
24100 psdir!$psdir$ac_delim
24101 libdir!$libdir$ac_delim
24102 localedir!$localedir$ac_delim
24103 mandir!$mandir$ac_delim
24104 DEFS!$DEFS$ac_delim
24105 ECHO_C!$ECHO_C$ac_delim
24106 ECHO_N!$ECHO_N$ac_delim
24107 ECHO_T!$ECHO_T$ac_delim
24108 LIBS!$LIBS$ac_delim
24109 build_alias!$build_alias$ac_delim
24110 host_alias!$host_alias$ac_delim
24111 target_alias!$target_alias$ac_delim
24112 MAINT!$MAINT$ac_delim
24113 build!$build$ac_delim
24114 build_cpu!$build_cpu$ac_delim
24115 build_vendor!$build_vendor$ac_delim
24116 build_os!$build_os$ac_delim
24117 host!$host$ac_delim
24118 host_cpu!$host_cpu$ac_delim
24119 host_vendor!$host_vendor$ac_delim
24120 host_os!$host_os$ac_delim
24122 CFLAGS!$CFLAGS$ac_delim
24123 LDFLAGS!$LDFLAGS$ac_delim
24124 CPPFLAGS!$CPPFLAGS$ac_delim
24125 ac_ct_CC!$ac_ct_CC$ac_delim
24126 EXEEXT!$EXEEXT$ac_delim
24127 OBJEXT!$OBJEXT$ac_delim
24129 GREP!$GREP$ac_delim
24130 EGREP!$EGREP$ac_delim
24131 LN_S!$LN_S$ac_delim
24132 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24133 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24134 INSTALL_DATA!$INSTALL_DATA$ac_delim
24135 RANLIB!$RANLIB$ac_delim
24136 INSTALL_INFO!$INSTALL_INFO$ac_delim
24137 GZIP_PROG!$GZIP_PROG$ac_delim
24138 LIBSOUND!$LIBSOUND$ac_delim
24139 PKG_CONFIG!$PKG_CONFIG$ac_delim
24140 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24141 ALSA_LIBS!$ALSA_LIBS$ac_delim
24142 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24143 SET_MAKE!$SET_MAKE$ac_delim
24144 XMKMF!$XMKMF$ac_delim
24145 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24146 GTK_LIBS!$GTK_LIBS$ac_delim
24147 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24148 XFT_LIBS!$XFT_LIBS$ac_delim
24149 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
24150 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
24151 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
24152 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
24153 HAVE_LIBOTF!$HAVE_LIBOTF$ac_delim
24154 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
24155 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
24156 ALLOCA!$ALLOCA$ac_delim
24157 liblockfile!$liblockfile$ac_delim
24158 LIBOBJS!$LIBOBJS$ac_delim
24159 NEED_SETGID!$NEED_SETGID$ac_delim
24160 KMEM_GROUP!$KMEM_GROUP$ac_delim
24161 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24162 GETOPT_H!$GETOPT_H$ac_delim
24163 GETOPTOBJS!$GETOPTOBJS$ac_delim
24164 version!$version$ac_delim
24165 configuration!$configuration$ac_delim
24166 canonical!$canonical$ac_delim
24167 srcdir!$srcdir$ac_delim
24168 lispdir!$lispdir$ac_delim
24169 locallisppath!$locallisppath$ac_delim
24170 lisppath!$lisppath$ac_delim
24171 x_default_search_path!$x_default_search_path$ac_delim
24174 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24176 elif $ac_last_try; then
24177 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24178 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24179 { (exit 1); exit 1; }; }
24181 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24185 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24186 if test -n "$ac_eof"; then
24187 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24188 ac_eof
=`expr $ac_eof + 1`
24191 cat >>$CONFIG_STATUS <<_ACEOF
24192 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24193 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24196 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24197 s/^/s,@/; s/!/@,|#_!!_#|/
24200 s/'"$ac_delim"'$/,g/; t
24202 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24203 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24204 rm -f conf$
$subs.
sed
24205 cat >>$CONFIG_STATUS <<_ACEOF
24211 for ac_last_try
in false false false false false
:; do
24212 cat >conf$
$subs.
sed <<_ACEOF
24213 etcdir!$etcdir$ac_delim
24214 archlibdir!$archlibdir$ac_delim
24215 bitmapdir!$bitmapdir$ac_delim
24216 gamedir!$gamedir$ac_delim
24217 gameuser!$gameuser$ac_delim
24218 c_switch_system!$c_switch_system$ac_delim
24219 c_switch_machine!$c_switch_machine$ac_delim
24220 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
24221 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
24222 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
24223 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
24224 machfile!$machfile$ac_delim
24225 opsysfile!$opsysfile$ac_delim
24226 carbon_appdir!$carbon_appdir$ac_delim
24227 LTLIBOBJS!$LTLIBOBJS$ac_delim
24230 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 15; then
24232 elif $ac_last_try; then
24233 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24234 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24235 { (exit 1); exit 1; }; }
24237 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24241 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24242 if test -n "$ac_eof"; then
24243 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24244 ac_eof
=`expr $ac_eof + 1`
24247 cat >>$CONFIG_STATUS <<_ACEOF
24248 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24249 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24252 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24253 s/^/s,@/; s/!/@,|#_!!_#|/
24256 s/'"$ac_delim"'$/,g/; t
24258 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24259 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24260 rm -f conf$
$subs.
sed
24261 cat >>$CONFIG_STATUS <<_ACEOF
24268 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24269 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24270 # trailing colons and then remove the whole line if VPATH becomes empty
24271 # (actually we leave an empty line to preserve line numbers).
24272 if test "x$srcdir" = x.
; then
24273 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
24274 s/:*\$(srcdir):*/:/
24275 s/:*\${srcdir}:*/:/
24277 s/^\([^=]*=[ ]*\):*/\1/
24283 cat >>$CONFIG_STATUS <<\_ACEOF
24284 fi # test -n "$CONFIG_FILES"
24287 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
24290 :[FHLC
]) ac_mode
=$ac_tag; continue;;
24292 case $ac_mode$ac_tag in
24294 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24295 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24296 { (exit 1); exit 1; }; };;
24297 :[FH
]-) ac_tag
=-:-;;
24298 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
24315 -) ac_f
="$tmp/stdin";;
24316 *) # Look for the file first in the build tree, then in the source tree
24317 # (if the path is not absolute). The absolute path cannot be DOS-style,
24318 # because $ac_f cannot contain `:'.
24322 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
24324 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24325 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24326 { (exit 1); exit 1; }; };;
24328 ac_file_inputs
="$ac_file_inputs $ac_f"
24331 # Let's still pretend it is `configure' which instantiates (i.e., don't
24332 # use $as_me), people would be surprised to read:
24333 # /* config.h. Generated by config.status. */
24334 configure_input
="Generated from "`IFS=:
24335 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24336 if test x
"$ac_file" != x-
; then
24337 configure_input
="$ac_file. $configure_input"
24338 { echo "$as_me:$LINENO: creating $ac_file" >&5
24339 echo "$as_me: creating $ac_file" >&6;}
24343 *:-:* |
*:-) cat >"$tmp/stdin";;
24348 ac_dir
=`$as_dirname -- "$ac_file" ||
24349 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24350 X"$ac_file" : 'X\(//\)[^/]' \| \
24351 X"$ac_file" : 'X\(//\)$' \| \
24352 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24354 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24358 /^X\(\/\/\)[^/].*/{
24373 -*) as_dir
=.
/$as_dir;;
24375 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
24379 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24380 *) as_qdir
=$as_dir;;
24382 as_dirs
="'$as_qdir' $as_dirs"
24383 as_dir
=`$as_dirname -- "$as_dir" ||
24384 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24385 X"$as_dir" : 'X\(//\)[^/]' \| \
24386 X"$as_dir" : 'X\(//\)$' \| \
24387 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24389 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24393 /^X\(\/\/\)[^/].*/{
24406 test -d "$as_dir" && break
24408 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
24409 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24410 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24411 { (exit 1); exit 1; }; }; }
24415 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24417 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24418 # A ".." for each directory in $ac_dir_suffix.
24419 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24420 case $ac_top_builddir_sub in
24421 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24422 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
24425 ac_abs_top_builddir
=$ac_pwd
24426 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
24427 # for backward compatibility:
24428 ac_top_builddir
=$ac_top_build_prefix
24431 .
) # We are building in place.
24433 ac_top_srcdir
=$ac_top_builddir_sub
24434 ac_abs_top_srcdir
=$ac_pwd ;;
24435 [\\/]* | ?
:[\\/]* ) # Absolute name.
24436 ac_srcdir
=$srcdir$ac_dir_suffix;
24437 ac_top_srcdir
=$srcdir
24438 ac_abs_top_srcdir
=$srcdir ;;
24439 *) # Relative name.
24440 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
24441 ac_top_srcdir
=$ac_top_build_prefix$srcdir
24442 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
24444 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
24454 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
24455 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
24459 cat >>$CONFIG_STATUS <<\_ACEOF
24460 # If the template does not know about datarootdir, expand it.
24461 # FIXME: This hack should be removed a few years after 2.60.
24462 ac_datarootdir_hack
=; ac_datarootdir_seen
=
24464 case `sed -n '/datarootdir/ {
24473 ' $ac_file_inputs` in
24474 *datarootdir
*) ac_datarootdir_seen
=yes;;
24475 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
24476 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24477 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24479 cat >>$CONFIG_STATUS <<_ACEOF
24480 ac_datarootdir_hack='
24481 s&@datadir@&$datadir&g
24482 s&@docdir@&$docdir&g
24483 s&@infodir@&$infodir&g
24484 s&@localedir@&$localedir&g
24485 s&@mandir@&$mandir&g
24486 s&\\\${datarootdir}&$datarootdir&g' ;;
24490 # Neutralize VPATH when `$srcdir' = `.'.
24491 # Shell code in configure.ac might set extrasub.
24492 # FIXME: do we really want to maintain this feature?
24493 cat >>$CONFIG_STATUS <<_ACEOF
24497 cat >>$CONFIG_STATUS <<\_ACEOF
24499 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
24500 s
&@configure_input@
&$configure_input&;t t
24501 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
24502 s
&@srcdir@
&$ac_srcdir&;t t
24503 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
24504 s
&@top_srcdir@
&$ac_top_srcdir&;t t
24505 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
24506 s
&@builddir@
&$ac_builddir&;t t
24507 s
&@abs_builddir@
&$ac_abs_builddir&;t t
24508 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
24509 s
&@INSTALL@
&$ac_INSTALL&;t t
24510 $ac_datarootdir_hack
24511 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
24513 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24514 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
24515 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
24516 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
24517 which seems to be undefined. Please make sure it is defined." >&5
24518 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
24519 which seems to be undefined. Please make sure it is defined." >&2;}
24523 -) cat "$tmp/out"; rm -f "$tmp/out";;
24524 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24533 # Transform confdefs.h into a sed script `conftest.defines', that
24534 # substitutes the proper values into config.h.in to produce config.h.
24535 rm -f conftest.defines conftest.
tail
24536 # First, append a space to every undef/define line, to ease matching.
24537 echo 's/$/ /' >conftest.defines
24538 # Then, protect against being on the right side of a sed subst, or in
24539 # an unquoted here document, in config.status. If some macros were
24540 # called several times there might be several #defines for the same
24541 # symbol, which is useless. But do not sort them, since the last
24542 # AC_DEFINE must be honored.
24543 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
24544 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24545 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24546 # PARAMS is the parameter list in the macro definition--in most cases, it's
24547 # just an empty string.
24548 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24549 ac_dB
='\\)[ (].*,\\1define\\2'
24557 s/^[ ]*#[ ]*define[ ][ ]*//
24562 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24563 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24564 ' >>conftest.defines
24566 # Remove the space that was appended to ease matching.
24567 # Then replace #undef with comments. This is necessary, for
24568 # example, in the case of _POSIX_SOURCE, which is predefined and required
24569 # on some systems where configure will not decide to define it.
24570 # (The regexp can be short, since the line contains either #define or #undef.)
24572 s,^[ #]*u.*,/* & */,' >>conftest.defines
24574 # Break up conftest.defines:
24575 ac_max_sed_lines
=50
24577 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24578 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24579 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24581 ac_in
='$ac_file_inputs'
24582 ac_out
='"$tmp/out1"'
24583 ac_nxt
='"$tmp/out2"'
24587 # Write a here document:
24588 cat >>$CONFIG_STATUS <<_ACEOF
24589 # First, check the format of the line:
24590 cat >"\$tmp/defines.sed" <<\\CEOF
24591 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24592 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24596 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
24598 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24599 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
24600 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
24601 grep . conftest.
tail >/dev
/null ||
break
24602 rm -f conftest.defines
24603 mv conftest.
tail conftest.defines
24605 rm -f conftest.defines conftest.
tail
24607 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24608 cat >>$CONFIG_STATUS <<\_ACEOF
24609 if test x
"$ac_file" != x-
; then
24610 echo "/* $configure_input */" >"$tmp/config.h"
24611 cat "$ac_result" >>"$tmp/config.h"
24612 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
24613 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24614 echo "$as_me: $ac_file is unchanged" >&6;}
24617 mv "$tmp/config.h" $ac_file
24620 echo "/* $configure_input */"
24626 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24627 echo "$as_me: executing $ac_file commands" >&6;}
24632 case $ac_file$ac_mode in
24635 ### Make the necessary directories, if they don't exist.
24636 for dir
in etc lisp
; do
24637 test -d ${dir} || mkdir
${dir}
24640 # Build src/Makefile from ${srcdir}/src/Makefile.c
24641 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24642 # This must be done after src/config.h is built, since we rely on that file.
24644 # Now get this: Some word that is part of the ${srcdir} directory name
24645 # or the ${configuration} value might, just might, happen to be an
24646 # identifier like `sun4' or `i386' or something, and be predefined by
24647 # the C preprocessor to some helpful value like 1, or maybe the empty
24648 # string. Needless to say consequent macro substitutions are less
24649 # than conducive to the makefile finding the correct directory.
24650 undefs
="`echo $top_srcdir $configuration $canonical |
24651 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24652 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24655 echo creating src
/epaths.h
24656 ${MAKE-make} epaths-force
24658 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24659 # `..' to `. .' unless invoked with -traditional
24661 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
24662 CPPFLAGS
="$CPPFLAGS -traditional"
24665 echo creating lib-src
/Makefile
24667 rm -f junk.c junk1.c junk2.c
24668 sed -e '/start of cpp stuff/q' \
24669 < Makefile.c
> junk1.c
24670 sed -e '1,/start of cpp stuff/d'\
24671 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24672 < Makefile.c
> junk.c
24673 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24674 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24675 cat junk1.c junk2.c
> Makefile.new
24676 rm -f junk.c junk1.c junk2.c
24677 chmod 444 Makefile.new
24678 mv -f Makefile.new Makefile
24681 echo creating src
/Makefile
24683 rm -f junk.c junk1.c junk2.c
24684 sed -e '/start of cpp stuff/q' \
24685 < Makefile.c
> junk1.c
24686 sed -e '1,/start of cpp stuff/d'\
24687 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24688 < Makefile.c
> junk.c
24689 if test -f ${srcdir}/admin
/unidata
/UnicodeData.txt
; then
24690 CPPFLAGS
="$CPPFLAGS -DHAVE_UNIDATA"
24692 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24693 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24694 cat junk1.c junk2.c
> Makefile.new
24695 rm -f junk.c junk1.c junk2.c
24696 chmod 444 Makefile.new
24697 mv -f Makefile.new Makefile
24700 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
24701 echo creating src
/.gdbinit
24702 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
24705 # This is how we know whether to re-run configure in certain cases.
24706 touch src
/config.stamp
24714 { (exit 0); exit 0; }
24716 chmod +x
$CONFIG_STATUS
24717 ac_clean_files
=$ac_clean_files_save
24720 # configure is writing to config.log, and then calls config.status.
24721 # config.status does its own redirection, appending to config.log.
24722 # Unfortunately, on DOS this fails, as config.log is still kept open
24723 # by configure, so config.status won't be able to write to it; its
24724 # output is simply discarded. So we exec the FD to /dev/null,
24725 # effectively closing config.log, so it can be properly (re)opened and
24726 # appended to by config.status. When coming back to configure, we
24727 # need to make the FD available again.
24728 if test "$no_create" != yes; then
24730 ac_config_status_args
=
24731 test "$silent" = yes &&
24732 ac_config_status_args
="$ac_config_status_args --quiet"
24734 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
24736 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24737 # would make configure fail if this is the last instruction.
24738 $ac_cs_success ||
{ (exit 1); exit 1; }