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 ## AT&T 3b2, 3b5, 3b15, 3b20
2379 machine
=att3b opsys
=usg5-2-2
2382 ## AT&T 3b1 - The Mighty Unix PC!
2384 machine
=7300 opsys
=usg5-2-2
2389 machine
=ibmrs6000 opsys
=aix3-2
2394 machine
=dpx2 opsys
=usg5-3
2399 machine
=sps7 opsys
=usg5-2
2402 ## CCI 5/32, 6/32 -- see "Tahoe".
2405 ## I don't know what configuration name to use for this; config.sub
2406 ## doesn't seem to know anything about it. Hey, Celerity users, get
2407 ## in touch with us!
2408 celerity-celerity-bsd
* )
2409 machine
=celerity opsys
=bsd4-2
2413 ## What operating systems does this chip run that Emacs has been
2417 ## We'll use the catch-all code at the bottom to guess the
2418 ## operating system.
2422 mips-compaq-nonstopux
* )
2423 machine
=nonstopux opsys
=nonstopux
2427 *-convex-bsd* |
*-convex-convexos* )
2428 machine
=convex opsys
=bsd4-3
2429 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2430 NON_GNU_CPP
="cc -E -P"
2434 i
[3456]86-cubix-sysv* )
2435 machine
=intel386 opsys
=usg5-3
2439 cydra
*-cydrome-sysv* )
2440 machine
=cydra5 opsys
=usg5-3
2443 ## Data General AViiON Machines
2444 ## DG changed naming conventions with the release of 5.4.4.10, they
2445 ## dropped the initial 5.4 but left the intervening R. Because of the
2446 ## R this shouldn't conflict with older versions of the OS (which I
2447 ## think were named like dgux4.*). In addition, DG new AViiONs series
2448 ## uses either Motorola M88k or Intel Pentium CPUs.
2449 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
2450 machine
=aviion opsys
=dgux4
2452 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
2453 ## This name is dgux5-4-3 instead of dgux5-4r3
2454 ## to avoid a file name conflict on MSDOS.
2455 machine
=aviion opsys
=dgux5-4-3
2457 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
2458 machine
=aviion opsys
=dgux5-4r2
2461 machine
=aviion opsys
=dgux
2464 ## Data General AViiON Intel (x86) Machines
2465 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2466 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2467 i
[345]86-dg-dguxR4* )
2468 machine
=aviion-intel opsys
=dgux4
2472 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
2473 machine
=pmax opsys
=bsd4-2
2475 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
2476 machine
=pmax opsys
=bsd4-3
2479 machine
=pmax opsys
=ultrix4-3
2482 machine
=pmax opsys
=osf1
2484 mips-dec-mach_bsd4.3
* )
2485 machine
=pmax opsys
=mach-bsd4-3
2488 ## Motorola Delta machines
2489 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
2490 machine
=delta opsys
=usg5-3
2491 if test -z "`type gnucc | grep 'not found'`"
2493 if test -s /etc
/167config
2494 then CC
="gnucc -m68040"
2495 else CC
="gnucc -m68881"
2498 if test -z "`type gcc | grep 'not found'`"
2504 m88k-motorola-sysv4
* )
2505 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2506 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2507 # I hope there are not other 4.0 versions for this machine
2508 # which really need usg5-4 instead.
2509 machine
=delta88k opsys
=usg5-4-2
2511 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
2512 machine
=delta88k opsys
=usg5-3
2517 machine
=dual opsys
=usg5-2
2519 m68
*-dual-uniplus* )
2520 machine
=dual opsys
=unipl5-2
2525 machine
=elxsi opsys
=usg5-2
2530 machine
=ns16000 opsys
=umax
2533 ## The GEC 63 - apparently, this port isn't really finished yet.
2534 # I'm sure we finished off the last of the machines, though. -- fx
2536 ## Gould Power Node and NP1
2538 machine
=gould opsys
=bsd4-2
2541 machine
=gould opsys
=bsd4-3
2544 machine
=gould-np1 opsys
=bsd4-3
2547 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2548 ## as far as Emacs is concerned).
2550 # Build needs to be different on 7.0 and later releases
2551 case "`uname -r`" in
2552 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
2553 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
2555 NON_GNU_CPP
="/lib/cpp"
2557 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2559 machine
=nh3000 opsys
=cxux
2561 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2562 powerpc-harris-powerunix
)
2563 machine
=nh6000 opsys
=powerunix
2564 NON_GNU_CPP
="cc -Xo -E -P"
2566 ## SR2001/SR2201 running HI-UX/MPP
2567 hppa1.1
-hitachi-hiuxmpp* )
2568 machine
=sr2k opsys
=hiuxmpp
2570 hppa1.1
-hitachi-hiuxwe2* )
2571 machine
=sr2k opsys
=hiuxwe2
2574 xps
*-honeywell-sysv* )
2575 machine
=xps100 opsys
=usg5-2
2578 ## HP 9000 series 200 or 300
2580 machine
=hp9000s300 opsys
=bsd4-3
2582 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2584 case "`uname -r`" in
2585 ## Someone's system reports A.B8.05 for this.
2586 ## I wonder what other possibilities there are.
2587 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2588 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2589 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2590 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2591 *) machine
=hp9000s300 opsys
=hpux
;;
2595 ## HP 9000 series 700 and 800, running HP/UX
2597 machine
=hp800 opsys
=hpux
2600 machine
=hp800 opsys
=hpux8
2602 hppa
*-hp-hpux9shr* )
2603 machine
=hp800 opsys
=hpux9shr
2606 machine
=hp800 opsys
=hpux9
2608 hppa
*-hp-hpux10.2
* )
2609 machine
=hp800 opsys
=hpux10-20
2612 machine
=hp800 opsys
=hpux10
2614 hppa
*-hp-hpux1[1-9]* )
2615 machine
=hp800 opsys
=hpux11
2616 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2619 hppa
*-*-linux-gnu* )
2620 machine
=hp800 opsys
=gnu-linux
2623 ## HP 9000 series 700 and 800, running HP/UX
2625 ## Cross-compilation? Nah!
2626 case "`uname -r`" in
2627 ## Someone's system reports A.B8.05 for this.
2628 ## I wonder what other possibilities there are.
2629 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2630 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2631 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2632 *) machine
=hp800 opsys
=hpux10
;;
2636 machine
=hp800 opsys
=nextstep
2641 machine
=orion opsys
=bsd4-2
2643 clipper-orion-bsd
* )
2644 machine
=orion105 opsys
=bsd4-2
2648 i
[3456]86-ibm-aix1.1
* )
2649 machine
=ibmps2-aix opsys
=usg5-2-2
2651 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2652 machine
=ibmps2-aix opsys
=usg5-3
2655 machine
=ibm370aix opsys
=usg5-3
2658 machine
=ibms390 opsys
=gnu-linux
2660 s390x-
*-linux-gnu* )
2661 machine
=ibms390x opsys
=gnu-linux
2663 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2664 machine
=ibmrs6000 opsys
=aix3-1
2666 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2667 machine
=ibmrs6000 opsys
=aix3-2-5
2669 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2670 machine
=ibmrs6000 opsys
=aix4-1
2672 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2673 machine
=ibmrs6000 opsys
=aix4-2
2675 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2676 machine
=ibmrs6000 opsys
=aix4-2
2678 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2679 machine
=ibmrs6000 opsys
=aix4
2681 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2682 machine
=ibmrs6000 opsys
=aix4-1
2684 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2685 machine
=ibmrs6000 opsys
=aix3-2
2688 machine
=ibmrt opsys
=bsd4-3
2691 machine
=ibmrt opsys
=bsd4-2
2694 machine
=ibmrt opsys
=bsd4-3
2697 machine
=ibmrt opsys
=bsd4-2
2700 machine
=ibmrt opsys
=bsd4-3
2703 machine
=ibmrt opsys
=bsd4-3
2706 machine
=ibmrt-aix opsys
=usg5-2-2
2709 ## Integrated Solutions `Optimum V'
2711 machine
=isi-ov opsys
=bsd4-2
2714 machine
=isi-ov opsys
=bsd4-3
2717 ## Intel 386 machines where we do care about the manufacturer
2718 i
[3456]86-intsys-sysv* )
2719 machine
=is386 opsys
=usg5-2-2
2723 i
[3456]86-prime-sysv* )
2724 machine
=i386 opsys
=usg5-3
2727 ## Sequent Symmetry running Dynix
2728 i
[3456]86-sequent-bsd* )
2729 machine
=symmetry opsys
=bsd4-3
2732 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2733 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2734 machine
=sequent-ptx opsys
=ptx4
2735 NON_GNU_CPP
=/lib
/cpp
2738 ## Sequent Symmetry running DYNIX/ptx
2739 ## Use the old cpp rather than the newer ANSI one.
2740 i
[3456]86-sequent-ptx* )
2741 machine
=sequent-ptx opsys
=ptx
2742 NON_GNU_CPP
="/lib/cpp"
2745 ## ncr machine running svr4.3.
2746 i
[3456]86-ncr-sysv4.3
)
2747 machine
=ncr386 opsys
=usg5-4-3
2750 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2751 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2752 i
[3456]86-ncr-sysv* )
2753 machine
=ncr386 opsys
=usg5-4-2
2756 ## Intel Paragon OSF/1
2758 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2763 machine
=i860 opsys
=usg5-4
2764 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2765 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2768 ## Macintosh PowerPC
2769 powerpc
*-*-linux-gnu* )
2770 machine
=macppc opsys
=gnu-linux
2773 ## Masscomp machines
2774 m68
*-masscomp-rtu* )
2775 machine
=masscomp opsys
=rtu
2778 ## Megatest machines
2779 m68
*-megatest-bsd* )
2780 machine
=mega68 opsys
=bsd4-2
2783 ## Workstations sold by MIPS
2784 ## This is not necessarily all workstations using the MIPS processor -
2785 ## Irises are produced by SGI, and DECstations by DEC.
2787 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2788 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2789 ## it gives for choosing between the alternatives seems to be "Use
2790 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2791 ## the BSD world." I'll assume that these are instructions for
2792 ## handling two odd situations, and that every other situation
2793 ## should use mips.h and usg5-2-2, they being listed first.
2796 ## Fall through to the general code at the bottom to decide on the OS.
2798 mips-mips-riscos4
* )
2799 machine
=mips4 opsys
=bsd4-3
2800 NON_GNU_CC
="cc -systype bsd43"
2801 NON_GNU_CPP
="cc -systype bsd43 -E"
2803 mips-mips-riscos5
* )
2804 machine
=mips4 opsys
=riscos5
2805 NON_GNU_CC
="cc -systype bsd43"
2806 NON_GNU_CPP
="cc -systype bsd43 -E"
2809 machine
=mips opsys
=bsd4-3
2812 machine
=mips opsys
=usg5-2-2
2816 m68
*-next-* | m68k-
*-nextstep* )
2817 machine
=m68k opsys
=nextstep
2820 ## The complete machine from National Semiconductor
2822 machine
=ns32000 opsys
=usg5-2
2826 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2827 machine
=tower32 opsys
=usg5-2-2
2829 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2830 machine
=tower32v3 opsys
=usg5-3
2835 machine
=ews4800 opsys
=ux4800
2838 ## Nixdorf Targon 31
2839 m68
*-nixdorf-sysv* )
2840 machine
=targon31 opsys
=usg5-2-2
2845 machine
=nu opsys
=usg5-2
2850 machine
=plexus opsys
=usg5-2
2854 ## I don't really have any idea what sort of processor the Pyramid has,
2855 ## so I'm assuming it is its own architecture.
2856 pyramid-pyramid-bsd
* )
2857 machine
=pyramid opsys
=bsd4-2
2861 ns32k-sequent-bsd4.2
* )
2862 machine
=sequent opsys
=bsd4-2
2864 ns32k-sequent-bsd4.3
* )
2865 machine
=sequent opsys
=bsd4-3
2869 mips-siemens-sysv
* | mips-sni-sysv
*)
2870 machine
=mips-siemens opsys
=usg5-4
2871 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2872 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2875 ## Silicon Graphics machines
2876 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2878 machine
=irist opsys
=iris3-5
2880 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2881 machine
=irist opsys
=iris3-6
2885 machine
=iris4d opsys
=irix3-3
2888 machine
=iris4d opsys
=irix4-0
2891 machine
=iris4d opsys
=irix6-5
2892 # Without defining _LANGUAGE_C, things get masked out in the headers
2893 # so that, for instance, grepping for `free' in stdlib.h fails and
2894 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2895 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2896 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2899 machine
=iris4d opsys
=irix6-0
2900 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2901 # but presumably it does no harm.
2902 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2903 # -32 probably isn't necessary in later v.6s -- anyone know which?
2904 NON_GCC_TEST_OPTIONS
=-32
2906 mips-sgi-irix5.
[01]* )
2907 machine
=iris4d opsys
=irix5-0
2909 mips-sgi-irix5
* | mips-sgi-irix
* )
2910 machine
=iris4d opsys
=irix5-2
2915 machine
=news opsys
=bsd4-2
2918 machine
=news opsys
=bsd4-3
2920 m68
*-sony-newsos3* | m68
*-sony-news3*)
2921 machine
=news opsys
=bsd4-3
2923 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2924 machine
=news-risc opsys
=bsd4-3
2926 mips-sony-newsos6
* )
2927 machine
=news-r6 opsys
=newsos6
2930 machine
=news-risc opsys
=newsos5
2935 machine
=stride opsys
=usg5-2
2939 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2940 machine
=sparc opsys
=gnu-linux
2943 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2944 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2945 | rs6000-
*-solaris2*)
2946 case "${canonical}" in
2947 m68
*-sunos1* ) machine
=sun1
;;
2948 m68
*-sunos2* ) machine
=sun2
;;
2949 m68
* ) machine
=sun3
;;
2950 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2951 i
[3456]86-*-* ) machine
=intel386
;;
2952 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2953 powerpcle
* ) machine
=powerpcle
;;
2954 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2955 sparc
* ) machine
=sparc
;;
2958 case "${canonical}" in
2959 ## The Sun386 didn't get past 4.0.
2960 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2961 *-sunos4.0
* ) opsys
=sunos4-0
;;
2962 *-sunos4.1.
[3-9]*noshare
)
2963 ## This name is sunos413 instead of sunos4-1-3
2964 ## to avoid a file name conflict on MSDOS.
2966 NON_GNU_CPP
=/usr
/lib
/cpp
2967 NON_GCC_TEST_OPTIONS
=-Bstatic
2968 GCC_TEST_OPTIONS
=-static
2970 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2972 NON_GNU_CPP
=/usr
/lib
/cpp
2974 *-sunos4* |
*-sunos )
2976 NON_GCC_TEST_OPTIONS
=-Bstatic
2977 GCC_TEST_OPTIONS
=-static
2979 *-sunos5.3
* |
*-solaris2.3
* )
2981 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2983 *-sunos5.4
* |
*-solaris2.4
* )
2985 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2988 *-sunos5.5
* |
*-solaris2.5
* )
2990 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2993 *-sunos5.6
* |
*-solaris2.6
* )
2995 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2998 *-sunos5* |
*-solaris* )
3000 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3004 ## Watch out for a compiler that we know will not work.
3005 case "${canonical}" in
3006 *-solaris* |
*-sunos5* )
3007 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
3008 ## /usr/ucb/cc doesn't work;
3009 ## we should find some other compiler that does work.
3017 machine
=sparc opsys
=nextstep
3021 m68
*-tadpole-sysv* )
3022 machine
=tad68k opsys
=usg5-3
3026 tahoe-tahoe-bsd4.2
* )
3027 machine
=tahoe opsys
=bsd4-2
3029 tahoe-tahoe-bsd4.3
* )
3030 machine
=tahoe opsys
=bsd4-3
3033 ## Tandem Integrity S2
3035 machine
=tandem-s2 opsys
=usg5-3
3039 m88k-tektronix-sysv3
* )
3040 machine
=tekxd88 opsys
=usg5-3
3043 ## Tektronix 16000 box (6130?)
3044 ns16k-tektronix-bsd
* )
3045 machine
=ns16000 opsys
=bsd4-2
3048 ## src/m/tek4300.h hints that this is a m68k machine.
3049 m68
*-tektronix-bsd* )
3050 machine
=tek4300 opsys
=bsd4-3
3054 ## We seem to have lost the machine-description file titan.h!
3056 machine
=titan opsys
=usg5-3
3059 ## Ustation E30 (SS5E)
3060 m68
*-unisys-uniplus* )
3061 machine
=ustation opsystem
=unipl5-2
3067 case "${canonical}" in
3068 *-bsd4.1
* ) opsys
=bsd4-1
;;
3069 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
3070 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
3071 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
3072 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
3073 *-vms* ) opsys
=vms
;;
3079 ns16k-whitechapel-
* )
3081 ## We don't know what sort of OS runs on these; we'll let the
3082 ## operating system guessing code below try.
3087 machine
=wicat opsys
=usg5-2
3092 machine
=ia64 opsys
=gnu-linux
3095 ## Intel 386 machines where we don't care about the manufacturer
3098 case "${canonical}" in
3099 *-cygwin ) opsys
=cygwin
;;
3100 *-darwin* ) opsys
=darwin
3101 CPP
="${CC-cc} -E -no-cpp-precomp"
3103 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
3104 *-isc2.2
* ) opsys
=isc2-2
;;
3105 *-isc4.0
* ) opsys
=isc4-0
;;
3106 *-isc4.
* ) opsys
=isc4-1
3107 GCC_TEST_OPTIONS
=-posix
3108 NON_GCC_TEST_OPTIONS
=-Xp
3110 *-isc* ) opsys
=isc3-0
;;
3111 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
3112 *-esix* ) opsys
=esix
;;
3113 *-xenix* ) opsys
=xenix
;;
3114 *-linux-gnu* ) opsys
=gnu-linux
;;
3115 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
3116 *-sco3.2v5
* ) opsys
=sco5
3117 NON_GNU_CPP
=/lib
/cpp
3118 # Prevent -belf from being passed to $CPP.
3119 # /lib/cpp does not accept it.
3120 OVERRIDE_CPPFLAGS
=" "
3122 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3123 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3124 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3125 *-386bsd* ) opsys
=386bsd
;;
3126 *-nextstep* ) opsys
=nextstep
;;
3127 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3131 ## m68k Linux-based GNU system
3133 machine
=m68k opsys
=gnu-linux
3136 ## Mips Linux-based GNU system
3137 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
3138 machine
=mips opsys
=gnu-linux
3142 sparc-fujitsu-sysv4
* )
3143 machine
=sparc opsys
=uxpds
3144 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3149 f301-fujitsu-uxpv4.1
)
3150 machine
=f301 opsys
=uxpv
3153 ## Darwin / Mac OS X
3154 powerpc-apple-darwin
* )
3155 machine
=powermac opsys
=darwin
3156 # Define CPP as follows to make autoconf work correctly.
3157 CPP
="${CC-cc} -E -no-cpp-precomp"
3158 # Use fink packages if available.
3159 if test -d /sw
/include
&& test -d /sw
/lib
; then
3160 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
3161 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
3162 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
3166 ## AMD x86-64 Linux-based GNU system
3167 x86_64-
*-linux-gnu* )
3168 machine
=amdx86-64 opsys
=gnu-linux
3176 ### If the code above didn't choose an operating system, just choose
3177 ### an operating system based on the configuration name. You really
3178 ### only want to use this when you have no idea what the right
3179 ### operating system is; if you know what operating systems a machine
3180 ### runs, it's cleaner to make it explicit in the case statement
3182 if test x
"${opsys}" = x
; then
3183 case "${canonical}" in
3184 *-gnu* ) opsys
=gnu
;;
3185 *-bsd4.
[01] ) opsys
=bsd4-1
;;
3186 *-bsd4.2
) opsys
=bsd4-2
;;
3187 *-bsd4.3
) opsys
=bsd4-3
;;
3188 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
3189 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
3190 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
3191 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
3192 *-sysv4.2uw
* ) opsys
=unixware
;;
3193 *-sysv5uw* ) opsys
=unixware
;;
3194 *-sysv5OpenUNIX* ) opsys
=unixware
;;
3195 *-sysv4.1
* |
*-sysvr4.1
* )
3196 NON_GNU_CPP
=/usr
/lib
/cpp
3198 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
3199 if [ x
$NON_GNU_CPP = x
]; then
3200 if [ -f /usr
/ccs
/lib
/cpp
]; then
3201 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3203 NON_GNU_CPP
=/lib
/cpp
3207 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
3216 if test $unported = yes; then
3217 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3218 Check \`etc/MACHINES' for recognized configuration names." >&5
3219 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3220 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3221 { (exit 1); exit 1; }; }
3224 machfile
="m/${machine}.h"
3225 opsysfile
="s/${opsys}.h"
3228 #### Choose a compiler.
3229 test -n "$CC" && cc_specified
=yes
3231 # Save the value of CFLAGS that the user specified.
3232 SPECIFIED_CFLAGS
="$CFLAGS"
3235 "yes" ) CC
="gcc" GCC
=yes ;;
3236 "no" ) : ${CC=cc} ;;
3240 ac_cpp
='$CPP $CPPFLAGS'
3241 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3242 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3243 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3244 if test -n "$ac_tool_prefix"; then
3245 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3246 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3247 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3249 if test "${ac_cv_prog_CC+set}" = set; then
3250 echo $ECHO_N "(cached) $ECHO_C" >&6
3252 if test -n "$CC"; then
3253 ac_cv_prog_CC
="$CC" # Let the user override the test.
3255 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3259 test -z "$as_dir" && as_dir
=.
3260 for ac_exec_ext
in '' $ac_executable_extensions; do
3261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3262 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3273 if test -n "$CC"; then
3274 { echo "$as_me:$LINENO: result: $CC" >&5
3275 echo "${ECHO_T}$CC" >&6; }
3277 { echo "$as_me:$LINENO: result: no" >&5
3278 echo "${ECHO_T}no" >&6; }
3283 if test -z "$ac_cv_prog_CC"; then
3285 # Extract the first word of "gcc", so it can be a program name with args.
3286 set dummy gcc
; ac_word
=$2
3287 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3289 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3290 echo $ECHO_N "(cached) $ECHO_C" >&6
3292 if test -n "$ac_ct_CC"; then
3293 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3295 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3299 test -z "$as_dir" && as_dir
=.
3300 for ac_exec_ext
in '' $ac_executable_extensions; do
3301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3302 ac_cv_prog_ac_ct_CC
="gcc"
3303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3312 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3313 if test -n "$ac_ct_CC"; then
3314 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3315 echo "${ECHO_T}$ac_ct_CC" >&6; }
3317 { echo "$as_me:$LINENO: result: no" >&5
3318 echo "${ECHO_T}no" >&6; }
3321 if test "x$ac_ct_CC" = x
; then
3324 case $cross_compiling:$ac_tool_warned in
3326 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3327 whose name does not start with the host triplet. If you think this
3328 configuration is useful to you, please write to autoconf@gnu.org." >&5
3329 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3330 whose name does not start with the host triplet. If you think this
3331 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3332 ac_tool_warned
=yes ;;
3340 if test -z "$CC"; then
3341 if test -n "$ac_tool_prefix"; then
3342 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3343 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3346 if test "${ac_cv_prog_CC+set}" = set; then
3347 echo $ECHO_N "(cached) $ECHO_C" >&6
3349 if test -n "$CC"; then
3350 ac_cv_prog_CC
="$CC" # Let the user override the test.
3352 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3356 test -z "$as_dir" && as_dir
=.
3357 for ac_exec_ext
in '' $ac_executable_extensions; do
3358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3359 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3370 if test -n "$CC"; then
3371 { echo "$as_me:$LINENO: result: $CC" >&5
3372 echo "${ECHO_T}$CC" >&6; }
3374 { echo "$as_me:$LINENO: result: no" >&5
3375 echo "${ECHO_T}no" >&6; }
3381 if test -z "$CC"; then
3382 # Extract the first word of "cc", so it can be a program name with args.
3383 set dummy cc
; ac_word
=$2
3384 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3386 if test "${ac_cv_prog_CC+set}" = set; then
3387 echo $ECHO_N "(cached) $ECHO_C" >&6
3389 if test -n "$CC"; then
3390 ac_cv_prog_CC
="$CC" # Let the user override the test.
3393 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3397 test -z "$as_dir" && as_dir
=.
3398 for ac_exec_ext
in '' $ac_executable_extensions; do
3399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3400 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3401 ac_prog_rejected
=yes
3405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3412 if test $ac_prog_rejected = yes; then
3413 # We found a bogon in the path, so make sure we never use it.
3414 set dummy
$ac_cv_prog_CC
3416 if test $# != 0; then
3417 # We chose a different compiler from the bogus one.
3418 # However, it has the same basename, so the bogon will be chosen
3419 # first if we set CC to just the basename; use the full file name.
3421 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3427 if test -n "$CC"; then
3428 { echo "$as_me:$LINENO: result: $CC" >&5
3429 echo "${ECHO_T}$CC" >&6; }
3431 { echo "$as_me:$LINENO: result: no" >&5
3432 echo "${ECHO_T}no" >&6; }
3437 if test -z "$CC"; then
3438 if test -n "$ac_tool_prefix"; then
3439 for ac_prog
in cl.exe
3441 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3442 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3443 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3445 if test "${ac_cv_prog_CC+set}" = set; then
3446 echo $ECHO_N "(cached) $ECHO_C" >&6
3448 if test -n "$CC"; then
3449 ac_cv_prog_CC
="$CC" # Let the user override the test.
3451 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3455 test -z "$as_dir" && as_dir
=.
3456 for ac_exec_ext
in '' $ac_executable_extensions; do
3457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3458 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3469 if test -n "$CC"; then
3470 { echo "$as_me:$LINENO: result: $CC" >&5
3471 echo "${ECHO_T}$CC" >&6; }
3473 { echo "$as_me:$LINENO: result: no" >&5
3474 echo "${ECHO_T}no" >&6; }
3478 test -n "$CC" && break
3481 if test -z "$CC"; then
3483 for ac_prog
in cl.exe
3485 # Extract the first word of "$ac_prog", so it can be a program name with args.
3486 set dummy
$ac_prog; ac_word
=$2
3487 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3489 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3490 echo $ECHO_N "(cached) $ECHO_C" >&6
3492 if test -n "$ac_ct_CC"; then
3493 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3495 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3499 test -z "$as_dir" && as_dir
=.
3500 for ac_exec_ext
in '' $ac_executable_extensions; do
3501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3502 ac_cv_prog_ac_ct_CC
="$ac_prog"
3503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3512 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3513 if test -n "$ac_ct_CC"; then
3514 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3515 echo "${ECHO_T}$ac_ct_CC" >&6; }
3517 { echo "$as_me:$LINENO: result: no" >&5
3518 echo "${ECHO_T}no" >&6; }
3522 test -n "$ac_ct_CC" && break
3525 if test "x$ac_ct_CC" = x
; then
3528 case $cross_compiling:$ac_tool_warned in
3530 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3531 whose name does not start with the host triplet. If you think this
3532 configuration is useful to you, please write to autoconf@gnu.org." >&5
3533 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3534 whose name does not start with the host triplet. If you think this
3535 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3536 ac_tool_warned
=yes ;;
3545 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3546 See \`config.log' for more details." >&5
3547 echo "$as_me: error: no acceptable C compiler found in \$PATH
3548 See \`config.log' for more details." >&2;}
3549 { (exit 1); exit 1; }; }
3551 # Provide some information about the compiler.
3552 echo "$as_me:$LINENO: checking for C compiler version" >&5
3553 ac_compiler
=`set X $ac_compile; echo $2`
3554 { (ac_try
="$ac_compiler --version >&5"
3556 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3557 *) ac_try_echo=$ac_try;;
3559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3560 (eval "$ac_compiler --version >&5") 2>&5
3562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563 (exit $ac_status); }
3564 { (ac_try="$ac_compiler -v >&5"
3566 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3567 *) ac_try_echo
=$ac_try;;
3569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3570 (eval "$ac_compiler -v >&5") 2>&5
3572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573 (exit $ac_status); }
3574 { (ac_try
="$ac_compiler -V >&5"
3576 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3577 *) ac_try_echo=$ac_try;;
3579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3580 (eval "$ac_compiler -V >&5") 2>&5
3582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583 (exit $ac_status); }
3585 cat >conftest.$ac_ext <<_ACEOF
3588 cat confdefs.h >>conftest.$ac_ext
3589 cat >>conftest.$ac_ext <<_ACEOF
3590 /* end confdefs.h. */
3600 ac_clean_files_save=$ac_clean_files
3601 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3602 # Try to create an executable without -o first, disregard a.out.
3603 # It will help us diagnose broken compilers, and finding out an intuition
3605 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3606 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3607 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3609 # List of possible output files, starting from the most likely.
3610 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
3611 # only as a last resort. b.out is created by i960 compilers.
3612 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
3614 # The IRIX 6 linker writes into existing files which may not be
3615 # executable, retaining their permissions. Remove them first so a
3616 # subsequent execution test works.
3618 for ac_file in $ac_files
3621 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3622 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3627 if { (ac_try="$ac_link_default"
3629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3630 *) ac_try_echo=$ac_try;;
3632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3633 (eval "$ac_link_default") 2>&5
3635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636 (exit $ac_status); }; then
3637 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3638 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3639 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3640 # so that the user can short-circuit this test for compilers unknown to
3642 for ac_file
in $ac_files ''
3644 test -f "$ac_file" ||
continue
3646 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
3649 # We found the default executable, but exeext='' is most
3653 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3655 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3657 # We set ac_cv_exeext here because the later test for it is not
3658 # safe: cross compilers may not add the suffix if given an `-o'
3659 # argument, so we may need to know it at that point already.
3660 # Even if this section looks crufty: it has the advantage of
3667 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3673 { echo "$as_me:$LINENO: result: $ac_file" >&5
3674 echo "${ECHO_T}$ac_file" >&6; }
3675 if test -z "$ac_file"; then
3676 echo "$as_me: failed program was:" >&5
3677 sed 's/^/| /' conftest.
$ac_ext >&5
3679 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3680 See \`config.log' for more details." >&5
3681 echo "$as_me: error: C compiler cannot create executables
3682 See \`config.log' for more details." >&2;}
3683 { (exit 77); exit 77; }; }
3686 ac_exeext
=$ac_cv_exeext
3688 # Check that the compiler produces executables we can run. If not, either
3689 # the compiler is broken, or we cross compile.
3690 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3691 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3692 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3693 # If not cross compiling, check that we can run a simple program.
3694 if test "$cross_compiling" != yes; then
3695 if { ac_try
='./$ac_file'
3696 { (case "(($ac_try" in
3697 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3698 *) ac_try_echo=$ac_try;;
3700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3701 (eval "$ac_try") 2>&5
3703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704 (exit $ac_status); }; }; then
3707 if test "$cross_compiling" = maybe; then
3710 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3711 If you meant to cross compile, use \`--host'.
3712 See \`config.log' for more details.
" >&5
3713 echo "$as_me: error
: cannot run C compiled programs.
3714 If you meant to cross compile
, use \
`--host'.
3715 See \`config.log
' for more details." >&2;}
3716 { (exit 1); exit 1; }; }
3720 { echo "$as_me:$LINENO: result: yes" >&5
3721 echo "${ECHO_T}yes" >&6; }
3723 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3724 ac_clean_files=$ac_clean_files_save
3725 # Check that the compiler produces executables we can run. If not, either
3726 # the compiler is broken, or we cross compile.
3727 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3728 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3729 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3730 echo "${ECHO_T}$cross_compiling" >&6; }
3732 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3733 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3734 if { (ac_try="$ac_link"
3736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3737 *) ac_try_echo=$ac_try;;
3739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3740 (eval "$ac_link") 2>&5
3742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3743 (exit $ac_status); }; then
3744 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3745 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3746 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3748 for ac_file
in conftest.exe conftest conftest.
*; do
3749 test -f "$ac_file" ||
continue
3751 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
3752 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3758 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3759 See \`config.log' for more details." >&5
3760 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3761 See \`config.log' for more details." >&2;}
3762 { (exit 1); exit 1; }; }
3765 rm -f conftest
$ac_cv_exeext
3766 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3767 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3769 rm -f conftest.
$ac_ext
3770 EXEEXT
=$ac_cv_exeext
3772 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3773 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3774 if test "${ac_cv_objext+set}" = set; then
3775 echo $ECHO_N "(cached) $ECHO_C" >&6
3777 cat >conftest.
$ac_ext <<_ACEOF
3780 cat confdefs.h
>>conftest.
$ac_ext
3781 cat >>conftest.
$ac_ext <<_ACEOF
3782 /* end confdefs.h. */
3792 rm -f conftest.o conftest.obj
3793 if { (ac_try
="$ac_compile"
3795 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3796 *) ac_try_echo=$ac_try;;
3798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3799 (eval "$ac_compile") 2>&5
3801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802 (exit $ac_status); }; then
3803 for ac_file in conftest.o conftest.obj conftest.*; do
3804 test -f "$ac_file" || continue;
3806 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3807 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3812 echo "$as_me: failed program was:" >&5
3813 sed 's/^/| /' conftest.$ac_ext >&5
3815 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3816 See \`config.log
' for more details." >&5
3817 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3818 See \`config.log' for more details.
" >&2;}
3819 { (exit 1); exit 1; }; }
3822 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3824 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3825 echo "${ECHO_T}$ac_cv_objext" >&6; }
3826 OBJEXT=$ac_cv_objext
3828 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3829 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3830 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3831 echo $ECHO_N "(cached
) $ECHO_C" >&6
3833 cat >conftest.$ac_ext <<_ACEOF
3836 cat confdefs.h >>conftest.$ac_ext
3837 cat >>conftest.$ac_ext <<_ACEOF
3838 /* end confdefs.h. */
3851 rm -f conftest.$ac_objext
3852 if { (ac_try="$ac_compile"
3854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3855 *) ac_try_echo=$ac_try;;
3857 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3858 (eval "$ac_compile") 2>conftest.er1
3860 grep -v '^ *+' conftest.er1 >conftest.err
3862 cat conftest.err >&5
3863 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3864 (exit $ac_status); } && {
3865 test -z "$ac_c_werror_flag" ||
3866 test ! -s conftest.err
3867 } && test -s conftest.$ac_objext; then
3870 echo "$as_me: failed program was
:" >&5
3871 sed 's/^/| /' conftest.$ac_ext >&5
3876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3877 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3880 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3881 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3882 GCC=`test $ac_compiler_gnu = yes && echo yes`
3883 ac_test_CFLAGS=${CFLAGS+set}
3884 ac_save_CFLAGS=$CFLAGS
3885 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3886 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3887 if test "${ac_cv_prog_cc_g+set}" = set; then
3888 echo $ECHO_N "(cached
) $ECHO_C" >&6
3890 ac_save_c_werror_flag=$ac_c_werror_flag
3891 ac_c_werror_flag=yes
3894 cat >conftest.$ac_ext <<_ACEOF
3897 cat confdefs.h >>conftest.$ac_ext
3898 cat >>conftest.$ac_ext <<_ACEOF
3899 /* end confdefs.h. */
3909 rm -f conftest.$ac_objext
3910 if { (ac_try="$ac_compile"
3912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3913 *) ac_try_echo=$ac_try;;
3915 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3916 (eval "$ac_compile") 2>conftest.er1
3918 grep -v '^ *+' conftest.er1 >conftest.err
3920 cat conftest.err >&5
3921 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3922 (exit $ac_status); } && {
3923 test -z "$ac_c_werror_flag" ||
3924 test ! -s conftest.err
3925 } && test -s conftest.$ac_objext; then
3928 echo "$as_me: failed program was
:" >&5
3929 sed 's/^/| /' conftest.$ac_ext >&5
3932 cat >conftest.$ac_ext <<_ACEOF
3935 cat confdefs.h >>conftest.$ac_ext
3936 cat >>conftest.$ac_ext <<_ACEOF
3937 /* end confdefs.h. */
3947 rm -f conftest.$ac_objext
3948 if { (ac_try="$ac_compile"
3950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3951 *) ac_try_echo=$ac_try;;
3953 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3954 (eval "$ac_compile") 2>conftest.er1
3956 grep -v '^ *+' conftest.er1 >conftest.err
3958 cat conftest.err >&5
3959 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3960 (exit $ac_status); } && {
3961 test -z "$ac_c_werror_flag" ||
3962 test ! -s conftest.err
3963 } && test -s conftest.$ac_objext; then
3966 echo "$as_me: failed program was
:" >&5
3967 sed 's/^/| /' conftest.$ac_ext >&5
3969 ac_c_werror_flag=$ac_save_c_werror_flag
3971 cat >conftest.$ac_ext <<_ACEOF
3974 cat confdefs.h >>conftest.$ac_ext
3975 cat >>conftest.$ac_ext <<_ACEOF
3976 /* end confdefs.h. */
3986 rm -f conftest.$ac_objext
3987 if { (ac_try="$ac_compile"
3989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3990 *) ac_try_echo=$ac_try;;
3992 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3993 (eval "$ac_compile") 2>conftest.er1
3995 grep -v '^ *+' conftest.er1 >conftest.err
3997 cat conftest.err >&5
3998 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3999 (exit $ac_status); } && {
4000 test -z "$ac_c_werror_flag" ||
4001 test ! -s conftest.err
4002 } && test -s conftest.$ac_objext; then
4005 echo "$as_me: failed program was
:" >&5
4006 sed 's/^/| /' conftest.$ac_ext >&5
4011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4018 ac_c_werror_flag=$ac_save_c_werror_flag
4020 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
4021 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4022 if test "$ac_test_CFLAGS" = set; then
4023 CFLAGS=$ac_save_CFLAGS
4024 elif test $ac_cv_prog_cc_g = yes; then
4025 if test "$GCC" = yes; then
4031 if test "$GCC" = yes; then
4037 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
4038 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
4039 if test "${ac_cv_prog_cc_c89+set}" = set; then
4040 echo $ECHO_N "(cached
) $ECHO_C" >&6
4042 ac_cv_prog_cc_c89=no
4044 cat >conftest.$ac_ext <<_ACEOF
4047 cat confdefs.h >>conftest.$ac_ext
4048 cat >>conftest.$ac_ext <<_ACEOF
4049 /* end confdefs.h. */
4052 #include <sys/types.h>
4053 #include <sys/stat.h>
4054 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4055 struct buf { int x; };
4056 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4057 static char *e (p, i)
4063 static char *f (char * (*g) (char **, int), char **p, ...)
4068 s = g (p, va_arg (v,int));
4073 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4074 function prototypes and stuff, but not '\xHH' hex character constants.
4075 These don't provoke an error unfortunately, instead are silently treated
4076 as 'x'. The following induces an error, until -std is added to get
4077 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4078 array size at least. It's necessary to write '\x00'==0 to get something
4079 that's true only with -std. */
4080 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4082 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4083 inside strings and character constants. */
4085 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4087 int test (int i, double x);
4088 struct s1 {int (*f) (int a);};
4089 struct s2 {int (*f) (double a);};
4090 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4096 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4101 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4102 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4104 CC="$ac_save_CC $ac_arg"
4105 rm -f conftest.$ac_objext
4106 if { (ac_try="$ac_compile"
4108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4109 *) ac_try_echo=$ac_try;;
4111 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4112 (eval "$ac_compile") 2>conftest.er1
4114 grep -v '^ *+' conftest.er1 >conftest.err
4116 cat conftest.err >&5
4117 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4118 (exit $ac_status); } && {
4119 test -z "$ac_c_werror_flag" ||
4120 test ! -s conftest.err
4121 } && test -s conftest.$ac_objext; then
4122 ac_cv_prog_cc_c89=$ac_arg
4124 echo "$as_me: failed program was
:" >&5
4125 sed 's/^/| /' conftest.$ac_ext >&5
4130 rm -f core conftest.err conftest.$ac_objext
4131 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
4133 rm -f conftest.$ac_ext
4138 case "x
$ac_cv_prog_cc_c89" in
4140 { echo "$as_me:$LINENO: result
: none needed
" >&5
4141 echo "${ECHO_T}none needed
" >&6; } ;;
4143 { echo "$as_me:$LINENO: result
: unsupported
" >&5
4144 echo "${ECHO_T}unsupported
" >&6; } ;;
4146 CC="$CC $ac_cv_prog_cc_c89"
4147 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
4148 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4153 ac_cpp='$CPP $CPPFLAGS'
4154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4159 # On Suns, sometimes $CPP names a directory.
4160 if test -n "$CPP" && test -d "$CPP"; then
4164 #### Some systems specify a CPP to use unless we are using GCC.
4165 #### Now that we know whether we are using GCC, we can decide whether
4166 #### to use that one.
4167 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
4172 #### Some systems specify a CC to use unless we are using GCC.
4173 #### Now that we know whether we are using GCC, we can decide whether
4174 #### to use that one.
4175 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
4176 test x$cc_specified != xyes
4181 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
4183 CC="$CC $GCC_TEST_OPTIONS"
4186 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
4188 CC="$CC $NON_GCC_TEST_OPTIONS"
4193 ac_cpp='$CPP $CPPFLAGS'
4194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4197 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
4198 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
4199 # On Suns, sometimes $CPP names a directory.
4200 if test -n "$CPP" && test -d "$CPP"; then
4203 if test -z "$CPP"; then
4204 if test "${ac_cv_prog_CPP+set}" = set; then
4205 echo $ECHO_N "(cached
) $ECHO_C" >&6
4207 # Double quotes because CPP needs to be expanded
4208 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
4211 for ac_c_preproc_warn_flag in '' yes
4213 # Use a header file that comes with gcc, so configuring glibc
4214 # with a fresh cross-compiler works.
4215 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4216 # <limits.h> exists even on freestanding compilers.
4217 # On the NeXT, cc -E runs the code through the compiler's parser,
4218 # not just through cpp. "Syntax error
" is here to catch this case.
4219 cat >conftest.$ac_ext <<_ACEOF
4222 cat confdefs.h >>conftest.$ac_ext
4223 cat >>conftest.$ac_ext <<_ACEOF
4224 /* end confdefs.h. */
4226 # include <limits.h>
4228 # include <assert.h>
4232 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4235 *) ac_try_echo=$ac_try;;
4237 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4238 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4240 grep -v '^ *+' conftest.er1 >conftest.err
4242 cat conftest.err >&5
4243 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4244 (exit $ac_status); } >/dev/null && {
4245 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4246 test ! -s conftest.err
4250 echo "$as_me: failed program was
:" >&5
4251 sed 's/^/| /' conftest.$ac_ext >&5
4253 # Broken: fails on valid input.
4257 rm -f conftest.err conftest.$ac_ext
4259 # OK, works on sane cases. Now check whether nonexistent headers
4260 # can be detected and how.
4261 cat >conftest.$ac_ext <<_ACEOF
4264 cat confdefs.h >>conftest.$ac_ext
4265 cat >>conftest.$ac_ext <<_ACEOF
4266 /* end confdefs.h. */
4267 #include <ac_nonexistent.h>
4269 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4272 *) ac_try_echo=$ac_try;;
4274 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4275 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4277 grep -v '^ *+' conftest.er1 >conftest.err
4279 cat conftest.err >&5
4280 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4281 (exit $ac_status); } >/dev/null && {
4282 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4283 test ! -s conftest.err
4285 # Broken: success on invalid input.
4288 echo "$as_me: failed program was
:" >&5
4289 sed 's/^/| /' conftest.$ac_ext >&5
4291 # Passes both tests.
4296 rm -f conftest.err conftest.$ac_ext
4299 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4300 rm -f conftest.err conftest.$ac_ext
4301 if $ac_preproc_ok; then
4313 { echo "$as_me:$LINENO: result
: $CPP" >&5
4314 echo "${ECHO_T}$CPP" >&6; }
4316 for ac_c_preproc_warn_flag in '' yes
4318 # Use a header file that comes with gcc, so configuring glibc
4319 # with a fresh cross-compiler works.
4320 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4321 # <limits.h> exists even on freestanding compilers.
4322 # On the NeXT, cc -E runs the code through the compiler's parser,
4323 # not just through cpp. "Syntax error
" is here to catch this case.
4324 cat >conftest.$ac_ext <<_ACEOF
4327 cat confdefs.h >>conftest.$ac_ext
4328 cat >>conftest.$ac_ext <<_ACEOF
4329 /* end confdefs.h. */
4331 # include <limits.h>
4333 # include <assert.h>
4337 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4340 *) ac_try_echo=$ac_try;;
4342 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4343 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4345 grep -v '^ *+' conftest.er1 >conftest.err
4347 cat conftest.err >&5
4348 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4349 (exit $ac_status); } >/dev/null && {
4350 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4351 test ! -s conftest.err
4355 echo "$as_me: failed program was
:" >&5
4356 sed 's/^/| /' conftest.$ac_ext >&5
4358 # Broken: fails on valid input.
4362 rm -f conftest.err conftest.$ac_ext
4364 # OK, works on sane cases. Now check whether nonexistent headers
4365 # can be detected and how.
4366 cat >conftest.$ac_ext <<_ACEOF
4369 cat confdefs.h >>conftest.$ac_ext
4370 cat >>conftest.$ac_ext <<_ACEOF
4371 /* end confdefs.h. */
4372 #include <ac_nonexistent.h>
4374 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4377 *) ac_try_echo=$ac_try;;
4379 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4380 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4382 grep -v '^ *+' conftest.er1 >conftest.err
4384 cat conftest.err >&5
4385 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4386 (exit $ac_status); } >/dev/null && {
4387 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4388 test ! -s conftest.err
4390 # Broken: success on invalid input.
4393 echo "$as_me: failed program was
:" >&5
4394 sed 's/^/| /' conftest.$ac_ext >&5
4396 # Passes both tests.
4401 rm -f conftest.err conftest.$ac_ext
4404 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4405 rm -f conftest.err conftest.$ac_ext
4406 if $ac_preproc_ok; then
4409 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4410 See \
`config.log' for more details." >&5
4411 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4412 See \`config.log
' for more details." >&2;}
4413 { (exit 1); exit 1; }; }
4417 ac_cpp='$CPP $CPPFLAGS'
4418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4419 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4423 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4424 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4425 if test "${ac_cv_path_GREP+set}" = set; then
4426 echo $ECHO_N "(cached) $ECHO_C" >&6
4428 # Extract the first word of "grep ggrep" to use in msg output
4429 if test -z "$GREP"; then
4430 set dummy grep ggrep; ac_prog_name=$2
4431 if test "${ac_cv_path_GREP+set}" = set; then
4432 echo $ECHO_N "(cached) $ECHO_C" >&6
4434 ac_path_GREP_found=false
4435 # Loop through the user's path and
test for each of PROGNAME-LIST
4436 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4437 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4440 test -z "$as_dir" && as_dir
=.
4441 for ac_prog
in grep ggrep
; do
4442 for ac_exec_ext
in '' $ac_executable_extensions; do
4443 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4444 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4445 # Check for GNU ac_path_GREP and select it if it is found.
4446 # Check for GNU $ac_path_GREP
4447 case `"$ac_path_GREP" --version 2>&1` in
4449 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4452 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4455 cat "conftest.in" "conftest.in" >"conftest.tmp"
4456 mv "conftest.tmp" "conftest.in"
4457 cp "conftest.in" "conftest.nl"
4458 echo 'GREP' >> "conftest.nl"
4459 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4460 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4461 ac_count
=`expr $ac_count + 1`
4462 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4463 # Best one so far, save it but keep looking for a better one
4464 ac_cv_path_GREP
="$ac_path_GREP"
4465 ac_path_GREP_max
=$ac_count
4467 # 10*(2^10) chars as input seems more than enough
4468 test $ac_count -gt 10 && break
4470 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4474 $ac_path_GREP_found && break 3
4484 GREP
="$ac_cv_path_GREP"
4485 if test -z "$GREP"; then
4486 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4487 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4488 { (exit 1); exit 1; }; }
4492 ac_cv_path_GREP
=$GREP
4497 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4498 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4499 GREP
="$ac_cv_path_GREP"
4502 { echo "$as_me:$LINENO: checking for egrep" >&5
4503 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4504 if test "${ac_cv_path_EGREP+set}" = set; then
4505 echo $ECHO_N "(cached) $ECHO_C" >&6
4507 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4508 then ac_cv_path_EGREP
="$GREP -E"
4510 # Extract the first word of "egrep" to use in msg output
4511 if test -z "$EGREP"; then
4512 set dummy
egrep; ac_prog_name
=$2
4513 if test "${ac_cv_path_EGREP+set}" = set; then
4514 echo $ECHO_N "(cached) $ECHO_C" >&6
4516 ac_path_EGREP_found
=false
4517 # Loop through the user's path and test for each of PROGNAME-LIST
4518 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4519 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4522 test -z "$as_dir" && as_dir
=.
4523 for ac_prog
in egrep; do
4524 for ac_exec_ext
in '' $ac_executable_extensions; do
4525 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4526 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4527 # Check for GNU ac_path_EGREP and select it if it is found.
4528 # Check for GNU $ac_path_EGREP
4529 case `"$ac_path_EGREP" --version 2>&1` in
4531 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4534 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4537 cat "conftest.in" "conftest.in" >"conftest.tmp"
4538 mv "conftest.tmp" "conftest.in"
4539 cp "conftest.in" "conftest.nl"
4540 echo 'EGREP' >> "conftest.nl"
4541 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4542 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4543 ac_count
=`expr $ac_count + 1`
4544 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4545 # Best one so far, save it but keep looking for a better one
4546 ac_cv_path_EGREP
="$ac_path_EGREP"
4547 ac_path_EGREP_max
=$ac_count
4549 # 10*(2^10) chars as input seems more than enough
4550 test $ac_count -gt 10 && break
4552 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4556 $ac_path_EGREP_found && break 3
4566 EGREP
="$ac_cv_path_EGREP"
4567 if test -z "$EGREP"; then
4568 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4569 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4570 { (exit 1); exit 1; }; }
4574 ac_cv_path_EGREP
=$EGREP
4580 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4581 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4582 EGREP
="$ac_cv_path_EGREP"
4586 { echo "$as_me:$LINENO: checking for AIX" >&5
4587 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4588 cat >conftest.
$ac_ext <<_ACEOF
4591 cat confdefs.h
>>conftest.
$ac_ext
4592 cat >>conftest.
$ac_ext <<_ACEOF
4593 /* end confdefs.h. */
4599 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4600 $EGREP "yes" >/dev
/null
2>&1; then
4601 { echo "$as_me:$LINENO: result: yes" >&5
4602 echo "${ECHO_T}yes" >&6; }
4603 cat >>confdefs.h
<<\_ACEOF
4604 #define _ALL_SOURCE 1
4608 { echo "$as_me:$LINENO: result: no" >&5
4609 echo "${ECHO_T}no" >&6; }
4615 cat >>confdefs.h
<<\_ACEOF
4616 #define _GNU_SOURCE 1
4621 ### Use -Wno-pointer-sign if the compiler supports it
4622 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4623 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4624 SAVE_CFLAGS
="$CFLAGS"
4625 CFLAGS
="$CFLAGS -Wno-pointer-sign"
4626 cat >conftest.
$ac_ext <<_ACEOF
4629 cat confdefs.h
>>conftest.
$ac_ext
4630 cat >>conftest.
$ac_ext <<_ACEOF
4631 /* end confdefs.h. */
4641 rm -f conftest.
$ac_objext
4642 if { (ac_try
="$ac_compile"
4644 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4645 *) ac_try_echo=$ac_try;;
4647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4648 (eval "$ac_compile") 2>conftest.er1
4650 grep -v '^ *+' conftest.er1 >conftest.err
4652 cat conftest.err >&5
4653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654 (exit $ac_status); } && {
4655 test -z "$ac_c_werror_flag" ||
4656 test ! -s conftest.err
4657 } && test -s conftest.$ac_objext; then
4660 echo "$as_me: failed program was:" >&5
4661 sed 's/^/| /' conftest.$ac_ext >&5
4666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4667 if test $has_option = yes; then
4668 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4670 { echo "$as_me:$LINENO: result: $has_option" >&5
4671 echo "${ECHO_T}$has_option" >&6; }
4672 CFLAGS="$SAVE_CFLAGS"
4676 #### Some other nice autoconf tests.
4678 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4679 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4681 if test "$LN_S" = "ln -s"; then
4682 { echo "$as_me:$LINENO: result: yes" >&5
4683 echo "${ECHO_T}yes" >&6; }
4685 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4686 echo "${ECHO_T}no, using $LN_S" >&6; }
4690 ac_cpp='$CPP $CPPFLAGS'
4691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4694 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4695 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4696 # On Suns, sometimes $CPP names a directory.
4697 if test -n "$CPP" && test -d "$CPP"; then
4700 if test -z "$CPP"; then
4701 if test "${ac_cv_prog_CPP+set}" = set; then
4702 echo $ECHO_N "(cached) $ECHO_C" >&6
4704 # Double quotes because CPP needs to be expanded
4705 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4708 for ac_c_preproc_warn_flag in '' yes
4710 # Use a header file that comes with gcc, so configuring glibc
4711 # with a fresh cross-compiler works.
4712 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4713 # <limits.h> exists even on freestanding compilers.
4714 # On the NeXT, cc -E runs the code through the compiler's parser,
4715 # not just through cpp. "Syntax error" is here to catch this case.
4716 cat >conftest.$ac_ext <<_ACEOF
4719 cat confdefs.h >>conftest.$ac_ext
4720 cat >>conftest.$ac_ext <<_ACEOF
4721 /* end confdefs.h. */
4723 # include <limits.h>
4725 # include <assert.h>
4729 if { (ac_try="$ac_cpp conftest.$ac_ext"
4731 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4732 *) ac_try_echo
=$ac_try;;
4734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4735 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4737 grep -v '^ *+' conftest.er1
>conftest.err
4739 cat conftest.err
>&5
4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); } >/dev
/null
&& {
4742 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4743 test ! -s conftest.err
4747 echo "$as_me: failed program was:" >&5
4748 sed 's/^/| /' conftest.
$ac_ext >&5
4750 # Broken: fails on valid input.
4754 rm -f conftest.err conftest.
$ac_ext
4756 # OK, works on sane cases. Now check whether nonexistent headers
4757 # can be detected and how.
4758 cat >conftest.
$ac_ext <<_ACEOF
4761 cat confdefs.h
>>conftest.
$ac_ext
4762 cat >>conftest.
$ac_ext <<_ACEOF
4763 /* end confdefs.h. */
4764 #include <ac_nonexistent.h>
4766 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4768 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4769 *) ac_try_echo=$ac_try;;
4771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4772 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4774 grep -v '^ *+' conftest.er1 >conftest.err
4776 cat conftest.err >&5
4777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778 (exit $ac_status); } >/dev/null && {
4779 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4780 test ! -s conftest.err
4782 # Broken: success on invalid input.
4785 echo "$as_me: failed program was:" >&5
4786 sed 's/^/| /' conftest.$ac_ext >&5
4788 # Passes both tests.
4793 rm -f conftest.err conftest.$ac_ext
4796 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4797 rm -f conftest.err conftest.
$ac_ext
4798 if $ac_preproc_ok; then
4810 { echo "$as_me:$LINENO: result: $CPP" >&5
4811 echo "${ECHO_T}$CPP" >&6; }
4813 for ac_c_preproc_warn_flag
in '' yes
4815 # Use a header file that comes with gcc, so configuring glibc
4816 # with a fresh cross-compiler works.
4817 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4818 # <limits.h> exists even on freestanding compilers.
4819 # On the NeXT, cc -E runs the code through the compiler's parser,
4820 # not just through cpp. "Syntax error" is here to catch this case.
4821 cat >conftest.
$ac_ext <<_ACEOF
4824 cat confdefs.h
>>conftest.
$ac_ext
4825 cat >>conftest.
$ac_ext <<_ACEOF
4826 /* end confdefs.h. */
4828 # include <limits.h>
4830 # include <assert.h>
4834 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4836 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4837 *) ac_try_echo=$ac_try;;
4839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4840 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4842 grep -v '^ *+' conftest.er1 >conftest.err
4844 cat conftest.err >&5
4845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846 (exit $ac_status); } >/dev/null && {
4847 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4848 test ! -s conftest.err
4852 echo "$as_me: failed program was:" >&5
4853 sed 's/^/| /' conftest.$ac_ext >&5
4855 # Broken: fails on valid input.
4859 rm -f conftest.err conftest.$ac_ext
4861 # OK, works on sane cases. Now check whether nonexistent headers
4862 # can be detected and how.
4863 cat >conftest.$ac_ext <<_ACEOF
4866 cat confdefs.h >>conftest.$ac_ext
4867 cat >>conftest.$ac_ext <<_ACEOF
4868 /* end confdefs.h. */
4869 #include <ac_nonexistent.h>
4871 if { (ac_try="$ac_cpp conftest.$ac_ext"
4873 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4874 *) ac_try_echo
=$ac_try;;
4876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4877 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4879 grep -v '^ *+' conftest.er1
>conftest.err
4881 cat conftest.err
>&5
4882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883 (exit $ac_status); } >/dev
/null
&& {
4884 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4885 test ! -s conftest.err
4887 # Broken: success on invalid input.
4890 echo "$as_me: failed program was:" >&5
4891 sed 's/^/| /' conftest.
$ac_ext >&5
4893 # Passes both tests.
4898 rm -f conftest.err conftest.
$ac_ext
4901 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4902 rm -f conftest.err conftest.
$ac_ext
4903 if $ac_preproc_ok; then
4906 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4907 See \`config.log' for more details." >&5
4908 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4909 See \`config.log' for more details." >&2;}
4910 { (exit 1); exit 1; }; }
4914 ac_cpp
='$CPP $CPPFLAGS'
4915 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4916 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4917 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4919 # Find a good install program. We prefer a C program (faster),
4920 # so one script is as good as another. But avoid the broken or
4921 # incompatible versions:
4922 # SysV /etc/install, /usr/sbin/install
4923 # SunOS /usr/etc/install
4924 # IRIX /sbin/install
4926 # AmigaOS /C/install, which installs bootblocks on floppy discs
4927 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4928 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4929 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4930 # OS/2's system install, which has a completely different semantic
4931 # ./install, which can be erroneously created by make from ./install.sh.
4932 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4933 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4934 if test -z "$INSTALL"; then
4935 if test "${ac_cv_path_install+set}" = set; then
4936 echo $ECHO_N "(cached) $ECHO_C" >&6
4938 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4942 test -z "$as_dir" && as_dir
=.
4943 # Account for people who put trailing slashes in PATH elements.
4945 .
/ | .
// |
/cC
/* | \
4946 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4947 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4950 # OSF1 and SCO ODT 3.0 have their own names for install.
4951 # Don't use installbsd from OSF since it installs stuff as root
4953 for ac_prog
in ginstall scoinst
install; do
4954 for ac_exec_ext
in '' $ac_executable_extensions; do
4955 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4956 if test $ac_prog = install &&
4957 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4958 # AIX install. It has an incompatible calling convention.
4960 elif test $ac_prog = install &&
4961 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4962 # program-specific install script used by HP pwplus--don't use.
4965 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4978 if test "${ac_cv_path_install+set}" = set; then
4979 INSTALL
=$ac_cv_path_install
4981 # As a last resort, use the slow shell script. Don't cache a
4982 # value for INSTALL within a source directory, because that will
4983 # break other packages using the cache if that directory is
4984 # removed, or if the value is a relative name.
4985 INSTALL
=$ac_install_sh
4988 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4989 echo "${ECHO_T}$INSTALL" >&6; }
4991 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4992 # It thinks the first close brace ends the variable substitution.
4993 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4995 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4997 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4999 if test "x$RANLIB" = x
; then
5000 if test -n "$ac_tool_prefix"; then
5001 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5002 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5003 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5005 if test "${ac_cv_prog_RANLIB+set}" = set; then
5006 echo $ECHO_N "(cached) $ECHO_C" >&6
5008 if test -n "$RANLIB"; then
5009 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5011 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5015 test -z "$as_dir" && as_dir
=.
5016 for ac_exec_ext
in '' $ac_executable_extensions; do
5017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5018 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5028 RANLIB
=$ac_cv_prog_RANLIB
5029 if test -n "$RANLIB"; then
5030 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5031 echo "${ECHO_T}$RANLIB" >&6; }
5033 { echo "$as_me:$LINENO: result: no" >&5
5034 echo "${ECHO_T}no" >&6; }
5039 if test -z "$ac_cv_prog_RANLIB"; then
5040 ac_ct_RANLIB
=$RANLIB
5041 # Extract the first word of "ranlib", so it can be a program name with args.
5042 set dummy ranlib
; ac_word
=$2
5043 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5045 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5046 echo $ECHO_N "(cached) $ECHO_C" >&6
5048 if test -n "$ac_ct_RANLIB"; then
5049 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5051 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5055 test -z "$as_dir" && as_dir
=.
5056 for ac_exec_ext
in '' $ac_executable_extensions; do
5057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5058 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5068 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5069 if test -n "$ac_ct_RANLIB"; then
5070 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5071 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5073 { echo "$as_me:$LINENO: result: no" >&5
5074 echo "${ECHO_T}no" >&6; }
5077 if test "x$ac_ct_RANLIB" = x
; then
5080 case $cross_compiling:$ac_tool_warned in
5082 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5083 whose name does not start with the host triplet. If you think this
5084 configuration is useful to you, please write to autoconf@gnu.org." >&5
5085 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5086 whose name does not start with the host triplet. If you think this
5087 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5088 ac_tool_warned
=yes ;;
5090 RANLIB
=$ac_ct_RANLIB
5093 RANLIB
="$ac_cv_prog_RANLIB"
5097 # Extract the first word of "install-info", so it can be a program name with args.
5098 set dummy install-info
; ac_word
=$2
5099 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5101 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5102 echo $ECHO_N "(cached) $ECHO_C" >&6
5104 case $INSTALL_INFO in
5106 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5109 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5113 test -z "$as_dir" && as_dir
=.
5114 for ac_exec_ext
in '' $ac_executable_extensions; do
5115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5116 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5127 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5128 if test -n "$INSTALL_INFO"; then
5129 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5130 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5132 { echo "$as_me:$LINENO: result: no" >&5
5133 echo "${ECHO_T}no" >&6; }
5137 # Extract the first word of "install-info", so it can be a program name with args.
5138 set dummy install-info
; ac_word
=$2
5139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5141 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5142 echo $ECHO_N "(cached) $ECHO_C" >&6
5144 case $INSTALL_INFO in
5146 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5149 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5150 for as_dir
in /usr
/sbin
5153 test -z "$as_dir" && as_dir
=.
5154 for ac_exec_ext
in '' $ac_executable_extensions; do
5155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5156 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5167 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5168 if test -n "$INSTALL_INFO"; then
5169 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5170 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5172 { echo "$as_me:$LINENO: result: no" >&5
5173 echo "${ECHO_T}no" >&6; }
5177 # Extract the first word of "install-info", so it can be a program name with args.
5178 set dummy install-info
; ac_word
=$2
5179 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5181 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5182 echo $ECHO_N "(cached) $ECHO_C" >&6
5184 case $INSTALL_INFO in
5186 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5189 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5193 test -z "$as_dir" && as_dir
=.
5194 for ac_exec_ext
in '' $ac_executable_extensions; do
5195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5196 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5204 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5208 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5209 if test -n "$INSTALL_INFO"; then
5210 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5211 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5213 { echo "$as_me:$LINENO: result: no" >&5
5214 echo "${ECHO_T}no" >&6; }
5218 # Extract the first word of "gzip", so it can be a program name with args.
5219 set dummy
gzip; ac_word
=$2
5220 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5222 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5223 echo $ECHO_N "(cached) $ECHO_C" >&6
5227 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5230 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5234 test -z "$as_dir" && as_dir
=.
5235 for ac_exec_ext
in '' $ac_executable_extensions; do
5236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5237 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5248 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5249 if test -n "$GZIP_PROG"; then
5250 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5251 echo "${ECHO_T}$GZIP_PROG" >&6; }
5253 { echo "$as_me:$LINENO: result: no" >&5
5254 echo "${ECHO_T}no" >&6; }
5260 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5262 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5265 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5267 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5271 late_LDFLAGS
=$LDFLAGS
5272 if test "$GCC" = yes; then
5273 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5275 LDFLAGS
="$LDFLAGS -znocombreloc"
5278 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5279 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5280 cat >conftest.
$ac_ext <<_ACEOF
5283 rm -f conftest.
$ac_objext conftest
$ac_exeext
5284 if { (ac_try
="$ac_link"
5286 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5287 *) ac_try_echo=$ac_try;;
5289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5290 (eval "$ac_link") 2>conftest.er1
5292 grep -v '^ *+' conftest.er1 >conftest.err
5294 cat conftest.err >&5
5295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296 (exit $ac_status); } && {
5297 test -z "$ac_c_werror_flag" ||
5298 test ! -s conftest.err
5299 } && test -s conftest$ac_exeext &&
5300 $as_test_x conftest$ac_exeext; then
5301 { echo "$as_me:$LINENO: result: yes" >&5
5302 echo "${ECHO_T}yes" >&6; }
5304 echo "$as_me: failed program was:" >&5
5305 sed 's/^/| /' conftest.$ac_ext >&5
5307 LDFLAGS=$late_LDFLAGS
5308 { echo "$as_me:$LINENO: result: no" >&5
5309 echo "${ECHO_T}no" >&6; }
5312 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5313 conftest$ac_exeext conftest.$ac_ext
5315 #### Extract some information from the operating system and machine files.
5317 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5318 - which libraries the lib-src programs will want, and
5319 - whether the GNU malloc routines are usable..." >&5
5320 echo "$as_me: checking the machine- and system-dependent files to find out
5321 - which libraries the lib-src programs will want, and
5322 - whether the GNU malloc routines are usable..." >&6;}
5324 ### First figure out CFLAGS (which we use for running the compiler here)
5325 ### and REAL_CFLAGS (which we use for real compilation).
5326 ### The two are the same except on a few systems, where they are made
5327 ### different to work around various lossages. For example,
5328 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5329 ### as implying static linking.
5331 ### If the CFLAGS env var is specified, we use that value
5332 ### instead of the default.
5334 ### It's not important that this name contain the PID; you can't run
5335 ### two configures in the same directory and have anything work
5337 tempcname="conftest.c"
5340 #include "'${srcdir}'/src/'${opsysfile}'"
5341 #include "'${srcdir}'/src/'${machfile}'"
5342 #ifndef LIBS_MACHINE
5343 #define LIBS_MACHINE
5348 #ifndef C_SWITCH_SYSTEM
5349 #define C_SWITCH_SYSTEM
5351 #ifndef C_SWITCH_MACHINE
5352 #define C_SWITCH_MACHINE
5354 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5355 configure___ c_switch_system=C_SWITCH_SYSTEM
5356 configure___ c_switch_machine=C_SWITCH_MACHINE
5359 #define LIB_X11_LIB -lX11
5362 #ifndef LIBX11_MACHINE
5363 #define LIBX11_MACHINE
5366 #ifndef LIBX11_SYSTEM
5367 #define LIBX11_SYSTEM
5369 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5372 configure___ unexec=UNEXEC
5374 configure___ unexec=unexec.o
5377 #ifdef SYSTEM_MALLOC
5378 configure___ system_malloc=yes
5380 configure___ system_malloc=no
5383 #ifdef USE_MMAP_FOR_BUFFERS
5384 configure___ use_mmap_for_buffers=yes
5386 configure___ use_mmap_for_buffers=no
5389 #ifndef C_DEBUG_SWITCH
5390 #define C_DEBUG_SWITCH -g
5393 #ifndef C_OPTIMIZE_SWITCH
5395 #define C_OPTIMIZE_SWITCH -O2
5397 #define C_OPTIMIZE_SWITCH -O
5401 #ifndef C_WARNINGS_SWITCH
5402 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5405 #ifndef LD_SWITCH_MACHINE
5406 #define LD_SWITCH_MACHINE
5409 #ifndef LD_SWITCH_SYSTEM
5410 #define LD_SWITCH_SYSTEM
5413 #ifndef LD_SWITCH_X_SITE_AUX
5414 #define LD_SWITCH_X_SITE_AUX
5417 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5418 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5420 #ifdef THIS_IS_CONFIGURE
5422 /* Get the CFLAGS for tests in configure. */
5424 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5426 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5429 #else /* not THIS_IS_CONFIGURE */
5431 /* Get the CFLAGS for real compilation. */
5433 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5435 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5438 #endif /* not THIS_IS_CONFIGURE */
5441 # The value of CPP is a quoted variable reference, so we need to do this
5442 # to get its actual value...
5443 CPP=`eval "echo $CPP"`
5444 eval `${CPP} -Isrc ${tempcname} \
5445 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5446 if test "x$SPECIFIED_CFLAGS" = x; then
5447 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5448 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5450 REAL_CFLAGS="$CFLAGS"
5454 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5456 ### Make sure subsequent tests use flags consistent with the build flags.
5458 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5459 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5461 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5466 # Check whether --enable-largefile was given.
5467 if test "${enable_largefile+set}" = set; then
5468 enableval=$enable_largefile;
5471 if test "$enable_largefile" != no; then
5473 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5474 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5475 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5476 echo $ECHO_N "(cached) $ECHO_C" >&6
5478 ac_cv_sys_largefile_CC=no
5479 if test "$GCC" != yes; then
5482 # IRIX 6.2 and later do not support large files by default,
5483 # so use the C compiler's -n32 option if that helps.
5484 cat >conftest.$ac_ext <<_ACEOF
5487 cat confdefs.h >>conftest.$ac_ext
5488 cat >>conftest.$ac_ext <<_ACEOF
5489 /* end confdefs.h. */
5490 #include <sys/types.h>
5491 /* Check that off_t can represent 2**63 - 1 correctly.
5492 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5493 since some C++ compilers masquerading as C compilers
5494 incorrectly reject 9223372036854775807. */
5495 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5496 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5497 && LARGE_OFF_T % 2147483647 == 1)
5507 rm -f conftest.$ac_objext
5508 if { (ac_try="$ac_compile"
5510 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5511 *) ac_try_echo
=$ac_try;;
5513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5514 (eval "$ac_compile") 2>conftest.er1
5516 grep -v '^ *+' conftest.er1
>conftest.err
5518 cat conftest.err
>&5
5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520 (exit $ac_status); } && {
5521 test -z "$ac_c_werror_flag" ||
5522 test ! -s conftest.err
5523 } && test -s conftest.
$ac_objext; then
5526 echo "$as_me: failed program was:" >&5
5527 sed 's/^/| /' conftest.
$ac_ext >&5
5532 rm -f core conftest.err conftest.
$ac_objext
5534 rm -f conftest.
$ac_objext
5535 if { (ac_try
="$ac_compile"
5537 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5538 *) ac_try_echo=$ac_try;;
5540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5541 (eval "$ac_compile") 2>conftest.er1
5543 grep -v '^ *+' conftest.er1 >conftest.err
5545 cat conftest.err >&5
5546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547 (exit $ac_status); } && {
5548 test -z "$ac_c_werror_flag" ||
5549 test ! -s conftest.err
5550 } && test -s conftest.$ac_objext; then
5551 ac_cv_sys_largefile_CC=' -n32'; break
5553 echo "$as_me: failed program was:" >&5
5554 sed 's/^/| /' conftest.$ac_ext >&5
5559 rm -f core conftest.err conftest.$ac_objext
5563 rm -f conftest.$ac_ext
5566 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5567 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5568 if test "$ac_cv_sys_largefile_CC" != no; then
5569 CC=$CC$ac_cv_sys_largefile_CC
5572 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5573 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5574 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5575 echo $ECHO_N "(cached) $ECHO_C" >&6
5578 cat >conftest.$ac_ext <<_ACEOF
5581 cat confdefs.h >>conftest.$ac_ext
5582 cat >>conftest.$ac_ext <<_ACEOF
5583 /* end confdefs.h. */
5584 #include <sys/types.h>
5585 /* Check that off_t can represent 2**63 - 1 correctly.
5586 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5587 since some C++ compilers masquerading as C compilers
5588 incorrectly reject 9223372036854775807. */
5589 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5590 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5591 && LARGE_OFF_T % 2147483647 == 1)
5601 rm -f conftest.$ac_objext
5602 if { (ac_try="$ac_compile"
5604 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5605 *) ac_try_echo
=$ac_try;;
5607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5608 (eval "$ac_compile") 2>conftest.er1
5610 grep -v '^ *+' conftest.er1
>conftest.err
5612 cat conftest.err
>&5
5613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614 (exit $ac_status); } && {
5615 test -z "$ac_c_werror_flag" ||
5616 test ! -s conftest.err
5617 } && test -s conftest.
$ac_objext; then
5618 ac_cv_sys_file_offset_bits
=no
; break
5620 echo "$as_me: failed program was:" >&5
5621 sed 's/^/| /' conftest.
$ac_ext >&5
5626 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5627 cat >conftest.
$ac_ext <<_ACEOF
5630 cat confdefs.h
>>conftest.
$ac_ext
5631 cat >>conftest.
$ac_ext <<_ACEOF
5632 /* end confdefs.h. */
5633 #define _FILE_OFFSET_BITS 64
5634 #include <sys/types.h>
5635 /* Check that off_t can represent 2**63 - 1 correctly.
5636 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5637 since some C++ compilers masquerading as C compilers
5638 incorrectly reject 9223372036854775807. */
5639 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5640 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5641 && LARGE_OFF_T % 2147483647 == 1)
5651 rm -f conftest.
$ac_objext
5652 if { (ac_try
="$ac_compile"
5654 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5655 *) ac_try_echo=$ac_try;;
5657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5658 (eval "$ac_compile") 2>conftest.er1
5660 grep -v '^ *+' conftest.er1 >conftest.err
5662 cat conftest.err >&5
5663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664 (exit $ac_status); } && {
5665 test -z "$ac_c_werror_flag" ||
5666 test ! -s conftest.err
5667 } && test -s conftest.$ac_objext; then
5668 ac_cv_sys_file_offset_bits=64; break
5670 echo "$as_me: failed program was:" >&5
5671 sed 's/^/| /' conftest.$ac_ext >&5
5676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5677 ac_cv_sys_file_offset_bits=unknown
5681 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5682 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5683 case $ac_cv_sys_file_offset_bits in #(
5686 cat >>confdefs.h <<_ACEOF
5687 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5692 if test $ac_cv_sys_file_offset_bits = unknown; then
5693 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5694 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5695 if test "${ac_cv_sys_large_files+set}" = set; then
5696 echo $ECHO_N "(cached) $ECHO_C" >&6
5699 cat >conftest.$ac_ext <<_ACEOF
5702 cat confdefs.h >>conftest.$ac_ext
5703 cat >>conftest.$ac_ext <<_ACEOF
5704 /* end confdefs.h. */
5705 #include <sys/types.h>
5706 /* Check that off_t can represent 2**63 - 1 correctly.
5707 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5708 since some C++ compilers masquerading as C compilers
5709 incorrectly reject 9223372036854775807. */
5710 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5711 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5712 && LARGE_OFF_T % 2147483647 == 1)
5722 rm -f conftest.$ac_objext
5723 if { (ac_try="$ac_compile"
5725 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5726 *) ac_try_echo
=$ac_try;;
5728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5729 (eval "$ac_compile") 2>conftest.er1
5731 grep -v '^ *+' conftest.er1
>conftest.err
5733 cat conftest.err
>&5
5734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735 (exit $ac_status); } && {
5736 test -z "$ac_c_werror_flag" ||
5737 test ! -s conftest.err
5738 } && test -s conftest.
$ac_objext; then
5739 ac_cv_sys_large_files
=no
; break
5741 echo "$as_me: failed program was:" >&5
5742 sed 's/^/| /' conftest.
$ac_ext >&5
5747 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5748 cat >conftest.
$ac_ext <<_ACEOF
5751 cat confdefs.h
>>conftest.
$ac_ext
5752 cat >>conftest.
$ac_ext <<_ACEOF
5753 /* end confdefs.h. */
5754 #define _LARGE_FILES 1
5755 #include <sys/types.h>
5756 /* Check that off_t can represent 2**63 - 1 correctly.
5757 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5758 since some C++ compilers masquerading as C compilers
5759 incorrectly reject 9223372036854775807. */
5760 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5761 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5762 && LARGE_OFF_T % 2147483647 == 1)
5772 rm -f conftest.
$ac_objext
5773 if { (ac_try
="$ac_compile"
5775 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5776 *) ac_try_echo=$ac_try;;
5778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5779 (eval "$ac_compile") 2>conftest.er1
5781 grep -v '^ *+' conftest.er1 >conftest.err
5783 cat conftest.err >&5
5784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785 (exit $ac_status); } && {
5786 test -z "$ac_c_werror_flag" ||
5787 test ! -s conftest.err
5788 } && test -s conftest.$ac_objext; then
5789 ac_cv_sys_large_files=1; break
5791 echo "$as_me: failed program was:" >&5
5792 sed 's/^/| /' conftest.$ac_ext >&5
5797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5798 ac_cv_sys_large_files=unknown
5802 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5803 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5804 case $ac_cv_sys_large_files in #(
5807 cat >>confdefs.h <<_ACEOF
5808 #define _LARGE_FILES $ac_cv_sys_large_files
5818 ### The standard library on x86-64 GNU/Linux distributions can
5819 ### be located in either /usr/lib64 or /usr/lib.
5820 case "${canonical}" in
5821 x86_64-*-linux-gnu* )
5822 if test -d /usr/lib64; then
5824 cat >>confdefs.h <<\_ACEOF
5825 #define HAVE_X86_64_LIB64_DIR 1
5834 if test "${with_sound}" != "no"; then
5835 # Sound support for GNU/Linux and the free BSDs.
5836 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5837 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5838 if test "${ac_cv_header_stdc+set}" = set; then
5839 echo $ECHO_N "(cached) $ECHO_C" >&6
5841 cat >conftest.$ac_ext <<_ACEOF
5844 cat confdefs.h >>conftest.$ac_ext
5845 cat >>conftest.$ac_ext <<_ACEOF
5846 /* end confdefs.h. */
5860 rm -f conftest.$ac_objext
5861 if { (ac_try="$ac_compile"
5863 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5864 *) ac_try_echo
=$ac_try;;
5866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5867 (eval "$ac_compile") 2>conftest.er1
5869 grep -v '^ *+' conftest.er1
>conftest.err
5871 cat conftest.err
>&5
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); } && {
5874 test -z "$ac_c_werror_flag" ||
5875 test ! -s conftest.err
5876 } && test -s conftest.
$ac_objext; then
5877 ac_cv_header_stdc
=yes
5879 echo "$as_me: failed program was:" >&5
5880 sed 's/^/| /' conftest.
$ac_ext >&5
5882 ac_cv_header_stdc
=no
5885 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5887 if test $ac_cv_header_stdc = yes; then
5888 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5889 cat >conftest.
$ac_ext <<_ACEOF
5892 cat confdefs.h
>>conftest.
$ac_ext
5893 cat >>conftest.
$ac_ext <<_ACEOF
5894 /* end confdefs.h. */
5898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5899 $EGREP "memchr" >/dev
/null
2>&1; then
5902 ac_cv_header_stdc
=no
5908 if test $ac_cv_header_stdc = yes; then
5909 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5910 cat >conftest.
$ac_ext <<_ACEOF
5913 cat confdefs.h
>>conftest.
$ac_ext
5914 cat >>conftest.
$ac_ext <<_ACEOF
5915 /* end confdefs.h. */
5919 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5920 $EGREP "free" >/dev
/null
2>&1; then
5923 ac_cv_header_stdc
=no
5929 if test $ac_cv_header_stdc = yes; then
5930 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5931 if test "$cross_compiling" = yes; then
5934 cat >conftest.
$ac_ext <<_ACEOF
5937 cat confdefs.h
>>conftest.
$ac_ext
5938 cat >>conftest.
$ac_ext <<_ACEOF
5939 /* end confdefs.h. */
5942 #if ((' ' & 0x0FF) == 0x020)
5943 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5944 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5946 # define ISLOWER(c) \
5947 (('a' <= (c) && (c) <= 'i') \
5948 || ('j' <= (c) && (c) <= 'r') \
5949 || ('s' <= (c) && (c) <= 'z'))
5950 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5953 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5958 for (i = 0; i < 256; i++)
5959 if (XOR (islower (i), ISLOWER (i))
5960 || toupper (i) != TOUPPER (i))
5965 rm -f conftest
$ac_exeext
5966 if { (ac_try
="$ac_link"
5968 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5969 *) ac_try_echo=$ac_try;;
5971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5972 (eval "$ac_link") 2>&5
5974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5976 { (case "(($ac_try" in
5977 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5978 *) ac_try_echo
=$ac_try;;
5980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5981 (eval "$ac_try") 2>&5
5983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984 (exit $ac_status); }; }; then
5987 echo "$as_me: program exited with status $ac_status" >&5
5988 echo "$as_me: failed program was:" >&5
5989 sed 's/^/| /' conftest.
$ac_ext >&5
5992 ac_cv_header_stdc
=no
5994 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6000 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6001 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6002 if test $ac_cv_header_stdc = yes; then
6004 cat >>confdefs.h
<<\_ACEOF
6005 #define STDC_HEADERS 1
6010 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6020 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6021 inttypes.h stdint.h unistd.h
6023 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6024 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6025 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6026 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6027 echo $ECHO_N "(cached) $ECHO_C" >&6
6029 cat >conftest.
$ac_ext <<_ACEOF
6032 cat confdefs.h
>>conftest.
$ac_ext
6033 cat >>conftest.
$ac_ext <<_ACEOF
6034 /* end confdefs.h. */
6035 $ac_includes_default
6037 #include <$ac_header>
6039 rm -f conftest.
$ac_objext
6040 if { (ac_try
="$ac_compile"
6042 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6043 *) ac_try_echo=$ac_try;;
6045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6046 (eval "$ac_compile") 2>conftest.er1
6048 grep -v '^ *+' conftest.er1 >conftest.err
6050 cat conftest.err >&5
6051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6052 (exit $ac_status); } && {
6053 test -z "$ac_c_werror_flag" ||
6054 test ! -s conftest.err
6055 } && test -s conftest.$ac_objext; then
6056 eval "$as_ac_Header=yes"
6058 echo "$as_me: failed program was:" >&5
6059 sed 's/^/| /' conftest.$ac_ext >&5
6061 eval "$as_ac_Header=no"
6064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6066 ac_res=`eval echo '${'$as_ac_Header'}'`
6067 { echo "$as_me:$LINENO: result: $ac_res" >&5
6068 echo "${ECHO_T}$ac_res" >&6; }
6069 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6070 cat >>confdefs.h <<_ACEOF
6071 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6082 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6084 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6085 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6086 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6087 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6088 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6089 echo $ECHO_N "(cached) $ECHO_C" >&6
6091 ac_res=`eval echo '${'$as_ac_Header'}'`
6092 { echo "$as_me:$LINENO: result: $ac_res" >&5
6093 echo "${ECHO_T}$ac_res" >&6; }
6095 # Is the header compilable?
6096 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6097 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6098 cat >conftest.$ac_ext <<_ACEOF
6101 cat confdefs.h >>conftest.$ac_ext
6102 cat >>conftest.$ac_ext <<_ACEOF
6103 /* end confdefs.h. */
6104 $ac_includes_default
6105 #include <$ac_header>
6107 rm -f conftest.$ac_objext
6108 if { (ac_try="$ac_compile"
6110 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6111 *) ac_try_echo
=$ac_try;;
6113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6114 (eval "$ac_compile") 2>conftest.er1
6116 grep -v '^ *+' conftest.er1
>conftest.err
6118 cat conftest.err
>&5
6119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120 (exit $ac_status); } && {
6121 test -z "$ac_c_werror_flag" ||
6122 test ! -s conftest.err
6123 } && test -s conftest.
$ac_objext; then
6124 ac_header_compiler
=yes
6126 echo "$as_me: failed program was:" >&5
6127 sed 's/^/| /' conftest.
$ac_ext >&5
6129 ac_header_compiler
=no
6132 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6133 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6134 echo "${ECHO_T}$ac_header_compiler" >&6; }
6136 # Is the header present?
6137 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6138 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6139 cat >conftest.
$ac_ext <<_ACEOF
6142 cat confdefs.h
>>conftest.
$ac_ext
6143 cat >>conftest.
$ac_ext <<_ACEOF
6144 /* end confdefs.h. */
6145 #include <$ac_header>
6147 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6149 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6150 *) ac_try_echo=$ac_try;;
6152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6153 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6155 grep -v '^ *+' conftest.er1 >conftest.err
6157 cat conftest.err >&5
6158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159 (exit $ac_status); } >/dev/null && {
6160 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6161 test ! -s conftest.err
6163 ac_header_preproc=yes
6165 echo "$as_me: failed program was:" >&5
6166 sed 's/^/| /' conftest.$ac_ext >&5
6168 ac_header_preproc=no
6171 rm -f conftest.err conftest.$ac_ext
6172 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6173 echo "${ECHO_T}$ac_header_preproc" >&6; }
6175 # So? What about this header?
6176 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6178 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6179 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6180 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6181 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6182 ac_header_preproc=yes
6185 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6186 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6187 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6188 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6189 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6190 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6191 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6192 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6193 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6194 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6195 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6196 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6200 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6201 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6202 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6203 echo $ECHO_N "(cached) $ECHO_C" >&6
6205 eval "$as_ac_Header=\$ac_header_preproc"
6207 ac_res=`eval echo '${'$as_ac_Header'}'`
6208 { echo "$as_me:$LINENO: result: $ac_res" >&5
6209 echo "${ECHO_T}$ac_res" >&6; }
6212 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6213 cat >>confdefs.h <<_ACEOF
6214 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6221 # Emulation library used on NetBSD.
6222 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6223 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6224 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6225 echo $ECHO_N "(cached) $ECHO_C" >&6
6227 ac_check_lib_save_LIBS=$LIBS
6228 LIBS="-lossaudio $LIBS"
6229 cat >conftest.$ac_ext <<_ACEOF
6232 cat confdefs.h >>conftest.$ac_ext
6233 cat >>conftest.$ac_ext <<_ACEOF
6234 /* end confdefs.h. */
6236 /* Override any GCC internal prototype to avoid an error.
6237 Use char because int might match the return type of a GCC
6238 builtin and then its argument prototype would still apply. */
6246 return _oss_ioctl ();
6251 rm -f conftest.$ac_objext conftest$ac_exeext
6252 if { (ac_try="$ac_link"
6254 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6255 *) ac_try_echo
=$ac_try;;
6257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6258 (eval "$ac_link") 2>conftest.er1
6260 grep -v '^ *+' conftest.er1
>conftest.err
6262 cat conftest.err
>&5
6263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264 (exit $ac_status); } && {
6265 test -z "$ac_c_werror_flag" ||
6266 test ! -s conftest.err
6267 } && test -s conftest
$ac_exeext &&
6268 $as_test_x conftest
$ac_exeext; then
6269 ac_cv_lib_ossaudio__oss_ioctl
=yes
6271 echo "$as_me: failed program was:" >&5
6272 sed 's/^/| /' conftest.
$ac_ext >&5
6274 ac_cv_lib_ossaudio__oss_ioctl
=no
6277 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6278 conftest
$ac_exeext conftest.
$ac_ext
6279 LIBS
=$ac_check_lib_save_LIBS
6281 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6282 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6283 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6292 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6293 if test "X${with_pkg_config_prog}" != X
; then
6294 PKG_CONFIG
="${with_pkg_config_prog}"
6299 if test -z "$PKG_CONFIG"; then
6300 # Extract the first word of "pkg-config", so it can be a program name with args.
6301 set dummy pkg-config
; ac_word
=$2
6302 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6304 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6305 echo $ECHO_N "(cached) $ECHO_C" >&6
6309 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6312 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6316 test -z "$as_dir" && as_dir
=.
6317 for ac_exec_ext
in '' $ac_executable_extensions; do
6318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6319 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6327 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6331 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6332 if test -n "$PKG_CONFIG"; then
6333 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6334 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6336 { echo "$as_me:$LINENO: result: no" >&5
6337 echo "${ECHO_T}no" >&6; }
6343 if test "$PKG_CONFIG" = "no" ; then
6346 PKG_CONFIG_MIN_VERSION
=0.9.0
6347 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6348 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6349 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6351 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6352 { echo "$as_me:$LINENO: result: yes" >&5
6353 echo "${ECHO_T}yes" >&6; }
6356 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6357 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6358 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"`
6359 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6360 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6362 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6363 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6364 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"`
6365 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6366 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6368 { echo "$as_me:$LINENO: result: no" >&5
6369 echo "${ECHO_T}no" >&6; }
6372 ## If we have a custom action on failure, don't print errors, but
6373 ## do set a variable so people can do so.
6374 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6381 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6382 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6386 if test $succeeded = yes; then
6392 if test $HAVE_ALSA = yes; then
6393 SAVE_CFLAGS
="$CFLAGS"
6394 SAVE_LDFLAGS
="$LDFLAGS"
6395 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6396 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6397 cat >conftest.
$ac_ext <<_ACEOF
6400 cat confdefs.h
>>conftest.
$ac_ext
6401 cat >>conftest.
$ac_ext <<_ACEOF
6402 /* end confdefs.h. */
6403 #include <asoundlib.h>
6407 snd_lib_error_set_handler (0);
6412 rm -f conftest.
$ac_objext
6413 if { (ac_try
="$ac_compile"
6415 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6416 *) ac_try_echo=$ac_try;;
6418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6419 (eval "$ac_compile") 2>conftest.er1
6421 grep -v '^ *+' conftest.er1 >conftest.err
6423 cat conftest.err >&5
6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425 (exit $ac_status); } && {
6426 test -z "$ac_c_werror_flag" ||
6427 test ! -s conftest.err
6428 } && test -s conftest.$ac_objext; then
6429 emacs_alsa_normal=yes
6431 echo "$as_me: failed program was:" >&5
6432 sed 's/^/| /' conftest.$ac_ext >&5
6434 emacs_alsa_normal=no
6437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6438 if test "$emacs_alsa_normal" != yes; then
6439 cat >conftest.$ac_ext <<_ACEOF
6442 cat confdefs.h >>conftest.$ac_ext
6443 cat >>conftest.$ac_ext <<_ACEOF
6444 /* end confdefs.h. */
6445 #include <alsa/asoundlib.h>
6449 snd_lib_error_set_handler (0);
6454 rm -f conftest.$ac_objext
6455 if { (ac_try="$ac_compile"
6457 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6458 *) ac_try_echo
=$ac_try;;
6460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6461 (eval "$ac_compile") 2>conftest.er1
6463 grep -v '^ *+' conftest.er1
>conftest.err
6465 cat conftest.err
>&5
6466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467 (exit $ac_status); } && {
6468 test -z "$ac_c_werror_flag" ||
6469 test ! -s conftest.err
6470 } && test -s conftest.
$ac_objext; then
6471 emacs_alsa_subdir
=yes
6473 echo "$as_me: failed program was:" >&5
6474 sed 's/^/| /' conftest.
$ac_ext >&5
6476 emacs_alsa_subdir
=no
6479 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6480 if test "$emacs_alsa_subdir" != yes; then
6481 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6482 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6483 { (exit 1); exit 1; }; }
6485 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6488 CFLAGS
="$SAVE_CFLAGS"
6489 LDFLAGS
="$SAVE_LDFLAGS"
6490 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6491 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6493 cat >>confdefs.h
<<\_ACEOF
6527 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6528 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6529 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6530 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6533 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6534 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6535 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6537 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6538 echo $ECHO_N "(cached) $ECHO_C" >&6
6540 ac_res
=`eval echo '${'$as_ac_Header'}'`
6541 { echo "$as_me:$LINENO: result: $ac_res" >&5
6542 echo "${ECHO_T}$ac_res" >&6; }
6544 # Is the header compilable?
6545 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6546 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6547 cat >conftest.
$ac_ext <<_ACEOF
6550 cat confdefs.h
>>conftest.
$ac_ext
6551 cat >>conftest.
$ac_ext <<_ACEOF
6552 /* end confdefs.h. */
6553 $ac_includes_default
6554 #include <$ac_header>
6556 rm -f conftest.
$ac_objext
6557 if { (ac_try
="$ac_compile"
6559 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6560 *) ac_try_echo=$ac_try;;
6562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6563 (eval "$ac_compile") 2>conftest.er1
6565 grep -v '^ *+' conftest.er1 >conftest.err
6567 cat conftest.err >&5
6568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569 (exit $ac_status); } && {
6570 test -z "$ac_c_werror_flag" ||
6571 test ! -s conftest.err
6572 } && test -s conftest.$ac_objext; then
6573 ac_header_compiler=yes
6575 echo "$as_me: failed program was:" >&5
6576 sed 's/^/| /' conftest.$ac_ext >&5
6578 ac_header_compiler=no
6581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6582 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6583 echo "${ECHO_T}$ac_header_compiler" >&6; }
6585 # Is the header present?
6586 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6587 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6588 cat >conftest.$ac_ext <<_ACEOF
6591 cat confdefs.h >>conftest.$ac_ext
6592 cat >>conftest.$ac_ext <<_ACEOF
6593 /* end confdefs.h. */
6594 #include <$ac_header>
6596 if { (ac_try="$ac_cpp conftest.$ac_ext"
6598 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6599 *) ac_try_echo
=$ac_try;;
6601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6602 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6604 grep -v '^ *+' conftest.er1
>conftest.err
6606 cat conftest.err
>&5
6607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608 (exit $ac_status); } >/dev
/null
&& {
6609 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6610 test ! -s conftest.err
6612 ac_header_preproc
=yes
6614 echo "$as_me: failed program was:" >&5
6615 sed 's/^/| /' conftest.
$ac_ext >&5
6617 ac_header_preproc
=no
6620 rm -f conftest.err conftest.
$ac_ext
6621 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6622 echo "${ECHO_T}$ac_header_preproc" >&6; }
6624 # So? What about this header?
6625 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6627 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6628 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6629 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6630 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6631 ac_header_preproc
=yes
6634 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6635 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6636 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6637 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6638 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6639 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6640 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6641 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6643 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6644 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6645 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6649 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6651 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6652 echo $ECHO_N "(cached) $ECHO_C" >&6
6654 eval "$as_ac_Header=\$ac_header_preproc"
6656 ac_res
=`eval echo '${'$as_ac_Header'}'`
6657 { echo "$as_me:$LINENO: result: $ac_res" >&5
6658 echo "${ECHO_T}$ac_res" >&6; }
6661 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6662 cat >>confdefs.h
<<_ACEOF
6663 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6671 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6672 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6673 cat >conftest.
$ac_ext <<_ACEOF
6676 cat confdefs.h
>>conftest.
$ac_ext
6677 cat >>conftest.
$ac_ext <<_ACEOF
6678 /* end confdefs.h. */
6679 #include <sys/personality.h>
6683 personality (PER_LINUX32)
6688 rm -f conftest.
$ac_objext
6689 if { (ac_try
="$ac_compile"
6691 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6692 *) ac_try_echo=$ac_try;;
6694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6695 (eval "$ac_compile") 2>conftest.er1
6697 grep -v '^ *+' conftest.er1 >conftest.err
6699 cat conftest.err >&5
6700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6701 (exit $ac_status); } && {
6702 test -z "$ac_c_werror_flag" ||
6703 test ! -s conftest.err
6704 } && test -s conftest.$ac_objext; then
6705 emacs_cv_personality_linux32=yes
6707 echo "$as_me: failed program was:" >&5
6708 sed 's/^/| /' conftest.$ac_ext >&5
6710 emacs_cv_personality_linux32=no
6713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6714 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6715 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6717 if test $emacs_cv_personality_linux32 = yes; then
6719 cat >>confdefs.h <<\_ACEOF
6720 #define HAVE_PERSONALITY_LINUX32 1
6726 for ac_header in term.h
6728 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6729 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6731 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6732 echo $ECHO_N "(cached) $ECHO_C" >&6
6734 cat >conftest.$ac_ext <<_ACEOF
6737 cat confdefs.h >>conftest.$ac_ext
6738 cat >>conftest.$ac_ext <<_ACEOF
6739 /* end confdefs.h. */
6740 #include <$ac_header>
6742 if { (ac_try="$ac_cpp conftest.$ac_ext"
6744 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6745 *) ac_try_echo
=$ac_try;;
6747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6748 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6750 grep -v '^ *+' conftest.er1
>conftest.err
6752 cat conftest.err
>&5
6753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754 (exit $ac_status); } >/dev
/null
&& {
6755 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6756 test ! -s conftest.err
6758 eval "$as_ac_Header=yes"
6760 echo "$as_me: failed program was:" >&5
6761 sed 's/^/| /' conftest.
$ac_ext >&5
6763 eval "$as_ac_Header=no"
6766 rm -f conftest.err conftest.
$ac_ext
6768 ac_res
=`eval echo '${'$as_ac_Header'}'`
6769 { echo "$as_me:$LINENO: result: $ac_res" >&5
6770 echo "${ECHO_T}$ac_res" >&6; }
6771 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6772 cat >>confdefs.h
<<_ACEOF
6773 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6780 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6781 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6782 if test "${ac_cv_header_stdc+set}" = set; then
6783 echo $ECHO_N "(cached) $ECHO_C" >&6
6785 cat >conftest.
$ac_ext <<_ACEOF
6788 cat confdefs.h
>>conftest.
$ac_ext
6789 cat >>conftest.
$ac_ext <<_ACEOF
6790 /* end confdefs.h. */
6804 rm -f conftest.
$ac_objext
6805 if { (ac_try
="$ac_compile"
6807 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6808 *) ac_try_echo=$ac_try;;
6810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6811 (eval "$ac_compile") 2>conftest.er1
6813 grep -v '^ *+' conftest.er1 >conftest.err
6815 cat conftest.err >&5
6816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6817 (exit $ac_status); } && {
6818 test -z "$ac_c_werror_flag" ||
6819 test ! -s conftest.err
6820 } && test -s conftest.$ac_objext; then
6821 ac_cv_header_stdc=yes
6823 echo "$as_me: failed program was:" >&5
6824 sed 's/^/| /' conftest.$ac_ext >&5
6826 ac_cv_header_stdc=no
6829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6831 if test $ac_cv_header_stdc = yes; then
6832 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6833 cat >conftest.$ac_ext <<_ACEOF
6836 cat confdefs.h >>conftest.$ac_ext
6837 cat >>conftest.$ac_ext <<_ACEOF
6838 /* end confdefs.h. */
6842 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6843 $EGREP "memchr" >/dev/null 2>&1; then
6846 ac_cv_header_stdc=no
6852 if test $ac_cv_header_stdc = yes; then
6853 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6854 cat >conftest.$ac_ext <<_ACEOF
6857 cat confdefs.h >>conftest.$ac_ext
6858 cat >>conftest.$ac_ext <<_ACEOF
6859 /* end confdefs.h. */
6863 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6864 $EGREP "free" >/dev/null 2>&1; then
6867 ac_cv_header_stdc=no
6873 if test $ac_cv_header_stdc = yes; then
6874 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6875 if test "$cross_compiling" = yes; then
6878 cat >conftest.$ac_ext <<_ACEOF
6881 cat confdefs.h >>conftest.$ac_ext
6882 cat >>conftest.$ac_ext <<_ACEOF
6883 /* end confdefs.h. */
6886 #if ((' ' & 0x0FF) == 0x020)
6887 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6888 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6890 # define ISLOWER(c) \
6891 (('a' <= (c) && (c) <= 'i') \
6892 || ('j' <= (c) && (c) <= 'r') \
6893 || ('s' <= (c) && (c) <= 'z'))
6894 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6897 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6902 for (i = 0; i < 256; i++)
6903 if (XOR (islower (i), ISLOWER (i))
6904 || toupper (i) != TOUPPER (i))
6909 rm -f conftest$ac_exeext
6910 if { (ac_try="$ac_link"
6912 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6913 *) ac_try_echo
=$ac_try;;
6915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6916 (eval "$ac_link") 2>&5
6918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6920 { (case "(($ac_try" in
6921 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6922 *) ac_try_echo=$ac_try;;
6924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6925 (eval "$ac_try") 2>&5
6927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6928 (exit $ac_status); }; }; then
6931 echo "$as_me: program exited with status $ac_status" >&5
6932 echo "$as_me: failed program was:" >&5
6933 sed 's/^/| /' conftest.$ac_ext >&5
6936 ac_cv_header_stdc=no
6938 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6944 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6945 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6946 if test $ac_cv_header_stdc = yes; then
6948 cat >>confdefs.h <<\_ACEOF
6949 #define STDC_HEADERS 1
6954 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6955 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6956 if test "${ac_cv_header_time+set}" = set; then
6957 echo $ECHO_N "(cached) $ECHO_C" >&6
6959 cat >conftest.$ac_ext <<_ACEOF
6962 cat confdefs.h >>conftest.$ac_ext
6963 cat >>conftest.$ac_ext <<_ACEOF
6964 /* end confdefs.h. */
6965 #include <sys/types.h>
6966 #include <sys/time.h>
6972 if ((struct tm *) 0)
6978 rm -f conftest.$ac_objext
6979 if { (ac_try="$ac_compile"
6981 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6982 *) ac_try_echo
=$ac_try;;
6984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6985 (eval "$ac_compile") 2>conftest.er1
6987 grep -v '^ *+' conftest.er1
>conftest.err
6989 cat conftest.err
>&5
6990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991 (exit $ac_status); } && {
6992 test -z "$ac_c_werror_flag" ||
6993 test ! -s conftest.err
6994 } && test -s conftest.
$ac_objext; then
6995 ac_cv_header_time
=yes
6997 echo "$as_me: failed program was:" >&5
6998 sed 's/^/| /' conftest.
$ac_ext >&5
7000 ac_cv_header_time
=no
7003 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7005 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7006 echo "${ECHO_T}$ac_cv_header_time" >&6; }
7007 if test $ac_cv_header_time = yes; then
7009 cat >>confdefs.h
<<\_ACEOF
7010 #define TIME_WITH_SYS_TIME 1
7015 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7016 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
7017 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7018 echo $ECHO_N "(cached) $ECHO_C" >&6
7020 cat >conftest.
$ac_ext <<_ACEOF
7023 cat confdefs.h
>>conftest.
$ac_ext
7024 cat >>conftest.
$ac_ext <<_ACEOF
7025 /* end confdefs.h. */
7026 $ac_includes_default
7038 rm -f conftest.
$ac_objext
7039 if { (ac_try
="$ac_compile"
7041 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7042 *) ac_try_echo=$ac_try;;
7044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7045 (eval "$ac_compile") 2>conftest.er1
7047 grep -v '^ *+' conftest.er1 >conftest.err
7049 cat conftest.err >&5
7050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7051 (exit $ac_status); } && {
7052 test -z "$ac_c_werror_flag" ||
7053 test ! -s conftest.err
7054 } && test -s conftest.$ac_objext; then
7055 ac_cv_have_decl_sys_siglist=yes
7057 echo "$as_me: failed program was:" >&5
7058 sed 's/^/| /' conftest.$ac_ext >&5
7060 ac_cv_have_decl_sys_siglist=no
7063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7065 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7066 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7067 if test $ac_cv_have_decl_sys_siglist = yes; then
7069 cat >>confdefs.h <<_ACEOF
7070 #define HAVE_DECL_SYS_SIGLIST 1
7075 cat >>confdefs.h <<_ACEOF
7076 #define HAVE_DECL_SYS_SIGLIST 0
7083 if test $ac_cv_have_decl_sys_siglist != yes; then
7084 # For Tru64, at least:
7085 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7086 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7087 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7088 echo $ECHO_N "(cached) $ECHO_C" >&6
7090 cat >conftest.$ac_ext <<_ACEOF
7093 cat confdefs.h >>conftest.$ac_ext
7094 cat >>conftest.$ac_ext <<_ACEOF
7095 /* end confdefs.h. */
7096 $ac_includes_default
7100 #ifndef __sys_siglist
7101 (void) __sys_siglist;
7108 rm -f conftest.$ac_objext
7109 if { (ac_try="$ac_compile"
7111 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7112 *) ac_try_echo
=$ac_try;;
7114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7115 (eval "$ac_compile") 2>conftest.er1
7117 grep -v '^ *+' conftest.er1
>conftest.err
7119 cat conftest.err
>&5
7120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121 (exit $ac_status); } && {
7122 test -z "$ac_c_werror_flag" ||
7123 test ! -s conftest.err
7124 } && test -s conftest.
$ac_objext; then
7125 ac_cv_have_decl___sys_siglist
=yes
7127 echo "$as_me: failed program was:" >&5
7128 sed 's/^/| /' conftest.
$ac_ext >&5
7130 ac_cv_have_decl___sys_siglist
=no
7133 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7135 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7136 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7137 if test $ac_cv_have_decl___sys_siglist = yes; then
7139 cat >>confdefs.h
<<_ACEOF
7140 #define HAVE_DECL___SYS_SIGLIST 1
7145 cat >>confdefs.h
<<_ACEOF
7146 #define HAVE_DECL___SYS_SIGLIST 0
7153 if test $ac_cv_have_decl___sys_siglist = yes; then
7155 cat >>confdefs.h
<<\_ACEOF
7156 #define sys_siglist __sys_siglist
7161 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7162 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7163 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7164 echo $ECHO_N "(cached) $ECHO_C" >&6
7166 cat >conftest.
$ac_ext <<_ACEOF
7169 cat confdefs.h
>>conftest.
$ac_ext
7170 cat >>conftest.
$ac_ext <<_ACEOF
7171 /* end confdefs.h. */
7172 #include <sys/types.h>
7173 #include <sys/wait.h>
7175 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7178 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7186 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7191 rm -f conftest.
$ac_objext
7192 if { (ac_try
="$ac_compile"
7194 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7195 *) ac_try_echo=$ac_try;;
7197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7198 (eval "$ac_compile") 2>conftest.er1
7200 grep -v '^ *+' conftest.er1 >conftest.err
7202 cat conftest.err >&5
7203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204 (exit $ac_status); } && {
7205 test -z "$ac_c_werror_flag" ||
7206 test ! -s conftest.err
7207 } && test -s conftest.$ac_objext; then
7208 ac_cv_header_sys_wait_h=yes
7210 echo "$as_me: failed program was:" >&5
7211 sed 's/^/| /' conftest.$ac_ext >&5
7213 ac_cv_header_sys_wait_h=no
7216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7218 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7219 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7220 if test $ac_cv_header_sys_wait_h = yes; then
7222 cat >>confdefs.h <<\_ACEOF
7223 #define HAVE_SYS_WAIT_H 1
7229 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7230 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7231 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7232 echo $ECHO_N "(cached) $ECHO_C" >&6
7234 cat >conftest.$ac_ext <<_ACEOF
7237 cat confdefs.h >>conftest.$ac_ext
7238 cat >>conftest.$ac_ext <<_ACEOF
7239 /* end confdefs.h. */
7240 #ifdef TIME_WITH_SYS_TIME
7241 #include <sys/time.h>
7244 #ifdef HAVE_SYS_TIME_H
7245 #include <sys/time.h>
7256 static struct utimbuf x; x.actime = x.modtime;
7261 rm -f conftest.$ac_objext
7262 if { (ac_try="$ac_compile"
7264 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7265 *) ac_try_echo
=$ac_try;;
7267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7268 (eval "$ac_compile") 2>conftest.er1
7270 grep -v '^ *+' conftest.er1
>conftest.err
7272 cat conftest.err
>&5
7273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7274 (exit $ac_status); } && {
7275 test -z "$ac_c_werror_flag" ||
7276 test ! -s conftest.err
7277 } && test -s conftest.
$ac_objext; then
7278 emacs_cv_struct_utimbuf
=yes
7280 echo "$as_me: failed program was:" >&5
7281 sed 's/^/| /' conftest.
$ac_ext >&5
7283 emacs_cv_struct_utimbuf
=no
7286 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7288 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7289 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7290 if test $emacs_cv_struct_utimbuf = yes; then
7292 cat >>confdefs.h
<<\_ACEOF
7293 #define HAVE_STRUCT_UTIMBUF 1
7298 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7299 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7300 if test "${ac_cv_type_signal+set}" = set; then
7301 echo $ECHO_N "(cached) $ECHO_C" >&6
7303 cat >conftest.
$ac_ext <<_ACEOF
7306 cat confdefs.h
>>conftest.
$ac_ext
7307 cat >>conftest.
$ac_ext <<_ACEOF
7308 /* end confdefs.h. */
7309 #include <sys/types.h>
7315 return *(signal (0, 0)) (0) == 1;
7320 rm -f conftest.
$ac_objext
7321 if { (ac_try
="$ac_compile"
7323 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7324 *) ac_try_echo=$ac_try;;
7326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7327 (eval "$ac_compile") 2>conftest.er1
7329 grep -v '^ *+' conftest.er1 >conftest.err
7331 cat conftest.err >&5
7332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7333 (exit $ac_status); } && {
7334 test -z "$ac_c_werror_flag" ||
7335 test ! -s conftest.err
7336 } && test -s conftest.$ac_objext; then
7337 ac_cv_type_signal=int
7339 echo "$as_me: failed program was:" >&5
7340 sed 's/^/| /' conftest.$ac_ext >&5
7342 ac_cv_type_signal=void
7345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7347 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7348 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7350 cat >>confdefs.h <<_ACEOF
7351 #define RETSIGTYPE $ac_cv_type_signal
7356 { echo "$as_me:$LINENO: checking for speed_t" >&5
7357 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7358 if test "${emacs_cv_speed_t+set}" = set; then
7359 echo $ECHO_N "(cached) $ECHO_C" >&6
7361 cat >conftest.$ac_ext <<_ACEOF
7364 cat confdefs.h >>conftest.$ac_ext
7365 cat >>conftest.$ac_ext <<_ACEOF
7366 /* end confdefs.h. */
7367 #include <termios.h>
7376 rm -f conftest.$ac_objext
7377 if { (ac_try="$ac_compile"
7379 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7380 *) ac_try_echo
=$ac_try;;
7382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7383 (eval "$ac_compile") 2>conftest.er1
7385 grep -v '^ *+' conftest.er1
>conftest.err
7387 cat conftest.err
>&5
7388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389 (exit $ac_status); } && {
7390 test -z "$ac_c_werror_flag" ||
7391 test ! -s conftest.err
7392 } && test -s conftest.
$ac_objext; then
7393 emacs_cv_speed_t
=yes
7395 echo "$as_me: failed program was:" >&5
7396 sed 's/^/| /' conftest.
$ac_ext >&5
7401 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7403 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7404 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7405 if test $emacs_cv_speed_t = yes; then
7407 cat >>confdefs.h
<<\_ACEOF
7408 #define HAVE_SPEED_T 1
7413 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7414 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7415 if test "${emacs_cv_struct_timeval+set}" = set; then
7416 echo $ECHO_N "(cached) $ECHO_C" >&6
7418 cat >conftest.
$ac_ext <<_ACEOF
7421 cat confdefs.h
>>conftest.
$ac_ext
7422 cat >>conftest.
$ac_ext <<_ACEOF
7423 /* end confdefs.h. */
7424 #ifdef TIME_WITH_SYS_TIME
7425 #include <sys/time.h>
7428 #ifdef HAVE_SYS_TIME_H
7429 #include <sys/time.h>
7437 static struct timeval x; x.tv_sec = x.tv_usec;
7442 rm -f conftest.
$ac_objext
7443 if { (ac_try
="$ac_compile"
7445 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7446 *) ac_try_echo=$ac_try;;
7448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7449 (eval "$ac_compile") 2>conftest.er1
7451 grep -v '^ *+' conftest.er1 >conftest.err
7453 cat conftest.err >&5
7454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455 (exit $ac_status); } && {
7456 test -z "$ac_c_werror_flag" ||
7457 test ! -s conftest.err
7458 } && test -s conftest.$ac_objext; then
7459 emacs_cv_struct_timeval=yes
7461 echo "$as_me: failed program was:" >&5
7462 sed 's/^/| /' conftest.$ac_ext >&5
7464 emacs_cv_struct_timeval=no
7467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7469 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7470 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7471 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7472 if test $emacs_cv_struct_timeval = yes; then
7474 cat >>confdefs.h <<\_ACEOF
7475 #define HAVE_TIMEVAL 1
7480 { echo "$as_me:$LINENO: checking for struct exception" >&5
7481 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7482 if test "${emacs_cv_struct_exception+set}" = set; then
7483 echo $ECHO_N "(cached) $ECHO_C" >&6
7485 cat >conftest.$ac_ext <<_ACEOF
7488 cat confdefs.h >>conftest.$ac_ext
7489 cat >>conftest.$ac_ext <<_ACEOF
7490 /* end confdefs.h. */
7495 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7500 rm -f conftest.$ac_objext
7501 if { (ac_try="$ac_compile"
7503 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7504 *) ac_try_echo
=$ac_try;;
7506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7507 (eval "$ac_compile") 2>conftest.er1
7509 grep -v '^ *+' conftest.er1
>conftest.err
7511 cat conftest.err
>&5
7512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513 (exit $ac_status); } && {
7514 test -z "$ac_c_werror_flag" ||
7515 test ! -s conftest.err
7516 } && test -s conftest.
$ac_objext; then
7517 emacs_cv_struct_exception
=yes
7519 echo "$as_me: failed program was:" >&5
7520 sed 's/^/| /' conftest.
$ac_ext >&5
7522 emacs_cv_struct_exception
=no
7525 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7527 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7528 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7529 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7530 if test $emacs_cv_struct_exception != yes; then
7532 cat >>confdefs.h
<<\_ACEOF
7533 #define NO_MATHERR 1
7539 for ac_header
in sys
/socket.h
7541 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7542 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7543 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7545 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7546 echo $ECHO_N "(cached) $ECHO_C" >&6
7548 ac_res
=`eval echo '${'$as_ac_Header'}'`
7549 { echo "$as_me:$LINENO: result: $ac_res" >&5
7550 echo "${ECHO_T}$ac_res" >&6; }
7552 # Is the header compilable?
7553 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7554 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7555 cat >conftest.
$ac_ext <<_ACEOF
7558 cat confdefs.h
>>conftest.
$ac_ext
7559 cat >>conftest.
$ac_ext <<_ACEOF
7560 /* end confdefs.h. */
7561 $ac_includes_default
7562 #include <$ac_header>
7564 rm -f conftest.
$ac_objext
7565 if { (ac_try
="$ac_compile"
7567 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7568 *) ac_try_echo=$ac_try;;
7570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7571 (eval "$ac_compile") 2>conftest.er1
7573 grep -v '^ *+' conftest.er1 >conftest.err
7575 cat conftest.err >&5
7576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7577 (exit $ac_status); } && {
7578 test -z "$ac_c_werror_flag" ||
7579 test ! -s conftest.err
7580 } && test -s conftest.$ac_objext; then
7581 ac_header_compiler=yes
7583 echo "$as_me: failed program was:" >&5
7584 sed 's/^/| /' conftest.$ac_ext >&5
7586 ac_header_compiler=no
7589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7590 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7591 echo "${ECHO_T}$ac_header_compiler" >&6; }
7593 # Is the header present?
7594 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7595 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7596 cat >conftest.$ac_ext <<_ACEOF
7599 cat confdefs.h >>conftest.$ac_ext
7600 cat >>conftest.$ac_ext <<_ACEOF
7601 /* end confdefs.h. */
7602 #include <$ac_header>
7604 if { (ac_try="$ac_cpp conftest.$ac_ext"
7606 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7607 *) ac_try_echo
=$ac_try;;
7609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7610 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7612 grep -v '^ *+' conftest.er1
>conftest.err
7614 cat conftest.err
>&5
7615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7616 (exit $ac_status); } >/dev
/null
&& {
7617 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7618 test ! -s conftest.err
7620 ac_header_preproc
=yes
7622 echo "$as_me: failed program was:" >&5
7623 sed 's/^/| /' conftest.
$ac_ext >&5
7625 ac_header_preproc
=no
7628 rm -f conftest.err conftest.
$ac_ext
7629 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7630 echo "${ECHO_T}$ac_header_preproc" >&6; }
7632 # So? What about this header?
7633 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7635 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7636 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7637 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7638 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7639 ac_header_preproc
=yes
7642 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7643 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7644 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7645 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7646 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7647 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7648 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7649 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7650 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7651 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7652 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7653 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7657 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7658 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7659 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7660 echo $ECHO_N "(cached) $ECHO_C" >&6
7662 eval "$as_ac_Header=\$ac_header_preproc"
7664 ac_res
=`eval echo '${'$as_ac_Header'}'`
7665 { echo "$as_me:$LINENO: result: $ac_res" >&5
7666 echo "${ECHO_T}$ac_res" >&6; }
7669 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7670 cat >>confdefs.h
<<_ACEOF
7671 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7679 for ac_header
in net
/if.h
7681 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7682 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7683 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7684 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7685 echo $ECHO_N "(cached) $ECHO_C" >&6
7687 cat >conftest.
$ac_ext <<_ACEOF
7690 cat confdefs.h
>>conftest.
$ac_ext
7691 cat >>conftest.
$ac_ext <<_ACEOF
7692 /* end confdefs.h. */
7693 $ac_includes_default
7694 #if HAVE_SYS_SOCKET_H
7695 #include <sys/socket.h>
7698 #include <$ac_header>
7700 rm -f conftest.
$ac_objext
7701 if { (ac_try
="$ac_compile"
7703 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7704 *) ac_try_echo=$ac_try;;
7706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7707 (eval "$ac_compile") 2>conftest.er1
7709 grep -v '^ *+' conftest.er1 >conftest.err
7711 cat conftest.err >&5
7712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713 (exit $ac_status); } && {
7714 test -z "$ac_c_werror_flag" ||
7715 test ! -s conftest.err
7716 } && test -s conftest.$ac_objext; then
7717 eval "$as_ac_Header=yes"
7719 echo "$as_me: failed program was:" >&5
7720 sed 's/^/| /' conftest.$ac_ext >&5
7722 eval "$as_ac_Header=no"
7725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7727 ac_res=`eval echo '${'$as_ac_Header'}'`
7728 { echo "$as_me:$LINENO: result: $ac_res" >&5
7729 echo "${ECHO_T}$ac_res" >&6; }
7730 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7731 cat >>confdefs.h <<_ACEOF
7732 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7740 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7741 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7742 if test "${ac_cv_struct_tm+set}" = set; then
7743 echo $ECHO_N "(cached) $ECHO_C" >&6
7745 cat >conftest.$ac_ext <<_ACEOF
7748 cat confdefs.h >>conftest.$ac_ext
7749 cat >>conftest.$ac_ext <<_ACEOF
7750 /* end confdefs.h. */
7751 #include <sys/types.h>
7758 int *p = &tm.tm_sec;
7764 rm -f conftest.$ac_objext
7765 if { (ac_try="$ac_compile"
7767 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7768 *) ac_try_echo
=$ac_try;;
7770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7771 (eval "$ac_compile") 2>conftest.er1
7773 grep -v '^ *+' conftest.er1
>conftest.err
7775 cat conftest.err
>&5
7776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7777 (exit $ac_status); } && {
7778 test -z "$ac_c_werror_flag" ||
7779 test ! -s conftest.err
7780 } && test -s conftest.
$ac_objext; then
7781 ac_cv_struct_tm
=time.h
7783 echo "$as_me: failed program was:" >&5
7784 sed 's/^/| /' conftest.
$ac_ext >&5
7786 ac_cv_struct_tm
=sys
/time.h
7789 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7791 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7792 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7793 if test $ac_cv_struct_tm = sys
/time.h
; then
7795 cat >>confdefs.h
<<\_ACEOF
7796 #define TM_IN_SYS_TIME 1
7801 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7802 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7803 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7804 echo $ECHO_N "(cached) $ECHO_C" >&6
7806 cat >conftest.
$ac_ext <<_ACEOF
7809 cat confdefs.h
>>conftest.
$ac_ext
7810 cat >>conftest.
$ac_ext <<_ACEOF
7811 /* end confdefs.h. */
7812 #include <sys/types.h>
7813 #include <$ac_cv_struct_tm>
7819 static struct tm ac_aggr;
7820 if (ac_aggr.tm_zone)
7826 rm -f conftest.
$ac_objext
7827 if { (ac_try
="$ac_compile"
7829 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7830 *) ac_try_echo=$ac_try;;
7832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7833 (eval "$ac_compile") 2>conftest.er1
7835 grep -v '^ *+' conftest.er1 >conftest.err
7837 cat conftest.err >&5
7838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839 (exit $ac_status); } && {
7840 test -z "$ac_c_werror_flag" ||
7841 test ! -s conftest.err
7842 } && test -s conftest.$ac_objext; then
7843 ac_cv_member_struct_tm_tm_zone=yes
7845 echo "$as_me: failed program was:" >&5
7846 sed 's/^/| /' conftest.$ac_ext >&5
7848 cat >conftest.$ac_ext <<_ACEOF
7851 cat confdefs.h >>conftest.$ac_ext
7852 cat >>conftest.$ac_ext <<_ACEOF
7853 /* end confdefs.h. */
7854 #include <sys/types.h>
7855 #include <$ac_cv_struct_tm>
7861 static struct tm ac_aggr;
7862 if (sizeof ac_aggr.tm_zone)
7868 rm -f conftest.$ac_objext
7869 if { (ac_try="$ac_compile"
7871 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7872 *) ac_try_echo
=$ac_try;;
7874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7875 (eval "$ac_compile") 2>conftest.er1
7877 grep -v '^ *+' conftest.er1
>conftest.err
7879 cat conftest.err
>&5
7880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881 (exit $ac_status); } && {
7882 test -z "$ac_c_werror_flag" ||
7883 test ! -s conftest.err
7884 } && test -s conftest.
$ac_objext; then
7885 ac_cv_member_struct_tm_tm_zone
=yes
7887 echo "$as_me: failed program was:" >&5
7888 sed 's/^/| /' conftest.
$ac_ext >&5
7890 ac_cv_member_struct_tm_tm_zone
=no
7893 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7896 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7898 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7899 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7900 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7902 cat >>confdefs.h
<<_ACEOF
7903 #define HAVE_STRUCT_TM_TM_ZONE 1
7909 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7911 cat >>confdefs.h
<<\_ACEOF
7912 #define HAVE_TM_ZONE 1
7916 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7917 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7918 if test "${ac_cv_have_decl_tzname+set}" = set; then
7919 echo $ECHO_N "(cached) $ECHO_C" >&6
7921 cat >conftest.
$ac_ext <<_ACEOF
7924 cat confdefs.h
>>conftest.
$ac_ext
7925 cat >>conftest.
$ac_ext <<_ACEOF
7926 /* end confdefs.h. */
7940 rm -f conftest.
$ac_objext
7941 if { (ac_try
="$ac_compile"
7943 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7944 *) ac_try_echo=$ac_try;;
7946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7947 (eval "$ac_compile") 2>conftest.er1
7949 grep -v '^ *+' conftest.er1 >conftest.err
7951 cat conftest.err >&5
7952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7953 (exit $ac_status); } && {
7954 test -z "$ac_c_werror_flag" ||
7955 test ! -s conftest.err
7956 } && test -s conftest.$ac_objext; then
7957 ac_cv_have_decl_tzname=yes
7959 echo "$as_me: failed program was:" >&5
7960 sed 's/^/| /' conftest.$ac_ext >&5
7962 ac_cv_have_decl_tzname=no
7965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7967 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7968 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7969 if test $ac_cv_have_decl_tzname = yes; then
7971 cat >>confdefs.h <<_ACEOF
7972 #define HAVE_DECL_TZNAME 1
7977 cat >>confdefs.h <<_ACEOF
7978 #define HAVE_DECL_TZNAME 0
7985 { echo "$as_me:$LINENO: checking for tzname" >&5
7986 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7987 if test "${ac_cv_var_tzname+set}" = set; then
7988 echo $ECHO_N "(cached) $ECHO_C" >&6
7990 cat >conftest.$ac_ext <<_ACEOF
7993 cat confdefs.h >>conftest.$ac_ext
7994 cat >>conftest.$ac_ext <<_ACEOF
7995 /* end confdefs.h. */
7997 #if !HAVE_DECL_TZNAME
7998 extern char *tzname[];
8004 return tzname[0][0];
8009 rm -f conftest.$ac_objext conftest$ac_exeext
8010 if { (ac_try="$ac_link"
8012 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8013 *) ac_try_echo
=$ac_try;;
8015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8016 (eval "$ac_link") 2>conftest.er1
8018 grep -v '^ *+' conftest.er1
>conftest.err
8020 cat conftest.err
>&5
8021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8022 (exit $ac_status); } && {
8023 test -z "$ac_c_werror_flag" ||
8024 test ! -s conftest.err
8025 } && test -s conftest
$ac_exeext &&
8026 $as_test_x conftest
$ac_exeext; then
8027 ac_cv_var_tzname
=yes
8029 echo "$as_me: failed program was:" >&5
8030 sed 's/^/| /' conftest.
$ac_ext >&5
8035 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8036 conftest
$ac_exeext conftest.
$ac_ext
8038 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8039 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
8040 if test $ac_cv_var_tzname = yes; then
8042 cat >>confdefs.h
<<\_ACEOF
8043 #define HAVE_TZNAME 1
8049 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8050 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
8051 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8052 echo $ECHO_N "(cached) $ECHO_C" >&6
8054 cat >conftest.
$ac_ext <<_ACEOF
8057 cat confdefs.h
>>conftest.
$ac_ext
8058 cat >>conftest.
$ac_ext <<_ACEOF
8059 /* end confdefs.h. */
8065 static struct tm ac_aggr;
8066 if (ac_aggr.tm_gmtoff)
8072 rm -f conftest.
$ac_objext
8073 if { (ac_try
="$ac_compile"
8075 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8076 *) ac_try_echo=$ac_try;;
8078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8079 (eval "$ac_compile") 2>conftest.er1
8081 grep -v '^ *+' conftest.er1 >conftest.err
8083 cat conftest.err >&5
8084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085 (exit $ac_status); } && {
8086 test -z "$ac_c_werror_flag" ||
8087 test ! -s conftest.err
8088 } && test -s conftest.$ac_objext; then
8089 ac_cv_member_struct_tm_tm_gmtoff=yes
8091 echo "$as_me: failed program was:" >&5
8092 sed 's/^/| /' conftest.$ac_ext >&5
8094 cat >conftest.$ac_ext <<_ACEOF
8097 cat confdefs.h >>conftest.$ac_ext
8098 cat >>conftest.$ac_ext <<_ACEOF
8099 /* end confdefs.h. */
8105 static struct tm ac_aggr;
8106 if (sizeof ac_aggr.tm_gmtoff)
8112 rm -f conftest.$ac_objext
8113 if { (ac_try="$ac_compile"
8115 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8116 *) ac_try_echo
=$ac_try;;
8118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8119 (eval "$ac_compile") 2>conftest.er1
8121 grep -v '^ *+' conftest.er1
>conftest.err
8123 cat conftest.err
>&5
8124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8125 (exit $ac_status); } && {
8126 test -z "$ac_c_werror_flag" ||
8127 test ! -s conftest.err
8128 } && test -s conftest.
$ac_objext; then
8129 ac_cv_member_struct_tm_tm_gmtoff
=yes
8131 echo "$as_me: failed program was:" >&5
8132 sed 's/^/| /' conftest.
$ac_ext >&5
8134 ac_cv_member_struct_tm_tm_gmtoff
=no
8137 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8140 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8142 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8143 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8144 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8146 cat >>confdefs.h
<<\_ACEOF
8147 #define HAVE_TM_GMTOFF 1
8152 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8153 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8154 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8155 echo $ECHO_N "(cached) $ECHO_C" >&6
8157 cat >conftest.
$ac_ext <<_ACEOF
8160 cat confdefs.h
>>conftest.
$ac_ext
8161 cat >>conftest.
$ac_ext <<_ACEOF
8162 /* end confdefs.h. */
8163 $ac_includes_default
8164 #if HAVE_SYS_SOCKET_H
8165 #include <sys/socket.h>
8174 static struct ifreq ac_aggr;
8175 if (ac_aggr.ifr_flags)
8181 rm -f conftest.
$ac_objext
8182 if { (ac_try
="$ac_compile"
8184 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8185 *) ac_try_echo=$ac_try;;
8187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8188 (eval "$ac_compile") 2>conftest.er1
8190 grep -v '^ *+' conftest.er1 >conftest.err
8192 cat conftest.err >&5
8193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8194 (exit $ac_status); } && {
8195 test -z "$ac_c_werror_flag" ||
8196 test ! -s conftest.err
8197 } && test -s conftest.$ac_objext; then
8198 ac_cv_member_struct_ifreq_ifr_flags=yes
8200 echo "$as_me: failed program was:" >&5
8201 sed 's/^/| /' conftest.$ac_ext >&5
8203 cat >conftest.$ac_ext <<_ACEOF
8206 cat confdefs.h >>conftest.$ac_ext
8207 cat >>conftest.$ac_ext <<_ACEOF
8208 /* end confdefs.h. */
8209 $ac_includes_default
8210 #if HAVE_SYS_SOCKET_H
8211 #include <sys/socket.h>
8220 static struct ifreq ac_aggr;
8221 if (sizeof ac_aggr.ifr_flags)
8227 rm -f conftest.$ac_objext
8228 if { (ac_try="$ac_compile"
8230 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8231 *) ac_try_echo
=$ac_try;;
8233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8234 (eval "$ac_compile") 2>conftest.er1
8236 grep -v '^ *+' conftest.er1
>conftest.err
8238 cat conftest.err
>&5
8239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8240 (exit $ac_status); } && {
8241 test -z "$ac_c_werror_flag" ||
8242 test ! -s conftest.err
8243 } && test -s conftest.
$ac_objext; then
8244 ac_cv_member_struct_ifreq_ifr_flags
=yes
8246 echo "$as_me: failed program was:" >&5
8247 sed 's/^/| /' conftest.
$ac_ext >&5
8249 ac_cv_member_struct_ifreq_ifr_flags
=no
8252 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8255 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8257 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8258 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8259 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8261 cat >>confdefs.h
<<_ACEOF
8262 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8267 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8268 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8269 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8270 echo $ECHO_N "(cached) $ECHO_C" >&6
8272 cat >conftest.
$ac_ext <<_ACEOF
8275 cat confdefs.h
>>conftest.
$ac_ext
8276 cat >>conftest.
$ac_ext <<_ACEOF
8277 /* end confdefs.h. */
8278 $ac_includes_default
8279 #if HAVE_SYS_SOCKET_H
8280 #include <sys/socket.h>
8289 static struct ifreq ac_aggr;
8290 if (ac_aggr.ifr_hwaddr)
8296 rm -f conftest.
$ac_objext
8297 if { (ac_try
="$ac_compile"
8299 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8300 *) ac_try_echo=$ac_try;;
8302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8303 (eval "$ac_compile") 2>conftest.er1
8305 grep -v '^ *+' conftest.er1 >conftest.err
8307 cat conftest.err >&5
8308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309 (exit $ac_status); } && {
8310 test -z "$ac_c_werror_flag" ||
8311 test ! -s conftest.err
8312 } && test -s conftest.$ac_objext; then
8313 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8315 echo "$as_me: failed program was:" >&5
8316 sed 's/^/| /' conftest.$ac_ext >&5
8318 cat >conftest.$ac_ext <<_ACEOF
8321 cat confdefs.h >>conftest.$ac_ext
8322 cat >>conftest.$ac_ext <<_ACEOF
8323 /* end confdefs.h. */
8324 $ac_includes_default
8325 #if HAVE_SYS_SOCKET_H
8326 #include <sys/socket.h>
8335 static struct ifreq ac_aggr;
8336 if (sizeof ac_aggr.ifr_hwaddr)
8342 rm -f conftest.$ac_objext
8343 if { (ac_try="$ac_compile"
8345 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8346 *) ac_try_echo
=$ac_try;;
8348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8349 (eval "$ac_compile") 2>conftest.er1
8351 grep -v '^ *+' conftest.er1
>conftest.err
8353 cat conftest.err
>&5
8354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355 (exit $ac_status); } && {
8356 test -z "$ac_c_werror_flag" ||
8357 test ! -s conftest.err
8358 } && test -s conftest.
$ac_objext; then
8359 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8361 echo "$as_me: failed program was:" >&5
8362 sed 's/^/| /' conftest.
$ac_ext >&5
8364 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8367 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8370 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8372 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8373 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8374 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8376 cat >>confdefs.h
<<_ACEOF
8377 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8382 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8383 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8384 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8385 echo $ECHO_N "(cached) $ECHO_C" >&6
8387 cat >conftest.
$ac_ext <<_ACEOF
8390 cat confdefs.h
>>conftest.
$ac_ext
8391 cat >>conftest.
$ac_ext <<_ACEOF
8392 /* end confdefs.h. */
8393 $ac_includes_default
8394 #if HAVE_SYS_SOCKET_H
8395 #include <sys/socket.h>
8404 static struct ifreq ac_aggr;
8405 if (ac_aggr.ifr_netmask)
8411 rm -f conftest.
$ac_objext
8412 if { (ac_try
="$ac_compile"
8414 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8415 *) ac_try_echo=$ac_try;;
8417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8418 (eval "$ac_compile") 2>conftest.er1
8420 grep -v '^ *+' conftest.er1 >conftest.err
8422 cat conftest.err >&5
8423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424 (exit $ac_status); } && {
8425 test -z "$ac_c_werror_flag" ||
8426 test ! -s conftest.err
8427 } && test -s conftest.$ac_objext; then
8428 ac_cv_member_struct_ifreq_ifr_netmask=yes
8430 echo "$as_me: failed program was:" >&5
8431 sed 's/^/| /' conftest.$ac_ext >&5
8433 cat >conftest.$ac_ext <<_ACEOF
8436 cat confdefs.h >>conftest.$ac_ext
8437 cat >>conftest.$ac_ext <<_ACEOF
8438 /* end confdefs.h. */
8439 $ac_includes_default
8440 #if HAVE_SYS_SOCKET_H
8441 #include <sys/socket.h>
8450 static struct ifreq ac_aggr;
8451 if (sizeof ac_aggr.ifr_netmask)
8457 rm -f conftest.$ac_objext
8458 if { (ac_try="$ac_compile"
8460 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8461 *) ac_try_echo
=$ac_try;;
8463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8464 (eval "$ac_compile") 2>conftest.er1
8466 grep -v '^ *+' conftest.er1
>conftest.err
8468 cat conftest.err
>&5
8469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470 (exit $ac_status); } && {
8471 test -z "$ac_c_werror_flag" ||
8472 test ! -s conftest.err
8473 } && test -s conftest.
$ac_objext; then
8474 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8476 echo "$as_me: failed program was:" >&5
8477 sed 's/^/| /' conftest.
$ac_ext >&5
8479 ac_cv_member_struct_ifreq_ifr_netmask
=no
8482 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8485 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8487 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8488 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8489 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8491 cat >>confdefs.h
<<_ACEOF
8492 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8497 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8498 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8499 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8500 echo $ECHO_N "(cached) $ECHO_C" >&6
8502 cat >conftest.
$ac_ext <<_ACEOF
8505 cat confdefs.h
>>conftest.
$ac_ext
8506 cat >>conftest.
$ac_ext <<_ACEOF
8507 /* end confdefs.h. */
8508 $ac_includes_default
8509 #if HAVE_SYS_SOCKET_H
8510 #include <sys/socket.h>
8519 static struct ifreq ac_aggr;
8520 if (ac_aggr.ifr_broadaddr)
8526 rm -f conftest.
$ac_objext
8527 if { (ac_try
="$ac_compile"
8529 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8530 *) ac_try_echo=$ac_try;;
8532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8533 (eval "$ac_compile") 2>conftest.er1
8535 grep -v '^ *+' conftest.er1 >conftest.err
8537 cat conftest.err >&5
8538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539 (exit $ac_status); } && {
8540 test -z "$ac_c_werror_flag" ||
8541 test ! -s conftest.err
8542 } && test -s conftest.$ac_objext; then
8543 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8545 echo "$as_me: failed program was:" >&5
8546 sed 's/^/| /' conftest.$ac_ext >&5
8548 cat >conftest.$ac_ext <<_ACEOF
8551 cat confdefs.h >>conftest.$ac_ext
8552 cat >>conftest.$ac_ext <<_ACEOF
8553 /* end confdefs.h. */
8554 $ac_includes_default
8555 #if HAVE_SYS_SOCKET_H
8556 #include <sys/socket.h>
8565 static struct ifreq ac_aggr;
8566 if (sizeof ac_aggr.ifr_broadaddr)
8572 rm -f conftest.$ac_objext
8573 if { (ac_try="$ac_compile"
8575 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8576 *) ac_try_echo
=$ac_try;;
8578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8579 (eval "$ac_compile") 2>conftest.er1
8581 grep -v '^ *+' conftest.er1
>conftest.err
8583 cat conftest.err
>&5
8584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585 (exit $ac_status); } && {
8586 test -z "$ac_c_werror_flag" ||
8587 test ! -s conftest.err
8588 } && test -s conftest.
$ac_objext; then
8589 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
8591 echo "$as_me: failed program was:" >&5
8592 sed 's/^/| /' conftest.
$ac_ext >&5
8594 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
8597 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8600 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8602 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8603 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8604 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8606 cat >>confdefs.h
<<_ACEOF
8607 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8612 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8613 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8614 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8615 echo $ECHO_N "(cached) $ECHO_C" >&6
8617 cat >conftest.
$ac_ext <<_ACEOF
8620 cat confdefs.h
>>conftest.
$ac_ext
8621 cat >>conftest.
$ac_ext <<_ACEOF
8622 /* end confdefs.h. */
8623 $ac_includes_default
8624 #if HAVE_SYS_SOCKET_H
8625 #include <sys/socket.h>
8634 static struct ifreq ac_aggr;
8635 if (ac_aggr.ifr_addr)
8641 rm -f conftest.
$ac_objext
8642 if { (ac_try
="$ac_compile"
8644 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8645 *) ac_try_echo=$ac_try;;
8647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8648 (eval "$ac_compile") 2>conftest.er1
8650 grep -v '^ *+' conftest.er1 >conftest.err
8652 cat conftest.err >&5
8653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654 (exit $ac_status); } && {
8655 test -z "$ac_c_werror_flag" ||
8656 test ! -s conftest.err
8657 } && test -s conftest.$ac_objext; then
8658 ac_cv_member_struct_ifreq_ifr_addr=yes
8660 echo "$as_me: failed program was:" >&5
8661 sed 's/^/| /' conftest.$ac_ext >&5
8663 cat >conftest.$ac_ext <<_ACEOF
8666 cat confdefs.h >>conftest.$ac_ext
8667 cat >>conftest.$ac_ext <<_ACEOF
8668 /* end confdefs.h. */
8669 $ac_includes_default
8670 #if HAVE_SYS_SOCKET_H
8671 #include <sys/socket.h>
8680 static struct ifreq ac_aggr;
8681 if (sizeof ac_aggr.ifr_addr)
8687 rm -f conftest.$ac_objext
8688 if { (ac_try="$ac_compile"
8690 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8691 *) ac_try_echo
=$ac_try;;
8693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8694 (eval "$ac_compile") 2>conftest.er1
8696 grep -v '^ *+' conftest.er1
>conftest.err
8698 cat conftest.err
>&5
8699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700 (exit $ac_status); } && {
8701 test -z "$ac_c_werror_flag" ||
8702 test ! -s conftest.err
8703 } && test -s conftest.
$ac_objext; then
8704 ac_cv_member_struct_ifreq_ifr_addr
=yes
8706 echo "$as_me: failed program was:" >&5
8707 sed 's/^/| /' conftest.
$ac_ext >&5
8709 ac_cv_member_struct_ifreq_ifr_addr
=no
8712 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8715 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8717 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8718 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8719 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8721 cat >>confdefs.h
<<_ACEOF
8722 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8730 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8731 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8732 if test "$ac_cv_prog_cc_c89" != no
; then
8733 { echo "$as_me:$LINENO: result: yes" >&5
8734 echo "${ECHO_T}yes" >&6; }
8736 cat >>confdefs.h
<<\_ACEOF
8737 #define PROTOTYPES 1
8741 cat >>confdefs.h
<<\_ACEOF
8742 #define __PROTOTYPES 1
8746 { echo "$as_me:$LINENO: result: no" >&5
8747 echo "${ECHO_T}no" >&6; }
8750 { echo "$as_me:$LINENO: checking for working volatile" >&5
8751 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8752 if test "${ac_cv_c_volatile+set}" = set; then
8753 echo $ECHO_N "(cached) $ECHO_C" >&6
8755 cat >conftest.
$ac_ext <<_ACEOF
8758 cat confdefs.h
>>conftest.
$ac_ext
8759 cat >>conftest.
$ac_ext <<_ACEOF
8760 /* end confdefs.h. */
8767 int * volatile y = (int *) 0;
8773 rm -f conftest.
$ac_objext
8774 if { (ac_try
="$ac_compile"
8776 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8777 *) ac_try_echo=$ac_try;;
8779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8780 (eval "$ac_compile") 2>conftest.er1
8782 grep -v '^ *+' conftest.er1 >conftest.err
8784 cat conftest.err >&5
8785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8786 (exit $ac_status); } && {
8787 test -z "$ac_c_werror_flag" ||
8788 test ! -s conftest.err
8789 } && test -s conftest.$ac_objext; then
8790 ac_cv_c_volatile=yes
8792 echo "$as_me: failed program was:" >&5
8793 sed 's/^/| /' conftest.$ac_ext >&5
8798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8800 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8801 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8802 if test $ac_cv_c_volatile = no; then
8804 cat >>confdefs.h <<\_ACEOF
8810 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8811 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8812 if test "${ac_cv_c_const+set}" = set; then
8813 echo $ECHO_N "(cached) $ECHO_C" >&6
8815 cat >conftest.$ac_ext <<_ACEOF
8818 cat confdefs.h >>conftest.$ac_ext
8819 cat >>conftest.$ac_ext <<_ACEOF
8820 /* end confdefs.h. */
8825 /* FIXME: Include the comments suggested by Paul. */
8827 /* Ultrix mips cc rejects this. */
8828 typedef int charset[2];
8830 /* SunOS 4.1.1 cc rejects this. */
8831 char const *const *pcpcc;
8833 /* NEC SVR4.0.2 mips cc rejects this. */
8834 struct point {int x, y;};
8835 static struct point const zero = {0,0};
8836 /* AIX XL C 1.02.0.0 rejects this.
8837 It does not let you subtract one const X* pointer from another in
8838 an arm of an if-expression whose if-part is not a constant
8840 const char *g = "string";
8841 pcpcc = &g + (g ? g-g : 0);
8842 /* HPUX 7.0 cc rejects these. */
8844 ppc = (char**) pcpcc;
8845 pcpcc = (char const *const *) ppc;
8846 { /* SCO 3.2v4 cc rejects this. */
8848 char const *s = 0 ? (char *) 0 : (char const *) 0;
8853 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8855 const int *foo = &x[0];
8858 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8859 typedef const int *iptr;
8863 { /* AIX XL C 1.02.0.0 rejects this saying
8864 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8865 struct s { int j; const int *ap[3]; };
8866 struct s *b; b->j = 5;
8868 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8872 return !cs[0] && !zero.x;
8879 rm -f conftest.$ac_objext
8880 if { (ac_try="$ac_compile"
8882 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8883 *) ac_try_echo
=$ac_try;;
8885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8886 (eval "$ac_compile") 2>conftest.er1
8888 grep -v '^ *+' conftest.er1
>conftest.err
8890 cat conftest.err
>&5
8891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8892 (exit $ac_status); } && {
8893 test -z "$ac_c_werror_flag" ||
8894 test ! -s conftest.err
8895 } && test -s conftest.
$ac_objext; then
8898 echo "$as_me: failed program was:" >&5
8899 sed 's/^/| /' conftest.
$ac_ext >&5
8904 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8906 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8907 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8908 if test $ac_cv_c_const = no
; then
8910 cat >>confdefs.h
<<\_ACEOF
8916 { echo "$as_me:$LINENO: checking for void * support" >&5
8917 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8918 if test "${emacs_cv_void_star+set}" = set; then
8919 echo $ECHO_N "(cached) $ECHO_C" >&6
8921 cat >conftest.
$ac_ext <<_ACEOF
8924 cat confdefs.h
>>conftest.
$ac_ext
8925 cat >>conftest.
$ac_ext <<_ACEOF
8926 /* end confdefs.h. */
8936 rm -f conftest.
$ac_objext
8937 if { (ac_try
="$ac_compile"
8939 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8940 *) ac_try_echo=$ac_try;;
8942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8943 (eval "$ac_compile") 2>conftest.er1
8945 grep -v '^ *+' conftest.er1 >conftest.err
8947 cat conftest.err >&5
8948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949 (exit $ac_status); } && {
8950 test -z "$ac_c_werror_flag" ||
8951 test ! -s conftest.err
8952 } && test -s conftest.$ac_objext; then
8953 emacs_cv_void_star=yes
8955 echo "$as_me: failed program was:" >&5
8956 sed 's/^/| /' conftest.$ac_ext >&5
8958 emacs_cv_void_star=no
8961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8963 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8964 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8965 if test $emacs_cv_void_star = yes; then
8966 cat >>confdefs.h <<\_ACEOF
8967 #define POINTER_TYPE void
8971 cat >>confdefs.h <<\_ACEOF
8972 #define POINTER_TYPE char
8981 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8982 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8983 set x ${MAKE-make}; ac_make=`echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8984 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8985 echo $ECHO_N "(cached) $ECHO_C" >&6
8987 cat >conftest.make <<\_ACEOF
8990 @echo '@@@%%%=$(MAKE)=@@@%%%'
8992 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8993 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
8995 eval ac_cv_prog_make_${ac_make}_set=yes;;
8997 eval ac_cv_prog_make_${ac_make}_set=no;;
9001 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9002 { echo "$as_me:$LINENO: result: yes" >&5
9003 echo "${ECHO_T}yes" >&6; }
9006 { echo "$as_me:$LINENO: result: no" >&5
9007 echo "${ECHO_T}no" >&6; }
9008 SET_MAKE="MAKE=${MAKE-make}"
9012 { echo "$as_me:$LINENO: checking for long file names" >&5
9013 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
9014 if test "${ac_cv_sys_long_file_names+set}" = set; then
9015 echo $ECHO_N "(cached) $ECHO_C" >&6
9017 ac_cv_sys_long_file_names=yes
9018 # Test for long file names in all the places we know might matter:
9019 # . the current directory, where building will happen
9020 # $prefix/lib where we will be installing things
9021 # $exec_prefix/lib likewise
9022 # $TMPDIR if set, where it might want to write temporary files
9023 # /tmp where it might want to write temporary files
9026 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9027 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9028 # in the usual case where exec_prefix is '${prefix}'.
9030 . | /* | ?:[\\/]*) ;; #(
9033 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9034 ac_xdir=$ac_dir/cf$$
9035 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9036 ac_tf1=$ac_xdir/conftest9012345
9037 ac_tf2=$ac_xdir/conftest9012346
9038 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9039 ac_cv_sys_long_file_names=no
9040 rm -f -r "$ac_xdir" 2>/dev/null
9041 test $ac_cv_sys_long_file_names = no && break
9044 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9045 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9046 if test $ac_cv_sys_long_file_names = yes; then
9048 cat >>confdefs.h <<\_ACEOF
9049 #define HAVE_LONG_FILE_NAMES 1
9055 #### Choose a window system.
9057 { echo "$as_me:$LINENO: checking for X" >&5
9058 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9061 # Check whether --with-x was given.
9062 if test "${with_x+set}" = set; then
9066 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9067 if test "x$with_x" = xno; then
9068 # The user explicitly disabled X.
9071 case $x_includes,$x_libraries in #(
9072 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9073 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9074 { (exit 1); exit 1; }; };; #(
9075 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9076 echo $ECHO_N "(cached) $ECHO_C" >&6
9078 # One or both of the vars are not set, and there is no cached value.
9079 ac_x_includes=no ac_x_libraries=no
9080 rm -f -r conftest.dir
9081 if mkdir conftest.dir; then
9083 cat >Imakefile <<'_ACEOF'
9085 @echo incroot='${INCROOT}'
9087 @echo usrlibdir='${USRLIBDIR}'
9089 @echo libdir='${LIBDIR}'
9091 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9092 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9093 for ac_var in incroot usrlibdir libdir; do
9094 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
9096 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9097 for ac_extension in a so sl; do
9098 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9099 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9100 ac_im_usrlibdir=$ac_im_libdir; break
9103 # Screen out bogus values from the imake configuration. They are
9104 # bogus both because they are the default anyway, and because
9105 # using them would break gcc on systems where it needs fixed includes.
9106 case $ac_im_incroot in
9107 /usr/include) ac_x_includes= ;;
9108 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9110 case $ac_im_usrlibdir in
9112 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9116 rm -f -r conftest.dir
9119 # Standard set of common directories for X headers.
9120 # Check X11 before X11Rn because it is often a symlink to the current release.
9132 /usr/local/X11/include
9133 /usr/local/X11R6/include
9134 /usr/local/X11R5/include
9135 /usr/local/X11R4/include
9137 /usr/local/include/X11
9138 /usr/local/include/X11R6
9139 /usr/local/include/X11R5
9140 /usr/local/include/X11R4
9144 /usr/XFree86/include/X11
9148 /usr/unsupported/include
9150 /usr/local/x11r5/include
9151 /usr/lpp/Xamples/include
9153 /usr/openwin/include
9154 /usr/openwin/share/include'
9156 if test "$ac_x_includes" = no; then
9157 # Guess where to find include files, by looking for Xlib.h.
9158 # First, try using that file with no special directory specified.
9159 cat >conftest.$ac_ext <<_ACEOF
9162 cat confdefs.h >>conftest.$ac_ext
9163 cat >>conftest.$ac_ext <<_ACEOF
9164 /* end confdefs.h. */
9165 #include <X11/Xlib.h>
9167 if { (ac_try="$ac_cpp conftest.$ac_ext"
9169 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9170 *) ac_try_echo
=$ac_try;;
9172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9173 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9175 grep -v '^ *+' conftest.er1
>conftest.err
9177 cat conftest.err
>&5
9178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9179 (exit $ac_status); } >/dev
/null
&& {
9180 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9181 test ! -s conftest.err
9183 # We can compile using X headers with no special include directory.
9186 echo "$as_me: failed program was:" >&5
9187 sed 's/^/| /' conftest.
$ac_ext >&5
9189 for ac_dir
in $ac_x_header_dirs; do
9190 if test -r "$ac_dir/X11/Xlib.h"; then
9191 ac_x_includes
=$ac_dir
9197 rm -f conftest.err conftest.
$ac_ext
9198 fi # $ac_x_includes = no
9200 if test "$ac_x_libraries" = no
; then
9201 # Check for the libraries.
9202 # See if we find them without any special options.
9203 # Don't add to $LIBS permanently.
9206 cat >conftest.
$ac_ext <<_ACEOF
9209 cat confdefs.h
>>conftest.
$ac_ext
9210 cat >>conftest.
$ac_ext <<_ACEOF
9211 /* end confdefs.h. */
9212 #include <X11/Xlib.h>
9221 rm -f conftest.
$ac_objext conftest
$ac_exeext
9222 if { (ac_try
="$ac_link"
9224 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9225 *) ac_try_echo=$ac_try;;
9227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9228 (eval "$ac_link") 2>conftest.er1
9230 grep -v '^ *+' conftest.er1 >conftest.err
9232 cat conftest.err >&5
9233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9234 (exit $ac_status); } && {
9235 test -z "$ac_c_werror_flag" ||
9236 test ! -s conftest.err
9237 } && test -s conftest$ac_exeext &&
9238 $as_test_x conftest$ac_exeext; then
9240 # We can link X programs with no special library path.
9243 echo "$as_me: failed program was:" >&5
9244 sed 's/^/| /' conftest.$ac_ext >&5
9247 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
9249 # Don't even attempt the hair of trying to link an X program!
9250 for ac_extension in a so sl; do
9251 if test -r "$ac_dir/libX11.$ac_extension"; then
9252 ac_x_libraries=$ac_dir
9259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9260 conftest$ac_exeext conftest.$ac_ext
9261 fi # $ac_x_libraries = no
9263 case $ac_x_includes,$ac_x_libraries in #(
9265 # Didn't find X, or a directory has "'" in its name.
9266 ac_cv_have_x="have_x=no";; #(
9268 # Record where we found X for the cache.
9269 ac_cv_have_x="have_x=yes\
9270 ac_x_includes='$ac_x_includes'\
9271 ac_x_libraries='$ac_x_libraries'"
9277 eval "$ac_cv_have_x"
9280 if test "$have_x" != yes; then
9281 { echo "$as_me:$LINENO: result: $have_x" >&5
9282 echo "${ECHO_T}$have_x" >&6; }
9285 # If each of the values was on the command line, it overrides each guess.
9286 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9287 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9288 # Update the cache value to reflect the command line values.
9289 ac_cv_have_x="have_x=yes\
9290 ac_x_includes='$x_includes'\
9291 ac_x_libraries='$x_libraries'"
9292 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9293 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9296 if test "$no_x" = yes; then
9302 if test "${x_libraries}" != NONE; then
9303 if test -n "${x_libraries}"; then
9304 LD_SWITCH_X_SITE=-L`echo ${x_libraries} |
sed -e "s/:/ -L/g"`
9305 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} |
sed -e "s/:/ -R/g"`
9307 x_default_search_path=""
9308 x_search_path=${x_libraries}
9309 if test -z "${x_search_path}"; then
9310 x_search_path=/usr/lib
9312 for x_library in `echo ${x_search_path}: | \
9313 sed -e "s/:/ /g" -e p
-e "s:/lib[^ /]* :/share :g"`; do
9315 ${x_library}/X11/%L/%T/%N%C%S:\
9316 ${x_library}/X11/%l/%T/%N%C%S:\
9317 ${x_library}/X11/%T/%N%C%S:\
9318 ${x_library}/X11/%L/%T/%N%S:\
9319 ${x_library}/X11/%l/%T/%N%S:\
9320 ${x_library}/X11/%T/%N%S"
9321 if test x"${x_default_search_path}" = x; then
9322 x_default_search_path=${x_search_path}
9324 x_default_search_path="${x_search_path}:${x_default_search_path}"
9328 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9329 C_SWITCH_X_SITE=-I`echo ${x_includes} |
sed -e "s/:/ -I/g"`
9332 if test x"${x_includes}" = x; then
9333 bitmapdir=/usr/include/X11/bitmaps
9335 # accumulate include directories that have X11 bitmap subdirectories
9337 for bmd in `echo ${x_includes} |
sed -e "s/:/ /g"`; do
9338 if test -d "${bmd}/X11/bitmaps"; then
9339 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9341 if test -d "${bmd}/bitmaps"; then
9342 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9345 if test ${bmd_acc} != "dummyval"; then
9346 bitmapdir=`echo ${bmd_acc} |
sed -e "s/^dummyval://"`
9351 if test "${with_carbon}" != no; then
9352 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9353 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9354 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9355 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9356 echo $ECHO_N "(cached) $ECHO_C" >&6
9358 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9359 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9361 # Is the header compilable?
9362 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9363 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9364 cat >conftest.$ac_ext <<_ACEOF
9367 cat confdefs.h >>conftest.$ac_ext
9368 cat >>conftest.$ac_ext <<_ACEOF
9369 /* end confdefs.h. */
9370 $ac_includes_default
9371 #include <Carbon/Carbon.h>
9373 rm -f conftest.$ac_objext
9374 if { (ac_try="$ac_compile"
9376 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9377 *) ac_try_echo
=$ac_try;;
9379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9380 (eval "$ac_compile") 2>conftest.er1
9382 grep -v '^ *+' conftest.er1
>conftest.err
9384 cat conftest.err
>&5
9385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9386 (exit $ac_status); } && {
9387 test -z "$ac_c_werror_flag" ||
9388 test ! -s conftest.err
9389 } && test -s conftest.
$ac_objext; then
9390 ac_header_compiler
=yes
9392 echo "$as_me: failed program was:" >&5
9393 sed 's/^/| /' conftest.
$ac_ext >&5
9395 ac_header_compiler
=no
9398 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9399 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9400 echo "${ECHO_T}$ac_header_compiler" >&6; }
9402 # Is the header present?
9403 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9404 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9405 cat >conftest.
$ac_ext <<_ACEOF
9408 cat confdefs.h
>>conftest.
$ac_ext
9409 cat >>conftest.
$ac_ext <<_ACEOF
9410 /* end confdefs.h. */
9411 #include <Carbon/Carbon.h>
9413 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9415 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9416 *) ac_try_echo=$ac_try;;
9418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9419 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9421 grep -v '^ *+' conftest.er1 >conftest.err
9423 cat conftest.err >&5
9424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9425 (exit $ac_status); } >/dev/null && {
9426 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9427 test ! -s conftest.err
9429 ac_header_preproc=yes
9431 echo "$as_me: failed program was:" >&5
9432 sed 's/^/| /' conftest.$ac_ext >&5
9434 ac_header_preproc=no
9437 rm -f conftest.err conftest.$ac_ext
9438 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9439 echo "${ECHO_T}$ac_header_preproc" >&6; }
9441 # So? What about this header?
9442 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9444 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9445 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9446 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9447 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9448 ac_header_preproc=yes
9451 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9452 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9453 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9454 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9455 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9456 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9457 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9458 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9459 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9460 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9461 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9462 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9466 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9467 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9468 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9469 echo $ECHO_N "(cached) $ECHO_C" >&6
9471 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9473 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9474 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9477 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9483 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9484 if test "${with_carbon+set}" != set \
9485 && test "${carbon_appdir_x+set}" != set; then
9486 for var in with_x with_x_toolkit with_gtk with_xim \
9487 with_xpm with_jpeg with_tiff with_gif with_png; do
9488 if eval test \"\${$var+set}\" = set; then
9495 if test "${HAVE_CARBON}" = yes; then
9499 case "${window_system}" in
9503 case "${with_x_toolkit}" in
9504 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9505 motif ) USE_X_TOOLKIT=MOTIF ;;
9507 USE_X_TOOLKIT=none ;;
9508 no ) USE_X_TOOLKIT=none ;;
9509 * ) USE_X_TOOLKIT=maybe ;;
9519 ### If we're using X11, we should use the X menu package.
9522 yes ) HAVE_MENUS=yes ;;
9525 if test "${opsys}" = "hpux9"; then
9526 case "${x_libraries}" in
9528 opsysfile="s/hpux9-x11r4.h"
9533 if test "${opsys}" = "hpux9shr"; then
9534 case "${x_libraries}" in
9536 opsysfile="s/hpux9shxr4.h"
9541 ### Compute the unexec source name from the object name.
9542 UNEXEC_SRC="`echo ${unexec} |
sed 's/\.o/.c/'`"
9544 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9545 # Assume not, until told otherwise.
9548 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9549 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9550 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9551 echo $ECHO_N "(cached) $ECHO_C" >&6
9553 cat >conftest.$ac_ext <<_ACEOF
9556 cat confdefs.h >>conftest.$ac_ext
9557 cat >>conftest.$ac_ext <<_ACEOF
9558 /* end confdefs.h. */
9559 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9560 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9561 #define malloc_get_state innocuous_malloc_get_state
9563 /* System header to define __stub macros and hopefully few prototypes,
9564 which can conflict with char malloc_get_state (); below.
9565 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9566 <limits.h> exists even on freestanding compilers. */
9569 # include <limits.h>
9571 # include <assert.h>
9574 #undef malloc_get_state
9576 /* Override any GCC internal prototype to avoid an error.
9577 Use char because int might match the return type of a GCC
9578 builtin and then its argument prototype would still apply. */
9582 char malloc_get_state ();
9583 /* The GNU C library defines this for functions which it implements
9584 to always fail with ENOSYS. Some functions are actually named
9585 something starting with __ and the normal name is an alias. */
9586 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9593 return malloc_get_state ();
9598 rm -f conftest.$ac_objext conftest$ac_exeext
9599 if { (ac_try="$ac_link"
9601 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9602 *) ac_try_echo
=$ac_try;;
9604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9605 (eval "$ac_link") 2>conftest.er1
9607 grep -v '^ *+' conftest.er1
>conftest.err
9609 cat conftest.err
>&5
9610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611 (exit $ac_status); } && {
9612 test -z "$ac_c_werror_flag" ||
9613 test ! -s conftest.err
9614 } && test -s conftest
$ac_exeext &&
9615 $as_test_x conftest
$ac_exeext; then
9616 ac_cv_func_malloc_get_state
=yes
9618 echo "$as_me: failed program was:" >&5
9619 sed 's/^/| /' conftest.
$ac_ext >&5
9621 ac_cv_func_malloc_get_state
=no
9624 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9625 conftest
$ac_exeext conftest.
$ac_ext
9627 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9628 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9629 if test $ac_cv_func_malloc_get_state = yes; then
9635 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9636 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9637 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9638 echo $ECHO_N "(cached) $ECHO_C" >&6
9640 cat >conftest.
$ac_ext <<_ACEOF
9643 cat confdefs.h
>>conftest.
$ac_ext
9644 cat >>conftest.
$ac_ext <<_ACEOF
9645 /* end confdefs.h. */
9646 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9647 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9648 #define malloc_set_state innocuous_malloc_set_state
9650 /* System header to define __stub macros and hopefully few prototypes,
9651 which can conflict with char malloc_set_state (); below.
9652 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9653 <limits.h> exists even on freestanding compilers. */
9656 # include <limits.h>
9658 # include <assert.h>
9661 #undef malloc_set_state
9663 /* Override any GCC internal prototype to avoid an error.
9664 Use char because int might match the return type of a GCC
9665 builtin and then its argument prototype would still apply. */
9669 char malloc_set_state ();
9670 /* The GNU C library defines this for functions which it implements
9671 to always fail with ENOSYS. Some functions are actually named
9672 something starting with __ and the normal name is an alias. */
9673 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9680 return malloc_set_state ();
9685 rm -f conftest.
$ac_objext conftest
$ac_exeext
9686 if { (ac_try
="$ac_link"
9688 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9689 *) ac_try_echo=$ac_try;;
9691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9692 (eval "$ac_link") 2>conftest.er1
9694 grep -v '^ *+' conftest.er1 >conftest.err
9696 cat conftest.err >&5
9697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698 (exit $ac_status); } && {
9699 test -z "$ac_c_werror_flag" ||
9700 test ! -s conftest.err
9701 } && test -s conftest$ac_exeext &&
9702 $as_test_x conftest$ac_exeext; then
9703 ac_cv_func_malloc_set_state=yes
9705 echo "$as_me: failed program was:" >&5
9706 sed 's/^/| /' conftest.$ac_ext >&5
9708 ac_cv_func_malloc_set_state=no
9711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9712 conftest$ac_exeext conftest.$ac_ext
9714 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9715 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9716 if test $ac_cv_func_malloc_set_state = yes; then
9722 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9723 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9724 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9725 echo $ECHO_N "(cached) $ECHO_C" >&6
9727 cat >conftest.$ac_ext <<_ACEOF
9730 cat confdefs.h >>conftest.$ac_ext
9731 cat >>conftest.$ac_ext <<_ACEOF
9732 /* end confdefs.h. */
9733 extern void (* __after_morecore_hook)();
9737 __after_morecore_hook = 0
9742 rm -f conftest.$ac_objext conftest$ac_exeext
9743 if { (ac_try="$ac_link"
9745 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9746 *) ac_try_echo
=$ac_try;;
9748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9749 (eval "$ac_link") 2>conftest.er1
9751 grep -v '^ *+' conftest.er1
>conftest.err
9753 cat conftest.err
>&5
9754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755 (exit $ac_status); } && {
9756 test -z "$ac_c_werror_flag" ||
9757 test ! -s conftest.err
9758 } && test -s conftest
$ac_exeext &&
9759 $as_test_x conftest
$ac_exeext; then
9760 emacs_cv_var___after_morecore_hook
=yes
9762 echo "$as_me: failed program was:" >&5
9763 sed 's/^/| /' conftest.
$ac_ext >&5
9765 emacs_cv_var___after_morecore_hook
=no
9768 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9769 conftest
$ac_exeext conftest.
$ac_ext
9771 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9772 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9773 if test $emacs_cv_var___after_morecore_hook = no
; then
9776 if test "${system_malloc}" = "yes"; then
9779 (The GNU allocators don't work with this system configuration.)"
9781 if test "$doug_lea_malloc" = "yes" ; then
9782 if test "$GNU_MALLOC" = yes ; then
9784 (Using Doug Lea's new malloc from the GNU C Library.)"
9787 cat >>confdefs.h
<<\_ACEOF
9788 #define DOUG_LEA_MALLOC 1
9793 if test x
"${REL_ALLOC}" = x
; then
9794 REL_ALLOC
=${GNU_MALLOC}
9800 for ac_header
in stdlib.h unistd.h
9802 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9803 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9804 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9806 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9807 echo $ECHO_N "(cached) $ECHO_C" >&6
9809 ac_res
=`eval echo '${'$as_ac_Header'}'`
9810 { echo "$as_me:$LINENO: result: $ac_res" >&5
9811 echo "${ECHO_T}$ac_res" >&6; }
9813 # Is the header compilable?
9814 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9815 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9816 cat >conftest.
$ac_ext <<_ACEOF
9819 cat confdefs.h
>>conftest.
$ac_ext
9820 cat >>conftest.
$ac_ext <<_ACEOF
9821 /* end confdefs.h. */
9822 $ac_includes_default
9823 #include <$ac_header>
9825 rm -f conftest.
$ac_objext
9826 if { (ac_try
="$ac_compile"
9828 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9829 *) ac_try_echo=$ac_try;;
9831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9832 (eval "$ac_compile") 2>conftest.er1
9834 grep -v '^ *+' conftest.er1 >conftest.err
9836 cat conftest.err >&5
9837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838 (exit $ac_status); } && {
9839 test -z "$ac_c_werror_flag" ||
9840 test ! -s conftest.err
9841 } && test -s conftest.$ac_objext; then
9842 ac_header_compiler=yes
9844 echo "$as_me: failed program was:" >&5
9845 sed 's/^/| /' conftest.$ac_ext >&5
9847 ac_header_compiler=no
9850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9851 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9852 echo "${ECHO_T}$ac_header_compiler" >&6; }
9854 # Is the header present?
9855 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9856 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9857 cat >conftest.$ac_ext <<_ACEOF
9860 cat confdefs.h >>conftest.$ac_ext
9861 cat >>conftest.$ac_ext <<_ACEOF
9862 /* end confdefs.h. */
9863 #include <$ac_header>
9865 if { (ac_try="$ac_cpp conftest.$ac_ext"
9867 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9868 *) ac_try_echo
=$ac_try;;
9870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9871 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9873 grep -v '^ *+' conftest.er1
>conftest.err
9875 cat conftest.err
>&5
9876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877 (exit $ac_status); } >/dev
/null
&& {
9878 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9879 test ! -s conftest.err
9881 ac_header_preproc
=yes
9883 echo "$as_me: failed program was:" >&5
9884 sed 's/^/| /' conftest.
$ac_ext >&5
9886 ac_header_preproc
=no
9889 rm -f conftest.err conftest.
$ac_ext
9890 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9891 echo "${ECHO_T}$ac_header_preproc" >&6; }
9893 # So? What about this header?
9894 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9896 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9897 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9898 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9899 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9900 ac_header_preproc
=yes
9903 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9904 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9905 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9906 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9907 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9908 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9909 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9910 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9912 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9913 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9914 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9918 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9919 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9920 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9921 echo $ECHO_N "(cached) $ECHO_C" >&6
9923 eval "$as_ac_Header=\$ac_header_preproc"
9925 ac_res
=`eval echo '${'$as_ac_Header'}'`
9926 { echo "$as_me:$LINENO: result: $ac_res" >&5
9927 echo "${ECHO_T}$ac_res" >&6; }
9930 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9931 cat >>confdefs.h
<<_ACEOF
9932 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9940 for ac_func
in getpagesize
9942 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9943 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9944 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9945 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9946 echo $ECHO_N "(cached) $ECHO_C" >&6
9948 cat >conftest.
$ac_ext <<_ACEOF
9951 cat confdefs.h
>>conftest.
$ac_ext
9952 cat >>conftest.
$ac_ext <<_ACEOF
9953 /* end confdefs.h. */
9954 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9955 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9956 #define $ac_func innocuous_$ac_func
9958 /* System header to define __stub macros and hopefully few prototypes,
9959 which can conflict with char $ac_func (); below.
9960 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9961 <limits.h> exists even on freestanding compilers. */
9964 # include <limits.h>
9966 # include <assert.h>
9971 /* Override any GCC internal prototype to avoid an error.
9972 Use char because int might match the return type of a GCC
9973 builtin and then its argument prototype would still apply. */
9978 /* The GNU C library defines this for functions which it implements
9979 to always fail with ENOSYS. Some functions are actually named
9980 something starting with __ and the normal name is an alias. */
9981 #if defined __stub_$ac_func || defined __stub___$ac_func
9993 rm -f conftest.
$ac_objext conftest
$ac_exeext
9994 if { (ac_try
="$ac_link"
9996 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9997 *) ac_try_echo=$ac_try;;
9999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10000 (eval "$ac_link") 2>conftest.er1
10002 grep -v '^ *+' conftest.er1 >conftest.err
10004 cat conftest.err >&5
10005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006 (exit $ac_status); } && {
10007 test -z "$ac_c_werror_flag" ||
10008 test ! -s conftest.err
10009 } && test -s conftest$ac_exeext &&
10010 $as_test_x conftest$ac_exeext; then
10011 eval "$as_ac_var=yes"
10013 echo "$as_me: failed program was:" >&5
10014 sed 's/^/| /' conftest.$ac_ext >&5
10016 eval "$as_ac_var=no"
10019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10020 conftest$ac_exeext conftest.$ac_ext
10022 ac_res=`eval echo '${'$as_ac_var'}'`
10023 { echo "$as_me:$LINENO: result: $ac_res" >&5
10024 echo "${ECHO_T}$ac_res" >&6; }
10025 if test `eval echo '${'$as_ac_var'}'` = yes; then
10026 cat >>confdefs.h <<_ACEOF
10027 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10033 { echo "$as_me:$LINENO: checking for working mmap" >&5
10034 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10035 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10036 echo $ECHO_N "(cached) $ECHO_C" >&6
10038 if test "$cross_compiling" = yes; then
10039 ac_cv_func_mmap_fixed_mapped=no
10041 cat >conftest.$ac_ext <<_ACEOF
10044 cat confdefs.h >>conftest.$ac_ext
10045 cat >>conftest.$ac_ext <<_ACEOF
10046 /* end confdefs.h. */
10047 $ac_includes_default
10048 /* malloc might have been renamed as rpl_malloc. */
10051 /* Thanks to Mike Haertel and Jim Avera for this test.
10052 Here is a matrix of mmap possibilities:
10053 mmap private not fixed
10054 mmap private fixed at somewhere currently unmapped
10055 mmap private fixed at somewhere already mapped
10056 mmap shared not fixed
10057 mmap shared fixed at somewhere currently unmapped
10058 mmap shared fixed at somewhere already mapped
10059 For private mappings, we should verify that changes cannot be read()
10060 back from the file, nor mmap's back from the file at a different
10061 address. (There have been systems where private was not correctly
10062 implemented like the infamous i386 svr4.0, and systems where the
10063 VM page cache was not coherent with the file system buffer cache
10064 like early versions of FreeBSD and possibly contemporary NetBSD.)
10065 For shared mappings, we should conversely verify that changes get
10066 propagated back to all the places they're supposed to be.
10068 Grep wants private fixed already mapped.
10069 The main things grep needs to know about mmap are:
10070 * does it exist and is it safe to write into the mmap'd area
10071 * how to use it (BSD variants) */
10074 #include <sys/mman.h>
10076 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10080 /* This mess was copied from the GNU getpagesize.h. */
10081 #ifndef HAVE_GETPAGESIZE
10082 /* Assume that all systems that can run configure have sys/param.h. */
10083 # ifndef HAVE_SYS_PARAM_H
10084 # define HAVE_SYS_PARAM_H 1
10087 # ifdef _SC_PAGESIZE
10088 # define getpagesize() sysconf(_SC_PAGESIZE)
10089 # else /* no _SC_PAGESIZE */
10090 # ifdef HAVE_SYS_PARAM_H
10091 # include <sys/param.h>
10092 # ifdef EXEC_PAGESIZE
10093 # define getpagesize() EXEC_PAGESIZE
10094 # else /* no EXEC_PAGESIZE */
10096 # define getpagesize() NBPG * CLSIZE
10099 # endif /* no CLSIZE */
10100 # else /* no NBPG */
10102 # define getpagesize() NBPC
10103 # else /* no NBPC */
10105 # define getpagesize() PAGESIZE
10106 # endif /* PAGESIZE */
10107 # endif /* no NBPC */
10108 # endif /* no NBPG */
10109 # endif /* no EXEC_PAGESIZE */
10110 # else /* no HAVE_SYS_PARAM_H */
10111 # define getpagesize() 8192 /* punt totally */
10112 # endif /* no HAVE_SYS_PARAM_H */
10113 # endif /* no _SC_PAGESIZE */
10115 #endif /* no HAVE_GETPAGESIZE */
10120 char *data, *data2, *data3;
10124 pagesize = getpagesize ();
10126 /* First, make a file with some known garbage in it. */
10127 data = (char *) malloc (pagesize);
10130 for (i = 0; i < pagesize; ++i)
10131 *(data + i) = rand ();
10133 fd = creat ("conftest.mmap", 0600);
10136 if (write (fd, data, pagesize) != pagesize)
10140 /* Next, try to mmap the file at a fixed address which already has
10141 something else allocated at it. If we can, also make sure that
10142 we see the same garbage. */
10143 fd = open ("conftest.mmap", O_RDWR);
10146 data2 = (char *) malloc (2 * pagesize);
10149 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10150 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10151 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10153 for (i = 0; i < pagesize; ++i)
10154 if (*(data + i) != *(data2 + i))
10157 /* Finally, make sure that changes to the mapped area do not
10158 percolate back to the file as seen by read(). (This is a bug on
10159 some variants of i386 svr4.0.) */
10160 for (i = 0; i < pagesize; ++i)
10161 *(data2 + i) = *(data2 + i) + 1;
10162 data3 = (char *) malloc (pagesize);
10165 if (read (fd, data3, pagesize) != pagesize)
10167 for (i = 0; i < pagesize; ++i)
10168 if (*(data + i) != *(data3 + i))
10174 rm -f conftest$ac_exeext
10175 if { (ac_try="$ac_link"
10176 case "(($ac_try" in
10177 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10178 *) ac_try_echo
=$ac_try;;
10180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10181 (eval "$ac_link") 2>&5
10183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10185 { (case "(($ac_try" in
10186 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10187 *) ac_try_echo=$ac_try;;
10189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10190 (eval "$ac_try") 2>&5
10192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193 (exit $ac_status); }; }; then
10194 ac_cv_func_mmap_fixed_mapped=yes
10196 echo "$as_me: program exited with status $ac_status" >&5
10197 echo "$as_me: failed program was:" >&5
10198 sed 's/^/| /' conftest.$ac_ext >&5
10200 ( exit $ac_status )
10201 ac_cv_func_mmap_fixed_mapped=no
10203 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10208 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10209 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10210 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10212 cat >>confdefs.h <<\_ACEOF
10213 #define HAVE_MMAP 1
10217 rm -f conftest.mmap
10219 if test $use_mmap_for_buffers = yes; then
10223 LIBS="$libsrc_libs $LIBS"
10226 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10227 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10228 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10229 echo $ECHO_N "(cached) $ECHO_C" >&6
10231 ac_check_lib_save_LIBS=$LIBS
10232 LIBS="-ldnet $LIBS"
10233 cat >conftest.$ac_ext <<_ACEOF
10236 cat confdefs.h >>conftest.$ac_ext
10237 cat >>conftest.$ac_ext <<_ACEOF
10238 /* end confdefs.h. */
10240 /* Override any GCC internal prototype to avoid an error.
10241 Use char because int might match the return type of a GCC
10242 builtin and then its argument prototype would still apply. */
10250 return dnet_ntoa ();
10255 rm -f conftest.$ac_objext conftest$ac_exeext
10256 if { (ac_try="$ac_link"
10257 case "(($ac_try" in
10258 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10259 *) ac_try_echo
=$ac_try;;
10261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10262 (eval "$ac_link") 2>conftest.er1
10264 grep -v '^ *+' conftest.er1
>conftest.err
10266 cat conftest.err
>&5
10267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268 (exit $ac_status); } && {
10269 test -z "$ac_c_werror_flag" ||
10270 test ! -s conftest.err
10271 } && test -s conftest
$ac_exeext &&
10272 $as_test_x conftest
$ac_exeext; then
10273 ac_cv_lib_dnet_dnet_ntoa
=yes
10275 echo "$as_me: failed program was:" >&5
10276 sed 's/^/| /' conftest.
$ac_ext >&5
10278 ac_cv_lib_dnet_dnet_ntoa
=no
10281 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10282 conftest
$ac_exeext conftest.
$ac_ext
10283 LIBS
=$ac_check_lib_save_LIBS
10285 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10286 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10287 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10288 cat >>confdefs.h
<<_ACEOF
10289 #define HAVE_LIBDNET 1
10292 LIBS
="-ldnet $LIBS"
10297 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10298 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10299 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10300 echo $ECHO_N "(cached) $ECHO_C" >&6
10302 ac_check_lib_save_LIBS
=$LIBS
10303 LIBS
="-lXbsd $LIBS"
10304 cat >conftest.
$ac_ext <<_ACEOF
10307 cat confdefs.h
>>conftest.
$ac_ext
10308 cat >>conftest.
$ac_ext <<_ACEOF
10309 /* end confdefs.h. */
10320 rm -f conftest.
$ac_objext conftest
$ac_exeext
10321 if { (ac_try
="$ac_link"
10322 case "(($ac_try" in
10323 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10324 *) ac_try_echo=$ac_try;;
10326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10327 (eval "$ac_link") 2>conftest.er1
10329 grep -v '^ *+' conftest.er1 >conftest.err
10331 cat conftest.err >&5
10332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10333 (exit $ac_status); } && {
10334 test -z "$ac_c_werror_flag" ||
10335 test ! -s conftest.err
10336 } && test -s conftest$ac_exeext &&
10337 $as_test_x conftest$ac_exeext; then
10338 ac_cv_lib_Xbsd_main=yes
10340 echo "$as_me: failed program was:" >&5
10341 sed 's/^/| /' conftest.$ac_ext >&5
10343 ac_cv_lib_Xbsd_main=no
10346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10347 conftest$ac_exeext conftest.$ac_ext
10348 LIBS=$ac_check_lib_save_LIBS
10350 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10351 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10352 if test $ac_cv_lib_Xbsd_main = yes; then
10353 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10358 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10359 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10360 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10361 echo $ECHO_N "(cached) $ECHO_C" >&6
10363 ac_check_lib_save_LIBS=$LIBS
10364 LIBS="-lpthreads $LIBS"
10365 cat >conftest.$ac_ext <<_ACEOF
10368 cat confdefs.h >>conftest.$ac_ext
10369 cat >>conftest.$ac_ext <<_ACEOF
10370 /* end confdefs.h. */
10372 /* Override any GCC internal prototype to avoid an error.
10373 Use char because int might match the return type of a GCC
10374 builtin and then its argument prototype would still apply. */
10382 return cma_open ();
10387 rm -f conftest.$ac_objext conftest$ac_exeext
10388 if { (ac_try="$ac_link"
10389 case "(($ac_try" in
10390 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10391 *) ac_try_echo
=$ac_try;;
10393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10394 (eval "$ac_link") 2>conftest.er1
10396 grep -v '^ *+' conftest.er1
>conftest.err
10398 cat conftest.err
>&5
10399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10400 (exit $ac_status); } && {
10401 test -z "$ac_c_werror_flag" ||
10402 test ! -s conftest.err
10403 } && test -s conftest
$ac_exeext &&
10404 $as_test_x conftest
$ac_exeext; then
10405 ac_cv_lib_pthreads_cma_open
=yes
10407 echo "$as_me: failed program was:" >&5
10408 sed 's/^/| /' conftest.
$ac_ext >&5
10410 ac_cv_lib_pthreads_cma_open
=no
10413 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10414 conftest
$ac_exeext conftest.
$ac_ext
10415 LIBS
=$ac_check_lib_save_LIBS
10417 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10418 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10419 if test $ac_cv_lib_pthreads_cma_open = yes; then
10420 cat >>confdefs.h
<<_ACEOF
10421 #define HAVE_LIBPTHREADS 1
10424 LIBS
="-lpthreads $LIBS"
10429 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10430 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10431 if test -d /usr
/X386
/include
; then
10433 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10437 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10438 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10443 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10444 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10445 if test "${gdb_cv_bigtoc+set}" = set; then
10446 echo $ECHO_N "(cached) $ECHO_C" >&6
10450 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10451 *) gdb_cv_bigtoc
=-bbigtoc ;;
10454 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10455 cat >conftest.
$ac_ext <<_ACEOF
10458 cat confdefs.h
>>conftest.
$ac_ext
10459 cat >>conftest.
$ac_ext <<_ACEOF
10460 /* end confdefs.h. */
10470 rm -f conftest.
$ac_objext conftest
$ac_exeext
10471 if { (ac_try
="$ac_link"
10472 case "(($ac_try" in
10473 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10474 *) ac_try_echo=$ac_try;;
10476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10477 (eval "$ac_link") 2>conftest.er1
10479 grep -v '^ *+' conftest.er1 >conftest.err
10481 cat conftest.err >&5
10482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483 (exit $ac_status); } && {
10484 test -z "$ac_c_werror_flag" ||
10485 test ! -s conftest.err
10486 } && test -s conftest$ac_exeext &&
10487 $as_test_x conftest$ac_exeext; then
10490 echo "$as_me: failed program was:" >&5
10491 sed 's/^/| /' conftest.$ac_ext >&5
10496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10497 conftest$ac_exeext conftest.$ac_ext
10500 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10501 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10505 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10506 # used for the tests that follow. We set them back to REAL_CFLAGS and
10507 # REAL_CPPFLAGS later on.
10509 REAL_CPPFLAGS="$CPPFLAGS"
10511 if test "${HAVE_X11}" = "yes"; then
10512 DEFS="$C_SWITCH_X_SITE $DEFS"
10513 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10515 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10516 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10518 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10519 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10520 # but it's more convenient here to set LD_RUN_PATH
10521 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10522 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10523 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10527 if test "${opsys}" = "gnu-linux"; then
10528 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10529 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10530 cat >conftest.$ac_ext <<_ACEOF
10533 cat confdefs.h >>conftest.$ac_ext
10534 cat >>conftest.$ac_ext <<_ACEOF
10535 /* end confdefs.h. */
10540 XOpenDisplay ("foo");
10545 rm -f conftest.$ac_objext conftest$ac_exeext
10546 if { (ac_try="$ac_link"
10547 case "(($ac_try" in
10548 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10549 *) ac_try_echo
=$ac_try;;
10551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10552 (eval "$ac_link") 2>conftest.er1
10554 grep -v '^ *+' conftest.er1
>conftest.err
10556 cat conftest.err
>&5
10557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558 (exit $ac_status); } && {
10559 test -z "$ac_c_werror_flag" ||
10560 test ! -s conftest.err
10561 } && test -s conftest
$ac_exeext &&
10562 $as_test_x conftest
$ac_exeext; then
10563 xlinux_first_failure
=no
10565 echo "$as_me: failed program was:" >&5
10566 sed 's/^/| /' conftest.
$ac_ext >&5
10568 xlinux_first_failure
=yes
10571 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10572 conftest
$ac_exeext conftest.
$ac_ext
10573 if test "${xlinux_first_failure}" = "yes"; then
10574 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10575 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10576 OLD_CPPFLAGS
="$CPPFLAGS"
10578 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10579 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10580 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10581 LIBS
="$LIBS -b i486-linuxaout"
10582 cat >conftest.
$ac_ext <<_ACEOF
10585 cat confdefs.h
>>conftest.
$ac_ext
10586 cat >>conftest.
$ac_ext <<_ACEOF
10587 /* end confdefs.h. */
10592 XOpenDisplay ("foo");
10597 rm -f conftest.
$ac_objext conftest
$ac_exeext
10598 if { (ac_try
="$ac_link"
10599 case "(($ac_try" in
10600 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10601 *) ac_try_echo=$ac_try;;
10603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10604 (eval "$ac_link") 2>conftest.er1
10606 grep -v '^ *+' conftest.er1 >conftest.err
10608 cat conftest.err >&5
10609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610 (exit $ac_status); } && {
10611 test -z "$ac_c_werror_flag" ||
10612 test ! -s conftest.err
10613 } && test -s conftest$ac_exeext &&
10614 $as_test_x conftest$ac_exeext; then
10615 xlinux_second_failure=no
10617 echo "$as_me: failed program was:" >&5
10618 sed 's/^/| /' conftest.$ac_ext >&5
10620 xlinux_second_failure=yes
10623 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10624 conftest$ac_exeext conftest.$ac_ext
10625 if test "${xlinux_second_failure}" = "yes"; then
10626 # If we get the same failure with -b, there is no use adding -b.
10627 # So take it out. This plays safe.
10628 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10629 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10630 CPPFLAGS="$OLD_CPPFLAGS"
10632 { echo "$as_me:$LINENO: result: no" >&5
10633 echo "${ECHO_T}no" >&6; }
10635 { echo "$as_me:$LINENO: result: yes" >&5
10636 echo "${ECHO_T}yes" >&6; }
10639 { echo "$as_me:$LINENO: result: no" >&5
10640 echo "${ECHO_T}no" >&6; }
10644 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10645 # header files included from there.
10646 { echo "$as_me:$LINENO: checking for Xkb" >&5
10647 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10648 cat >conftest.$ac_ext <<_ACEOF
10651 cat confdefs.h >>conftest.$ac_ext
10652 cat >>conftest.$ac_ext <<_ACEOF
10653 /* end confdefs.h. */
10654 #include <X11/Xlib.h>
10655 #include <X11/XKBlib.h>
10659 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10664 rm -f conftest.$ac_objext conftest$ac_exeext
10665 if { (ac_try="$ac_link"
10666 case "(($ac_try" in
10667 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10668 *) ac_try_echo
=$ac_try;;
10670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10671 (eval "$ac_link") 2>conftest.er1
10673 grep -v '^ *+' conftest.er1
>conftest.err
10675 cat conftest.err
>&5
10676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10677 (exit $ac_status); } && {
10678 test -z "$ac_c_werror_flag" ||
10679 test ! -s conftest.err
10680 } && test -s conftest
$ac_exeext &&
10681 $as_test_x conftest
$ac_exeext; then
10684 echo "$as_me: failed program was:" >&5
10685 sed 's/^/| /' conftest.
$ac_ext >&5
10690 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10691 conftest
$ac_exeext conftest.
$ac_ext
10692 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10693 echo "${ECHO_T}$emacs_xkb" >&6; }
10694 if test $emacs_xkb = yes; then
10696 cat >>confdefs.h
<<\_ACEOF
10697 #define HAVE_XKBGETKEYBOARD 1
10706 for ac_func
in XrmSetDatabase XScreenResourceString \
10707 XScreenNumberOfScreen XSetWMProtocols
10709 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10710 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10711 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10712 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10713 echo $ECHO_N "(cached) $ECHO_C" >&6
10715 cat >conftest.
$ac_ext <<_ACEOF
10718 cat confdefs.h
>>conftest.
$ac_ext
10719 cat >>conftest.
$ac_ext <<_ACEOF
10720 /* end confdefs.h. */
10721 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10723 #define $ac_func innocuous_$ac_func
10725 /* System header to define __stub macros and hopefully few prototypes,
10726 which can conflict with char $ac_func (); below.
10727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10728 <limits.h> exists even on freestanding compilers. */
10731 # include <limits.h>
10733 # include <assert.h>
10738 /* Override any GCC internal prototype to avoid an error.
10739 Use char because int might match the return type of a GCC
10740 builtin and then its argument prototype would still apply. */
10745 /* The GNU C library defines this for functions which it implements
10746 to always fail with ENOSYS. Some functions are actually named
10747 something starting with __ and the normal name is an alias. */
10748 #if defined __stub_$ac_func || defined __stub___$ac_func
10755 return $ac_func ();
10760 rm -f conftest.
$ac_objext conftest
$ac_exeext
10761 if { (ac_try
="$ac_link"
10762 case "(($ac_try" in
10763 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10764 *) ac_try_echo=$ac_try;;
10766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10767 (eval "$ac_link") 2>conftest.er1
10769 grep -v '^ *+' conftest.er1 >conftest.err
10771 cat conftest.err >&5
10772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773 (exit $ac_status); } && {
10774 test -z "$ac_c_werror_flag" ||
10775 test ! -s conftest.err
10776 } && test -s conftest$ac_exeext &&
10777 $as_test_x conftest$ac_exeext; then
10778 eval "$as_ac_var=yes"
10780 echo "$as_me: failed program was:" >&5
10781 sed 's/^/| /' conftest.$ac_ext >&5
10783 eval "$as_ac_var=no"
10786 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10787 conftest$ac_exeext conftest.$ac_ext
10789 ac_res=`eval echo '${'$as_ac_var'}'`
10790 { echo "$as_me:$LINENO: result: $ac_res" >&5
10791 echo "${ECHO_T}$ac_res" >&6; }
10792 if test `eval echo '${'$as_ac_var'}'` = yes; then
10793 cat >>confdefs.h <<_ACEOF
10794 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10802 if test "${window_system}" = "x11"; then
10803 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10804 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10805 if test "${emacs_cv_x11_version_6+set}" = set; then
10806 echo $ECHO_N "(cached) $ECHO_C" >&6
10808 cat >conftest.$ac_ext <<_ACEOF
10811 cat confdefs.h >>conftest.$ac_ext
10812 cat >>conftest.$ac_ext <<_ACEOF
10813 /* end confdefs.h. */
10814 #include <X11/Xlib.h>
10818 #if XlibSpecificationRelease < 6
10826 rm -f conftest.$ac_objext conftest$ac_exeext
10827 if { (ac_try="$ac_link"
10828 case "(($ac_try" in
10829 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10830 *) ac_try_echo
=$ac_try;;
10832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10833 (eval "$ac_link") 2>conftest.er1
10835 grep -v '^ *+' conftest.er1
>conftest.err
10837 cat conftest.err
>&5
10838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10839 (exit $ac_status); } && {
10840 test -z "$ac_c_werror_flag" ||
10841 test ! -s conftest.err
10842 } && test -s conftest
$ac_exeext &&
10843 $as_test_x conftest
$ac_exeext; then
10844 emacs_cv_x11_version_6
=yes
10846 echo "$as_me: failed program was:" >&5
10847 sed 's/^/| /' conftest.
$ac_ext >&5
10849 emacs_cv_x11_version_6
=no
10852 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10853 conftest
$ac_exeext conftest.
$ac_ext
10856 if test $emacs_cv_x11_version_6 = yes; then
10857 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10858 echo "${ECHO_T}6 or newer" >&6; }
10860 cat >>confdefs.h
<<\_ACEOF
10861 #define HAVE_X11R6 1
10865 { echo "$as_me:$LINENO: result: before 6" >&5
10866 echo "${ECHO_T}before 6" >&6; }
10870 if test "${window_system}" = "x11"; then
10871 { echo "$as_me:$LINENO: checking X11 version 5" >&5
10872 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6; }
10873 if test "${emacs_cv_x11_version_5+set}" = set; then
10874 echo $ECHO_N "(cached) $ECHO_C" >&6
10876 cat >conftest.
$ac_ext <<_ACEOF
10879 cat confdefs.h
>>conftest.
$ac_ext
10880 cat >>conftest.
$ac_ext <<_ACEOF
10881 /* end confdefs.h. */
10882 #include <X11/Xlib.h>
10886 #if XlibSpecificationRelease < 5
10894 rm -f conftest.
$ac_objext conftest
$ac_exeext
10895 if { (ac_try
="$ac_link"
10896 case "(($ac_try" in
10897 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10898 *) ac_try_echo=$ac_try;;
10900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10901 (eval "$ac_link") 2>conftest.er1
10903 grep -v '^ *+' conftest.er1 >conftest.err
10905 cat conftest.err >&5
10906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10907 (exit $ac_status); } && {
10908 test -z "$ac_c_werror_flag" ||
10909 test ! -s conftest.err
10910 } && test -s conftest$ac_exeext &&
10911 $as_test_x conftest$ac_exeext; then
10912 emacs_cv_x11_version_5=yes
10914 echo "$as_me: failed program was:" >&5
10915 sed 's/^/| /' conftest.$ac_ext >&5
10917 emacs_cv_x11_version_5=no
10920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10921 conftest$ac_exeext conftest.$ac_ext
10924 if test $emacs_cv_x11_version_5 = yes; then
10925 { echo "$as_me:$LINENO: result: 5 or newer" >&5
10926 echo "${ECHO_T}5 or newer" >&6; }
10929 cat >>confdefs.h <<\_ACEOF
10930 #define HAVE_X11R5 1
10935 { echo "$as_me:$LINENO: result: before 5" >&5
10936 echo "${ECHO_T}before 5" >&6; }
10941 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
10944 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
10945 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10946 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10947 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10948 { (exit 1); exit 1; }; };
10952 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10954 if test "X${with_pkg_config_prog}" != X; then
10955 PKG_CONFIG="${with_pkg_config_prog}"
10960 if test -z "$PKG_CONFIG"; then
10961 # Extract the first word of "pkg-config", so it can be a program name with args.
10962 set dummy pkg-config; ac_word=$2
10963 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10965 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10966 echo $ECHO_N "(cached) $ECHO_C" >&6
10968 case $PKG_CONFIG in
10970 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10974 for as_dir in $PATH
10977 test -z "$as_dir" && as_dir=.
10978 for ac_exec_ext in '' $ac_executable_extensions; do
10979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10980 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10988 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10992 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10993 if test -n "$PKG_CONFIG"; then
10994 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10995 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10997 { echo "$as_me:$LINENO: result: no" >&5
10998 echo "${ECHO_T}no" >&6; }
11004 if test "$PKG_CONFIG" = "no" ; then
11005 { { echo "$as_me:$LINENO: error:
11006 *** 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
11007 echo "$as_me: error:
11008 *** 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;}
11009 { (exit 1); exit 1; }; }
11011 PKG_CONFIG_MIN_VERSION=0.9.0
11012 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11013 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11014 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
11016 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11017 { echo "$as_me:$LINENO: result: yes" >&5
11018 echo "${ECHO_T}yes" >&6; }
11021 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11022 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
11023 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"`
11024 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11025 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11027 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11028 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11029 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"`
11030 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11031 echo "${ECHO_T}$GTK_LIBS" >&6; }
11033 { echo "$as_me:$LINENO: result: no" >&5
11034 echo "${ECHO_T}no" >&6; }
11037 ## If we have a custom action on failure, don't print errors, but
11038 ## do set a variable so people can do so.
11039 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11040 echo $GTK_PKG_ERRORS
11046 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11047 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11051 if test $succeeded = yes; then
11054 { { 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
11055 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;}
11056 { (exit 1); exit 1; }; }
11061 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11062 CFLAGS="$CFLAGS $GTK_CFLAGS"
11063 LIBS="$GTK_LIBS $LIBS"
11066 for ac_func in gtk_main
11068 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11069 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11070 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11071 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11072 echo $ECHO_N "(cached) $ECHO_C" >&6
11074 cat >conftest.$ac_ext <<_ACEOF
11077 cat confdefs.h >>conftest.$ac_ext
11078 cat >>conftest.$ac_ext <<_ACEOF
11079 /* end confdefs.h. */
11080 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11081 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11082 #define $ac_func innocuous_$ac_func
11084 /* System header to define __stub macros and hopefully few prototypes,
11085 which can conflict with char $ac_func (); below.
11086 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11087 <limits.h> exists even on freestanding compilers. */
11090 # include <limits.h>
11092 # include <assert.h>
11097 /* Override any GCC internal prototype to avoid an error.
11098 Use char because int might match the return type of a GCC
11099 builtin and then its argument prototype would still apply. */
11104 /* The GNU C library defines this for functions which it implements
11105 to always fail with ENOSYS. Some functions are actually named
11106 something starting with __ and the normal name is an alias. */
11107 #if defined __stub_$ac_func || defined __stub___$ac_func
11114 return $ac_func ();
11119 rm -f conftest.$ac_objext conftest$ac_exeext
11120 if { (ac_try="$ac_link"
11121 case "(($ac_try" in
11122 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11123 *) ac_try_echo
=$ac_try;;
11125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11126 (eval "$ac_link") 2>conftest.er1
11128 grep -v '^ *+' conftest.er1
>conftest.err
11130 cat conftest.err
>&5
11131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11132 (exit $ac_status); } && {
11133 test -z "$ac_c_werror_flag" ||
11134 test ! -s conftest.err
11135 } && test -s conftest
$ac_exeext &&
11136 $as_test_x conftest
$ac_exeext; then
11137 eval "$as_ac_var=yes"
11139 echo "$as_me: failed program was:" >&5
11140 sed 's/^/| /' conftest.
$ac_ext >&5
11142 eval "$as_ac_var=no"
11145 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11146 conftest
$ac_exeext conftest.
$ac_ext
11148 ac_res
=`eval echo '${'$as_ac_var'}'`
11149 { echo "$as_me:$LINENO: result: $ac_res" >&5
11150 echo "${ECHO_T}$ac_res" >&6; }
11151 if test `eval echo '${'$as_ac_var'}'` = yes; then
11152 cat >>confdefs.h
<<_ACEOF
11153 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11159 if test "${GTK_COMPILES}" != "yes"; then
11160 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11161 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11162 { (exit 1); exit 1; }; };
11167 cat >>confdefs.h
<<\_ACEOF
11173 if test "$with_toolkit_scroll_bars" != no
; then
11174 with_toolkit_scroll_bars
=yes
11177 HAVE_GTK_MULTIDISPLAY
=no
11179 for ac_func
in gdk_display_open
11181 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11182 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11183 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11184 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11185 echo $ECHO_N "(cached) $ECHO_C" >&6
11187 cat >conftest.
$ac_ext <<_ACEOF
11190 cat confdefs.h
>>conftest.
$ac_ext
11191 cat >>conftest.
$ac_ext <<_ACEOF
11192 /* end confdefs.h. */
11193 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11194 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11195 #define $ac_func innocuous_$ac_func
11197 /* System header to define __stub macros and hopefully few prototypes,
11198 which can conflict with char $ac_func (); below.
11199 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11200 <limits.h> exists even on freestanding compilers. */
11203 # include <limits.h>
11205 # include <assert.h>
11210 /* Override any GCC internal prototype to avoid an error.
11211 Use char because int might match the return type of a GCC
11212 builtin and then its argument prototype would still apply. */
11217 /* The GNU C library defines this for functions which it implements
11218 to always fail with ENOSYS. Some functions are actually named
11219 something starting with __ and the normal name is an alias. */
11220 #if defined __stub_$ac_func || defined __stub___$ac_func
11227 return $ac_func ();
11232 rm -f conftest.
$ac_objext conftest
$ac_exeext
11233 if { (ac_try
="$ac_link"
11234 case "(($ac_try" in
11235 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11236 *) ac_try_echo=$ac_try;;
11238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11239 (eval "$ac_link") 2>conftest.er1
11241 grep -v '^ *+' conftest.er1 >conftest.err
11243 cat conftest.err >&5
11244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11245 (exit $ac_status); } && {
11246 test -z "$ac_c_werror_flag" ||
11247 test ! -s conftest.err
11248 } && test -s conftest$ac_exeext &&
11249 $as_test_x conftest$ac_exeext; then
11250 eval "$as_ac_var=yes"
11252 echo "$as_me: failed program was:" >&5
11253 sed 's/^/| /' conftest.$ac_ext >&5
11255 eval "$as_ac_var=no"
11258 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11259 conftest$ac_exeext conftest.$ac_ext
11261 ac_res=`eval echo '${'$as_ac_var'}'`
11262 { echo "$as_me:$LINENO: result: $ac_res" >&5
11263 echo "${ECHO_T}$ac_res" >&6; }
11264 if test `eval echo '${'$as_ac_var'}'` = yes; then
11265 cat >>confdefs.h <<_ACEOF
11266 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11268 HAVE_GTK_MULTIDISPLAY=yes
11272 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11274 cat >>confdefs.h <<\_ACEOF
11275 #define HAVE_GTK_MULTIDISPLAY 1
11279 HAVE_GTK_FILE_SELECTION=no
11281 for ac_func in gtk_file_selection_new
11283 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11284 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11285 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11286 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11287 echo $ECHO_N "(cached) $ECHO_C" >&6
11289 cat >conftest.$ac_ext <<_ACEOF
11292 cat confdefs.h >>conftest.$ac_ext
11293 cat >>conftest.$ac_ext <<_ACEOF
11294 /* end confdefs.h. */
11295 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11296 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11297 #define $ac_func innocuous_$ac_func
11299 /* System header to define __stub macros and hopefully few prototypes,
11300 which can conflict with char $ac_func (); below.
11301 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11302 <limits.h> exists even on freestanding compilers. */
11305 # include <limits.h>
11307 # include <assert.h>
11312 /* Override any GCC internal prototype to avoid an error.
11313 Use char because int might match the return type of a GCC
11314 builtin and then its argument prototype would still apply. */
11319 /* The GNU C library defines this for functions which it implements
11320 to always fail with ENOSYS. Some functions are actually named
11321 something starting with __ and the normal name is an alias. */
11322 #if defined __stub_$ac_func || defined __stub___$ac_func
11329 return $ac_func ();
11334 rm -f conftest.$ac_objext conftest$ac_exeext
11335 if { (ac_try="$ac_link"
11336 case "(($ac_try" in
11337 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11338 *) ac_try_echo
=$ac_try;;
11340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11341 (eval "$ac_link") 2>conftest.er1
11343 grep -v '^ *+' conftest.er1
>conftest.err
11345 cat conftest.err
>&5
11346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347 (exit $ac_status); } && {
11348 test -z "$ac_c_werror_flag" ||
11349 test ! -s conftest.err
11350 } && test -s conftest
$ac_exeext &&
11351 $as_test_x conftest
$ac_exeext; then
11352 eval "$as_ac_var=yes"
11354 echo "$as_me: failed program was:" >&5
11355 sed 's/^/| /' conftest.
$ac_ext >&5
11357 eval "$as_ac_var=no"
11360 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11361 conftest
$ac_exeext conftest.
$ac_ext
11363 ac_res
=`eval echo '${'$as_ac_var'}'`
11364 { echo "$as_me:$LINENO: result: $ac_res" >&5
11365 echo "${ECHO_T}$ac_res" >&6; }
11366 if test `eval echo '${'$as_ac_var'}'` = yes; then
11367 cat >>confdefs.h
<<_ACEOF
11368 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11370 HAVE_GTK_FILE_SELECTION
=yes
11375 HAVE_GTK_FILE_CHOOSER
=no
11377 for ac_func
in gtk_file_chooser_dialog_new
11379 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11380 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11381 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11382 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11383 echo $ECHO_N "(cached) $ECHO_C" >&6
11385 cat >conftest.
$ac_ext <<_ACEOF
11388 cat confdefs.h
>>conftest.
$ac_ext
11389 cat >>conftest.
$ac_ext <<_ACEOF
11390 /* end confdefs.h. */
11391 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11392 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11393 #define $ac_func innocuous_$ac_func
11395 /* System header to define __stub macros and hopefully few prototypes,
11396 which can conflict with char $ac_func (); below.
11397 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11398 <limits.h> exists even on freestanding compilers. */
11401 # include <limits.h>
11403 # include <assert.h>
11408 /* Override any GCC internal prototype to avoid an error.
11409 Use char because int might match the return type of a GCC
11410 builtin and then its argument prototype would still apply. */
11415 /* The GNU C library defines this for functions which it implements
11416 to always fail with ENOSYS. Some functions are actually named
11417 something starting with __ and the normal name is an alias. */
11418 #if defined __stub_$ac_func || defined __stub___$ac_func
11425 return $ac_func ();
11430 rm -f conftest.
$ac_objext conftest
$ac_exeext
11431 if { (ac_try
="$ac_link"
11432 case "(($ac_try" in
11433 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11434 *) ac_try_echo=$ac_try;;
11436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11437 (eval "$ac_link") 2>conftest.er1
11439 grep -v '^ *+' conftest.er1 >conftest.err
11441 cat conftest.err >&5
11442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11443 (exit $ac_status); } && {
11444 test -z "$ac_c_werror_flag" ||
11445 test ! -s conftest.err
11446 } && test -s conftest$ac_exeext &&
11447 $as_test_x conftest$ac_exeext; then
11448 eval "$as_ac_var=yes"
11450 echo "$as_me: failed program was:" >&5
11451 sed 's/^/| /' conftest.$ac_ext >&5
11453 eval "$as_ac_var=no"
11456 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11457 conftest$ac_exeext conftest.$ac_ext
11459 ac_res=`eval echo '${'$as_ac_var'}'`
11460 { echo "$as_me:$LINENO: result: $ac_res" >&5
11461 echo "${ECHO_T}$ac_res" >&6; }
11462 if test `eval echo '${'$as_ac_var'}'` = yes; then
11463 cat >>confdefs.h <<_ACEOF
11464 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11466 HAVE_GTK_FILE_CHOOSER=yes
11471 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11472 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11474 cat >>confdefs.h <<\_ACEOF
11475 #define HAVE_GTK_FILE_BOTH 1
11480 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11481 HAVE_GTK_AND_PTHREAD=no
11483 for ac_header in pthread.h
11485 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
11486 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11487 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11489 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11490 echo $ECHO_N "(cached) $ECHO_C" >&6
11492 ac_res=`eval echo '${'$as_ac_Header'}'`
11493 { echo "$as_me:$LINENO: result: $ac_res" >&5
11494 echo "${ECHO_T}$ac_res" >&6; }
11496 # Is the header compilable?
11497 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11498 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11499 cat >conftest.$ac_ext <<_ACEOF
11502 cat confdefs.h >>conftest.$ac_ext
11503 cat >>conftest.$ac_ext <<_ACEOF
11504 /* end confdefs.h. */
11505 $ac_includes_default
11506 #include <$ac_header>
11508 rm -f conftest.$ac_objext
11509 if { (ac_try="$ac_compile"
11510 case "(($ac_try" in
11511 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11512 *) ac_try_echo
=$ac_try;;
11514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11515 (eval "$ac_compile") 2>conftest.er1
11517 grep -v '^ *+' conftest.er1
>conftest.err
11519 cat conftest.err
>&5
11520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11521 (exit $ac_status); } && {
11522 test -z "$ac_c_werror_flag" ||
11523 test ! -s conftest.err
11524 } && test -s conftest.
$ac_objext; then
11525 ac_header_compiler
=yes
11527 echo "$as_me: failed program was:" >&5
11528 sed 's/^/| /' conftest.
$ac_ext >&5
11530 ac_header_compiler
=no
11533 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11534 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11535 echo "${ECHO_T}$ac_header_compiler" >&6; }
11537 # Is the header present?
11538 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11539 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11540 cat >conftest.
$ac_ext <<_ACEOF
11543 cat confdefs.h
>>conftest.
$ac_ext
11544 cat >>conftest.
$ac_ext <<_ACEOF
11545 /* end confdefs.h. */
11546 #include <$ac_header>
11548 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11549 case "(($ac_try" in
11550 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11551 *) ac_try_echo=$ac_try;;
11553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11554 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11556 grep -v '^ *+' conftest.er1 >conftest.err
11558 cat conftest.err >&5
11559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11560 (exit $ac_status); } >/dev/null && {
11561 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11562 test ! -s conftest.err
11564 ac_header_preproc=yes
11566 echo "$as_me: failed program was:" >&5
11567 sed 's/^/| /' conftest.$ac_ext >&5
11569 ac_header_preproc=no
11572 rm -f conftest.err conftest.$ac_ext
11573 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11574 echo "${ECHO_T}$ac_header_preproc" >&6; }
11576 # So? What about this header?
11577 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11579 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11580 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11581 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11582 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11583 ac_header_preproc=yes
11586 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11587 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11588 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11589 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11590 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11591 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11592 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11593 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11594 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11595 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11596 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11597 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11601 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11602 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11603 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11604 echo $ECHO_N "(cached) $ECHO_C" >&6
11606 eval "$as_ac_Header=\$ac_header_preproc"
11608 ac_res=`eval echo '${'$as_ac_Header'}'`
11609 { echo "$as_me:$LINENO: result: $ac_res" >&5
11610 echo "${ECHO_T}$ac_res" >&6; }
11613 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11614 cat >>confdefs.h <<_ACEOF
11615 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11622 if test "$ac_cv_header_pthread_h"; then
11623 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11624 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11625 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11626 echo $ECHO_N "(cached) $ECHO_C" >&6
11628 ac_check_lib_save_LIBS=$LIBS
11629 LIBS="-lpthread $LIBS"
11630 cat >conftest.$ac_ext <<_ACEOF
11633 cat confdefs.h >>conftest.$ac_ext
11634 cat >>conftest.$ac_ext <<_ACEOF
11635 /* end confdefs.h. */
11637 /* Override any GCC internal prototype to avoid an error.
11638 Use char because int might match the return type of a GCC
11639 builtin and then its argument prototype would still apply. */
11643 char pthread_self ();
11647 return pthread_self ();
11652 rm -f conftest.$ac_objext conftest$ac_exeext
11653 if { (ac_try="$ac_link"
11654 case "(($ac_try" in
11655 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11656 *) ac_try_echo
=$ac_try;;
11658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11659 (eval "$ac_link") 2>conftest.er1
11661 grep -v '^ *+' conftest.er1
>conftest.err
11663 cat conftest.err
>&5
11664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11665 (exit $ac_status); } && {
11666 test -z "$ac_c_werror_flag" ||
11667 test ! -s conftest.err
11668 } && test -s conftest
$ac_exeext &&
11669 $as_test_x conftest
$ac_exeext; then
11670 ac_cv_lib_pthread_pthread_self
=yes
11672 echo "$as_me: failed program was:" >&5
11673 sed 's/^/| /' conftest.
$ac_ext >&5
11675 ac_cv_lib_pthread_pthread_self
=no
11678 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11679 conftest
$ac_exeext conftest.
$ac_ext
11680 LIBS
=$ac_check_lib_save_LIBS
11682 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11683 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11684 if test $ac_cv_lib_pthread_pthread_self = yes; then
11685 HAVE_GTK_AND_PTHREAD
=yes
11689 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11690 GTK_LIBS
="$GTK_LIBS -lpthread"
11692 cat >>confdefs.h
<<\_ACEOF
11693 #define HAVE_GTK_AND_PTHREAD 1
11700 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
11701 if test x
"${HAVE_X11R5}" = xyes
; then
11702 { echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
11703 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6; }
11704 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
11705 echo $ECHO_N "(cached) $ECHO_C" >&6
11707 cat >conftest.
$ac_ext <<_ACEOF
11710 cat confdefs.h
>>conftest.
$ac_ext
11711 cat >>conftest.
$ac_ext <<_ACEOF
11712 /* end confdefs.h. */
11714 #include <X11/Intrinsic.h>
11715 #include <X11/Xaw/Simple.h>
11724 rm -f conftest.
$ac_objext conftest
$ac_exeext
11725 if { (ac_try
="$ac_link"
11726 case "(($ac_try" in
11727 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11728 *) ac_try_echo=$ac_try;;
11730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11731 (eval "$ac_link") 2>conftest.er1
11733 grep -v '^ *+' conftest.er1 >conftest.err
11735 cat conftest.err >&5
11736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737 (exit $ac_status); } && {
11738 test -z "$ac_c_werror_flag" ||
11739 test ! -s conftest.err
11740 } && test -s conftest$ac_exeext &&
11741 $as_test_x conftest$ac_exeext; then
11742 emacs_cv_x11_version_5_with_xaw=yes
11744 echo "$as_me: failed program was:" >&5
11745 sed 's/^/| /' conftest.$ac_ext >&5
11747 emacs_cv_x11_version_5_with_xaw=no
11750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11751 conftest$ac_exeext conftest.$ac_ext
11754 if test $emacs_cv_x11_version_5_with_xaw = yes; then
11755 { echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
11756 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6; }
11757 USE_X_TOOLKIT=LUCID
11759 { echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
11760 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6; }
11768 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11770 if test "${USE_X_TOOLKIT}" != "none"; then
11771 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11772 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
11773 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11774 echo $ECHO_N "(cached) $ECHO_C" >&6
11776 cat >conftest.$ac_ext <<_ACEOF
11779 cat confdefs.h >>conftest.$ac_ext
11780 cat >>conftest.$ac_ext <<_ACEOF
11781 /* end confdefs.h. */
11782 #include <X11/Intrinsic.h>
11786 #if XtSpecificationRelease < 6
11794 rm -f conftest.$ac_objext conftest$ac_exeext
11795 if { (ac_try="$ac_link"
11796 case "(($ac_try" in
11797 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11798 *) ac_try_echo
=$ac_try;;
11800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11801 (eval "$ac_link") 2>conftest.er1
11803 grep -v '^ *+' conftest.er1
>conftest.err
11805 cat conftest.err
>&5
11806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11807 (exit $ac_status); } && {
11808 test -z "$ac_c_werror_flag" ||
11809 test ! -s conftest.err
11810 } && test -s conftest
$ac_exeext &&
11811 $as_test_x conftest
$ac_exeext; then
11812 emacs_cv_x11_toolkit_version_6
=yes
11814 echo "$as_me: failed program was:" >&5
11815 sed 's/^/| /' conftest.
$ac_ext >&5
11817 emacs_cv_x11_toolkit_version_6
=no
11820 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11821 conftest
$ac_exeext conftest.
$ac_ext
11824 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
11825 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11826 { echo "$as_me:$LINENO: result: 6 or newer" >&5
11827 echo "${ECHO_T}6 or newer" >&6; }
11829 cat >>confdefs.h
<<\_ACEOF
11830 #define HAVE_X11XTR6 1
11834 { echo "$as_me:$LINENO: result: before 6" >&5
11835 echo "${ECHO_T}before 6" >&6; }
11839 if test x
$HAVE_X11XTR6 = xyes
; then
11840 LIBS
="-lXt -lSM -lICE $LIBS"
11845 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
11846 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
11847 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
11848 echo $ECHO_N "(cached) $ECHO_C" >&6
11850 ac_check_lib_save_LIBS
=$LIBS
11852 cat >conftest.
$ac_ext <<_ACEOF
11855 cat confdefs.h
>>conftest.
$ac_ext
11856 cat >>conftest.
$ac_ext <<_ACEOF
11857 /* end confdefs.h. */
11859 /* Override any GCC internal prototype to avoid an error.
11860 Use char because int might match the return type of a GCC
11861 builtin and then its argument prototype would still apply. */
11865 char XmuConvertStandardSelection ();
11869 return XmuConvertStandardSelection ();
11874 rm -f conftest.
$ac_objext conftest
$ac_exeext
11875 if { (ac_try
="$ac_link"
11876 case "(($ac_try" in
11877 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11878 *) ac_try_echo=$ac_try;;
11880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11881 (eval "$ac_link") 2>conftest.er1
11883 grep -v '^ *+' conftest.er1 >conftest.err
11885 cat conftest.err >&5
11886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887 (exit $ac_status); } && {
11888 test -z "$ac_c_werror_flag" ||
11889 test ! -s conftest.err
11890 } && test -s conftest$ac_exeext &&
11891 $as_test_x conftest$ac_exeext; then
11892 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11894 echo "$as_me: failed program was:" >&5
11895 sed 's/^/| /' conftest.$ac_ext >&5
11897 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11901 conftest$ac_exeext conftest.$ac_ext
11902 LIBS=$ac_check_lib_save_LIBS
11904 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11905 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11906 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
11907 cat >>confdefs.h <<_ACEOF
11908 #define HAVE_LIBXMU 1
11915 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11918 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11919 if test "${HAVE_X11}" = "yes"; then
11920 if test "${USE_X_TOOLKIT}" != "none"; then
11922 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
11923 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
11924 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
11925 echo $ECHO_N "(cached) $ECHO_C" >&6
11927 ac_check_lib_save_LIBS=$LIBS
11928 LIBS="-lXext $LIBS"
11929 cat >conftest.$ac_ext <<_ACEOF
11932 cat confdefs.h >>conftest.$ac_ext
11933 cat >>conftest.$ac_ext <<_ACEOF
11934 /* end confdefs.h. */
11936 /* Override any GCC internal prototype to avoid an error.
11937 Use char because int might match the return type of a GCC
11938 builtin and then its argument prototype would still apply. */
11942 char XShapeQueryExtension ();
11946 return XShapeQueryExtension ();
11951 rm -f conftest.$ac_objext conftest$ac_exeext
11952 if { (ac_try="$ac_link"
11953 case "(($ac_try" in
11954 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11955 *) ac_try_echo
=$ac_try;;
11957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11958 (eval "$ac_link") 2>conftest.er1
11960 grep -v '^ *+' conftest.er1
>conftest.err
11962 cat conftest.err
>&5
11963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11964 (exit $ac_status); } && {
11965 test -z "$ac_c_werror_flag" ||
11966 test ! -s conftest.err
11967 } && test -s conftest
$ac_exeext &&
11968 $as_test_x conftest
$ac_exeext; then
11969 ac_cv_lib_Xext_XShapeQueryExtension
=yes
11971 echo "$as_me: failed program was:" >&5
11972 sed 's/^/| /' conftest.
$ac_ext >&5
11974 ac_cv_lib_Xext_XShapeQueryExtension
=no
11977 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11978 conftest
$ac_exeext conftest.
$ac_ext
11979 LIBS
=$ac_check_lib_save_LIBS
11981 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11982 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11983 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
11984 cat >>confdefs.h
<<_ACEOF
11985 #define HAVE_LIBXEXT 1
11988 LIBS
="-lXext $LIBS"
11995 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11996 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
11997 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
11998 if test "${emacs_cv_motif_version_2_1+set}" = set; then
11999 echo $ECHO_N "(cached) $ECHO_C" >&6
12001 cat >conftest.
$ac_ext <<_ACEOF
12004 cat confdefs.h
>>conftest.
$ac_ext
12005 cat >>conftest.
$ac_ext <<_ACEOF
12006 /* end confdefs.h. */
12011 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12014 Motif version prior to 2.1.
12020 rm -f conftest.
$ac_objext
12021 if { (ac_try
="$ac_compile"
12022 case "(($ac_try" in
12023 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12024 *) ac_try_echo=$ac_try;;
12026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12027 (eval "$ac_compile") 2>conftest.er1
12029 grep -v '^ *+' conftest.er1 >conftest.err
12031 cat conftest.err >&5
12032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12033 (exit $ac_status); } && {
12034 test -z "$ac_c_werror_flag" ||
12035 test ! -s conftest.err
12036 } && test -s conftest.$ac_objext; then
12037 emacs_cv_motif_version_2_1=yes
12039 echo "$as_me: failed program was:" >&5
12040 sed 's/^/| /' conftest.$ac_ext >&5
12042 emacs_cv_motif_version_2_1=no
12045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12047 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12048 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12049 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12050 if test $emacs_cv_motif_version_2_1 = yes; then
12053 cat >>confdefs.h <<\_ACEOF
12054 #define HAVE_MOTIF_2_1 1
12057 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12058 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12059 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12060 echo $ECHO_N "(cached) $ECHO_C" >&6
12062 ac_check_lib_save_LIBS=$LIBS
12064 cat >conftest.$ac_ext <<_ACEOF
12067 cat confdefs.h >>conftest.$ac_ext
12068 cat >>conftest.$ac_ext <<_ACEOF
12069 /* end confdefs.h. */
12071 /* Override any GCC internal prototype to avoid an error.
12072 Use char because int might match the return type of a GCC
12073 builtin and then its argument prototype would still apply. */
12077 char XpCreateContext ();
12081 return XpCreateContext ();
12086 rm -f conftest.$ac_objext conftest$ac_exeext
12087 if { (ac_try="$ac_link"
12088 case "(($ac_try" in
12089 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12090 *) ac_try_echo
=$ac_try;;
12092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12093 (eval "$ac_link") 2>conftest.er1
12095 grep -v '^ *+' conftest.er1
>conftest.err
12097 cat conftest.err
>&5
12098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12099 (exit $ac_status); } && {
12100 test -z "$ac_c_werror_flag" ||
12101 test ! -s conftest.err
12102 } && test -s conftest
$ac_exeext &&
12103 $as_test_x conftest
$ac_exeext; then
12104 ac_cv_lib_Xp_XpCreateContext
=yes
12106 echo "$as_me: failed program was:" >&5
12107 sed 's/^/| /' conftest.
$ac_ext >&5
12109 ac_cv_lib_Xp_XpCreateContext
=no
12112 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12113 conftest
$ac_exeext conftest.
$ac_ext
12114 LIBS
=$ac_check_lib_save_LIBS
12116 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12117 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12118 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12122 if test ${HAVE_LIBXP} = yes; then
12124 cat >>confdefs.h
<<\_ACEOF
12125 #define HAVE_LIBXP 1
12130 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12131 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12132 if test "${emacs_cv_lesstif+set}" = set; then
12133 echo $ECHO_N "(cached) $ECHO_C" >&6
12135 # We put this in CFLAGS temporarily to precede other -I options
12136 # that might be in CFLAGS temporarily.
12137 # We put this in CPPFLAGS where it precedes the other -I options.
12138 OLD_CPPFLAGS
=$CPPFLAGS
12140 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12141 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12142 cat >conftest.
$ac_ext <<_ACEOF
12145 cat confdefs.h
>>conftest.
$ac_ext
12146 cat >>conftest.
$ac_ext <<_ACEOF
12147 /* end confdefs.h. */
12148 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12157 rm -f conftest.
$ac_objext
12158 if { (ac_try
="$ac_compile"
12159 case "(($ac_try" in
12160 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12161 *) ac_try_echo=$ac_try;;
12163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12164 (eval "$ac_compile") 2>conftest.er1
12166 grep -v '^ *+' conftest.er1 >conftest.err
12168 cat conftest.err >&5
12169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12170 (exit $ac_status); } && {
12171 test -z "$ac_c_werror_flag" ||
12172 test ! -s conftest.err
12173 } && test -s conftest.$ac_objext; then
12174 emacs_cv_lesstif=yes
12176 echo "$as_me: failed program was:" >&5
12177 sed 's/^/| /' conftest.$ac_ext >&5
12179 emacs_cv_lesstif=no
12182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12184 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12185 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12186 if test $emacs_cv_lesstif = yes; then
12187 # Make sure this -I option remains in CPPFLAGS after it is set
12188 # back to REAL_CPPFLAGS.
12189 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12190 # have those other -I options anyway. Ultimately, having this
12191 # directory ultimately in CPPFLAGS will be enough.
12192 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12193 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12196 CPPFLAGS=$OLD_CPPFLAGS
12201 ### Is -lXaw3d available?
12203 if test "${HAVE_X11}" = "yes"; then
12204 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
12205 { echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
12206 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6; }
12207 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
12208 echo $ECHO_N "(cached) $ECHO_C" >&6
12210 cat >conftest.$ac_ext <<_ACEOF
12213 cat confdefs.h >>conftest.$ac_ext
12214 cat >>conftest.$ac_ext <<_ACEOF
12215 /* end confdefs.h. */
12216 #include <X11/Xaw3d/Scrollbar.h>
12218 if { (ac_try="$ac_cpp conftest.$ac_ext"
12219 case "(($ac_try" in
12220 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12221 *) ac_try_echo
=$ac_try;;
12223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12224 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12226 grep -v '^ *+' conftest.er1
>conftest.err
12228 cat conftest.err
>&5
12229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12230 (exit $ac_status); } >/dev
/null
&& {
12231 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12232 test ! -s conftest.err
12234 ac_cv_header_X11_Xaw3d_Scrollbar_h
=yes
12236 echo "$as_me: failed program was:" >&5
12237 sed 's/^/| /' conftest.
$ac_ext >&5
12239 ac_cv_header_X11_Xaw3d_Scrollbar_h
=no
12242 rm -f conftest.err conftest.
$ac_ext
12244 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
12245 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6; }
12246 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
12247 { echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
12248 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6; }
12249 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
12250 echo $ECHO_N "(cached) $ECHO_C" >&6
12252 ac_check_lib_save_LIBS
=$LIBS
12253 LIBS
="-lXaw3d $LIBS"
12254 cat >conftest.
$ac_ext <<_ACEOF
12257 cat confdefs.h
>>conftest.
$ac_ext
12258 cat >>conftest.
$ac_ext <<_ACEOF
12259 /* end confdefs.h. */
12261 /* Override any GCC internal prototype to avoid an error.
12262 Use char because int might match the return type of a GCC
12263 builtin and then its argument prototype would still apply. */
12267 char XawScrollbarSetThumb ();
12271 return XawScrollbarSetThumb ();
12276 rm -f conftest.
$ac_objext conftest
$ac_exeext
12277 if { (ac_try
="$ac_link"
12278 case "(($ac_try" in
12279 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12280 *) ac_try_echo=$ac_try;;
12282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12283 (eval "$ac_link") 2>conftest.er1
12285 grep -v '^ *+' conftest.er1 >conftest.err
12287 cat conftest.err >&5
12288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289 (exit $ac_status); } && {
12290 test -z "$ac_c_werror_flag" ||
12291 test ! -s conftest.err
12292 } && test -s conftest$ac_exeext &&
12293 $as_test_x conftest$ac_exeext; then
12294 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
12296 echo "$as_me: failed program was:" >&5
12297 sed 's/^/| /' conftest.$ac_ext >&5
12299 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
12302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12303 conftest$ac_exeext conftest.$ac_ext
12304 LIBS=$ac_check_lib_save_LIBS
12306 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
12307 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
12308 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
12315 if test "${HAVE_XAW3D}" = "yes"; then
12317 cat >>confdefs.h <<\_ACEOF
12318 #define HAVE_XAW3D 1
12327 USE_TOOLKIT_SCROLL_BARS=no
12328 if test "${with_toolkit_scroll_bars}" != "no"; then
12329 if test "${USE_X_TOOLKIT}" != "none"; then
12330 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12331 cat >>confdefs.h <<\_ACEOF
12332 #define USE_TOOLKIT_SCROLL_BARS 1
12336 USE_TOOLKIT_SCROLL_BARS=yes
12337 elif test "${HAVE_XAW3D}" = "yes"; then
12338 cat >>confdefs.h <<\_ACEOF
12339 #define USE_TOOLKIT_SCROLL_BARS 1
12342 USE_TOOLKIT_SCROLL_BARS=yes
12344 elif test "${HAVE_GTK}" = "yes"; then
12345 cat >>confdefs.h <<\_ACEOF
12346 #define USE_TOOLKIT_SCROLL_BARS 1
12349 USE_TOOLKIT_SCROLL_BARS=yes
12350 elif test "${HAVE_CARBON}" = "yes"; then
12351 cat >>confdefs.h <<\_ACEOF
12352 #define USE_TOOLKIT_SCROLL_BARS 1
12355 USE_TOOLKIT_SCROLL_BARS=yes
12359 cat >conftest.$ac_ext <<_ACEOF
12362 cat confdefs.h >>conftest.$ac_ext
12363 cat >>conftest.$ac_ext <<_ACEOF
12364 /* end confdefs.h. */
12366 #include <X11/Xlib.h>
12367 #include <X11/Xresource.h>
12376 rm -f conftest.$ac_objext
12377 if { (ac_try="$ac_compile"
12378 case "(($ac_try" in
12379 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12380 *) ac_try_echo
=$ac_try;;
12382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12383 (eval "$ac_compile") 2>conftest.er1
12385 grep -v '^ *+' conftest.er1
>conftest.err
12387 cat conftest.err
>&5
12388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12389 (exit $ac_status); } && {
12390 test -z "$ac_c_werror_flag" ||
12391 test ! -s conftest.err
12392 } && test -s conftest.
$ac_objext; then
12395 cat >>confdefs.h
<<\_ACEOF
12400 echo "$as_me: failed program was:" >&5
12401 sed 's/^/| /' conftest.
$ac_ext >&5
12406 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12409 if test "${with_xim}" != "no"; then
12411 cat >>confdefs.h
<<\_ACEOF
12418 if test "${HAVE_XIM}" != "no"; then
12419 late_CFLAGS
=$CFLAGS
12420 if test "$GCC" = yes; then
12421 CFLAGS
="$CFLAGS --pedantic-errors"
12423 cat >conftest.
$ac_ext <<_ACEOF
12426 cat confdefs.h
>>conftest.
$ac_ext
12427 cat >>conftest.
$ac_ext <<_ACEOF
12428 /* end confdefs.h. */
12430 #include <X11/Xlib.h>
12431 #include <X11/Xresource.h>
12440 XPointer *client_data;
12442 /* If we're not using GCC, it's probably not XFree86, and this is
12443 probably right, but we can't use something like --pedantic-errors. */
12444 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12445 char*, XIMProc, XPointer*);
12447 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12453 rm -f conftest.
$ac_objext
12454 if { (ac_try
="$ac_compile"
12455 case "(($ac_try" in
12456 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12457 *) ac_try_echo=$ac_try;;
12459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12460 (eval "$ac_compile") 2>conftest.er1
12462 grep -v '^ *+' conftest.er1 >conftest.err
12464 cat conftest.err >&5
12465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12466 (exit $ac_status); } && {
12467 test -z "$ac_c_werror_flag" ||
12468 test ! -s conftest.err
12469 } && test -s conftest.$ac_objext; then
12470 emacs_cv_arg6_star=yes
12472 echo "$as_me: failed program was:" >&5
12473 sed 's/^/| /' conftest.$ac_ext >&5
12478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12480 if test "$emacs_cv_arg6_star" = yes; then
12481 cat >>confdefs.h <<\_ACEOF
12482 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12486 cat >>confdefs.h <<\_ACEOF
12487 #define XRegisterIMInstantiateCallback_arg6 XPointer
12491 CFLAGS=$late_CFLAGS
12494 ### For font-backend
12495 if test "${USE_FONT_BACKEND}" = "yes"; then
12498 cat >>confdefs.h <<\_ACEOF
12499 #define USE_FONT_BACKEND 1
12503 ### Use -lXft if available, unless `--with-freetype=no
' nor `--with-xft=no'.
12505 if test "${HAVE_X11}" = "yes"; then
12506 if test "x${with_freetype}" = "xno"; then
12509 if test "x${with_xft}" != "xno"; then
12511 if test "X${with_pkg_config_prog}" != X
; then
12512 PKG_CONFIG
="${with_pkg_config_prog}"
12518 if test -z "$PKG_CONFIG"; then
12519 # Extract the first word of "pkg-config", so it can be a program name with args.
12520 set dummy pkg-config
; ac_word
=$2
12521 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12523 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12524 echo $ECHO_N "(cached) $ECHO_C" >&6
12526 case $PKG_CONFIG in
12528 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12531 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12532 for as_dir
in $PATH
12535 test -z "$as_dir" && as_dir
=.
12536 for ac_exec_ext
in '' $ac_executable_extensions; do
12537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12538 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12546 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12550 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12551 if test -n "$PKG_CONFIG"; then
12552 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12553 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12555 { echo "$as_me:$LINENO: result: no" >&5
12556 echo "${ECHO_T}no" >&6; }
12562 if test "$PKG_CONFIG" = "no" ; then
12565 PKG_CONFIG_MIN_VERSION
=0.9.0
12566 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12567 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12568 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12570 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12571 { echo "$as_me:$LINENO: result: yes" >&5
12572 echo "${ECHO_T}yes" >&6; }
12575 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12576 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12577 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"`
12578 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12579 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12581 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12582 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12583 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"`
12584 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12585 echo "${ECHO_T}$XFT_LIBS" >&6; }
12587 { echo "$as_me:$LINENO: result: no" >&5
12588 echo "${ECHO_T}no" >&6; }
12591 ## If we have a custom action on failure, don't print errors, but
12592 ## do set a variable so people can do so.
12593 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12600 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12601 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12605 if test $succeeded = yes; then
12611 if test "$HAVE_XFT" != no
; then
12612 OLD_CPPFLAGS
="$CPPFLAGS"
12613 OLD_CFLAGS
="$CFLAGS"
12615 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
12616 CFLAGS
="$CFLAGS $XFT_CFLAGS"
12617 LIBS
="$XFT_LIBS $LIBS"
12618 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12619 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12620 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12621 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12622 echo $ECHO_N "(cached) $ECHO_C" >&6
12624 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12625 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12627 # Is the header compilable?
12628 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12629 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12630 cat >conftest.
$ac_ext <<_ACEOF
12633 cat confdefs.h
>>conftest.
$ac_ext
12634 cat >>conftest.
$ac_ext <<_ACEOF
12635 /* end confdefs.h. */
12636 $ac_includes_default
12637 #include <X11/Xft/Xft.h>
12639 rm -f conftest.
$ac_objext
12640 if { (ac_try
="$ac_compile"
12641 case "(($ac_try" in
12642 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12643 *) ac_try_echo=$ac_try;;
12645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12646 (eval "$ac_compile") 2>conftest.er1
12648 grep -v '^ *+' conftest.er1 >conftest.err
12650 cat conftest.err >&5
12651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12652 (exit $ac_status); } && {
12653 test -z "$ac_c_werror_flag" ||
12654 test ! -s conftest.err
12655 } && test -s conftest.$ac_objext; then
12656 ac_header_compiler=yes
12658 echo "$as_me: failed program was:" >&5
12659 sed 's/^/| /' conftest.$ac_ext >&5
12661 ac_header_compiler=no
12664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12665 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12666 echo "${ECHO_T}$ac_header_compiler" >&6; }
12668 # Is the header present?
12669 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12670 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12671 cat >conftest.$ac_ext <<_ACEOF
12674 cat confdefs.h >>conftest.$ac_ext
12675 cat >>conftest.$ac_ext <<_ACEOF
12676 /* end confdefs.h. */
12677 #include <X11/Xft/Xft.h>
12679 if { (ac_try="$ac_cpp conftest.$ac_ext"
12680 case "(($ac_try" in
12681 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12682 *) ac_try_echo
=$ac_try;;
12684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12685 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12687 grep -v '^ *+' conftest.er1
>conftest.err
12689 cat conftest.err
>&5
12690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691 (exit $ac_status); } >/dev
/null
&& {
12692 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12693 test ! -s conftest.err
12695 ac_header_preproc
=yes
12697 echo "$as_me: failed program was:" >&5
12698 sed 's/^/| /' conftest.
$ac_ext >&5
12700 ac_header_preproc
=no
12703 rm -f conftest.err conftest.
$ac_ext
12704 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12705 echo "${ECHO_T}$ac_header_preproc" >&6; }
12707 # So? What about this header?
12708 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12710 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12711 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12712 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12713 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12714 ac_header_preproc
=yes
12717 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12718 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12719 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12720 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12721 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12722 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12723 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12724 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12725 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12726 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12727 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12728 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12732 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12733 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12734 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12735 echo $ECHO_N "(cached) $ECHO_C" >&6
12737 ac_cv_header_X11_Xft_Xft_h
=$ac_header_preproc
12739 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12740 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12743 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12744 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12745 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12746 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12747 echo $ECHO_N "(cached) $ECHO_C" >&6
12749 ac_check_lib_save_LIBS
=$LIBS
12750 LIBS
="-lXft $XFT_LIBS $LIBS"
12751 cat >conftest.
$ac_ext <<_ACEOF
12754 cat confdefs.h
>>conftest.
$ac_ext
12755 cat >>conftest.
$ac_ext <<_ACEOF
12756 /* end confdefs.h. */
12758 /* Override any GCC internal prototype to avoid an error.
12759 Use char because int might match the return type of a GCC
12760 builtin and then its argument prototype would still apply. */
12764 char XftFontOpen ();
12768 return XftFontOpen ();
12773 rm -f conftest.
$ac_objext conftest
$ac_exeext
12774 if { (ac_try
="$ac_link"
12775 case "(($ac_try" in
12776 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12777 *) ac_try_echo=$ac_try;;
12779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12780 (eval "$ac_link") 2>conftest.er1
12782 grep -v '^ *+' conftest.er1 >conftest.err
12784 cat conftest.err >&5
12785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12786 (exit $ac_status); } && {
12787 test -z "$ac_c_werror_flag" ||
12788 test ! -s conftest.err
12789 } && test -s conftest$ac_exeext &&
12790 $as_test_x conftest$ac_exeext; then
12791 ac_cv_lib_Xft_XftFontOpen=yes
12793 echo "$as_me: failed program was:" >&5
12794 sed 's/^/| /' conftest.$ac_ext >&5
12796 ac_cv_lib_Xft_XftFontOpen=no
12799 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12800 conftest$ac_exeext conftest.$ac_ext
12801 LIBS=$ac_check_lib_save_LIBS
12803 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12804 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12805 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12813 if test "${HAVE_XFT}" = "yes"; then
12815 cat >>confdefs.h <<\_ACEOF
12820 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12822 CFLAGS="$OLD_CPPFLAGS"
12823 CFLAGS="$OLD_CFLAGS"
12831 ### Use -lfreetype if available, unless `--with-freetype=no
'.
12832 if test "${HAVE_XFT}" = "yes"; then
12834 elif test "x${with_freetype}" != "xno"; then
12835 if test "X${with_pkg_config_prog}" != X; then
12836 PKG_CONFIG="${with_pkg_config_prog}"
12842 if test -z "$PKG_CONFIG"; then
12843 # Extract the first word of "pkg-config", so it can be a program name with args.
12844 set dummy pkg-config; ac_word=$2
12845 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12847 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12848 echo $ECHO_N "(cached) $ECHO_C" >&6
12850 case $PKG_CONFIG in
12852 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12856 for as_dir in $PATH
12859 test -z "$as_dir" && as_dir=.
12860 for ac_exec_ext in '' $ac_executable_extensions; do
12861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12862 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12870 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12874 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12875 if test -n "$PKG_CONFIG"; then
12876 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12877 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12879 { echo "$as_me:$LINENO: result: no" >&5
12880 echo "${ECHO_T}no" >&6; }
12886 if test "$PKG_CONFIG" = "no" ; then
12889 PKG_CONFIG_MIN_VERSION=0.9.0
12890 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12891 { echo "$as_me:$LINENO: checking for freetype2" >&5
12892 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6; }
12894 if $PKG_CONFIG --exists "freetype2" 2>&5; then
12895 { echo "$as_me:$LINENO: result: yes" >&5
12896 echo "${ECHO_T}yes" >&6; }
12899 { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
12900 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6; }
12901 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"`
12902 { echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
12903 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; }
12905 { echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
12906 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6; }
12907 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"`
12908 { echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
12909 echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
12911 { echo "$as_me:$LINENO: result: no" >&5
12912 echo "${ECHO_T}no" >&6; }
12915 ## If we have a custom action on failure, don't print errors
, but
12916 ## do set a variable so people can do so.
12917 FREETYPE_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12924 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12925 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12929 if test $succeeded = yes; then
12935 if test "${HAVE_FREETYPE}" = "yes"; then
12939 if test -z "$PKG_CONFIG"; then
12940 # Extract the first word of "pkg-config", so it can be a program name with args.
12941 set dummy pkg-config
; ac_word
=$2
12942 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12944 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12945 echo $ECHO_N "(cached) $ECHO_C" >&6
12947 case $PKG_CONFIG in
12949 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12952 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12953 for as_dir
in $PATH
12956 test -z "$as_dir" && as_dir
=.
12957 for ac_exec_ext
in '' $ac_executable_extensions; do
12958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12959 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12967 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12971 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12972 if test -n "$PKG_CONFIG"; then
12973 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12974 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12976 { echo "$as_me:$LINENO: result: no" >&5
12977 echo "${ECHO_T}no" >&6; }
12983 if test "$PKG_CONFIG" = "no" ; then
12986 PKG_CONFIG_MIN_VERSION
=0.9.0
12987 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12988 { echo "$as_me:$LINENO: checking for fontconfig" >&5
12989 echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6; }
12991 if $PKG_CONFIG --exists "fontconfig" 2>&5; then
12992 { echo "$as_me:$LINENO: result: yes" >&5
12993 echo "${ECHO_T}yes" >&6; }
12996 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
12997 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6; }
12998 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig"`
12999 { echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13000 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
13002 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13003 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6; }
13004 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig"`
13005 { echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13006 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
13008 { echo "$as_me:$LINENO: result: no" >&5
13009 echo "${ECHO_T}no" >&6; }
13010 FONTCONFIG_CFLAGS
=""
13012 ## If we have a custom action on failure, don't print errors, but
13013 ## do set a variable so people can do so.
13014 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
13021 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13022 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13026 if test $succeeded = yes; then
13032 if test "${HAVE_FC}" = "no"; then
13037 if test "${HAVE_FREETYPE}" = "yes"; then
13039 cat >>confdefs.h
<<\_ACEOF
13040 #define HAVE_FREETYPE 1
13043 # Extract the first word of "libotf-config", so it can be a program name with args.
13044 set dummy libotf-config
; ac_word
=$2
13045 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13047 if test "${ac_cv_prog_HAVE_LIBOTF+set}" = set; then
13048 echo $ECHO_N "(cached) $ECHO_C" >&6
13050 if test -n "$HAVE_LIBOTF"; then
13051 ac_cv_prog_HAVE_LIBOTF
="$HAVE_LIBOTF" # Let the user override the test.
13053 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13054 for as_dir
in $PATH
13057 test -z "$as_dir" && as_dir
=.
13058 for ac_exec_ext
in '' $ac_executable_extensions; do
13059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13060 ac_cv_prog_HAVE_LIBOTF
="yes"
13061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13068 test -z "$ac_cv_prog_HAVE_LIBOTF" && ac_cv_prog_HAVE_LIBOTF
="no"
13071 HAVE_LIBOTF
=$ac_cv_prog_HAVE_LIBOTF
13072 if test -n "$HAVE_LIBOTF"; then
13073 { echo "$as_me:$LINENO: result: $HAVE_LIBOTF" >&5
13074 echo "${ECHO_T}$HAVE_LIBOTF" >&6; }
13076 { echo "$as_me:$LINENO: result: no" >&5
13077 echo "${ECHO_T}no" >&6; }
13081 if test "${HAVE_LIBOTF}" = "yes"; then
13083 cat >>confdefs.h
<<\_ACEOF
13084 #define HAVE_LIBOTF 1
13087 LIBOTF_CFLAGS
=`libotf-config --cflags`
13088 LIBOTF_LIBS
=`libotf-config --libs`
13100 ### Use -lXpm if available, unless `--with-xpm=no'.
13102 if test "${HAVE_X11}" = "yes"; then
13103 if test "${with_xpm}" != "no"; then
13104 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13105 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13106 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13107 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13108 echo $ECHO_N "(cached) $ECHO_C" >&6
13110 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13111 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13113 # Is the header compilable?
13114 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13115 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13116 cat >conftest.
$ac_ext <<_ACEOF
13119 cat confdefs.h
>>conftest.
$ac_ext
13120 cat >>conftest.
$ac_ext <<_ACEOF
13121 /* end confdefs.h. */
13122 $ac_includes_default
13123 #include <X11/xpm.h>
13125 rm -f conftest.
$ac_objext
13126 if { (ac_try
="$ac_compile"
13127 case "(($ac_try" in
13128 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13129 *) ac_try_echo=$ac_try;;
13131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13132 (eval "$ac_compile") 2>conftest.er1
13134 grep -v '^ *+' conftest.er1 >conftest.err
13136 cat conftest.err >&5
13137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13138 (exit $ac_status); } && {
13139 test -z "$ac_c_werror_flag" ||
13140 test ! -s conftest.err
13141 } && test -s conftest.$ac_objext; then
13142 ac_header_compiler=yes
13144 echo "$as_me: failed program was:" >&5
13145 sed 's/^/| /' conftest.$ac_ext >&5
13147 ac_header_compiler=no
13150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13151 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13152 echo "${ECHO_T}$ac_header_compiler" >&6; }
13154 # Is the header present?
13155 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13156 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13157 cat >conftest.$ac_ext <<_ACEOF
13160 cat confdefs.h >>conftest.$ac_ext
13161 cat >>conftest.$ac_ext <<_ACEOF
13162 /* end confdefs.h. */
13163 #include <X11/xpm.h>
13165 if { (ac_try="$ac_cpp conftest.$ac_ext"
13166 case "(($ac_try" in
13167 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13168 *) ac_try_echo
=$ac_try;;
13170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13171 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13173 grep -v '^ *+' conftest.er1
>conftest.err
13175 cat conftest.err
>&5
13176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13177 (exit $ac_status); } >/dev
/null
&& {
13178 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13179 test ! -s conftest.err
13181 ac_header_preproc
=yes
13183 echo "$as_me: failed program was:" >&5
13184 sed 's/^/| /' conftest.
$ac_ext >&5
13186 ac_header_preproc
=no
13189 rm -f conftest.err conftest.
$ac_ext
13190 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13191 echo "${ECHO_T}$ac_header_preproc" >&6; }
13193 # So? What about this header?
13194 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13196 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13197 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13198 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13199 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13200 ac_header_preproc
=yes
13203 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13204 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13205 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13206 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13207 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13208 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13209 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13210 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13211 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13212 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13213 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13214 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13218 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13219 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13220 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13221 echo $ECHO_N "(cached) $ECHO_C" >&6
13223 ac_cv_header_X11_xpm_h
=$ac_header_preproc
13225 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13226 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13229 if test $ac_cv_header_X11_xpm_h = yes; then
13230 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13231 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13232 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13233 echo $ECHO_N "(cached) $ECHO_C" >&6
13235 ac_check_lib_save_LIBS
=$LIBS
13236 LIBS
="-lXpm -lX11 $LIBS"
13237 cat >conftest.
$ac_ext <<_ACEOF
13240 cat confdefs.h
>>conftest.
$ac_ext
13241 cat >>conftest.
$ac_ext <<_ACEOF
13242 /* end confdefs.h. */
13244 /* Override any GCC internal prototype to avoid an error.
13245 Use char because int might match the return type of a GCC
13246 builtin and then its argument prototype would still apply. */
13250 char XpmReadFileToPixmap ();
13254 return XpmReadFileToPixmap ();
13259 rm -f conftest.
$ac_objext conftest
$ac_exeext
13260 if { (ac_try
="$ac_link"
13261 case "(($ac_try" in
13262 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13263 *) ac_try_echo=$ac_try;;
13265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13266 (eval "$ac_link") 2>conftest.er1
13268 grep -v '^ *+' conftest.er1 >conftest.err
13270 cat conftest.err >&5
13271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272 (exit $ac_status); } && {
13273 test -z "$ac_c_werror_flag" ||
13274 test ! -s conftest.err
13275 } && test -s conftest$ac_exeext &&
13276 $as_test_x conftest$ac_exeext; then
13277 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13279 echo "$as_me: failed program was:" >&5
13280 sed 's/^/| /' conftest.$ac_ext >&5
13282 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13286 conftest$ac_exeext conftest.$ac_ext
13287 LIBS=$ac_check_lib_save_LIBS
13289 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13290 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13291 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13298 if test "${HAVE_XPM}" = "yes"; then
13299 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13300 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13301 cat >conftest.$ac_ext <<_ACEOF
13304 cat confdefs.h >>conftest.$ac_ext
13305 cat >>conftest.$ac_ext <<_ACEOF
13306 /* end confdefs.h. */
13307 #include "X11/xpm.h"
13308 #ifndef XpmReturnAllocPixels
13309 no_return_alloc_pixels
13313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13314 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13322 if test "${HAVE_XPM}" = "yes"; then
13323 { echo "$as_me:$LINENO: result: yes" >&5
13324 echo "${ECHO_T}yes" >&6; }
13326 { echo "$as_me:$LINENO: result: no" >&5
13327 echo "${ECHO_T}no" >&6; }
13332 if test "${HAVE_XPM}" = "yes"; then
13334 cat >>confdefs.h <<\_ACEOF
13341 ### Use -ljpeg if available, unless `--with-jpeg=no
'.
13343 if test "${HAVE_X11}" = "yes"; then
13344 if test "${with_jpeg}" != "no"; then
13345 if test "${ac_cv_header_jerror_h+set}" = set; then
13346 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13347 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13348 if test "${ac_cv_header_jerror_h+set}" = set; then
13349 echo $ECHO_N "(cached) $ECHO_C" >&6
13351 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13352 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13354 # Is the header compilable?
13355 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13356 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13357 cat >conftest.$ac_ext <<_ACEOF
13360 cat confdefs.h >>conftest.$ac_ext
13361 cat >>conftest.$ac_ext <<_ACEOF
13362 /* end confdefs.h. */
13363 $ac_includes_default
13364 #include <jerror.h>
13366 rm -f conftest.$ac_objext
13367 if { (ac_try="$ac_compile"
13368 case "(($ac_try" in
13369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13370 *) ac_try_echo=$ac_try;;
13372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13373 (eval "$ac_compile") 2>conftest.er1
13375 grep -v '^
*+' conftest.er1 >conftest.err
13377 cat conftest.err >&5
13378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13379 (exit $ac_status); } && {
13380 test -z "$ac_c_werror_flag" ||
13381 test ! -s conftest.err
13382 } && test -s conftest.$ac_objext; then
13383 ac_header_compiler=yes
13385 echo "$as_me: failed program was:" >&5
13386 sed 's
/^
/|
/' conftest.$ac_ext >&5
13388 ac_header_compiler=no
13391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13392 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13393 echo "${ECHO_T}$ac_header_compiler" >&6; }
13395 # Is the header present?
13396 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13397 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13398 cat >conftest.$ac_ext <<_ACEOF
13401 cat confdefs.h >>conftest.$ac_ext
13402 cat >>conftest.$ac_ext <<_ACEOF
13403 /* end confdefs.h. */
13404 #include <jerror.h>
13406 if { (ac_try="$ac_cpp conftest.$ac_ext"
13407 case "(($ac_try" in
13408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13409 *) ac_try_echo=$ac_try;;
13411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13412 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13414 grep -v '^
*+' conftest.er1 >conftest.err
13416 cat conftest.err >&5
13417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13418 (exit $ac_status); } >/dev/null && {
13419 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13420 test ! -s conftest.err
13422 ac_header_preproc=yes
13424 echo "$as_me: failed program was:" >&5
13425 sed 's
/^
/|
/' conftest.$ac_ext >&5
13427 ac_header_preproc=no
13430 rm -f conftest.err conftest.$ac_ext
13431 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13432 echo "${ECHO_T}$ac_header_preproc" >&6; }
13434 # So? What about this header?
13435 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13437 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13438 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13439 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result
" >&5
13440 echo "$as_me: WARNING
: jerror.h
: proceeding with the compiler
's result" >&2;}
13441 ac_header_preproc=yes
13444 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13445 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13446 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13447 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13448 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13449 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13450 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13451 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13452 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result
" >&5
13453 echo "$as_me: WARNING
: jerror.h
: proceeding with the preprocessor
's result" >&2;}
13454 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13455 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13459 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13460 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13461 if test "${ac_cv_header_jerror_h+set}" = set; then
13462 echo $ECHO_N "(cached) $ECHO_C" >&6
13464 ac_cv_header_jerror_h=$ac_header_preproc
13466 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13467 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13470 if test $ac_cv_header_jerror_h = yes; then
13471 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13472 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13473 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13474 echo $ECHO_N "(cached) $ECHO_C" >&6
13476 ac_check_lib_save_LIBS=$LIBS
13477 LIBS="-ljpeg $LIBS"
13478 cat >conftest.$ac_ext <<_ACEOF
13481 cat confdefs.h >>conftest.$ac_ext
13482 cat >>conftest.$ac_ext <<_ACEOF
13483 /* end confdefs.h. */
13485 /* Override any GCC internal prototype to avoid an error.
13486 Use char because int might match the return type of a GCC
13487 builtin and then its argument prototype would still apply. */
13491 char jpeg_destroy_compress ();
13495 return jpeg_destroy_compress ();
13500 rm -f conftest.$ac_objext conftest$ac_exeext
13501 if { (ac_try="$ac_link"
13502 case "(($ac_try" in
13503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13504 *) ac_try_echo=$ac_try;;
13506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13507 (eval "$ac_link") 2>conftest.er1
13509 grep -v '^
*+' conftest.er1 >conftest.err
13511 cat conftest.err >&5
13512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13513 (exit $ac_status); } && {
13514 test -z "$ac_c_werror_flag" ||
13515 test ! -s conftest.err
13516 } && test -s conftest$ac_exeext &&
13517 $as_test_x conftest$ac_exeext; then
13518 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13520 echo "$as_me: failed program was:" >&5
13521 sed 's
/^
/|
/' conftest.$ac_ext >&5
13523 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13527 conftest$ac_exeext conftest.$ac_ext
13528 LIBS=$ac_check_lib_save_LIBS
13530 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13531 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13532 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13542 if test "${HAVE_JPEG}" = "yes"; then
13543 cat >>confdefs.h <<\_ACEOF
13544 #define HAVE_JPEG 1
13547 cat >conftest.$ac_ext <<_ACEOF
13550 cat confdefs.h >>conftest.$ac_ext
13551 cat >>conftest.$ac_ext <<_ACEOF
13552 /* end confdefs.h. */
13553 #include <jpeglib.h>
13554 version=JPEG_LIB_VERSION
13557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13558 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13559 cat >>confdefs.h <<\_ACEOF
13560 #define HAVE_JPEG 1
13564 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13565 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13573 ### Use -lpng if available, unless `--with-png=no'.
13575 if test "${HAVE_X11}" = "yes"; then
13576 if test "${with_png}" != "no"; then
13577 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13578 # in /usr/include/libpng.
13581 for ac_header
in png.h libpng
/png.h
13583 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13584 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13585 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13586 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13587 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13588 echo $ECHO_N "(cached) $ECHO_C" >&6
13590 ac_res
=`eval echo '${'$as_ac_Header'}'`
13591 { echo "$as_me:$LINENO: result: $ac_res" >&5
13592 echo "${ECHO_T}$ac_res" >&6; }
13594 # Is the header compilable?
13595 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13596 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13597 cat >conftest.
$ac_ext <<_ACEOF
13600 cat confdefs.h
>>conftest.
$ac_ext
13601 cat >>conftest.
$ac_ext <<_ACEOF
13602 /* end confdefs.h. */
13603 $ac_includes_default
13604 #include <$ac_header>
13606 rm -f conftest.
$ac_objext
13607 if { (ac_try
="$ac_compile"
13608 case "(($ac_try" in
13609 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13610 *) ac_try_echo=$ac_try;;
13612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13613 (eval "$ac_compile") 2>conftest.er1
13615 grep -v '^ *+' conftest.er1 >conftest.err
13617 cat conftest.err >&5
13618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13619 (exit $ac_status); } && {
13620 test -z "$ac_c_werror_flag" ||
13621 test ! -s conftest.err
13622 } && test -s conftest.$ac_objext; then
13623 ac_header_compiler=yes
13625 echo "$as_me: failed program was:" >&5
13626 sed 's/^/| /' conftest.$ac_ext >&5
13628 ac_header_compiler=no
13631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13632 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13633 echo "${ECHO_T}$ac_header_compiler" >&6; }
13635 # Is the header present?
13636 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13637 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13638 cat >conftest.$ac_ext <<_ACEOF
13641 cat confdefs.h >>conftest.$ac_ext
13642 cat >>conftest.$ac_ext <<_ACEOF
13643 /* end confdefs.h. */
13644 #include <$ac_header>
13646 if { (ac_try="$ac_cpp conftest.$ac_ext"
13647 case "(($ac_try" in
13648 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13649 *) ac_try_echo
=$ac_try;;
13651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13652 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13654 grep -v '^ *+' conftest.er1
>conftest.err
13656 cat conftest.err
>&5
13657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13658 (exit $ac_status); } >/dev
/null
&& {
13659 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13660 test ! -s conftest.err
13662 ac_header_preproc
=yes
13664 echo "$as_me: failed program was:" >&5
13665 sed 's/^/| /' conftest.
$ac_ext >&5
13667 ac_header_preproc
=no
13670 rm -f conftest.err conftest.
$ac_ext
13671 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13672 echo "${ECHO_T}$ac_header_preproc" >&6; }
13674 # So? What about this header?
13675 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13677 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13678 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13679 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13680 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13681 ac_header_preproc
=yes
13684 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13685 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13686 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13687 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13688 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13689 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13690 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13691 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13692 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13693 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13694 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13695 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13699 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13700 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13701 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13702 echo $ECHO_N "(cached) $ECHO_C" >&6
13704 eval "$as_ac_Header=\$ac_header_preproc"
13706 ac_res
=`eval echo '${'$as_ac_Header'}'`
13707 { echo "$as_me:$LINENO: result: $ac_res" >&5
13708 echo "${ECHO_T}$ac_res" >&6; }
13711 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13712 cat >>confdefs.h
<<_ACEOF
13713 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13720 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
13721 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13722 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13723 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13724 echo $ECHO_N "(cached) $ECHO_C" >&6
13726 ac_check_lib_save_LIBS
=$LIBS
13727 LIBS
="-lpng -lz -lm $LIBS"
13728 cat >conftest.
$ac_ext <<_ACEOF
13731 cat confdefs.h
>>conftest.
$ac_ext
13732 cat >>conftest.
$ac_ext <<_ACEOF
13733 /* end confdefs.h. */
13735 /* Override any GCC internal prototype to avoid an error.
13736 Use char because int might match the return type of a GCC
13737 builtin and then its argument prototype would still apply. */
13741 char png_get_channels ();
13745 return png_get_channels ();
13750 rm -f conftest.
$ac_objext conftest
$ac_exeext
13751 if { (ac_try
="$ac_link"
13752 case "(($ac_try" in
13753 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13754 *) ac_try_echo=$ac_try;;
13756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13757 (eval "$ac_link") 2>conftest.er1
13759 grep -v '^ *+' conftest.er1 >conftest.err
13761 cat conftest.err >&5
13762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13763 (exit $ac_status); } && {
13764 test -z "$ac_c_werror_flag" ||
13765 test ! -s conftest.err
13766 } && test -s conftest$ac_exeext &&
13767 $as_test_x conftest$ac_exeext; then
13768 ac_cv_lib_png_png_get_channels=yes
13770 echo "$as_me: failed program was:" >&5
13771 sed 's/^/| /' conftest.$ac_ext >&5
13773 ac_cv_lib_png_png_get_channels=no
13776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13777 conftest$ac_exeext conftest.$ac_ext
13778 LIBS=$ac_check_lib_save_LIBS
13780 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13781 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13782 if test $ac_cv_lib_png_png_get_channels = yes; then
13789 if test "${HAVE_PNG}" = "yes"; then
13791 cat >>confdefs.h <<\_ACEOF
13798 ### Use -ltiff if available, unless `--with-tiff=no
'.
13800 if test "${HAVE_X11}" = "yes"; then
13801 if test "${with_tiff}" != "no"; then
13802 if test "${ac_cv_header_tiffio_h+set}" = set; then
13803 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13804 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13805 if test "${ac_cv_header_tiffio_h+set}" = set; then
13806 echo $ECHO_N "(cached) $ECHO_C" >&6
13808 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13809 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13811 # Is the header compilable?
13812 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13813 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13814 cat >conftest.$ac_ext <<_ACEOF
13817 cat confdefs.h >>conftest.$ac_ext
13818 cat >>conftest.$ac_ext <<_ACEOF
13819 /* end confdefs.h. */
13820 $ac_includes_default
13821 #include <tiffio.h>
13823 rm -f conftest.$ac_objext
13824 if { (ac_try="$ac_compile"
13825 case "(($ac_try" in
13826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13827 *) ac_try_echo=$ac_try;;
13829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13830 (eval "$ac_compile") 2>conftest.er1
13832 grep -v '^
*+' conftest.er1 >conftest.err
13834 cat conftest.err >&5
13835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13836 (exit $ac_status); } && {
13837 test -z "$ac_c_werror_flag" ||
13838 test ! -s conftest.err
13839 } && test -s conftest.$ac_objext; then
13840 ac_header_compiler=yes
13842 echo "$as_me: failed program was:" >&5
13843 sed 's
/^
/|
/' conftest.$ac_ext >&5
13845 ac_header_compiler=no
13848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13849 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13850 echo "${ECHO_T}$ac_header_compiler" >&6; }
13852 # Is the header present?
13853 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13854 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13855 cat >conftest.$ac_ext <<_ACEOF
13858 cat confdefs.h >>conftest.$ac_ext
13859 cat >>conftest.$ac_ext <<_ACEOF
13860 /* end confdefs.h. */
13861 #include <tiffio.h>
13863 if { (ac_try="$ac_cpp conftest.$ac_ext"
13864 case "(($ac_try" in
13865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13866 *) ac_try_echo=$ac_try;;
13868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13869 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13871 grep -v '^
*+' conftest.er1 >conftest.err
13873 cat conftest.err >&5
13874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13875 (exit $ac_status); } >/dev/null && {
13876 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13877 test ! -s conftest.err
13879 ac_header_preproc=yes
13881 echo "$as_me: failed program was:" >&5
13882 sed 's
/^
/|
/' conftest.$ac_ext >&5
13884 ac_header_preproc=no
13887 rm -f conftest.err conftest.$ac_ext
13888 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13889 echo "${ECHO_T}$ac_header_preproc" >&6; }
13891 # So? What about this header?
13892 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13894 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13895 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13896 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result
" >&5
13897 echo "$as_me: WARNING
: tiffio.h
: proceeding with the compiler
's result" >&2;}
13898 ac_header_preproc=yes
13901 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13902 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13903 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13904 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13905 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13906 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13907 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13908 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13909 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result
" >&5
13910 echo "$as_me: WARNING
: tiffio.h
: proceeding with the preprocessor
's result" >&2;}
13911 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13912 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13916 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13917 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13918 if test "${ac_cv_header_tiffio_h+set}" = set; then
13919 echo $ECHO_N "(cached) $ECHO_C" >&6
13921 ac_cv_header_tiffio_h=$ac_header_preproc
13923 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13924 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13927 if test $ac_cv_header_tiffio_h = yes; then
13929 # At least one tiff package requires the jpeg library.
13930 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13931 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
13932 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
13933 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
13934 echo $ECHO_N "(cached) $ECHO_C" >&6
13936 ac_check_lib_save_LIBS=$LIBS
13937 LIBS="-ltiff $tifflibs $LIBS"
13938 cat >conftest.$ac_ext <<_ACEOF
13941 cat confdefs.h >>conftest.$ac_ext
13942 cat >>conftest.$ac_ext <<_ACEOF
13943 /* end confdefs.h. */
13945 /* Override any GCC internal prototype to avoid an error.
13946 Use char because int might match the return type of a GCC
13947 builtin and then its argument prototype would still apply. */
13951 char TIFFGetVersion ();
13955 return TIFFGetVersion ();
13960 rm -f conftest.$ac_objext conftest$ac_exeext
13961 if { (ac_try="$ac_link"
13962 case "(($ac_try" in
13963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13964 *) ac_try_echo=$ac_try;;
13966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13967 (eval "$ac_link") 2>conftest.er1
13969 grep -v '^
*+' conftest.er1 >conftest.err
13971 cat conftest.err >&5
13972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13973 (exit $ac_status); } && {
13974 test -z "$ac_c_werror_flag" ||
13975 test ! -s conftest.err
13976 } && test -s conftest$ac_exeext &&
13977 $as_test_x conftest$ac_exeext; then
13978 ac_cv_lib_tiff_TIFFGetVersion=yes
13980 echo "$as_me: failed program was:" >&5
13981 sed 's
/^
/|
/' conftest.$ac_ext >&5
13983 ac_cv_lib_tiff_TIFFGetVersion=no
13986 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13987 conftest$ac_exeext conftest.$ac_ext
13988 LIBS=$ac_check_lib_save_LIBS
13990 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13991 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13992 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14001 if test "${HAVE_TIFF}" = "yes"; then
14003 cat >>confdefs.h <<\_ACEOF
14004 #define HAVE_TIFF 1
14010 ### Use -lgif if available, unless `--with-gif=no'.
14012 if test "${HAVE_X11}" = "yes"; then
14013 if test "${with_gif}" != "no"; then
14014 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14015 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14016 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14017 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14018 echo $ECHO_N "(cached) $ECHO_C" >&6
14020 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14021 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14023 # Is the header compilable?
14024 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14025 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14026 cat >conftest.
$ac_ext <<_ACEOF
14029 cat confdefs.h
>>conftest.
$ac_ext
14030 cat >>conftest.
$ac_ext <<_ACEOF
14031 /* end confdefs.h. */
14032 $ac_includes_default
14033 #include <gif_lib.h>
14035 rm -f conftest.
$ac_objext
14036 if { (ac_try
="$ac_compile"
14037 case "(($ac_try" in
14038 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14039 *) ac_try_echo=$ac_try;;
14041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14042 (eval "$ac_compile") 2>conftest.er1
14044 grep -v '^ *+' conftest.er1 >conftest.err
14046 cat conftest.err >&5
14047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14048 (exit $ac_status); } && {
14049 test -z "$ac_c_werror_flag" ||
14050 test ! -s conftest.err
14051 } && test -s conftest.$ac_objext; then
14052 ac_header_compiler=yes
14054 echo "$as_me: failed program was:" >&5
14055 sed 's/^/| /' conftest.$ac_ext >&5
14057 ac_header_compiler=no
14060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14061 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14062 echo "${ECHO_T}$ac_header_compiler" >&6; }
14064 # Is the header present?
14065 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14066 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14067 cat >conftest.$ac_ext <<_ACEOF
14070 cat confdefs.h >>conftest.$ac_ext
14071 cat >>conftest.$ac_ext <<_ACEOF
14072 /* end confdefs.h. */
14073 #include <gif_lib.h>
14075 if { (ac_try="$ac_cpp conftest.$ac_ext"
14076 case "(($ac_try" in
14077 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14078 *) ac_try_echo
=$ac_try;;
14080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14081 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14083 grep -v '^ *+' conftest.er1
>conftest.err
14085 cat conftest.err
>&5
14086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14087 (exit $ac_status); } >/dev
/null
&& {
14088 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14089 test ! -s conftest.err
14091 ac_header_preproc
=yes
14093 echo "$as_me: failed program was:" >&5
14094 sed 's/^/| /' conftest.
$ac_ext >&5
14096 ac_header_preproc
=no
14099 rm -f conftest.err conftest.
$ac_ext
14100 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14101 echo "${ECHO_T}$ac_header_preproc" >&6; }
14103 # So? What about this header?
14104 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14106 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14107 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14108 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14109 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14110 ac_header_preproc
=yes
14113 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14114 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14115 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14116 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14117 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14118 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14119 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14120 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14121 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14122 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14123 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14124 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14128 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14129 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14130 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14131 echo $ECHO_N "(cached) $ECHO_C" >&6
14133 ac_cv_header_gif_lib_h
=$ac_header_preproc
14135 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14136 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14139 if test $ac_cv_header_gif_lib_h = yes; then
14140 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14141 # Earlier versions can crash Emacs.
14142 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14143 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14144 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14145 echo $ECHO_N "(cached) $ECHO_C" >&6
14147 ac_check_lib_save_LIBS
=$LIBS
14148 LIBS
="-lungif $LIBS"
14149 cat >conftest.
$ac_ext <<_ACEOF
14152 cat confdefs.h
>>conftest.
$ac_ext
14153 cat >>conftest.
$ac_ext <<_ACEOF
14154 /* end confdefs.h. */
14156 /* Override any GCC internal prototype to avoid an error.
14157 Use char because int might match the return type of a GCC
14158 builtin and then its argument prototype would still apply. */
14162 char EGifPutExtensionLast ();
14166 return EGifPutExtensionLast ();
14171 rm -f conftest.
$ac_objext conftest
$ac_exeext
14172 if { (ac_try
="$ac_link"
14173 case "(($ac_try" in
14174 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14175 *) ac_try_echo=$ac_try;;
14177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14178 (eval "$ac_link") 2>conftest.er1
14180 grep -v '^ *+' conftest.er1 >conftest.err
14182 cat conftest.err >&5
14183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184 (exit $ac_status); } && {
14185 test -z "$ac_c_werror_flag" ||
14186 test ! -s conftest.err
14187 } && test -s conftest$ac_exeext &&
14188 $as_test_x conftest$ac_exeext; then
14189 ac_cv_lib_ungif_EGifPutExtensionLast=yes
14191 echo "$as_me: failed program was:" >&5
14192 sed 's/^/| /' conftest.$ac_ext >&5
14194 ac_cv_lib_ungif_EGifPutExtensionLast=no
14197 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14198 conftest$ac_exeext conftest.$ac_ext
14199 LIBS=$ac_check_lib_save_LIBS
14201 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14202 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14203 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14212 if test "${HAVE_GIF}" = "yes"; then
14214 cat >>confdefs.h <<\_ACEOF
14221 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14222 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14223 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14224 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14225 echo $ECHO_N "(cached) $ECHO_C" >&6
14227 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14228 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14230 # Is the header compilable?
14231 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14232 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14233 cat >conftest.$ac_ext <<_ACEOF
14236 cat confdefs.h >>conftest.$ac_ext
14237 cat >>conftest.$ac_ext <<_ACEOF
14238 /* end confdefs.h. */
14239 $ac_includes_default
14240 #include <malloc/malloc.h>
14242 rm -f conftest.$ac_objext
14243 if { (ac_try="$ac_compile"
14244 case "(($ac_try" in
14245 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14246 *) ac_try_echo
=$ac_try;;
14248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14249 (eval "$ac_compile") 2>conftest.er1
14251 grep -v '^ *+' conftest.er1
>conftest.err
14253 cat conftest.err
>&5
14254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14255 (exit $ac_status); } && {
14256 test -z "$ac_c_werror_flag" ||
14257 test ! -s conftest.err
14258 } && test -s conftest.
$ac_objext; then
14259 ac_header_compiler
=yes
14261 echo "$as_me: failed program was:" >&5
14262 sed 's/^/| /' conftest.
$ac_ext >&5
14264 ac_header_compiler
=no
14267 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14268 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14269 echo "${ECHO_T}$ac_header_compiler" >&6; }
14271 # Is the header present?
14272 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14273 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14274 cat >conftest.
$ac_ext <<_ACEOF
14277 cat confdefs.h
>>conftest.
$ac_ext
14278 cat >>conftest.
$ac_ext <<_ACEOF
14279 /* end confdefs.h. */
14280 #include <malloc/malloc.h>
14282 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14283 case "(($ac_try" in
14284 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14285 *) ac_try_echo=$ac_try;;
14287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14288 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14290 grep -v '^ *+' conftest.er1 >conftest.err
14292 cat conftest.err >&5
14293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14294 (exit $ac_status); } >/dev/null && {
14295 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14296 test ! -s conftest.err
14298 ac_header_preproc=yes
14300 echo "$as_me: failed program was:" >&5
14301 sed 's/^/| /' conftest.$ac_ext >&5
14303 ac_header_preproc=no
14306 rm -f conftest.err conftest.$ac_ext
14307 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14308 echo "${ECHO_T}$ac_header_preproc" >&6; }
14310 # So? What about this header?
14311 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14313 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14314 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14315 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14316 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14317 ac_header_preproc=yes
14320 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14321 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14322 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14323 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14324 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14325 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14326 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14327 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14328 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14329 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14330 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14331 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14335 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14336 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14337 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14338 echo $ECHO_N "(cached) $ECHO_C" >&6
14340 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14342 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14343 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14346 if test $ac_cv_header_malloc_malloc_h = yes; then
14348 cat >>confdefs.h <<\_ACEOF
14349 #define HAVE_MALLOC_MALLOC_H 1
14356 ### Use Mac OS X Carbon API to implement GUI.
14357 if test "${HAVE_CARBON}" = "yes"; then
14359 cat >>confdefs.h <<\_ACEOF
14360 #define HAVE_CARBON 1
14363 ## Specify the install directory
14365 if test "${carbon_appdir_x}" != ""; then
14366 case ${carbon_appdir_x} in
14367 y | ye | yes) carbon_appdir=/Applications ;;
14368 * ) carbon_appdir=${carbon_appdir_x} ;;
14371 # We also have mouse menus.
14375 ### Use session management (-lSM -lICE) if available
14377 if test "${HAVE_X11}" = "yes"; then
14378 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14379 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14380 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14381 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14382 echo $ECHO_N "(cached) $ECHO_C" >&6
14384 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14385 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14387 # Is the header compilable?
14388 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14389 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14390 cat >conftest.$ac_ext <<_ACEOF
14393 cat confdefs.h >>conftest.$ac_ext
14394 cat >>conftest.$ac_ext <<_ACEOF
14395 /* end confdefs.h. */
14396 $ac_includes_default
14397 #include <X11/SM/SMlib.h>
14399 rm -f conftest.$ac_objext
14400 if { (ac_try="$ac_compile"
14401 case "(($ac_try" in
14402 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14403 *) ac_try_echo
=$ac_try;;
14405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14406 (eval "$ac_compile") 2>conftest.er1
14408 grep -v '^ *+' conftest.er1
>conftest.err
14410 cat conftest.err
>&5
14411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14412 (exit $ac_status); } && {
14413 test -z "$ac_c_werror_flag" ||
14414 test ! -s conftest.err
14415 } && test -s conftest.
$ac_objext; then
14416 ac_header_compiler
=yes
14418 echo "$as_me: failed program was:" >&5
14419 sed 's/^/| /' conftest.
$ac_ext >&5
14421 ac_header_compiler
=no
14424 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14425 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14426 echo "${ECHO_T}$ac_header_compiler" >&6; }
14428 # Is the header present?
14429 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14430 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14431 cat >conftest.
$ac_ext <<_ACEOF
14434 cat confdefs.h
>>conftest.
$ac_ext
14435 cat >>conftest.
$ac_ext <<_ACEOF
14436 /* end confdefs.h. */
14437 #include <X11/SM/SMlib.h>
14439 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14440 case "(($ac_try" in
14441 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14442 *) ac_try_echo=$ac_try;;
14444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14445 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14447 grep -v '^ *+' conftest.er1 >conftest.err
14449 cat conftest.err >&5
14450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14451 (exit $ac_status); } >/dev/null && {
14452 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14453 test ! -s conftest.err
14455 ac_header_preproc=yes
14457 echo "$as_me: failed program was:" >&5
14458 sed 's/^/| /' conftest.$ac_ext >&5
14460 ac_header_preproc=no
14463 rm -f conftest.err conftest.$ac_ext
14464 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14465 echo "${ECHO_T}$ac_header_preproc" >&6; }
14467 # So? What about this header?
14468 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14470 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14471 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14472 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14473 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14474 ac_header_preproc=yes
14477 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14478 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14479 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14480 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14481 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14482 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14483 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14484 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14485 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14486 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14487 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14488 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14492 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14493 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14494 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14495 echo $ECHO_N "(cached) $ECHO_C" >&6
14497 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14499 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14500 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14503 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14504 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14505 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14506 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14507 echo $ECHO_N "(cached) $ECHO_C" >&6
14509 ac_check_lib_save_LIBS=$LIBS
14510 LIBS="-lSM -lICE $LIBS"
14511 cat >conftest.$ac_ext <<_ACEOF
14514 cat confdefs.h >>conftest.$ac_ext
14515 cat >>conftest.$ac_ext <<_ACEOF
14516 /* end confdefs.h. */
14518 /* Override any GCC internal prototype to avoid an error.
14519 Use char because int might match the return type of a GCC
14520 builtin and then its argument prototype would still apply. */
14524 char SmcOpenConnection ();
14528 return SmcOpenConnection ();
14533 rm -f conftest.$ac_objext conftest$ac_exeext
14534 if { (ac_try="$ac_link"
14535 case "(($ac_try" in
14536 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14537 *) ac_try_echo
=$ac_try;;
14539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14540 (eval "$ac_link") 2>conftest.er1
14542 grep -v '^ *+' conftest.er1
>conftest.err
14544 cat conftest.err
>&5
14545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14546 (exit $ac_status); } && {
14547 test -z "$ac_c_werror_flag" ||
14548 test ! -s conftest.err
14549 } && test -s conftest
$ac_exeext &&
14550 $as_test_x conftest
$ac_exeext; then
14551 ac_cv_lib_SM_SmcOpenConnection
=yes
14553 echo "$as_me: failed program was:" >&5
14554 sed 's/^/| /' conftest.
$ac_ext >&5
14556 ac_cv_lib_SM_SmcOpenConnection
=no
14559 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14560 conftest
$ac_exeext conftest.
$ac_ext
14561 LIBS
=$ac_check_lib_save_LIBS
14563 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14564 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14565 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14573 if test "${HAVE_X_SM}" = "yes"; then
14575 cat >>confdefs.h
<<\_ACEOF
14576 #define HAVE_X_SM 1
14581 *) LIBS
="-lSM -lICE $LIBS" ;;
14586 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14587 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14588 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14589 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14590 echo $ECHO_N "(cached) $ECHO_C" >&6
14592 cat >conftest.
$ac_ext <<_ACEOF
14595 cat confdefs.h
>>conftest.
$ac_ext
14596 cat >>conftest.
$ac_ext <<_ACEOF
14597 /* end confdefs.h. */
14607 rm -f conftest.
$ac_objext conftest
$ac_exeext
14608 if { (ac_try
="$ac_link"
14609 case "(($ac_try" in
14610 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14611 *) ac_try_echo=$ac_try;;
14613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14614 (eval "$ac_link") 2>conftest.er1
14616 grep -v '^ *+' conftest.er1 >conftest.err
14618 cat conftest.err >&5
14619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14620 (exit $ac_status); } && {
14621 test -z "$ac_c_werror_flag" ||
14622 test ! -s conftest.err
14623 } && test -s conftest$ac_exeext &&
14624 $as_test_x conftest$ac_exeext; then
14625 emacs_cv_netdb_declares_h_errno=yes
14627 echo "$as_me: failed program was:" >&5
14628 sed 's/^/| /' conftest.$ac_ext >&5
14630 emacs_cv_netdb_declares_h_errno=no
14633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14634 conftest$ac_exeext conftest.$ac_ext
14636 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
14637 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
14638 if test $emacs_cv_netdb_declares_h_errno = yes; then
14640 cat >>confdefs.h <<\_ACEOF
14641 #define HAVE_H_ERRNO 1
14646 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14647 # for constant arguments. Useless!
14648 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
14649 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
14650 if test "${ac_cv_working_alloca_h+set}" = set; then
14651 echo $ECHO_N "(cached) $ECHO_C" >&6
14653 cat >conftest.$ac_ext <<_ACEOF
14656 cat confdefs.h >>conftest.$ac_ext
14657 cat >>conftest.$ac_ext <<_ACEOF
14658 /* end confdefs.h. */
14659 #include <alloca.h>
14663 char *p = (char *) alloca (2 * sizeof (int));
14669 rm -f conftest.$ac_objext conftest$ac_exeext
14670 if { (ac_try="$ac_link"
14671 case "(($ac_try" in
14672 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14673 *) ac_try_echo
=$ac_try;;
14675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14676 (eval "$ac_link") 2>conftest.er1
14678 grep -v '^ *+' conftest.er1
>conftest.err
14680 cat conftest.err
>&5
14681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14682 (exit $ac_status); } && {
14683 test -z "$ac_c_werror_flag" ||
14684 test ! -s conftest.err
14685 } && test -s conftest
$ac_exeext &&
14686 $as_test_x conftest
$ac_exeext; then
14687 ac_cv_working_alloca_h
=yes
14689 echo "$as_me: failed program was:" >&5
14690 sed 's/^/| /' conftest.
$ac_ext >&5
14692 ac_cv_working_alloca_h
=no
14695 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14696 conftest
$ac_exeext conftest.
$ac_ext
14698 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14699 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
14700 if test $ac_cv_working_alloca_h = yes; then
14702 cat >>confdefs.h
<<\_ACEOF
14703 #define HAVE_ALLOCA_H 1
14708 { echo "$as_me:$LINENO: checking for alloca" >&5
14709 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
14710 if test "${ac_cv_func_alloca_works+set}" = set; then
14711 echo $ECHO_N "(cached) $ECHO_C" >&6
14713 cat >conftest.
$ac_ext <<_ACEOF
14716 cat confdefs.h
>>conftest.
$ac_ext
14717 cat >>conftest.
$ac_ext <<_ACEOF
14718 /* end confdefs.h. */
14720 # define alloca __builtin_alloca
14723 # include <malloc.h>
14724 # define alloca _alloca
14726 # ifdef HAVE_ALLOCA_H
14727 # include <alloca.h>
14732 # ifndef alloca /* predefined by HP cc +Olibcalls */
14743 char *p = (char *) alloca (1);
14749 rm -f conftest.
$ac_objext conftest
$ac_exeext
14750 if { (ac_try
="$ac_link"
14751 case "(($ac_try" in
14752 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14753 *) ac_try_echo=$ac_try;;
14755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14756 (eval "$ac_link") 2>conftest.er1
14758 grep -v '^ *+' conftest.er1 >conftest.err
14760 cat conftest.err >&5
14761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14762 (exit $ac_status); } && {
14763 test -z "$ac_c_werror_flag" ||
14764 test ! -s conftest.err
14765 } && test -s conftest$ac_exeext &&
14766 $as_test_x conftest$ac_exeext; then
14767 ac_cv_func_alloca_works=yes
14769 echo "$as_me: failed program was:" >&5
14770 sed 's/^/| /' conftest.$ac_ext >&5
14772 ac_cv_func_alloca_works=no
14775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14776 conftest$ac_exeext conftest.$ac_ext
14778 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14779 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
14781 if test $ac_cv_func_alloca_works = yes; then
14783 cat >>confdefs.h <<\_ACEOF
14784 #define HAVE_ALLOCA 1
14788 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14789 # that cause trouble. Some versions do not even contain alloca or
14790 # contain a buggy version. If you still want to use their alloca,
14791 # use ar to extract alloca.o from them instead of compiling alloca.c.
14793 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
14795 cat >>confdefs.h <<\_ACEOF
14800 { echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
14801 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks...
$ECHO_C" >&6; }
14802 if test "${ac_cv_os_cray+set}" = set; then
14803 echo $ECHO_N "(cached
) $ECHO_C" >&6
14805 cat >conftest.$ac_ext <<_ACEOF
14808 cat confdefs.h >>conftest.$ac_ext
14809 cat >>conftest.$ac_ext <<_ACEOF
14810 /* end confdefs.h. */
14811 #if defined CRAY && ! defined CRAY2
14818 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
14819 $EGREP "webecray
" >/dev/null 2>&1; then
14827 { echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
14828 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
14829 if test $ac_cv_os_cray = yes; then
14830 for ac_func in _getb67 GETB67 getb67; do
14831 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
14832 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
14833 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
14834 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
14835 echo $ECHO_N "(cached
) $ECHO_C" >&6
14837 cat >conftest.$ac_ext <<_ACEOF
14840 cat confdefs.h >>conftest.$ac_ext
14841 cat >>conftest.$ac_ext <<_ACEOF
14842 /* end confdefs.h. */
14843 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14844 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14845 #define $ac_func innocuous_$ac_func
14847 /* System header to define __stub macros and hopefully few prototypes,
14848 which can conflict with char $ac_func (); below.
14849 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14850 <limits.h> exists even on freestanding compilers. */
14853 # include <limits.h>
14855 # include <assert.h>
14860 /* Override any GCC internal prototype to avoid an error.
14861 Use char because int might match the return type of a GCC
14862 builtin and then its argument prototype would still apply. */
14867 /* The GNU C library defines this for functions which it implements
14868 to always fail with ENOSYS. Some functions are actually named
14869 something starting with __ and the normal name is an alias. */
14870 #if defined __stub_$ac_func || defined __stub___$ac_func
14877 return $ac_func ();
14882 rm -f conftest.$ac_objext conftest$ac_exeext
14883 if { (ac_try="$ac_link"
14884 case "(($ac_try" in
14885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14886 *) ac_try_echo=$ac_try;;
14888 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14889 (eval "$ac_link") 2>conftest.er1
14891 grep -v '^ *+' conftest.er1 >conftest.err
14893 cat conftest.err >&5
14894 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14895 (exit $ac_status); } && {
14896 test -z "$ac_c_werror_flag" ||
14897 test ! -s conftest.err
14898 } && test -s conftest$ac_exeext &&
14899 $as_test_x conftest$ac_exeext; then
14900 eval "$as_ac_var=yes"
14902 echo "$as_me: failed program was
:" >&5
14903 sed 's/^/| /' conftest.$ac_ext >&5
14905 eval "$as_ac_var=no
"
14908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14909 conftest$ac_exeext conftest.$ac_ext
14911 ac_res=`eval echo '${'$as_ac_var'}'`
14912 { echo "$as_me:$LINENO: result
: $ac_res" >&5
14913 echo "${ECHO_T}$ac_res" >&6; }
14914 if test `eval echo '${'$as_ac_var'}'` = yes; then
14916 cat >>confdefs.h <<_ACEOF
14917 #define CRAY_STACKSEG_END $ac_func
14926 { echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
14927 echo $ECHO_N "checking stack direction
for C alloca...
$ECHO_C" >&6; }
14928 if test "${ac_cv_c_stack_direction+set}" = set; then
14929 echo $ECHO_N "(cached
) $ECHO_C" >&6
14931 if test "$cross_compiling" = yes; then
14932 ac_cv_c_stack_direction=0
14934 cat >conftest.$ac_ext <<_ACEOF
14937 cat confdefs.h >>conftest.$ac_ext
14938 cat >>conftest.$ac_ext <<_ACEOF
14939 /* end confdefs.h. */
14940 $ac_includes_default
14942 find_stack_direction ()
14944 static char *addr = 0;
14949 return find_stack_direction ();
14952 return (&dummy > addr) ? 1 : -1;
14958 return find_stack_direction () < 0;
14961 rm -f conftest$ac_exeext
14962 if { (ac_try="$ac_link"
14963 case "(($ac_try" in
14964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14965 *) ac_try_echo=$ac_try;;
14967 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14968 (eval "$ac_link") 2>&5
14970 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14971 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14972 { (case "(($ac_try" in
14973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14974 *) ac_try_echo=$ac_try;;
14976 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14977 (eval "$ac_try") 2>&5
14979 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14980 (exit $ac_status); }; }; then
14981 ac_cv_c_stack_direction=1
14983 echo "$as_me: program exited with status
$ac_status" >&5
14984 echo "$as_me: failed program was
:" >&5
14985 sed 's/^/| /' conftest.$ac_ext >&5
14987 ( exit $ac_status )
14988 ac_cv_c_stack_direction=-1
14990 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14995 { echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
14996 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
14998 cat >>confdefs.h <<_ACEOF
14999 #define STACK_DIRECTION $ac_cv_c_stack_direction
15006 # fmod, logb, and frexp are found in -lm on most systems.
15007 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15009 { echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
15010 echo $ECHO_N "checking
for sqrt
in -lm...
$ECHO_C" >&6; }
15011 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15012 echo $ECHO_N "(cached
) $ECHO_C" >&6
15014 ac_check_lib_save_LIBS=$LIBS
15016 cat >conftest.$ac_ext <<_ACEOF
15019 cat confdefs.h >>conftest.$ac_ext
15020 cat >>conftest.$ac_ext <<_ACEOF
15021 /* end confdefs.h. */
15023 /* Override any GCC internal prototype to avoid an error.
15024 Use char because int might match the return type of a GCC
15025 builtin and then its argument prototype would still apply. */
15038 rm -f conftest.$ac_objext conftest$ac_exeext
15039 if { (ac_try="$ac_link"
15040 case "(($ac_try" in
15041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15042 *) ac_try_echo=$ac_try;;
15044 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15045 (eval "$ac_link") 2>conftest.er1
15047 grep -v '^ *+' conftest.er1 >conftest.err
15049 cat conftest.err >&5
15050 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15051 (exit $ac_status); } && {
15052 test -z "$ac_c_werror_flag" ||
15053 test ! -s conftest.err
15054 } && test -s conftest$ac_exeext &&
15055 $as_test_x conftest$ac_exeext; then
15056 ac_cv_lib_m_sqrt=yes
15058 echo "$as_me: failed program was
:" >&5
15059 sed 's/^/| /' conftest.$ac_ext >&5
15061 ac_cv_lib_m_sqrt=no
15064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15065 conftest$ac_exeext conftest.$ac_ext
15066 LIBS=$ac_check_lib_save_LIBS
15068 { echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
15069 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15070 if test $ac_cv_lib_m_sqrt = yes; then
15071 cat >>confdefs.h <<_ACEOF
15072 #define HAVE_LIBM 1
15080 # Check for mail-locking functions in a "mail" library. Probably this should
15081 # have the same check as for liblockfile below.
15083 { echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
15084 echo $ECHO_N "checking
for maillock
in -lmail...
$ECHO_C" >&6; }
15085 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15086 echo $ECHO_N "(cached
) $ECHO_C" >&6
15088 ac_check_lib_save_LIBS=$LIBS
15089 LIBS="-lmail $LIBS"
15090 cat >conftest.$ac_ext <<_ACEOF
15093 cat confdefs.h >>conftest.$ac_ext
15094 cat >>conftest.$ac_ext <<_ACEOF
15095 /* end confdefs.h. */
15097 /* Override any GCC internal prototype to avoid an error.
15098 Use char because int might match the return type of a GCC
15099 builtin and then its argument prototype would still apply. */
15107 return maillock ();
15112 rm -f conftest.$ac_objext conftest$ac_exeext
15113 if { (ac_try="$ac_link"
15114 case "(($ac_try" in
15115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15116 *) ac_try_echo=$ac_try;;
15118 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15119 (eval "$ac_link") 2>conftest.er1
15121 grep -v '^ *+' conftest.er1 >conftest.err
15123 cat conftest.err >&5
15124 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15125 (exit $ac_status); } && {
15126 test -z "$ac_c_werror_flag" ||
15127 test ! -s conftest.err
15128 } && test -s conftest$ac_exeext &&
15129 $as_test_x conftest$ac_exeext; then
15130 ac_cv_lib_mail_maillock=yes
15132 echo "$as_me: failed program was
:" >&5
15133 sed 's/^/| /' conftest.$ac_ext >&5
15135 ac_cv_lib_mail_maillock=no
15138 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15139 conftest$ac_exeext conftest.$ac_ext
15140 LIBS=$ac_check_lib_save_LIBS
15142 { echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
15143 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15144 if test $ac_cv_lib_mail_maillock = yes; then
15145 cat >>confdefs.h <<_ACEOF
15146 #define HAVE_LIBMAIL 1
15149 LIBS="-lmail $LIBS"
15154 { echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
15155 echo $ECHO_N "checking
for maillock
in -llockfile...
$ECHO_C" >&6; }
15156 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15157 echo $ECHO_N "(cached
) $ECHO_C" >&6
15159 ac_check_lib_save_LIBS=$LIBS
15160 LIBS="-llockfile $LIBS"
15161 cat >conftest.$ac_ext <<_ACEOF
15164 cat confdefs.h >>conftest.$ac_ext
15165 cat >>conftest.$ac_ext <<_ACEOF
15166 /* end confdefs.h. */
15168 /* Override any GCC internal prototype to avoid an error.
15169 Use char because int might match the return type of a GCC
15170 builtin and then its argument prototype would still apply. */
15178 return maillock ();
15183 rm -f conftest.$ac_objext conftest$ac_exeext
15184 if { (ac_try="$ac_link"
15185 case "(($ac_try" in
15186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15187 *) ac_try_echo=$ac_try;;
15189 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15190 (eval "$ac_link") 2>conftest.er1
15192 grep -v '^ *+' conftest.er1 >conftest.err
15194 cat conftest.err >&5
15195 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15196 (exit $ac_status); } && {
15197 test -z "$ac_c_werror_flag" ||
15198 test ! -s conftest.err
15199 } && test -s conftest$ac_exeext &&
15200 $as_test_x conftest$ac_exeext; then
15201 ac_cv_lib_lockfile_maillock=yes
15203 echo "$as_me: failed program was
:" >&5
15204 sed 's/^/| /' conftest.$ac_ext >&5
15206 ac_cv_lib_lockfile_maillock=no
15209 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15210 conftest$ac_exeext conftest.$ac_ext
15211 LIBS=$ac_check_lib_save_LIBS
15213 { echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
15214 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15215 if test $ac_cv_lib_lockfile_maillock = yes; then
15216 cat >>confdefs.h <<_ACEOF
15217 #define HAVE_LIBLOCKFILE 1
15220 LIBS="-llockfile $LIBS"
15224 # If we have the shared liblockfile, assume we must use it for mail
15225 # locking (e.g. Debian). If we couldn't link against liblockfile
15226 # (no liblockfile.a installed), ensure that we don't need to.
15227 if test "$ac_cv_lib_lockfile_maillock" = no; then
15228 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
15229 set dummy liblockfile.so; ac_word=$2
15230 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
15231 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
15232 if test "${ac_cv_prog_liblockfile+set}" = set; then
15233 echo $ECHO_N "(cached
) $ECHO_C" >&6
15235 if test -n "$liblockfile"; then
15236 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15239 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
15240 for as_dir in $as_dummy
15243 test -z "$as_dir" && as_dir=.
15244 for ac_exec_ext in '' $ac_executable_extensions; do
15245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15246 ac_cv_prog_liblockfile="yes"
15247 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15254 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
15257 liblockfile=$ac_cv_prog_liblockfile
15258 if test -n "$liblockfile"; then
15259 { echo "$as_me:$LINENO: result
: $liblockfile" >&5
15260 echo "${ECHO_T}$liblockfile" >&6; }
15262 { echo "$as_me:$LINENO: result
: no
" >&5
15263 echo "${ECHO_T}no
" >&6; }
15267 if test $ac_cv_prog_liblockfile = yes; then
15268 { { echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
15269 This probably means that movemail could lose mail.
15270 There may be a \`development' package to
install containing liblockfile.
" >&5
15271 echo "$as_me: error
: Shared liblockfile found but can
't link against it.
15272 This probably means that movemail could lose mail.
15273 There may be a \`development' package to
install containing liblockfile.
" >&2;}
15274 { (exit 1); exit 1; }; }
15279 for ac_func in touchlock
15281 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15282 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15283 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15284 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15285 echo $ECHO_N "(cached
) $ECHO_C" >&6
15287 cat >conftest.$ac_ext <<_ACEOF
15290 cat confdefs.h >>conftest.$ac_ext
15291 cat >>conftest.$ac_ext <<_ACEOF
15292 /* end confdefs.h. */
15293 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15294 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15295 #define $ac_func innocuous_$ac_func
15297 /* System header to define __stub macros and hopefully few prototypes,
15298 which can conflict with char $ac_func (); below.
15299 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15300 <limits.h> exists even on freestanding compilers. */
15303 # include <limits.h>
15305 # include <assert.h>
15310 /* Override any GCC internal prototype to avoid an error.
15311 Use char because int might match the return type of a GCC
15312 builtin and then its argument prototype would still apply. */
15317 /* The GNU C library defines this for functions which it implements
15318 to always fail with ENOSYS. Some functions are actually named
15319 something starting with __ and the normal name is an alias. */
15320 #if defined __stub_$ac_func || defined __stub___$ac_func
15327 return $ac_func ();
15332 rm -f conftest.$ac_objext conftest$ac_exeext
15333 if { (ac_try="$ac_link"
15334 case "(($ac_try" in
15335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15336 *) ac_try_echo=$ac_try;;
15338 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15339 (eval "$ac_link") 2>conftest.er1
15341 grep -v '^ *+' conftest.er1 >conftest.err
15343 cat conftest.err >&5
15344 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15345 (exit $ac_status); } && {
15346 test -z "$ac_c_werror_flag" ||
15347 test ! -s conftest.err
15348 } && test -s conftest$ac_exeext &&
15349 $as_test_x conftest$ac_exeext; then
15350 eval "$as_ac_var=yes"
15352 echo "$as_me: failed program was
:" >&5
15353 sed 's/^/| /' conftest.$ac_ext >&5
15355 eval "$as_ac_var=no
"
15358 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15359 conftest$ac_exeext conftest.$ac_ext
15361 ac_res=`eval echo '${'$as_ac_var'}'`
15362 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15363 echo "${ECHO_T}$ac_res" >&6; }
15364 if test `eval echo '${'$as_ac_var'}'` = yes; then
15365 cat >>confdefs.h <<_ACEOF
15366 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15373 for ac_header in maillock.h
15375 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15376 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15377 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15378 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15379 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15380 echo $ECHO_N "(cached
) $ECHO_C" >&6
15382 ac_res=`eval echo '${'$as_ac_Header'}'`
15383 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15384 echo "${ECHO_T}$ac_res" >&6; }
15386 # Is the header compilable?
15387 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15388 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15389 cat >conftest.$ac_ext <<_ACEOF
15392 cat confdefs.h >>conftest.$ac_ext
15393 cat >>conftest.$ac_ext <<_ACEOF
15394 /* end confdefs.h. */
15395 $ac_includes_default
15396 #include <$ac_header>
15398 rm -f conftest.$ac_objext
15399 if { (ac_try="$ac_compile"
15400 case "(($ac_try" in
15401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15402 *) ac_try_echo=$ac_try;;
15404 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15405 (eval "$ac_compile") 2>conftest.er1
15407 grep -v '^ *+' conftest.er1 >conftest.err
15409 cat conftest.err >&5
15410 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15411 (exit $ac_status); } && {
15412 test -z "$ac_c_werror_flag" ||
15413 test ! -s conftest.err
15414 } && test -s conftest.$ac_objext; then
15415 ac_header_compiler=yes
15417 echo "$as_me: failed program was
:" >&5
15418 sed 's/^/| /' conftest.$ac_ext >&5
15420 ac_header_compiler=no
15423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15424 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15425 echo "${ECHO_T}$ac_header_compiler" >&6; }
15427 # Is the header present?
15428 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15429 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15430 cat >conftest.$ac_ext <<_ACEOF
15433 cat confdefs.h >>conftest.$ac_ext
15434 cat >>conftest.$ac_ext <<_ACEOF
15435 /* end confdefs.h. */
15436 #include <$ac_header>
15438 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15439 case "(($ac_try" in
15440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15441 *) ac_try_echo=$ac_try;;
15443 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15444 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15446 grep -v '^ *+' conftest.er1 >conftest.err
15448 cat conftest.err >&5
15449 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15450 (exit $ac_status); } >/dev/null && {
15451 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15452 test ! -s conftest.err
15454 ac_header_preproc=yes
15456 echo "$as_me: failed program was
:" >&5
15457 sed 's/^/| /' conftest.$ac_ext >&5
15459 ac_header_preproc=no
15462 rm -f conftest.err conftest.$ac_ext
15463 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15464 echo "${ECHO_T}$ac_header_preproc" >&6; }
15466 # So? What about this header?
15467 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15469 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15470 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15471 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15472 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15473 ac_header_preproc=yes
15476 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15477 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15478 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15479 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15480 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15481 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15482 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15483 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15484 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15485 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15486 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15487 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15491 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15492 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15493 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15494 echo $ECHO_N "(cached
) $ECHO_C" >&6
15496 eval "$as_ac_Header=\
$ac_header_preproc"
15498 ac_res=`eval echo '${'$as_ac_Header'}'`
15499 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15500 echo "${ECHO_T}$ac_res" >&6; }
15503 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15504 cat >>confdefs.h <<_ACEOF
15505 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15582 for ac_func in gethostname getdomainname dup2 \
15583 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15584 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
15585 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15586 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15587 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15588 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15589 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15590 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15592 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15593 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15594 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15595 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15596 echo $ECHO_N "(cached
) $ECHO_C" >&6
15598 cat >conftest.$ac_ext <<_ACEOF
15601 cat confdefs.h >>conftest.$ac_ext
15602 cat >>conftest.$ac_ext <<_ACEOF
15603 /* end confdefs.h. */
15604 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15605 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15606 #define $ac_func innocuous_$ac_func
15608 /* System header to define __stub macros and hopefully few prototypes,
15609 which can conflict with char $ac_func (); below.
15610 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15611 <limits.h> exists even on freestanding compilers. */
15614 # include <limits.h>
15616 # include <assert.h>
15621 /* Override any GCC internal prototype to avoid an error.
15622 Use char because int might match the return type of a GCC
15623 builtin and then its argument prototype would still apply. */
15628 /* The GNU C library defines this for functions which it implements
15629 to always fail with ENOSYS. Some functions are actually named
15630 something starting with __ and the normal name is an alias. */
15631 #if defined __stub_$ac_func || defined __stub___$ac_func
15638 return $ac_func ();
15643 rm -f conftest.$ac_objext conftest$ac_exeext
15644 if { (ac_try="$ac_link"
15645 case "(($ac_try" in
15646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15647 *) ac_try_echo=$ac_try;;
15649 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15650 (eval "$ac_link") 2>conftest.er1
15652 grep -v '^ *+' conftest.er1 >conftest.err
15654 cat conftest.err >&5
15655 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15656 (exit $ac_status); } && {
15657 test -z "$ac_c_werror_flag" ||
15658 test ! -s conftest.err
15659 } && test -s conftest$ac_exeext &&
15660 $as_test_x conftest$ac_exeext; then
15661 eval "$as_ac_var=yes"
15663 echo "$as_me: failed program was
:" >&5
15664 sed 's/^/| /' conftest.$ac_ext >&5
15666 eval "$as_ac_var=no
"
15669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15670 conftest$ac_exeext conftest.$ac_ext
15672 ac_res=`eval echo '${'$as_ac_var'}'`
15673 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15674 echo "${ECHO_T}$ac_res" >&6; }
15675 if test `eval echo '${'$as_ac_var'}'` = yes; then
15676 cat >>confdefs.h <<_ACEOF
15677 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15685 for ac_header in sys/un.h
15687 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15688 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15689 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15690 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15691 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15692 echo $ECHO_N "(cached
) $ECHO_C" >&6
15694 ac_res=`eval echo '${'$as_ac_Header'}'`
15695 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15696 echo "${ECHO_T}$ac_res" >&6; }
15698 # Is the header compilable?
15699 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15700 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15701 cat >conftest.$ac_ext <<_ACEOF
15704 cat confdefs.h >>conftest.$ac_ext
15705 cat >>conftest.$ac_ext <<_ACEOF
15706 /* end confdefs.h. */
15707 $ac_includes_default
15708 #include <$ac_header>
15710 rm -f conftest.$ac_objext
15711 if { (ac_try="$ac_compile"
15712 case "(($ac_try" in
15713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15714 *) ac_try_echo=$ac_try;;
15716 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15717 (eval "$ac_compile") 2>conftest.er1
15719 grep -v '^ *+' conftest.er1 >conftest.err
15721 cat conftest.err >&5
15722 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15723 (exit $ac_status); } && {
15724 test -z "$ac_c_werror_flag" ||
15725 test ! -s conftest.err
15726 } && test -s conftest.$ac_objext; then
15727 ac_header_compiler=yes
15729 echo "$as_me: failed program was
:" >&5
15730 sed 's/^/| /' conftest.$ac_ext >&5
15732 ac_header_compiler=no
15735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15736 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15737 echo "${ECHO_T}$ac_header_compiler" >&6; }
15739 # Is the header present?
15740 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15741 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15742 cat >conftest.$ac_ext <<_ACEOF
15745 cat confdefs.h >>conftest.$ac_ext
15746 cat >>conftest.$ac_ext <<_ACEOF
15747 /* end confdefs.h. */
15748 #include <$ac_header>
15750 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15751 case "(($ac_try" in
15752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15753 *) ac_try_echo=$ac_try;;
15755 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15756 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15758 grep -v '^ *+' conftest.er1 >conftest.err
15760 cat conftest.err >&5
15761 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15762 (exit $ac_status); } >/dev/null && {
15763 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15764 test ! -s conftest.err
15766 ac_header_preproc=yes
15768 echo "$as_me: failed program was
:" >&5
15769 sed 's/^/| /' conftest.$ac_ext >&5
15771 ac_header_preproc=no
15774 rm -f conftest.err conftest.$ac_ext
15775 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15776 echo "${ECHO_T}$ac_header_preproc" >&6; }
15778 # So? What about this header?
15779 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15781 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15782 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15783 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15784 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15785 ac_header_preproc=yes
15788 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15789 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15790 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15791 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15792 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15793 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15794 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15795 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15796 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15797 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15798 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15799 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15803 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15804 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15805 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15806 echo $ECHO_N "(cached
) $ECHO_C" >&6
15808 eval "$as_ac_Header=\
$ac_header_preproc"
15810 ac_res=`eval echo '${'$as_ac_Header'}'`
15811 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15812 echo "${ECHO_T}$ac_res" >&6; }
15815 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15816 cat >>confdefs.h <<_ACEOF
15817 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15829 for ac_header in $ac_header_list
15831 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15832 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15833 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15834 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15835 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15836 echo $ECHO_N "(cached
) $ECHO_C" >&6
15838 ac_res=`eval echo '${'$as_ac_Header'}'`
15839 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15840 echo "${ECHO_T}$ac_res" >&6; }
15842 # Is the header compilable?
15843 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15844 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15845 cat >conftest.$ac_ext <<_ACEOF
15848 cat confdefs.h >>conftest.$ac_ext
15849 cat >>conftest.$ac_ext <<_ACEOF
15850 /* end confdefs.h. */
15851 $ac_includes_default
15852 #include <$ac_header>
15854 rm -f conftest.$ac_objext
15855 if { (ac_try="$ac_compile"
15856 case "(($ac_try" in
15857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15858 *) ac_try_echo=$ac_try;;
15860 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15861 (eval "$ac_compile") 2>conftest.er1
15863 grep -v '^ *+' conftest.er1 >conftest.err
15865 cat conftest.err >&5
15866 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15867 (exit $ac_status); } && {
15868 test -z "$ac_c_werror_flag" ||
15869 test ! -s conftest.err
15870 } && test -s conftest.$ac_objext; then
15871 ac_header_compiler=yes
15873 echo "$as_me: failed program was
:" >&5
15874 sed 's/^/| /' conftest.$ac_ext >&5
15876 ac_header_compiler=no
15879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15880 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15881 echo "${ECHO_T}$ac_header_compiler" >&6; }
15883 # Is the header present?
15884 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15885 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15886 cat >conftest.$ac_ext <<_ACEOF
15889 cat confdefs.h >>conftest.$ac_ext
15890 cat >>conftest.$ac_ext <<_ACEOF
15891 /* end confdefs.h. */
15892 #include <$ac_header>
15894 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15895 case "(($ac_try" in
15896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15897 *) ac_try_echo=$ac_try;;
15899 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15900 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15902 grep -v '^ *+' conftest.er1 >conftest.err
15904 cat conftest.err >&5
15905 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15906 (exit $ac_status); } >/dev/null && {
15907 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15908 test ! -s conftest.err
15910 ac_header_preproc=yes
15912 echo "$as_me: failed program was
:" >&5
15913 sed 's/^/| /' conftest.$ac_ext >&5
15915 ac_header_preproc=no
15918 rm -f conftest.err conftest.$ac_ext
15919 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15920 echo "${ECHO_T}$ac_header_preproc" >&6; }
15922 # So? What about this header?
15923 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15925 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15926 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15927 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15928 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15929 ac_header_preproc=yes
15932 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15933 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15934 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15935 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15936 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15937 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15938 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15939 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15940 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15941 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15942 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15943 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15947 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15948 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15949 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15950 echo $ECHO_N "(cached
) $ECHO_C" >&6
15952 eval "$as_ac_Header=\
$ac_header_preproc"
15954 ac_res=`eval echo '${'$as_ac_Header'}'`
15955 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15956 echo "${ECHO_T}$ac_res" >&6; }
15959 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15960 cat >>confdefs.h <<_ACEOF
15961 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15976 for ac_func in $ac_func_list
15978 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15979 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15980 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15981 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15982 echo $ECHO_N "(cached
) $ECHO_C" >&6
15984 cat >conftest.$ac_ext <<_ACEOF
15987 cat confdefs.h >>conftest.$ac_ext
15988 cat >>conftest.$ac_ext <<_ACEOF
15989 /* end confdefs.h. */
15990 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15991 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15992 #define $ac_func innocuous_$ac_func
15994 /* System header to define __stub macros and hopefully few prototypes,
15995 which can conflict with char $ac_func (); below.
15996 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15997 <limits.h> exists even on freestanding compilers. */
16000 # include <limits.h>
16002 # include <assert.h>
16007 /* Override any GCC internal prototype to avoid an error.
16008 Use char because int might match the return type of a GCC
16009 builtin and then its argument prototype would still apply. */
16014 /* The GNU C library defines this for functions which it implements
16015 to always fail with ENOSYS. Some functions are actually named
16016 something starting with __ and the normal name is an alias. */
16017 #if defined __stub_$ac_func || defined __stub___$ac_func
16024 return $ac_func ();
16029 rm -f conftest.$ac_objext conftest$ac_exeext
16030 if { (ac_try="$ac_link"
16031 case "(($ac_try" in
16032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16033 *) ac_try_echo=$ac_try;;
16035 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16036 (eval "$ac_link") 2>conftest.er1
16038 grep -v '^ *+' conftest.er1 >conftest.err
16040 cat conftest.err >&5
16041 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16042 (exit $ac_status); } && {
16043 test -z "$ac_c_werror_flag" ||
16044 test ! -s conftest.err
16045 } && test -s conftest$ac_exeext &&
16046 $as_test_x conftest$ac_exeext; then
16047 eval "$as_ac_var=yes"
16049 echo "$as_me: failed program was
:" >&5
16050 sed 's/^/| /' conftest.$ac_ext >&5
16052 eval "$as_ac_var=no
"
16055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16056 conftest$ac_exeext conftest.$ac_ext
16058 ac_res=`eval echo '${'$as_ac_var'}'`
16059 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16060 echo "${ECHO_T}$ac_res" >&6; }
16061 if test `eval echo '${'$as_ac_var'}'` = yes; then
16062 cat >>confdefs.h <<_ACEOF
16063 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16085 { echo "$as_me:$LINENO: checking
for working mktime
" >&5
16086 echo $ECHO_N "checking
for working mktime...
$ECHO_C" >&6; }
16087 if test "${ac_cv_func_working_mktime+set}" = set; then
16088 echo $ECHO_N "(cached
) $ECHO_C" >&6
16090 if test "$cross_compiling" = yes; then
16091 ac_cv_func_working_mktime=no
16093 cat >conftest.$ac_ext <<_ACEOF
16096 cat confdefs.h >>conftest.$ac_ext
16097 cat >>conftest.$ac_ext <<_ACEOF
16098 /* end confdefs.h. */
16099 /* Test program from Paul Eggert and Tony Leneis. */
16100 #ifdef TIME_WITH_SYS_TIME
16101 # include <sys/time.h>
16104 # ifdef HAVE_SYS_TIME_H
16105 # include <sys/time.h>
16111 #include <stdlib.h>
16113 #ifdef HAVE_UNISTD_H
16114 # include <unistd.h>
16118 # define alarm(X) /* empty */
16121 /* Work around redefinition to rpl_putenv by other config tests. */
16124 static time_t time_t_max;
16125 static time_t time_t_min;
16127 /* Values we'll use to set the TZ environment variable. */
16128 static char *tz_strings[] = {
16129 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
16130 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
16132 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16134 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16135 Based on a problem report from Andreas Jaeger. */
16137 spring_forward_gap ()
16139 /* glibc (up to about 1998-10-07) failed this test. */
16142 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16143 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16144 on systems that don't support the Olson extension, or don't have the
16145 full zoneinfo tables installed. */
16146 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16155 return mktime (&tm) != (time_t) -1;
16163 return ! (lt = localtime (&now)) || mktime (lt) == now;
16170 return (mktime_test1 (now)
16171 && mktime_test1 ((time_t) (time_t_max - now))
16172 && mktime_test1 ((time_t) (time_t_min + now)));
16178 /* Based on code from Ariel Faigon. */
16188 return tm.tm_mon == 2 && tm.tm_mday == 31;
16197 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16198 now = mktime (&tm);
16199 if (now != (time_t) -1)
16201 struct tm *lt = localtime (&now);
16203 && lt->tm_year == tm.tm_year
16204 && lt->tm_mon == tm.tm_mon
16205 && lt->tm_mday == tm.tm_mday
16206 && lt->tm_hour == tm.tm_hour
16207 && lt->tm_min == tm.tm_min
16208 && lt->tm_sec == tm.tm_sec
16209 && lt->tm_yday == tm.tm_yday
16210 && lt->tm_wday == tm.tm_wday
16211 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16212 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16221 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16222 ignoring leap seconds. */
16223 unsigned long int answer = 2527315200UL;
16227 tm.tm_year = 2050 - 1900;
16230 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16233 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16234 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16235 on systems that don't support the Olson extension, or don't have the
16236 full zoneinfo tables installed. */
16237 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16241 /* Check that the result is either a failure, or close enough
16242 to the correct answer that we can assume the discrepancy is
16243 due to leap seconds. */
16244 return (t == (time_t) -1
16245 || (0 < t && answer - 120 <= t && t <= answer + 120));
16254 /* This test makes some buggy mktime implementations loop.
16255 Give up after 60 seconds; a mktime slower than that
16256 isn't worth using anyway. */
16259 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16262 if ((time_t) -1 < 0)
16263 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16265 delta = time_t_max / 997; /* a suitable prime number */
16266 for (i = 0; i < N_STRINGS; i++)
16269 putenv (tz_strings[i]);
16271 for (t = 0; t <= time_t_max - delta; t += delta)
16272 if (! mktime_test (t))
16274 if (! (mktime_test ((time_t) 1)
16275 && mktime_test ((time_t) (60 * 60))
16276 && mktime_test ((time_t) (60 * 60 * 24))))
16279 for (j = 1; 0 < j; j *= 2)
16280 if (! bigtime_test (j))
16282 if (! bigtime_test (j - 1))
16285 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16288 rm -f conftest$ac_exeext
16289 if { (ac_try="$ac_link"
16290 case "(($ac_try" in
16291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16292 *) ac_try_echo=$ac_try;;
16294 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16295 (eval "$ac_link") 2>&5
16297 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16298 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16299 { (case "(($ac_try" in
16300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16301 *) ac_try_echo=$ac_try;;
16303 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16304 (eval "$ac_try") 2>&5
16306 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16307 (exit $ac_status); }; }; then
16308 ac_cv_func_working_mktime=yes
16310 echo "$as_me: program exited with status
$ac_status" >&5
16311 echo "$as_me: failed program was
:" >&5
16312 sed 's/^/| /' conftest.$ac_ext >&5
16314 ( exit $ac_status )
16315 ac_cv_func_working_mktime=no
16317 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16322 { echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
16323 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16324 if test $ac_cv_func_working_mktime = no; then
16325 case " $LIBOBJS " in
16326 *" mktime.
$ac_objext "* ) ;;
16327 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
16333 if test "$ac_cv_func_working_mktime" = no; then
16335 cat >>confdefs.h <<\_ACEOF
16336 #define BROKEN_MKTIME 1
16341 ac_have_func=no # yes means we've found a way to get the load average.
16343 # Make sure getloadavg.c is where it belongs, at configure-time.
16344 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
16345 { { echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
16346 echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
16347 { (exit 1); exit 1; }; }
16351 # Check for getloadavg, but be sure not to touch the cache variable.
16352 ({ echo "$as_me:$LINENO: checking
for getloadavg
" >&5
16353 echo $ECHO_N "checking
for getloadavg...
$ECHO_C" >&6; }
16354 if test "${ac_cv_func_getloadavg+set}" = set; then
16355 echo $ECHO_N "(cached
) $ECHO_C" >&6
16357 cat >conftest.$ac_ext <<_ACEOF
16360 cat confdefs.h >>conftest.$ac_ext
16361 cat >>conftest.$ac_ext <<_ACEOF
16362 /* end confdefs.h. */
16363 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16364 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16365 #define getloadavg innocuous_getloadavg
16367 /* System header to define __stub macros and hopefully few prototypes,
16368 which can conflict with char getloadavg (); below.
16369 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16370 <limits.h> exists even on freestanding compilers. */
16373 # include <limits.h>
16375 # include <assert.h>
16380 /* Override any GCC internal prototype to avoid an error.
16381 Use char because int might match the return type of a GCC
16382 builtin and then its argument prototype would still apply. */
16386 char getloadavg ();
16387 /* The GNU C library defines this for functions which it implements
16388 to always fail with ENOSYS. Some functions are actually named
16389 something starting with __ and the normal name is an alias. */
16390 #if defined __stub_getloadavg || defined __stub___getloadavg
16397 return getloadavg ();
16402 rm -f conftest.$ac_objext conftest$ac_exeext
16403 if { (ac_try="$ac_link"
16404 case "(($ac_try" in
16405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16406 *) ac_try_echo=$ac_try;;
16408 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16409 (eval "$ac_link") 2>conftest.er1
16411 grep -v '^ *+' conftest.er1 >conftest.err
16413 cat conftest.err >&5
16414 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16415 (exit $ac_status); } && {
16416 test -z "$ac_c_werror_flag" ||
16417 test ! -s conftest.err
16418 } && test -s conftest$ac_exeext &&
16419 $as_test_x conftest$ac_exeext; then
16420 ac_cv_func_getloadavg=yes
16422 echo "$as_me: failed program was
:" >&5
16423 sed 's/^/| /' conftest.$ac_ext >&5
16425 ac_cv_func_getloadavg=no
16428 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16429 conftest$ac_exeext conftest.$ac_ext
16431 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
16432 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16433 if test $ac_cv_func_getloadavg = yes; then
16438 ) && ac_have_func=yes
16440 # On HPUX9, an unprivileged user can get load averages through this function.
16442 for ac_func in pstat_getdynamic
16444 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16445 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16446 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16447 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16448 echo $ECHO_N "(cached
) $ECHO_C" >&6
16450 cat >conftest.$ac_ext <<_ACEOF
16453 cat confdefs.h >>conftest.$ac_ext
16454 cat >>conftest.$ac_ext <<_ACEOF
16455 /* end confdefs.h. */
16456 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16457 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16458 #define $ac_func innocuous_$ac_func
16460 /* System header to define __stub macros and hopefully few prototypes,
16461 which can conflict with char $ac_func (); below.
16462 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16463 <limits.h> exists even on freestanding compilers. */
16466 # include <limits.h>
16468 # include <assert.h>
16473 /* Override any GCC internal prototype to avoid an error.
16474 Use char because int might match the return type of a GCC
16475 builtin and then its argument prototype would still apply. */
16480 /* The GNU C library defines this for functions which it implements
16481 to always fail with ENOSYS. Some functions are actually named
16482 something starting with __ and the normal name is an alias. */
16483 #if defined __stub_$ac_func || defined __stub___$ac_func
16490 return $ac_func ();
16495 rm -f conftest.$ac_objext conftest$ac_exeext
16496 if { (ac_try="$ac_link"
16497 case "(($ac_try" in
16498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16499 *) ac_try_echo=$ac_try;;
16501 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16502 (eval "$ac_link") 2>conftest.er1
16504 grep -v '^ *+' conftest.er1 >conftest.err
16506 cat conftest.err >&5
16507 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16508 (exit $ac_status); } && {
16509 test -z "$ac_c_werror_flag" ||
16510 test ! -s conftest.err
16511 } && test -s conftest$ac_exeext &&
16512 $as_test_x conftest$ac_exeext; then
16513 eval "$as_ac_var=yes"
16515 echo "$as_me: failed program was
:" >&5
16516 sed 's/^/| /' conftest.$ac_ext >&5
16518 eval "$as_ac_var=no
"
16521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16522 conftest$ac_exeext conftest.$ac_ext
16524 ac_res=`eval echo '${'$as_ac_var'}'`
16525 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16526 echo "${ECHO_T}$ac_res" >&6; }
16527 if test `eval echo '${'$as_ac_var'}'` = yes; then
16528 cat >>confdefs.h <<_ACEOF
16529 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16536 # Solaris has libkstat which does not require root.
16538 { echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
16539 echo $ECHO_N "checking
for kstat_open
in -lkstat...
$ECHO_C" >&6; }
16540 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16541 echo $ECHO_N "(cached
) $ECHO_C" >&6
16543 ac_check_lib_save_LIBS=$LIBS
16544 LIBS="-lkstat $LIBS"
16545 cat >conftest.$ac_ext <<_ACEOF
16548 cat confdefs.h >>conftest.$ac_ext
16549 cat >>conftest.$ac_ext <<_ACEOF
16550 /* end confdefs.h. */
16552 /* Override any GCC internal prototype to avoid an error.
16553 Use char because int might match the return type of a GCC
16554 builtin and then its argument prototype would still apply. */
16558 char kstat_open ();
16562 return kstat_open ();
16567 rm -f conftest.$ac_objext conftest$ac_exeext
16568 if { (ac_try="$ac_link"
16569 case "(($ac_try" in
16570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16571 *) ac_try_echo=$ac_try;;
16573 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16574 (eval "$ac_link") 2>conftest.er1
16576 grep -v '^ *+' conftest.er1 >conftest.err
16578 cat conftest.err >&5
16579 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16580 (exit $ac_status); } && {
16581 test -z "$ac_c_werror_flag" ||
16582 test ! -s conftest.err
16583 } && test -s conftest$ac_exeext &&
16584 $as_test_x conftest$ac_exeext; then
16585 ac_cv_lib_kstat_kstat_open=yes
16587 echo "$as_me: failed program was
:" >&5
16588 sed 's/^/| /' conftest.$ac_ext >&5
16590 ac_cv_lib_kstat_kstat_open=no
16593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16594 conftest$ac_exeext conftest.$ac_ext
16595 LIBS=$ac_check_lib_save_LIBS
16597 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
16598 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16599 if test $ac_cv_lib_kstat_kstat_open = yes; then
16600 cat >>confdefs.h <<_ACEOF
16601 #define HAVE_LIBKSTAT 1
16604 LIBS="-lkstat $LIBS"
16608 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
16610 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16611 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16612 # to get the right answer into the cache.
16613 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16614 if test $ac_have_func = no; then
16615 { echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
16616 echo $ECHO_N "checking
for elf_begin
in -lelf...
$ECHO_C" >&6; }
16617 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
16618 echo $ECHO_N "(cached
) $ECHO_C" >&6
16620 ac_check_lib_save_LIBS=$LIBS
16622 cat >conftest.$ac_ext <<_ACEOF
16625 cat confdefs.h >>conftest.$ac_ext
16626 cat >>conftest.$ac_ext <<_ACEOF
16627 /* end confdefs.h. */
16629 /* Override any GCC internal prototype to avoid an error.
16630 Use char because int might match the return type of a GCC
16631 builtin and then its argument prototype would still apply. */
16639 return elf_begin ();
16644 rm -f conftest.$ac_objext conftest$ac_exeext
16645 if { (ac_try="$ac_link"
16646 case "(($ac_try" in
16647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16648 *) ac_try_echo=$ac_try;;
16650 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16651 (eval "$ac_link") 2>conftest.er1
16653 grep -v '^ *+' conftest.er1 >conftest.err
16655 cat conftest.err >&5
16656 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16657 (exit $ac_status); } && {
16658 test -z "$ac_c_werror_flag" ||
16659 test ! -s conftest.err
16660 } && test -s conftest$ac_exeext &&
16661 $as_test_x conftest$ac_exeext; then
16662 ac_cv_lib_elf_elf_begin=yes
16664 echo "$as_me: failed program was
:" >&5
16665 sed 's/^/| /' conftest.$ac_ext >&5
16667 ac_cv_lib_elf_elf_begin=no
16670 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16671 conftest$ac_exeext conftest.$ac_ext
16672 LIBS=$ac_check_lib_save_LIBS
16674 { echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
16675 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
16676 if test $ac_cv_lib_elf_elf_begin = yes; then
16681 if test $ac_have_func = no; then
16682 { echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
16683 echo $ECHO_N "checking
for kvm_open
in -lkvm...
$ECHO_C" >&6; }
16684 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
16685 echo $ECHO_N "(cached
) $ECHO_C" >&6
16687 ac_check_lib_save_LIBS=$LIBS
16689 cat >conftest.$ac_ext <<_ACEOF
16692 cat confdefs.h >>conftest.$ac_ext
16693 cat >>conftest.$ac_ext <<_ACEOF
16694 /* end confdefs.h. */
16696 /* Override any GCC internal prototype to avoid an error.
16697 Use char because int might match the return type of a GCC
16698 builtin and then its argument prototype would still apply. */
16706 return kvm_open ();
16711 rm -f conftest.$ac_objext conftest$ac_exeext
16712 if { (ac_try="$ac_link"
16713 case "(($ac_try" in
16714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16715 *) ac_try_echo=$ac_try;;
16717 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16718 (eval "$ac_link") 2>conftest.er1
16720 grep -v '^ *+' conftest.er1 >conftest.err
16722 cat conftest.err >&5
16723 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16724 (exit $ac_status); } && {
16725 test -z "$ac_c_werror_flag" ||
16726 test ! -s conftest.err
16727 } && test -s conftest$ac_exeext &&
16728 $as_test_x conftest$ac_exeext; then
16729 ac_cv_lib_kvm_kvm_open=yes
16731 echo "$as_me: failed program was
:" >&5
16732 sed 's/^/| /' conftest.$ac_ext >&5
16734 ac_cv_lib_kvm_kvm_open=no
16737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16738 conftest$ac_exeext conftest.$ac_ext
16739 LIBS=$ac_check_lib_save_LIBS
16741 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
16742 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
16743 if test $ac_cv_lib_kvm_kvm_open = yes; then
16747 # Check for the 4.4BSD definition of getloadavg.
16748 { echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
16749 echo $ECHO_N "checking
for getloadavg
in -lutil...
$ECHO_C" >&6; }
16750 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
16751 echo $ECHO_N "(cached
) $ECHO_C" >&6
16753 ac_check_lib_save_LIBS=$LIBS
16754 LIBS="-lutil $LIBS"
16755 cat >conftest.$ac_ext <<_ACEOF
16758 cat confdefs.h >>conftest.$ac_ext
16759 cat >>conftest.$ac_ext <<_ACEOF
16760 /* end confdefs.h. */
16762 /* Override any GCC internal prototype to avoid an error.
16763 Use char because int might match the return type of a GCC
16764 builtin and then its argument prototype would still apply. */
16768 char getloadavg ();
16772 return getloadavg ();
16777 rm -f conftest.$ac_objext conftest$ac_exeext
16778 if { (ac_try="$ac_link"
16779 case "(($ac_try" in
16780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16781 *) ac_try_echo=$ac_try;;
16783 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16784 (eval "$ac_link") 2>conftest.er1
16786 grep -v '^ *+' conftest.er1 >conftest.err
16788 cat conftest.err >&5
16789 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16790 (exit $ac_status); } && {
16791 test -z "$ac_c_werror_flag" ||
16792 test ! -s conftest.err
16793 } && test -s conftest$ac_exeext &&
16794 $as_test_x conftest$ac_exeext; then
16795 ac_cv_lib_util_getloadavg=yes
16797 echo "$as_me: failed program was
:" >&5
16798 sed 's/^/| /' conftest.$ac_ext >&5
16800 ac_cv_lib_util_getloadavg=no
16803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16804 conftest$ac_exeext conftest.$ac_ext
16805 LIBS=$ac_check_lib_save_LIBS
16807 { echo "$as_me:$LINENO: result
: $ac_cv_lib_util_getloadavg" >&5
16808 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
16809 if test $ac_cv_lib_util_getloadavg = yes; then
16810 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
16815 if test $ac_have_func = no; then
16816 # There is a commonly available library for RS/6000 AIX.
16817 # Since it is not a standard part of AIX, it might be installed locally.
16818 ac_getloadavg_LIBS=$LIBS
16819 LIBS="-L/usr
/local
/lib
$LIBS"
16820 { echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
16821 echo $ECHO_N "checking
for getloadavg
in -lgetloadavg...
$ECHO_C" >&6; }
16822 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
16823 echo $ECHO_N "(cached
) $ECHO_C" >&6
16825 ac_check_lib_save_LIBS=$LIBS
16826 LIBS="-lgetloadavg $LIBS"
16827 cat >conftest.$ac_ext <<_ACEOF
16830 cat confdefs.h >>conftest.$ac_ext
16831 cat >>conftest.$ac_ext <<_ACEOF
16832 /* end confdefs.h. */
16834 /* Override any GCC internal prototype to avoid an error.
16835 Use char because int might match the return type of a GCC
16836 builtin and then its argument prototype would still apply. */
16840 char getloadavg ();
16844 return getloadavg ();
16849 rm -f conftest.$ac_objext conftest$ac_exeext
16850 if { (ac_try="$ac_link"
16851 case "(($ac_try" in
16852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16853 *) ac_try_echo=$ac_try;;
16855 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16856 (eval "$ac_link") 2>conftest.er1
16858 grep -v '^ *+' conftest.er1 >conftest.err
16860 cat conftest.err >&5
16861 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16862 (exit $ac_status); } && {
16863 test -z "$ac_c_werror_flag" ||
16864 test ! -s conftest.err
16865 } && test -s conftest$ac_exeext &&
16866 $as_test_x conftest$ac_exeext; then
16867 ac_cv_lib_getloadavg_getloadavg=yes
16869 echo "$as_me: failed program was
:" >&5
16870 sed 's/^/| /' conftest.$ac_ext >&5
16872 ac_cv_lib_getloadavg_getloadavg=no
16875 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16876 conftest$ac_exeext conftest.$ac_ext
16877 LIBS=$ac_check_lib_save_LIBS
16879 { echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
16880 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
16881 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
16882 LIBS="-lgetloadavg $LIBS"
16884 LIBS=$ac_getloadavg_LIBS
16889 # Make sure it is really in the library, if we think we found it,
16890 # otherwise set up the replacement function.
16892 for ac_func in getloadavg
16894 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16895 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16896 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16897 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16898 echo $ECHO_N "(cached
) $ECHO_C" >&6
16900 cat >conftest.$ac_ext <<_ACEOF
16903 cat confdefs.h >>conftest.$ac_ext
16904 cat >>conftest.$ac_ext <<_ACEOF
16905 /* end confdefs.h. */
16906 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16907 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16908 #define $ac_func innocuous_$ac_func
16910 /* System header to define __stub macros and hopefully few prototypes,
16911 which can conflict with char $ac_func (); below.
16912 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16913 <limits.h> exists even on freestanding compilers. */
16916 # include <limits.h>
16918 # include <assert.h>
16923 /* Override any GCC internal prototype to avoid an error.
16924 Use char because int might match the return type of a GCC
16925 builtin and then its argument prototype would still apply. */
16930 /* The GNU C library defines this for functions which it implements
16931 to always fail with ENOSYS. Some functions are actually named
16932 something starting with __ and the normal name is an alias. */
16933 #if defined __stub_$ac_func || defined __stub___$ac_func
16940 return $ac_func ();
16945 rm -f conftest.$ac_objext conftest$ac_exeext
16946 if { (ac_try="$ac_link"
16947 case "(($ac_try" in
16948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16949 *) ac_try_echo=$ac_try;;
16951 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16952 (eval "$ac_link") 2>conftest.er1
16954 grep -v '^ *+' conftest.er1 >conftest.err
16956 cat conftest.err >&5
16957 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16958 (exit $ac_status); } && {
16959 test -z "$ac_c_werror_flag" ||
16960 test ! -s conftest.err
16961 } && test -s conftest$ac_exeext &&
16962 $as_test_x conftest$ac_exeext; then
16963 eval "$as_ac_var=yes"
16965 echo "$as_me: failed program was
:" >&5
16966 sed 's/^/| /' conftest.$ac_ext >&5
16968 eval "$as_ac_var=no
"
16971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16972 conftest$ac_exeext conftest.$ac_ext
16974 ac_res=`eval echo '${'$as_ac_var'}'`
16975 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16976 echo "${ECHO_T}$ac_res" >&6; }
16977 if test `eval echo '${'$as_ac_var'}'` = yes; then
16978 cat >>confdefs.h <<_ACEOF
16979 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16983 case " $LIBOBJS " in
16984 *" getloadavg.
$ac_objext "* ) ;;
16985 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
16990 cat >>confdefs.h <<\_ACEOF
16991 #define C_GETLOADAVG 1
16994 # Figure out what our getloadavg.c needs.
16996 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16997 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
16998 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
16999 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17000 echo $ECHO_N "(cached
) $ECHO_C" >&6
17002 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17003 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17005 # Is the header compilable?
17006 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
17007 echo $ECHO_N "checking sys
/dg_sys_info.h usability...
$ECHO_C" >&6; }
17008 cat >conftest.$ac_ext <<_ACEOF
17011 cat confdefs.h >>conftest.$ac_ext
17012 cat >>conftest.$ac_ext <<_ACEOF
17013 /* end confdefs.h. */
17014 $ac_includes_default
17015 #include <sys/dg_sys_info.h>
17017 rm -f conftest.$ac_objext
17018 if { (ac_try="$ac_compile"
17019 case "(($ac_try" in
17020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17021 *) ac_try_echo=$ac_try;;
17023 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17024 (eval "$ac_compile") 2>conftest.er1
17026 grep -v '^ *+' conftest.er1 >conftest.err
17028 cat conftest.err >&5
17029 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17030 (exit $ac_status); } && {
17031 test -z "$ac_c_werror_flag" ||
17032 test ! -s conftest.err
17033 } && test -s conftest.$ac_objext; then
17034 ac_header_compiler=yes
17036 echo "$as_me: failed program was
:" >&5
17037 sed 's/^/| /' conftest.$ac_ext >&5
17039 ac_header_compiler=no
17042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17043 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17044 echo "${ECHO_T}$ac_header_compiler" >&6; }
17046 # Is the header present?
17047 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
17048 echo $ECHO_N "checking sys
/dg_sys_info.h presence...
$ECHO_C" >&6; }
17049 cat >conftest.$ac_ext <<_ACEOF
17052 cat confdefs.h >>conftest.$ac_ext
17053 cat >>conftest.$ac_ext <<_ACEOF
17054 /* end confdefs.h. */
17055 #include <sys/dg_sys_info.h>
17057 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17058 case "(($ac_try" in
17059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17060 *) ac_try_echo=$ac_try;;
17062 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17063 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17065 grep -v '^ *+' conftest.er1 >conftest.err
17067 cat conftest.err >&5
17068 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17069 (exit $ac_status); } >/dev/null && {
17070 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17071 test ! -s conftest.err
17073 ac_header_preproc=yes
17075 echo "$as_me: failed program was
:" >&5
17076 sed 's/^/| /' conftest.$ac_ext >&5
17078 ac_header_preproc=no
17081 rm -f conftest.err conftest.$ac_ext
17082 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17083 echo "${ECHO_T}$ac_header_preproc" >&6; }
17085 # So? What about this header?
17086 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17088 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17089 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17090 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
17091 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
17092 ac_header_preproc=yes
17095 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
17096 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
17097 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
17098 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
17099 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
17100 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
17101 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17102 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17103 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
17104 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
17105 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
17106 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
17110 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17111 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17112 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17113 echo $ECHO_N "(cached
) $ECHO_C" >&6
17115 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17117 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17118 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17121 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17124 cat >>confdefs.h <<\_ACEOF
17129 { echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
17130 echo $ECHO_N "checking
for dg_sys_info
in -ldgc...
$ECHO_C" >&6; }
17131 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17132 echo $ECHO_N "(cached
) $ECHO_C" >&6
17134 ac_check_lib_save_LIBS=$LIBS
17136 cat >conftest.$ac_ext <<_ACEOF
17139 cat confdefs.h >>conftest.$ac_ext
17140 cat >>conftest.$ac_ext <<_ACEOF
17141 /* end confdefs.h. */
17143 /* Override any GCC internal prototype to avoid an error.
17144 Use char because int might match the return type of a GCC
17145 builtin and then its argument prototype would still apply. */
17149 char dg_sys_info ();
17153 return dg_sys_info ();
17158 rm -f conftest.$ac_objext conftest$ac_exeext
17159 if { (ac_try="$ac_link"
17160 case "(($ac_try" in
17161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17162 *) ac_try_echo=$ac_try;;
17164 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17165 (eval "$ac_link") 2>conftest.er1
17167 grep -v '^ *+' conftest.er1 >conftest.err
17169 cat conftest.err >&5
17170 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17171 (exit $ac_status); } && {
17172 test -z "$ac_c_werror_flag" ||
17173 test ! -s conftest.err
17174 } && test -s conftest$ac_exeext &&
17175 $as_test_x conftest$ac_exeext; then
17176 ac_cv_lib_dgc_dg_sys_info=yes
17178 echo "$as_me: failed program was
:" >&5
17179 sed 's/^/| /' conftest.$ac_ext >&5
17181 ac_cv_lib_dgc_dg_sys_info=no
17184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17185 conftest$ac_exeext conftest.$ac_ext
17186 LIBS=$ac_check_lib_save_LIBS
17188 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
17189 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17190 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17191 cat >>confdefs.h <<_ACEOF
17192 #define HAVE_LIBDGC 1
17203 if test "${ac_cv_header_locale_h+set}" = set; then
17204 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17205 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17206 if test "${ac_cv_header_locale_h+set}" = set; then
17207 echo $ECHO_N "(cached
) $ECHO_C" >&6
17209 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17210 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17212 # Is the header compilable?
17213 { echo "$as_me:$LINENO: checking locale.h usability
" >&5
17214 echo $ECHO_N "checking locale.h usability...
$ECHO_C" >&6; }
17215 cat >conftest.$ac_ext <<_ACEOF
17218 cat confdefs.h >>conftest.$ac_ext
17219 cat >>conftest.$ac_ext <<_ACEOF
17220 /* end confdefs.h. */
17221 $ac_includes_default
17222 #include <locale.h>
17224 rm -f conftest.$ac_objext
17225 if { (ac_try="$ac_compile"
17226 case "(($ac_try" in
17227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17228 *) ac_try_echo=$ac_try;;
17230 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17231 (eval "$ac_compile") 2>conftest.er1
17233 grep -v '^ *+' conftest.er1 >conftest.err
17235 cat conftest.err >&5
17236 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17237 (exit $ac_status); } && {
17238 test -z "$ac_c_werror_flag" ||
17239 test ! -s conftest.err
17240 } && test -s conftest.$ac_objext; then
17241 ac_header_compiler=yes
17243 echo "$as_me: failed program was
:" >&5
17244 sed 's/^/| /' conftest.$ac_ext >&5
17246 ac_header_compiler=no
17249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17250 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17251 echo "${ECHO_T}$ac_header_compiler" >&6; }
17253 # Is the header present?
17254 { echo "$as_me:$LINENO: checking locale.h presence
" >&5
17255 echo $ECHO_N "checking locale.h presence...
$ECHO_C" >&6; }
17256 cat >conftest.$ac_ext <<_ACEOF
17259 cat confdefs.h >>conftest.$ac_ext
17260 cat >>conftest.$ac_ext <<_ACEOF
17261 /* end confdefs.h. */
17262 #include <locale.h>
17264 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17265 case "(($ac_try" in
17266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17267 *) ac_try_echo=$ac_try;;
17269 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17270 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17272 grep -v '^ *+' conftest.er1 >conftest.err
17274 cat conftest.err >&5
17275 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17276 (exit $ac_status); } >/dev/null && {
17277 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17278 test ! -s conftest.err
17280 ac_header_preproc=yes
17282 echo "$as_me: failed program was
:" >&5
17283 sed 's/^/| /' conftest.$ac_ext >&5
17285 ac_header_preproc=no
17288 rm -f conftest.err conftest.$ac_ext
17289 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17290 echo "${ECHO_T}$ac_header_preproc" >&6; }
17292 # So? What about this header?
17293 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17295 { echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17296 echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17297 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
17298 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
17299 ac_header_preproc=yes
17302 { echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
17303 echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
17304 { echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
17305 echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
17306 { echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
17307 echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
17308 { echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17309 echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17310 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
17311 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
17312 { echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
17313 echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
17317 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17318 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17319 if test "${ac_cv_header_locale_h+set}" = set; then
17320 echo $ECHO_N "(cached
) $ECHO_C" >&6
17322 ac_cv_header_locale_h=$ac_header_preproc
17324 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17325 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17331 for ac_func in setlocale
17333 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17334 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17335 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17336 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17337 echo $ECHO_N "(cached
) $ECHO_C" >&6
17339 cat >conftest.$ac_ext <<_ACEOF
17342 cat confdefs.h >>conftest.$ac_ext
17343 cat >>conftest.$ac_ext <<_ACEOF
17344 /* end confdefs.h. */
17345 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17346 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17347 #define $ac_func innocuous_$ac_func
17349 /* System header to define __stub macros and hopefully few prototypes,
17350 which can conflict with char $ac_func (); below.
17351 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17352 <limits.h> exists even on freestanding compilers. */
17355 # include <limits.h>
17357 # include <assert.h>
17362 /* Override any GCC internal prototype to avoid an error.
17363 Use char because int might match the return type of a GCC
17364 builtin and then its argument prototype would still apply. */
17369 /* The GNU C library defines this for functions which it implements
17370 to always fail with ENOSYS. Some functions are actually named
17371 something starting with __ and the normal name is an alias. */
17372 #if defined __stub_$ac_func || defined __stub___$ac_func
17379 return $ac_func ();
17384 rm -f conftest.$ac_objext conftest$ac_exeext
17385 if { (ac_try="$ac_link"
17386 case "(($ac_try" in
17387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17388 *) ac_try_echo=$ac_try;;
17390 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17391 (eval "$ac_link") 2>conftest.er1
17393 grep -v '^ *+' conftest.er1 >conftest.err
17395 cat conftest.err >&5
17396 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17397 (exit $ac_status); } && {
17398 test -z "$ac_c_werror_flag" ||
17399 test ! -s conftest.err
17400 } && test -s conftest$ac_exeext &&
17401 $as_test_x conftest$ac_exeext; then
17402 eval "$as_ac_var=yes"
17404 echo "$as_me: failed program was
:" >&5
17405 sed 's/^/| /' conftest.$ac_ext >&5
17407 eval "$as_ac_var=no
"
17410 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17411 conftest$ac_exeext conftest.$ac_ext
17413 ac_res=`eval echo '${'$as_ac_var'}'`
17414 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17415 echo "${ECHO_T}$ac_res" >&6; }
17416 if test `eval echo '${'$as_ac_var'}'` = yes; then
17417 cat >>confdefs.h <<_ACEOF
17418 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17425 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17426 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17427 # Irix 4.0.5F has the header but not the library.
17428 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17431 cat >>confdefs.h <<\_ACEOF
17437 if test $ac_have_func = no; then
17438 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17439 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17440 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17441 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17442 echo $ECHO_N "(cached
) $ECHO_C" >&6
17444 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17445 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17447 # Is the header compilable?
17448 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
17449 echo $ECHO_N "checking inq_stats
/cpustats.h usability...
$ECHO_C" >&6; }
17450 cat >conftest.$ac_ext <<_ACEOF
17453 cat confdefs.h >>conftest.$ac_ext
17454 cat >>conftest.$ac_ext <<_ACEOF
17455 /* end confdefs.h. */
17456 $ac_includes_default
17457 #include <inq_stats/cpustats.h>
17459 rm -f conftest.$ac_objext
17460 if { (ac_try="$ac_compile"
17461 case "(($ac_try" in
17462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17463 *) ac_try_echo=$ac_try;;
17465 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17466 (eval "$ac_compile") 2>conftest.er1
17468 grep -v '^ *+' conftest.er1 >conftest.err
17470 cat conftest.err >&5
17471 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17472 (exit $ac_status); } && {
17473 test -z "$ac_c_werror_flag" ||
17474 test ! -s conftest.err
17475 } && test -s conftest.$ac_objext; then
17476 ac_header_compiler=yes
17478 echo "$as_me: failed program was
:" >&5
17479 sed 's/^/| /' conftest.$ac_ext >&5
17481 ac_header_compiler=no
17484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17485 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17486 echo "${ECHO_T}$ac_header_compiler" >&6; }
17488 # Is the header present?
17489 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
17490 echo $ECHO_N "checking inq_stats
/cpustats.h presence...
$ECHO_C" >&6; }
17491 cat >conftest.$ac_ext <<_ACEOF
17494 cat confdefs.h >>conftest.$ac_ext
17495 cat >>conftest.$ac_ext <<_ACEOF
17496 /* end confdefs.h. */
17497 #include <inq_stats/cpustats.h>
17499 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17500 case "(($ac_try" in
17501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17502 *) ac_try_echo=$ac_try;;
17504 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17505 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17507 grep -v '^ *+' conftest.er1 >conftest.err
17509 cat conftest.err >&5
17510 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17511 (exit $ac_status); } >/dev/null && {
17512 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17513 test ! -s conftest.err
17515 ac_header_preproc=yes
17517 echo "$as_me: failed program was
:" >&5
17518 sed 's/^/| /' conftest.$ac_ext >&5
17520 ac_header_preproc=no
17523 rm -f conftest.err conftest.$ac_ext
17524 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17525 echo "${ECHO_T}$ac_header_preproc" >&6; }
17527 # So? What about this header?
17528 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17530 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17531 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17532 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
17533 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
17534 ac_header_preproc=yes
17537 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
17538 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
17539 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
17540 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
17541 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
17542 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
17543 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17544 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17545 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
17546 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
17547 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
17548 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
17552 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17553 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17554 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17555 echo $ECHO_N "(cached
) $ECHO_C" >&6
17557 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17559 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17560 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17563 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17566 cat >>confdefs.h <<\_ACEOF
17571 cat >>confdefs.h <<\_ACEOF
17580 if test $ac_have_func = no; then
17581 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17582 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
17583 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
17584 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17585 echo $ECHO_N "(cached
) $ECHO_C" >&6
17587 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
17588 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17590 # Is the header compilable?
17591 { echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
17592 echo $ECHO_N "checking sys
/cpustats.h usability...
$ECHO_C" >&6; }
17593 cat >conftest.$ac_ext <<_ACEOF
17596 cat confdefs.h >>conftest.$ac_ext
17597 cat >>conftest.$ac_ext <<_ACEOF
17598 /* end confdefs.h. */
17599 $ac_includes_default
17600 #include <sys/cpustats.h>
17602 rm -f conftest.$ac_objext
17603 if { (ac_try="$ac_compile"
17604 case "(($ac_try" in
17605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17606 *) ac_try_echo=$ac_try;;
17608 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17609 (eval "$ac_compile") 2>conftest.er1
17611 grep -v '^ *+' conftest.er1 >conftest.err
17613 cat conftest.err >&5
17614 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17615 (exit $ac_status); } && {
17616 test -z "$ac_c_werror_flag" ||
17617 test ! -s conftest.err
17618 } && test -s conftest.$ac_objext; then
17619 ac_header_compiler=yes
17621 echo "$as_me: failed program was
:" >&5
17622 sed 's/^/| /' conftest.$ac_ext >&5
17624 ac_header_compiler=no
17627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17628 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17629 echo "${ECHO_T}$ac_header_compiler" >&6; }
17631 # Is the header present?
17632 { echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
17633 echo $ECHO_N "checking sys
/cpustats.h presence...
$ECHO_C" >&6; }
17634 cat >conftest.$ac_ext <<_ACEOF
17637 cat confdefs.h >>conftest.$ac_ext
17638 cat >>conftest.$ac_ext <<_ACEOF
17639 /* end confdefs.h. */
17640 #include <sys/cpustats.h>
17642 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17643 case "(($ac_try" in
17644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17645 *) ac_try_echo=$ac_try;;
17647 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17648 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17650 grep -v '^ *+' conftest.er1 >conftest.err
17652 cat conftest.err >&5
17653 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17654 (exit $ac_status); } >/dev/null && {
17655 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17656 test ! -s conftest.err
17658 ac_header_preproc=yes
17660 echo "$as_me: failed program was
:" >&5
17661 sed 's/^/| /' conftest.$ac_ext >&5
17663 ac_header_preproc=no
17666 rm -f conftest.err conftest.$ac_ext
17667 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17668 echo "${ECHO_T}$ac_header_preproc" >&6; }
17670 # So? What about this header?
17671 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17673 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17674 echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17675 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
17676 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
17677 ac_header_preproc=yes
17680 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
17681 echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
17682 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
17683 echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
17684 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
17685 echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
17686 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17687 echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17688 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
17689 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
17690 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
17691 echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
17695 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
17696 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
17697 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17698 echo $ECHO_N "(cached
) $ECHO_C" >&6
17700 ac_cv_header_sys_cpustats_h=$ac_header_preproc
17702 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
17703 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17706 if test $ac_cv_header_sys_cpustats_h = yes; then
17707 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
17716 if test $ac_have_func = no; then
17718 for ac_header in mach/mach.h
17720 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17721 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17722 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17723 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17724 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17725 echo $ECHO_N "(cached
) $ECHO_C" >&6
17727 ac_res=`eval echo '${'$as_ac_Header'}'`
17728 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17729 echo "${ECHO_T}$ac_res" >&6; }
17731 # Is the header compilable?
17732 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17733 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
17734 cat >conftest.$ac_ext <<_ACEOF
17737 cat confdefs.h >>conftest.$ac_ext
17738 cat >>conftest.$ac_ext <<_ACEOF
17739 /* end confdefs.h. */
17740 $ac_includes_default
17741 #include <$ac_header>
17743 rm -f conftest.$ac_objext
17744 if { (ac_try="$ac_compile"
17745 case "(($ac_try" in
17746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17747 *) ac_try_echo=$ac_try;;
17749 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17750 (eval "$ac_compile") 2>conftest.er1
17752 grep -v '^ *+' conftest.er1 >conftest.err
17754 cat conftest.err >&5
17755 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17756 (exit $ac_status); } && {
17757 test -z "$ac_c_werror_flag" ||
17758 test ! -s conftest.err
17759 } && test -s conftest.$ac_objext; then
17760 ac_header_compiler=yes
17762 echo "$as_me: failed program was
:" >&5
17763 sed 's/^/| /' conftest.$ac_ext >&5
17765 ac_header_compiler=no
17768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17769 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17770 echo "${ECHO_T}$ac_header_compiler" >&6; }
17772 # Is the header present?
17773 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17774 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
17775 cat >conftest.$ac_ext <<_ACEOF
17778 cat confdefs.h >>conftest.$ac_ext
17779 cat >>conftest.$ac_ext <<_ACEOF
17780 /* end confdefs.h. */
17781 #include <$ac_header>
17783 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17784 case "(($ac_try" in
17785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17786 *) ac_try_echo=$ac_try;;
17788 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17789 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17791 grep -v '^ *+' conftest.er1 >conftest.err
17793 cat conftest.err >&5
17794 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17795 (exit $ac_status); } >/dev/null && {
17796 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17797 test ! -s conftest.err
17799 ac_header_preproc=yes
17801 echo "$as_me: failed program was
:" >&5
17802 sed 's/^/| /' conftest.$ac_ext >&5
17804 ac_header_preproc=no
17807 rm -f conftest.err conftest.$ac_ext
17808 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17809 echo "${ECHO_T}$ac_header_preproc" >&6; }
17811 # So? What about this header?
17812 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17814 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17815 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17816 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17817 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17818 ac_header_preproc=yes
17821 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17822 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17823 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17824 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17825 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17826 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17827 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17828 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17829 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17830 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17831 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17832 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17836 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17837 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17838 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17839 echo $ECHO_N "(cached
) $ECHO_C" >&6
17841 eval "$as_ac_Header=\
$ac_header_preproc"
17843 ac_res=`eval echo '${'$as_ac_Header'}'`
17844 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17845 echo "${ECHO_T}$ac_res" >&6; }
17848 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17849 cat >>confdefs.h <<_ACEOF
17850 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17860 for ac_header in nlist.h
17862 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17863 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17864 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17865 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17866 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17867 echo $ECHO_N "(cached
) $ECHO_C" >&6
17869 ac_res=`eval echo '${'$as_ac_Header'}'`
17870 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17871 echo "${ECHO_T}$ac_res" >&6; }
17873 # Is the header compilable?
17874 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17875 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
17876 cat >conftest.$ac_ext <<_ACEOF
17879 cat confdefs.h >>conftest.$ac_ext
17880 cat >>conftest.$ac_ext <<_ACEOF
17881 /* end confdefs.h. */
17882 $ac_includes_default
17883 #include <$ac_header>
17885 rm -f conftest.$ac_objext
17886 if { (ac_try="$ac_compile"
17887 case "(($ac_try" in
17888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17889 *) ac_try_echo=$ac_try;;
17891 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17892 (eval "$ac_compile") 2>conftest.er1
17894 grep -v '^ *+' conftest.er1 >conftest.err
17896 cat conftest.err >&5
17897 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17898 (exit $ac_status); } && {
17899 test -z "$ac_c_werror_flag" ||
17900 test ! -s conftest.err
17901 } && test -s conftest.$ac_objext; then
17902 ac_header_compiler=yes
17904 echo "$as_me: failed program was
:" >&5
17905 sed 's/^/| /' conftest.$ac_ext >&5
17907 ac_header_compiler=no
17910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17911 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17912 echo "${ECHO_T}$ac_header_compiler" >&6; }
17914 # Is the header present?
17915 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17916 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
17917 cat >conftest.$ac_ext <<_ACEOF
17920 cat confdefs.h >>conftest.$ac_ext
17921 cat >>conftest.$ac_ext <<_ACEOF
17922 /* end confdefs.h. */
17923 #include <$ac_header>
17925 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17926 case "(($ac_try" in
17927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17928 *) ac_try_echo=$ac_try;;
17930 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17931 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17933 grep -v '^ *+' conftest.er1 >conftest.err
17935 cat conftest.err >&5
17936 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17937 (exit $ac_status); } >/dev/null && {
17938 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17939 test ! -s conftest.err
17941 ac_header_preproc=yes
17943 echo "$as_me: failed program was
:" >&5
17944 sed 's/^/| /' conftest.$ac_ext >&5
17946 ac_header_preproc=no
17949 rm -f conftest.err conftest.$ac_ext
17950 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17951 echo "${ECHO_T}$ac_header_preproc" >&6; }
17953 # So? What about this header?
17954 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17956 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17957 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17958 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17959 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17960 ac_header_preproc=yes
17963 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17964 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17965 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17966 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17967 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17968 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17969 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17970 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17971 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17972 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17973 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17974 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17978 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17979 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17980 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17981 echo $ECHO_N "(cached
) $ECHO_C" >&6
17983 eval "$as_ac_Header=\
$ac_header_preproc"
17985 ac_res=`eval echo '${'$as_ac_Header'}'`
17986 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17987 echo "${ECHO_T}$ac_res" >&6; }
17990 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17991 cat >>confdefs.h <<_ACEOF
17992 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17994 { echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
17995 echo $ECHO_N "checking
for struct nlist.n_un.n_name...
$ECHO_C" >&6; }
17996 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
17997 echo $ECHO_N "(cached
) $ECHO_C" >&6
17999 cat >conftest.$ac_ext <<_ACEOF
18002 cat confdefs.h >>conftest.$ac_ext
18003 cat >>conftest.$ac_ext <<_ACEOF
18004 /* end confdefs.h. */
18010 static struct nlist ac_aggr;
18011 if (ac_aggr.n_un.n_name)
18017 rm -f conftest.$ac_objext
18018 if { (ac_try="$ac_compile"
18019 case "(($ac_try" in
18020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18021 *) ac_try_echo=$ac_try;;
18023 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18024 (eval "$ac_compile") 2>conftest.er1
18026 grep -v '^ *+' conftest.er1 >conftest.err
18028 cat conftest.err >&5
18029 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18030 (exit $ac_status); } && {
18031 test -z "$ac_c_werror_flag" ||
18032 test ! -s conftest.err
18033 } && test -s conftest.$ac_objext; then
18034 ac_cv_member_struct_nlist_n_un_n_name=yes
18036 echo "$as_me: failed program was
:" >&5
18037 sed 's/^/| /' conftest.$ac_ext >&5
18039 cat >conftest.$ac_ext <<_ACEOF
18042 cat confdefs.h >>conftest.$ac_ext
18043 cat >>conftest.$ac_ext <<_ACEOF
18044 /* end confdefs.h. */
18050 static struct nlist ac_aggr;
18051 if (sizeof ac_aggr.n_un.n_name)
18057 rm -f conftest.$ac_objext
18058 if { (ac_try="$ac_compile"
18059 case "(($ac_try" in
18060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18061 *) ac_try_echo=$ac_try;;
18063 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18064 (eval "$ac_compile") 2>conftest.er1
18066 grep -v '^ *+' conftest.er1 >conftest.err
18068 cat conftest.err >&5
18069 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18070 (exit $ac_status); } && {
18071 test -z "$ac_c_werror_flag" ||
18072 test ! -s conftest.err
18073 } && test -s conftest.$ac_objext; then
18074 ac_cv_member_struct_nlist_n_un_n_name=yes
18076 echo "$as_me: failed program was
:" >&5
18077 sed 's/^/| /' conftest.$ac_ext >&5
18079 ac_cv_member_struct_nlist_n_un_n_name=no
18082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18087 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18088 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18089 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18091 cat >>confdefs.h <<_ACEOF
18092 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18096 cat >>confdefs.h <<\_ACEOF
18097 #define NLIST_NAME_UNION 1
18111 # Some definitions of getloadavg require that the program be installed setgid.
18112 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
18113 echo $ECHO_N "checking whether getloadavg requires setgid...
$ECHO_C" >&6; }
18114 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18115 echo $ECHO_N "(cached
) $ECHO_C" >&6
18117 cat >conftest.$ac_ext <<_ACEOF
18120 cat confdefs.h >>conftest.$ac_ext
18121 cat >>conftest.$ac_ext <<_ACEOF
18122 /* end confdefs.h. */
18123 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
18124 #ifdef LDAV_PRIVILEGED
18125 Yowza Am I SETGID yet
18128 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
18129 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
18130 ac_cv_func_getloadavg_setgid=yes
18132 ac_cv_func_getloadavg_setgid=no
18137 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
18138 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18139 if test $ac_cv_func_getloadavg_setgid = yes; then
18142 cat >>confdefs.h <<\_ACEOF
18143 #define GETLOADAVG_PRIVILEGED 1
18150 if test $ac_cv_func_getloadavg_setgid = yes; then
18151 { echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
18152 echo $ECHO_N "checking group of
/dev
/kmem...
$ECHO_C" >&6; }
18153 if test "${ac_cv_group_kmem+set}" = set; then
18154 echo $ECHO_N "(cached
) $ECHO_C" >&6
18156 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18157 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18158 # If we got an error (system does not support symlinks), try without -L.
18159 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18160 ac_cv_group_kmem=`echo $ac_ls_output \
18161 | sed -ne 's/[ ][ ]*/ /g;
18162 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18166 { echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
18167 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18168 KMEM_GROUP=$ac_cv_group_kmem
18170 if test "x
$ac_save_LIBS" = x; then
18171 GETLOADAVG_LIBS=$LIBS
18173 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s
!$ac_save_LIBS!!"`
18179 { echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
18180 echo $ECHO_N "checking
for _LARGEFILE_SOURCE value needed
for large files...
$ECHO_C" >&6; }
18181 if test "${ac_cv_sys_largefile_source+set}" = set; then
18182 echo $ECHO_N "(cached
) $ECHO_C" >&6
18185 cat >conftest.$ac_ext <<_ACEOF
18188 cat confdefs.h >>conftest.$ac_ext
18189 cat >>conftest.$ac_ext <<_ACEOF
18190 /* end confdefs.h. */
18195 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18200 rm -f conftest.$ac_objext conftest$ac_exeext
18201 if { (ac_try="$ac_link"
18202 case "(($ac_try" in
18203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18204 *) ac_try_echo=$ac_try;;
18206 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18207 (eval "$ac_link") 2>conftest.er1
18209 grep -v '^ *+' conftest.er1 >conftest.err
18211 cat conftest.err >&5
18212 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18213 (exit $ac_status); } && {
18214 test -z "$ac_c_werror_flag" ||
18215 test ! -s conftest.err
18216 } && test -s conftest$ac_exeext &&
18217 $as_test_x conftest$ac_exeext; then
18218 ac_cv_sys_largefile_source=no; break
18220 echo "$as_me: failed program was
:" >&5
18221 sed 's/^/| /' conftest.$ac_ext >&5
18226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18227 conftest$ac_exeext conftest.$ac_ext
18228 cat >conftest.$ac_ext <<_ACEOF
18231 cat confdefs.h >>conftest.$ac_ext
18232 cat >>conftest.$ac_ext <<_ACEOF
18233 /* end confdefs.h. */
18234 #define _LARGEFILE_SOURCE 1
18239 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18244 rm -f conftest.$ac_objext conftest$ac_exeext
18245 if { (ac_try="$ac_link"
18246 case "(($ac_try" in
18247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18248 *) ac_try_echo=$ac_try;;
18250 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18251 (eval "$ac_link") 2>conftest.er1
18253 grep -v '^ *+' conftest.er1 >conftest.err
18255 cat conftest.err >&5
18256 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18257 (exit $ac_status); } && {
18258 test -z "$ac_c_werror_flag" ||
18259 test ! -s conftest.err
18260 } && test -s conftest$ac_exeext &&
18261 $as_test_x conftest$ac_exeext; then
18262 ac_cv_sys_largefile_source=1; break
18264 echo "$as_me: failed program was
:" >&5
18265 sed 's/^/| /' conftest.$ac_ext >&5
18270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18271 conftest$ac_exeext conftest.$ac_ext
18272 ac_cv_sys_largefile_source=unknown
18276 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
18277 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18278 case $ac_cv_sys_largefile_source in #(
18281 cat >>confdefs.h <<_ACEOF
18282 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18288 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18289 # in glibc 2.1.3, but that breaks too many other things.
18290 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18291 if test $ac_cv_sys_largefile_source != unknown; then
18293 cat >>confdefs.h <<\_ACEOF
18294 #define HAVE_FSEEKO 1
18300 # Configure getopt.
18301 # getopt.m4 serial 10
18303 # The getopt module assume you want GNU getopt, with getopt_long etc,
18304 # rather than vanilla POSIX getopt. This means your your code should
18305 # always include <getopt.h> for the getopt prototypes.
18317 # Prerequisites of lib/getopt*.
18324 for ac_header in getopt.h
18326 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18327 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18328 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18329 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18330 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18331 echo $ECHO_N "(cached
) $ECHO_C" >&6
18333 ac_res=`eval echo '${'$as_ac_Header'}'`
18334 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18335 echo "${ECHO_T}$ac_res" >&6; }
18337 # Is the header compilable?
18338 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18339 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18340 cat >conftest.$ac_ext <<_ACEOF
18343 cat confdefs.h >>conftest.$ac_ext
18344 cat >>conftest.$ac_ext <<_ACEOF
18345 /* end confdefs.h. */
18346 $ac_includes_default
18347 #include <$ac_header>
18349 rm -f conftest.$ac_objext
18350 if { (ac_try="$ac_compile"
18351 case "(($ac_try" in
18352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18353 *) ac_try_echo=$ac_try;;
18355 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18356 (eval "$ac_compile") 2>conftest.er1
18358 grep -v '^ *+' conftest.er1 >conftest.err
18360 cat conftest.err >&5
18361 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18362 (exit $ac_status); } && {
18363 test -z "$ac_c_werror_flag" ||
18364 test ! -s conftest.err
18365 } && test -s conftest.$ac_objext; then
18366 ac_header_compiler=yes
18368 echo "$as_me: failed program was
:" >&5
18369 sed 's/^/| /' conftest.$ac_ext >&5
18371 ac_header_compiler=no
18374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18375 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18376 echo "${ECHO_T}$ac_header_compiler" >&6; }
18378 # Is the header present?
18379 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18380 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18381 cat >conftest.$ac_ext <<_ACEOF
18384 cat confdefs.h >>conftest.$ac_ext
18385 cat >>conftest.$ac_ext <<_ACEOF
18386 /* end confdefs.h. */
18387 #include <$ac_header>
18389 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18390 case "(($ac_try" in
18391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18392 *) ac_try_echo=$ac_try;;
18394 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18395 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18397 grep -v '^ *+' conftest.er1 >conftest.err
18399 cat conftest.err >&5
18400 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18401 (exit $ac_status); } >/dev/null && {
18402 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18403 test ! -s conftest.err
18405 ac_header_preproc=yes
18407 echo "$as_me: failed program was
:" >&5
18408 sed 's/^/| /' conftest.$ac_ext >&5
18410 ac_header_preproc=no
18413 rm -f conftest.err conftest.$ac_ext
18414 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18415 echo "${ECHO_T}$ac_header_preproc" >&6; }
18417 # So? What about this header?
18418 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18420 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18421 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18422 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18423 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18424 ac_header_preproc=yes
18427 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18428 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18429 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18430 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18431 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18432 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18433 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18434 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18435 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18436 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18437 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18438 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18442 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18443 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18444 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18445 echo $ECHO_N "(cached
) $ECHO_C" >&6
18447 eval "$as_ac_Header=\
$ac_header_preproc"
18449 ac_res=`eval echo '${'$as_ac_Header'}'`
18450 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18451 echo "${ECHO_T}$ac_res" >&6; }
18454 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18455 cat >>confdefs.h <<_ACEOF
18456 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18465 if test -z "$GETOPT_H"; then
18467 for ac_func in getopt_long_only
18469 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18470 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18471 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18472 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18473 echo $ECHO_N "(cached
) $ECHO_C" >&6
18475 cat >conftest.$ac_ext <<_ACEOF
18478 cat confdefs.h >>conftest.$ac_ext
18479 cat >>conftest.$ac_ext <<_ACEOF
18480 /* end confdefs.h. */
18481 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18482 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18483 #define $ac_func innocuous_$ac_func
18485 /* System header to define __stub macros and hopefully few prototypes,
18486 which can conflict with char $ac_func (); below.
18487 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18488 <limits.h> exists even on freestanding compilers. */
18491 # include <limits.h>
18493 # include <assert.h>
18498 /* Override any GCC internal prototype to avoid an error.
18499 Use char because int might match the return type of a GCC
18500 builtin and then its argument prototype would still apply. */
18505 /* The GNU C library defines this for functions which it implements
18506 to always fail with ENOSYS. Some functions are actually named
18507 something starting with __ and the normal name is an alias. */
18508 #if defined __stub_$ac_func || defined __stub___$ac_func
18515 return $ac_func ();
18520 rm -f conftest.$ac_objext conftest$ac_exeext
18521 if { (ac_try="$ac_link"
18522 case "(($ac_try" in
18523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18524 *) ac_try_echo=$ac_try;;
18526 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18527 (eval "$ac_link") 2>conftest.er1
18529 grep -v '^ *+' conftest.er1 >conftest.err
18531 cat conftest.err >&5
18532 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18533 (exit $ac_status); } && {
18534 test -z "$ac_c_werror_flag" ||
18535 test ! -s conftest.err
18536 } && test -s conftest$ac_exeext &&
18537 $as_test_x conftest$ac_exeext; then
18538 eval "$as_ac_var=yes"
18540 echo "$as_me: failed program was
:" >&5
18541 sed 's/^/| /' conftest.$ac_ext >&5
18543 eval "$as_ac_var=no
"
18546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18547 conftest$ac_exeext conftest.$ac_ext
18549 ac_res=`eval echo '${'$as_ac_var'}'`
18550 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18551 echo "${ECHO_T}$ac_res" >&6; }
18552 if test `eval echo '${'$as_ac_var'}'` = yes; then
18553 cat >>confdefs.h <<_ACEOF
18554 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18564 if test -z "$GETOPT_H"; then
18565 { echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
18566 echo $ECHO_N "checking whether optreset is declared...
$ECHO_C" >&6; }
18567 if test "${ac_cv_have_decl_optreset+set}" = set; then
18568 echo $ECHO_N "(cached
) $ECHO_C" >&6
18570 cat >conftest.$ac_ext <<_ACEOF
18573 cat confdefs.h >>conftest.$ac_ext
18574 cat >>conftest.$ac_ext <<_ACEOF
18575 /* end confdefs.h. */
18576 #include <getopt.h>
18589 rm -f conftest.$ac_objext
18590 if { (ac_try="$ac_compile"
18591 case "(($ac_try" in
18592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18593 *) ac_try_echo=$ac_try;;
18595 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18596 (eval "$ac_compile") 2>conftest.er1
18598 grep -v '^ *+' conftest.er1 >conftest.err
18600 cat conftest.err >&5
18601 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18602 (exit $ac_status); } && {
18603 test -z "$ac_c_werror_flag" ||
18604 test ! -s conftest.err
18605 } && test -s conftest.$ac_objext; then
18606 ac_cv_have_decl_optreset=yes
18608 echo "$as_me: failed program was
:" >&5
18609 sed 's/^/| /' conftest.$ac_ext >&5
18611 ac_cv_have_decl_optreset=no
18614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18616 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
18617 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
18618 if test $ac_cv_have_decl_optreset = yes; then
18624 if test -z "$GETOPT_H"; then
18625 { echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
18626 echo $ECHO_N "checking
for working GNU getopt
function...
$ECHO_C" >&6; }
18627 if test "${gl_cv_func_gnu_getopt+set}" = set; then
18628 echo $ECHO_N "(cached
) $ECHO_C" >&6
18630 if test "$cross_compiling" = yes; then
18631 { echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
18632 echo $ECHO_N "checking whether getopt_clip is declared...
$ECHO_C" >&6; }
18633 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
18634 echo $ECHO_N "(cached
) $ECHO_C" >&6
18636 cat >conftest.$ac_ext <<_ACEOF
18639 cat confdefs.h >>conftest.$ac_ext
18640 cat >>conftest.$ac_ext <<_ACEOF
18641 /* end confdefs.h. */
18642 #include <getopt.h>
18647 #ifndef getopt_clip
18648 (void) getopt_clip;
18655 rm -f conftest.$ac_objext
18656 if { (ac_try="$ac_compile"
18657 case "(($ac_try" in
18658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18659 *) ac_try_echo=$ac_try;;
18661 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18662 (eval "$ac_compile") 2>conftest.er1
18664 grep -v '^ *+' conftest.er1 >conftest.err
18666 cat conftest.err >&5
18667 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18668 (exit $ac_status); } && {
18669 test -z "$ac_c_werror_flag" ||
18670 test ! -s conftest.err
18671 } && test -s conftest.$ac_objext; then
18672 ac_cv_have_decl_getopt_clip=yes
18674 echo "$as_me: failed program was
:" >&5
18675 sed 's/^/| /' conftest.$ac_ext >&5
18677 ac_cv_have_decl_getopt_clip=no
18680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18682 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
18683 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
18684 if test $ac_cv_have_decl_getopt_clip = yes; then
18685 gl_cv_func_gnu_getopt=no
18687 gl_cv_func_gnu_getopt=yes
18691 cat >conftest.$ac_ext <<_ACEOF
18694 cat confdefs.h >>conftest.$ac_ext
18695 cat >>conftest.$ac_ext <<_ACEOF
18696 /* end confdefs.h. */
18697 #include <getopt.h>
18703 myargv[0] = "conftest
";
18706 return getopt (2, myargv, "+a
") != '?';
18712 rm -f conftest$ac_exeext
18713 if { (ac_try="$ac_link"
18714 case "(($ac_try" in
18715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18716 *) ac_try_echo=$ac_try;;
18718 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18719 (eval "$ac_link") 2>&5
18721 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18722 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18723 { (case "(($ac_try" in
18724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18725 *) ac_try_echo=$ac_try;;
18727 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18728 (eval "$ac_try") 2>&5
18730 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18731 (exit $ac_status); }; }; then
18732 gl_cv_func_gnu_getopt=yes
18734 echo "$as_me: program exited with status
$ac_status" >&5
18735 echo "$as_me: failed program was
:" >&5
18736 sed 's/^/| /' conftest.$ac_ext >&5
18738 ( exit $ac_status )
18739 gl_cv_func_gnu_getopt=no
18741 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18746 { echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
18747 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
18748 if test "$gl_cv_func_gnu_getopt" = "no
"; then
18755 if test -n "$GETOPT_H"; then
18760 cat >>confdefs.h <<\_ACEOF
18761 #define __GETOPT_PREFIX rpl_
18767 GETOPTOBJS='getopt.o getopt1.o'
18774 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
18775 echo $ECHO_N "checking whether getpgrp requires zero arguments...
$ECHO_C" >&6; }
18776 if test "${ac_cv_func_getpgrp_void+set}" = set; then
18777 echo $ECHO_N "(cached
) $ECHO_C" >&6
18779 # Use it with a single arg.
18780 cat >conftest.$ac_ext <<_ACEOF
18783 cat confdefs.h >>conftest.$ac_ext
18784 cat >>conftest.$ac_ext <<_ACEOF
18785 /* end confdefs.h. */
18786 $ac_includes_default
18795 rm -f conftest.$ac_objext
18796 if { (ac_try="$ac_compile"
18797 case "(($ac_try" in
18798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18799 *) ac_try_echo=$ac_try;;
18801 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18802 (eval "$ac_compile") 2>conftest.er1
18804 grep -v '^ *+' conftest.er1 >conftest.err
18806 cat conftest.err >&5
18807 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18808 (exit $ac_status); } && {
18809 test -z "$ac_c_werror_flag" ||
18810 test ! -s conftest.err
18811 } && test -s conftest.$ac_objext; then
18812 ac_cv_func_getpgrp_void=no
18814 echo "$as_me: failed program was
:" >&5
18815 sed 's/^/| /' conftest.$ac_ext >&5
18817 ac_cv_func_getpgrp_void=yes
18820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18823 { echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
18824 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
18825 if test $ac_cv_func_getpgrp_void = yes; then
18827 cat >>confdefs.h <<\_ACEOF
18828 #define GETPGRP_VOID 1
18835 for ac_func in strftime
18837 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18838 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18839 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18840 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18841 echo $ECHO_N "(cached
) $ECHO_C" >&6
18843 cat >conftest.$ac_ext <<_ACEOF
18846 cat confdefs.h >>conftest.$ac_ext
18847 cat >>conftest.$ac_ext <<_ACEOF
18848 /* end confdefs.h. */
18849 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18850 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18851 #define $ac_func innocuous_$ac_func
18853 /* System header to define __stub macros and hopefully few prototypes,
18854 which can conflict with char $ac_func (); below.
18855 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18856 <limits.h> exists even on freestanding compilers. */
18859 # include <limits.h>
18861 # include <assert.h>
18866 /* Override any GCC internal prototype to avoid an error.
18867 Use char because int might match the return type of a GCC
18868 builtin and then its argument prototype would still apply. */
18873 /* The GNU C library defines this for functions which it implements
18874 to always fail with ENOSYS. Some functions are actually named
18875 something starting with __ and the normal name is an alias. */
18876 #if defined __stub_$ac_func || defined __stub___$ac_func
18883 return $ac_func ();
18888 rm -f conftest.$ac_objext conftest$ac_exeext
18889 if { (ac_try="$ac_link"
18890 case "(($ac_try" in
18891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18892 *) ac_try_echo=$ac_try;;
18894 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18895 (eval "$ac_link") 2>conftest.er1
18897 grep -v '^ *+' conftest.er1 >conftest.err
18899 cat conftest.err >&5
18900 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18901 (exit $ac_status); } && {
18902 test -z "$ac_c_werror_flag" ||
18903 test ! -s conftest.err
18904 } && test -s conftest$ac_exeext &&
18905 $as_test_x conftest$ac_exeext; then
18906 eval "$as_ac_var=yes"
18908 echo "$as_me: failed program was
:" >&5
18909 sed 's/^/| /' conftest.$ac_ext >&5
18911 eval "$as_ac_var=no
"
18914 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18915 conftest$ac_exeext conftest.$ac_ext
18917 ac_res=`eval echo '${'$as_ac_var'}'`
18918 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18919 echo "${ECHO_T}$ac_res" >&6; }
18920 if test `eval echo '${'$as_ac_var'}'` = yes; then
18921 cat >>confdefs.h <<_ACEOF
18922 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18926 # strftime is in -lintl on SCO UNIX.
18927 { echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
18928 echo $ECHO_N "checking
for strftime
in -lintl...
$ECHO_C" >&6; }
18929 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18930 echo $ECHO_N "(cached
) $ECHO_C" >&6
18932 ac_check_lib_save_LIBS=$LIBS
18933 LIBS="-lintl $LIBS"
18934 cat >conftest.$ac_ext <<_ACEOF
18937 cat confdefs.h >>conftest.$ac_ext
18938 cat >>conftest.$ac_ext <<_ACEOF
18939 /* end confdefs.h. */
18941 /* Override any GCC internal prototype to avoid an error.
18942 Use char because int might match the return type of a GCC
18943 builtin and then its argument prototype would still apply. */
18951 return strftime ();
18956 rm -f conftest.$ac_objext conftest$ac_exeext
18957 if { (ac_try="$ac_link"
18958 case "(($ac_try" in
18959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18960 *) ac_try_echo=$ac_try;;
18962 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18963 (eval "$ac_link") 2>conftest.er1
18965 grep -v '^ *+' conftest.er1 >conftest.err
18967 cat conftest.err >&5
18968 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18969 (exit $ac_status); } && {
18970 test -z "$ac_c_werror_flag" ||
18971 test ! -s conftest.err
18972 } && test -s conftest$ac_exeext &&
18973 $as_test_x conftest$ac_exeext; then
18974 ac_cv_lib_intl_strftime=yes
18976 echo "$as_me: failed program was
:" >&5
18977 sed 's/^/| /' conftest.$ac_ext >&5
18979 ac_cv_lib_intl_strftime=no
18982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18983 conftest$ac_exeext conftest.$ac_ext
18984 LIBS=$ac_check_lib_save_LIBS
18986 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
18987 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
18988 if test $ac_cv_lib_intl_strftime = yes; then
18989 cat >>confdefs.h <<\_ACEOF
18990 #define HAVE_STRFTIME 1
18993 LIBS="-lintl $LIBS"
19002 for ac_func in grantpt
19004 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19005 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19006 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19007 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19008 echo $ECHO_N "(cached
) $ECHO_C" >&6
19010 cat >conftest.$ac_ext <<_ACEOF
19013 cat confdefs.h >>conftest.$ac_ext
19014 cat >>conftest.$ac_ext <<_ACEOF
19015 /* end confdefs.h. */
19016 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19017 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19018 #define $ac_func innocuous_$ac_func
19020 /* System header to define __stub macros and hopefully few prototypes,
19021 which can conflict with char $ac_func (); below.
19022 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19023 <limits.h> exists even on freestanding compilers. */
19026 # include <limits.h>
19028 # include <assert.h>
19033 /* Override any GCC internal prototype to avoid an error.
19034 Use char because int might match the return type of a GCC
19035 builtin and then its argument prototype would still apply. */
19040 /* The GNU C library defines this for functions which it implements
19041 to always fail with ENOSYS. Some functions are actually named
19042 something starting with __ and the normal name is an alias. */
19043 #if defined __stub_$ac_func || defined __stub___$ac_func
19050 return $ac_func ();
19055 rm -f conftest.$ac_objext conftest$ac_exeext
19056 if { (ac_try="$ac_link"
19057 case "(($ac_try" in
19058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19059 *) ac_try_echo=$ac_try;;
19061 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19062 (eval "$ac_link") 2>conftest.er1
19064 grep -v '^ *+' conftest.er1 >conftest.err
19066 cat conftest.err >&5
19067 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19068 (exit $ac_status); } && {
19069 test -z "$ac_c_werror_flag" ||
19070 test ! -s conftest.err
19071 } && test -s conftest$ac_exeext &&
19072 $as_test_x conftest$ac_exeext; then
19073 eval "$as_ac_var=yes"
19075 echo "$as_me: failed program was
:" >&5
19076 sed 's/^/| /' conftest.$ac_ext >&5
19078 eval "$as_ac_var=no
"
19081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19082 conftest$ac_exeext conftest.$ac_ext
19084 ac_res=`eval echo '${'$as_ac_var'}'`
19085 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19086 echo "${ECHO_T}$ac_res" >&6; }
19087 if test `eval echo '${'$as_ac_var'}'` = yes; then
19088 cat >>confdefs.h <<_ACEOF
19089 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19096 # PTY-related GNU extensions.
19098 for ac_func in getpt
19100 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19101 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19102 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19103 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19104 echo $ECHO_N "(cached
) $ECHO_C" >&6
19106 cat >conftest.$ac_ext <<_ACEOF
19109 cat confdefs.h >>conftest.$ac_ext
19110 cat >>conftest.$ac_ext <<_ACEOF
19111 /* end confdefs.h. */
19112 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19113 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19114 #define $ac_func innocuous_$ac_func
19116 /* System header to define __stub macros and hopefully few prototypes,
19117 which can conflict with char $ac_func (); below.
19118 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19119 <limits.h> exists even on freestanding compilers. */
19122 # include <limits.h>
19124 # include <assert.h>
19129 /* Override any GCC internal prototype to avoid an error.
19130 Use char because int might match the return type of a GCC
19131 builtin and then its argument prototype would still apply. */
19136 /* The GNU C library defines this for functions which it implements
19137 to always fail with ENOSYS. Some functions are actually named
19138 something starting with __ and the normal name is an alias. */
19139 #if defined __stub_$ac_func || defined __stub___$ac_func
19146 return $ac_func ();
19151 rm -f conftest.$ac_objext conftest$ac_exeext
19152 if { (ac_try="$ac_link"
19153 case "(($ac_try" in
19154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19155 *) ac_try_echo=$ac_try;;
19157 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19158 (eval "$ac_link") 2>conftest.er1
19160 grep -v '^ *+' conftest.er1 >conftest.err
19162 cat conftest.err >&5
19163 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19164 (exit $ac_status); } && {
19165 test -z "$ac_c_werror_flag" ||
19166 test ! -s conftest.err
19167 } && test -s conftest$ac_exeext &&
19168 $as_test_x conftest$ac_exeext; then
19169 eval "$as_ac_var=yes"
19171 echo "$as_me: failed program was
:" >&5
19172 sed 's/^/| /' conftest.$ac_ext >&5
19174 eval "$as_ac_var=no
"
19177 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19178 conftest$ac_exeext conftest.$ac_ext
19180 ac_res=`eval echo '${'$as_ac_var'}'`
19181 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19182 echo "${ECHO_T}$ac_res" >&6; }
19183 if test `eval echo '${'$as_ac_var'}'` = yes; then
19184 cat >>confdefs.h <<_ACEOF
19185 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19192 # Check this now, so that we will NOT find the above functions in ncurses.
19193 # That is because we have not set up to link ncurses in lib-src.
19194 # It's better to believe a function is not available
19195 # than to expect to find it in ncurses.
19197 { echo "$as_me:$LINENO: checking
for tparm
in -lncurses" >&5
19198 echo $ECHO_N "checking
for tparm
in -lncurses...
$ECHO_C" >&6; }
19199 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19200 echo $ECHO_N "(cached
) $ECHO_C" >&6
19202 ac_check_lib_save_LIBS=$LIBS
19203 LIBS="-lncurses $LIBS"
19204 cat >conftest.$ac_ext <<_ACEOF
19207 cat confdefs.h >>conftest.$ac_ext
19208 cat >>conftest.$ac_ext <<_ACEOF
19209 /* end confdefs.h. */
19211 /* Override any GCC internal prototype to avoid an error.
19212 Use char because int might match the return type of a GCC
19213 builtin and then its argument prototype would still apply. */
19226 rm -f conftest.$ac_objext conftest$ac_exeext
19227 if { (ac_try="$ac_link"
19228 case "(($ac_try" in
19229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19230 *) ac_try_echo=$ac_try;;
19232 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19233 (eval "$ac_link") 2>conftest.er1
19235 grep -v '^ *+' conftest.er1 >conftest.err
19237 cat conftest.err >&5
19238 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19239 (exit $ac_status); } && {
19240 test -z "$ac_c_werror_flag" ||
19241 test ! -s conftest.err
19242 } && test -s conftest$ac_exeext &&
19243 $as_test_x conftest$ac_exeext; then
19244 ac_cv_lib_ncurses_tparm=yes
19246 echo "$as_me: failed program was
:" >&5
19247 sed 's/^/| /' conftest.$ac_ext >&5
19249 ac_cv_lib_ncurses_tparm=no
19252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19253 conftest$ac_exeext conftest.$ac_ext
19254 LIBS=$ac_check_lib_save_LIBS
19256 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ncurses_tparm" >&5
19257 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19258 if test $ac_cv_lib_ncurses_tparm = yes; then
19259 cat >>confdefs.h <<_ACEOF
19260 #define HAVE_LIBNCURSES 1
19263 LIBS="-lncurses $LIBS"
19268 # Do we need the Hesiod library to provide the support routines?
19269 if test "$with_hesiod" = yes ; then
19270 # Don't set $LIBS here -- see comments above.
19272 { echo "$as_me:$LINENO: checking
for res_send
" >&5
19273 echo $ECHO_N "checking
for res_send...
$ECHO_C" >&6; }
19274 if test "${ac_cv_func_res_send+set}" = set; then
19275 echo $ECHO_N "(cached
) $ECHO_C" >&6
19277 cat >conftest.$ac_ext <<_ACEOF
19280 cat confdefs.h >>conftest.$ac_ext
19281 cat >>conftest.$ac_ext <<_ACEOF
19282 /* end confdefs.h. */
19283 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19284 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19285 #define res_send innocuous_res_send
19287 /* System header to define __stub macros and hopefully few prototypes,
19288 which can conflict with char res_send (); below.
19289 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19290 <limits.h> exists even on freestanding compilers. */
19293 # include <limits.h>
19295 # include <assert.h>
19300 /* Override any GCC internal prototype to avoid an error.
19301 Use char because int might match the return type of a GCC
19302 builtin and then its argument prototype would still apply. */
19307 /* The GNU C library defines this for functions which it implements
19308 to always fail with ENOSYS. Some functions are actually named
19309 something starting with __ and the normal name is an alias. */
19310 #if defined __stub_res_send || defined __stub___res_send
19317 return res_send ();
19322 rm -f conftest.$ac_objext conftest$ac_exeext
19323 if { (ac_try="$ac_link"
19324 case "(($ac_try" in
19325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19326 *) ac_try_echo=$ac_try;;
19328 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19329 (eval "$ac_link") 2>conftest.er1
19331 grep -v '^ *+' conftest.er1 >conftest.err
19333 cat conftest.err >&5
19334 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19335 (exit $ac_status); } && {
19336 test -z "$ac_c_werror_flag" ||
19337 test ! -s conftest.err
19338 } && test -s conftest$ac_exeext &&
19339 $as_test_x conftest$ac_exeext; then
19340 ac_cv_func_res_send=yes
19342 echo "$as_me: failed program was
:" >&5
19343 sed 's/^/| /' conftest.$ac_ext >&5
19345 ac_cv_func_res_send=no
19348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19349 conftest$ac_exeext conftest.$ac_ext
19351 { echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
19352 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19353 if test $ac_cv_func_res_send = yes; then
19356 { echo "$as_me:$LINENO: checking
for __res_send
" >&5
19357 echo $ECHO_N "checking
for __res_send...
$ECHO_C" >&6; }
19358 if test "${ac_cv_func___res_send+set}" = set; then
19359 echo $ECHO_N "(cached
) $ECHO_C" >&6
19361 cat >conftest.$ac_ext <<_ACEOF
19364 cat confdefs.h >>conftest.$ac_ext
19365 cat >>conftest.$ac_ext <<_ACEOF
19366 /* end confdefs.h. */
19367 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19368 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19369 #define __res_send innocuous___res_send
19371 /* System header to define __stub macros and hopefully few prototypes,
19372 which can conflict with char __res_send (); below.
19373 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19374 <limits.h> exists even on freestanding compilers. */
19377 # include <limits.h>
19379 # include <assert.h>
19384 /* Override any GCC internal prototype to avoid an error.
19385 Use char because int might match the return type of a GCC
19386 builtin and then its argument prototype would still apply. */
19390 char __res_send ();
19391 /* The GNU C library defines this for functions which it implements
19392 to always fail with ENOSYS. Some functions are actually named
19393 something starting with __ and the normal name is an alias. */
19394 #if defined __stub___res_send || defined __stub_____res_send
19401 return __res_send ();
19406 rm -f conftest.$ac_objext conftest$ac_exeext
19407 if { (ac_try="$ac_link"
19408 case "(($ac_try" in
19409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19410 *) ac_try_echo=$ac_try;;
19412 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19413 (eval "$ac_link") 2>conftest.er1
19415 grep -v '^ *+' conftest.er1 >conftest.err
19417 cat conftest.err >&5
19418 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19419 (exit $ac_status); } && {
19420 test -z "$ac_c_werror_flag" ||
19421 test ! -s conftest.err
19422 } && test -s conftest$ac_exeext &&
19423 $as_test_x conftest$ac_exeext; then
19424 ac_cv_func___res_send=yes
19426 echo "$as_me: failed program was
:" >&5
19427 sed 's/^/| /' conftest.$ac_ext >&5
19429 ac_cv_func___res_send=no
19432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19433 conftest$ac_exeext conftest.$ac_ext
19435 { echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
19436 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19437 if test $ac_cv_func___res_send = yes; then
19440 { echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
19441 echo $ECHO_N "checking
for res_send
in -lresolv...
$ECHO_C" >&6; }
19442 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19443 echo $ECHO_N "(cached
) $ECHO_C" >&6
19445 ac_check_lib_save_LIBS=$LIBS
19446 LIBS="-lresolv $LIBS"
19447 cat >conftest.$ac_ext <<_ACEOF
19450 cat confdefs.h >>conftest.$ac_ext
19451 cat >>conftest.$ac_ext <<_ACEOF
19452 /* end confdefs.h. */
19454 /* Override any GCC internal prototype to avoid an error.
19455 Use char because int might match the return type of a GCC
19456 builtin and then its argument prototype would still apply. */
19464 return res_send ();
19469 rm -f conftest.$ac_objext conftest$ac_exeext
19470 if { (ac_try="$ac_link"
19471 case "(($ac_try" in
19472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19473 *) ac_try_echo=$ac_try;;
19475 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19476 (eval "$ac_link") 2>conftest.er1
19478 grep -v '^ *+' conftest.er1 >conftest.err
19480 cat conftest.err >&5
19481 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19482 (exit $ac_status); } && {
19483 test -z "$ac_c_werror_flag" ||
19484 test ! -s conftest.err
19485 } && test -s conftest$ac_exeext &&
19486 $as_test_x conftest$ac_exeext; then
19487 ac_cv_lib_resolv_res_send=yes
19489 echo "$as_me: failed program was
:" >&5
19490 sed 's/^/| /' conftest.$ac_ext >&5
19492 ac_cv_lib_resolv_res_send=no
19495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19496 conftest$ac_exeext conftest.$ac_ext
19497 LIBS=$ac_check_lib_save_LIBS
19499 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
19500 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
19501 if test $ac_cv_lib_resolv_res_send = yes; then
19504 { echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
19505 echo $ECHO_N "checking
for __res_send
in -lresolv...
$ECHO_C" >&6; }
19506 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
19507 echo $ECHO_N "(cached
) $ECHO_C" >&6
19509 ac_check_lib_save_LIBS=$LIBS
19510 LIBS="-lresolv $LIBS"
19511 cat >conftest.$ac_ext <<_ACEOF
19514 cat confdefs.h >>conftest.$ac_ext
19515 cat >>conftest.$ac_ext <<_ACEOF
19516 /* end confdefs.h. */
19518 /* Override any GCC internal prototype to avoid an error.
19519 Use char because int might match the return type of a GCC
19520 builtin and then its argument prototype would still apply. */
19524 char __res_send ();
19528 return __res_send ();
19533 rm -f conftest.$ac_objext conftest$ac_exeext
19534 if { (ac_try="$ac_link"
19535 case "(($ac_try" in
19536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19537 *) ac_try_echo=$ac_try;;
19539 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19540 (eval "$ac_link") 2>conftest.er1
19542 grep -v '^ *+' conftest.er1 >conftest.err
19544 cat conftest.err >&5
19545 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19546 (exit $ac_status); } && {
19547 test -z "$ac_c_werror_flag" ||
19548 test ! -s conftest.err
19549 } && test -s conftest$ac_exeext &&
19550 $as_test_x conftest$ac_exeext; then
19551 ac_cv_lib_resolv___res_send=yes
19553 echo "$as_me: failed program was
:" >&5
19554 sed 's/^/| /' conftest.$ac_ext >&5
19556 ac_cv_lib_resolv___res_send=no
19559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19560 conftest$ac_exeext conftest.$ac_ext
19561 LIBS=$ac_check_lib_save_LIBS
19563 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
19564 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
19565 if test $ac_cv_lib_resolv___res_send = yes; then
19575 if test "$resolv" = yes ; then
19578 cat >>confdefs.h <<\_ACEOF
19579 #define HAVE_LIBRESOLV 1
19585 { echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
19586 echo $ECHO_N "checking
for hes_getmailhost...
$ECHO_C" >&6; }
19587 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
19588 echo $ECHO_N "(cached
) $ECHO_C" >&6
19590 cat >conftest.$ac_ext <<_ACEOF
19593 cat confdefs.h >>conftest.$ac_ext
19594 cat >>conftest.$ac_ext <<_ACEOF
19595 /* end confdefs.h. */
19596 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
19597 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19598 #define hes_getmailhost innocuous_hes_getmailhost
19600 /* System header to define __stub macros and hopefully few prototypes,
19601 which can conflict with char hes_getmailhost (); below.
19602 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19603 <limits.h> exists even on freestanding compilers. */
19606 # include <limits.h>
19608 # include <assert.h>
19611 #undef hes_getmailhost
19613 /* Override any GCC internal prototype to avoid an error.
19614 Use char because int might match the return type of a GCC
19615 builtin and then its argument prototype would still apply. */
19619 char hes_getmailhost ();
19620 /* The GNU C library defines this for functions which it implements
19621 to always fail with ENOSYS. Some functions are actually named
19622 something starting with __ and the normal name is an alias. */
19623 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
19630 return hes_getmailhost ();
19635 rm -f conftest.$ac_objext conftest$ac_exeext
19636 if { (ac_try="$ac_link"
19637 case "(($ac_try" in
19638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19639 *) ac_try_echo=$ac_try;;
19641 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19642 (eval "$ac_link") 2>conftest.er1
19644 grep -v '^ *+' conftest.er1 >conftest.err
19646 cat conftest.err >&5
19647 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19648 (exit $ac_status); } && {
19649 test -z "$ac_c_werror_flag" ||
19650 test ! -s conftest.err
19651 } && test -s conftest$ac_exeext &&
19652 $as_test_x conftest$ac_exeext; then
19653 ac_cv_func_hes_getmailhost=yes
19655 echo "$as_me: failed program was
:" >&5
19656 sed 's/^/| /' conftest.$ac_ext >&5
19658 ac_cv_func_hes_getmailhost=no
19661 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19662 conftest$ac_exeext conftest.$ac_ext
19664 { echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
19665 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
19666 if test $ac_cv_func_hes_getmailhost = yes; then
19669 { echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
19670 echo $ECHO_N "checking
for hes_getmailhost
in -lhesiod...
$ECHO_C" >&6; }
19671 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
19672 echo $ECHO_N "(cached
) $ECHO_C" >&6
19674 ac_check_lib_save_LIBS=$LIBS
19675 LIBS="-lhesiod $RESOLVLIB $LIBS"
19676 cat >conftest.$ac_ext <<_ACEOF
19679 cat confdefs.h >>conftest.$ac_ext
19680 cat >>conftest.$ac_ext <<_ACEOF
19681 /* end confdefs.h. */
19683 /* Override any GCC internal prototype to avoid an error.
19684 Use char because int might match the return type of a GCC
19685 builtin and then its argument prototype would still apply. */
19689 char hes_getmailhost ();
19693 return hes_getmailhost ();
19698 rm -f conftest.$ac_objext conftest$ac_exeext
19699 if { (ac_try="$ac_link"
19700 case "(($ac_try" in
19701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19702 *) ac_try_echo=$ac_try;;
19704 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19705 (eval "$ac_link") 2>conftest.er1
19707 grep -v '^ *+' conftest.er1 >conftest.err
19709 cat conftest.err >&5
19710 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19711 (exit $ac_status); } && {
19712 test -z "$ac_c_werror_flag" ||
19713 test ! -s conftest.err
19714 } && test -s conftest$ac_exeext &&
19715 $as_test_x conftest$ac_exeext; then
19716 ac_cv_lib_hesiod_hes_getmailhost=yes
19718 echo "$as_me: failed program was
:" >&5
19719 sed 's/^/| /' conftest.$ac_ext >&5
19721 ac_cv_lib_hesiod_hes_getmailhost=no
19724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19725 conftest$ac_exeext conftest.$ac_ext
19726 LIBS=$ac_check_lib_save_LIBS
19728 { echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
19729 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
19730 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
19732 cat >>confdefs.h <<\_ACEOF
19733 #define HAVE_LIBHESIOD 1
19744 # These tell us which Kerberos-related libraries to use.
19745 if test "${with_kerberos+set}" = set; then
19747 { echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
19748 echo $ECHO_N "checking
for com_err
in -lcom_err...
$ECHO_C" >&6; }
19749 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
19750 echo $ECHO_N "(cached
) $ECHO_C" >&6
19752 ac_check_lib_save_LIBS=$LIBS
19753 LIBS="-lcom_err $LIBS"
19754 cat >conftest.$ac_ext <<_ACEOF
19757 cat confdefs.h >>conftest.$ac_ext
19758 cat >>conftest.$ac_ext <<_ACEOF
19759 /* end confdefs.h. */
19761 /* Override any GCC internal prototype to avoid an error.
19762 Use char because int might match the return type of a GCC
19763 builtin and then its argument prototype would still apply. */
19776 rm -f conftest.$ac_objext conftest$ac_exeext
19777 if { (ac_try="$ac_link"
19778 case "(($ac_try" in
19779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19780 *) ac_try_echo=$ac_try;;
19782 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19783 (eval "$ac_link") 2>conftest.er1
19785 grep -v '^ *+' conftest.er1 >conftest.err
19787 cat conftest.err >&5
19788 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19789 (exit $ac_status); } && {
19790 test -z "$ac_c_werror_flag" ||
19791 test ! -s conftest.err
19792 } && test -s conftest$ac_exeext &&
19793 $as_test_x conftest$ac_exeext; then
19794 ac_cv_lib_com_err_com_err=yes
19796 echo "$as_me: failed program was
:" >&5
19797 sed 's/^/| /' conftest.$ac_ext >&5
19799 ac_cv_lib_com_err_com_err=no
19802 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19803 conftest$ac_exeext conftest.$ac_ext
19804 LIBS=$ac_check_lib_save_LIBS
19806 { echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
19807 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
19808 if test $ac_cv_lib_com_err_com_err = yes; then
19809 cat >>confdefs.h <<_ACEOF
19810 #define HAVE_LIBCOM_ERR 1
19813 LIBS="-lcom_err $LIBS"
19818 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
19819 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lk5crypto...
$ECHO_C" >&6; }
19820 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
19821 echo $ECHO_N "(cached
) $ECHO_C" >&6
19823 ac_check_lib_save_LIBS=$LIBS
19824 LIBS="-lk5crypto $LIBS"
19825 cat >conftest.$ac_ext <<_ACEOF
19828 cat confdefs.h >>conftest.$ac_ext
19829 cat >>conftest.$ac_ext <<_ACEOF
19830 /* end confdefs.h. */
19832 /* Override any GCC internal prototype to avoid an error.
19833 Use char because int might match the return type of a GCC
19834 builtin and then its argument prototype would still apply. */
19838 char mit_des_cbc_encrypt ();
19842 return mit_des_cbc_encrypt ();
19847 rm -f conftest.$ac_objext conftest$ac_exeext
19848 if { (ac_try="$ac_link"
19849 case "(($ac_try" in
19850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19851 *) ac_try_echo=$ac_try;;
19853 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19854 (eval "$ac_link") 2>conftest.er1
19856 grep -v '^ *+' conftest.er1 >conftest.err
19858 cat conftest.err >&5
19859 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19860 (exit $ac_status); } && {
19861 test -z "$ac_c_werror_flag" ||
19862 test ! -s conftest.err
19863 } && test -s conftest$ac_exeext &&
19864 $as_test_x conftest$ac_exeext; then
19865 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
19867 echo "$as_me: failed program was
:" >&5
19868 sed 's/^/| /' conftest.$ac_ext >&5
19870 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
19873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19874 conftest$ac_exeext conftest.$ac_ext
19875 LIBS=$ac_check_lib_save_LIBS
19877 { echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
19878 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
19879 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
19880 cat >>confdefs.h <<_ACEOF
19881 #define HAVE_LIBK5CRYPTO 1
19884 LIBS="-lk5crypto $LIBS"
19889 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
19890 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lcrypto...
$ECHO_C" >&6; }
19891 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
19892 echo $ECHO_N "(cached
) $ECHO_C" >&6
19894 ac_check_lib_save_LIBS=$LIBS
19895 LIBS="-lcrypto $LIBS"
19896 cat >conftest.$ac_ext <<_ACEOF
19899 cat confdefs.h >>conftest.$ac_ext
19900 cat >>conftest.$ac_ext <<_ACEOF
19901 /* end confdefs.h. */
19903 /* Override any GCC internal prototype to avoid an error.
19904 Use char because int might match the return type of a GCC
19905 builtin and then its argument prototype would still apply. */
19909 char mit_des_cbc_encrypt ();
19913 return mit_des_cbc_encrypt ();
19918 rm -f conftest.$ac_objext conftest$ac_exeext
19919 if { (ac_try="$ac_link"
19920 case "(($ac_try" in
19921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19922 *) ac_try_echo=$ac_try;;
19924 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19925 (eval "$ac_link") 2>conftest.er1
19927 grep -v '^ *+' conftest.er1 >conftest.err
19929 cat conftest.err >&5
19930 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19931 (exit $ac_status); } && {
19932 test -z "$ac_c_werror_flag" ||
19933 test ! -s conftest.err
19934 } && test -s conftest$ac_exeext &&
19935 $as_test_x conftest$ac_exeext; then
19936 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
19938 echo "$as_me: failed program was
:" >&5
19939 sed 's/^/| /' conftest.$ac_ext >&5
19941 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
19944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19945 conftest$ac_exeext conftest.$ac_ext
19946 LIBS=$ac_check_lib_save_LIBS
19948 { echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19949 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
19950 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
19951 cat >>confdefs.h <<_ACEOF
19952 #define HAVE_LIBCRYPTO 1
19955 LIBS="-lcrypto $LIBS"
19960 { echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
19961 echo $ECHO_N "checking
for krb5_init_context
in -lkrb5...
$ECHO_C" >&6; }
19962 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
19963 echo $ECHO_N "(cached
) $ECHO_C" >&6
19965 ac_check_lib_save_LIBS=$LIBS
19966 LIBS="-lkrb5 $LIBS"
19967 cat >conftest.$ac_ext <<_ACEOF
19970 cat confdefs.h >>conftest.$ac_ext
19971 cat >>conftest.$ac_ext <<_ACEOF
19972 /* end confdefs.h. */
19974 /* Override any GCC internal prototype to avoid an error.
19975 Use char because int might match the return type of a GCC
19976 builtin and then its argument prototype would still apply. */
19980 char krb5_init_context ();
19984 return krb5_init_context ();
19989 rm -f conftest.$ac_objext conftest$ac_exeext
19990 if { (ac_try="$ac_link"
19991 case "(($ac_try" in
19992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19993 *) ac_try_echo=$ac_try;;
19995 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19996 (eval "$ac_link") 2>conftest.er1
19998 grep -v '^ *+' conftest.er1 >conftest.err
20000 cat conftest.err >&5
20001 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20002 (exit $ac_status); } && {
20003 test -z "$ac_c_werror_flag" ||
20004 test ! -s conftest.err
20005 } && test -s conftest$ac_exeext &&
20006 $as_test_x conftest$ac_exeext; then
20007 ac_cv_lib_krb5_krb5_init_context=yes
20009 echo "$as_me: failed program was
:" >&5
20010 sed 's/^/| /' conftest.$ac_ext >&5
20012 ac_cv_lib_krb5_krb5_init_context=no
20015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20016 conftest$ac_exeext conftest.$ac_ext
20017 LIBS=$ac_check_lib_save_LIBS
20019 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
20020 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20021 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20022 cat >>confdefs.h <<_ACEOF
20023 #define HAVE_LIBKRB5 1
20026 LIBS="-lkrb5 $LIBS"
20030 if test "${with_kerberos5+set}" != set; then
20032 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
20033 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes425...
$ECHO_C" >&6; }
20034 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20035 echo $ECHO_N "(cached
) $ECHO_C" >&6
20037 ac_check_lib_save_LIBS=$LIBS
20038 LIBS="-ldes425 $LIBS"
20039 cat >conftest.$ac_ext <<_ACEOF
20042 cat confdefs.h >>conftest.$ac_ext
20043 cat >>conftest.$ac_ext <<_ACEOF
20044 /* end confdefs.h. */
20046 /* Override any GCC internal prototype to avoid an error.
20047 Use char because int might match the return type of a GCC
20048 builtin and then its argument prototype would still apply. */
20052 char des_cbc_encrypt ();
20056 return des_cbc_encrypt ();
20061 rm -f conftest.$ac_objext conftest$ac_exeext
20062 if { (ac_try="$ac_link"
20063 case "(($ac_try" in
20064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20065 *) ac_try_echo=$ac_try;;
20067 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20068 (eval "$ac_link") 2>conftest.er1
20070 grep -v '^ *+' conftest.er1 >conftest.err
20072 cat conftest.err >&5
20073 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20074 (exit $ac_status); } && {
20075 test -z "$ac_c_werror_flag" ||
20076 test ! -s conftest.err
20077 } && test -s conftest$ac_exeext &&
20078 $as_test_x conftest$ac_exeext; then
20079 ac_cv_lib_des425_des_cbc_encrypt=yes
20081 echo "$as_me: failed program was
:" >&5
20082 sed 's/^/| /' conftest.$ac_ext >&5
20084 ac_cv_lib_des425_des_cbc_encrypt=no
20087 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20088 conftest$ac_exeext conftest.$ac_ext
20089 LIBS=$ac_check_lib_save_LIBS
20091 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20092 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20093 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20094 cat >>confdefs.h <<_ACEOF
20095 #define HAVE_LIBDES425 1
20098 LIBS="-ldes425 $LIBS"
20102 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
20103 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes...
$ECHO_C" >&6; }
20104 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20105 echo $ECHO_N "(cached
) $ECHO_C" >&6
20107 ac_check_lib_save_LIBS=$LIBS
20109 cat >conftest.$ac_ext <<_ACEOF
20112 cat confdefs.h >>conftest.$ac_ext
20113 cat >>conftest.$ac_ext <<_ACEOF
20114 /* end confdefs.h. */
20116 /* Override any GCC internal prototype to avoid an error.
20117 Use char because int might match the return type of a GCC
20118 builtin and then its argument prototype would still apply. */
20122 char des_cbc_encrypt ();
20126 return des_cbc_encrypt ();
20131 rm -f conftest.$ac_objext conftest$ac_exeext
20132 if { (ac_try="$ac_link"
20133 case "(($ac_try" in
20134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20135 *) ac_try_echo=$ac_try;;
20137 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20138 (eval "$ac_link") 2>conftest.er1
20140 grep -v '^ *+' conftest.er1 >conftest.err
20142 cat conftest.err >&5
20143 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20144 (exit $ac_status); } && {
20145 test -z "$ac_c_werror_flag" ||
20146 test ! -s conftest.err
20147 } && test -s conftest$ac_exeext &&
20148 $as_test_x conftest$ac_exeext; then
20149 ac_cv_lib_des_des_cbc_encrypt=yes
20151 echo "$as_me: failed program was
:" >&5
20152 sed 's/^/| /' conftest.$ac_ext >&5
20154 ac_cv_lib_des_des_cbc_encrypt=no
20157 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20158 conftest$ac_exeext conftest.$ac_ext
20159 LIBS=$ac_check_lib_save_LIBS
20161 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
20162 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20163 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20164 cat >>confdefs.h <<_ACEOF
20165 #define HAVE_LIBDES 1
20175 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
20176 echo $ECHO_N "checking
for krb_get_cred
in -lkrb4...
$ECHO_C" >&6; }
20177 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20178 echo $ECHO_N "(cached
) $ECHO_C" >&6
20180 ac_check_lib_save_LIBS=$LIBS
20181 LIBS="-lkrb4 $LIBS"
20182 cat >conftest.$ac_ext <<_ACEOF
20185 cat confdefs.h >>conftest.$ac_ext
20186 cat >>conftest.$ac_ext <<_ACEOF
20187 /* end confdefs.h. */
20189 /* Override any GCC internal prototype to avoid an error.
20190 Use char because int might match the return type of a GCC
20191 builtin and then its argument prototype would still apply. */
20195 char krb_get_cred ();
20199 return krb_get_cred ();
20204 rm -f conftest.$ac_objext conftest$ac_exeext
20205 if { (ac_try="$ac_link"
20206 case "(($ac_try" in
20207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20208 *) ac_try_echo=$ac_try;;
20210 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20211 (eval "$ac_link") 2>conftest.er1
20213 grep -v '^ *+' conftest.er1 >conftest.err
20215 cat conftest.err >&5
20216 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20217 (exit $ac_status); } && {
20218 test -z "$ac_c_werror_flag" ||
20219 test ! -s conftest.err
20220 } && test -s conftest$ac_exeext &&
20221 $as_test_x conftest$ac_exeext; then
20222 ac_cv_lib_krb4_krb_get_cred=yes
20224 echo "$as_me: failed program was
:" >&5
20225 sed 's/^/| /' conftest.$ac_ext >&5
20227 ac_cv_lib_krb4_krb_get_cred=no
20230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20231 conftest$ac_exeext conftest.$ac_ext
20232 LIBS=$ac_check_lib_save_LIBS
20234 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
20235 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20236 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20237 cat >>confdefs.h <<_ACEOF
20238 #define HAVE_LIBKRB4 1
20241 LIBS="-lkrb4 $LIBS"
20245 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
20246 echo $ECHO_N "checking
for krb_get_cred
in -lkrb...
$ECHO_C" >&6; }
20247 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20248 echo $ECHO_N "(cached
) $ECHO_C" >&6
20250 ac_check_lib_save_LIBS=$LIBS
20252 cat >conftest.$ac_ext <<_ACEOF
20255 cat confdefs.h >>conftest.$ac_ext
20256 cat >>conftest.$ac_ext <<_ACEOF
20257 /* end confdefs.h. */
20259 /* Override any GCC internal prototype to avoid an error.
20260 Use char because int might match the return type of a GCC
20261 builtin and then its argument prototype would still apply. */
20265 char krb_get_cred ();
20269 return krb_get_cred ();
20274 rm -f conftest.$ac_objext conftest$ac_exeext
20275 if { (ac_try="$ac_link"
20276 case "(($ac_try" in
20277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20278 *) ac_try_echo=$ac_try;;
20280 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20281 (eval "$ac_link") 2>conftest.er1
20283 grep -v '^ *+' conftest.er1 >conftest.err
20285 cat conftest.err >&5
20286 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20287 (exit $ac_status); } && {
20288 test -z "$ac_c_werror_flag" ||
20289 test ! -s conftest.err
20290 } && test -s conftest$ac_exeext &&
20291 $as_test_x conftest$ac_exeext; then
20292 ac_cv_lib_krb_krb_get_cred=yes
20294 echo "$as_me: failed program was
:" >&5
20295 sed 's/^/| /' conftest.$ac_ext >&5
20297 ac_cv_lib_krb_krb_get_cred=no
20300 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20301 conftest$ac_exeext conftest.$ac_ext
20302 LIBS=$ac_check_lib_save_LIBS
20304 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
20305 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20306 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20307 cat >>confdefs.h <<_ACEOF
20308 #define HAVE_LIBKRB 1
20319 if test "${with_kerberos5+set}" = set; then
20321 for ac_header in krb5.h
20323 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20324 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20325 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20326 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20327 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20328 echo $ECHO_N "(cached
) $ECHO_C" >&6
20330 ac_res=`eval echo '${'$as_ac_Header'}'`
20331 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20332 echo "${ECHO_T}$ac_res" >&6; }
20334 # Is the header compilable?
20335 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20336 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20337 cat >conftest.$ac_ext <<_ACEOF
20340 cat confdefs.h >>conftest.$ac_ext
20341 cat >>conftest.$ac_ext <<_ACEOF
20342 /* end confdefs.h. */
20343 $ac_includes_default
20344 #include <$ac_header>
20346 rm -f conftest.$ac_objext
20347 if { (ac_try="$ac_compile"
20348 case "(($ac_try" in
20349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20350 *) ac_try_echo=$ac_try;;
20352 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20353 (eval "$ac_compile") 2>conftest.er1
20355 grep -v '^ *+' conftest.er1 >conftest.err
20357 cat conftest.err >&5
20358 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20359 (exit $ac_status); } && {
20360 test -z "$ac_c_werror_flag" ||
20361 test ! -s conftest.err
20362 } && test -s conftest.$ac_objext; then
20363 ac_header_compiler=yes
20365 echo "$as_me: failed program was
:" >&5
20366 sed 's/^/| /' conftest.$ac_ext >&5
20368 ac_header_compiler=no
20371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20372 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20373 echo "${ECHO_T}$ac_header_compiler" >&6; }
20375 # Is the header present?
20376 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20377 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20378 cat >conftest.$ac_ext <<_ACEOF
20381 cat confdefs.h >>conftest.$ac_ext
20382 cat >>conftest.$ac_ext <<_ACEOF
20383 /* end confdefs.h. */
20384 #include <$ac_header>
20386 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20387 case "(($ac_try" in
20388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20389 *) ac_try_echo=$ac_try;;
20391 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20392 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20394 grep -v '^ *+' conftest.er1 >conftest.err
20396 cat conftest.err >&5
20397 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20398 (exit $ac_status); } >/dev/null && {
20399 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20400 test ! -s conftest.err
20402 ac_header_preproc=yes
20404 echo "$as_me: failed program was
:" >&5
20405 sed 's/^/| /' conftest.$ac_ext >&5
20407 ac_header_preproc=no
20410 rm -f conftest.err conftest.$ac_ext
20411 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20412 echo "${ECHO_T}$ac_header_preproc" >&6; }
20414 # So? What about this header?
20415 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20417 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20418 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20419 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20420 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20421 ac_header_preproc=yes
20424 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20425 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20426 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20427 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20428 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20429 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20430 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20431 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20432 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20433 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20434 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20435 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20439 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20440 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20441 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20442 echo $ECHO_N "(cached
) $ECHO_C" >&6
20444 eval "$as_ac_Header=\
$ac_header_preproc"
20446 ac_res=`eval echo '${'$as_ac_Header'}'`
20447 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20448 echo "${ECHO_T}$ac_res" >&6; }
20451 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20452 cat >>confdefs.h <<_ACEOF
20453 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20462 for ac_header in des.h
20464 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20465 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20466 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20467 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20468 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20469 echo $ECHO_N "(cached
) $ECHO_C" >&6
20471 ac_res=`eval echo '${'$as_ac_Header'}'`
20472 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20473 echo "${ECHO_T}$ac_res" >&6; }
20475 # Is the header compilable?
20476 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20477 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20478 cat >conftest.$ac_ext <<_ACEOF
20481 cat confdefs.h >>conftest.$ac_ext
20482 cat >>conftest.$ac_ext <<_ACEOF
20483 /* end confdefs.h. */
20484 $ac_includes_default
20485 #include <$ac_header>
20487 rm -f conftest.$ac_objext
20488 if { (ac_try="$ac_compile"
20489 case "(($ac_try" in
20490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20491 *) ac_try_echo=$ac_try;;
20493 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20494 (eval "$ac_compile") 2>conftest.er1
20496 grep -v '^ *+' conftest.er1 >conftest.err
20498 cat conftest.err >&5
20499 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20500 (exit $ac_status); } && {
20501 test -z "$ac_c_werror_flag" ||
20502 test ! -s conftest.err
20503 } && test -s conftest.$ac_objext; then
20504 ac_header_compiler=yes
20506 echo "$as_me: failed program was
:" >&5
20507 sed 's/^/| /' conftest.$ac_ext >&5
20509 ac_header_compiler=no
20512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20513 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20514 echo "${ECHO_T}$ac_header_compiler" >&6; }
20516 # Is the header present?
20517 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20518 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20519 cat >conftest.$ac_ext <<_ACEOF
20522 cat confdefs.h >>conftest.$ac_ext
20523 cat >>conftest.$ac_ext <<_ACEOF
20524 /* end confdefs.h. */
20525 #include <$ac_header>
20527 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20528 case "(($ac_try" in
20529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20530 *) ac_try_echo=$ac_try;;
20532 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20533 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20535 grep -v '^ *+' conftest.er1 >conftest.err
20537 cat conftest.err >&5
20538 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20539 (exit $ac_status); } >/dev/null && {
20540 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20541 test ! -s conftest.err
20543 ac_header_preproc=yes
20545 echo "$as_me: failed program was
:" >&5
20546 sed 's/^/| /' conftest.$ac_ext >&5
20548 ac_header_preproc=no
20551 rm -f conftest.err conftest.$ac_ext
20552 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20553 echo "${ECHO_T}$ac_header_preproc" >&6; }
20555 # So? What about this header?
20556 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20558 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20559 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20560 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20561 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20562 ac_header_preproc=yes
20565 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20566 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20567 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20568 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20569 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20570 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20571 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20572 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20573 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20574 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20575 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20576 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20580 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20581 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20582 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20583 echo $ECHO_N "(cached
) $ECHO_C" >&6
20585 eval "$as_ac_Header=\
$ac_header_preproc"
20587 ac_res=`eval echo '${'$as_ac_Header'}'`
20588 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20589 echo "${ECHO_T}$ac_res" >&6; }
20592 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20593 cat >>confdefs.h <<_ACEOF
20594 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20599 for ac_header in kerberosIV/des.h
20601 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20602 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20603 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20604 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20605 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20606 echo $ECHO_N "(cached
) $ECHO_C" >&6
20608 ac_res=`eval echo '${'$as_ac_Header'}'`
20609 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20610 echo "${ECHO_T}$ac_res" >&6; }
20612 # Is the header compilable?
20613 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20614 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20615 cat >conftest.$ac_ext <<_ACEOF
20618 cat confdefs.h >>conftest.$ac_ext
20619 cat >>conftest.$ac_ext <<_ACEOF
20620 /* end confdefs.h. */
20621 $ac_includes_default
20622 #include <$ac_header>
20624 rm -f conftest.$ac_objext
20625 if { (ac_try="$ac_compile"
20626 case "(($ac_try" in
20627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20628 *) ac_try_echo=$ac_try;;
20630 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20631 (eval "$ac_compile") 2>conftest.er1
20633 grep -v '^ *+' conftest.er1 >conftest.err
20635 cat conftest.err >&5
20636 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20637 (exit $ac_status); } && {
20638 test -z "$ac_c_werror_flag" ||
20639 test ! -s conftest.err
20640 } && test -s conftest.$ac_objext; then
20641 ac_header_compiler=yes
20643 echo "$as_me: failed program was
:" >&5
20644 sed 's/^/| /' conftest.$ac_ext >&5
20646 ac_header_compiler=no
20649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20650 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20651 echo "${ECHO_T}$ac_header_compiler" >&6; }
20653 # Is the header present?
20654 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20655 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20656 cat >conftest.$ac_ext <<_ACEOF
20659 cat confdefs.h >>conftest.$ac_ext
20660 cat >>conftest.$ac_ext <<_ACEOF
20661 /* end confdefs.h. */
20662 #include <$ac_header>
20664 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20665 case "(($ac_try" in
20666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20667 *) ac_try_echo=$ac_try;;
20669 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20670 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20672 grep -v '^ *+' conftest.er1 >conftest.err
20674 cat conftest.err >&5
20675 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20676 (exit $ac_status); } >/dev/null && {
20677 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20678 test ! -s conftest.err
20680 ac_header_preproc=yes
20682 echo "$as_me: failed program was
:" >&5
20683 sed 's/^/| /' conftest.$ac_ext >&5
20685 ac_header_preproc=no
20688 rm -f conftest.err conftest.$ac_ext
20689 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20690 echo "${ECHO_T}$ac_header_preproc" >&6; }
20692 # So? What about this header?
20693 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20695 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20696 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20697 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20698 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20699 ac_header_preproc=yes
20702 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20703 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20704 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20705 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20706 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20707 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20708 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20709 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20710 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20711 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20712 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20713 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20717 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20718 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20719 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20720 echo $ECHO_N "(cached
) $ECHO_C" >&6
20722 eval "$as_ac_Header=\
$ac_header_preproc"
20724 ac_res=`eval echo '${'$as_ac_Header'}'`
20725 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20726 echo "${ECHO_T}$ac_res" >&6; }
20729 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20730 cat >>confdefs.h <<_ACEOF
20731 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20736 for ac_header in kerberos/des.h
20738 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20739 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20740 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20741 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20742 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20743 echo $ECHO_N "(cached
) $ECHO_C" >&6
20745 ac_res=`eval echo '${'$as_ac_Header'}'`
20746 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20747 echo "${ECHO_T}$ac_res" >&6; }
20749 # Is the header compilable?
20750 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20751 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20752 cat >conftest.$ac_ext <<_ACEOF
20755 cat confdefs.h >>conftest.$ac_ext
20756 cat >>conftest.$ac_ext <<_ACEOF
20757 /* end confdefs.h. */
20758 $ac_includes_default
20759 #include <$ac_header>
20761 rm -f conftest.$ac_objext
20762 if { (ac_try="$ac_compile"
20763 case "(($ac_try" in
20764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20765 *) ac_try_echo=$ac_try;;
20767 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20768 (eval "$ac_compile") 2>conftest.er1
20770 grep -v '^ *+' conftest.er1 >conftest.err
20772 cat conftest.err >&5
20773 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20774 (exit $ac_status); } && {
20775 test -z "$ac_c_werror_flag" ||
20776 test ! -s conftest.err
20777 } && test -s conftest.$ac_objext; then
20778 ac_header_compiler=yes
20780 echo "$as_me: failed program was
:" >&5
20781 sed 's/^/| /' conftest.$ac_ext >&5
20783 ac_header_compiler=no
20786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20787 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20788 echo "${ECHO_T}$ac_header_compiler" >&6; }
20790 # Is the header present?
20791 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20792 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20793 cat >conftest.$ac_ext <<_ACEOF
20796 cat confdefs.h >>conftest.$ac_ext
20797 cat >>conftest.$ac_ext <<_ACEOF
20798 /* end confdefs.h. */
20799 #include <$ac_header>
20801 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20802 case "(($ac_try" in
20803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20804 *) ac_try_echo=$ac_try;;
20806 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20807 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20809 grep -v '^ *+' conftest.er1 >conftest.err
20811 cat conftest.err >&5
20812 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20813 (exit $ac_status); } >/dev/null && {
20814 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20815 test ! -s conftest.err
20817 ac_header_preproc=yes
20819 echo "$as_me: failed program was
:" >&5
20820 sed 's/^/| /' conftest.$ac_ext >&5
20822 ac_header_preproc=no
20825 rm -f conftest.err conftest.$ac_ext
20826 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20827 echo "${ECHO_T}$ac_header_preproc" >&6; }
20829 # So? What about this header?
20830 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20832 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20833 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20834 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20835 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20836 ac_header_preproc=yes
20839 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20840 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20841 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20842 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20843 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20844 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20845 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20846 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20847 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20848 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20849 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20850 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20854 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20855 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20856 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20857 echo $ECHO_N "(cached
) $ECHO_C" >&6
20859 eval "$as_ac_Header=\
$ac_header_preproc"
20861 ac_res=`eval echo '${'$as_ac_Header'}'`
20862 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20863 echo "${ECHO_T}$ac_res" >&6; }
20866 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20867 cat >>confdefs.h <<_ACEOF
20868 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20884 for ac_header in krb.h
20886 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20887 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20888 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20889 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20890 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20891 echo $ECHO_N "(cached
) $ECHO_C" >&6
20893 ac_res=`eval echo '${'$as_ac_Header'}'`
20894 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20895 echo "${ECHO_T}$ac_res" >&6; }
20897 # Is the header compilable?
20898 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20899 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20900 cat >conftest.$ac_ext <<_ACEOF
20903 cat confdefs.h >>conftest.$ac_ext
20904 cat >>conftest.$ac_ext <<_ACEOF
20905 /* end confdefs.h. */
20906 $ac_includes_default
20907 #include <$ac_header>
20909 rm -f conftest.$ac_objext
20910 if { (ac_try="$ac_compile"
20911 case "(($ac_try" in
20912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20913 *) ac_try_echo=$ac_try;;
20915 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20916 (eval "$ac_compile") 2>conftest.er1
20918 grep -v '^ *+' conftest.er1 >conftest.err
20920 cat conftest.err >&5
20921 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20922 (exit $ac_status); } && {
20923 test -z "$ac_c_werror_flag" ||
20924 test ! -s conftest.err
20925 } && test -s conftest.$ac_objext; then
20926 ac_header_compiler=yes
20928 echo "$as_me: failed program was
:" >&5
20929 sed 's/^/| /' conftest.$ac_ext >&5
20931 ac_header_compiler=no
20934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20935 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20936 echo "${ECHO_T}$ac_header_compiler" >&6; }
20938 # Is the header present?
20939 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20940 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20941 cat >conftest.$ac_ext <<_ACEOF
20944 cat confdefs.h >>conftest.$ac_ext
20945 cat >>conftest.$ac_ext <<_ACEOF
20946 /* end confdefs.h. */
20947 #include <$ac_header>
20949 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20950 case "(($ac_try" in
20951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20952 *) ac_try_echo=$ac_try;;
20954 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20955 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20957 grep -v '^ *+' conftest.er1 >conftest.err
20959 cat conftest.err >&5
20960 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20961 (exit $ac_status); } >/dev/null && {
20962 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20963 test ! -s conftest.err
20965 ac_header_preproc=yes
20967 echo "$as_me: failed program was
:" >&5
20968 sed 's/^/| /' conftest.$ac_ext >&5
20970 ac_header_preproc=no
20973 rm -f conftest.err conftest.$ac_ext
20974 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20975 echo "${ECHO_T}$ac_header_preproc" >&6; }
20977 # So? What about this header?
20978 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20980 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20981 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20982 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20983 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20984 ac_header_preproc=yes
20987 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20988 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20989 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20990 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20991 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20992 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20993 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20994 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20995 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20996 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20997 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20998 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21002 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21003 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21004 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21005 echo $ECHO_N "(cached
) $ECHO_C" >&6
21007 eval "$as_ac_Header=\
$ac_header_preproc"
21009 ac_res=`eval echo '${'$as_ac_Header'}'`
21010 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21011 echo "${ECHO_T}$ac_res" >&6; }
21014 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21015 cat >>confdefs.h <<_ACEOF
21016 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21021 for ac_header in kerberosIV/krb.h
21023 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21024 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21025 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21026 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21027 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21028 echo $ECHO_N "(cached
) $ECHO_C" >&6
21030 ac_res=`eval echo '${'$as_ac_Header'}'`
21031 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21032 echo "${ECHO_T}$ac_res" >&6; }
21034 # Is the header compilable?
21035 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21036 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21037 cat >conftest.$ac_ext <<_ACEOF
21040 cat confdefs.h >>conftest.$ac_ext
21041 cat >>conftest.$ac_ext <<_ACEOF
21042 /* end confdefs.h. */
21043 $ac_includes_default
21044 #include <$ac_header>
21046 rm -f conftest.$ac_objext
21047 if { (ac_try="$ac_compile"
21048 case "(($ac_try" in
21049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21050 *) ac_try_echo=$ac_try;;
21052 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21053 (eval "$ac_compile") 2>conftest.er1
21055 grep -v '^ *+' conftest.er1 >conftest.err
21057 cat conftest.err >&5
21058 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21059 (exit $ac_status); } && {
21060 test -z "$ac_c_werror_flag" ||
21061 test ! -s conftest.err
21062 } && test -s conftest.$ac_objext; then
21063 ac_header_compiler=yes
21065 echo "$as_me: failed program was
:" >&5
21066 sed 's/^/| /' conftest.$ac_ext >&5
21068 ac_header_compiler=no
21071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21072 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21073 echo "${ECHO_T}$ac_header_compiler" >&6; }
21075 # Is the header present?
21076 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21077 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21078 cat >conftest.$ac_ext <<_ACEOF
21081 cat confdefs.h >>conftest.$ac_ext
21082 cat >>conftest.$ac_ext <<_ACEOF
21083 /* end confdefs.h. */
21084 #include <$ac_header>
21086 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21087 case "(($ac_try" in
21088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21089 *) ac_try_echo=$ac_try;;
21091 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21092 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21094 grep -v '^ *+' conftest.er1 >conftest.err
21096 cat conftest.err >&5
21097 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21098 (exit $ac_status); } >/dev/null && {
21099 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21100 test ! -s conftest.err
21102 ac_header_preproc=yes
21104 echo "$as_me: failed program was
:" >&5
21105 sed 's/^/| /' conftest.$ac_ext >&5
21107 ac_header_preproc=no
21110 rm -f conftest.err conftest.$ac_ext
21111 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21112 echo "${ECHO_T}$ac_header_preproc" >&6; }
21114 # So? What about this header?
21115 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21117 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21118 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21119 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21120 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21121 ac_header_preproc=yes
21124 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21125 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21126 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21127 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21128 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21129 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21130 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21131 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21132 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21133 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21134 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21135 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21139 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21140 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21141 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21142 echo $ECHO_N "(cached
) $ECHO_C" >&6
21144 eval "$as_ac_Header=\
$ac_header_preproc"
21146 ac_res=`eval echo '${'$as_ac_Header'}'`
21147 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21148 echo "${ECHO_T}$ac_res" >&6; }
21151 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21152 cat >>confdefs.h <<_ACEOF
21153 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21158 for ac_header in kerberos/krb.h
21160 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21161 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21162 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21163 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21164 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21165 echo $ECHO_N "(cached
) $ECHO_C" >&6
21167 ac_res=`eval echo '${'$as_ac_Header'}'`
21168 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21169 echo "${ECHO_T}$ac_res" >&6; }
21171 # Is the header compilable?
21172 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21173 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21174 cat >conftest.$ac_ext <<_ACEOF
21177 cat confdefs.h >>conftest.$ac_ext
21178 cat >>conftest.$ac_ext <<_ACEOF
21179 /* end confdefs.h. */
21180 $ac_includes_default
21181 #include <$ac_header>
21183 rm -f conftest.$ac_objext
21184 if { (ac_try="$ac_compile"
21185 case "(($ac_try" in
21186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21187 *) ac_try_echo=$ac_try;;
21189 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21190 (eval "$ac_compile") 2>conftest.er1
21192 grep -v '^ *+' conftest.er1 >conftest.err
21194 cat conftest.err >&5
21195 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21196 (exit $ac_status); } && {
21197 test -z "$ac_c_werror_flag" ||
21198 test ! -s conftest.err
21199 } && test -s conftest.$ac_objext; then
21200 ac_header_compiler=yes
21202 echo "$as_me: failed program was
:" >&5
21203 sed 's/^/| /' conftest.$ac_ext >&5
21205 ac_header_compiler=no
21208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21209 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21210 echo "${ECHO_T}$ac_header_compiler" >&6; }
21212 # Is the header present?
21213 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21214 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21215 cat >conftest.$ac_ext <<_ACEOF
21218 cat confdefs.h >>conftest.$ac_ext
21219 cat >>conftest.$ac_ext <<_ACEOF
21220 /* end confdefs.h. */
21221 #include <$ac_header>
21223 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21224 case "(($ac_try" in
21225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21226 *) ac_try_echo=$ac_try;;
21228 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21229 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21231 grep -v '^ *+' conftest.er1 >conftest.err
21233 cat conftest.err >&5
21234 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21235 (exit $ac_status); } >/dev/null && {
21236 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21237 test ! -s conftest.err
21239 ac_header_preproc=yes
21241 echo "$as_me: failed program was
:" >&5
21242 sed 's/^/| /' conftest.$ac_ext >&5
21244 ac_header_preproc=no
21247 rm -f conftest.err conftest.$ac_ext
21248 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21249 echo "${ECHO_T}$ac_header_preproc" >&6; }
21251 # So? What about this header?
21252 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21254 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21255 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21256 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21257 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21258 ac_header_preproc=yes
21261 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21262 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21263 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21264 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21265 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21266 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21267 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21268 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21269 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21270 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21271 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21272 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21276 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21277 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21278 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21279 echo $ECHO_N "(cached
) $ECHO_C" >&6
21281 eval "$as_ac_Header=\
$ac_header_preproc"
21283 ac_res=`eval echo '${'$as_ac_Header'}'`
21284 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21285 echo "${ECHO_T}$ac_res" >&6; }
21288 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21289 cat >>confdefs.h <<_ACEOF
21290 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21307 for ac_header in com_err.h
21309 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21310 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21311 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21312 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21313 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21314 echo $ECHO_N "(cached
) $ECHO_C" >&6
21316 ac_res=`eval echo '${'$as_ac_Header'}'`
21317 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21318 echo "${ECHO_T}$ac_res" >&6; }
21320 # Is the header compilable?
21321 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21322 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21323 cat >conftest.$ac_ext <<_ACEOF
21326 cat confdefs.h >>conftest.$ac_ext
21327 cat >>conftest.$ac_ext <<_ACEOF
21328 /* end confdefs.h. */
21329 $ac_includes_default
21330 #include <$ac_header>
21332 rm -f conftest.$ac_objext
21333 if { (ac_try="$ac_compile"
21334 case "(($ac_try" in
21335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21336 *) ac_try_echo=$ac_try;;
21338 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21339 (eval "$ac_compile") 2>conftest.er1
21341 grep -v '^ *+' conftest.er1 >conftest.err
21343 cat conftest.err >&5
21344 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21345 (exit $ac_status); } && {
21346 test -z "$ac_c_werror_flag" ||
21347 test ! -s conftest.err
21348 } && test -s conftest.$ac_objext; then
21349 ac_header_compiler=yes
21351 echo "$as_me: failed program was
:" >&5
21352 sed 's/^/| /' conftest.$ac_ext >&5
21354 ac_header_compiler=no
21357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21358 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21359 echo "${ECHO_T}$ac_header_compiler" >&6; }
21361 # Is the header present?
21362 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21363 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21364 cat >conftest.$ac_ext <<_ACEOF
21367 cat confdefs.h >>conftest.$ac_ext
21368 cat >>conftest.$ac_ext <<_ACEOF
21369 /* end confdefs.h. */
21370 #include <$ac_header>
21372 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21373 case "(($ac_try" in
21374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21375 *) ac_try_echo=$ac_try;;
21377 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21378 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21380 grep -v '^ *+' conftest.er1 >conftest.err
21382 cat conftest.err >&5
21383 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21384 (exit $ac_status); } >/dev/null && {
21385 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21386 test ! -s conftest.err
21388 ac_header_preproc=yes
21390 echo "$as_me: failed program was
:" >&5
21391 sed 's/^/| /' conftest.$ac_ext >&5
21393 ac_header_preproc=no
21396 rm -f conftest.err conftest.$ac_ext
21397 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21398 echo "${ECHO_T}$ac_header_preproc" >&6; }
21400 # So? What about this header?
21401 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21403 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21404 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21405 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21406 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21407 ac_header_preproc=yes
21410 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21411 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21412 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21413 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21414 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21415 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21416 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21417 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21418 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21419 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21420 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21421 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21425 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21426 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21427 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21428 echo $ECHO_N "(cached
) $ECHO_C" >&6
21430 eval "$as_ac_Header=\
$ac_header_preproc"
21432 ac_res=`eval echo '${'$as_ac_Header'}'`
21433 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21434 echo "${ECHO_T}$ac_res" >&6; }
21437 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21438 cat >>confdefs.h <<_ACEOF
21439 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21448 # Solaris requires -lintl if you want strerror (which calls dgettext)
21449 # to return localized messages.
21451 { echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
21452 echo $ECHO_N "checking
for dgettext
in -lintl...
$ECHO_C" >&6; }
21453 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21454 echo $ECHO_N "(cached
) $ECHO_C" >&6
21456 ac_check_lib_save_LIBS=$LIBS
21457 LIBS="-lintl $LIBS"
21458 cat >conftest.$ac_ext <<_ACEOF
21461 cat confdefs.h >>conftest.$ac_ext
21462 cat >>conftest.$ac_ext <<_ACEOF
21463 /* end confdefs.h. */
21465 /* Override any GCC internal prototype to avoid an error.
21466 Use char because int might match the return type of a GCC
21467 builtin and then its argument prototype would still apply. */
21475 return dgettext ();
21480 rm -f conftest.$ac_objext conftest$ac_exeext
21481 if { (ac_try="$ac_link"
21482 case "(($ac_try" in
21483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21484 *) ac_try_echo=$ac_try;;
21486 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21487 (eval "$ac_link") 2>conftest.er1
21489 grep -v '^ *+' conftest.er1 >conftest.err
21491 cat conftest.err >&5
21492 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21493 (exit $ac_status); } && {
21494 test -z "$ac_c_werror_flag" ||
21495 test ! -s conftest.err
21496 } && test -s conftest$ac_exeext &&
21497 $as_test_x conftest$ac_exeext; then
21498 ac_cv_lib_intl_dgettext=yes
21500 echo "$as_me: failed program was
:" >&5
21501 sed 's/^/| /' conftest.$ac_ext >&5
21503 ac_cv_lib_intl_dgettext=no
21506 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21507 conftest$ac_exeext conftest.$ac_ext
21508 LIBS=$ac_check_lib_save_LIBS
21510 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
21511 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
21512 if test $ac_cv_lib_intl_dgettext = yes; then
21513 cat >>confdefs.h <<_ACEOF
21514 #define HAVE_LIBINTL 1
21517 LIBS="-lintl $LIBS"
21522 { echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
21523 echo $ECHO_N "checking whether localtime caches TZ...
$ECHO_C" >&6; }
21524 if test "${emacs_cv_localtime_cache+set}" = set; then
21525 echo $ECHO_N "(cached
) $ECHO_C" >&6
21527 if test x$ac_cv_func_tzset = xyes; then
21528 if test "$cross_compiling" = yes; then
21529 # If we have tzset, assume the worst when cross-compiling.
21530 emacs_cv_localtime_cache=yes
21532 cat >conftest.$ac_ext <<_ACEOF
21535 cat confdefs.h >>conftest.$ac_ext
21536 cat >>conftest.$ac_ext <<_ACEOF
21537 /* end confdefs.h. */
21539 extern char **environ;
21543 for (to = from = environ; (*to = *from); from++)
21544 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
21547 char TZ_GMT0[] = "TZ
=GMT0
";
21548 char TZ_PST8[] = "TZ
=PST8
";
21551 time_t now = time ((time_t *) 0);
21552 int hour_GMT0, hour_unset;
21553 if (putenv (TZ_GMT0) != 0)
21555 hour_GMT0 = localtime (&now)->tm_hour;
21557 hour_unset = localtime (&now)->tm_hour;
21558 if (putenv (TZ_PST8) != 0)
21560 if (localtime (&now)->tm_hour == hour_GMT0)
21563 if (localtime (&now)->tm_hour != hour_unset)
21568 rm -f conftest$ac_exeext
21569 if { (ac_try="$ac_link"
21570 case "(($ac_try" in
21571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21572 *) ac_try_echo=$ac_try;;
21574 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21575 (eval "$ac_link") 2>&5
21577 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21578 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21579 { (case "(($ac_try" in
21580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21581 *) ac_try_echo=$ac_try;;
21583 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21584 (eval "$ac_try") 2>&5
21586 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21587 (exit $ac_status); }; }; then
21588 emacs_cv_localtime_cache=no
21590 echo "$as_me: program exited with status
$ac_status" >&5
21591 echo "$as_me: failed program was
:" >&5
21592 sed 's/^/| /' conftest.$ac_ext >&5
21594 ( exit $ac_status )
21595 emacs_cv_localtime_cache=yes
21597 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21602 # If we lack tzset, report that localtime does not cache TZ,
21603 # since we can't invalidate the cache if we don't have tzset.
21604 emacs_cv_localtime_cache=no
21607 { echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
21608 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
21609 if test $emacs_cv_localtime_cache = yes; then
21611 cat >>confdefs.h <<\_ACEOF
21612 #define LOCALTIME_CACHE 1
21617 if test "x
$HAVE_TIMEVAL" = xyes; then
21619 for ac_func in gettimeofday
21621 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
21622 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
21623 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
21624 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
21625 echo $ECHO_N "(cached
) $ECHO_C" >&6
21627 cat >conftest.$ac_ext <<_ACEOF
21630 cat confdefs.h >>conftest.$ac_ext
21631 cat >>conftest.$ac_ext <<_ACEOF
21632 /* end confdefs.h. */
21633 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21634 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21635 #define $ac_func innocuous_$ac_func
21637 /* System header to define __stub macros and hopefully few prototypes,
21638 which can conflict with char $ac_func (); below.
21639 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21640 <limits.h> exists even on freestanding compilers. */
21643 # include <limits.h>
21645 # include <assert.h>
21650 /* Override any GCC internal prototype to avoid an error.
21651 Use char because int might match the return type of a GCC
21652 builtin and then its argument prototype would still apply. */
21657 /* The GNU C library defines this for functions which it implements
21658 to always fail with ENOSYS. Some functions are actually named
21659 something starting with __ and the normal name is an alias. */
21660 #if defined __stub_$ac_func || defined __stub___$ac_func
21667 return $ac_func ();
21672 rm -f conftest.$ac_objext conftest$ac_exeext
21673 if { (ac_try="$ac_link"
21674 case "(($ac_try" in
21675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21676 *) ac_try_echo=$ac_try;;
21678 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21679 (eval "$ac_link") 2>conftest.er1
21681 grep -v '^ *+' conftest.er1 >conftest.err
21683 cat conftest.err >&5
21684 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21685 (exit $ac_status); } && {
21686 test -z "$ac_c_werror_flag" ||
21687 test ! -s conftest.err
21688 } && test -s conftest$ac_exeext &&
21689 $as_test_x conftest$ac_exeext; then
21690 eval "$as_ac_var=yes"
21692 echo "$as_me: failed program was
:" >&5
21693 sed 's/^/| /' conftest.$ac_ext >&5
21695 eval "$as_ac_var=no
"
21698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21699 conftest$ac_exeext conftest.$ac_ext
21701 ac_res=`eval echo '${'$as_ac_var'}'`
21702 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21703 echo "${ECHO_T}$ac_res" >&6; }
21704 if test `eval echo '${'$as_ac_var'}'` = yes; then
21705 cat >>confdefs.h <<_ACEOF
21706 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21712 if test $ac_cv_func_gettimeofday = yes; then
21713 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
21714 echo $ECHO_N "checking whether gettimeofday can accept two arguments...
$ECHO_C" >&6; }
21715 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
21716 echo $ECHO_N "(cached
) $ECHO_C" >&6
21718 cat >conftest.$ac_ext <<_ACEOF
21721 cat confdefs.h >>conftest.$ac_ext
21722 cat >>conftest.$ac_ext <<_ACEOF
21723 /* end confdefs.h. */
21725 #ifdef TIME_WITH_SYS_TIME
21726 #include <sys/time.h>
21729 #ifdef HAVE_SYS_TIME_H
21730 #include <sys/time.h>
21738 struct timeval time;
21739 gettimeofday (&time, 0);
21744 rm -f conftest.$ac_objext
21745 if { (ac_try="$ac_compile"
21746 case "(($ac_try" in
21747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21748 *) ac_try_echo=$ac_try;;
21750 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21751 (eval "$ac_compile") 2>conftest.er1
21753 grep -v '^ *+' conftest.er1 >conftest.err
21755 cat conftest.err >&5
21756 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21757 (exit $ac_status); } && {
21758 test -z "$ac_c_werror_flag" ||
21759 test ! -s conftest.err
21760 } && test -s conftest.$ac_objext; then
21761 emacs_cv_gettimeofday_two_arguments=yes
21763 echo "$as_me: failed program was
:" >&5
21764 sed 's/^/| /' conftest.$ac_ext >&5
21766 emacs_cv_gettimeofday_two_arguments=no
21769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21771 { echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
21772 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
21773 if test $emacs_cv_gettimeofday_two_arguments = no; then
21775 cat >>confdefs.h <<\_ACEOF
21776 #define GETTIMEOFDAY_ONE_ARGUMENT 1
21784 { echo "$as_me:$LINENO: checking
for socket
" >&5
21785 echo $ECHO_N "checking
for socket...
$ECHO_C" >&6; }
21786 if test "${ac_cv_func_socket+set}" = set; then
21787 echo $ECHO_N "(cached
) $ECHO_C" >&6
21789 cat >conftest.$ac_ext <<_ACEOF
21792 cat confdefs.h >>conftest.$ac_ext
21793 cat >>conftest.$ac_ext <<_ACEOF
21794 /* end confdefs.h. */
21795 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21796 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21797 #define socket innocuous_socket
21799 /* System header to define __stub macros and hopefully few prototypes,
21800 which can conflict with char socket (); below.
21801 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21802 <limits.h> exists even on freestanding compilers. */
21805 # include <limits.h>
21807 # include <assert.h>
21812 /* Override any GCC internal prototype to avoid an error.
21813 Use char because int might match the return type of a GCC
21814 builtin and then its argument prototype would still apply. */
21819 /* The GNU C library defines this for functions which it implements
21820 to always fail with ENOSYS. Some functions are actually named
21821 something starting with __ and the normal name is an alias. */
21822 #if defined __stub_socket || defined __stub___socket
21834 rm -f conftest.$ac_objext conftest$ac_exeext
21835 if { (ac_try="$ac_link"
21836 case "(($ac_try" in
21837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21838 *) ac_try_echo=$ac_try;;
21840 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21841 (eval "$ac_link") 2>conftest.er1
21843 grep -v '^ *+' conftest.er1 >conftest.err
21845 cat conftest.err >&5
21846 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21847 (exit $ac_status); } && {
21848 test -z "$ac_c_werror_flag" ||
21849 test ! -s conftest.err
21850 } && test -s conftest$ac_exeext &&
21851 $as_test_x conftest$ac_exeext; then
21852 ac_cv_func_socket=yes
21854 echo "$as_me: failed program was
:" >&5
21855 sed 's/^/| /' conftest.$ac_ext >&5
21857 ac_cv_func_socket=no
21860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21861 conftest$ac_exeext conftest.$ac_ext
21863 { echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
21864 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
21865 if test $ac_cv_func_socket = yes; then
21871 if test $ok_so_far = yes; then
21872 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21873 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
21874 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
21875 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21876 echo $ECHO_N "(cached
) $ECHO_C" >&6
21878 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
21879 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21881 # Is the header compilable?
21882 { echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
21883 echo $ECHO_N "checking netinet
/in.h usability...
$ECHO_C" >&6; }
21884 cat >conftest.$ac_ext <<_ACEOF
21887 cat confdefs.h >>conftest.$ac_ext
21888 cat >>conftest.$ac_ext <<_ACEOF
21889 /* end confdefs.h. */
21890 $ac_includes_default
21891 #include <netinet/in.h>
21893 rm -f conftest.$ac_objext
21894 if { (ac_try="$ac_compile"
21895 case "(($ac_try" in
21896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21897 *) ac_try_echo=$ac_try;;
21899 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21900 (eval "$ac_compile") 2>conftest.er1
21902 grep -v '^ *+' conftest.er1 >conftest.err
21904 cat conftest.err >&5
21905 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21906 (exit $ac_status); } && {
21907 test -z "$ac_c_werror_flag" ||
21908 test ! -s conftest.err
21909 } && test -s conftest.$ac_objext; then
21910 ac_header_compiler=yes
21912 echo "$as_me: failed program was
:" >&5
21913 sed 's/^/| /' conftest.$ac_ext >&5
21915 ac_header_compiler=no
21918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21919 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21920 echo "${ECHO_T}$ac_header_compiler" >&6; }
21922 # Is the header present?
21923 { echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
21924 echo $ECHO_N "checking netinet
/in.h presence...
$ECHO_C" >&6; }
21925 cat >conftest.$ac_ext <<_ACEOF
21928 cat confdefs.h >>conftest.$ac_ext
21929 cat >>conftest.$ac_ext <<_ACEOF
21930 /* end confdefs.h. */
21931 #include <netinet/in.h>
21933 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21934 case "(($ac_try" in
21935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21936 *) ac_try_echo=$ac_try;;
21938 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21939 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21941 grep -v '^ *+' conftest.er1 >conftest.err
21943 cat conftest.err >&5
21944 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21945 (exit $ac_status); } >/dev/null && {
21946 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21947 test ! -s conftest.err
21949 ac_header_preproc=yes
21951 echo "$as_me: failed program was
:" >&5
21952 sed 's/^/| /' conftest.$ac_ext >&5
21954 ac_header_preproc=no
21957 rm -f conftest.err conftest.$ac_ext
21958 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21959 echo "${ECHO_T}$ac_header_preproc" >&6; }
21961 # So? What about this header?
21962 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21964 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
21965 echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21966 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
21967 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
21968 ac_header_preproc=yes
21971 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
21972 echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
21973 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
21974 echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
21975 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
21976 echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
21977 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
21978 echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
21979 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
21980 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
21981 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
21982 echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
21986 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
21987 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
21988 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21989 echo $ECHO_N "(cached
) $ECHO_C" >&6
21991 ac_cv_header_netinet_in_h=$ac_header_preproc
21993 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
21994 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21997 if test $ac_cv_header_netinet_in_h = yes; then
22005 if test $ok_so_far = yes; then
22006 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22007 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22008 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22009 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22010 echo $ECHO_N "(cached
) $ECHO_C" >&6
22012 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22013 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22015 # Is the header compilable?
22016 { echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
22017 echo $ECHO_N "checking arpa
/inet.h usability...
$ECHO_C" >&6; }
22018 cat >conftest.$ac_ext <<_ACEOF
22021 cat confdefs.h >>conftest.$ac_ext
22022 cat >>conftest.$ac_ext <<_ACEOF
22023 /* end confdefs.h. */
22024 $ac_includes_default
22025 #include <arpa/inet.h>
22027 rm -f conftest.$ac_objext
22028 if { (ac_try="$ac_compile"
22029 case "(($ac_try" in
22030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22031 *) ac_try_echo=$ac_try;;
22033 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22034 (eval "$ac_compile") 2>conftest.er1
22036 grep -v '^ *+' conftest.er1 >conftest.err
22038 cat conftest.err >&5
22039 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22040 (exit $ac_status); } && {
22041 test -z "$ac_c_werror_flag" ||
22042 test ! -s conftest.err
22043 } && test -s conftest.$ac_objext; then
22044 ac_header_compiler=yes
22046 echo "$as_me: failed program was
:" >&5
22047 sed 's/^/| /' conftest.$ac_ext >&5
22049 ac_header_compiler=no
22052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22053 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22054 echo "${ECHO_T}$ac_header_compiler" >&6; }
22056 # Is the header present?
22057 { echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
22058 echo $ECHO_N "checking arpa
/inet.h presence...
$ECHO_C" >&6; }
22059 cat >conftest.$ac_ext <<_ACEOF
22062 cat confdefs.h >>conftest.$ac_ext
22063 cat >>conftest.$ac_ext <<_ACEOF
22064 /* end confdefs.h. */
22065 #include <arpa/inet.h>
22067 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22068 case "(($ac_try" in
22069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22070 *) ac_try_echo=$ac_try;;
22072 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22073 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22075 grep -v '^ *+' conftest.er1 >conftest.err
22077 cat conftest.err >&5
22078 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22079 (exit $ac_status); } >/dev/null && {
22080 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22081 test ! -s conftest.err
22083 ac_header_preproc=yes
22085 echo "$as_me: failed program was
:" >&5
22086 sed 's/^/| /' conftest.$ac_ext >&5
22088 ac_header_preproc=no
22091 rm -f conftest.err conftest.$ac_ext
22092 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22093 echo "${ECHO_T}$ac_header_preproc" >&6; }
22095 # So? What about this header?
22096 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22098 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22099 echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22100 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
22101 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
22102 ac_header_preproc=yes
22105 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
22106 echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
22107 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
22108 echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
22109 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
22110 echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
22111 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22112 echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22113 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
22114 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
22115 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
22116 echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
22120 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22121 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22122 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22123 echo $ECHO_N "(cached
) $ECHO_C" >&6
22125 ac_cv_header_arpa_inet_h=$ac_header_preproc
22127 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22128 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22131 if test $ac_cv_header_arpa_inet_h = yes; then
22139 if test $ok_so_far = yes; then
22141 cat >>confdefs.h <<\_ACEOF
22142 #define HAVE_INET_SOCKETS 1
22148 for ac_header in sys/ioctl.h
22150 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22151 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22152 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22153 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22154 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22155 echo $ECHO_N "(cached
) $ECHO_C" >&6
22157 ac_res=`eval echo '${'$as_ac_Header'}'`
22158 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22159 echo "${ECHO_T}$ac_res" >&6; }
22161 # Is the header compilable?
22162 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22163 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22164 cat >conftest.$ac_ext <<_ACEOF
22167 cat confdefs.h >>conftest.$ac_ext
22168 cat >>conftest.$ac_ext <<_ACEOF
22169 /* end confdefs.h. */
22170 $ac_includes_default
22171 #include <$ac_header>
22173 rm -f conftest.$ac_objext
22174 if { (ac_try="$ac_compile"
22175 case "(($ac_try" in
22176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22177 *) ac_try_echo=$ac_try;;
22179 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22180 (eval "$ac_compile") 2>conftest.er1
22182 grep -v '^ *+' conftest.er1 >conftest.err
22184 cat conftest.err >&5
22185 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22186 (exit $ac_status); } && {
22187 test -z "$ac_c_werror_flag" ||
22188 test ! -s conftest.err
22189 } && test -s conftest.$ac_objext; then
22190 ac_header_compiler=yes
22192 echo "$as_me: failed program was
:" >&5
22193 sed 's/^/| /' conftest.$ac_ext >&5
22195 ac_header_compiler=no
22198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22199 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22200 echo "${ECHO_T}$ac_header_compiler" >&6; }
22202 # Is the header present?
22203 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22204 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22205 cat >conftest.$ac_ext <<_ACEOF
22208 cat confdefs.h >>conftest.$ac_ext
22209 cat >>conftest.$ac_ext <<_ACEOF
22210 /* end confdefs.h. */
22211 #include <$ac_header>
22213 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22214 case "(($ac_try" in
22215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22216 *) ac_try_echo=$ac_try;;
22218 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22219 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22221 grep -v '^ *+' conftest.er1 >conftest.err
22223 cat conftest.err >&5
22224 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22225 (exit $ac_status); } >/dev/null && {
22226 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22227 test ! -s conftest.err
22229 ac_header_preproc=yes
22231 echo "$as_me: failed program was
:" >&5
22232 sed 's/^/| /' conftest.$ac_ext >&5
22234 ac_header_preproc=no
22237 rm -f conftest.err conftest.$ac_ext
22238 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22239 echo "${ECHO_T}$ac_header_preproc" >&6; }
22241 # So? What about this header?
22242 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22244 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22245 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22246 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22247 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22248 ac_header_preproc=yes
22251 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22252 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22253 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22254 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22255 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22256 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22257 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22258 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22259 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22260 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22261 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22262 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22266 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22267 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22268 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22269 echo $ECHO_N "(cached
) $ECHO_C" >&6
22271 eval "$as_ac_Header=\
$ac_header_preproc"
22273 ac_res=`eval echo '${'$as_ac_Header'}'`
22274 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22275 echo "${ECHO_T}$ac_res" >&6; }
22278 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22279 cat >>confdefs.h <<_ACEOF
22280 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22288 if test -f /usr/lpp/X11/bin/smt.exp; then
22290 cat >>confdefs.h <<\_ACEOF
22291 #define HAVE_AIX_SMT_EXP 1
22296 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
22297 echo $ECHO_N "checking whether system supports dynamic ptys...
$ECHO_C" >&6; }
22298 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22299 { echo "$as_me:$LINENO: result
: yes" >&5
22300 echo "${ECHO_T}yes" >&6; }
22302 cat >>confdefs.h <<\_ACEOF
22303 #define HAVE_DEV_PTMX 1
22307 { echo "$as_me:$LINENO: result
: no
" >&5
22308 echo "${ECHO_T}no
" >&6; }
22311 { echo "$as_me:$LINENO: checking
for pid_t
" >&5
22312 echo $ECHO_N "checking
for pid_t...
$ECHO_C" >&6; }
22313 if test "${ac_cv_type_pid_t+set}" = set; then
22314 echo $ECHO_N "(cached
) $ECHO_C" >&6
22316 cat >conftest.$ac_ext <<_ACEOF
22319 cat confdefs.h >>conftest.$ac_ext
22320 cat >>conftest.$ac_ext <<_ACEOF
22321 /* end confdefs.h. */
22322 $ac_includes_default
22323 typedef pid_t ac__type_new_;
22327 if ((ac__type_new_ *) 0)
22329 if (sizeof (ac__type_new_))
22335 rm -f conftest.$ac_objext
22336 if { (ac_try="$ac_compile"
22337 case "(($ac_try" in
22338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22339 *) ac_try_echo=$ac_try;;
22341 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22342 (eval "$ac_compile") 2>conftest.er1
22344 grep -v '^ *+' conftest.er1 >conftest.err
22346 cat conftest.err >&5
22347 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22348 (exit $ac_status); } && {
22349 test -z "$ac_c_werror_flag" ||
22350 test ! -s conftest.err
22351 } && test -s conftest.$ac_objext; then
22352 ac_cv_type_pid_t=yes
22354 echo "$as_me: failed program was
:" >&5
22355 sed 's/^/| /' conftest.$ac_ext >&5
22357 ac_cv_type_pid_t=no
22360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22362 { echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
22363 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22364 if test $ac_cv_type_pid_t = yes; then
22368 cat >>confdefs.h <<_ACEOF
22375 for ac_header in vfork.h
22377 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22378 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22379 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22380 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22381 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22382 echo $ECHO_N "(cached
) $ECHO_C" >&6
22384 ac_res=`eval echo '${'$as_ac_Header'}'`
22385 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22386 echo "${ECHO_T}$ac_res" >&6; }
22388 # Is the header compilable?
22389 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22390 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22391 cat >conftest.$ac_ext <<_ACEOF
22394 cat confdefs.h >>conftest.$ac_ext
22395 cat >>conftest.$ac_ext <<_ACEOF
22396 /* end confdefs.h. */
22397 $ac_includes_default
22398 #include <$ac_header>
22400 rm -f conftest.$ac_objext
22401 if { (ac_try="$ac_compile"
22402 case "(($ac_try" in
22403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22404 *) ac_try_echo=$ac_try;;
22406 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22407 (eval "$ac_compile") 2>conftest.er1
22409 grep -v '^ *+' conftest.er1 >conftest.err
22411 cat conftest.err >&5
22412 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22413 (exit $ac_status); } && {
22414 test -z "$ac_c_werror_flag" ||
22415 test ! -s conftest.err
22416 } && test -s conftest.$ac_objext; then
22417 ac_header_compiler=yes
22419 echo "$as_me: failed program was
:" >&5
22420 sed 's/^/| /' conftest.$ac_ext >&5
22422 ac_header_compiler=no
22425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22426 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22427 echo "${ECHO_T}$ac_header_compiler" >&6; }
22429 # Is the header present?
22430 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22431 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22432 cat >conftest.$ac_ext <<_ACEOF
22435 cat confdefs.h >>conftest.$ac_ext
22436 cat >>conftest.$ac_ext <<_ACEOF
22437 /* end confdefs.h. */
22438 #include <$ac_header>
22440 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22441 case "(($ac_try" in
22442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22443 *) ac_try_echo=$ac_try;;
22445 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22446 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22448 grep -v '^ *+' conftest.er1 >conftest.err
22450 cat conftest.err >&5
22451 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22452 (exit $ac_status); } >/dev/null && {
22453 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22454 test ! -s conftest.err
22456 ac_header_preproc=yes
22458 echo "$as_me: failed program was
:" >&5
22459 sed 's/^/| /' conftest.$ac_ext >&5
22461 ac_header_preproc=no
22464 rm -f conftest.err conftest.$ac_ext
22465 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22466 echo "${ECHO_T}$ac_header_preproc" >&6; }
22468 # So? What about this header?
22469 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22471 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22472 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22473 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22474 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22475 ac_header_preproc=yes
22478 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22479 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22480 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22481 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22482 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22483 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22484 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22485 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22486 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22487 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22488 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22489 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22493 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22494 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22495 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22496 echo $ECHO_N "(cached
) $ECHO_C" >&6
22498 eval "$as_ac_Header=\
$ac_header_preproc"
22500 ac_res=`eval echo '${'$as_ac_Header'}'`
22501 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22502 echo "${ECHO_T}$ac_res" >&6; }
22505 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22506 cat >>confdefs.h <<_ACEOF
22507 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22516 for ac_func in fork vfork
22518 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
22519 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
22520 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
22521 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
22522 echo $ECHO_N "(cached
) $ECHO_C" >&6
22524 cat >conftest.$ac_ext <<_ACEOF
22527 cat confdefs.h >>conftest.$ac_ext
22528 cat >>conftest.$ac_ext <<_ACEOF
22529 /* end confdefs.h. */
22530 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22531 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22532 #define $ac_func innocuous_$ac_func
22534 /* System header to define __stub macros and hopefully few prototypes,
22535 which can conflict with char $ac_func (); below.
22536 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22537 <limits.h> exists even on freestanding compilers. */
22540 # include <limits.h>
22542 # include <assert.h>
22547 /* Override any GCC internal prototype to avoid an error.
22548 Use char because int might match the return type of a GCC
22549 builtin and then its argument prototype would still apply. */
22554 /* The GNU C library defines this for functions which it implements
22555 to always fail with ENOSYS. Some functions are actually named
22556 something starting with __ and the normal name is an alias. */
22557 #if defined __stub_$ac_func || defined __stub___$ac_func
22564 return $ac_func ();
22569 rm -f conftest.$ac_objext conftest$ac_exeext
22570 if { (ac_try="$ac_link"
22571 case "(($ac_try" in
22572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22573 *) ac_try_echo=$ac_try;;
22575 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22576 (eval "$ac_link") 2>conftest.er1
22578 grep -v '^ *+' conftest.er1 >conftest.err
22580 cat conftest.err >&5
22581 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22582 (exit $ac_status); } && {
22583 test -z "$ac_c_werror_flag" ||
22584 test ! -s conftest.err
22585 } && test -s conftest$ac_exeext &&
22586 $as_test_x conftest$ac_exeext; then
22587 eval "$as_ac_var=yes"
22589 echo "$as_me: failed program was
:" >&5
22590 sed 's/^/| /' conftest.$ac_ext >&5
22592 eval "$as_ac_var=no
"
22595 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22596 conftest$ac_exeext conftest.$ac_ext
22598 ac_res=`eval echo '${'$as_ac_var'}'`
22599 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22600 echo "${ECHO_T}$ac_res" >&6; }
22601 if test `eval echo '${'$as_ac_var'}'` = yes; then
22602 cat >>confdefs.h <<_ACEOF
22603 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
22609 if test "x
$ac_cv_func_fork" = xyes; then
22610 { echo "$as_me:$LINENO: checking
for working fork
" >&5
22611 echo $ECHO_N "checking
for working fork...
$ECHO_C" >&6; }
22612 if test "${ac_cv_func_fork_works+set}" = set; then
22613 echo $ECHO_N "(cached
) $ECHO_C" >&6
22615 if test "$cross_compiling" = yes; then
22616 ac_cv_func_fork_works=cross
22618 cat >conftest.$ac_ext <<_ACEOF
22621 cat confdefs.h >>conftest.$ac_ext
22622 cat >>conftest.$ac_ext <<_ACEOF
22623 /* end confdefs.h. */
22624 $ac_includes_default
22629 /* By Ruediger Kuhlmann. */
22630 return fork () < 0;
22636 rm -f conftest$ac_exeext
22637 if { (ac_try="$ac_link"
22638 case "(($ac_try" in
22639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22640 *) ac_try_echo=$ac_try;;
22642 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22643 (eval "$ac_link") 2>&5
22645 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22646 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22647 { (case "(($ac_try" in
22648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22649 *) ac_try_echo=$ac_try;;
22651 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22652 (eval "$ac_try") 2>&5
22654 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22655 (exit $ac_status); }; }; then
22656 ac_cv_func_fork_works=yes
22658 echo "$as_me: program exited with status
$ac_status" >&5
22659 echo "$as_me: failed program was
:" >&5
22660 sed 's/^/| /' conftest.$ac_ext >&5
22662 ( exit $ac_status )
22663 ac_cv_func_fork_works=no
22665 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22670 { echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
22671 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
22674 ac_cv_func_fork_works=$ac_cv_func_fork
22676 if test "x
$ac_cv_func_fork_works" = xcross; then
22678 *-*-amigaos* | *-*-msdosdjgpp*)
22679 # Override, as these systems have only a dummy fork() stub
22680 ac_cv_func_fork_works=no
22683 ac_cv_func_fork_works=yes
22686 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
22687 echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
22689 ac_cv_func_vfork_works=$ac_cv_func_vfork
22690 if test "x
$ac_cv_func_vfork" = xyes; then
22691 { echo "$as_me:$LINENO: checking
for working vfork
" >&5
22692 echo $ECHO_N "checking
for working vfork...
$ECHO_C" >&6; }
22693 if test "${ac_cv_func_vfork_works+set}" = set; then
22694 echo $ECHO_N "(cached
) $ECHO_C" >&6
22696 if test "$cross_compiling" = yes; then
22697 ac_cv_func_vfork_works=cross
22699 cat >conftest.$ac_ext <<_ACEOF
22702 cat confdefs.h >>conftest.$ac_ext
22703 cat >>conftest.$ac_ext <<_ACEOF
22704 /* end confdefs.h. */
22705 /* Thanks to Paul Eggert for this test. */
22706 $ac_includes_default
22707 #include <sys/wait.h>
22708 #ifdef HAVE_VFORK_H
22709 # include <vfork.h>
22711 /* On some sparc systems, changes by the child to local and incoming
22712 argument registers are propagated back to the parent. The compiler
22713 is told about this with #include <vfork.h>, but some compilers
22714 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22715 static variable whose address is put into a register that is
22716 clobbered by the vfork. */
22719 sparc_address_test (int arg)
22721 sparc_address_test (arg) int arg;
22724 static pid_t child;
22742 pid_t parent = getpid ();
22745 sparc_address_test (0);
22750 /* Here is another test for sparc vfork register problems. This
22751 test uses lots of local variables, at least as many local
22752 variables as main has allocated so far including compiler
22753 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22754 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22755 reuse the register of parent for one of the local variables,
22756 since it will think that parent can't possibly be used any more
22757 in this routine. Assigning to the local variable will thus
22758 munge parent in the parent process. */
22760 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22761 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22762 /* Convince the compiler that p..p7 are live; otherwise, it might
22763 use the same hardware register for all 8 local variables. */
22764 if (p != p1 || p != p2 || p != p3 || p != p4
22765 || p != p5 || p != p6 || p != p7)
22768 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22769 from child file descriptors. If the child closes a descriptor
22770 before it execs or exits, this munges the parent's descriptor
22771 as well. Test for this by closing stdout in the child. */
22772 _exit(close(fileno(stdout)) != 0);
22777 while (wait(&status) != child)
22780 /* Was there some problem with vforking? */
22783 /* Did the child fail? (This shouldn't happen.) */
22786 /* Did the vfork/compiler bug occur? */
22787 || parent != getpid()
22789 /* Did the file descriptor bug occur? */
22790 || fstat(fileno(stdout), &st) != 0
22795 rm -f conftest$ac_exeext
22796 if { (ac_try="$ac_link"
22797 case "(($ac_try" in
22798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22799 *) ac_try_echo=$ac_try;;
22801 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22802 (eval "$ac_link") 2>&5
22804 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22805 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22806 { (case "(($ac_try" in
22807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22808 *) ac_try_echo=$ac_try;;
22810 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22811 (eval "$ac_try") 2>&5
22813 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22814 (exit $ac_status); }; }; then
22815 ac_cv_func_vfork_works=yes
22817 echo "$as_me: program exited with status
$ac_status" >&5
22818 echo "$as_me: failed program was
:" >&5
22819 sed 's/^/| /' conftest.$ac_ext >&5
22821 ( exit $ac_status )
22822 ac_cv_func_vfork_works=no
22824 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22829 { echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
22830 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
22833 if test "x
$ac_cv_func_fork_works" = xcross; then
22834 ac_cv_func_vfork_works=$ac_cv_func_vfork
22835 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
22836 echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
22839 if test "x
$ac_cv_func_vfork_works" = xyes; then
22841 cat >>confdefs.h <<\_ACEOF
22842 #define HAVE_WORKING_VFORK 1
22847 cat >>confdefs.h <<\_ACEOF
22852 if test "x
$ac_cv_func_fork_works" = xyes; then
22854 cat >>confdefs.h <<\_ACEOF
22855 #define HAVE_WORKING_FORK 1
22861 { echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
22862 echo $ECHO_N "checking
for nl_langinfo and CODESET...
$ECHO_C" >&6; }
22863 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22864 echo $ECHO_N "(cached
) $ECHO_C" >&6
22866 cat >conftest.$ac_ext <<_ACEOF
22869 cat confdefs.h >>conftest.$ac_ext
22870 cat >>conftest.$ac_ext <<_ACEOF
22871 /* end confdefs.h. */
22872 #include <langinfo.h>
22876 char* cs = nl_langinfo(CODESET);
22881 rm -f conftest.$ac_objext conftest$ac_exeext
22882 if { (ac_try="$ac_link"
22883 case "(($ac_try" in
22884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22885 *) ac_try_echo=$ac_try;;
22887 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22888 (eval "$ac_link") 2>conftest.er1
22890 grep -v '^ *+' conftest.er1 >conftest.err
22892 cat conftest.err >&5
22893 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22894 (exit $ac_status); } && {
22895 test -z "$ac_c_werror_flag" ||
22896 test ! -s conftest.err
22897 } && test -s conftest$ac_exeext &&
22898 $as_test_x conftest$ac_exeext; then
22899 emacs_cv_langinfo_codeset=yes
22901 echo "$as_me: failed program was
:" >&5
22902 sed 's/^/| /' conftest.$ac_ext >&5
22904 emacs_cv_langinfo_codeset=no
22907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22908 conftest$ac_exeext conftest.$ac_ext
22911 { echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
22912 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
22913 if test $emacs_cv_langinfo_codeset = yes; then
22915 cat >>confdefs.h <<\_ACEOF
22916 #define HAVE_LANGINFO_CODESET 1
22921 { echo "$as_me:$LINENO: checking
for size_t
" >&5
22922 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
22923 if test "${ac_cv_type_size_t+set}" = set; then
22924 echo $ECHO_N "(cached
) $ECHO_C" >&6
22926 cat >conftest.$ac_ext <<_ACEOF
22929 cat confdefs.h >>conftest.$ac_ext
22930 cat >>conftest.$ac_ext <<_ACEOF
22931 /* end confdefs.h. */
22932 $ac_includes_default
22933 typedef size_t ac__type_new_;
22937 if ((ac__type_new_ *) 0)
22939 if (sizeof (ac__type_new_))
22945 rm -f conftest.$ac_objext
22946 if { (ac_try="$ac_compile"
22947 case "(($ac_try" in
22948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22949 *) ac_try_echo=$ac_try;;
22951 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22952 (eval "$ac_compile") 2>conftest.er1
22954 grep -v '^ *+' conftest.er1 >conftest.err
22956 cat conftest.err >&5
22957 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22958 (exit $ac_status); } && {
22959 test -z "$ac_c_werror_flag" ||
22960 test ! -s conftest.err
22961 } && test -s conftest.$ac_objext; then
22962 ac_cv_type_size_t=yes
22964 echo "$as_me: failed program was
:" >&5
22965 sed 's/^/| /' conftest.$ac_ext >&5
22967 ac_cv_type_size_t=no
22970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22972 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
22973 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22974 if test $ac_cv_type_size_t = yes; then
22976 cat >>confdefs.h <<_ACEOF
22977 #define HAVE_SIZE_T 1
22984 { echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
22985 echo $ECHO_N "checking
for mbstate_t...
$ECHO_C" >&6; }
22986 if test "${ac_cv_type_mbstate_t+set}" = set; then
22987 echo $ECHO_N "(cached
) $ECHO_C" >&6
22989 cat >conftest.$ac_ext <<_ACEOF
22992 cat confdefs.h >>conftest.$ac_ext
22993 cat >>conftest.$ac_ext <<_ACEOF
22994 /* end confdefs.h. */
22995 $ac_includes_default
22996 # include <wchar.h>
23000 mbstate_t x; return sizeof x;
23005 rm -f conftest.$ac_objext
23006 if { (ac_try="$ac_compile"
23007 case "(($ac_try" in
23008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23009 *) ac_try_echo=$ac_try;;
23011 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23012 (eval "$ac_compile") 2>conftest.er1
23014 grep -v '^ *+' conftest.er1 >conftest.err
23016 cat conftest.err >&5
23017 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23018 (exit $ac_status); } && {
23019 test -z "$ac_c_werror_flag" ||
23020 test ! -s conftest.err
23021 } && test -s conftest.$ac_objext; then
23022 ac_cv_type_mbstate_t=yes
23024 echo "$as_me: failed program was
:" >&5
23025 sed 's/^/| /' conftest.$ac_ext >&5
23027 ac_cv_type_mbstate_t=no
23030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23032 { echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
23033 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23034 if test $ac_cv_type_mbstate_t = yes; then
23036 cat >>confdefs.h <<\_ACEOF
23037 #define HAVE_MBSTATE_T 1
23042 cat >>confdefs.h <<\_ACEOF
23043 #define mbstate_t int
23048 { echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
23049 echo $ECHO_N "checking
for C restrict keyword...
$ECHO_C" >&6; }
23050 if test "${emacs_cv_c_restrict+set}" = set; then
23051 echo $ECHO_N "(cached
) $ECHO_C" >&6
23053 cat >conftest.$ac_ext <<_ACEOF
23056 cat confdefs.h >>conftest.$ac_ext
23057 cat >>conftest.$ac_ext <<_ACEOF
23058 /* end confdefs.h. */
23059 void fred (int *restrict x);
23068 rm -f conftest.$ac_objext
23069 if { (ac_try="$ac_compile"
23070 case "(($ac_try" in
23071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23072 *) ac_try_echo=$ac_try;;
23074 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23075 (eval "$ac_compile") 2>conftest.er1
23077 grep -v '^ *+' conftest.er1 >conftest.err
23079 cat conftest.err >&5
23080 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23081 (exit $ac_status); } && {
23082 test -z "$ac_c_werror_flag" ||
23083 test ! -s conftest.err
23084 } && test -s conftest.$ac_objext; then
23085 emacs_cv_c_restrict=yes
23087 echo "$as_me: failed program was
:" >&5
23088 sed 's/^/| /' conftest.$ac_ext >&5
23090 cat >conftest.$ac_ext <<_ACEOF
23093 cat confdefs.h >>conftest.$ac_ext
23094 cat >>conftest.$ac_ext <<_ACEOF
23095 /* end confdefs.h. */
23096 void fred (int *__restrict x);
23105 rm -f conftest.$ac_objext
23106 if { (ac_try="$ac_compile"
23107 case "(($ac_try" in
23108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23109 *) ac_try_echo=$ac_try;;
23111 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23112 (eval "$ac_compile") 2>conftest.er1
23114 grep -v '^ *+' conftest.er1 >conftest.err
23116 cat conftest.err >&5
23117 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23118 (exit $ac_status); } && {
23119 test -z "$ac_c_werror_flag" ||
23120 test ! -s conftest.err
23121 } && test -s conftest.$ac_objext; then
23122 emacs_cv_c_restrict=__restrict
23124 echo "$as_me: failed program was
:" >&5
23125 sed 's/^/| /' conftest.$ac_ext >&5
23127 emacs_cv_c_restrict=no
23130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23135 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
23136 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23137 case "$emacs_cv_c_restrict" in
23138 yes) emacs_restrict=restrict;;
23139 no) emacs_restrict="";;
23140 *) emacs_restrict="$emacs_cv_c_restrict";;
23142 if test "$emacs_restrict" != __restrict; then
23144 cat >>confdefs.h <<_ACEOF
23145 #define __restrict $emacs_restrict
23150 { echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
23151 echo $ECHO_N "checking
for C restricted array declarations...
$ECHO_C" >&6; }
23152 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23153 echo $ECHO_N "(cached
) $ECHO_C" >&6
23155 cat >conftest.$ac_ext <<_ACEOF
23158 cat confdefs.h >>conftest.$ac_ext
23159 cat >>conftest.$ac_ext <<_ACEOF
23160 /* end confdefs.h. */
23161 void fred (int x[__restrict]);
23170 rm -f conftest.$ac_objext
23171 if { (ac_try="$ac_compile"
23172 case "(($ac_try" in
23173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23174 *) ac_try_echo=$ac_try;;
23176 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23177 (eval "$ac_compile") 2>conftest.er1
23179 grep -v '^ *+' conftest.er1 >conftest.err
23181 cat conftest.err >&5
23182 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23183 (exit $ac_status); } && {
23184 test -z "$ac_c_werror_flag" ||
23185 test ! -s conftest.err
23186 } && test -s conftest.$ac_objext; then
23187 emacs_cv_c_restrict_arr=yes
23189 echo "$as_me: failed program was
:" >&5
23190 sed 's/^/| /' conftest.$ac_ext >&5
23192 emacs_cv_c_restrict_arr=no
23195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23197 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
23198 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23199 if test "$emacs_cv_c_restrict_arr" = yes; then
23201 cat >>confdefs.h <<\_ACEOF
23202 #define __restrict_arr __restrict
23209 # Set up the CFLAGS for real compilation, so we can substitute it.
23210 CFLAGS="$REAL_CFLAGS"
23211 CPPFLAGS="$REAL_CPPFLAGS"
23213 #### Find out which version of Emacs this is.
23214 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23215 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
23216 if test x"${version}" = x; then
23217 { { echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&5
23218 echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&2;}
23219 { (exit 1); exit 1; }; }
23222 ### Specify what sort of things we'll be editing into Makefile and config.h.
23223 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23259 cat >>confdefs.h <<_ACEOF
23260 #define EMACS_CONFIGURATION "${canonical}"
23264 cat >>confdefs.h <<_ACEOF
23265 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23269 cat >>confdefs.h <<_ACEOF
23270 #define config_machfile "${machfile}"
23274 cat >>confdefs.h <<_ACEOF
23275 #define config_opsysfile "${opsysfile}"
23279 cat >>confdefs.h <<_ACEOF
23280 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23284 cat >>confdefs.h <<_ACEOF
23285 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23289 cat >>confdefs.h <<_ACEOF
23290 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23294 cat >>confdefs.h <<_ACEOF
23295 #define UNEXEC_SRC ${UNEXEC_SRC}
23299 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23301 cat >>confdefs.h <<\_ACEOF
23302 #define HAVE_X_WINDOWS 1
23306 if test "${USE_X_TOOLKIT}" != "none
" ; then
23308 cat >>confdefs.h <<\_ACEOF
23309 #define USE_X_TOOLKIT 1
23313 if test "${HAVE_X11}" = "yes" ; then
23315 cat >>confdefs.h <<\_ACEOF
23320 if test "${HAVE_XFREE386}" = "yes" ; then
23322 cat >>confdefs.h <<\_ACEOF
23323 #define HAVE_XFREE386 1
23327 if test "${HAVE_MENUS}" = "yes" ; then
23329 cat >>confdefs.h <<\_ACEOF
23330 #define HAVE_MENUS 1
23334 if test "${GNU_MALLOC}" = "yes" ; then
23336 cat >>confdefs.h <<\_ACEOF
23337 #define GNU_MALLOC 1
23341 if test "${REL_ALLOC}" = "yes" ; then
23343 cat >>confdefs.h <<\_ACEOF
23344 #define REL_ALLOC 1
23353 #### Report on what we decided to do.
23354 #### Report GTK as a toolkit, even if it doesn't use Xt.
23355 #### It makes printing result more understandable as using GTK sets
23356 #### toolkit_scroll_bars to yes by default.
23357 if test "${HAVE_GTK}" = "yes"; then
23362 Configured
for \
`${canonical}'.
23364 Where should the build process find the source code? ${srcdir}
23365 What operating system and machine description files should Emacs use?
23366 \`${opsysfile}' and \`${machfile}'
23367 What compiler should emacs be built with?
${CC} ${CFLAGS}
23368 Should Emacs use the GNU version of malloc?
${GNU_MALLOC}${GNU_MALLOC_reason}
23369 Should Emacs use a relocating allocator
for buffers?
${REL_ALLOC}
23370 Should Emacs use mmap
(2) for buffer allocation?
$use_mmap_for_buffers
23371 What window system should Emacs use?
${window_system}
23372 What toolkit should Emacs use?
${USE_X_TOOLKIT}"
23374 if test -n "${x_includes}"; then
23375 echo " Where
do we
find X Windows header files?
${x_includes}"
23377 echo " Where
do we
find X Windows header files? Standard
dirs"
23379 if test -n "${x_libraries}"; then
23380 echo " Where
do we
find X Windows libraries?
${x_libraries}"
23382 echo " Where
do we
find X Windows libraries? Standard
dirs"
23385 echo " Does Emacs use
-lXaw3d?
${HAVE_XAW3D}"
23386 echo " Does Emacs use
-lXpm?
${HAVE_XPM}"
23387 echo " Does Emacs use
-ljpeg?
${HAVE_JPEG}"
23388 echo " Does Emacs use
-ltiff?
${HAVE_TIFF}"
23389 echo " Does Emacs use
-lungif?
${HAVE_GIF}"
23390 echo " Does Emacs use
-lpng?
${HAVE_PNG}"
23391 echo " Does Emacs use X toolkit scroll bars?
${USE_TOOLKIT_SCROLL_BARS}"
23394 if test $USE_XASSERTS = yes; then
23395 echo " Compiling with asserts turned on.
"
23396 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23402 # Remove any trailing slashes in these variables.
23403 test "${prefix}" != NONE &&
23404 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23405 test "${exec_prefix}" != NONE &&
23406 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23408 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23409 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23410 ## from Makefile.c can correctly provide the arg `-traditional' to the
23413 cat >conftest.$ac_ext <<_ACEOF
23416 cat confdefs.h >>conftest.$ac_ext
23417 cat >>conftest.$ac_ext <<_ACEOF
23418 /* end confdefs.h. */
23421 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
23422 $EGREP "yes..
yes" >/dev/null 2>&1; then
23423 CPP_NEED_TRADITIONAL=no
23425 CPP_NEED_TRADITIONAL=yes
23430 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
"
23432 ac_config_commands="$ac_config_commands default
"
23434 cat >confcache <<\_ACEOF
23435 # This file is a shell script that caches the results of configure
23436 # tests run on this system so they can be shared between configure
23437 # scripts and configure runs, see configure's option --config-cache.
23438 # It is not useful on other systems. If it contains results you don't
23439 # want to keep, you may remove or edit it.
23441 # config.status only pays attention to the cache file if you give it
23442 # the --recheck option to rerun configure.
23444 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23445 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23446 # following values.
23450 # The following way of writing the cache mishandles newlines in values,
23451 # but we know of no workaround that is simple, portable, and efficient.
23452 # So, we kill variables containing newlines.
23453 # Ultrix sh set writes to stderr and can't be redirected directly,
23454 # and sets the high bit in the cache file unless we assign to the vars.
23456 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23457 eval ac_val=\$$ac_var
23461 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
23462 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
23465 _ | IFS | as_nl) ;; #(
23466 *) $as_unset $ac_var ;;
23472 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23473 *${as_nl}ac_space=\ *)
23474 # `set' does not quote correctly, so add quotes (double-quote
23475 # substitution turns \\\\ into \\, and sed turns \\ into \).
23478 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
23481 # `set' quotes correctly as required by POSIX, so do not add quotes.
23482 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
23491 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23493 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23495 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23496 if test -w "$cache_file"; then
23497 test "x
$cache_file" != "x
/dev
/null
" &&
23498 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
23499 echo "$as_me: updating cache
$cache_file" >&6;}
23500 cat confcache >$cache_file
23502 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
23503 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
23508 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
23509 # Let make expand exec_prefix.
23510 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
23512 DEFS=-DHAVE_CONFIG_H
23516 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
23517 # 1. Remove the extension, and $U if already installed.
23518 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23519 ac_i=`echo "$ac_i" | sed "$ac_script"`
23520 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23521 # will be set to the directory where LIBOBJS objects are built.
23522 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
23523 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
23525 LIBOBJS=$ac_libobjs
23527 LTLIBOBJS=$ac_ltlibobjs
23531 : ${CONFIG_STATUS=./config.status}
23532 ac_clean_files_save=$ac_clean_files
23533 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23534 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
23535 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
23536 cat >$CONFIG_STATUS <<_ACEOF
23538 # Generated by $as_me.
23539 # Run this file to recreate the current configuration.
23540 # Compiler output produced by configure, useful for debugging
23541 # configure, is in config.log if it exists.
23544 ac_cs_recheck=false
23546 SHELL=\${CONFIG_SHELL-$SHELL}
23549 cat >>$CONFIG_STATUS <<\_ACEOF
23550 ## --------------------- ##
23551 ## M4sh Initialization. ##
23552 ## --------------------- ##
23554 # Be more Bourne compatible
23555 DUALCASE=1; export DUALCASE # for MKS sh
23556 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23559 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23560 # is contrary to our usage. Disable this feature.
23561 alias -g '${1+"$@"}'='"$@
"'
23562 setopt NO_GLOB_SUBST
23564 case `(set -o) 2>/dev/null` in
23565 *posix*) set -o posix ;;
23574 # Avoid depending upon Character Ranges.
23575 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23576 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23577 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23578 as_cr_digits='0123456789'
23579 as_cr_alnum=$as_cr_Letters$as_cr_digits
23581 # The user is always right.
23582 if test "${PATH_SEPARATOR+set}" != set; then
23583 echo "#! /bin/sh" >conf$$.sh
23584 echo "exit 0" >>conf$$.sh
23586 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
23594 # Support unset when possible.
23595 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
23603 # We need space, tab and new line, in precisely that order. Quoting is
23604 # there to prevent editors from complaining about space-tab.
23605 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23606 # splitting by setting IFS to empty value.)
23611 # Find who we are. Look in the path if we contain no directory separator.
23613 *[\\/]* ) as_myself
=$0 ;;
23614 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23615 for as_dir
in $PATH
23618 test -z "$as_dir" && as_dir
=.
23619 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
23625 # We did not find ourselves, most probably we were run as `sh COMMAND'
23626 # in which case we are not to be found in the path.
23627 if test "x$as_myself" = x
; then
23630 if test ! -f "$as_myself"; then
23631 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23632 { (exit 1); exit 1; }
23635 # Work around bugs in pre-3.0 UWIN ksh.
23636 for as_var
in ENV MAIL MAILPATH
23637 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
23645 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23646 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23647 LC_TELEPHONE LC_TIME
23649 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23650 eval $as_var=C
; export $as_var
23652 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
23656 # Required to use basename.
23657 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
23658 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
23664 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23665 as_basename
=basename
23671 # Name of the executable.
23672 as_me
=`$as_basename -- "$0" ||
23673 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23674 X"$0" : 'X\(//\)$' \| \
23675 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23677 sed '/^.*\/\([^/][^/]*\)\/*$/{
23696 as_lineno_1
=$LINENO
23697 as_lineno_2
=$LINENO
23698 test "x$as_lineno_1" != "x$as_lineno_2" &&
23699 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
23701 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23702 # uniformly replaced by the line number. The first 'sed' inserts a
23703 # line-number line after each line using $LINENO; the second 'sed'
23704 # does the real work. The second script uses 'N' to pair each
23705 # line-number line with the line containing $LINENO, and appends
23706 # trailing '-' during substitution so that $LINENO is not a special
23707 # case at line end.
23708 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23709 # scripts with optimization help from Paolo Bonzini. Blame Lee
23710 # E. McMahon (1931-1989) for sed's syntax. :-)
23722 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23725 ' >$as_me.lineno
&&
23726 chmod +x
"$as_me.lineno" ||
23727 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23728 { (exit 1); exit 1; }; }
23730 # Don't try to exec as it changes $[0], causing all sort of problems
23731 # (the dirname of $[0] is not the place where we might find the
23732 # original and so on. Autoconf is especially sensitive to this).
23733 .
"./$as_me.lineno"
23734 # Exit status is that of the last command.
23739 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
23745 ECHO_C
= ECHO_N
= ECHO_T
=
23746 case `echo -n x` in
23748 case `echo 'x\c'` in
23749 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
23756 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
23757 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
23763 rm -f conf$$ conf$$.exe conf$$.
file
23764 if test -d conf$$.dir
; then
23765 rm -f conf$$.dir
/conf$$.
file
23771 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
23773 # ... but there are two gotchas:
23774 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23775 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23776 # In both cases, we have to default to `cp -p'.
23777 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
23779 elif ln conf$$.
file conf$$
2>/dev
/null
; then
23784 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
23785 rmdir conf$$.dir
2>/dev
/null
23787 if mkdir
-p .
2>/dev
/null
; then
23790 test -d .
/-p && rmdir .
/-p
23794 if test -x / >/dev
/null
2>&1; then
23795 as_test_x
='test -x'
23797 if ls -dL / >/dev
/null
2>&1; then
23804 if test -d "$1"; then
23810 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23811 ???[sx]*):;;*)false;;esac;fi
23815 as_executable_p
=$as_test_x
23817 # Sed expression to map a string onto a valid CPP name.
23818 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23820 # Sed expression to map a string onto a valid variable name.
23821 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23826 # Save the log message, to keep $[0] and so on meaningful, and to
23827 # report actual input values of CONFIG_FILES etc. instead of their
23828 # values after options handling.
23830 This file was extended by $as_me, which was
23831 generated by GNU Autoconf 2.61. Invocation command line was
23833 CONFIG_FILES = $CONFIG_FILES
23834 CONFIG_HEADERS = $CONFIG_HEADERS
23835 CONFIG_LINKS = $CONFIG_LINKS
23836 CONFIG_COMMANDS = $CONFIG_COMMANDS
23839 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23844 cat >>$CONFIG_STATUS <<_ACEOF
23845 # Files that config.status was made for.
23846 config_files="$ac_config_files"
23847 config_headers="$ac_config_headers"
23848 config_commands="$ac_config_commands"
23852 cat >>$CONFIG_STATUS <<\_ACEOF
23854 \`$as_me' instantiates files from templates according to the
23855 current configuration.
23857 Usage: $0 [OPTIONS] [FILE]...
23859 -h, --help print this help, then exit
23860 -V, --version print version number and configuration settings, then exit
23861 -q, --quiet do not print progress messages
23862 -d, --debug don't remove temporary files
23863 --recheck update $as_me by reconfiguring in the same conditions
23864 --file=FILE[:TEMPLATE]
23865 instantiate the configuration file FILE
23866 --header=FILE[:TEMPLATE]
23867 instantiate the configuration header FILE
23869 Configuration files:
23872 Configuration headers:
23875 Configuration commands:
23878 Report bugs to <bug-autoconf@gnu.org>."
23881 cat >>$CONFIG_STATUS <<_ACEOF
23884 configured by $0, generated by GNU Autoconf 2.61,
23885 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23887 Copyright (C) 2006 Free Software Foundation, Inc.
23888 This config.status script is free software; the Free Software Foundation
23889 gives unlimited permission to copy, distribute and modify it."
23896 cat >>$CONFIG_STATUS <<\_ACEOF
23897 # If no file are specified by the user, then we need to provide default
23898 # value. By we need to know if files were specified by the user.
23904 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
23905 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
23916 # Handling of the options.
23917 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
23919 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
23920 echo "$ac_cs_version"; exit ;;
23921 --debug |
--debu |
--deb |
--de |
--d |
-d )
23923 --file |
--fil |
--fi |
--f )
23925 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
23926 ac_need_defaults
=false
;;
23927 --header |
--heade |
--head |
--hea )
23929 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
23930 ac_need_defaults
=false
;;
23932 # Conflict between --help and --header
23933 { echo "$as_me: error: ambiguous option: $1
23934 Try \`$0 --help' for more information." >&2
23935 { (exit 1); exit 1; }; };;
23936 --help |
--hel |
-h )
23937 echo "$ac_cs_usage"; exit ;;
23938 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
23939 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
23942 # This is an error.
23943 -*) { echo "$as_me: error: unrecognized option: $1
23944 Try \`$0 --help' for more information." >&2
23945 { (exit 1); exit 1; }; } ;;
23947 *) ac_config_targets
="$ac_config_targets $1"
23948 ac_need_defaults
=false
;;
23954 ac_configure_extra_args
=
23956 if $ac_cs_silent; then
23958 ac_configure_extra_args
="$ac_configure_extra_args --silent"
23962 cat >>$CONFIG_STATUS <<_ACEOF
23963 if \$ac_cs_recheck; then
23964 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23965 CONFIG_SHELL=$SHELL
23966 export CONFIG_SHELL
23967 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23971 cat >>$CONFIG_STATUS <<\_ACEOF
23975 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23976 ## Running $as_me. ##
23982 cat >>$CONFIG_STATUS <<_ACEOF
23986 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
23990 cat >>$CONFIG_STATUS <<\_ACEOF
23992 # Handling of arguments.
23993 for ac_config_target
in $ac_config_targets
23995 case $ac_config_target in
23996 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23997 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
23998 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
23999 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
24000 "man/Makefile") CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
24001 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
24002 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24003 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
24004 "lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
24005 "lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
24006 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
24007 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
24009 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24010 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24011 { (exit 1); exit 1; }; };;
24016 # If the user did not use the arguments to specify the items to instantiate,
24017 # then the envvar interface is used. Set only those that are not.
24018 # We use the long form for the default assignment because of an extremely
24019 # bizarre bug on SunOS 4.1.3.
24020 if $ac_need_defaults; then
24021 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
24022 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
24023 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
24026 # Have a temporary directory for convenience. Make it in the build tree
24027 # simply because there is no reason against having it here, and in addition,
24028 # creating and moving files from /tmp can sometimes cause problems.
24029 # Hook for its removal unless debugging.
24030 # Note that there is a small window in which the directory will not be cleaned:
24031 # after its creation but before its name has been assigned to `$tmp'.
24035 trap 'exit_status=$?
24036 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24038 trap '{ (exit 1); exit 1; }' 1 2 13 15
24040 # Create a (secure) tmp directory for tmp files.
24043 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24044 test -n "$tmp" && test -d "$tmp"
24047 tmp
=.
/conf$$
-$RANDOM
24048 (umask 077 && mkdir
"$tmp")
24051 echo "$me: cannot create a temporary directory in ." >&2
24052 { (exit 1); exit 1; }
24056 # Set up the sed scripts for CONFIG_FILES section.
24059 # No need to generate the scripts if there are no CONFIG_FILES.
24060 # This happens for instance when ./config.status config.h
24061 if test -n "$CONFIG_FILES"; then
24068 for ac_last_try
in false false false false false
:; do
24069 cat >conf$
$subs.
sed <<_ACEOF
24070 SHELL!$SHELL$ac_delim
24071 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24072 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24073 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24074 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24075 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24076 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24077 exec_prefix!$exec_prefix$ac_delim
24078 prefix!$prefix$ac_delim
24079 program_transform_name!$program_transform_name$ac_delim
24080 bindir!$bindir$ac_delim
24081 sbindir!$sbindir$ac_delim
24082 libexecdir!$libexecdir$ac_delim
24083 datarootdir!$datarootdir$ac_delim
24084 datadir!$datadir$ac_delim
24085 sysconfdir!$sysconfdir$ac_delim
24086 sharedstatedir!$sharedstatedir$ac_delim
24087 localstatedir!$localstatedir$ac_delim
24088 includedir!$includedir$ac_delim
24089 oldincludedir!$oldincludedir$ac_delim
24090 docdir!$docdir$ac_delim
24091 infodir!$infodir$ac_delim
24092 htmldir!$htmldir$ac_delim
24093 dvidir!$dvidir$ac_delim
24094 pdfdir!$pdfdir$ac_delim
24095 psdir!$psdir$ac_delim
24096 libdir!$libdir$ac_delim
24097 localedir!$localedir$ac_delim
24098 mandir!$mandir$ac_delim
24099 DEFS!$DEFS$ac_delim
24100 ECHO_C!$ECHO_C$ac_delim
24101 ECHO_N!$ECHO_N$ac_delim
24102 ECHO_T!$ECHO_T$ac_delim
24103 LIBS!$LIBS$ac_delim
24104 build_alias!$build_alias$ac_delim
24105 host_alias!$host_alias$ac_delim
24106 target_alias!$target_alias$ac_delim
24107 MAINT!$MAINT$ac_delim
24108 build!$build$ac_delim
24109 build_cpu!$build_cpu$ac_delim
24110 build_vendor!$build_vendor$ac_delim
24111 build_os!$build_os$ac_delim
24112 host!$host$ac_delim
24113 host_cpu!$host_cpu$ac_delim
24114 host_vendor!$host_vendor$ac_delim
24115 host_os!$host_os$ac_delim
24117 CFLAGS!$CFLAGS$ac_delim
24118 LDFLAGS!$LDFLAGS$ac_delim
24119 CPPFLAGS!$CPPFLAGS$ac_delim
24120 ac_ct_CC!$ac_ct_CC$ac_delim
24121 EXEEXT!$EXEEXT$ac_delim
24122 OBJEXT!$OBJEXT$ac_delim
24124 GREP!$GREP$ac_delim
24125 EGREP!$EGREP$ac_delim
24126 LN_S!$LN_S$ac_delim
24127 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24128 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24129 INSTALL_DATA!$INSTALL_DATA$ac_delim
24130 RANLIB!$RANLIB$ac_delim
24131 INSTALL_INFO!$INSTALL_INFO$ac_delim
24132 GZIP_PROG!$GZIP_PROG$ac_delim
24133 LIBSOUND!$LIBSOUND$ac_delim
24134 PKG_CONFIG!$PKG_CONFIG$ac_delim
24135 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24136 ALSA_LIBS!$ALSA_LIBS$ac_delim
24137 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24138 SET_MAKE!$SET_MAKE$ac_delim
24139 XMKMF!$XMKMF$ac_delim
24140 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24141 GTK_LIBS!$GTK_LIBS$ac_delim
24142 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24143 XFT_LIBS!$XFT_LIBS$ac_delim
24144 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
24145 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
24146 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
24147 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
24148 HAVE_LIBOTF!$HAVE_LIBOTF$ac_delim
24149 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
24150 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
24151 ALLOCA!$ALLOCA$ac_delim
24152 liblockfile!$liblockfile$ac_delim
24153 LIBOBJS!$LIBOBJS$ac_delim
24154 NEED_SETGID!$NEED_SETGID$ac_delim
24155 KMEM_GROUP!$KMEM_GROUP$ac_delim
24156 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24157 GETOPT_H!$GETOPT_H$ac_delim
24158 GETOPTOBJS!$GETOPTOBJS$ac_delim
24159 version!$version$ac_delim
24160 configuration!$configuration$ac_delim
24161 canonical!$canonical$ac_delim
24162 srcdir!$srcdir$ac_delim
24163 lispdir!$lispdir$ac_delim
24164 locallisppath!$locallisppath$ac_delim
24165 lisppath!$lisppath$ac_delim
24166 x_default_search_path!$x_default_search_path$ac_delim
24169 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24171 elif $ac_last_try; then
24172 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24173 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24174 { (exit 1); exit 1; }; }
24176 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24180 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24181 if test -n "$ac_eof"; then
24182 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24183 ac_eof
=`expr $ac_eof + 1`
24186 cat >>$CONFIG_STATUS <<_ACEOF
24187 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24188 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24191 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24192 s/^/s,@/; s/!/@,|#_!!_#|/
24195 s/'"$ac_delim"'$/,g/; t
24197 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24198 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24199 rm -f conf$
$subs.
sed
24200 cat >>$CONFIG_STATUS <<_ACEOF
24206 for ac_last_try
in false false false false false
:; do
24207 cat >conf$
$subs.
sed <<_ACEOF
24208 etcdir!$etcdir$ac_delim
24209 archlibdir!$archlibdir$ac_delim
24210 bitmapdir!$bitmapdir$ac_delim
24211 gamedir!$gamedir$ac_delim
24212 gameuser!$gameuser$ac_delim
24213 c_switch_system!$c_switch_system$ac_delim
24214 c_switch_machine!$c_switch_machine$ac_delim
24215 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
24216 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
24217 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
24218 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
24219 machfile!$machfile$ac_delim
24220 opsysfile!$opsysfile$ac_delim
24221 carbon_appdir!$carbon_appdir$ac_delim
24222 LTLIBOBJS!$LTLIBOBJS$ac_delim
24225 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 15; then
24227 elif $ac_last_try; then
24228 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24229 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24230 { (exit 1); exit 1; }; }
24232 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24236 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24237 if test -n "$ac_eof"; then
24238 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24239 ac_eof
=`expr $ac_eof + 1`
24242 cat >>$CONFIG_STATUS <<_ACEOF
24243 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24244 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24247 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24248 s/^/s,@/; s/!/@,|#_!!_#|/
24251 s/'"$ac_delim"'$/,g/; t
24253 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24254 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24255 rm -f conf$
$subs.
sed
24256 cat >>$CONFIG_STATUS <<_ACEOF
24263 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24264 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24265 # trailing colons and then remove the whole line if VPATH becomes empty
24266 # (actually we leave an empty line to preserve line numbers).
24267 if test "x$srcdir" = x.
; then
24268 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
24269 s/:*\$(srcdir):*/:/
24270 s/:*\${srcdir}:*/:/
24272 s/^\([^=]*=[ ]*\):*/\1/
24278 cat >>$CONFIG_STATUS <<\_ACEOF
24279 fi # test -n "$CONFIG_FILES"
24282 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
24285 :[FHLC
]) ac_mode
=$ac_tag; continue;;
24287 case $ac_mode$ac_tag in
24289 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24290 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24291 { (exit 1); exit 1; }; };;
24292 :[FH
]-) ac_tag
=-:-;;
24293 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
24310 -) ac_f
="$tmp/stdin";;
24311 *) # Look for the file first in the build tree, then in the source tree
24312 # (if the path is not absolute). The absolute path cannot be DOS-style,
24313 # because $ac_f cannot contain `:'.
24317 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
24319 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24320 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24321 { (exit 1); exit 1; }; };;
24323 ac_file_inputs
="$ac_file_inputs $ac_f"
24326 # Let's still pretend it is `configure' which instantiates (i.e., don't
24327 # use $as_me), people would be surprised to read:
24328 # /* config.h. Generated by config.status. */
24329 configure_input
="Generated from "`IFS=:
24330 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24331 if test x
"$ac_file" != x-
; then
24332 configure_input
="$ac_file. $configure_input"
24333 { echo "$as_me:$LINENO: creating $ac_file" >&5
24334 echo "$as_me: creating $ac_file" >&6;}
24338 *:-:* |
*:-) cat >"$tmp/stdin";;
24343 ac_dir
=`$as_dirname -- "$ac_file" ||
24344 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24345 X"$ac_file" : 'X\(//\)[^/]' \| \
24346 X"$ac_file" : 'X\(//\)$' \| \
24347 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24353 /^X\(\/\/\)[^/].*/{
24368 -*) as_dir
=.
/$as_dir;;
24370 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
24374 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24375 *) as_qdir
=$as_dir;;
24377 as_dirs
="'$as_qdir' $as_dirs"
24378 as_dir
=`$as_dirname -- "$as_dir" ||
24379 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24380 X"$as_dir" : 'X\(//\)[^/]' \| \
24381 X"$as_dir" : 'X\(//\)$' \| \
24382 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24384 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24388 /^X\(\/\/\)[^/].*/{
24401 test -d "$as_dir" && break
24403 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
24404 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24405 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24406 { (exit 1); exit 1; }; }; }
24410 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24412 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24413 # A ".." for each directory in $ac_dir_suffix.
24414 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24415 case $ac_top_builddir_sub in
24416 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24417 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
24420 ac_abs_top_builddir
=$ac_pwd
24421 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
24422 # for backward compatibility:
24423 ac_top_builddir
=$ac_top_build_prefix
24426 .
) # We are building in place.
24428 ac_top_srcdir
=$ac_top_builddir_sub
24429 ac_abs_top_srcdir
=$ac_pwd ;;
24430 [\\/]* | ?
:[\\/]* ) # Absolute name.
24431 ac_srcdir
=$srcdir$ac_dir_suffix;
24432 ac_top_srcdir
=$srcdir
24433 ac_abs_top_srcdir
=$srcdir ;;
24434 *) # Relative name.
24435 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
24436 ac_top_srcdir
=$ac_top_build_prefix$srcdir
24437 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
24439 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
24449 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
24450 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
24454 cat >>$CONFIG_STATUS <<\_ACEOF
24455 # If the template does not know about datarootdir, expand it.
24456 # FIXME: This hack should be removed a few years after 2.60.
24457 ac_datarootdir_hack
=; ac_datarootdir_seen
=
24459 case `sed -n '/datarootdir/ {
24468 ' $ac_file_inputs` in
24469 *datarootdir
*) ac_datarootdir_seen
=yes;;
24470 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
24471 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24472 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24474 cat >>$CONFIG_STATUS <<_ACEOF
24475 ac_datarootdir_hack='
24476 s&@datadir@&$datadir&g
24477 s&@docdir@&$docdir&g
24478 s&@infodir@&$infodir&g
24479 s&@localedir@&$localedir&g
24480 s&@mandir@&$mandir&g
24481 s&\\\${datarootdir}&$datarootdir&g' ;;
24485 # Neutralize VPATH when `$srcdir' = `.'.
24486 # Shell code in configure.ac might set extrasub.
24487 # FIXME: do we really want to maintain this feature?
24488 cat >>$CONFIG_STATUS <<_ACEOF
24492 cat >>$CONFIG_STATUS <<\_ACEOF
24494 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
24495 s
&@configure_input@
&$configure_input&;t t
24496 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
24497 s
&@srcdir@
&$ac_srcdir&;t t
24498 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
24499 s
&@top_srcdir@
&$ac_top_srcdir&;t t
24500 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
24501 s
&@builddir@
&$ac_builddir&;t t
24502 s
&@abs_builddir@
&$ac_abs_builddir&;t t
24503 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
24504 s
&@INSTALL@
&$ac_INSTALL&;t t
24505 $ac_datarootdir_hack
24506 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
24508 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24509 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
24510 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
24511 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
24512 which seems to be undefined. Please make sure it is defined." >&5
24513 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
24514 which seems to be undefined. Please make sure it is defined." >&2;}
24518 -) cat "$tmp/out"; rm -f "$tmp/out";;
24519 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24528 # Transform confdefs.h into a sed script `conftest.defines', that
24529 # substitutes the proper values into config.h.in to produce config.h.
24530 rm -f conftest.defines conftest.
tail
24531 # First, append a space to every undef/define line, to ease matching.
24532 echo 's/$/ /' >conftest.defines
24533 # Then, protect against being on the right side of a sed subst, or in
24534 # an unquoted here document, in config.status. If some macros were
24535 # called several times there might be several #defines for the same
24536 # symbol, which is useless. But do not sort them, since the last
24537 # AC_DEFINE must be honored.
24538 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
24539 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24540 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24541 # PARAMS is the parameter list in the macro definition--in most cases, it's
24542 # just an empty string.
24543 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24544 ac_dB
='\\)[ (].*,\\1define\\2'
24552 s/^[ ]*#[ ]*define[ ][ ]*//
24557 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24558 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24559 ' >>conftest.defines
24561 # Remove the space that was appended to ease matching.
24562 # Then replace #undef with comments. This is necessary, for
24563 # example, in the case of _POSIX_SOURCE, which is predefined and required
24564 # on some systems where configure will not decide to define it.
24565 # (The regexp can be short, since the line contains either #define or #undef.)
24567 s,^[ #]*u.*,/* & */,' >>conftest.defines
24569 # Break up conftest.defines:
24570 ac_max_sed_lines
=50
24572 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24573 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24574 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24576 ac_in
='$ac_file_inputs'
24577 ac_out
='"$tmp/out1"'
24578 ac_nxt
='"$tmp/out2"'
24582 # Write a here document:
24583 cat >>$CONFIG_STATUS <<_ACEOF
24584 # First, check the format of the line:
24585 cat >"\$tmp/defines.sed" <<\\CEOF
24586 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24587 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24591 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
24593 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24594 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
24595 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
24596 grep . conftest.
tail >/dev
/null ||
break
24597 rm -f conftest.defines
24598 mv conftest.
tail conftest.defines
24600 rm -f conftest.defines conftest.
tail
24602 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24603 cat >>$CONFIG_STATUS <<\_ACEOF
24604 if test x
"$ac_file" != x-
; then
24605 echo "/* $configure_input */" >"$tmp/config.h"
24606 cat "$ac_result" >>"$tmp/config.h"
24607 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
24608 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24609 echo "$as_me: $ac_file is unchanged" >&6;}
24612 mv "$tmp/config.h" $ac_file
24615 echo "/* $configure_input */"
24621 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24622 echo "$as_me: executing $ac_file commands" >&6;}
24627 case $ac_file$ac_mode in
24630 ### Make the necessary directories, if they don't exist.
24631 for dir
in etc lisp
; do
24632 test -d ${dir} || mkdir
${dir}
24635 # Build src/Makefile from ${srcdir}/src/Makefile.c
24636 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24637 # This must be done after src/config.h is built, since we rely on that file.
24639 # Now get this: Some word that is part of the ${srcdir} directory name
24640 # or the ${configuration} value might, just might, happen to be an
24641 # identifier like `sun4' or `i386' or something, and be predefined by
24642 # the C preprocessor to some helpful value like 1, or maybe the empty
24643 # string. Needless to say consequent macro substitutions are less
24644 # than conducive to the makefile finding the correct directory.
24645 undefs
="`echo $top_srcdir $configuration $canonical |
24646 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24647 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24650 echo creating src
/epaths.h
24651 ${MAKE-make} epaths-force
24653 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24654 # `..' to `. .' unless invoked with -traditional
24656 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
24657 CPPFLAGS
="$CPPFLAGS -traditional"
24660 echo creating lib-src
/Makefile
24662 rm -f junk.c junk1.c junk2.c
24663 sed -e '/start of cpp stuff/q' \
24664 < Makefile.c
> junk1.c
24665 sed -e '1,/start of cpp stuff/d'\
24666 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24667 < Makefile.c
> junk.c
24668 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24669 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24670 cat junk1.c junk2.c
> Makefile.new
24671 rm -f junk.c junk1.c junk2.c
24672 chmod 444 Makefile.new
24673 mv -f Makefile.new Makefile
24676 echo creating src
/Makefile
24678 rm -f junk.c junk1.c junk2.c
24679 sed -e '/start of cpp stuff/q' \
24680 < Makefile.c
> junk1.c
24681 sed -e '1,/start of cpp stuff/d'\
24682 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24683 < Makefile.c
> junk.c
24684 if test -f ${srcdir}/admin
/unidata
/UnicodeData.txt
; then
24685 CPPFLAGS
="$CPPFLAGS -DHAVE_UNIDATA"
24687 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24688 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24689 cat junk1.c junk2.c
> Makefile.new
24690 rm -f junk.c junk1.c junk2.c
24691 chmod 444 Makefile.new
24692 mv -f Makefile.new Makefile
24695 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
24696 echo creating src
/.gdbinit
24697 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
24700 # This is how we know whether to re-run configure in certain cases.
24701 touch src
/config.stamp
24709 { (exit 0); exit 0; }
24711 chmod +x
$CONFIG_STATUS
24712 ac_clean_files
=$ac_clean_files_save
24715 # configure is writing to config.log, and then calls config.status.
24716 # config.status does its own redirection, appending to config.log.
24717 # Unfortunately, on DOS this fails, as config.log is still kept open
24718 # by configure, so config.status won't be able to write to it; its
24719 # output is simply discarded. So we exec the FD to /dev/null,
24720 # effectively closing config.log, so it can be properly (re)opened and
24721 # appended to by config.status. When coming back to configure, we
24722 # need to make the FD available again.
24723 if test "$no_create" != yes; then
24725 ac_config_status_args
=
24726 test "$silent" = yes &&
24727 ac_config_status_args
="$ac_config_status_args --quiet"
24729 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
24731 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24732 # would make configure fail if this is the last instruction.
24733 $ac_cs_success ||
{ (exit 1); exit 1; }