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
715 x_default_search_path
732 ac_precious_vars
='build_alias
744 # Initialize some variables set by options.
746 ac_init_version
=false
747 # The variables have the same names as the options, with
748 # dashes changed to underlines.
756 program_transform_name
=s
,x
,x
,
764 # Installation directory options.
765 # These are left unexpanded so users can "make install exec_prefix=/foo"
766 # and all the variables that are supposed to be based on exec_prefix
767 # by default will actually change.
768 # Use braces instead of parens because sh, perl, etc. also accept them.
769 # (The list follows the same order as the GNU Coding Standards.)
770 bindir
='${exec_prefix}/bin'
771 sbindir
='${exec_prefix}/sbin'
772 libexecdir
='${exec_prefix}/libexec'
773 datarootdir
='${prefix}/share'
774 datadir
='${datarootdir}'
775 sysconfdir
='${prefix}/etc'
776 sharedstatedir
='${prefix}/com'
777 localstatedir
='${prefix}/var'
778 includedir
='${prefix}/include'
779 oldincludedir
='/usr/include'
780 docdir
='${datarootdir}/doc/${PACKAGE}'
781 infodir
='${datarootdir}/info'
786 libdir
='${exec_prefix}/lib'
787 localedir
='${datarootdir}/locale'
788 mandir
='${datarootdir}/man'
794 # If the previous option needs an argument, assign it.
795 if test -n "$ac_prev"; then
796 eval $ac_prev=\
$ac_option
802 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
806 # Accept the important Cygnus configure options, so we can diagnose typos.
808 case $ac_dashdash$ac_option in
812 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
814 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
817 -build |
--build |
--buil |
--bui |
--bu)
818 ac_prev
=build_alias
;;
819 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
820 build_alias
=$ac_optarg ;;
822 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
823 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
824 ac_prev
=cache_file
;;
825 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
826 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
827 cache_file
=$ac_optarg ;;
830 cache_file
=config.cache
;;
832 -datadir |
--datadir |
--datadi |
--datad)
834 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
835 datadir
=$ac_optarg ;;
837 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
838 |
--dataroo |
--dataro |
--datar)
839 ac_prev
=datarootdir
;;
840 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
841 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
842 datarootdir
=$ac_optarg ;;
844 -disable-* |
--disable-*)
845 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
846 # Reject names that are not valid shell variable names.
847 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
848 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
849 { (exit 1); exit 1; }; }
850 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
851 eval enable_
$ac_feature=no
;;
853 -docdir |
--docdir |
--docdi |
--doc |
--do)
855 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
858 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
860 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
863 -enable-* |
--enable-*)
864 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
865 # Reject names that are not valid shell variable names.
866 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
867 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
868 { (exit 1); exit 1; }; }
869 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
870 eval enable_
$ac_feature=\
$ac_optarg ;;
872 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
873 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
874 |
--exec |
--exe |
--ex)
875 ac_prev
=exec_prefix
;;
876 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
877 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
878 |
--exec=* |
--exe=* |
--ex=*)
879 exec_prefix
=$ac_optarg ;;
881 -gas |
--gas |
--ga |
--g)
882 # Obsolete; use --with-gas.
885 -help |
--help |
--hel |
--he |
-h)
887 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
888 ac_init_help
=recursive
;;
889 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
890 ac_init_help
=short
;;
892 -host |
--host |
--hos |
--ho)
893 ac_prev
=host_alias
;;
894 -host=* |
--host=* |
--hos=* |
--ho=*)
895 host_alias
=$ac_optarg ;;
897 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
899 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
901 htmldir
=$ac_optarg ;;
903 -includedir |
--includedir |
--includedi |
--included |
--include \
904 |
--includ |
--inclu |
--incl |
--inc)
905 ac_prev
=includedir
;;
906 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
907 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
908 includedir
=$ac_optarg ;;
910 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
912 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
913 infodir
=$ac_optarg ;;
915 -libdir |
--libdir |
--libdi |
--libd)
917 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
920 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
921 |
--libexe |
--libex |
--libe)
922 ac_prev
=libexecdir
;;
923 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
924 |
--libexe=* |
--libex=* |
--libe=*)
925 libexecdir
=$ac_optarg ;;
927 -localedir |
--localedir |
--localedi |
--localed |
--locale)
929 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
930 localedir
=$ac_optarg ;;
932 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
933 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
934 ac_prev
=localstatedir
;;
935 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
936 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
937 localstatedir
=$ac_optarg ;;
939 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
941 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
945 # Obsolete; use --without-fp.
948 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
949 |
--no-cr |
--no-c |
-n)
952 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
953 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
956 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
957 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
958 |
--oldin |
--oldi |
--old |
--ol |
--o)
959 ac_prev
=oldincludedir
;;
960 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
961 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
962 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
963 oldincludedir
=$ac_optarg ;;
965 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
967 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
970 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
971 |
--program-pre |
--program-pr |
--program-p)
972 ac_prev
=program_prefix
;;
973 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
974 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
975 program_prefix
=$ac_optarg ;;
977 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
978 |
--program-suf |
--program-su |
--program-s)
979 ac_prev
=program_suffix
;;
980 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
981 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
982 program_suffix
=$ac_optarg ;;
984 -program-transform-name |
--program-transform-name \
985 |
--program-transform-nam |
--program-transform-na \
986 |
--program-transform-n |
--program-transform- \
987 |
--program-transform |
--program-transfor \
988 |
--program-transfo |
--program-transf \
989 |
--program-trans |
--program-tran \
990 |
--progr-tra |
--program-tr |
--program-t)
991 ac_prev
=program_transform_name
;;
992 -program-transform-name=* |
--program-transform-name=* \
993 |
--program-transform-nam=* |
--program-transform-na=* \
994 |
--program-transform-n=* |
--program-transform-=* \
995 |
--program-transform=* |
--program-transfor=* \
996 |
--program-transfo=* |
--program-transf=* \
997 |
--program-trans=* |
--program-tran=* \
998 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
999 program_transform_name
=$ac_optarg ;;
1001 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1003 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1004 pdfdir
=$ac_optarg ;;
1006 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1008 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1011 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1012 |
-silent |
--silent |
--silen |
--sile |
--sil)
1015 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1017 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1019 sbindir
=$ac_optarg ;;
1021 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1022 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1023 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1025 ac_prev
=sharedstatedir
;;
1026 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1027 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1028 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1030 sharedstatedir
=$ac_optarg ;;
1032 -site |
--site |
--sit)
1034 -site=* |
--site=* |
--sit=*)
1037 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1039 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1040 srcdir
=$ac_optarg ;;
1042 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1043 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1044 ac_prev
=sysconfdir
;;
1045 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1046 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1047 sysconfdir
=$ac_optarg ;;
1049 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1050 ac_prev
=target_alias
;;
1051 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1052 target_alias
=$ac_optarg ;;
1054 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1057 -version |
--version |
--versio |
--versi |
--vers |
-V)
1058 ac_init_version
=: ;;
1061 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1062 # Reject names that are not valid shell variable names.
1063 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1064 { echo "$as_me: error: invalid package name: $ac_package" >&2
1065 { (exit 1); exit 1; }; }
1066 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1067 eval with_
$ac_package=\
$ac_optarg ;;
1069 -without-* |
--without-*)
1070 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1071 # Reject names that are not valid shell variable names.
1072 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1073 { echo "$as_me: error: invalid package name: $ac_package" >&2
1074 { (exit 1); exit 1; }; }
1075 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1076 eval with_
$ac_package=no
;;
1079 # Obsolete; use --with-x.
1082 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1083 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1084 ac_prev
=x_includes
;;
1085 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1086 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1087 x_includes
=$ac_optarg ;;
1089 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1090 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1091 ac_prev
=x_libraries
;;
1092 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1093 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1094 x_libraries
=$ac_optarg ;;
1096 -*) { echo "$as_me: error: unrecognized option: $ac_option
1097 Try \`$0 --help' for more information." >&2
1098 { (exit 1); exit 1; }; }
1102 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1103 # Reject names that are not valid shell variable names.
1104 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1105 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1106 { (exit 1); exit 1; }; }
1107 eval $ac_envvar=\
$ac_optarg
1108 export $ac_envvar ;;
1111 # FIXME: should be removed in autoconf 3.0.
1112 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1113 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1114 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1115 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1121 if test -n "$ac_prev"; then
1122 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1123 { echo "$as_me: error: missing argument to $ac_option" >&2
1124 { (exit 1); exit 1; }; }
1127 # Be sure to have absolute directory names.
1128 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1129 datadir sysconfdir sharedstatedir localstatedir includedir \
1130 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1131 libdir localedir mandir
1133 eval ac_val
=\$
$ac_var
1135 [\\/$
]* | ?
:[\\/]* ) continue;;
1136 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1138 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1139 { (exit 1); exit 1; }; }
1142 # There might be people who depend on the old broken behavior: `$host'
1143 # used to hold the argument of --host etc.
1144 # FIXME: To remove some day.
1147 target
=$target_alias
1149 # FIXME: To remove some day.
1150 if test "x$host_alias" != x
; then
1151 if test "x$build_alias" = x
; then
1152 cross_compiling
=maybe
1153 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1154 If a cross compiler is detected then cross compile mode will be used." >&2
1155 elif test "x$build_alias" != "x$host_alias"; then
1161 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1163 test "$silent" = yes && exec 6>/dev
/null
1166 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1167 ac_ls_di
=`ls -di .` &&
1168 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1169 { echo "$as_me: error: Working directory cannot be determined" >&2
1170 { (exit 1); exit 1; }; }
1171 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1172 { echo "$as_me: error: pwd does not report name of working directory" >&2
1173 { (exit 1); exit 1; }; }
1176 # Find the source files, if location was not specified.
1177 if test -z "$srcdir"; then
1178 ac_srcdir_defaulted
=yes
1179 # Try the directory containing this script, then the parent directory.
1180 ac_confdir
=`$as_dirname -- "$0" ||
1181 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1182 X"$0" : 'X\(//\)[^/]' \| \
1183 X"$0" : 'X\(//\)$' \| \
1184 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1186 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1204 if test ! -r "$srcdir/$ac_unique_file"; then
1208 ac_srcdir_defaulted
=no
1210 if test ! -r "$srcdir/$ac_unique_file"; then
1211 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1212 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1213 { (exit 1); exit 1; }; }
1215 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1217 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1218 { (exit 1); exit 1; }; }
1220 # When building in place, set srcdir=.
1221 if test "$ac_abs_confdir" = "$ac_pwd"; then
1224 # Remove unnecessary trailing slashes from srcdir.
1225 # Double slashes in file names in object file debugging info
1226 # mess up M-x gdb in Emacs.
1228 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1230 for ac_var
in $ac_precious_vars; do
1231 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1232 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1233 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1234 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1238 # Report the --help message.
1240 if test "$ac_init_help" = "long"; then
1241 # Omit some internal or obsolete options to make the list less imposing.
1242 # This message is too long to be a string in the A/UX 3.1 sh.
1244 \`configure' configures this package to adapt to many kinds of systems.
1246 Usage: $0 [OPTION]... [VAR=VALUE]...
1248 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1249 VAR=VALUE. See below for descriptions of some of the useful variables.
1251 Defaults for the options are specified in brackets.
1254 -h, --help display this help and exit
1255 --help=short display options specific to this package
1256 --help=recursive display the short help of all the included packages
1257 -V, --version display version information and exit
1258 -q, --quiet, --silent do not print \`checking...' messages
1259 --cache-file=FILE cache test results in FILE [disabled]
1260 -C, --config-cache alias for \`--cache-file=config.cache'
1261 -n, --no-create do not create output files
1262 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1264 Installation directories:
1265 --prefix=PREFIX install architecture-independent files in PREFIX
1266 [$ac_default_prefix]
1267 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1270 By default, \`make install' will install all the files in
1271 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1272 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1273 for instance \`--prefix=\$HOME'.
1275 For better control, use the options below.
1277 Fine tuning of the installation directories:
1278 --bindir=DIR user executables [EPREFIX/bin]
1279 --sbindir=DIR system admin executables [EPREFIX/sbin]
1280 --libexecdir=DIR program executables [EPREFIX/libexec]
1281 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1282 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1283 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1284 --libdir=DIR object code libraries [EPREFIX/lib]
1285 --includedir=DIR C header files [PREFIX/include]
1286 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1287 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1288 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1289 --infodir=DIR info documentation [DATAROOTDIR/info]
1290 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1291 --mandir=DIR man documentation [DATAROOTDIR/man]
1292 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1293 --htmldir=DIR html documentation [DOCDIR]
1294 --dvidir=DIR dvi documentation [DOCDIR]
1295 --pdfdir=DIR pdf documentation [DOCDIR]
1296 --psdir=DIR ps documentation [DOCDIR]
1302 --program-prefix=PREFIX prepend PREFIX to installed program names
1303 --program-suffix=SUFFIX append SUFFIX to installed program names
1304 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1307 --x-includes=DIR X include files are
in DIR
1308 --x-libraries=DIR X library files are
in DIR
1311 --build=BUILD configure
for building on BUILD
[guessed
]
1312 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1316 if test -n "$ac_init_help"; then
1321 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1322 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1323 --enable-carbon-app[=DIR
] [DIR
=/Application
]
1324 specify
install directory
for Emacs.app on Mac OS X
1325 --enable-font-backend compile code of font-backend support
1326 --enable-asserts compile code with asserts enabled
1327 --enable-maintainer-mode enable make rules and dependencies not useful
1328 (and sometimes confusing
) to the casual installer
1329 --enable-locallisppath=PATH
1330 directories Emacs should search
for lisp files
1331 specific to this site
1332 --disable-largefile omit support
for large files
1335 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1336 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1337 --without-gcc don
't use GCC to compile Emacs if GCC is found
1338 --without-pop don't support POP
mail retrieval with movemail
1339 --with-kerberos support Kerberos-authenticated POP
1340 --with-kerberos5 support Kerberos version
5 authenticated POP
1341 --with-hesiod support Hesiod to get the POP server
host
1342 --without-sound don
't compile with sound support
1343 --with-x-toolkit=KIT use an X toolkit
1344 (KIT = yes/lucid/athena/motif/gtk/no)
1345 --with-xpm use -lXpm for displaying XPM images
1346 --with-jpeg use -ljpeg for displaying JPEG images
1347 --with-tiff use -ltiff for displaying TIFF images
1348 --with-gif use -lungif for displaying GIF images
1349 --with-png use -lpng for displaying PNG images
1350 --with-freetype use -lfreetype for local fonts support
1351 --with-xft use -lXft for anti aliased fonts
1352 --with-gpm use -lgpm for mouse support on a GNU/Linux console
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; if test "$withval" = yes; then
1853 cat >>confdefs.h <<\_ACEOF
1862 # Check whether --with-kerberos5 was given.
1863 if test "${with_kerberos5+set}" = set; then
1864 withval=$with_kerberos5; if test "${with_kerberos5+set}" = set; then
1865 if test "${with_kerberos+set}" != set; then
1867 cat >>confdefs.h <<\_ACEOF
1873 cat >>confdefs.h <<\_ACEOF
1881 # Check whether --with-hesiod was given.
1882 if test "${with_hesiod+set}" = set; then
1883 withval=$with_hesiod; if test "$withval" = yes; then
1885 cat >>confdefs.h <<\_ACEOF
1894 # Check whether --with-sound was given.
1895 if test "${with_sound+set}" = set; then
1896 withval=$with_sound;
1901 # Check whether --with-x-toolkit was given.
1902 if test "${with_x_toolkit+set}" = set; then
1903 withval=$with_x_toolkit; case "${withval}" in
1904 y | ye | yes ) val=athena ;;
1906 l | lu | luc | luci | lucid ) val=lucid ;;
1907 a | at | ath | athe | athen | athena ) val=athena ;;
1908 m | mo | mot | moti | motif ) val=motif ;;
1909 g | gt | gtk ) val=gtk ;;
1911 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\
;
1912 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', \
`motif' or \`gtk
'.
1913 Currently, \`yes', \
`athena' and \`lucid
' are synonyms." >&5
1914 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\
;
1915 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', \
`motif' or \`gtk
'.
1916 Currently, \`yes', \
`athena' and \`lucid
' are synonyms." >&2;}
1917 { (exit 1); exit 1; }; }
1925 # Check whether --with-xpm was given.
1926 if test "${with_xpm+set}" = set; then
1931 # Check whether --with-jpeg was given.
1932 if test "${with_jpeg+set}" = set; then
1937 # Check whether --with-tiff was given.
1938 if test "${with_tiff+set}" = set; then
1943 # Check whether --with-gif was given.
1944 if test "${with_gif+set}" = set; then
1949 # Check whether --with-png was given.
1950 if test "${with_png+set}" = set; then
1955 # Check whether --with-freetype was given.
1956 if test "${with_freetype+set}" = set; then
1957 withval=$with_freetype;
1961 # Check whether --with-xft was given.
1962 if test "${with_xft+set}" = set; then
1967 # Check whether --with-gpm was given.
1968 if test "${with_gpm+set}" = set; then
1973 # Check whether --with-gtk was given.
1974 if test "${with_gtk+set}" = set; then
1979 # Check whether --with-pkg-config-prog was given.
1980 if test "${with_pkg_config_prog+set}" = set; then
1981 withval=$with_pkg_config_prog;
1985 # Check whether --with-toolkit-scroll-bars was given.
1986 if test "${with_toolkit_scroll_bars+set}" = set; then
1987 withval=$with_toolkit_scroll_bars;
1991 # Check whether --with-xim was given.
1992 if test "${with_xim+set}" = set; then
1997 # Check whether --with-carbon was given.
1998 if test "${with_carbon+set}" = set; then
1999 withval=$with_carbon;
2002 # Check whether --enable-carbon-app was given.
2003 if test "${enable_carbon_app+set}" = set; then
2004 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
2008 # Check whether --enable-font-backend was given.
2009 if test "${enable_font_backend+set}" = set; then
2010 enableval=$enable_font_backend; USE_FONT_BACKEND=$enableval
2016 # Check whether --enable-asserts was given.
2017 if test "${enable_asserts+set}" = set; then
2018 enableval=$enable_asserts; USE_XASSERTS=$enableval
2024 # Check whether --enable-maintainer-mode was given.
2025 if test "${enable_maintainer_mode+set}" = set; then
2026 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2028 USE_MAINTAINER_MODE=no
2031 if test $USE_MAINTAINER_MODE = yes; then
2038 # Check whether --enable-locallisppath was given.
2039 if test "${enable_locallisppath+set}" = set; then
2040 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2042 elif test "${enableval}" != "yes"; then
2043 locallisppath=${enableval}
2048 #### Make srcdir absolute, if it isn't already. It
's important to
2049 #### avoid running the path through pwd unnecessarily, since pwd can
2050 #### give you automounter prefixes, which can go away. We do all this
2051 #### so Emacs can find its files when run uninstalled.
2052 ## Make sure CDPATH doesn't affect
cd (in case PWD is relative
).
2057 ## We may be able to use the $PWD environment variable to make this
2058 ## absolute. But sometimes PWD is inaccurate.
2059 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2060 ## but that tested only for a well-formed and valid PWD,
2061 ## it did not object when PWD was well-formed and valid but just wrong.
2062 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2066 srcdir
="`(cd ${srcdir}; pwd)`"
2069 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2072 #### Check if the source directory already has a configured system in it.
2073 if test `pwd` != `(cd ${srcdir} && pwd)` \
2074 && test -f "${srcdir}/src/config.h" ; then
2075 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2076 as a build directory right now; it has been configured in its own
2077 right. To configure in another directory as well, you MUST
2078 use GNU make. If you do not have GNU make, then you must
2079 now do \`make distclean' in ${srcdir},
2080 and then run $0 again." >&5
2081 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2082 as a build directory right now; it has been configured in its own
2083 right. To configure in another directory as well, you MUST
2084 use GNU make. If you do not have GNU make, then you must
2085 now do \`make distclean' in ${srcdir},
2086 and then run $0 again." >&2;}
2089 #### Given the configuration name, set machfile and opsysfile to the
2090 #### names of the m/*.h and s/*.h files we should use.
2092 ### Canonicalize the configuration name.
2095 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2096 if test -f "$ac_dir/install-sh"; then
2098 ac_install_sh
="$ac_aux_dir/install-sh -c"
2100 elif test -f "$ac_dir/install.sh"; then
2102 ac_install_sh
="$ac_aux_dir/install.sh -c"
2104 elif test -f "$ac_dir/shtool"; then
2106 ac_install_sh
="$ac_aux_dir/shtool install -c"
2110 if test -z "$ac_aux_dir"; then
2111 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2112 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2113 { (exit 1); exit 1; }; }
2116 # These three variables are undocumented and unsupported,
2117 # and are intended to be withdrawn in a future Autoconf release.
2118 # They can cause serious problems if a builder's source tree is in a directory
2119 # whose full name contains unusual characters.
2120 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2121 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2122 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2125 # Make sure we can run config.sub.
2126 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2127 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2128 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2129 { (exit 1); exit 1; }; }
2131 { echo "$as_me:$LINENO: checking build system type" >&5
2132 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2133 if test "${ac_cv_build+set}" = set; then
2134 echo $ECHO_N "(cached) $ECHO_C" >&6
2136 ac_build_alias
=$build_alias
2137 test "x$ac_build_alias" = x
&&
2138 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2139 test "x$ac_build_alias" = x
&&
2140 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2141 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2142 { (exit 1); exit 1; }; }
2143 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2144 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2145 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2146 { (exit 1); exit 1; }; }
2149 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2150 echo "${ECHO_T}$ac_cv_build" >&6; }
2151 case $ac_cv_build in
2153 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2154 echo "$as_me: error: invalid value of canonical build" >&2;}
2155 { (exit 1); exit 1; }; };;
2158 ac_save_IFS
=$IFS; IFS
='-'
2164 # Remember, the first character of IFS is used to create $*,
2165 # except with old shells:
2168 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2171 { echo "$as_me:$LINENO: checking host system type" >&5
2172 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2173 if test "${ac_cv_host+set}" = set; then
2174 echo $ECHO_N "(cached) $ECHO_C" >&6
2176 if test "x$host_alias" = x
; then
2177 ac_cv_host
=$ac_cv_build
2179 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2180 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2181 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2182 { (exit 1); exit 1; }; }
2186 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2187 echo "${ECHO_T}$ac_cv_host" >&6; }
2190 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2191 echo "$as_me: error: invalid value of canonical host" >&2;}
2192 { (exit 1); exit 1; }; };;
2195 ac_save_IFS
=$IFS; IFS
='-'
2201 # Remember, the first character of IFS is used to create $*,
2202 # except with old shells:
2205 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2209 configuration
=${host_alias-${build_alias-$host}}
2213 ### If you add support for a new configuration, add code to this
2214 ### switch statement to recognize your configuration name and select
2215 ### the appropriate operating system and machine description files.
2217 ### You would hope that you could choose an m/*.h file pretty much
2218 ### based on the machine portion of the configuration name, and an s-
2219 ### file based on the operating system portion. However, it turns out
2220 ### that each m/*.h file is pretty manufacturer-specific - for
2221 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
2222 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
2223 ### machines. So we basically have to have a special case for each
2224 ### configuration name.
2226 ### As far as handling version numbers on operating systems is
2227 ### concerned, make sure things will fail in a fixable way. If
2228 ### /etc/MACHINES doesn't say anything about version numbers, be
2229 ### prepared to handle anything reasonably. If version numbers
2230 ### matter, be sure /etc/MACHINES says something about it.
2232 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2233 ### "System V Release 4"; he writes, "The old convention encouraged
2234 ### confusion between `system' and `release' levels'."
2236 machine
='' opsys
='' unported
=no
2237 case "${canonical}" in
2242 case "${canonical}" in
2243 alpha
*-*-freebsd*) machine
=alpha
;;
2244 ia64-
*-freebsd*) machine
=ia64
;;
2245 sparc64-
*-freebsd*) machine
=sparc
;;
2246 powerpc-
*-freebsd*) machine
=macppc
;;
2247 i
[3456]86-*-freebsd*) machine
=intel386
;;
2248 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2255 if test -f /usr
/lib
/crti.o
; then
2257 cat >>confdefs.h
<<\_ACEOF
2263 case "${canonical}" in
2264 alpha
*-*-netbsd*) machine
=alpha
;;
2265 i
[3456]86-*-netbsd*) machine
=intel386
;;
2267 # This is somewhat bogus.
2268 machine
=hp9000s300
;;
2269 mips-
*-netbsd*) machine
=pmax
;;
2270 mipsel-
*-netbsd*) machine
=pmax
;;
2271 mipseb-
*-netbsd*) machine
=pmax
;;
2272 ns32k-
*-netbsd*) machine
=ns32000
;;
2273 powerpc-
*-netbsd*) machine
=macppc
;;
2274 sparc
*-*-netbsd*) machine
=sparc
;;
2275 vax-
*-netbsd*) machine
=vax
;;
2276 arm-
*-netbsd*) machine
=arm
;;
2277 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2278 hppa-
*-netbsd*) machine
=hp800
;;
2279 shle-
*-netbsd*) machine
=sh3el
;;
2286 case "${canonical}" in
2287 alpha
*-*-openbsd*) machine
=alpha
;;
2288 arm-
*-openbsd*) machine
=arm
;;
2289 hppa-
*-openbsd*) machine
=hp9000s300
;;
2290 i386-
*-openbsd*) machine
=intel386
;;
2291 m68k-
*-openbsd*) machine
=hp9000s300
;;
2292 m88k-
*-openbsd*) machine
=aviion
;;
2293 mips64-
*-openbsd*) machine
=mips64
;;
2294 powerpc-
*-openbsd*) machine
=macppc
;;
2295 sh-
*-openbsd*) machine
=sh3el
;;
2296 sparc
*-*-openbsd*) machine
=sparc
;;
2297 vax-
*-openbsd*) machine
=vax
;;
2298 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2305 case "${canonical}" in
2306 i
[3456]86-*-lynxos*) machine
=intel386
;;
2307 powerpc-
*-lynxos*) machine
=powerpc
;;
2312 arm-acorn-riscix1.1
* )
2313 machine
=acorn opsys
=riscix1-1
2315 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
2316 ## This name is riscix12 instead of riscix1.2
2317 ## to avoid a file name conflict on MSDOS.
2318 machine
=acorn opsys
=riscix12
2324 case "${canonical}" in
2325 i
[345]86-*-bsdi*) machine
=intel386
;;
2326 sparc-
*-bsdi*) machine
=sparc
;;
2327 powerpc-
*-bsdi*) machine
=macppc
;;
2329 case "${canonical}" in
2330 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
2331 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
2332 *-*-bsdi2* ) opsys
=bsdos2-1
;;
2333 *-*-bsdi3* ) opsys
=bsdos3
;;
2334 *-*-bsdi[45]* ) opsys
=bsdos4
;;
2339 ## Strictly speaking, we need the version of the alliant operating
2340 ## system to choose the right machine file, but currently the
2341 ## configuration name doesn't tell us enough to choose the right
2342 ## one; we need to give alliants their own operating system name to
2343 ## do this right. When someone cares, they can help us.
2345 machine
=alliant4 opsys
=bsd4-2
2348 machine
=alliant-2800 opsys
=bsd4-3
2351 ## Alpha (DEC) machines.
2353 machine
=alpha opsys
=osf1
2354 # This is needed to find X11R6.1 libraries for certain tests.
2355 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2356 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2357 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2358 # due to non-traditional preprocessing with the current compiler
2359 # defaults. OSF 4 can also have that compiler version, and there
2360 # seems always to have been a usable /usr/bin/cpp.
2361 NON_GNU_CPP
=/usr
/bin
/cpp
2362 case "${canonical}" in
2363 alpha
*-dec-osf[5-9]*)
2368 alpha
*-*-linux-gnu* )
2369 machine
=alpha opsys
=gnu-linux
2373 machine
=arm opsys
=gnu-linux
2378 machine
=altos opsys
=usg5-2
2383 machine
=amdahl opsys
=usg5-2-2
2386 ## Apollo, Domain/OS
2388 machine
=apollo opsys
=bsd4-3
2391 ## Apple Darwin / Mac OS X
2393 case "${canonical}" in
2394 i
[3456]86-* ) machine
=intel386
;;
2395 powerpc-
* ) machine
=powermac
;;
2399 # Define CPP as follows to make autoconf work correctly.
2400 CPP
="${CC-cc} -E -no-cpp-precomp"
2401 # Use fink packages if available.
2402 if test -d /sw
/include
&& test -d /sw
/lib
; then
2403 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2404 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2405 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2409 ## AT&T 3b2, 3b5, 3b15, 3b20
2411 machine
=att3b opsys
=usg5-2-2
2414 ## AT&T 3b1 - The Mighty Unix PC!
2416 machine
=7300 opsys
=usg5-2-2
2421 machine
=ibmrs6000 opsys
=aix3-2
2426 machine
=dpx2 opsys
=usg5-3
2431 machine
=sps7 opsys
=usg5-2
2434 ## CCI 5/32, 6/32 -- see "Tahoe".
2437 ## I don't know what configuration name to use for this; config.sub
2438 ## doesn't seem to know anything about it. Hey, Celerity users, get
2439 ## in touch with us!
2440 celerity-celerity-bsd
* )
2441 machine
=celerity opsys
=bsd4-2
2445 ## What operating systems does this chip run that Emacs has been
2449 ## We'll use the catch-all code at the bottom to guess the
2450 ## operating system.
2454 mips-compaq-nonstopux
* )
2455 machine
=nonstopux opsys
=nonstopux
2459 *-convex-bsd* |
*-convex-convexos* )
2460 machine
=convex opsys
=bsd4-3
2461 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2462 NON_GNU_CPP
="cc -E -P"
2466 i
[3456]86-cubix-sysv* )
2467 machine
=intel386 opsys
=usg5-3
2471 cydra
*-cydrome-sysv* )
2472 machine
=cydra5 opsys
=usg5-3
2475 ## Data General AViiON Machines
2476 ## DG changed naming conventions with the release of 5.4.4.10, they
2477 ## dropped the initial 5.4 but left the intervening R. Because of the
2478 ## R this shouldn't conflict with older versions of the OS (which I
2479 ## think were named like dgux4.*). In addition, DG new AViiONs series
2480 ## uses either Motorola M88k or Intel Pentium CPUs.
2481 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
2482 machine
=aviion opsys
=dgux4
2484 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
2485 ## This name is dgux5-4-3 instead of dgux5-4r3
2486 ## to avoid a file name conflict on MSDOS.
2487 machine
=aviion opsys
=dgux5-4-3
2489 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
2490 machine
=aviion opsys
=dgux5-4r2
2493 machine
=aviion opsys
=dgux
2496 ## Data General AViiON Intel (x86) Machines
2497 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2498 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2499 i
[345]86-dg-dguxR4* )
2500 machine
=aviion-intel opsys
=dgux4
2504 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
2505 machine
=pmax opsys
=bsd4-2
2507 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
2508 machine
=pmax opsys
=bsd4-3
2511 machine
=pmax opsys
=ultrix4-3
2514 machine
=pmax opsys
=osf1
2516 mips-dec-mach_bsd4.3
* )
2517 machine
=pmax opsys
=mach-bsd4-3
2520 ## Motorola Delta machines
2521 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
2522 machine
=delta opsys
=usg5-3
2523 if test -z "`type gnucc | grep 'not found'`"
2525 if test -s /etc
/167config
2526 then CC
="gnucc -m68040"
2527 else CC
="gnucc -m68881"
2530 if test -z "`type gcc | grep 'not found'`"
2536 m88k-motorola-sysv4
* )
2537 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2538 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2539 # I hope there are not other 4.0 versions for this machine
2540 # which really need usg5-4 instead.
2541 machine
=delta88k opsys
=usg5-4-2
2543 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
2544 machine
=delta88k opsys
=usg5-3
2549 machine
=dual opsys
=usg5-2
2551 m68
*-dual-uniplus* )
2552 machine
=dual opsys
=unipl5-2
2557 machine
=elxsi opsys
=usg5-2
2562 machine
=ns16000 opsys
=umax
2565 ## The GEC 63 - apparently, this port isn't really finished yet.
2566 # I'm sure we finished off the last of the machines, though. -- fx
2568 ## Gould Power Node and NP1
2570 machine
=gould opsys
=bsd4-2
2573 machine
=gould opsys
=bsd4-3
2576 machine
=gould-np1 opsys
=bsd4-3
2579 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2580 ## as far as Emacs is concerned).
2582 # Build needs to be different on 7.0 and later releases
2583 case "`uname -r`" in
2584 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
2585 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
2587 NON_GNU_CPP
="/lib/cpp"
2589 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2591 machine
=nh3000 opsys
=cxux
2593 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2594 powerpc-harris-powerunix
)
2595 machine
=nh6000 opsys
=powerunix
2596 NON_GNU_CPP
="cc -Xo -E -P"
2598 ## SR2001/SR2201 running HI-UX/MPP
2599 hppa1.1
-hitachi-hiuxmpp* )
2600 machine
=sr2k opsys
=hiuxmpp
2602 hppa1.1
-hitachi-hiuxwe2* )
2603 machine
=sr2k opsys
=hiuxwe2
2606 xps
*-honeywell-sysv* )
2607 machine
=xps100 opsys
=usg5-2
2610 ## HP 9000 series 200 or 300
2612 machine
=hp9000s300 opsys
=bsd4-3
2614 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2616 case "`uname -r`" in
2617 ## Someone's system reports A.B8.05 for this.
2618 ## I wonder what other possibilities there are.
2619 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2620 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2621 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2622 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2623 *) machine
=hp9000s300 opsys
=hpux
;;
2627 ## HP 9000 series 700 and 800, running HP/UX
2629 machine
=hp800 opsys
=hpux
2632 machine
=hp800 opsys
=hpux8
2634 hppa
*-hp-hpux9shr* )
2635 machine
=hp800 opsys
=hpux9shr
2638 machine
=hp800 opsys
=hpux9
2640 hppa
*-hp-hpux10.2
* )
2641 machine
=hp800 opsys
=hpux10-20
2644 machine
=hp800 opsys
=hpux10
2646 hppa
*-hp-hpux1[1-9]* )
2647 machine
=hp800 opsys
=hpux11
2648 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2651 hppa
*-*-linux-gnu* )
2652 machine
=hp800 opsys
=gnu-linux
2655 ## HP 9000 series 700 and 800, running HP/UX
2657 ## Cross-compilation? Nah!
2658 case "`uname -r`" in
2659 ## Someone's system reports A.B8.05 for this.
2660 ## I wonder what other possibilities there are.
2661 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2662 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2663 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2664 *) machine
=hp800 opsys
=hpux10
;;
2668 machine
=hp800 opsys
=nextstep
2673 machine
=orion opsys
=bsd4-2
2675 clipper-orion-bsd
* )
2676 machine
=orion105 opsys
=bsd4-2
2680 i
[3456]86-ibm-aix1.1
* )
2681 machine
=ibmps2-aix opsys
=usg5-2-2
2683 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2684 machine
=ibmps2-aix opsys
=usg5-3
2687 machine
=ibm370aix opsys
=usg5-3
2690 machine
=ibms390 opsys
=gnu-linux
2692 s390x-
*-linux-gnu* )
2693 machine
=ibms390x opsys
=gnu-linux
2695 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2696 machine
=ibmrs6000 opsys
=aix3-1
2698 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2699 machine
=ibmrs6000 opsys
=aix3-2-5
2701 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2702 machine
=ibmrs6000 opsys
=aix4-1
2704 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2705 machine
=ibmrs6000 opsys
=aix4-2
2707 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
2708 machine
=ibmrs6000 opsys
=aix4-2
2710 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2711 machine
=ibmrs6000 opsys
=aix4-2
2713 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2714 machine
=ibmrs6000 opsys
=aix4
2716 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2717 machine
=ibmrs6000 opsys
=aix4-1
2719 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2720 machine
=ibmrs6000 opsys
=aix3-2
2723 machine
=ibmrt opsys
=bsd4-3
2726 machine
=ibmrt opsys
=bsd4-2
2729 machine
=ibmrt opsys
=bsd4-3
2732 machine
=ibmrt opsys
=bsd4-2
2735 machine
=ibmrt opsys
=bsd4-3
2738 machine
=ibmrt opsys
=bsd4-3
2741 machine
=ibmrt-aix opsys
=usg5-2-2
2744 ## Integrated Solutions `Optimum V'
2746 machine
=isi-ov opsys
=bsd4-2
2749 machine
=isi-ov opsys
=bsd4-3
2752 ## Intel 386 machines where we do care about the manufacturer
2753 i
[3456]86-intsys-sysv* )
2754 machine
=is386 opsys
=usg5-2-2
2758 i
[3456]86-prime-sysv* )
2759 machine
=i386 opsys
=usg5-3
2762 ## Sequent Symmetry running Dynix
2763 i
[3456]86-sequent-bsd* )
2764 machine
=symmetry opsys
=bsd4-3
2767 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2768 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2769 machine
=sequent-ptx opsys
=ptx4
2770 NON_GNU_CPP
=/lib
/cpp
2773 ## Sequent Symmetry running DYNIX/ptx
2774 ## Use the old cpp rather than the newer ANSI one.
2775 i
[3456]86-sequent-ptx* )
2776 machine
=sequent-ptx opsys
=ptx
2777 NON_GNU_CPP
="/lib/cpp"
2780 ## ncr machine running svr4.3.
2781 i
[3456]86-ncr-sysv4.3
)
2782 machine
=ncr386 opsys
=usg5-4-3
2785 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2786 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2787 i
[3456]86-ncr-sysv* )
2788 machine
=ncr386 opsys
=usg5-4-2
2791 ## Intel Paragon OSF/1
2793 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2798 machine
=i860 opsys
=usg5-4
2799 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2800 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2803 ## Macintosh PowerPC
2804 powerpc
*-*-linux-gnu* )
2805 machine
=macppc opsys
=gnu-linux
2808 ## Masscomp machines
2809 m68
*-masscomp-rtu* )
2810 machine
=masscomp opsys
=rtu
2813 ## Megatest machines
2814 m68
*-megatest-bsd* )
2815 machine
=mega68 opsys
=bsd4-2
2818 ## Workstations sold by MIPS
2819 ## This is not necessarily all workstations using the MIPS processor -
2820 ## Irises are produced by SGI, and DECstations by DEC.
2822 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2823 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2824 ## it gives for choosing between the alternatives seems to be "Use
2825 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2826 ## the BSD world." I'll assume that these are instructions for
2827 ## handling two odd situations, and that every other situation
2828 ## should use mips.h and usg5-2-2, they being listed first.
2831 ## Fall through to the general code at the bottom to decide on the OS.
2833 mips-mips-riscos4
* )
2834 machine
=mips4 opsys
=bsd4-3
2835 NON_GNU_CC
="cc -systype bsd43"
2836 NON_GNU_CPP
="cc -systype bsd43 -E"
2838 mips-mips-riscos5
* )
2839 machine
=mips4 opsys
=riscos5
2840 NON_GNU_CC
="cc -systype bsd43"
2841 NON_GNU_CPP
="cc -systype bsd43 -E"
2844 machine
=mips opsys
=bsd4-3
2847 machine
=mips opsys
=usg5-2-2
2851 m68
*-next-* | m68k-
*-nextstep* )
2852 machine
=m68k opsys
=nextstep
2855 ## The complete machine from National Semiconductor
2857 machine
=ns32000 opsys
=usg5-2
2861 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2862 machine
=tower32 opsys
=usg5-2-2
2864 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2865 machine
=tower32v3 opsys
=usg5-3
2870 machine
=ews4800 opsys
=ux4800
2873 ## Nixdorf Targon 31
2874 m68
*-nixdorf-sysv* )
2875 machine
=targon31 opsys
=usg5-2-2
2880 machine
=nu opsys
=usg5-2
2885 machine
=plexus opsys
=usg5-2
2889 ## I don't really have any idea what sort of processor the Pyramid has,
2890 ## so I'm assuming it is its own architecture.
2891 pyramid-pyramid-bsd
* )
2892 machine
=pyramid opsys
=bsd4-2
2896 ns32k-sequent-bsd4.2
* )
2897 machine
=sequent opsys
=bsd4-2
2899 ns32k-sequent-bsd4.3
* )
2900 machine
=sequent opsys
=bsd4-3
2904 mips-siemens-sysv
* | mips-sni-sysv
*)
2905 machine
=mips-siemens opsys
=usg5-4
2906 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2907 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2910 ## Silicon Graphics machines
2911 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2913 machine
=irist opsys
=iris3-5
2915 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2916 machine
=irist opsys
=iris3-6
2920 machine
=iris4d opsys
=irix3-3
2923 machine
=iris4d opsys
=irix4-0
2926 machine
=iris4d opsys
=irix6-5
2927 # Without defining _LANGUAGE_C, things get masked out in the headers
2928 # so that, for instance, grepping for `free' in stdlib.h fails and
2929 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2930 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2931 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2934 machine
=iris4d opsys
=irix6-0
2935 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2936 # but presumably it does no harm.
2937 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2938 # -32 probably isn't necessary in later v.6s -- anyone know which?
2939 NON_GCC_TEST_OPTIONS
=-32
2941 mips-sgi-irix5.
[01]* )
2942 machine
=iris4d opsys
=irix5-0
2944 mips-sgi-irix5
* | mips-sgi-irix
* )
2945 machine
=iris4d opsys
=irix5-2
2950 machine
=news opsys
=bsd4-2
2953 machine
=news opsys
=bsd4-3
2955 m68
*-sony-newsos3* | m68
*-sony-news3*)
2956 machine
=news opsys
=bsd4-3
2958 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2959 machine
=news-risc opsys
=bsd4-3
2961 mips-sony-newsos6
* )
2962 machine
=news-r6 opsys
=newsos6
2965 machine
=news-risc opsys
=newsos5
2970 machine
=stride opsys
=usg5-2
2974 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2975 machine
=sparc opsys
=gnu-linux
2978 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2979 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2980 | rs6000-
*-solaris2*)
2981 case "${canonical}" in
2982 m68
*-sunos1* ) machine
=sun1
;;
2983 m68
*-sunos2* ) machine
=sun2
;;
2984 m68
* ) machine
=sun3
;;
2985 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2986 i
[3456]86-*-* ) machine
=intel386
;;
2987 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2988 powerpcle
* ) machine
=powerpcle
;;
2989 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2990 sparc
* ) machine
=sparc
;;
2993 case "${canonical}" in
2994 ## The Sun386 didn't get past 4.0.
2995 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2996 *-sunos4.0
* ) opsys
=sunos4-0
;;
2997 *-sunos4.1.
[3-9]*noshare
)
2998 ## This name is sunos413 instead of sunos4-1-3
2999 ## to avoid a file name conflict on MSDOS.
3001 NON_GNU_CPP
=/usr
/lib
/cpp
3002 NON_GCC_TEST_OPTIONS
=-Bstatic
3003 GCC_TEST_OPTIONS
=-static
3005 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
3007 NON_GNU_CPP
=/usr
/lib
/cpp
3009 *-sunos4* |
*-sunos )
3011 NON_GCC_TEST_OPTIONS
=-Bstatic
3012 GCC_TEST_OPTIONS
=-static
3014 *-sunos5.3
* |
*-solaris2.3
* )
3016 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3018 *-sunos5.4
* |
*-solaris2.4
* )
3020 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3023 *-sunos5.5
* |
*-solaris2.5
* )
3025 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3028 *-sunos5.6
* |
*-solaris2.6
* )
3030 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3033 *-sunos5* |
*-solaris* )
3035 ## FIXME: make this into a proper fix that checks the compiler type,
3036 ## rather than relying on path. Or is /usr/ccs/lib/cpp a bad default now?
3037 if [ "x$CC" = x
/opt
/SUNWspro
/bin
/cc
]; then
3038 ## -Xs prevents spurious whitespace.
3039 NON_GNU_CPP
="/opt/SUNWspro/bin/cc -E -Xs"
3041 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3046 ## Watch out for a compiler that we know will not work.
3047 case "${canonical}" in
3048 *-solaris* |
*-sunos5* )
3049 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
3050 ## /usr/ucb/cc doesn't work;
3051 ## we should find some other compiler that does work.
3059 machine
=sparc opsys
=nextstep
3063 m68
*-tadpole-sysv* )
3064 machine
=tad68k opsys
=usg5-3
3068 tahoe-tahoe-bsd4.2
* )
3069 machine
=tahoe opsys
=bsd4-2
3071 tahoe-tahoe-bsd4.3
* )
3072 machine
=tahoe opsys
=bsd4-3
3075 ## Tandem Integrity S2
3077 machine
=tandem-s2 opsys
=usg5-3
3081 m88k-tektronix-sysv3
* )
3082 machine
=tekxd88 opsys
=usg5-3
3085 ## Tektronix 16000 box (6130?)
3086 ns16k-tektronix-bsd
* )
3087 machine
=ns16000 opsys
=bsd4-2
3090 ## src/m/tek4300.h hints that this is a m68k machine.
3091 m68
*-tektronix-bsd* )
3092 machine
=tek4300 opsys
=bsd4-3
3096 ## We seem to have lost the machine-description file titan.h!
3098 machine
=titan opsys
=usg5-3
3101 ## Ustation E30 (SS5E)
3102 m68
*-unisys-uniplus* )
3103 machine
=ustation opsystem
=unipl5-2
3109 case "${canonical}" in
3110 *-bsd4.1
* ) opsys
=bsd4-1
;;
3111 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
3112 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
3113 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
3114 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
3115 *-vms* ) opsys
=vms
;;
3121 ns16k-whitechapel-
* )
3123 ## We don't know what sort of OS runs on these; we'll let the
3124 ## operating system guessing code below try.
3129 machine
=wicat opsys
=usg5-2
3134 machine
=ia64 opsys
=gnu-linux
3137 ## Intel 386 machines where we don't care about the manufacturer
3140 case "${canonical}" in
3141 *-cygwin ) opsys
=cygwin
;;
3142 *-darwin* ) opsys
=darwin
3143 CPP
="${CC-cc} -E -no-cpp-precomp"
3145 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
3146 *-isc2.2
* ) opsys
=isc2-2
;;
3147 *-isc4.0
* ) opsys
=isc4-0
;;
3148 *-isc4.
* ) opsys
=isc4-1
3149 GCC_TEST_OPTIONS
=-posix
3150 NON_GCC_TEST_OPTIONS
=-Xp
3152 *-isc* ) opsys
=isc3-0
;;
3153 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
3154 *-esix* ) opsys
=esix
;;
3155 *-xenix* ) opsys
=xenix
;;
3156 *-linux-gnu* ) opsys
=gnu-linux
;;
3157 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
3158 *-sco3.2v5
* ) opsys
=sco5
3159 NON_GNU_CPP
=/lib
/cpp
3160 # Prevent -belf from being passed to $CPP.
3161 # /lib/cpp does not accept it.
3162 OVERRIDE_CPPFLAGS
=" "
3164 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3165 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3166 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3167 *-386bsd* ) opsys
=386bsd
;;
3168 *-nextstep* ) opsys
=nextstep
;;
3169 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3173 ## m68k Linux-based GNU system
3175 machine
=m68k opsys
=gnu-linux
3178 ## Mips Linux-based GNU system
3179 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
3180 machine
=mips opsys
=gnu-linux
3184 sparc-fujitsu-sysv4
* )
3185 machine
=sparc opsys
=uxpds
3186 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3191 f301-fujitsu-uxpv4.1
)
3192 machine
=f301 opsys
=uxpv
3195 ## AMD x86-64 Linux-based GNU system
3196 x86_64-
*-linux-gnu* )
3197 machine
=amdx86-64 opsys
=gnu-linux
3200 ## Tensilica Xtensa Linux-based GNU system
3201 xtensa-
*-linux-gnu* )
3202 machine
=xtensa opsys
=gnu-linux
3210 ### If the code above didn't choose an operating system, just choose
3211 ### an operating system based on the configuration name. You really
3212 ### only want to use this when you have no idea what the right
3213 ### operating system is; if you know what operating systems a machine
3214 ### runs, it's cleaner to make it explicit in the case statement
3216 if test x
"${opsys}" = x
; then
3217 case "${canonical}" in
3218 *-gnu* ) opsys
=gnu
;;
3219 *-bsd4.
[01] ) opsys
=bsd4-1
;;
3220 *-bsd4.2
) opsys
=bsd4-2
;;
3221 *-bsd4.3
) opsys
=bsd4-3
;;
3222 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
3223 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
3224 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
3225 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
3226 *-sysv4.2uw
* ) opsys
=unixware
;;
3227 *-sysv5uw* ) opsys
=unixware
;;
3228 *-sysv5OpenUNIX* ) opsys
=unixware
;;
3229 *-sysv4.1
* |
*-sysvr4.1
* )
3230 NON_GNU_CPP
=/usr
/lib
/cpp
3232 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
3233 if [ x
$NON_GNU_CPP = x
]; then
3234 if [ -f /usr
/ccs
/lib
/cpp
]; then
3235 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3237 NON_GNU_CPP
=/lib
/cpp
3241 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
3250 if test $unported = yes; then
3251 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3252 Check \`etc/MACHINES' for recognized configuration names." >&5
3253 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3254 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3255 { (exit 1); exit 1; }; }
3258 machfile
="m/${machine}.h"
3259 opsysfile
="s/${opsys}.h"
3262 #### Choose a compiler.
3263 test -n "$CC" && cc_specified
=yes
3265 # Save the value of CFLAGS that the user specified.
3266 SPECIFIED_CFLAGS
="$CFLAGS"
3269 "yes" ) CC
="gcc" GCC
=yes ;;
3270 "no" ) : ${CC=cc} ;;
3274 ac_cpp
='$CPP $CPPFLAGS'
3275 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3276 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3277 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3278 if test -n "$ac_tool_prefix"; then
3279 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3280 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3281 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3283 if test "${ac_cv_prog_CC+set}" = set; then
3284 echo $ECHO_N "(cached) $ECHO_C" >&6
3286 if test -n "$CC"; then
3287 ac_cv_prog_CC
="$CC" # Let the user override the test.
3289 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3293 test -z "$as_dir" && as_dir
=.
3294 for ac_exec_ext
in '' $ac_executable_extensions; do
3295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3296 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3307 if test -n "$CC"; then
3308 { echo "$as_me:$LINENO: result: $CC" >&5
3309 echo "${ECHO_T}$CC" >&6; }
3311 { echo "$as_me:$LINENO: result: no" >&5
3312 echo "${ECHO_T}no" >&6; }
3317 if test -z "$ac_cv_prog_CC"; then
3319 # Extract the first word of "gcc", so it can be a program name with args.
3320 set dummy gcc
; ac_word
=$2
3321 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3323 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3324 echo $ECHO_N "(cached) $ECHO_C" >&6
3326 if test -n "$ac_ct_CC"; then
3327 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3329 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3333 test -z "$as_dir" && as_dir
=.
3334 for ac_exec_ext
in '' $ac_executable_extensions; do
3335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3336 ac_cv_prog_ac_ct_CC
="gcc"
3337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3346 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3347 if test -n "$ac_ct_CC"; then
3348 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3349 echo "${ECHO_T}$ac_ct_CC" >&6; }
3351 { echo "$as_me:$LINENO: result: no" >&5
3352 echo "${ECHO_T}no" >&6; }
3355 if test "x$ac_ct_CC" = x
; then
3358 case $cross_compiling:$ac_tool_warned in
3360 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3361 whose name does not start with the host triplet. If you think this
3362 configuration is useful to you, please write to autoconf@gnu.org." >&5
3363 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3364 whose name does not start with the host triplet. If you think this
3365 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3366 ac_tool_warned
=yes ;;
3374 if test -z "$CC"; then
3375 if test -n "$ac_tool_prefix"; then
3376 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3377 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3378 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3380 if test "${ac_cv_prog_CC+set}" = set; then
3381 echo $ECHO_N "(cached) $ECHO_C" >&6
3383 if test -n "$CC"; then
3384 ac_cv_prog_CC
="$CC" # Let the user override the test.
3386 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3390 test -z "$as_dir" && as_dir
=.
3391 for ac_exec_ext
in '' $ac_executable_extensions; do
3392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3393 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3404 if test -n "$CC"; then
3405 { echo "$as_me:$LINENO: result: $CC" >&5
3406 echo "${ECHO_T}$CC" >&6; }
3408 { echo "$as_me:$LINENO: result: no" >&5
3409 echo "${ECHO_T}no" >&6; }
3415 if test -z "$CC"; then
3416 # Extract the first word of "cc", so it can be a program name with args.
3417 set dummy cc
; ac_word
=$2
3418 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3420 if test "${ac_cv_prog_CC+set}" = set; then
3421 echo $ECHO_N "(cached) $ECHO_C" >&6
3423 if test -n "$CC"; then
3424 ac_cv_prog_CC
="$CC" # Let the user override the test.
3427 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3431 test -z "$as_dir" && as_dir
=.
3432 for ac_exec_ext
in '' $ac_executable_extensions; do
3433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3434 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3435 ac_prog_rejected
=yes
3439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3446 if test $ac_prog_rejected = yes; then
3447 # We found a bogon in the path, so make sure we never use it.
3448 set dummy
$ac_cv_prog_CC
3450 if test $# != 0; then
3451 # We chose a different compiler from the bogus one.
3452 # However, it has the same basename, so the bogon will be chosen
3453 # first if we set CC to just the basename; use the full file name.
3455 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3461 if test -n "$CC"; then
3462 { echo "$as_me:$LINENO: result: $CC" >&5
3463 echo "${ECHO_T}$CC" >&6; }
3465 { echo "$as_me:$LINENO: result: no" >&5
3466 echo "${ECHO_T}no" >&6; }
3471 if test -z "$CC"; then
3472 if test -n "$ac_tool_prefix"; then
3473 for ac_prog
in cl.exe
3475 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3476 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3477 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3479 if test "${ac_cv_prog_CC+set}" = set; then
3480 echo $ECHO_N "(cached) $ECHO_C" >&6
3482 if test -n "$CC"; then
3483 ac_cv_prog_CC
="$CC" # Let the user override the test.
3485 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3489 test -z "$as_dir" && as_dir
=.
3490 for ac_exec_ext
in '' $ac_executable_extensions; do
3491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3492 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3503 if test -n "$CC"; then
3504 { echo "$as_me:$LINENO: result: $CC" >&5
3505 echo "${ECHO_T}$CC" >&6; }
3507 { echo "$as_me:$LINENO: result: no" >&5
3508 echo "${ECHO_T}no" >&6; }
3512 test -n "$CC" && break
3515 if test -z "$CC"; then
3517 for ac_prog
in cl.exe
3519 # Extract the first word of "$ac_prog", so it can be a program name with args.
3520 set dummy
$ac_prog; ac_word
=$2
3521 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3523 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3524 echo $ECHO_N "(cached) $ECHO_C" >&6
3526 if test -n "$ac_ct_CC"; then
3527 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3529 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3533 test -z "$as_dir" && as_dir
=.
3534 for ac_exec_ext
in '' $ac_executable_extensions; do
3535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3536 ac_cv_prog_ac_ct_CC
="$ac_prog"
3537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3546 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3547 if test -n "$ac_ct_CC"; then
3548 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3549 echo "${ECHO_T}$ac_ct_CC" >&6; }
3551 { echo "$as_me:$LINENO: result: no" >&5
3552 echo "${ECHO_T}no" >&6; }
3556 test -n "$ac_ct_CC" && break
3559 if test "x$ac_ct_CC" = x
; then
3562 case $cross_compiling:$ac_tool_warned in
3564 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3565 whose name does not start with the host triplet. If you think this
3566 configuration is useful to you, please write to autoconf@gnu.org." >&5
3567 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3568 whose name does not start with the host triplet. If you think this
3569 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3570 ac_tool_warned
=yes ;;
3579 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3580 See \`config.log' for more details." >&5
3581 echo "$as_me: error: no acceptable C compiler found in \$PATH
3582 See \`config.log' for more details." >&2;}
3583 { (exit 1); exit 1; }; }
3585 # Provide some information about the compiler.
3586 echo "$as_me:$LINENO: checking for C compiler version" >&5
3587 ac_compiler
=`set X $ac_compile; echo $2`
3588 { (ac_try
="$ac_compiler --version >&5"
3590 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3591 *) ac_try_echo=$ac_try;;
3593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3594 (eval "$ac_compiler --version >&5") 2>&5
3596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597 (exit $ac_status); }
3598 { (ac_try="$ac_compiler -v >&5"
3600 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3601 *) ac_try_echo
=$ac_try;;
3603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3604 (eval "$ac_compiler -v >&5") 2>&5
3606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607 (exit $ac_status); }
3608 { (ac_try
="$ac_compiler -V >&5"
3610 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3611 *) ac_try_echo=$ac_try;;
3613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3614 (eval "$ac_compiler -V >&5") 2>&5
3616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617 (exit $ac_status); }
3619 cat >conftest.$ac_ext <<_ACEOF
3622 cat confdefs.h >>conftest.$ac_ext
3623 cat >>conftest.$ac_ext <<_ACEOF
3624 /* end confdefs.h. */
3634 ac_clean_files_save=$ac_clean_files
3635 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3636 # Try to create an executable without -o first, disregard a.out.
3637 # It will help us diagnose broken compilers, and finding out an intuition
3639 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3640 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3641 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3643 # List of possible output files, starting from the most likely.
3644 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
3645 # only as a last resort. b.out is created by i960 compilers.
3646 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
3648 # The IRIX 6 linker writes into existing files which may not be
3649 # executable, retaining their permissions. Remove them first so a
3650 # subsequent execution test works.
3652 for ac_file in $ac_files
3655 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3656 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3661 if { (ac_try="$ac_link_default"
3663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3664 *) ac_try_echo=$ac_try;;
3666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3667 (eval "$ac_link_default") 2>&5
3669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670 (exit $ac_status); }; then
3671 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3672 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3673 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3674 # so that the user can short-circuit this test for compilers unknown to
3676 for ac_file
in $ac_files ''
3678 test -f "$ac_file" ||
continue
3680 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
3683 # We found the default executable, but exeext='' is most
3687 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3689 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3691 # We set ac_cv_exeext here because the later test for it is not
3692 # safe: cross compilers may not add the suffix if given an `-o'
3693 # argument, so we may need to know it at that point already.
3694 # Even if this section looks crufty: it has the advantage of
3701 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3707 { echo "$as_me:$LINENO: result: $ac_file" >&5
3708 echo "${ECHO_T}$ac_file" >&6; }
3709 if test -z "$ac_file"; then
3710 echo "$as_me: failed program was:" >&5
3711 sed 's/^/| /' conftest.
$ac_ext >&5
3713 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3714 See \`config.log' for more details." >&5
3715 echo "$as_me: error: C compiler cannot create executables
3716 See \`config.log' for more details." >&2;}
3717 { (exit 77); exit 77; }; }
3720 ac_exeext
=$ac_cv_exeext
3722 # Check that the compiler produces executables we can run. If not, either
3723 # the compiler is broken, or we cross compile.
3724 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3725 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3726 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3727 # If not cross compiling, check that we can run a simple program.
3728 if test "$cross_compiling" != yes; then
3729 if { ac_try
='./$ac_file'
3730 { (case "(($ac_try" in
3731 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3732 *) ac_try_echo=$ac_try;;
3734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3735 (eval "$ac_try") 2>&5
3737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738 (exit $ac_status); }; }; then
3741 if test "$cross_compiling" = maybe; then
3744 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3745 If you meant to cross compile, use \`--host'.
3746 See \`config.log' for more details.
" >&5
3747 echo "$as_me: error
: cannot run C compiled programs.
3748 If you meant to cross compile
, use \
`--host'.
3749 See \`config.log
' for more details." >&2;}
3750 { (exit 1); exit 1; }; }
3754 { echo "$as_me:$LINENO: result: yes" >&5
3755 echo "${ECHO_T}yes" >&6; }
3757 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3758 ac_clean_files=$ac_clean_files_save
3759 # Check that the compiler produces executables we can run. If not, either
3760 # the compiler is broken, or we cross compile.
3761 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3762 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3763 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3764 echo "${ECHO_T}$cross_compiling" >&6; }
3766 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3767 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3768 if { (ac_try="$ac_link"
3770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3771 *) ac_try_echo=$ac_try;;
3773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3774 (eval "$ac_link") 2>&5
3776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3777 (exit $ac_status); }; then
3778 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3779 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3780 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3782 for ac_file
in conftest.exe conftest conftest.
*; do
3783 test -f "$ac_file" ||
continue
3785 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
3786 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3792 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3793 See \`config.log' for more details." >&5
3794 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3795 See \`config.log' for more details." >&2;}
3796 { (exit 1); exit 1; }; }
3799 rm -f conftest
$ac_cv_exeext
3800 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3801 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3803 rm -f conftest.
$ac_ext
3804 EXEEXT
=$ac_cv_exeext
3806 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3807 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3808 if test "${ac_cv_objext+set}" = set; then
3809 echo $ECHO_N "(cached) $ECHO_C" >&6
3811 cat >conftest.
$ac_ext <<_ACEOF
3814 cat confdefs.h
>>conftest.
$ac_ext
3815 cat >>conftest.
$ac_ext <<_ACEOF
3816 /* end confdefs.h. */
3826 rm -f conftest.o conftest.obj
3827 if { (ac_try
="$ac_compile"
3829 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3830 *) ac_try_echo=$ac_try;;
3832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3833 (eval "$ac_compile") 2>&5
3835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836 (exit $ac_status); }; then
3837 for ac_file in conftest.o conftest.obj conftest.*; do
3838 test -f "$ac_file" || continue;
3840 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3841 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3846 echo "$as_me: failed program was:" >&5
3847 sed 's/^/| /' conftest.$ac_ext >&5
3849 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3850 See \`config.log
' for more details." >&5
3851 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3852 See \`config.log' for more details.
" >&2;}
3853 { (exit 1); exit 1; }; }
3856 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3858 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3859 echo "${ECHO_T}$ac_cv_objext" >&6; }
3860 OBJEXT=$ac_cv_objext
3862 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3863 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3864 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3865 echo $ECHO_N "(cached
) $ECHO_C" >&6
3867 cat >conftest.$ac_ext <<_ACEOF
3870 cat confdefs.h >>conftest.$ac_ext
3871 cat >>conftest.$ac_ext <<_ACEOF
3872 /* end confdefs.h. */
3885 rm -f conftest.$ac_objext
3886 if { (ac_try="$ac_compile"
3888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3889 *) ac_try_echo=$ac_try;;
3891 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3892 (eval "$ac_compile") 2>conftest.er1
3894 grep -v '^ *+' conftest.er1 >conftest.err
3896 cat conftest.err >&5
3897 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3898 (exit $ac_status); } && {
3899 test -z "$ac_c_werror_flag" ||
3900 test ! -s conftest.err
3901 } && test -s conftest.$ac_objext; then
3904 echo "$as_me: failed program was
:" >&5
3905 sed 's/^/| /' conftest.$ac_ext >&5
3910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3911 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3914 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3915 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3916 GCC=`test $ac_compiler_gnu = yes && echo yes`
3917 ac_test_CFLAGS=${CFLAGS+set}
3918 ac_save_CFLAGS=$CFLAGS
3919 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3920 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3921 if test "${ac_cv_prog_cc_g+set}" = set; then
3922 echo $ECHO_N "(cached
) $ECHO_C" >&6
3924 ac_save_c_werror_flag=$ac_c_werror_flag
3925 ac_c_werror_flag=yes
3928 cat >conftest.$ac_ext <<_ACEOF
3931 cat confdefs.h >>conftest.$ac_ext
3932 cat >>conftest.$ac_ext <<_ACEOF
3933 /* end confdefs.h. */
3943 rm -f conftest.$ac_objext
3944 if { (ac_try="$ac_compile"
3946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3947 *) ac_try_echo=$ac_try;;
3949 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3950 (eval "$ac_compile") 2>conftest.er1
3952 grep -v '^ *+' conftest.er1 >conftest.err
3954 cat conftest.err >&5
3955 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3956 (exit $ac_status); } && {
3957 test -z "$ac_c_werror_flag" ||
3958 test ! -s conftest.err
3959 } && test -s conftest.$ac_objext; then
3962 echo "$as_me: failed program was
:" >&5
3963 sed 's/^/| /' conftest.$ac_ext >&5
3966 cat >conftest.$ac_ext <<_ACEOF
3969 cat confdefs.h >>conftest.$ac_ext
3970 cat >>conftest.$ac_ext <<_ACEOF
3971 /* end confdefs.h. */
3981 rm -f conftest.$ac_objext
3982 if { (ac_try="$ac_compile"
3984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3985 *) ac_try_echo=$ac_try;;
3987 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3988 (eval "$ac_compile") 2>conftest.er1
3990 grep -v '^ *+' conftest.er1 >conftest.err
3992 cat conftest.err >&5
3993 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3994 (exit $ac_status); } && {
3995 test -z "$ac_c_werror_flag" ||
3996 test ! -s conftest.err
3997 } && test -s conftest.$ac_objext; then
4000 echo "$as_me: failed program was
:" >&5
4001 sed 's/^/| /' conftest.$ac_ext >&5
4003 ac_c_werror_flag=$ac_save_c_werror_flag
4005 cat >conftest.$ac_ext <<_ACEOF
4008 cat confdefs.h >>conftest.$ac_ext
4009 cat >>conftest.$ac_ext <<_ACEOF
4010 /* end confdefs.h. */
4020 rm -f conftest.$ac_objext
4021 if { (ac_try="$ac_compile"
4023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4024 *) ac_try_echo=$ac_try;;
4026 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4027 (eval "$ac_compile") 2>conftest.er1
4029 grep -v '^ *+' conftest.er1 >conftest.err
4031 cat conftest.err >&5
4032 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4033 (exit $ac_status); } && {
4034 test -z "$ac_c_werror_flag" ||
4035 test ! -s conftest.err
4036 } && test -s conftest.$ac_objext; then
4039 echo "$as_me: failed program was
:" >&5
4040 sed 's/^/| /' conftest.$ac_ext >&5
4045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4052 ac_c_werror_flag=$ac_save_c_werror_flag
4054 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
4055 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4056 if test "$ac_test_CFLAGS" = set; then
4057 CFLAGS=$ac_save_CFLAGS
4058 elif test $ac_cv_prog_cc_g = yes; then
4059 if test "$GCC" = yes; then
4065 if test "$GCC" = yes; then
4071 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
4072 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
4073 if test "${ac_cv_prog_cc_c89+set}" = set; then
4074 echo $ECHO_N "(cached
) $ECHO_C" >&6
4076 ac_cv_prog_cc_c89=no
4078 cat >conftest.$ac_ext <<_ACEOF
4081 cat confdefs.h >>conftest.$ac_ext
4082 cat >>conftest.$ac_ext <<_ACEOF
4083 /* end confdefs.h. */
4086 #include <sys/types.h>
4087 #include <sys/stat.h>
4088 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4089 struct buf { int x; };
4090 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4091 static char *e (p, i)
4097 static char *f (char * (*g) (char **, int), char **p, ...)
4102 s = g (p, va_arg (v,int));
4107 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4108 function prototypes and stuff, but not '\xHH' hex character constants.
4109 These don't provoke an error unfortunately, instead are silently treated
4110 as 'x'. The following induces an error, until -std is added to get
4111 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4112 array size at least. It's necessary to write '\x00'==0 to get something
4113 that's true only with -std. */
4114 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4116 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4117 inside strings and character constants. */
4119 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4121 int test (int i, double x);
4122 struct s1 {int (*f) (int a);};
4123 struct s2 {int (*f) (double a);};
4124 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4130 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4135 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4136 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4138 CC="$ac_save_CC $ac_arg"
4139 rm -f conftest.$ac_objext
4140 if { (ac_try="$ac_compile"
4142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4143 *) ac_try_echo=$ac_try;;
4145 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4146 (eval "$ac_compile") 2>conftest.er1
4148 grep -v '^ *+' conftest.er1 >conftest.err
4150 cat conftest.err >&5
4151 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4152 (exit $ac_status); } && {
4153 test -z "$ac_c_werror_flag" ||
4154 test ! -s conftest.err
4155 } && test -s conftest.$ac_objext; then
4156 ac_cv_prog_cc_c89=$ac_arg
4158 echo "$as_me: failed program was
:" >&5
4159 sed 's/^/| /' conftest.$ac_ext >&5
4164 rm -f core conftest.err conftest.$ac_objext
4165 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
4167 rm -f conftest.$ac_ext
4172 case "x
$ac_cv_prog_cc_c89" in
4174 { echo "$as_me:$LINENO: result
: none needed
" >&5
4175 echo "${ECHO_T}none needed
" >&6; } ;;
4177 { echo "$as_me:$LINENO: result
: unsupported
" >&5
4178 echo "${ECHO_T}unsupported
" >&6; } ;;
4180 CC="$CC $ac_cv_prog_cc_c89"
4181 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
4182 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4187 ac_cpp='$CPP $CPPFLAGS'
4188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4193 # On Suns, sometimes $CPP names a directory.
4194 if test -n "$CPP" && test -d "$CPP"; then
4198 #### Some systems specify a CPP to use unless we are using GCC.
4199 #### Now that we know whether we are using GCC, we can decide whether
4200 #### to use that one.
4201 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
4206 #### Some systems specify a CC to use unless we are using GCC.
4207 #### Now that we know whether we are using GCC, we can decide whether
4208 #### to use that one.
4209 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
4210 test x$cc_specified != xyes
4215 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
4217 CC="$CC $GCC_TEST_OPTIONS"
4220 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
4222 CC="$CC $NON_GCC_TEST_OPTIONS"
4227 ac_cpp='$CPP $CPPFLAGS'
4228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4231 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
4232 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
4233 # On Suns, sometimes $CPP names a directory.
4234 if test -n "$CPP" && test -d "$CPP"; then
4237 if test -z "$CPP"; then
4238 if test "${ac_cv_prog_CPP+set}" = set; then
4239 echo $ECHO_N "(cached
) $ECHO_C" >&6
4241 # Double quotes because CPP needs to be expanded
4242 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
4245 for ac_c_preproc_warn_flag in '' yes
4247 # Use a header file that comes with gcc, so configuring glibc
4248 # with a fresh cross-compiler works.
4249 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4250 # <limits.h> exists even on freestanding compilers.
4251 # On the NeXT, cc -E runs the code through the compiler's parser,
4252 # not just through cpp. "Syntax error
" is here to catch this case.
4253 cat >conftest.$ac_ext <<_ACEOF
4256 cat confdefs.h >>conftest.$ac_ext
4257 cat >>conftest.$ac_ext <<_ACEOF
4258 /* end confdefs.h. */
4260 # include <limits.h>
4262 # include <assert.h>
4266 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4269 *) ac_try_echo=$ac_try;;
4271 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4272 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4274 grep -v '^ *+' conftest.er1 >conftest.err
4276 cat conftest.err >&5
4277 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4278 (exit $ac_status); } >/dev/null && {
4279 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4280 test ! -s conftest.err
4284 echo "$as_me: failed program was
:" >&5
4285 sed 's/^/| /' conftest.$ac_ext >&5
4287 # Broken: fails on valid input.
4291 rm -f conftest.err conftest.$ac_ext
4293 # OK, works on sane cases. Now check whether nonexistent headers
4294 # can be detected and how.
4295 cat >conftest.$ac_ext <<_ACEOF
4298 cat confdefs.h >>conftest.$ac_ext
4299 cat >>conftest.$ac_ext <<_ACEOF
4300 /* end confdefs.h. */
4301 #include <ac_nonexistent.h>
4303 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4306 *) ac_try_echo=$ac_try;;
4308 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4309 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4311 grep -v '^ *+' conftest.er1 >conftest.err
4313 cat conftest.err >&5
4314 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4315 (exit $ac_status); } >/dev/null && {
4316 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4317 test ! -s conftest.err
4319 # Broken: success on invalid input.
4322 echo "$as_me: failed program was
:" >&5
4323 sed 's/^/| /' conftest.$ac_ext >&5
4325 # Passes both tests.
4330 rm -f conftest.err conftest.$ac_ext
4333 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4334 rm -f conftest.err conftest.$ac_ext
4335 if $ac_preproc_ok; then
4347 { echo "$as_me:$LINENO: result
: $CPP" >&5
4348 echo "${ECHO_T}$CPP" >&6; }
4350 for ac_c_preproc_warn_flag in '' yes
4352 # Use a header file that comes with gcc, so configuring glibc
4353 # with a fresh cross-compiler works.
4354 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4355 # <limits.h> exists even on freestanding compilers.
4356 # On the NeXT, cc -E runs the code through the compiler's parser,
4357 # not just through cpp. "Syntax error
" is here to catch this case.
4358 cat >conftest.$ac_ext <<_ACEOF
4361 cat confdefs.h >>conftest.$ac_ext
4362 cat >>conftest.$ac_ext <<_ACEOF
4363 /* end confdefs.h. */
4365 # include <limits.h>
4367 # include <assert.h>
4371 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4374 *) ac_try_echo=$ac_try;;
4376 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4377 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4379 grep -v '^ *+' conftest.er1 >conftest.err
4381 cat conftest.err >&5
4382 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4383 (exit $ac_status); } >/dev/null && {
4384 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4385 test ! -s conftest.err
4389 echo "$as_me: failed program was
:" >&5
4390 sed 's/^/| /' conftest.$ac_ext >&5
4392 # Broken: fails on valid input.
4396 rm -f conftest.err conftest.$ac_ext
4398 # OK, works on sane cases. Now check whether nonexistent headers
4399 # can be detected and how.
4400 cat >conftest.$ac_ext <<_ACEOF
4403 cat confdefs.h >>conftest.$ac_ext
4404 cat >>conftest.$ac_ext <<_ACEOF
4405 /* end confdefs.h. */
4406 #include <ac_nonexistent.h>
4408 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4411 *) ac_try_echo=$ac_try;;
4413 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4414 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4416 grep -v '^ *+' conftest.er1 >conftest.err
4418 cat conftest.err >&5
4419 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4420 (exit $ac_status); } >/dev/null && {
4421 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4422 test ! -s conftest.err
4424 # Broken: success on invalid input.
4427 echo "$as_me: failed program was
:" >&5
4428 sed 's/^/| /' conftest.$ac_ext >&5
4430 # Passes both tests.
4435 rm -f conftest.err conftest.$ac_ext
4438 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4439 rm -f conftest.err conftest.$ac_ext
4440 if $ac_preproc_ok; then
4443 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4444 See \
`config.log' for more details." >&5
4445 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4446 See \`config.log
' for more details." >&2;}
4447 { (exit 1); exit 1; }; }
4451 ac_cpp='$CPP $CPPFLAGS'
4452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4453 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4457 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4458 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4459 if test "${ac_cv_path_GREP+set}" = set; then
4460 echo $ECHO_N "(cached) $ECHO_C" >&6
4462 # Extract the first word of "grep ggrep" to use in msg output
4463 if test -z "$GREP"; then
4464 set dummy grep ggrep; ac_prog_name=$2
4465 if test "${ac_cv_path_GREP+set}" = set; then
4466 echo $ECHO_N "(cached) $ECHO_C" >&6
4468 ac_path_GREP_found=false
4469 # Loop through the user's path and
test for each of PROGNAME-LIST
4470 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4471 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4474 test -z "$as_dir" && as_dir
=.
4475 for ac_prog
in grep ggrep
; do
4476 for ac_exec_ext
in '' $ac_executable_extensions; do
4477 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4478 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4479 # Check for GNU ac_path_GREP and select it if it is found.
4480 # Check for GNU $ac_path_GREP
4481 case `"$ac_path_GREP" --version 2>&1` in
4483 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4486 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4489 cat "conftest.in" "conftest.in" >"conftest.tmp"
4490 mv "conftest.tmp" "conftest.in"
4491 cp "conftest.in" "conftest.nl"
4492 echo 'GREP' >> "conftest.nl"
4493 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4494 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4495 ac_count
=`expr $ac_count + 1`
4496 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4497 # Best one so far, save it but keep looking for a better one
4498 ac_cv_path_GREP
="$ac_path_GREP"
4499 ac_path_GREP_max
=$ac_count
4501 # 10*(2^10) chars as input seems more than enough
4502 test $ac_count -gt 10 && break
4504 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4508 $ac_path_GREP_found && break 3
4518 GREP
="$ac_cv_path_GREP"
4519 if test -z "$GREP"; then
4520 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4521 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4522 { (exit 1); exit 1; }; }
4526 ac_cv_path_GREP
=$GREP
4531 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4532 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4533 GREP
="$ac_cv_path_GREP"
4536 { echo "$as_me:$LINENO: checking for egrep" >&5
4537 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4538 if test "${ac_cv_path_EGREP+set}" = set; then
4539 echo $ECHO_N "(cached) $ECHO_C" >&6
4541 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4542 then ac_cv_path_EGREP
="$GREP -E"
4544 # Extract the first word of "egrep" to use in msg output
4545 if test -z "$EGREP"; then
4546 set dummy
egrep; ac_prog_name
=$2
4547 if test "${ac_cv_path_EGREP+set}" = set; then
4548 echo $ECHO_N "(cached) $ECHO_C" >&6
4550 ac_path_EGREP_found
=false
4551 # Loop through the user's path and test for each of PROGNAME-LIST
4552 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4553 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4556 test -z "$as_dir" && as_dir
=.
4557 for ac_prog
in egrep; do
4558 for ac_exec_ext
in '' $ac_executable_extensions; do
4559 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4560 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4561 # Check for GNU ac_path_EGREP and select it if it is found.
4562 # Check for GNU $ac_path_EGREP
4563 case `"$ac_path_EGREP" --version 2>&1` in
4565 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4568 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4571 cat "conftest.in" "conftest.in" >"conftest.tmp"
4572 mv "conftest.tmp" "conftest.in"
4573 cp "conftest.in" "conftest.nl"
4574 echo 'EGREP' >> "conftest.nl"
4575 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4576 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4577 ac_count
=`expr $ac_count + 1`
4578 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4579 # Best one so far, save it but keep looking for a better one
4580 ac_cv_path_EGREP
="$ac_path_EGREP"
4581 ac_path_EGREP_max
=$ac_count
4583 # 10*(2^10) chars as input seems more than enough
4584 test $ac_count -gt 10 && break
4586 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4590 $ac_path_EGREP_found && break 3
4600 EGREP
="$ac_cv_path_EGREP"
4601 if test -z "$EGREP"; then
4602 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4603 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4604 { (exit 1); exit 1; }; }
4608 ac_cv_path_EGREP
=$EGREP
4614 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4615 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4616 EGREP
="$ac_cv_path_EGREP"
4620 { echo "$as_me:$LINENO: checking for AIX" >&5
4621 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4622 cat >conftest.
$ac_ext <<_ACEOF
4625 cat confdefs.h
>>conftest.
$ac_ext
4626 cat >>conftest.
$ac_ext <<_ACEOF
4627 /* end confdefs.h. */
4633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4634 $EGREP "yes" >/dev
/null
2>&1; then
4635 { echo "$as_me:$LINENO: result: yes" >&5
4636 echo "${ECHO_T}yes" >&6; }
4637 cat >>confdefs.h
<<\_ACEOF
4638 #define _ALL_SOURCE 1
4642 { echo "$as_me:$LINENO: result: no" >&5
4643 echo "${ECHO_T}no" >&6; }
4649 cat >>confdefs.h
<<\_ACEOF
4650 #define _GNU_SOURCE 1
4655 ### Use -Wno-pointer-sign if the compiler supports it
4656 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4657 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4658 SAVE_CFLAGS
="$CFLAGS"
4659 CFLAGS
="$CFLAGS -Wno-pointer-sign"
4660 cat >conftest.
$ac_ext <<_ACEOF
4663 cat confdefs.h
>>conftest.
$ac_ext
4664 cat >>conftest.
$ac_ext <<_ACEOF
4665 /* end confdefs.h. */
4675 rm -f conftest.
$ac_objext
4676 if { (ac_try
="$ac_compile"
4678 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4679 *) ac_try_echo=$ac_try;;
4681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4682 (eval "$ac_compile") 2>conftest.er1
4684 grep -v '^ *+' conftest.er1 >conftest.err
4686 cat conftest.err >&5
4687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688 (exit $ac_status); } && {
4689 test -z "$ac_c_werror_flag" ||
4690 test ! -s conftest.err
4691 } && test -s conftest.$ac_objext; then
4694 echo "$as_me: failed program was:" >&5
4695 sed 's/^/| /' conftest.$ac_ext >&5
4700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4701 if test $has_option = yes; then
4702 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4704 { echo "$as_me:$LINENO: result: $has_option" >&5
4705 echo "${ECHO_T}$has_option" >&6; }
4706 CFLAGS="$SAVE_CFLAGS"
4710 #### Some other nice autoconf tests.
4712 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4713 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4715 if test "$LN_S" = "ln -s"; then
4716 { echo "$as_me:$LINENO: result: yes" >&5
4717 echo "${ECHO_T}yes" >&6; }
4719 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4720 echo "${ECHO_T}no, using $LN_S" >&6; }
4724 ac_cpp='$CPP $CPPFLAGS'
4725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4728 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4729 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4730 # On Suns, sometimes $CPP names a directory.
4731 if test -n "$CPP" && test -d "$CPP"; then
4734 if test -z "$CPP"; then
4735 if test "${ac_cv_prog_CPP+set}" = set; then
4736 echo $ECHO_N "(cached) $ECHO_C" >&6
4738 # Double quotes because CPP needs to be expanded
4739 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4742 for ac_c_preproc_warn_flag in '' yes
4744 # Use a header file that comes with gcc, so configuring glibc
4745 # with a fresh cross-compiler works.
4746 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4747 # <limits.h> exists even on freestanding compilers.
4748 # On the NeXT, cc -E runs the code through the compiler's parser,
4749 # not just through cpp. "Syntax error" is here to catch this case.
4750 cat >conftest.$ac_ext <<_ACEOF
4753 cat confdefs.h >>conftest.$ac_ext
4754 cat >>conftest.$ac_ext <<_ACEOF
4755 /* end confdefs.h. */
4757 # include <limits.h>
4759 # include <assert.h>
4763 if { (ac_try="$ac_cpp conftest.$ac_ext"
4765 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4766 *) ac_try_echo
=$ac_try;;
4768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4769 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4771 grep -v '^ *+' conftest.er1
>conftest.err
4773 cat conftest.err
>&5
4774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775 (exit $ac_status); } >/dev
/null
&& {
4776 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4777 test ! -s conftest.err
4781 echo "$as_me: failed program was:" >&5
4782 sed 's/^/| /' conftest.
$ac_ext >&5
4784 # Broken: fails on valid input.
4788 rm -f conftest.err conftest.
$ac_ext
4790 # OK, works on sane cases. Now check whether nonexistent headers
4791 # can be detected and how.
4792 cat >conftest.
$ac_ext <<_ACEOF
4795 cat confdefs.h
>>conftest.
$ac_ext
4796 cat >>conftest.
$ac_ext <<_ACEOF
4797 /* end confdefs.h. */
4798 #include <ac_nonexistent.h>
4800 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4802 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4803 *) ac_try_echo=$ac_try;;
4805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4806 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4808 grep -v '^ *+' conftest.er1 >conftest.err
4810 cat conftest.err >&5
4811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812 (exit $ac_status); } >/dev/null && {
4813 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4814 test ! -s conftest.err
4816 # Broken: success on invalid input.
4819 echo "$as_me: failed program was:" >&5
4820 sed 's/^/| /' conftest.$ac_ext >&5
4822 # Passes both tests.
4827 rm -f conftest.err conftest.$ac_ext
4830 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4831 rm -f conftest.err conftest.
$ac_ext
4832 if $ac_preproc_ok; then
4844 { echo "$as_me:$LINENO: result: $CPP" >&5
4845 echo "${ECHO_T}$CPP" >&6; }
4847 for ac_c_preproc_warn_flag
in '' yes
4849 # Use a header file that comes with gcc, so configuring glibc
4850 # with a fresh cross-compiler works.
4851 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4852 # <limits.h> exists even on freestanding compilers.
4853 # On the NeXT, cc -E runs the code through the compiler's parser,
4854 # not just through cpp. "Syntax error" is here to catch this case.
4855 cat >conftest.
$ac_ext <<_ACEOF
4858 cat confdefs.h
>>conftest.
$ac_ext
4859 cat >>conftest.
$ac_ext <<_ACEOF
4860 /* end confdefs.h. */
4862 # include <limits.h>
4864 # include <assert.h>
4868 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4870 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4871 *) ac_try_echo=$ac_try;;
4873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4874 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4876 grep -v '^ *+' conftest.er1 >conftest.err
4878 cat conftest.err >&5
4879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880 (exit $ac_status); } >/dev/null && {
4881 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4882 test ! -s conftest.err
4886 echo "$as_me: failed program was:" >&5
4887 sed 's/^/| /' conftest.$ac_ext >&5
4889 # Broken: fails on valid input.
4893 rm -f conftest.err conftest.$ac_ext
4895 # OK, works on sane cases. Now check whether nonexistent headers
4896 # can be detected and how.
4897 cat >conftest.$ac_ext <<_ACEOF
4900 cat confdefs.h >>conftest.$ac_ext
4901 cat >>conftest.$ac_ext <<_ACEOF
4902 /* end confdefs.h. */
4903 #include <ac_nonexistent.h>
4905 if { (ac_try="$ac_cpp conftest.$ac_ext"
4907 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4908 *) ac_try_echo
=$ac_try;;
4910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4911 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4913 grep -v '^ *+' conftest.er1
>conftest.err
4915 cat conftest.err
>&5
4916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917 (exit $ac_status); } >/dev
/null
&& {
4918 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4919 test ! -s conftest.err
4921 # Broken: success on invalid input.
4924 echo "$as_me: failed program was:" >&5
4925 sed 's/^/| /' conftest.
$ac_ext >&5
4927 # Passes both tests.
4932 rm -f conftest.err conftest.
$ac_ext
4935 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4936 rm -f conftest.err conftest.
$ac_ext
4937 if $ac_preproc_ok; then
4940 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4941 See \`config.log' for more details." >&5
4942 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4943 See \`config.log' for more details." >&2;}
4944 { (exit 1); exit 1; }; }
4948 ac_cpp
='$CPP $CPPFLAGS'
4949 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4950 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4951 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4953 # Find a good install program. We prefer a C program (faster),
4954 # so one script is as good as another. But avoid the broken or
4955 # incompatible versions:
4956 # SysV /etc/install, /usr/sbin/install
4957 # SunOS /usr/etc/install
4958 # IRIX /sbin/install
4960 # AmigaOS /C/install, which installs bootblocks on floppy discs
4961 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4962 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4963 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4964 # OS/2's system install, which has a completely different semantic
4965 # ./install, which can be erroneously created by make from ./install.sh.
4966 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4967 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4968 if test -z "$INSTALL"; then
4969 if test "${ac_cv_path_install+set}" = set; then
4970 echo $ECHO_N "(cached) $ECHO_C" >&6
4972 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4976 test -z "$as_dir" && as_dir
=.
4977 # Account for people who put trailing slashes in PATH elements.
4979 .
/ | .
// |
/cC
/* | \
4980 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4981 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4984 # OSF1 and SCO ODT 3.0 have their own names for install.
4985 # Don't use installbsd from OSF since it installs stuff as root
4987 for ac_prog
in ginstall scoinst
install; do
4988 for ac_exec_ext
in '' $ac_executable_extensions; do
4989 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4990 if test $ac_prog = install &&
4991 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4992 # AIX install. It has an incompatible calling convention.
4994 elif test $ac_prog = install &&
4995 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4996 # program-specific install script used by HP pwplus--don't use.
4999 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5012 if test "${ac_cv_path_install+set}" = set; then
5013 INSTALL
=$ac_cv_path_install
5015 # As a last resort, use the slow shell script. Don't cache a
5016 # value for INSTALL within a source directory, because that will
5017 # break other packages using the cache if that directory is
5018 # removed, or if the value is a relative name.
5019 INSTALL
=$ac_install_sh
5022 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5023 echo "${ECHO_T}$INSTALL" >&6; }
5025 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5026 # It thinks the first close brace ends the variable substitution.
5027 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5029 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5031 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5033 if test "x$RANLIB" = x
; then
5034 if test -n "$ac_tool_prefix"; then
5035 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5036 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5037 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5039 if test "${ac_cv_prog_RANLIB+set}" = set; then
5040 echo $ECHO_N "(cached) $ECHO_C" >&6
5042 if test -n "$RANLIB"; then
5043 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5045 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5049 test -z "$as_dir" && as_dir
=.
5050 for ac_exec_ext
in '' $ac_executable_extensions; do
5051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5052 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5062 RANLIB
=$ac_cv_prog_RANLIB
5063 if test -n "$RANLIB"; then
5064 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5065 echo "${ECHO_T}$RANLIB" >&6; }
5067 { echo "$as_me:$LINENO: result: no" >&5
5068 echo "${ECHO_T}no" >&6; }
5073 if test -z "$ac_cv_prog_RANLIB"; then
5074 ac_ct_RANLIB
=$RANLIB
5075 # Extract the first word of "ranlib", so it can be a program name with args.
5076 set dummy ranlib
; ac_word
=$2
5077 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5079 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5080 echo $ECHO_N "(cached) $ECHO_C" >&6
5082 if test -n "$ac_ct_RANLIB"; then
5083 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5085 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5089 test -z "$as_dir" && as_dir
=.
5090 for ac_exec_ext
in '' $ac_executable_extensions; do
5091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5092 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5102 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5103 if test -n "$ac_ct_RANLIB"; then
5104 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5105 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5107 { echo "$as_me:$LINENO: result: no" >&5
5108 echo "${ECHO_T}no" >&6; }
5111 if test "x$ac_ct_RANLIB" = x
; then
5114 case $cross_compiling:$ac_tool_warned in
5116 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5117 whose name does not start with the host triplet. If you think this
5118 configuration is useful to you, please write to autoconf@gnu.org." >&5
5119 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5120 whose name does not start with the host triplet. If you think this
5121 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5122 ac_tool_warned
=yes ;;
5124 RANLIB
=$ac_ct_RANLIB
5127 RANLIB
="$ac_cv_prog_RANLIB"
5131 # Extract the first word of "install-info", so it can be a program name with args.
5132 set dummy install-info
; ac_word
=$2
5133 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5135 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5136 echo $ECHO_N "(cached) $ECHO_C" >&6
5138 case $INSTALL_INFO in
5140 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5143 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5147 test -z "$as_dir" && as_dir
=.
5148 for ac_exec_ext
in '' $ac_executable_extensions; do
5149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5150 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5161 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5162 if test -n "$INSTALL_INFO"; then
5163 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5164 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5166 { echo "$as_me:$LINENO: result: no" >&5
5167 echo "${ECHO_T}no" >&6; }
5171 # Extract the first word of "install-info", so it can be a program name with args.
5172 set dummy install-info
; ac_word
=$2
5173 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5175 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5176 echo $ECHO_N "(cached) $ECHO_C" >&6
5178 case $INSTALL_INFO in
5180 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5183 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5184 for as_dir
in /usr
/sbin
5187 test -z "$as_dir" && as_dir
=.
5188 for ac_exec_ext
in '' $ac_executable_extensions; do
5189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5190 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5201 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5202 if test -n "$INSTALL_INFO"; then
5203 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5204 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5206 { echo "$as_me:$LINENO: result: no" >&5
5207 echo "${ECHO_T}no" >&6; }
5211 # Extract the first word of "install-info", so it can be a program name with args.
5212 set dummy install-info
; ac_word
=$2
5213 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5215 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5216 echo $ECHO_N "(cached) $ECHO_C" >&6
5218 case $INSTALL_INFO in
5220 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5223 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5227 test -z "$as_dir" && as_dir
=.
5228 for ac_exec_ext
in '' $ac_executable_extensions; do
5229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5230 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5238 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5242 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5243 if test -n "$INSTALL_INFO"; then
5244 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5245 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5247 { echo "$as_me:$LINENO: result: no" >&5
5248 echo "${ECHO_T}no" >&6; }
5252 # Extract the first word of "gzip", so it can be a program name with args.
5253 set dummy
gzip; ac_word
=$2
5254 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5256 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5257 echo $ECHO_N "(cached) $ECHO_C" >&6
5261 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5264 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5268 test -z "$as_dir" && as_dir
=.
5269 for ac_exec_ext
in '' $ac_executable_extensions; do
5270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5271 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5272 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5282 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5283 if test -n "$GZIP_PROG"; then
5284 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5285 echo "${ECHO_T}$GZIP_PROG" >&6; }
5287 { echo "$as_me:$LINENO: result: no" >&5
5288 echo "${ECHO_T}no" >&6; }
5294 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5296 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5299 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5301 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5305 late_LDFLAGS
=$LDFLAGS
5306 if test "$GCC" = yes; then
5307 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5309 LDFLAGS
="$LDFLAGS -znocombreloc"
5312 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5313 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5314 cat >conftest.
$ac_ext <<_ACEOF
5317 rm -f conftest.
$ac_objext conftest
$ac_exeext
5318 if { (ac_try
="$ac_link"
5320 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5321 *) ac_try_echo=$ac_try;;
5323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5324 (eval "$ac_link") 2>conftest.er1
5326 grep -v '^ *+' conftest.er1 >conftest.err
5328 cat conftest.err >&5
5329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330 (exit $ac_status); } && {
5331 test -z "$ac_c_werror_flag" ||
5332 test ! -s conftest.err
5333 } && test -s conftest$ac_exeext &&
5334 $as_test_x conftest$ac_exeext; then
5335 { echo "$as_me:$LINENO: result: yes" >&5
5336 echo "${ECHO_T}yes" >&6; }
5338 echo "$as_me: failed program was:" >&5
5339 sed 's/^/| /' conftest.$ac_ext >&5
5341 LDFLAGS=$late_LDFLAGS
5342 { echo "$as_me:$LINENO: result: no" >&5
5343 echo "${ECHO_T}no" >&6; }
5346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5347 conftest$ac_exeext conftest.$ac_ext
5349 #### Extract some information from the operating system and machine files.
5351 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5352 - which libraries the lib-src programs will want, and
5353 - whether the GNU malloc routines are usable..." >&5
5354 echo "$as_me: checking the machine- and system-dependent files to find out
5355 - which libraries the lib-src programs will want, and
5356 - whether the GNU malloc routines are usable..." >&6;}
5358 ### First figure out CFLAGS (which we use for running the compiler here)
5359 ### and REAL_CFLAGS (which we use for real compilation).
5360 ### The two are the same except on a few systems, where they are made
5361 ### different to work around various lossages. For example,
5362 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5363 ### as implying static linking.
5365 ### If the CFLAGS env var is specified, we use that value
5366 ### instead of the default.
5368 ### It's not important that this name contain the PID; you can't run
5369 ### two configures in the same directory and have anything work
5371 tempcname="conftest.c"
5374 #include "'${srcdir}'/src/'${opsysfile}'"
5375 #include "'${srcdir}'/src/'${machfile}'"
5376 #ifndef LIBS_MACHINE
5377 #define LIBS_MACHINE
5382 #ifndef C_SWITCH_SYSTEM
5383 #define C_SWITCH_SYSTEM
5385 #ifndef C_SWITCH_MACHINE
5386 #define C_SWITCH_MACHINE
5388 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5389 configure___ c_switch_system=C_SWITCH_SYSTEM
5390 configure___ c_switch_machine=C_SWITCH_MACHINE
5393 #define LIB_X11_LIB -lX11
5396 #ifndef LIBX11_MACHINE
5397 #define LIBX11_MACHINE
5400 #ifndef LIBX11_SYSTEM
5401 #define LIBX11_SYSTEM
5403 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5406 configure___ unexec=UNEXEC
5408 configure___ unexec=unexec.o
5411 #ifdef SYSTEM_MALLOC
5412 configure___ system_malloc=yes
5414 configure___ system_malloc=no
5417 #ifdef USE_MMAP_FOR_BUFFERS
5418 configure___ use_mmap_for_buffers=yes
5420 configure___ use_mmap_for_buffers=no
5423 #ifndef C_DEBUG_SWITCH
5424 #define C_DEBUG_SWITCH -g
5427 #ifndef C_OPTIMIZE_SWITCH
5429 #define C_OPTIMIZE_SWITCH -O2
5431 #define C_OPTIMIZE_SWITCH -O
5435 #ifndef C_WARNINGS_SWITCH
5436 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5439 #ifndef LD_SWITCH_MACHINE
5440 #define LD_SWITCH_MACHINE
5443 #ifndef LD_SWITCH_SYSTEM
5444 #define LD_SWITCH_SYSTEM
5447 #ifndef LD_SWITCH_X_SITE_AUX
5448 #define LD_SWITCH_X_SITE_AUX
5451 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5452 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5454 #ifdef THIS_IS_CONFIGURE
5456 /* Get the CFLAGS for tests in configure. */
5458 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5460 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5463 #else /* not THIS_IS_CONFIGURE */
5465 /* Get the CFLAGS for real compilation. */
5467 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5469 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5472 #endif /* not THIS_IS_CONFIGURE */
5475 # The value of CPP is a quoted variable reference, so we need to do this
5476 # to get its actual value...
5477 CPP=`eval "echo $CPP"`
5478 eval `${CPP} -Isrc ${tempcname} \
5479 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5480 if test "x$SPECIFIED_CFLAGS" = x; then
5481 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5482 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5484 REAL_CFLAGS="$CFLAGS"
5488 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5490 ### Make sure subsequent tests use flags consistent with the build flags.
5492 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5493 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5495 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5500 # Check whether --enable-largefile was given.
5501 if test "${enable_largefile+set}" = set; then
5502 enableval=$enable_largefile;
5505 if test "$enable_largefile" != no; then
5507 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5508 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5509 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5510 echo $ECHO_N "(cached) $ECHO_C" >&6
5512 ac_cv_sys_largefile_CC=no
5513 if test "$GCC" != yes; then
5516 # IRIX 6.2 and later do not support large files by default,
5517 # so use the C compiler's -n32 option if that helps.
5518 cat >conftest.$ac_ext <<_ACEOF
5521 cat confdefs.h >>conftest.$ac_ext
5522 cat >>conftest.$ac_ext <<_ACEOF
5523 /* end confdefs.h. */
5524 #include <sys/types.h>
5525 /* Check that off_t can represent 2**63 - 1 correctly.
5526 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5527 since some C++ compilers masquerading as C compilers
5528 incorrectly reject 9223372036854775807. */
5529 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5530 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5531 && LARGE_OFF_T % 2147483647 == 1)
5541 rm -f conftest.$ac_objext
5542 if { (ac_try="$ac_compile"
5544 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5545 *) ac_try_echo
=$ac_try;;
5547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5548 (eval "$ac_compile") 2>conftest.er1
5550 grep -v '^ *+' conftest.er1
>conftest.err
5552 cat conftest.err
>&5
5553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554 (exit $ac_status); } && {
5555 test -z "$ac_c_werror_flag" ||
5556 test ! -s conftest.err
5557 } && test -s conftest.
$ac_objext; then
5560 echo "$as_me: failed program was:" >&5
5561 sed 's/^/| /' conftest.
$ac_ext >&5
5566 rm -f core conftest.err conftest.
$ac_objext
5568 rm -f conftest.
$ac_objext
5569 if { (ac_try
="$ac_compile"
5571 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5572 *) ac_try_echo=$ac_try;;
5574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5575 (eval "$ac_compile") 2>conftest.er1
5577 grep -v '^ *+' conftest.er1 >conftest.err
5579 cat conftest.err >&5
5580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5581 (exit $ac_status); } && {
5582 test -z "$ac_c_werror_flag" ||
5583 test ! -s conftest.err
5584 } && test -s conftest.$ac_objext; then
5585 ac_cv_sys_largefile_CC=' -n32'; break
5587 echo "$as_me: failed program was:" >&5
5588 sed 's/^/| /' conftest.$ac_ext >&5
5593 rm -f core conftest.err conftest.$ac_objext
5597 rm -f conftest.$ac_ext
5600 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5601 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5602 if test "$ac_cv_sys_largefile_CC" != no; then
5603 CC=$CC$ac_cv_sys_largefile_CC
5606 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5607 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5608 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5609 echo $ECHO_N "(cached) $ECHO_C" >&6
5612 cat >conftest.$ac_ext <<_ACEOF
5615 cat confdefs.h >>conftest.$ac_ext
5616 cat >>conftest.$ac_ext <<_ACEOF
5617 /* end confdefs.h. */
5618 #include <sys/types.h>
5619 /* Check that off_t can represent 2**63 - 1 correctly.
5620 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5621 since some C++ compilers masquerading as C compilers
5622 incorrectly reject 9223372036854775807. */
5623 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5624 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5625 && LARGE_OFF_T % 2147483647 == 1)
5635 rm -f conftest.$ac_objext
5636 if { (ac_try="$ac_compile"
5638 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5639 *) ac_try_echo
=$ac_try;;
5641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5642 (eval "$ac_compile") 2>conftest.er1
5644 grep -v '^ *+' conftest.er1
>conftest.err
5646 cat conftest.err
>&5
5647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648 (exit $ac_status); } && {
5649 test -z "$ac_c_werror_flag" ||
5650 test ! -s conftest.err
5651 } && test -s conftest.
$ac_objext; then
5652 ac_cv_sys_file_offset_bits
=no
; break
5654 echo "$as_me: failed program was:" >&5
5655 sed 's/^/| /' conftest.
$ac_ext >&5
5660 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5661 cat >conftest.
$ac_ext <<_ACEOF
5664 cat confdefs.h
>>conftest.
$ac_ext
5665 cat >>conftest.
$ac_ext <<_ACEOF
5666 /* end confdefs.h. */
5667 #define _FILE_OFFSET_BITS 64
5668 #include <sys/types.h>
5669 /* Check that off_t can represent 2**63 - 1 correctly.
5670 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5671 since some C++ compilers masquerading as C compilers
5672 incorrectly reject 9223372036854775807. */
5673 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5674 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5675 && LARGE_OFF_T % 2147483647 == 1)
5685 rm -f conftest.
$ac_objext
5686 if { (ac_try
="$ac_compile"
5688 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5689 *) ac_try_echo=$ac_try;;
5691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5692 (eval "$ac_compile") 2>conftest.er1
5694 grep -v '^ *+' conftest.er1 >conftest.err
5696 cat conftest.err >&5
5697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698 (exit $ac_status); } && {
5699 test -z "$ac_c_werror_flag" ||
5700 test ! -s conftest.err
5701 } && test -s conftest.$ac_objext; then
5702 ac_cv_sys_file_offset_bits=64; break
5704 echo "$as_me: failed program was:" >&5
5705 sed 's/^/| /' conftest.$ac_ext >&5
5710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5711 ac_cv_sys_file_offset_bits=unknown
5715 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5716 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5717 case $ac_cv_sys_file_offset_bits in #(
5720 cat >>confdefs.h <<_ACEOF
5721 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5726 if test $ac_cv_sys_file_offset_bits = unknown; then
5727 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5728 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5729 if test "${ac_cv_sys_large_files+set}" = set; then
5730 echo $ECHO_N "(cached) $ECHO_C" >&6
5733 cat >conftest.$ac_ext <<_ACEOF
5736 cat confdefs.h >>conftest.$ac_ext
5737 cat >>conftest.$ac_ext <<_ACEOF
5738 /* end confdefs.h. */
5739 #include <sys/types.h>
5740 /* Check that off_t can represent 2**63 - 1 correctly.
5741 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5742 since some C++ compilers masquerading as C compilers
5743 incorrectly reject 9223372036854775807. */
5744 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5745 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5746 && LARGE_OFF_T % 2147483647 == 1)
5756 rm -f conftest.$ac_objext
5757 if { (ac_try="$ac_compile"
5759 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5760 *) ac_try_echo
=$ac_try;;
5762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5763 (eval "$ac_compile") 2>conftest.er1
5765 grep -v '^ *+' conftest.er1
>conftest.err
5767 cat conftest.err
>&5
5768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769 (exit $ac_status); } && {
5770 test -z "$ac_c_werror_flag" ||
5771 test ! -s conftest.err
5772 } && test -s conftest.
$ac_objext; then
5773 ac_cv_sys_large_files
=no
; break
5775 echo "$as_me: failed program was:" >&5
5776 sed 's/^/| /' conftest.
$ac_ext >&5
5781 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5782 cat >conftest.
$ac_ext <<_ACEOF
5785 cat confdefs.h
>>conftest.
$ac_ext
5786 cat >>conftest.
$ac_ext <<_ACEOF
5787 /* end confdefs.h. */
5788 #define _LARGE_FILES 1
5789 #include <sys/types.h>
5790 /* Check that off_t can represent 2**63 - 1 correctly.
5791 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5792 since some C++ compilers masquerading as C compilers
5793 incorrectly reject 9223372036854775807. */
5794 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5795 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5796 && LARGE_OFF_T % 2147483647 == 1)
5806 rm -f conftest.
$ac_objext
5807 if { (ac_try
="$ac_compile"
5809 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5810 *) ac_try_echo=$ac_try;;
5812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5813 (eval "$ac_compile") 2>conftest.er1
5815 grep -v '^ *+' conftest.er1 >conftest.err
5817 cat conftest.err >&5
5818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819 (exit $ac_status); } && {
5820 test -z "$ac_c_werror_flag" ||
5821 test ! -s conftest.err
5822 } && test -s conftest.$ac_objext; then
5823 ac_cv_sys_large_files=1; break
5825 echo "$as_me: failed program was:" >&5
5826 sed 's/^/| /' conftest.$ac_ext >&5
5831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5832 ac_cv_sys_large_files=unknown
5836 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5837 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5838 case $ac_cv_sys_large_files in #(
5841 cat >>confdefs.h <<_ACEOF
5842 #define _LARGE_FILES $ac_cv_sys_large_files
5852 ### The standard library on x86-64 GNU/Linux distributions can
5853 ### be located in either /usr/lib64 or /usr/lib.
5854 case "${canonical}" in
5855 x86_64-*-linux-gnu* )
5856 if test -d /usr/lib64; then
5858 cat >>confdefs.h <<\_ACEOF
5859 #define HAVE_X86_64_LIB64_DIR 1
5868 if test "${with_sound}" != "no"; then
5869 # Sound support for GNU/Linux and the free BSDs.
5870 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5871 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5872 if test "${ac_cv_header_stdc+set}" = set; then
5873 echo $ECHO_N "(cached) $ECHO_C" >&6
5875 cat >conftest.$ac_ext <<_ACEOF
5878 cat confdefs.h >>conftest.$ac_ext
5879 cat >>conftest.$ac_ext <<_ACEOF
5880 /* end confdefs.h. */
5894 rm -f conftest.$ac_objext
5895 if { (ac_try="$ac_compile"
5897 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5898 *) ac_try_echo
=$ac_try;;
5900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5901 (eval "$ac_compile") 2>conftest.er1
5903 grep -v '^ *+' conftest.er1
>conftest.err
5905 cat conftest.err
>&5
5906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907 (exit $ac_status); } && {
5908 test -z "$ac_c_werror_flag" ||
5909 test ! -s conftest.err
5910 } && test -s conftest.
$ac_objext; then
5911 ac_cv_header_stdc
=yes
5913 echo "$as_me: failed program was:" >&5
5914 sed 's/^/| /' conftest.
$ac_ext >&5
5916 ac_cv_header_stdc
=no
5919 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5921 if test $ac_cv_header_stdc = yes; then
5922 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5923 cat >conftest.
$ac_ext <<_ACEOF
5926 cat confdefs.h
>>conftest.
$ac_ext
5927 cat >>conftest.
$ac_ext <<_ACEOF
5928 /* end confdefs.h. */
5932 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5933 $EGREP "memchr" >/dev
/null
2>&1; then
5936 ac_cv_header_stdc
=no
5942 if test $ac_cv_header_stdc = yes; then
5943 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5944 cat >conftest.
$ac_ext <<_ACEOF
5947 cat confdefs.h
>>conftest.
$ac_ext
5948 cat >>conftest.
$ac_ext <<_ACEOF
5949 /* end confdefs.h. */
5953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5954 $EGREP "free" >/dev
/null
2>&1; then
5957 ac_cv_header_stdc
=no
5963 if test $ac_cv_header_stdc = yes; then
5964 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5965 if test "$cross_compiling" = yes; then
5968 cat >conftest.
$ac_ext <<_ACEOF
5971 cat confdefs.h
>>conftest.
$ac_ext
5972 cat >>conftest.
$ac_ext <<_ACEOF
5973 /* end confdefs.h. */
5976 #if ((' ' & 0x0FF) == 0x020)
5977 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5978 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5980 # define ISLOWER(c) \
5981 (('a' <= (c) && (c) <= 'i') \
5982 || ('j' <= (c) && (c) <= 'r') \
5983 || ('s' <= (c) && (c) <= 'z'))
5984 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5987 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5992 for (i = 0; i < 256; i++)
5993 if (XOR (islower (i), ISLOWER (i))
5994 || toupper (i) != TOUPPER (i))
5999 rm -f conftest
$ac_exeext
6000 if { (ac_try
="$ac_link"
6002 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6003 *) ac_try_echo=$ac_try;;
6005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6006 (eval "$ac_link") 2>&5
6008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6010 { (case "(($ac_try" in
6011 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6012 *) ac_try_echo
=$ac_try;;
6014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6015 (eval "$ac_try") 2>&5
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); }; }; then
6021 echo "$as_me: program exited with status $ac_status" >&5
6022 echo "$as_me: failed program was:" >&5
6023 sed 's/^/| /' conftest.
$ac_ext >&5
6026 ac_cv_header_stdc
=no
6028 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6034 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6035 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6036 if test $ac_cv_header_stdc = yes; then
6038 cat >>confdefs.h
<<\_ACEOF
6039 #define STDC_HEADERS 1
6044 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6054 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6055 inttypes.h stdint.h unistd.h
6057 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6058 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6060 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6061 echo $ECHO_N "(cached) $ECHO_C" >&6
6063 cat >conftest.
$ac_ext <<_ACEOF
6066 cat confdefs.h
>>conftest.
$ac_ext
6067 cat >>conftest.
$ac_ext <<_ACEOF
6068 /* end confdefs.h. */
6069 $ac_includes_default
6071 #include <$ac_header>
6073 rm -f conftest.
$ac_objext
6074 if { (ac_try
="$ac_compile"
6076 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6077 *) ac_try_echo=$ac_try;;
6079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6080 (eval "$ac_compile") 2>conftest.er1
6082 grep -v '^ *+' conftest.er1 >conftest.err
6084 cat conftest.err >&5
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); } && {
6087 test -z "$ac_c_werror_flag" ||
6088 test ! -s conftest.err
6089 } && test -s conftest.$ac_objext; then
6090 eval "$as_ac_Header=yes"
6092 echo "$as_me: failed program was:" >&5
6093 sed 's/^/| /' conftest.$ac_ext >&5
6095 eval "$as_ac_Header=no"
6098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6100 ac_res=`eval echo '${'$as_ac_Header'}'`
6101 { echo "$as_me:$LINENO: result: $ac_res" >&5
6102 echo "${ECHO_T}$ac_res" >&6; }
6103 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6104 cat >>confdefs.h <<_ACEOF
6105 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6116 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6118 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6119 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6120 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6121 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6122 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6123 echo $ECHO_N "(cached) $ECHO_C" >&6
6125 ac_res=`eval echo '${'$as_ac_Header'}'`
6126 { echo "$as_me:$LINENO: result: $ac_res" >&5
6127 echo "${ECHO_T}$ac_res" >&6; }
6129 # Is the header compilable?
6130 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6131 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6132 cat >conftest.$ac_ext <<_ACEOF
6135 cat confdefs.h >>conftest.$ac_ext
6136 cat >>conftest.$ac_ext <<_ACEOF
6137 /* end confdefs.h. */
6138 $ac_includes_default
6139 #include <$ac_header>
6141 rm -f conftest.$ac_objext
6142 if { (ac_try="$ac_compile"
6144 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6145 *) ac_try_echo
=$ac_try;;
6147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6148 (eval "$ac_compile") 2>conftest.er1
6150 grep -v '^ *+' conftest.er1
>conftest.err
6152 cat conftest.err
>&5
6153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154 (exit $ac_status); } && {
6155 test -z "$ac_c_werror_flag" ||
6156 test ! -s conftest.err
6157 } && test -s conftest.
$ac_objext; then
6158 ac_header_compiler
=yes
6160 echo "$as_me: failed program was:" >&5
6161 sed 's/^/| /' conftest.
$ac_ext >&5
6163 ac_header_compiler
=no
6166 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6167 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6168 echo "${ECHO_T}$ac_header_compiler" >&6; }
6170 # Is the header present?
6171 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6172 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6173 cat >conftest.
$ac_ext <<_ACEOF
6176 cat confdefs.h
>>conftest.
$ac_ext
6177 cat >>conftest.
$ac_ext <<_ACEOF
6178 /* end confdefs.h. */
6179 #include <$ac_header>
6181 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6183 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6184 *) ac_try_echo=$ac_try;;
6186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6187 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6189 grep -v '^ *+' conftest.er1 >conftest.err
6191 cat conftest.err >&5
6192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6193 (exit $ac_status); } >/dev/null && {
6194 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6195 test ! -s conftest.err
6197 ac_header_preproc=yes
6199 echo "$as_me: failed program was:" >&5
6200 sed 's/^/| /' conftest.$ac_ext >&5
6202 ac_header_preproc=no
6205 rm -f conftest.err conftest.$ac_ext
6206 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6207 echo "${ECHO_T}$ac_header_preproc" >&6; }
6209 # So? What about this header?
6210 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6212 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6213 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6214 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6215 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6216 ac_header_preproc=yes
6219 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6220 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6221 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6222 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6223 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6224 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6225 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6226 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6227 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6228 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6229 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6230 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6234 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6235 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6236 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6237 echo $ECHO_N "(cached) $ECHO_C" >&6
6239 eval "$as_ac_Header=\$ac_header_preproc"
6241 ac_res=`eval echo '${'$as_ac_Header'}'`
6242 { echo "$as_me:$LINENO: result: $ac_res" >&5
6243 echo "${ECHO_T}$ac_res" >&6; }
6246 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6247 cat >>confdefs.h <<_ACEOF
6248 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6255 # Emulation library used on NetBSD.
6256 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6257 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6258 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6259 echo $ECHO_N "(cached) $ECHO_C" >&6
6261 ac_check_lib_save_LIBS=$LIBS
6262 LIBS="-lossaudio $LIBS"
6263 cat >conftest.$ac_ext <<_ACEOF
6266 cat confdefs.h >>conftest.$ac_ext
6267 cat >>conftest.$ac_ext <<_ACEOF
6268 /* end confdefs.h. */
6270 /* Override any GCC internal prototype to avoid an error.
6271 Use char because int might match the return type of a GCC
6272 builtin and then its argument prototype would still apply. */
6280 return _oss_ioctl ();
6285 rm -f conftest.$ac_objext conftest$ac_exeext
6286 if { (ac_try="$ac_link"
6288 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6289 *) ac_try_echo
=$ac_try;;
6291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6292 (eval "$ac_link") 2>conftest.er1
6294 grep -v '^ *+' conftest.er1
>conftest.err
6296 cat conftest.err
>&5
6297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298 (exit $ac_status); } && {
6299 test -z "$ac_c_werror_flag" ||
6300 test ! -s conftest.err
6301 } && test -s conftest
$ac_exeext &&
6302 $as_test_x conftest
$ac_exeext; then
6303 ac_cv_lib_ossaudio__oss_ioctl
=yes
6305 echo "$as_me: failed program was:" >&5
6306 sed 's/^/| /' conftest.
$ac_ext >&5
6308 ac_cv_lib_ossaudio__oss_ioctl
=no
6311 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6312 conftest
$ac_exeext conftest.
$ac_ext
6313 LIBS
=$ac_check_lib_save_LIBS
6315 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6316 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6317 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6326 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6327 if test "X${with_pkg_config_prog}" != X
; then
6328 PKG_CONFIG
="${with_pkg_config_prog}"
6333 if test -z "$PKG_CONFIG"; then
6334 # Extract the first word of "pkg-config", so it can be a program name with args.
6335 set dummy pkg-config
; ac_word
=$2
6336 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6338 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6339 echo $ECHO_N "(cached) $ECHO_C" >&6
6343 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6346 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6350 test -z "$as_dir" && as_dir
=.
6351 for ac_exec_ext
in '' $ac_executable_extensions; do
6352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6353 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6361 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6365 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6366 if test -n "$PKG_CONFIG"; then
6367 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6368 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6370 { echo "$as_me:$LINENO: result: no" >&5
6371 echo "${ECHO_T}no" >&6; }
6377 if test "$PKG_CONFIG" = "no" ; then
6380 PKG_CONFIG_MIN_VERSION
=0.9.0
6381 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6382 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6383 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6385 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6386 { echo "$as_me:$LINENO: result: yes" >&5
6387 echo "${ECHO_T}yes" >&6; }
6390 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6391 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6392 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6393 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6394 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6396 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6397 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6398 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6399 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6400 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6402 { echo "$as_me:$LINENO: result: no" >&5
6403 echo "${ECHO_T}no" >&6; }
6406 ## If we have a custom action on failure, don't print errors, but
6407 ## do set a variable so people can do so.
6408 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6415 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6416 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6420 if test $succeeded = yes; then
6426 if test $HAVE_ALSA = yes; then
6427 SAVE_CFLAGS
="$CFLAGS"
6428 SAVE_LDFLAGS
="$LDFLAGS"
6429 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6430 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6431 cat >conftest.
$ac_ext <<_ACEOF
6434 cat confdefs.h
>>conftest.
$ac_ext
6435 cat >>conftest.
$ac_ext <<_ACEOF
6436 /* end confdefs.h. */
6437 #include <asoundlib.h>
6441 snd_lib_error_set_handler (0);
6446 rm -f conftest.
$ac_objext
6447 if { (ac_try
="$ac_compile"
6449 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6450 *) ac_try_echo=$ac_try;;
6452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6453 (eval "$ac_compile") 2>conftest.er1
6455 grep -v '^ *+' conftest.er1 >conftest.err
6457 cat conftest.err >&5
6458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459 (exit $ac_status); } && {
6460 test -z "$ac_c_werror_flag" ||
6461 test ! -s conftest.err
6462 } && test -s conftest.$ac_objext; then
6463 emacs_alsa_normal=yes
6465 echo "$as_me: failed program was:" >&5
6466 sed 's/^/| /' conftest.$ac_ext >&5
6468 emacs_alsa_normal=no
6471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6472 if test "$emacs_alsa_normal" != yes; then
6473 cat >conftest.$ac_ext <<_ACEOF
6476 cat confdefs.h >>conftest.$ac_ext
6477 cat >>conftest.$ac_ext <<_ACEOF
6478 /* end confdefs.h. */
6479 #include <alsa/asoundlib.h>
6483 snd_lib_error_set_handler (0);
6488 rm -f conftest.$ac_objext
6489 if { (ac_try="$ac_compile"
6491 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6492 *) ac_try_echo
=$ac_try;;
6494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6495 (eval "$ac_compile") 2>conftest.er1
6497 grep -v '^ *+' conftest.er1
>conftest.err
6499 cat conftest.err
>&5
6500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501 (exit $ac_status); } && {
6502 test -z "$ac_c_werror_flag" ||
6503 test ! -s conftest.err
6504 } && test -s conftest.
$ac_objext; then
6505 emacs_alsa_subdir
=yes
6507 echo "$as_me: failed program was:" >&5
6508 sed 's/^/| /' conftest.
$ac_ext >&5
6510 emacs_alsa_subdir
=no
6513 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6514 if test "$emacs_alsa_subdir" != yes; then
6515 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6516 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6517 { (exit 1); exit 1; }; }
6519 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6522 CFLAGS
="$SAVE_CFLAGS"
6523 LDFLAGS
="$SAVE_LDFLAGS"
6524 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6525 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6527 cat >>confdefs.h
<<\_ACEOF
6560 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6561 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6562 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6563 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6566 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6567 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6568 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6569 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6570 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6571 echo $ECHO_N "(cached) $ECHO_C" >&6
6573 ac_res
=`eval echo '${'$as_ac_Header'}'`
6574 { echo "$as_me:$LINENO: result: $ac_res" >&5
6575 echo "${ECHO_T}$ac_res" >&6; }
6577 # Is the header compilable?
6578 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6579 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6580 cat >conftest.
$ac_ext <<_ACEOF
6583 cat confdefs.h
>>conftest.
$ac_ext
6584 cat >>conftest.
$ac_ext <<_ACEOF
6585 /* end confdefs.h. */
6586 $ac_includes_default
6587 #include <$ac_header>
6589 rm -f conftest.
$ac_objext
6590 if { (ac_try
="$ac_compile"
6592 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6593 *) ac_try_echo=$ac_try;;
6595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6596 (eval "$ac_compile") 2>conftest.er1
6598 grep -v '^ *+' conftest.er1 >conftest.err
6600 cat conftest.err >&5
6601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602 (exit $ac_status); } && {
6603 test -z "$ac_c_werror_flag" ||
6604 test ! -s conftest.err
6605 } && test -s conftest.$ac_objext; then
6606 ac_header_compiler=yes
6608 echo "$as_me: failed program was:" >&5
6609 sed 's/^/| /' conftest.$ac_ext >&5
6611 ac_header_compiler=no
6614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6615 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6616 echo "${ECHO_T}$ac_header_compiler" >&6; }
6618 # Is the header present?
6619 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6620 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6621 cat >conftest.$ac_ext <<_ACEOF
6624 cat confdefs.h >>conftest.$ac_ext
6625 cat >>conftest.$ac_ext <<_ACEOF
6626 /* end confdefs.h. */
6627 #include <$ac_header>
6629 if { (ac_try="$ac_cpp conftest.$ac_ext"
6631 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6632 *) ac_try_echo
=$ac_try;;
6634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6635 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6637 grep -v '^ *+' conftest.er1
>conftest.err
6639 cat conftest.err
>&5
6640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641 (exit $ac_status); } >/dev
/null
&& {
6642 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6643 test ! -s conftest.err
6645 ac_header_preproc
=yes
6647 echo "$as_me: failed program was:" >&5
6648 sed 's/^/| /' conftest.
$ac_ext >&5
6650 ac_header_preproc
=no
6653 rm -f conftest.err conftest.
$ac_ext
6654 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6655 echo "${ECHO_T}$ac_header_preproc" >&6; }
6657 # So? What about this header?
6658 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6660 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6661 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6662 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6663 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6664 ac_header_preproc
=yes
6667 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6668 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6669 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6670 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6671 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6672 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6673 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6674 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6675 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6676 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6677 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6678 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6682 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6683 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6684 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6685 echo $ECHO_N "(cached) $ECHO_C" >&6
6687 eval "$as_ac_Header=\$ac_header_preproc"
6689 ac_res
=`eval echo '${'$as_ac_Header'}'`
6690 { echo "$as_me:$LINENO: result: $ac_res" >&5
6691 echo "${ECHO_T}$ac_res" >&6; }
6694 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6695 cat >>confdefs.h
<<_ACEOF
6696 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6704 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6705 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6706 cat >conftest.
$ac_ext <<_ACEOF
6709 cat confdefs.h
>>conftest.
$ac_ext
6710 cat >>conftest.
$ac_ext <<_ACEOF
6711 /* end confdefs.h. */
6712 #include <sys/personality.h>
6716 personality (PER_LINUX32)
6721 rm -f conftest.
$ac_objext
6722 if { (ac_try
="$ac_compile"
6724 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6725 *) ac_try_echo=$ac_try;;
6727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6728 (eval "$ac_compile") 2>conftest.er1
6730 grep -v '^ *+' conftest.er1 >conftest.err
6732 cat conftest.err >&5
6733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6734 (exit $ac_status); } && {
6735 test -z "$ac_c_werror_flag" ||
6736 test ! -s conftest.err
6737 } && test -s conftest.$ac_objext; then
6738 emacs_cv_personality_linux32=yes
6740 echo "$as_me: failed program was:" >&5
6741 sed 's/^/| /' conftest.$ac_ext >&5
6743 emacs_cv_personality_linux32=no
6746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6747 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6748 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6750 if test $emacs_cv_personality_linux32 = yes; then
6752 cat >>confdefs.h <<\_ACEOF
6753 #define HAVE_PERSONALITY_LINUX32 1
6759 for ac_header in term.h
6761 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6762 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6763 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6764 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6765 echo $ECHO_N "(cached) $ECHO_C" >&6
6767 cat >conftest.$ac_ext <<_ACEOF
6770 cat confdefs.h >>conftest.$ac_ext
6771 cat >>conftest.$ac_ext <<_ACEOF
6772 /* end confdefs.h. */
6773 #include <$ac_header>
6775 if { (ac_try="$ac_cpp conftest.$ac_ext"
6777 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6778 *) ac_try_echo
=$ac_try;;
6780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6781 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6783 grep -v '^ *+' conftest.er1
>conftest.err
6785 cat conftest.err
>&5
6786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6787 (exit $ac_status); } >/dev
/null
&& {
6788 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6789 test ! -s conftest.err
6791 eval "$as_ac_Header=yes"
6793 echo "$as_me: failed program was:" >&5
6794 sed 's/^/| /' conftest.
$ac_ext >&5
6796 eval "$as_ac_Header=no"
6799 rm -f conftest.err conftest.
$ac_ext
6801 ac_res
=`eval echo '${'$as_ac_Header'}'`
6802 { echo "$as_me:$LINENO: result: $ac_res" >&5
6803 echo "${ECHO_T}$ac_res" >&6; }
6804 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6805 cat >>confdefs.h
<<_ACEOF
6806 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6813 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6814 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6815 if test "${ac_cv_header_stdc+set}" = set; then
6816 echo $ECHO_N "(cached) $ECHO_C" >&6
6818 cat >conftest.
$ac_ext <<_ACEOF
6821 cat confdefs.h
>>conftest.
$ac_ext
6822 cat >>conftest.
$ac_ext <<_ACEOF
6823 /* end confdefs.h. */
6837 rm -f conftest.
$ac_objext
6838 if { (ac_try
="$ac_compile"
6840 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6841 *) ac_try_echo=$ac_try;;
6843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6844 (eval "$ac_compile") 2>conftest.er1
6846 grep -v '^ *+' conftest.er1 >conftest.err
6848 cat conftest.err >&5
6849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6850 (exit $ac_status); } && {
6851 test -z "$ac_c_werror_flag" ||
6852 test ! -s conftest.err
6853 } && test -s conftest.$ac_objext; then
6854 ac_cv_header_stdc=yes
6856 echo "$as_me: failed program was:" >&5
6857 sed 's/^/| /' conftest.$ac_ext >&5
6859 ac_cv_header_stdc=no
6862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6864 if test $ac_cv_header_stdc = yes; then
6865 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6866 cat >conftest.$ac_ext <<_ACEOF
6869 cat confdefs.h >>conftest.$ac_ext
6870 cat >>conftest.$ac_ext <<_ACEOF
6871 /* end confdefs.h. */
6875 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6876 $EGREP "memchr" >/dev/null 2>&1; then
6879 ac_cv_header_stdc=no
6885 if test $ac_cv_header_stdc = yes; then
6886 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6887 cat >conftest.$ac_ext <<_ACEOF
6890 cat confdefs.h >>conftest.$ac_ext
6891 cat >>conftest.$ac_ext <<_ACEOF
6892 /* end confdefs.h. */
6896 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6897 $EGREP "free" >/dev/null 2>&1; then
6900 ac_cv_header_stdc=no
6906 if test $ac_cv_header_stdc = yes; then
6907 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6908 if test "$cross_compiling" = yes; then
6911 cat >conftest.$ac_ext <<_ACEOF
6914 cat confdefs.h >>conftest.$ac_ext
6915 cat >>conftest.$ac_ext <<_ACEOF
6916 /* end confdefs.h. */
6919 #if ((' ' & 0x0FF) == 0x020)
6920 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6921 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6923 # define ISLOWER(c) \
6924 (('a' <= (c) && (c) <= 'i') \
6925 || ('j' <= (c) && (c) <= 'r') \
6926 || ('s' <= (c) && (c) <= 'z'))
6927 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6930 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6935 for (i = 0; i < 256; i++)
6936 if (XOR (islower (i), ISLOWER (i))
6937 || toupper (i) != TOUPPER (i))
6942 rm -f conftest$ac_exeext
6943 if { (ac_try="$ac_link"
6945 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6946 *) ac_try_echo
=$ac_try;;
6948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6949 (eval "$ac_link") 2>&5
6951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6952 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6953 { (case "(($ac_try" in
6954 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6955 *) ac_try_echo=$ac_try;;
6957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6958 (eval "$ac_try") 2>&5
6960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961 (exit $ac_status); }; }; then
6964 echo "$as_me: program exited with status $ac_status" >&5
6965 echo "$as_me: failed program was:" >&5
6966 sed 's/^/| /' conftest.$ac_ext >&5
6969 ac_cv_header_stdc=no
6971 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6977 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6978 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6979 if test $ac_cv_header_stdc = yes; then
6981 cat >>confdefs.h <<\_ACEOF
6982 #define STDC_HEADERS 1
6987 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6988 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6989 if test "${ac_cv_header_time+set}" = set; then
6990 echo $ECHO_N "(cached) $ECHO_C" >&6
6992 cat >conftest.$ac_ext <<_ACEOF
6995 cat confdefs.h >>conftest.$ac_ext
6996 cat >>conftest.$ac_ext <<_ACEOF
6997 /* end confdefs.h. */
6998 #include <sys/types.h>
6999 #include <sys/time.h>
7005 if ((struct tm *) 0)
7011 rm -f conftest.$ac_objext
7012 if { (ac_try="$ac_compile"
7014 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7015 *) ac_try_echo
=$ac_try;;
7017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7018 (eval "$ac_compile") 2>conftest.er1
7020 grep -v '^ *+' conftest.er1
>conftest.err
7022 cat conftest.err
>&5
7023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7024 (exit $ac_status); } && {
7025 test -z "$ac_c_werror_flag" ||
7026 test ! -s conftest.err
7027 } && test -s conftest.
$ac_objext; then
7028 ac_cv_header_time
=yes
7030 echo "$as_me: failed program was:" >&5
7031 sed 's/^/| /' conftest.
$ac_ext >&5
7033 ac_cv_header_time
=no
7036 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7038 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7039 echo "${ECHO_T}$ac_cv_header_time" >&6; }
7040 if test $ac_cv_header_time = yes; then
7042 cat >>confdefs.h
<<\_ACEOF
7043 #define TIME_WITH_SYS_TIME 1
7048 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7049 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
7050 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7051 echo $ECHO_N "(cached) $ECHO_C" >&6
7053 cat >conftest.
$ac_ext <<_ACEOF
7056 cat confdefs.h
>>conftest.
$ac_ext
7057 cat >>conftest.
$ac_ext <<_ACEOF
7058 /* end confdefs.h. */
7059 $ac_includes_default
7071 rm -f conftest.
$ac_objext
7072 if { (ac_try
="$ac_compile"
7074 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7075 *) ac_try_echo=$ac_try;;
7077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7078 (eval "$ac_compile") 2>conftest.er1
7080 grep -v '^ *+' conftest.er1 >conftest.err
7082 cat conftest.err >&5
7083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084 (exit $ac_status); } && {
7085 test -z "$ac_c_werror_flag" ||
7086 test ! -s conftest.err
7087 } && test -s conftest.$ac_objext; then
7088 ac_cv_have_decl_sys_siglist=yes
7090 echo "$as_me: failed program was:" >&5
7091 sed 's/^/| /' conftest.$ac_ext >&5
7093 ac_cv_have_decl_sys_siglist=no
7096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7098 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7099 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7100 if test $ac_cv_have_decl_sys_siglist = yes; then
7102 cat >>confdefs.h <<_ACEOF
7103 #define HAVE_DECL_SYS_SIGLIST 1
7108 cat >>confdefs.h <<_ACEOF
7109 #define HAVE_DECL_SYS_SIGLIST 0
7116 if test $ac_cv_have_decl_sys_siglist != yes; then
7117 # For Tru64, at least:
7118 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7119 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7120 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7121 echo $ECHO_N "(cached) $ECHO_C" >&6
7123 cat >conftest.$ac_ext <<_ACEOF
7126 cat confdefs.h >>conftest.$ac_ext
7127 cat >>conftest.$ac_ext <<_ACEOF
7128 /* end confdefs.h. */
7129 $ac_includes_default
7133 #ifndef __sys_siglist
7134 (void) __sys_siglist;
7141 rm -f conftest.$ac_objext
7142 if { (ac_try="$ac_compile"
7144 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7145 *) ac_try_echo
=$ac_try;;
7147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7148 (eval "$ac_compile") 2>conftest.er1
7150 grep -v '^ *+' conftest.er1
>conftest.err
7152 cat conftest.err
>&5
7153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7154 (exit $ac_status); } && {
7155 test -z "$ac_c_werror_flag" ||
7156 test ! -s conftest.err
7157 } && test -s conftest.
$ac_objext; then
7158 ac_cv_have_decl___sys_siglist
=yes
7160 echo "$as_me: failed program was:" >&5
7161 sed 's/^/| /' conftest.
$ac_ext >&5
7163 ac_cv_have_decl___sys_siglist
=no
7166 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7168 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7169 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7170 if test $ac_cv_have_decl___sys_siglist = yes; then
7172 cat >>confdefs.h
<<_ACEOF
7173 #define HAVE_DECL___SYS_SIGLIST 1
7178 cat >>confdefs.h
<<_ACEOF
7179 #define HAVE_DECL___SYS_SIGLIST 0
7186 if test $ac_cv_have_decl___sys_siglist = yes; then
7188 cat >>confdefs.h
<<\_ACEOF
7189 #define sys_siglist __sys_siglist
7194 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7195 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7196 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7197 echo $ECHO_N "(cached) $ECHO_C" >&6
7199 cat >conftest.
$ac_ext <<_ACEOF
7202 cat confdefs.h
>>conftest.
$ac_ext
7203 cat >>conftest.
$ac_ext <<_ACEOF
7204 /* end confdefs.h. */
7205 #include <sys/types.h>
7206 #include <sys/wait.h>
7208 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7211 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7219 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7224 rm -f conftest.
$ac_objext
7225 if { (ac_try
="$ac_compile"
7227 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7228 *) ac_try_echo=$ac_try;;
7230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7231 (eval "$ac_compile") 2>conftest.er1
7233 grep -v '^ *+' conftest.er1 >conftest.err
7235 cat conftest.err >&5
7236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7237 (exit $ac_status); } && {
7238 test -z "$ac_c_werror_flag" ||
7239 test ! -s conftest.err
7240 } && test -s conftest.$ac_objext; then
7241 ac_cv_header_sys_wait_h=yes
7243 echo "$as_me: failed program was:" >&5
7244 sed 's/^/| /' conftest.$ac_ext >&5
7246 ac_cv_header_sys_wait_h=no
7249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7251 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7252 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7253 if test $ac_cv_header_sys_wait_h = yes; then
7255 cat >>confdefs.h <<\_ACEOF
7256 #define HAVE_SYS_WAIT_H 1
7262 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7263 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7264 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7265 echo $ECHO_N "(cached) $ECHO_C" >&6
7267 cat >conftest.$ac_ext <<_ACEOF
7270 cat confdefs.h >>conftest.$ac_ext
7271 cat >>conftest.$ac_ext <<_ACEOF
7272 /* end confdefs.h. */
7273 #ifdef TIME_WITH_SYS_TIME
7274 #include <sys/time.h>
7277 #ifdef HAVE_SYS_TIME_H
7278 #include <sys/time.h>
7289 static struct utimbuf x; x.actime = x.modtime;
7294 rm -f conftest.$ac_objext
7295 if { (ac_try="$ac_compile"
7297 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7298 *) ac_try_echo
=$ac_try;;
7300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7301 (eval "$ac_compile") 2>conftest.er1
7303 grep -v '^ *+' conftest.er1
>conftest.err
7305 cat conftest.err
>&5
7306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7307 (exit $ac_status); } && {
7308 test -z "$ac_c_werror_flag" ||
7309 test ! -s conftest.err
7310 } && test -s conftest.
$ac_objext; then
7311 emacs_cv_struct_utimbuf
=yes
7313 echo "$as_me: failed program was:" >&5
7314 sed 's/^/| /' conftest.
$ac_ext >&5
7316 emacs_cv_struct_utimbuf
=no
7319 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7321 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7322 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7323 if test $emacs_cv_struct_utimbuf = yes; then
7325 cat >>confdefs.h
<<\_ACEOF
7326 #define HAVE_STRUCT_UTIMBUF 1
7331 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7332 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7333 if test "${ac_cv_type_signal+set}" = set; then
7334 echo $ECHO_N "(cached) $ECHO_C" >&6
7336 cat >conftest.
$ac_ext <<_ACEOF
7339 cat confdefs.h
>>conftest.
$ac_ext
7340 cat >>conftest.
$ac_ext <<_ACEOF
7341 /* end confdefs.h. */
7342 #include <sys/types.h>
7348 return *(signal (0, 0)) (0) == 1;
7353 rm -f conftest.
$ac_objext
7354 if { (ac_try
="$ac_compile"
7356 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7357 *) ac_try_echo=$ac_try;;
7359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7360 (eval "$ac_compile") 2>conftest.er1
7362 grep -v '^ *+' conftest.er1 >conftest.err
7364 cat conftest.err >&5
7365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7366 (exit $ac_status); } && {
7367 test -z "$ac_c_werror_flag" ||
7368 test ! -s conftest.err
7369 } && test -s conftest.$ac_objext; then
7370 ac_cv_type_signal=int
7372 echo "$as_me: failed program was:" >&5
7373 sed 's/^/| /' conftest.$ac_ext >&5
7375 ac_cv_type_signal=void
7378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7380 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7381 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7383 cat >>confdefs.h <<_ACEOF
7384 #define RETSIGTYPE $ac_cv_type_signal
7389 { echo "$as_me:$LINENO: checking for speed_t" >&5
7390 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7391 if test "${emacs_cv_speed_t+set}" = set; then
7392 echo $ECHO_N "(cached) $ECHO_C" >&6
7394 cat >conftest.$ac_ext <<_ACEOF
7397 cat confdefs.h >>conftest.$ac_ext
7398 cat >>conftest.$ac_ext <<_ACEOF
7399 /* end confdefs.h. */
7400 #include <termios.h>
7409 rm -f conftest.$ac_objext
7410 if { (ac_try="$ac_compile"
7412 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7413 *) ac_try_echo
=$ac_try;;
7415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7416 (eval "$ac_compile") 2>conftest.er1
7418 grep -v '^ *+' conftest.er1
>conftest.err
7420 cat conftest.err
>&5
7421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7422 (exit $ac_status); } && {
7423 test -z "$ac_c_werror_flag" ||
7424 test ! -s conftest.err
7425 } && test -s conftest.
$ac_objext; then
7426 emacs_cv_speed_t
=yes
7428 echo "$as_me: failed program was:" >&5
7429 sed 's/^/| /' conftest.
$ac_ext >&5
7434 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7436 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7437 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7438 if test $emacs_cv_speed_t = yes; then
7440 cat >>confdefs.h
<<\_ACEOF
7441 #define HAVE_SPEED_T 1
7446 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7447 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7448 if test "${emacs_cv_struct_timeval+set}" = set; then
7449 echo $ECHO_N "(cached) $ECHO_C" >&6
7451 cat >conftest.
$ac_ext <<_ACEOF
7454 cat confdefs.h
>>conftest.
$ac_ext
7455 cat >>conftest.
$ac_ext <<_ACEOF
7456 /* end confdefs.h. */
7457 #ifdef TIME_WITH_SYS_TIME
7458 #include <sys/time.h>
7461 #ifdef HAVE_SYS_TIME_H
7462 #include <sys/time.h>
7470 static struct timeval x; x.tv_sec = x.tv_usec;
7475 rm -f conftest.
$ac_objext
7476 if { (ac_try
="$ac_compile"
7478 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7479 *) ac_try_echo=$ac_try;;
7481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7482 (eval "$ac_compile") 2>conftest.er1
7484 grep -v '^ *+' conftest.er1 >conftest.err
7486 cat conftest.err >&5
7487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7488 (exit $ac_status); } && {
7489 test -z "$ac_c_werror_flag" ||
7490 test ! -s conftest.err
7491 } && test -s conftest.$ac_objext; then
7492 emacs_cv_struct_timeval=yes
7494 echo "$as_me: failed program was:" >&5
7495 sed 's/^/| /' conftest.$ac_ext >&5
7497 emacs_cv_struct_timeval=no
7500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7502 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7503 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7504 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7505 if test $emacs_cv_struct_timeval = yes; then
7507 cat >>confdefs.h <<\_ACEOF
7508 #define HAVE_TIMEVAL 1
7513 { echo "$as_me:$LINENO: checking for struct exception" >&5
7514 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7515 if test "${emacs_cv_struct_exception+set}" = set; then
7516 echo $ECHO_N "(cached) $ECHO_C" >&6
7518 cat >conftest.$ac_ext <<_ACEOF
7521 cat confdefs.h >>conftest.$ac_ext
7522 cat >>conftest.$ac_ext <<_ACEOF
7523 /* end confdefs.h. */
7528 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7533 rm -f conftest.$ac_objext
7534 if { (ac_try="$ac_compile"
7536 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7537 *) ac_try_echo
=$ac_try;;
7539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7540 (eval "$ac_compile") 2>conftest.er1
7542 grep -v '^ *+' conftest.er1
>conftest.err
7544 cat conftest.err
>&5
7545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7546 (exit $ac_status); } && {
7547 test -z "$ac_c_werror_flag" ||
7548 test ! -s conftest.err
7549 } && test -s conftest.
$ac_objext; then
7550 emacs_cv_struct_exception
=yes
7552 echo "$as_me: failed program was:" >&5
7553 sed 's/^/| /' conftest.
$ac_ext >&5
7555 emacs_cv_struct_exception
=no
7558 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7560 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7561 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7562 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7563 if test $emacs_cv_struct_exception != yes; then
7565 cat >>confdefs.h
<<\_ACEOF
7566 #define NO_MATHERR 1
7572 for ac_header
in sys
/socket.h
7574 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7575 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7576 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7577 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7578 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7579 echo $ECHO_N "(cached) $ECHO_C" >&6
7581 ac_res
=`eval echo '${'$as_ac_Header'}'`
7582 { echo "$as_me:$LINENO: result: $ac_res" >&5
7583 echo "${ECHO_T}$ac_res" >&6; }
7585 # Is the header compilable?
7586 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7587 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7588 cat >conftest.
$ac_ext <<_ACEOF
7591 cat confdefs.h
>>conftest.
$ac_ext
7592 cat >>conftest.
$ac_ext <<_ACEOF
7593 /* end confdefs.h. */
7594 $ac_includes_default
7595 #include <$ac_header>
7597 rm -f conftest.
$ac_objext
7598 if { (ac_try
="$ac_compile"
7600 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7601 *) ac_try_echo=$ac_try;;
7603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7604 (eval "$ac_compile") 2>conftest.er1
7606 grep -v '^ *+' conftest.er1 >conftest.err
7608 cat conftest.err >&5
7609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7610 (exit $ac_status); } && {
7611 test -z "$ac_c_werror_flag" ||
7612 test ! -s conftest.err
7613 } && test -s conftest.$ac_objext; then
7614 ac_header_compiler=yes
7616 echo "$as_me: failed program was:" >&5
7617 sed 's/^/| /' conftest.$ac_ext >&5
7619 ac_header_compiler=no
7622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7623 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7624 echo "${ECHO_T}$ac_header_compiler" >&6; }
7626 # Is the header present?
7627 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7628 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7629 cat >conftest.$ac_ext <<_ACEOF
7632 cat confdefs.h >>conftest.$ac_ext
7633 cat >>conftest.$ac_ext <<_ACEOF
7634 /* end confdefs.h. */
7635 #include <$ac_header>
7637 if { (ac_try="$ac_cpp conftest.$ac_ext"
7639 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7640 *) ac_try_echo
=$ac_try;;
7642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7643 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7645 grep -v '^ *+' conftest.er1
>conftest.err
7647 cat conftest.err
>&5
7648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7649 (exit $ac_status); } >/dev
/null
&& {
7650 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7651 test ! -s conftest.err
7653 ac_header_preproc
=yes
7655 echo "$as_me: failed program was:" >&5
7656 sed 's/^/| /' conftest.
$ac_ext >&5
7658 ac_header_preproc
=no
7661 rm -f conftest.err conftest.
$ac_ext
7662 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7663 echo "${ECHO_T}$ac_header_preproc" >&6; }
7665 # So? What about this header?
7666 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7668 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7669 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7671 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7672 ac_header_preproc
=yes
7675 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7676 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7677 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7678 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7679 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7680 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7681 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7682 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7683 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7684 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7685 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7686 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7690 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7691 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7692 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7693 echo $ECHO_N "(cached) $ECHO_C" >&6
7695 eval "$as_ac_Header=\$ac_header_preproc"
7697 ac_res
=`eval echo '${'$as_ac_Header'}'`
7698 { echo "$as_me:$LINENO: result: $ac_res" >&5
7699 echo "${ECHO_T}$ac_res" >&6; }
7702 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7703 cat >>confdefs.h
<<_ACEOF
7704 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7712 for ac_header
in net
/if.h
7714 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7715 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7716 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7717 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7718 echo $ECHO_N "(cached) $ECHO_C" >&6
7720 cat >conftest.
$ac_ext <<_ACEOF
7723 cat confdefs.h
>>conftest.
$ac_ext
7724 cat >>conftest.
$ac_ext <<_ACEOF
7725 /* end confdefs.h. */
7726 $ac_includes_default
7727 #if HAVE_SYS_SOCKET_H
7728 #include <sys/socket.h>
7731 #include <$ac_header>
7733 rm -f conftest.
$ac_objext
7734 if { (ac_try
="$ac_compile"
7736 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7737 *) ac_try_echo=$ac_try;;
7739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7740 (eval "$ac_compile") 2>conftest.er1
7742 grep -v '^ *+' conftest.er1 >conftest.err
7744 cat conftest.err >&5
7745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7746 (exit $ac_status); } && {
7747 test -z "$ac_c_werror_flag" ||
7748 test ! -s conftest.err
7749 } && test -s conftest.$ac_objext; then
7750 eval "$as_ac_Header=yes"
7752 echo "$as_me: failed program was:" >&5
7753 sed 's/^/| /' conftest.$ac_ext >&5
7755 eval "$as_ac_Header=no"
7758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7760 ac_res=`eval echo '${'$as_ac_Header'}'`
7761 { echo "$as_me:$LINENO: result: $ac_res" >&5
7762 echo "${ECHO_T}$ac_res" >&6; }
7763 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7764 cat >>confdefs.h <<_ACEOF
7765 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7773 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7774 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7775 if test "${ac_cv_struct_tm+set}" = set; then
7776 echo $ECHO_N "(cached) $ECHO_C" >&6
7778 cat >conftest.$ac_ext <<_ACEOF
7781 cat confdefs.h >>conftest.$ac_ext
7782 cat >>conftest.$ac_ext <<_ACEOF
7783 /* end confdefs.h. */
7784 #include <sys/types.h>
7791 int *p = &tm.tm_sec;
7797 rm -f conftest.$ac_objext
7798 if { (ac_try="$ac_compile"
7800 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7801 *) ac_try_echo
=$ac_try;;
7803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7804 (eval "$ac_compile") 2>conftest.er1
7806 grep -v '^ *+' conftest.er1
>conftest.err
7808 cat conftest.err
>&5
7809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7810 (exit $ac_status); } && {
7811 test -z "$ac_c_werror_flag" ||
7812 test ! -s conftest.err
7813 } && test -s conftest.
$ac_objext; then
7814 ac_cv_struct_tm
=time.h
7816 echo "$as_me: failed program was:" >&5
7817 sed 's/^/| /' conftest.
$ac_ext >&5
7819 ac_cv_struct_tm
=sys
/time.h
7822 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7824 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7825 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7826 if test $ac_cv_struct_tm = sys
/time.h
; then
7828 cat >>confdefs.h
<<\_ACEOF
7829 #define TM_IN_SYS_TIME 1
7834 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7835 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7836 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7837 echo $ECHO_N "(cached) $ECHO_C" >&6
7839 cat >conftest.
$ac_ext <<_ACEOF
7842 cat confdefs.h
>>conftest.
$ac_ext
7843 cat >>conftest.
$ac_ext <<_ACEOF
7844 /* end confdefs.h. */
7845 #include <sys/types.h>
7846 #include <$ac_cv_struct_tm>
7852 static struct tm ac_aggr;
7853 if (ac_aggr.tm_zone)
7859 rm -f conftest.
$ac_objext
7860 if { (ac_try
="$ac_compile"
7862 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7863 *) ac_try_echo=$ac_try;;
7865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7866 (eval "$ac_compile") 2>conftest.er1
7868 grep -v '^ *+' conftest.er1 >conftest.err
7870 cat conftest.err >&5
7871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7872 (exit $ac_status); } && {
7873 test -z "$ac_c_werror_flag" ||
7874 test ! -s conftest.err
7875 } && test -s conftest.$ac_objext; then
7876 ac_cv_member_struct_tm_tm_zone=yes
7878 echo "$as_me: failed program was:" >&5
7879 sed 's/^/| /' conftest.$ac_ext >&5
7881 cat >conftest.$ac_ext <<_ACEOF
7884 cat confdefs.h >>conftest.$ac_ext
7885 cat >>conftest.$ac_ext <<_ACEOF
7886 /* end confdefs.h. */
7887 #include <sys/types.h>
7888 #include <$ac_cv_struct_tm>
7894 static struct tm ac_aggr;
7895 if (sizeof ac_aggr.tm_zone)
7901 rm -f conftest.$ac_objext
7902 if { (ac_try="$ac_compile"
7904 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7905 *) ac_try_echo
=$ac_try;;
7907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7908 (eval "$ac_compile") 2>conftest.er1
7910 grep -v '^ *+' conftest.er1
>conftest.err
7912 cat conftest.err
>&5
7913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914 (exit $ac_status); } && {
7915 test -z "$ac_c_werror_flag" ||
7916 test ! -s conftest.err
7917 } && test -s conftest.
$ac_objext; then
7918 ac_cv_member_struct_tm_tm_zone
=yes
7920 echo "$as_me: failed program was:" >&5
7921 sed 's/^/| /' conftest.
$ac_ext >&5
7923 ac_cv_member_struct_tm_tm_zone
=no
7926 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7929 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7931 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7932 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7933 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7935 cat >>confdefs.h
<<_ACEOF
7936 #define HAVE_STRUCT_TM_TM_ZONE 1
7942 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7944 cat >>confdefs.h
<<\_ACEOF
7945 #define HAVE_TM_ZONE 1
7949 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7950 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7951 if test "${ac_cv_have_decl_tzname+set}" = set; then
7952 echo $ECHO_N "(cached) $ECHO_C" >&6
7954 cat >conftest.
$ac_ext <<_ACEOF
7957 cat confdefs.h
>>conftest.
$ac_ext
7958 cat >>conftest.
$ac_ext <<_ACEOF
7959 /* end confdefs.h. */
7973 rm -f conftest.
$ac_objext
7974 if { (ac_try
="$ac_compile"
7976 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7977 *) ac_try_echo=$ac_try;;
7979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7980 (eval "$ac_compile") 2>conftest.er1
7982 grep -v '^ *+' conftest.er1 >conftest.err
7984 cat conftest.err >&5
7985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7986 (exit $ac_status); } && {
7987 test -z "$ac_c_werror_flag" ||
7988 test ! -s conftest.err
7989 } && test -s conftest.$ac_objext; then
7990 ac_cv_have_decl_tzname=yes
7992 echo "$as_me: failed program was:" >&5
7993 sed 's/^/| /' conftest.$ac_ext >&5
7995 ac_cv_have_decl_tzname=no
7998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8000 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8001 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
8002 if test $ac_cv_have_decl_tzname = yes; then
8004 cat >>confdefs.h <<_ACEOF
8005 #define HAVE_DECL_TZNAME 1
8010 cat >>confdefs.h <<_ACEOF
8011 #define HAVE_DECL_TZNAME 0
8018 { echo "$as_me:$LINENO: checking for tzname" >&5
8019 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
8020 if test "${ac_cv_var_tzname+set}" = set; then
8021 echo $ECHO_N "(cached) $ECHO_C" >&6
8023 cat >conftest.$ac_ext <<_ACEOF
8026 cat confdefs.h >>conftest.$ac_ext
8027 cat >>conftest.$ac_ext <<_ACEOF
8028 /* end confdefs.h. */
8030 #if !HAVE_DECL_TZNAME
8031 extern char *tzname[];
8037 return tzname[0][0];
8042 rm -f conftest.$ac_objext conftest$ac_exeext
8043 if { (ac_try="$ac_link"
8045 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8046 *) ac_try_echo
=$ac_try;;
8048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8049 (eval "$ac_link") 2>conftest.er1
8051 grep -v '^ *+' conftest.er1
>conftest.err
8053 cat conftest.err
>&5
8054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055 (exit $ac_status); } && {
8056 test -z "$ac_c_werror_flag" ||
8057 test ! -s conftest.err
8058 } && test -s conftest
$ac_exeext &&
8059 $as_test_x conftest
$ac_exeext; then
8060 ac_cv_var_tzname
=yes
8062 echo "$as_me: failed program was:" >&5
8063 sed 's/^/| /' conftest.
$ac_ext >&5
8068 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8069 conftest
$ac_exeext conftest.
$ac_ext
8071 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8072 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
8073 if test $ac_cv_var_tzname = yes; then
8075 cat >>confdefs.h
<<\_ACEOF
8076 #define HAVE_TZNAME 1
8082 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8083 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
8084 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8085 echo $ECHO_N "(cached) $ECHO_C" >&6
8087 cat >conftest.
$ac_ext <<_ACEOF
8090 cat confdefs.h
>>conftest.
$ac_ext
8091 cat >>conftest.
$ac_ext <<_ACEOF
8092 /* end confdefs.h. */
8098 static struct tm ac_aggr;
8099 if (ac_aggr.tm_gmtoff)
8105 rm -f conftest.
$ac_objext
8106 if { (ac_try
="$ac_compile"
8108 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8109 *) ac_try_echo=$ac_try;;
8111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8112 (eval "$ac_compile") 2>conftest.er1
8114 grep -v '^ *+' conftest.er1 >conftest.err
8116 cat conftest.err >&5
8117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8118 (exit $ac_status); } && {
8119 test -z "$ac_c_werror_flag" ||
8120 test ! -s conftest.err
8121 } && test -s conftest.$ac_objext; then
8122 ac_cv_member_struct_tm_tm_gmtoff=yes
8124 echo "$as_me: failed program was:" >&5
8125 sed 's/^/| /' conftest.$ac_ext >&5
8127 cat >conftest.$ac_ext <<_ACEOF
8130 cat confdefs.h >>conftest.$ac_ext
8131 cat >>conftest.$ac_ext <<_ACEOF
8132 /* end confdefs.h. */
8138 static struct tm ac_aggr;
8139 if (sizeof ac_aggr.tm_gmtoff)
8145 rm -f conftest.$ac_objext
8146 if { (ac_try="$ac_compile"
8148 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8149 *) ac_try_echo
=$ac_try;;
8151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8152 (eval "$ac_compile") 2>conftest.er1
8154 grep -v '^ *+' conftest.er1
>conftest.err
8156 cat conftest.err
>&5
8157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8158 (exit $ac_status); } && {
8159 test -z "$ac_c_werror_flag" ||
8160 test ! -s conftest.err
8161 } && test -s conftest.
$ac_objext; then
8162 ac_cv_member_struct_tm_tm_gmtoff
=yes
8164 echo "$as_me: failed program was:" >&5
8165 sed 's/^/| /' conftest.
$ac_ext >&5
8167 ac_cv_member_struct_tm_tm_gmtoff
=no
8170 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8173 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8175 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8176 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8177 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8179 cat >>confdefs.h
<<\_ACEOF
8180 #define HAVE_TM_GMTOFF 1
8185 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8186 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8187 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8188 echo $ECHO_N "(cached) $ECHO_C" >&6
8190 cat >conftest.
$ac_ext <<_ACEOF
8193 cat confdefs.h
>>conftest.
$ac_ext
8194 cat >>conftest.
$ac_ext <<_ACEOF
8195 /* end confdefs.h. */
8196 $ac_includes_default
8197 #if HAVE_SYS_SOCKET_H
8198 #include <sys/socket.h>
8207 static struct ifreq ac_aggr;
8208 if (ac_aggr.ifr_flags)
8214 rm -f conftest.
$ac_objext
8215 if { (ac_try
="$ac_compile"
8217 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8218 *) ac_try_echo=$ac_try;;
8220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8221 (eval "$ac_compile") 2>conftest.er1
8223 grep -v '^ *+' conftest.er1 >conftest.err
8225 cat conftest.err >&5
8226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227 (exit $ac_status); } && {
8228 test -z "$ac_c_werror_flag" ||
8229 test ! -s conftest.err
8230 } && test -s conftest.$ac_objext; then
8231 ac_cv_member_struct_ifreq_ifr_flags=yes
8233 echo "$as_me: failed program was:" >&5
8234 sed 's/^/| /' conftest.$ac_ext >&5
8236 cat >conftest.$ac_ext <<_ACEOF
8239 cat confdefs.h >>conftest.$ac_ext
8240 cat >>conftest.$ac_ext <<_ACEOF
8241 /* end confdefs.h. */
8242 $ac_includes_default
8243 #if HAVE_SYS_SOCKET_H
8244 #include <sys/socket.h>
8253 static struct ifreq ac_aggr;
8254 if (sizeof ac_aggr.ifr_flags)
8260 rm -f conftest.$ac_objext
8261 if { (ac_try="$ac_compile"
8263 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8264 *) ac_try_echo
=$ac_try;;
8266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8267 (eval "$ac_compile") 2>conftest.er1
8269 grep -v '^ *+' conftest.er1
>conftest.err
8271 cat conftest.err
>&5
8272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8273 (exit $ac_status); } && {
8274 test -z "$ac_c_werror_flag" ||
8275 test ! -s conftest.err
8276 } && test -s conftest.
$ac_objext; then
8277 ac_cv_member_struct_ifreq_ifr_flags
=yes
8279 echo "$as_me: failed program was:" >&5
8280 sed 's/^/| /' conftest.
$ac_ext >&5
8282 ac_cv_member_struct_ifreq_ifr_flags
=no
8285 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8288 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8290 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8291 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8292 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8294 cat >>confdefs.h
<<_ACEOF
8295 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8300 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8301 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8302 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8303 echo $ECHO_N "(cached) $ECHO_C" >&6
8305 cat >conftest.
$ac_ext <<_ACEOF
8308 cat confdefs.h
>>conftest.
$ac_ext
8309 cat >>conftest.
$ac_ext <<_ACEOF
8310 /* end confdefs.h. */
8311 $ac_includes_default
8312 #if HAVE_SYS_SOCKET_H
8313 #include <sys/socket.h>
8322 static struct ifreq ac_aggr;
8323 if (ac_aggr.ifr_hwaddr)
8329 rm -f conftest.
$ac_objext
8330 if { (ac_try
="$ac_compile"
8332 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8333 *) ac_try_echo=$ac_try;;
8335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8336 (eval "$ac_compile") 2>conftest.er1
8338 grep -v '^ *+' conftest.er1 >conftest.err
8340 cat conftest.err >&5
8341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8342 (exit $ac_status); } && {
8343 test -z "$ac_c_werror_flag" ||
8344 test ! -s conftest.err
8345 } && test -s conftest.$ac_objext; then
8346 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8348 echo "$as_me: failed program was:" >&5
8349 sed 's/^/| /' conftest.$ac_ext >&5
8351 cat >conftest.$ac_ext <<_ACEOF
8354 cat confdefs.h >>conftest.$ac_ext
8355 cat >>conftest.$ac_ext <<_ACEOF
8356 /* end confdefs.h. */
8357 $ac_includes_default
8358 #if HAVE_SYS_SOCKET_H
8359 #include <sys/socket.h>
8368 static struct ifreq ac_aggr;
8369 if (sizeof ac_aggr.ifr_hwaddr)
8375 rm -f conftest.$ac_objext
8376 if { (ac_try="$ac_compile"
8378 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8379 *) ac_try_echo
=$ac_try;;
8381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8382 (eval "$ac_compile") 2>conftest.er1
8384 grep -v '^ *+' conftest.er1
>conftest.err
8386 cat conftest.err
>&5
8387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8388 (exit $ac_status); } && {
8389 test -z "$ac_c_werror_flag" ||
8390 test ! -s conftest.err
8391 } && test -s conftest.
$ac_objext; then
8392 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8394 echo "$as_me: failed program was:" >&5
8395 sed 's/^/| /' conftest.
$ac_ext >&5
8397 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8400 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8403 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8405 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8406 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8407 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8409 cat >>confdefs.h
<<_ACEOF
8410 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8415 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8416 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8417 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8418 echo $ECHO_N "(cached) $ECHO_C" >&6
8420 cat >conftest.
$ac_ext <<_ACEOF
8423 cat confdefs.h
>>conftest.
$ac_ext
8424 cat >>conftest.
$ac_ext <<_ACEOF
8425 /* end confdefs.h. */
8426 $ac_includes_default
8427 #if HAVE_SYS_SOCKET_H
8428 #include <sys/socket.h>
8437 static struct ifreq ac_aggr;
8438 if (ac_aggr.ifr_netmask)
8444 rm -f conftest.
$ac_objext
8445 if { (ac_try
="$ac_compile"
8447 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8448 *) ac_try_echo=$ac_try;;
8450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8451 (eval "$ac_compile") 2>conftest.er1
8453 grep -v '^ *+' conftest.er1 >conftest.err
8455 cat conftest.err >&5
8456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457 (exit $ac_status); } && {
8458 test -z "$ac_c_werror_flag" ||
8459 test ! -s conftest.err
8460 } && test -s conftest.$ac_objext; then
8461 ac_cv_member_struct_ifreq_ifr_netmask=yes
8463 echo "$as_me: failed program was:" >&5
8464 sed 's/^/| /' conftest.$ac_ext >&5
8466 cat >conftest.$ac_ext <<_ACEOF
8469 cat confdefs.h >>conftest.$ac_ext
8470 cat >>conftest.$ac_ext <<_ACEOF
8471 /* end confdefs.h. */
8472 $ac_includes_default
8473 #if HAVE_SYS_SOCKET_H
8474 #include <sys/socket.h>
8483 static struct ifreq ac_aggr;
8484 if (sizeof ac_aggr.ifr_netmask)
8490 rm -f conftest.$ac_objext
8491 if { (ac_try="$ac_compile"
8493 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8494 *) ac_try_echo
=$ac_try;;
8496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8497 (eval "$ac_compile") 2>conftest.er1
8499 grep -v '^ *+' conftest.er1
>conftest.err
8501 cat conftest.err
>&5
8502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503 (exit $ac_status); } && {
8504 test -z "$ac_c_werror_flag" ||
8505 test ! -s conftest.err
8506 } && test -s conftest.
$ac_objext; then
8507 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8509 echo "$as_me: failed program was:" >&5
8510 sed 's/^/| /' conftest.
$ac_ext >&5
8512 ac_cv_member_struct_ifreq_ifr_netmask
=no
8515 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8518 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8520 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8521 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8522 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8524 cat >>confdefs.h
<<_ACEOF
8525 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8530 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8531 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8532 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8533 echo $ECHO_N "(cached) $ECHO_C" >&6
8535 cat >conftest.
$ac_ext <<_ACEOF
8538 cat confdefs.h
>>conftest.
$ac_ext
8539 cat >>conftest.
$ac_ext <<_ACEOF
8540 /* end confdefs.h. */
8541 $ac_includes_default
8542 #if HAVE_SYS_SOCKET_H
8543 #include <sys/socket.h>
8552 static struct ifreq ac_aggr;
8553 if (ac_aggr.ifr_broadaddr)
8559 rm -f conftest.
$ac_objext
8560 if { (ac_try
="$ac_compile"
8562 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8563 *) ac_try_echo=$ac_try;;
8565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8566 (eval "$ac_compile") 2>conftest.er1
8568 grep -v '^ *+' conftest.er1 >conftest.err
8570 cat conftest.err >&5
8571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572 (exit $ac_status); } && {
8573 test -z "$ac_c_werror_flag" ||
8574 test ! -s conftest.err
8575 } && test -s conftest.$ac_objext; then
8576 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8578 echo "$as_me: failed program was:" >&5
8579 sed 's/^/| /' conftest.$ac_ext >&5
8581 cat >conftest.$ac_ext <<_ACEOF
8584 cat confdefs.h >>conftest.$ac_ext
8585 cat >>conftest.$ac_ext <<_ACEOF
8586 /* end confdefs.h. */
8587 $ac_includes_default
8588 #if HAVE_SYS_SOCKET_H
8589 #include <sys/socket.h>
8598 static struct ifreq ac_aggr;
8599 if (sizeof ac_aggr.ifr_broadaddr)
8605 rm -f conftest.$ac_objext
8606 if { (ac_try="$ac_compile"
8608 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8609 *) ac_try_echo
=$ac_try;;
8611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8612 (eval "$ac_compile") 2>conftest.er1
8614 grep -v '^ *+' conftest.er1
>conftest.err
8616 cat conftest.err
>&5
8617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618 (exit $ac_status); } && {
8619 test -z "$ac_c_werror_flag" ||
8620 test ! -s conftest.err
8621 } && test -s conftest.
$ac_objext; then
8622 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
8624 echo "$as_me: failed program was:" >&5
8625 sed 's/^/| /' conftest.
$ac_ext >&5
8627 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
8630 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8633 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8635 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8636 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8637 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8639 cat >>confdefs.h
<<_ACEOF
8640 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8645 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8646 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8647 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8648 echo $ECHO_N "(cached) $ECHO_C" >&6
8650 cat >conftest.
$ac_ext <<_ACEOF
8653 cat confdefs.h
>>conftest.
$ac_ext
8654 cat >>conftest.
$ac_ext <<_ACEOF
8655 /* end confdefs.h. */
8656 $ac_includes_default
8657 #if HAVE_SYS_SOCKET_H
8658 #include <sys/socket.h>
8667 static struct ifreq ac_aggr;
8668 if (ac_aggr.ifr_addr)
8674 rm -f conftest.
$ac_objext
8675 if { (ac_try
="$ac_compile"
8677 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8678 *) ac_try_echo=$ac_try;;
8680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8681 (eval "$ac_compile") 2>conftest.er1
8683 grep -v '^ *+' conftest.er1 >conftest.err
8685 cat conftest.err >&5
8686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8687 (exit $ac_status); } && {
8688 test -z "$ac_c_werror_flag" ||
8689 test ! -s conftest.err
8690 } && test -s conftest.$ac_objext; then
8691 ac_cv_member_struct_ifreq_ifr_addr=yes
8693 echo "$as_me: failed program was:" >&5
8694 sed 's/^/| /' conftest.$ac_ext >&5
8696 cat >conftest.$ac_ext <<_ACEOF
8699 cat confdefs.h >>conftest.$ac_ext
8700 cat >>conftest.$ac_ext <<_ACEOF
8701 /* end confdefs.h. */
8702 $ac_includes_default
8703 #if HAVE_SYS_SOCKET_H
8704 #include <sys/socket.h>
8713 static struct ifreq ac_aggr;
8714 if (sizeof ac_aggr.ifr_addr)
8720 rm -f conftest.$ac_objext
8721 if { (ac_try="$ac_compile"
8723 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8724 *) ac_try_echo
=$ac_try;;
8726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8727 (eval "$ac_compile") 2>conftest.er1
8729 grep -v '^ *+' conftest.er1
>conftest.err
8731 cat conftest.err
>&5
8732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733 (exit $ac_status); } && {
8734 test -z "$ac_c_werror_flag" ||
8735 test ! -s conftest.err
8736 } && test -s conftest.
$ac_objext; then
8737 ac_cv_member_struct_ifreq_ifr_addr
=yes
8739 echo "$as_me: failed program was:" >&5
8740 sed 's/^/| /' conftest.
$ac_ext >&5
8742 ac_cv_member_struct_ifreq_ifr_addr
=no
8745 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8748 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8750 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8751 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8752 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8754 cat >>confdefs.h
<<_ACEOF
8755 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8763 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8764 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8765 if test "$ac_cv_prog_cc_c89" != no
; then
8766 { echo "$as_me:$LINENO: result: yes" >&5
8767 echo "${ECHO_T}yes" >&6; }
8769 cat >>confdefs.h
<<\_ACEOF
8770 #define PROTOTYPES 1
8774 cat >>confdefs.h
<<\_ACEOF
8775 #define __PROTOTYPES 1
8779 { echo "$as_me:$LINENO: result: no" >&5
8780 echo "${ECHO_T}no" >&6; }
8783 { echo "$as_me:$LINENO: checking for working volatile" >&5
8784 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8785 if test "${ac_cv_c_volatile+set}" = set; then
8786 echo $ECHO_N "(cached) $ECHO_C" >&6
8788 cat >conftest.
$ac_ext <<_ACEOF
8791 cat confdefs.h
>>conftest.
$ac_ext
8792 cat >>conftest.
$ac_ext <<_ACEOF
8793 /* end confdefs.h. */
8800 int * volatile y = (int *) 0;
8806 rm -f conftest.
$ac_objext
8807 if { (ac_try
="$ac_compile"
8809 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8810 *) ac_try_echo=$ac_try;;
8812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8813 (eval "$ac_compile") 2>conftest.er1
8815 grep -v '^ *+' conftest.er1 >conftest.err
8817 cat conftest.err >&5
8818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819 (exit $ac_status); } && {
8820 test -z "$ac_c_werror_flag" ||
8821 test ! -s conftest.err
8822 } && test -s conftest.$ac_objext; then
8823 ac_cv_c_volatile=yes
8825 echo "$as_me: failed program was:" >&5
8826 sed 's/^/| /' conftest.$ac_ext >&5
8831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8833 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8834 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8835 if test $ac_cv_c_volatile = no; then
8837 cat >>confdefs.h <<\_ACEOF
8843 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8844 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8845 if test "${ac_cv_c_const+set}" = set; then
8846 echo $ECHO_N "(cached) $ECHO_C" >&6
8848 cat >conftest.$ac_ext <<_ACEOF
8851 cat confdefs.h >>conftest.$ac_ext
8852 cat >>conftest.$ac_ext <<_ACEOF
8853 /* end confdefs.h. */
8858 /* FIXME: Include the comments suggested by Paul. */
8860 /* Ultrix mips cc rejects this. */
8861 typedef int charset[2];
8863 /* SunOS 4.1.1 cc rejects this. */
8864 char const *const *pcpcc;
8866 /* NEC SVR4.0.2 mips cc rejects this. */
8867 struct point {int x, y;};
8868 static struct point const zero = {0,0};
8869 /* AIX XL C 1.02.0.0 rejects this.
8870 It does not let you subtract one const X* pointer from another in
8871 an arm of an if-expression whose if-part is not a constant
8873 const char *g = "string";
8874 pcpcc = &g + (g ? g-g : 0);
8875 /* HPUX 7.0 cc rejects these. */
8877 ppc = (char**) pcpcc;
8878 pcpcc = (char const *const *) ppc;
8879 { /* SCO 3.2v4 cc rejects this. */
8881 char const *s = 0 ? (char *) 0 : (char const *) 0;
8886 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8888 const int *foo = &x[0];
8891 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8892 typedef const int *iptr;
8896 { /* AIX XL C 1.02.0.0 rejects this saying
8897 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8898 struct s { int j; const int *ap[3]; };
8899 struct s *b; b->j = 5;
8901 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8905 return !cs[0] && !zero.x;
8912 rm -f conftest.$ac_objext
8913 if { (ac_try="$ac_compile"
8915 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8916 *) ac_try_echo
=$ac_try;;
8918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8919 (eval "$ac_compile") 2>conftest.er1
8921 grep -v '^ *+' conftest.er1
>conftest.err
8923 cat conftest.err
>&5
8924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8925 (exit $ac_status); } && {
8926 test -z "$ac_c_werror_flag" ||
8927 test ! -s conftest.err
8928 } && test -s conftest.
$ac_objext; then
8931 echo "$as_me: failed program was:" >&5
8932 sed 's/^/| /' conftest.
$ac_ext >&5
8937 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8939 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8940 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8941 if test $ac_cv_c_const = no
; then
8943 cat >>confdefs.h
<<\_ACEOF
8949 { echo "$as_me:$LINENO: checking for void * support" >&5
8950 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8951 if test "${emacs_cv_void_star+set}" = set; then
8952 echo $ECHO_N "(cached) $ECHO_C" >&6
8954 cat >conftest.
$ac_ext <<_ACEOF
8957 cat confdefs.h
>>conftest.
$ac_ext
8958 cat >>conftest.
$ac_ext <<_ACEOF
8959 /* end confdefs.h. */
8969 rm -f conftest.
$ac_objext
8970 if { (ac_try
="$ac_compile"
8972 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8973 *) ac_try_echo=$ac_try;;
8975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8976 (eval "$ac_compile") 2>conftest.er1
8978 grep -v '^ *+' conftest.er1 >conftest.err
8980 cat conftest.err >&5
8981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982 (exit $ac_status); } && {
8983 test -z "$ac_c_werror_flag" ||
8984 test ! -s conftest.err
8985 } && test -s conftest.$ac_objext; then
8986 emacs_cv_void_star=yes
8988 echo "$as_me: failed program was:" >&5
8989 sed 's/^/| /' conftest.$ac_ext >&5
8991 emacs_cv_void_star=no
8994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8996 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8997 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8998 if test $emacs_cv_void_star = yes; then
8999 cat >>confdefs.h <<\_ACEOF
9000 #define POINTER_TYPE void
9004 cat >>confdefs.h <<\_ACEOF
9005 #define POINTER_TYPE char
9014 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9015 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
9016 set x ${MAKE-make}; ac_make=`echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9017 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9018 echo $ECHO_N "(cached) $ECHO_C" >&6
9020 cat >conftest.make <<\_ACEOF
9023 @echo '@@@%%%=$(MAKE)=@@@%%%'
9025 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9026 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
9028 eval ac_cv_prog_make_${ac_make}_set=yes;;
9030 eval ac_cv_prog_make_${ac_make}_set=no;;
9034 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9035 { echo "$as_me:$LINENO: result: yes" >&5
9036 echo "${ECHO_T}yes" >&6; }
9039 { echo "$as_me:$LINENO: result: no" >&5
9040 echo "${ECHO_T}no" >&6; }
9041 SET_MAKE="MAKE=${MAKE-make}"
9045 { echo "$as_me:$LINENO: checking for long file names" >&5
9046 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
9047 if test "${ac_cv_sys_long_file_names+set}" = set; then
9048 echo $ECHO_N "(cached) $ECHO_C" >&6
9050 ac_cv_sys_long_file_names=yes
9051 # Test for long file names in all the places we know might matter:
9052 # . the current directory, where building will happen
9053 # $prefix/lib where we will be installing things
9054 # $exec_prefix/lib likewise
9055 # $TMPDIR if set, where it might want to write temporary files
9056 # /tmp where it might want to write temporary files
9059 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9060 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9061 # in the usual case where exec_prefix is '${prefix}'.
9063 . | /* | ?:[\\/]*) ;; #(
9066 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9067 ac_xdir=$ac_dir/cf$$
9068 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9069 ac_tf1=$ac_xdir/conftest9012345
9070 ac_tf2=$ac_xdir/conftest9012346
9071 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9072 ac_cv_sys_long_file_names=no
9073 rm -f -r "$ac_xdir" 2>/dev/null
9074 test $ac_cv_sys_long_file_names = no && break
9077 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9078 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9079 if test $ac_cv_sys_long_file_names = yes; then
9081 cat >>confdefs.h <<\_ACEOF
9082 #define HAVE_LONG_FILE_NAMES 1
9088 #### Choose a window system.
9090 { echo "$as_me:$LINENO: checking for X" >&5
9091 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9094 # Check whether --with-x was given.
9095 if test "${with_x+set}" = set; then
9099 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9100 if test "x$with_x" = xno; then
9101 # The user explicitly disabled X.
9104 case $x_includes,$x_libraries in #(
9105 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9106 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9107 { (exit 1); exit 1; }; };; #(
9108 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9109 echo $ECHO_N "(cached) $ECHO_C" >&6
9111 # One or both of the vars are not set, and there is no cached value.
9112 ac_x_includes=no ac_x_libraries=no
9113 rm -f -r conftest.dir
9114 if mkdir conftest.dir; then
9116 cat >Imakefile <<'_ACEOF'
9118 @echo incroot='${INCROOT}'
9120 @echo usrlibdir='${USRLIBDIR}'
9122 @echo libdir='${LIBDIR}'
9124 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9125 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9126 for ac_var in incroot usrlibdir libdir; do
9127 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
9129 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9130 for ac_extension in a so sl; do
9131 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9132 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9133 ac_im_usrlibdir=$ac_im_libdir; break
9136 # Screen out bogus values from the imake configuration. They are
9137 # bogus both because they are the default anyway, and because
9138 # using them would break gcc on systems where it needs fixed includes.
9139 case $ac_im_incroot in
9140 /usr/include) ac_x_includes= ;;
9141 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9143 case $ac_im_usrlibdir in
9145 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9149 rm -f -r conftest.dir
9152 # Standard set of common directories for X headers.
9153 # Check X11 before X11Rn because it is often a symlink to the current release.
9165 /usr/local/X11/include
9166 /usr/local/X11R6/include
9167 /usr/local/X11R5/include
9168 /usr/local/X11R4/include
9170 /usr/local/include/X11
9171 /usr/local/include/X11R6
9172 /usr/local/include/X11R5
9173 /usr/local/include/X11R4
9177 /usr/XFree86/include/X11
9181 /usr/unsupported/include
9183 /usr/local/x11r5/include
9184 /usr/lpp/Xamples/include
9186 /usr/openwin/include
9187 /usr/openwin/share/include'
9189 if test "$ac_x_includes" = no; then
9190 # Guess where to find include files, by looking for Xlib.h.
9191 # First, try using that file with no special directory specified.
9192 cat >conftest.$ac_ext <<_ACEOF
9195 cat confdefs.h >>conftest.$ac_ext
9196 cat >>conftest.$ac_ext <<_ACEOF
9197 /* end confdefs.h. */
9198 #include <X11/Xlib.h>
9200 if { (ac_try="$ac_cpp conftest.$ac_ext"
9202 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9203 *) ac_try_echo
=$ac_try;;
9205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9206 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9208 grep -v '^ *+' conftest.er1
>conftest.err
9210 cat conftest.err
>&5
9211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9212 (exit $ac_status); } >/dev
/null
&& {
9213 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9214 test ! -s conftest.err
9216 # We can compile using X headers with no special include directory.
9219 echo "$as_me: failed program was:" >&5
9220 sed 's/^/| /' conftest.
$ac_ext >&5
9222 for ac_dir
in $ac_x_header_dirs; do
9223 if test -r "$ac_dir/X11/Xlib.h"; then
9224 ac_x_includes
=$ac_dir
9230 rm -f conftest.err conftest.
$ac_ext
9231 fi # $ac_x_includes = no
9233 if test "$ac_x_libraries" = no
; then
9234 # Check for the libraries.
9235 # See if we find them without any special options.
9236 # Don't add to $LIBS permanently.
9239 cat >conftest.
$ac_ext <<_ACEOF
9242 cat confdefs.h
>>conftest.
$ac_ext
9243 cat >>conftest.
$ac_ext <<_ACEOF
9244 /* end confdefs.h. */
9245 #include <X11/Xlib.h>
9254 rm -f conftest.
$ac_objext conftest
$ac_exeext
9255 if { (ac_try
="$ac_link"
9257 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9258 *) ac_try_echo=$ac_try;;
9260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9261 (eval "$ac_link") 2>conftest.er1
9263 grep -v '^ *+' conftest.er1 >conftest.err
9265 cat conftest.err >&5
9266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267 (exit $ac_status); } && {
9268 test -z "$ac_c_werror_flag" ||
9269 test ! -s conftest.err
9270 } && test -s conftest$ac_exeext &&
9271 $as_test_x conftest$ac_exeext; then
9273 # We can link X programs with no special library path.
9276 echo "$as_me: failed program was:" >&5
9277 sed 's/^/| /' conftest.$ac_ext >&5
9280 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
9282 # Don't even attempt the hair of trying to link an X program!
9283 for ac_extension in a so sl; do
9284 if test -r "$ac_dir/libX11.$ac_extension"; then
9285 ac_x_libraries=$ac_dir
9292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9293 conftest$ac_exeext conftest.$ac_ext
9294 fi # $ac_x_libraries = no
9296 case $ac_x_includes,$ac_x_libraries in #(
9298 # Didn't find X, or a directory has "'" in its name.
9299 ac_cv_have_x="have_x=no";; #(
9301 # Record where we found X for the cache.
9302 ac_cv_have_x="have_x=yes\
9303 ac_x_includes='$ac_x_includes'\
9304 ac_x_libraries='$ac_x_libraries'"
9310 eval "$ac_cv_have_x"
9313 if test "$have_x" != yes; then
9314 { echo "$as_me:$LINENO: result: $have_x" >&5
9315 echo "${ECHO_T}$have_x" >&6; }
9318 # If each of the values was on the command line, it overrides each guess.
9319 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9320 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9321 # Update the cache value to reflect the command line values.
9322 ac_cv_have_x="have_x=yes\
9323 ac_x_includes='$x_includes'\
9324 ac_x_libraries='$x_libraries'"
9325 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9326 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9329 if test "$no_x" = yes; then
9335 if test "${x_libraries}" != NONE; then
9336 if test -n "${x_libraries}"; then
9337 LD_SWITCH_X_SITE=-L`echo ${x_libraries} |
sed -e "s/:/ -L/g"`
9338 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} |
sed -e "s/:/ -R/g"`
9340 x_default_search_path=""
9341 x_search_path=${x_libraries}
9342 if test -z "${x_search_path}"; then
9343 x_search_path=/usr/lib
9345 for x_library in `echo ${x_search_path}: | \
9346 sed -e "s/:/ /g" -e p
-e "s:/lib[^ /]* :/share :g"`; do
9348 ${x_library}/X11/%L/%T/%N%C%S:\
9349 ${x_library}/X11/%l/%T/%N%C%S:\
9350 ${x_library}/X11/%T/%N%C%S:\
9351 ${x_library}/X11/%L/%T/%N%S:\
9352 ${x_library}/X11/%l/%T/%N%S:\
9353 ${x_library}/X11/%T/%N%S"
9354 if test x"${x_default_search_path}" = x; then
9355 x_default_search_path=${x_search_path}
9357 x_default_search_path="${x_search_path}:${x_default_search_path}"
9361 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9362 C_SWITCH_X_SITE=-I`echo ${x_includes} |
sed -e "s/:/ -I/g"`
9365 if test x"${x_includes}" = x; then
9366 bitmapdir=/usr/include/X11/bitmaps
9368 # accumulate include directories that have X11 bitmap subdirectories
9370 for bmd in `echo ${x_includes} |
sed -e "s/:/ /g"`; do
9371 if test -d "${bmd}/X11/bitmaps"; then
9372 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9374 if test -d "${bmd}/bitmaps"; then
9375 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9378 if test ${bmd_acc} != "dummyval"; then
9379 bitmapdir=`echo ${bmd_acc} |
sed -e "s/^dummyval://"`
9384 if test "${with_carbon}" != no; then
9385 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9386 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9387 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9388 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9389 echo $ECHO_N "(cached) $ECHO_C" >&6
9391 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9392 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9394 # Is the header compilable?
9395 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9396 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9397 cat >conftest.$ac_ext <<_ACEOF
9400 cat confdefs.h >>conftest.$ac_ext
9401 cat >>conftest.$ac_ext <<_ACEOF
9402 /* end confdefs.h. */
9403 $ac_includes_default
9404 #include <Carbon/Carbon.h>
9406 rm -f conftest.$ac_objext
9407 if { (ac_try="$ac_compile"
9409 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9410 *) ac_try_echo
=$ac_try;;
9412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9413 (eval "$ac_compile") 2>conftest.er1
9415 grep -v '^ *+' conftest.er1
>conftest.err
9417 cat conftest.err
>&5
9418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9419 (exit $ac_status); } && {
9420 test -z "$ac_c_werror_flag" ||
9421 test ! -s conftest.err
9422 } && test -s conftest.
$ac_objext; then
9423 ac_header_compiler
=yes
9425 echo "$as_me: failed program was:" >&5
9426 sed 's/^/| /' conftest.
$ac_ext >&5
9428 ac_header_compiler
=no
9431 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9432 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9433 echo "${ECHO_T}$ac_header_compiler" >&6; }
9435 # Is the header present?
9436 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9437 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9438 cat >conftest.
$ac_ext <<_ACEOF
9441 cat confdefs.h
>>conftest.
$ac_ext
9442 cat >>conftest.
$ac_ext <<_ACEOF
9443 /* end confdefs.h. */
9444 #include <Carbon/Carbon.h>
9446 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9448 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9449 *) ac_try_echo=$ac_try;;
9451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9452 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9454 grep -v '^ *+' conftest.er1 >conftest.err
9456 cat conftest.err >&5
9457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9458 (exit $ac_status); } >/dev/null && {
9459 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9460 test ! -s conftest.err
9462 ac_header_preproc=yes
9464 echo "$as_me: failed program was:" >&5
9465 sed 's/^/| /' conftest.$ac_ext >&5
9467 ac_header_preproc=no
9470 rm -f conftest.err conftest.$ac_ext
9471 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9472 echo "${ECHO_T}$ac_header_preproc" >&6; }
9474 # So? What about this header?
9475 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9477 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9478 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9479 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9480 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9481 ac_header_preproc=yes
9484 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9485 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9486 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9487 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9488 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9489 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9490 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9491 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9492 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9493 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9494 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9495 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9499 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9500 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9501 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9502 echo $ECHO_N "(cached) $ECHO_C" >&6
9504 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9506 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9507 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9510 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9516 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9517 if test "${with_carbon+set}" != set \
9518 && test "${carbon_appdir_x+set}" != set; then
9519 for var in with_x with_x_toolkit with_gtk with_xim \
9520 with_xpm with_jpeg with_tiff with_gif with_png; do
9521 if eval test \"\${$var+set}\" = set; then
9528 if test "${HAVE_CARBON}" = yes; then
9532 case "${window_system}" in
9536 case "${with_x_toolkit}" in
9537 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9538 motif ) USE_X_TOOLKIT=MOTIF ;;
9540 USE_X_TOOLKIT=none ;;
9541 no ) USE_X_TOOLKIT=none ;;
9542 * ) USE_X_TOOLKIT=maybe ;;
9552 ### If we're using X11, we should use the X menu package.
9555 yes ) HAVE_MENUS=yes ;;
9558 if test "${opsys}" = "hpux9"; then
9559 case "${x_libraries}" in
9561 opsysfile="s/hpux9-x11r4.h"
9566 if test "${opsys}" = "hpux9shr"; then
9567 case "${x_libraries}" in
9569 opsysfile="s/hpux9shxr4.h"
9574 ### Compute the unexec source name from the object name.
9575 UNEXEC_SRC="`echo ${unexec} |
sed 's/\.o/.c/'`"
9577 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9578 # Assume not, until told otherwise.
9581 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9582 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9583 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9584 echo $ECHO_N "(cached) $ECHO_C" >&6
9586 cat >conftest.$ac_ext <<_ACEOF
9589 cat confdefs.h >>conftest.$ac_ext
9590 cat >>conftest.$ac_ext <<_ACEOF
9591 /* end confdefs.h. */
9592 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9593 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9594 #define malloc_get_state innocuous_malloc_get_state
9596 /* System header to define __stub macros and hopefully few prototypes,
9597 which can conflict with char malloc_get_state (); below.
9598 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9599 <limits.h> exists even on freestanding compilers. */
9602 # include <limits.h>
9604 # include <assert.h>
9607 #undef malloc_get_state
9609 /* Override any GCC internal prototype to avoid an error.
9610 Use char because int might match the return type of a GCC
9611 builtin and then its argument prototype would still apply. */
9615 char malloc_get_state ();
9616 /* The GNU C library defines this for functions which it implements
9617 to always fail with ENOSYS. Some functions are actually named
9618 something starting with __ and the normal name is an alias. */
9619 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9626 return malloc_get_state ();
9631 rm -f conftest.$ac_objext conftest$ac_exeext
9632 if { (ac_try="$ac_link"
9634 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9635 *) ac_try_echo
=$ac_try;;
9637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9638 (eval "$ac_link") 2>conftest.er1
9640 grep -v '^ *+' conftest.er1
>conftest.err
9642 cat conftest.err
>&5
9643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644 (exit $ac_status); } && {
9645 test -z "$ac_c_werror_flag" ||
9646 test ! -s conftest.err
9647 } && test -s conftest
$ac_exeext &&
9648 $as_test_x conftest
$ac_exeext; then
9649 ac_cv_func_malloc_get_state
=yes
9651 echo "$as_me: failed program was:" >&5
9652 sed 's/^/| /' conftest.
$ac_ext >&5
9654 ac_cv_func_malloc_get_state
=no
9657 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9658 conftest
$ac_exeext conftest.
$ac_ext
9660 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9661 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9662 if test $ac_cv_func_malloc_get_state = yes; then
9668 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9669 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9670 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9671 echo $ECHO_N "(cached) $ECHO_C" >&6
9673 cat >conftest.
$ac_ext <<_ACEOF
9676 cat confdefs.h
>>conftest.
$ac_ext
9677 cat >>conftest.
$ac_ext <<_ACEOF
9678 /* end confdefs.h. */
9679 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9680 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9681 #define malloc_set_state innocuous_malloc_set_state
9683 /* System header to define __stub macros and hopefully few prototypes,
9684 which can conflict with char malloc_set_state (); below.
9685 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9686 <limits.h> exists even on freestanding compilers. */
9689 # include <limits.h>
9691 # include <assert.h>
9694 #undef malloc_set_state
9696 /* Override any GCC internal prototype to avoid an error.
9697 Use char because int might match the return type of a GCC
9698 builtin and then its argument prototype would still apply. */
9702 char malloc_set_state ();
9703 /* The GNU C library defines this for functions which it implements
9704 to always fail with ENOSYS. Some functions are actually named
9705 something starting with __ and the normal name is an alias. */
9706 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9713 return malloc_set_state ();
9718 rm -f conftest.
$ac_objext conftest
$ac_exeext
9719 if { (ac_try
="$ac_link"
9721 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9722 *) ac_try_echo=$ac_try;;
9724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9725 (eval "$ac_link") 2>conftest.er1
9727 grep -v '^ *+' conftest.er1 >conftest.err
9729 cat conftest.err >&5
9730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731 (exit $ac_status); } && {
9732 test -z "$ac_c_werror_flag" ||
9733 test ! -s conftest.err
9734 } && test -s conftest$ac_exeext &&
9735 $as_test_x conftest$ac_exeext; then
9736 ac_cv_func_malloc_set_state=yes
9738 echo "$as_me: failed program was:" >&5
9739 sed 's/^/| /' conftest.$ac_ext >&5
9741 ac_cv_func_malloc_set_state=no
9744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9745 conftest$ac_exeext conftest.$ac_ext
9747 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9748 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9749 if test $ac_cv_func_malloc_set_state = yes; then
9755 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9756 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9757 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9758 echo $ECHO_N "(cached) $ECHO_C" >&6
9760 cat >conftest.$ac_ext <<_ACEOF
9763 cat confdefs.h >>conftest.$ac_ext
9764 cat >>conftest.$ac_ext <<_ACEOF
9765 /* end confdefs.h. */
9766 extern void (* __after_morecore_hook)();
9770 __after_morecore_hook = 0
9775 rm -f conftest.$ac_objext conftest$ac_exeext
9776 if { (ac_try="$ac_link"
9778 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9779 *) ac_try_echo
=$ac_try;;
9781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9782 (eval "$ac_link") 2>conftest.er1
9784 grep -v '^ *+' conftest.er1
>conftest.err
9786 cat conftest.err
>&5
9787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9788 (exit $ac_status); } && {
9789 test -z "$ac_c_werror_flag" ||
9790 test ! -s conftest.err
9791 } && test -s conftest
$ac_exeext &&
9792 $as_test_x conftest
$ac_exeext; then
9793 emacs_cv_var___after_morecore_hook
=yes
9795 echo "$as_me: failed program was:" >&5
9796 sed 's/^/| /' conftest.
$ac_ext >&5
9798 emacs_cv_var___after_morecore_hook
=no
9801 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9802 conftest
$ac_exeext conftest.
$ac_ext
9804 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9805 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9806 if test $emacs_cv_var___after_morecore_hook = no
; then
9809 if test "${system_malloc}" = "yes"; then
9812 (The GNU allocators don't work with this system configuration.)"
9814 if test "$doug_lea_malloc" = "yes" ; then
9815 if test "$GNU_MALLOC" = yes ; then
9817 (Using Doug Lea's new malloc from the GNU C Library.)"
9820 cat >>confdefs.h
<<\_ACEOF
9821 #define DOUG_LEA_MALLOC 1
9826 if test x
"${REL_ALLOC}" = x
; then
9827 REL_ALLOC
=${GNU_MALLOC}
9833 for ac_header
in stdlib.h unistd.h
9835 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9836 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9837 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9838 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9839 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9840 echo $ECHO_N "(cached) $ECHO_C" >&6
9842 ac_res
=`eval echo '${'$as_ac_Header'}'`
9843 { echo "$as_me:$LINENO: result: $ac_res" >&5
9844 echo "${ECHO_T}$ac_res" >&6; }
9846 # Is the header compilable?
9847 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9848 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9849 cat >conftest.
$ac_ext <<_ACEOF
9852 cat confdefs.h
>>conftest.
$ac_ext
9853 cat >>conftest.
$ac_ext <<_ACEOF
9854 /* end confdefs.h. */
9855 $ac_includes_default
9856 #include <$ac_header>
9858 rm -f conftest.
$ac_objext
9859 if { (ac_try
="$ac_compile"
9861 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9862 *) ac_try_echo=$ac_try;;
9864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9865 (eval "$ac_compile") 2>conftest.er1
9867 grep -v '^ *+' conftest.er1 >conftest.err
9869 cat conftest.err >&5
9870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871 (exit $ac_status); } && {
9872 test -z "$ac_c_werror_flag" ||
9873 test ! -s conftest.err
9874 } && test -s conftest.$ac_objext; then
9875 ac_header_compiler=yes
9877 echo "$as_me: failed program was:" >&5
9878 sed 's/^/| /' conftest.$ac_ext >&5
9880 ac_header_compiler=no
9883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9884 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9885 echo "${ECHO_T}$ac_header_compiler" >&6; }
9887 # Is the header present?
9888 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9889 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9890 cat >conftest.$ac_ext <<_ACEOF
9893 cat confdefs.h >>conftest.$ac_ext
9894 cat >>conftest.$ac_ext <<_ACEOF
9895 /* end confdefs.h. */
9896 #include <$ac_header>
9898 if { (ac_try="$ac_cpp conftest.$ac_ext"
9900 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9901 *) ac_try_echo
=$ac_try;;
9903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9904 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9906 grep -v '^ *+' conftest.er1
>conftest.err
9908 cat conftest.err
>&5
9909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910 (exit $ac_status); } >/dev
/null
&& {
9911 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9912 test ! -s conftest.err
9914 ac_header_preproc
=yes
9916 echo "$as_me: failed program was:" >&5
9917 sed 's/^/| /' conftest.
$ac_ext >&5
9919 ac_header_preproc
=no
9922 rm -f conftest.err conftest.
$ac_ext
9923 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9924 echo "${ECHO_T}$ac_header_preproc" >&6; }
9926 # So? What about this header?
9927 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9929 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9930 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9931 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9932 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9933 ac_header_preproc
=yes
9936 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9937 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9938 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9939 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9940 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9941 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9942 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9943 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9944 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9945 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9946 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9947 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9951 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9952 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9953 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9954 echo $ECHO_N "(cached) $ECHO_C" >&6
9956 eval "$as_ac_Header=\$ac_header_preproc"
9958 ac_res
=`eval echo '${'$as_ac_Header'}'`
9959 { echo "$as_me:$LINENO: result: $ac_res" >&5
9960 echo "${ECHO_T}$ac_res" >&6; }
9963 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9964 cat >>confdefs.h
<<_ACEOF
9965 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9973 for ac_func
in getpagesize
9975 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9976 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9977 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9978 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9979 echo $ECHO_N "(cached) $ECHO_C" >&6
9981 cat >conftest.
$ac_ext <<_ACEOF
9984 cat confdefs.h
>>conftest.
$ac_ext
9985 cat >>conftest.
$ac_ext <<_ACEOF
9986 /* end confdefs.h. */
9987 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9988 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9989 #define $ac_func innocuous_$ac_func
9991 /* System header to define __stub macros and hopefully few prototypes,
9992 which can conflict with char $ac_func (); below.
9993 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9994 <limits.h> exists even on freestanding compilers. */
9997 # include <limits.h>
9999 # include <assert.h>
10004 /* Override any GCC internal prototype to avoid an error.
10005 Use char because int might match the return type of a GCC
10006 builtin and then its argument prototype would still apply. */
10011 /* The GNU C library defines this for functions which it implements
10012 to always fail with ENOSYS. Some functions are actually named
10013 something starting with __ and the normal name is an alias. */
10014 #if defined __stub_$ac_func || defined __stub___$ac_func
10021 return $ac_func ();
10026 rm -f conftest.
$ac_objext conftest
$ac_exeext
10027 if { (ac_try
="$ac_link"
10028 case "(($ac_try" in
10029 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10030 *) ac_try_echo=$ac_try;;
10032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10033 (eval "$ac_link") 2>conftest.er1
10035 grep -v '^ *+' conftest.er1 >conftest.err
10037 cat conftest.err >&5
10038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039 (exit $ac_status); } && {
10040 test -z "$ac_c_werror_flag" ||
10041 test ! -s conftest.err
10042 } && test -s conftest$ac_exeext &&
10043 $as_test_x conftest$ac_exeext; then
10044 eval "$as_ac_var=yes"
10046 echo "$as_me: failed program was:" >&5
10047 sed 's/^/| /' conftest.$ac_ext >&5
10049 eval "$as_ac_var=no"
10052 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10053 conftest$ac_exeext conftest.$ac_ext
10055 ac_res=`eval echo '${'$as_ac_var'}'`
10056 { echo "$as_me:$LINENO: result: $ac_res" >&5
10057 echo "${ECHO_T}$ac_res" >&6; }
10058 if test `eval echo '${'$as_ac_var'}'` = yes; then
10059 cat >>confdefs.h <<_ACEOF
10060 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10066 { echo "$as_me:$LINENO: checking for working mmap" >&5
10067 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10068 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10069 echo $ECHO_N "(cached) $ECHO_C" >&6
10071 if test "$cross_compiling" = yes; then
10072 ac_cv_func_mmap_fixed_mapped=no
10074 cat >conftest.$ac_ext <<_ACEOF
10077 cat confdefs.h >>conftest.$ac_ext
10078 cat >>conftest.$ac_ext <<_ACEOF
10079 /* end confdefs.h. */
10080 $ac_includes_default
10081 /* malloc might have been renamed as rpl_malloc. */
10084 /* Thanks to Mike Haertel and Jim Avera for this test.
10085 Here is a matrix of mmap possibilities:
10086 mmap private not fixed
10087 mmap private fixed at somewhere currently unmapped
10088 mmap private fixed at somewhere already mapped
10089 mmap shared not fixed
10090 mmap shared fixed at somewhere currently unmapped
10091 mmap shared fixed at somewhere already mapped
10092 For private mappings, we should verify that changes cannot be read()
10093 back from the file, nor mmap's back from the file at a different
10094 address. (There have been systems where private was not correctly
10095 implemented like the infamous i386 svr4.0, and systems where the
10096 VM page cache was not coherent with the file system buffer cache
10097 like early versions of FreeBSD and possibly contemporary NetBSD.)
10098 For shared mappings, we should conversely verify that changes get
10099 propagated back to all the places they're supposed to be.
10101 Grep wants private fixed already mapped.
10102 The main things grep needs to know about mmap are:
10103 * does it exist and is it safe to write into the mmap'd area
10104 * how to use it (BSD variants) */
10107 #include <sys/mman.h>
10109 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10113 /* This mess was copied from the GNU getpagesize.h. */
10114 #ifndef HAVE_GETPAGESIZE
10115 /* Assume that all systems that can run configure have sys/param.h. */
10116 # ifndef HAVE_SYS_PARAM_H
10117 # define HAVE_SYS_PARAM_H 1
10120 # ifdef _SC_PAGESIZE
10121 # define getpagesize() sysconf(_SC_PAGESIZE)
10122 # else /* no _SC_PAGESIZE */
10123 # ifdef HAVE_SYS_PARAM_H
10124 # include <sys/param.h>
10125 # ifdef EXEC_PAGESIZE
10126 # define getpagesize() EXEC_PAGESIZE
10127 # else /* no EXEC_PAGESIZE */
10129 # define getpagesize() NBPG * CLSIZE
10132 # endif /* no CLSIZE */
10133 # else /* no NBPG */
10135 # define getpagesize() NBPC
10136 # else /* no NBPC */
10138 # define getpagesize() PAGESIZE
10139 # endif /* PAGESIZE */
10140 # endif /* no NBPC */
10141 # endif /* no NBPG */
10142 # endif /* no EXEC_PAGESIZE */
10143 # else /* no HAVE_SYS_PARAM_H */
10144 # define getpagesize() 8192 /* punt totally */
10145 # endif /* no HAVE_SYS_PARAM_H */
10146 # endif /* no _SC_PAGESIZE */
10148 #endif /* no HAVE_GETPAGESIZE */
10153 char *data, *data2, *data3;
10157 pagesize = getpagesize ();
10159 /* First, make a file with some known garbage in it. */
10160 data = (char *) malloc (pagesize);
10163 for (i = 0; i < pagesize; ++i)
10164 *(data + i) = rand ();
10166 fd = creat ("conftest.mmap", 0600);
10169 if (write (fd, data, pagesize) != pagesize)
10173 /* Next, try to mmap the file at a fixed address which already has
10174 something else allocated at it. If we can, also make sure that
10175 we see the same garbage. */
10176 fd = open ("conftest.mmap", O_RDWR);
10179 data2 = (char *) malloc (2 * pagesize);
10182 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10183 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10184 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10186 for (i = 0; i < pagesize; ++i)
10187 if (*(data + i) != *(data2 + i))
10190 /* Finally, make sure that changes to the mapped area do not
10191 percolate back to the file as seen by read(). (This is a bug on
10192 some variants of i386 svr4.0.) */
10193 for (i = 0; i < pagesize; ++i)
10194 *(data2 + i) = *(data2 + i) + 1;
10195 data3 = (char *) malloc (pagesize);
10198 if (read (fd, data3, pagesize) != pagesize)
10200 for (i = 0; i < pagesize; ++i)
10201 if (*(data + i) != *(data3 + i))
10207 rm -f conftest$ac_exeext
10208 if { (ac_try="$ac_link"
10209 case "(($ac_try" in
10210 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10211 *) ac_try_echo
=$ac_try;;
10213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10214 (eval "$ac_link") 2>&5
10216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10218 { (case "(($ac_try" in
10219 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10220 *) ac_try_echo=$ac_try;;
10222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10223 (eval "$ac_try") 2>&5
10225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10226 (exit $ac_status); }; }; then
10227 ac_cv_func_mmap_fixed_mapped=yes
10229 echo "$as_me: program exited with status $ac_status" >&5
10230 echo "$as_me: failed program was:" >&5
10231 sed 's/^/| /' conftest.$ac_ext >&5
10233 ( exit $ac_status )
10234 ac_cv_func_mmap_fixed_mapped=no
10236 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10241 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10242 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10243 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10245 cat >>confdefs.h <<\_ACEOF
10246 #define HAVE_MMAP 1
10250 rm -f conftest.mmap
10252 if test $use_mmap_for_buffers = yes; then
10256 LIBS="$libsrc_libs $LIBS"
10259 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10260 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10261 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10262 echo $ECHO_N "(cached) $ECHO_C" >&6
10264 ac_check_lib_save_LIBS=$LIBS
10265 LIBS="-ldnet $LIBS"
10266 cat >conftest.$ac_ext <<_ACEOF
10269 cat confdefs.h >>conftest.$ac_ext
10270 cat >>conftest.$ac_ext <<_ACEOF
10271 /* end confdefs.h. */
10273 /* Override any GCC internal prototype to avoid an error.
10274 Use char because int might match the return type of a GCC
10275 builtin and then its argument prototype would still apply. */
10283 return dnet_ntoa ();
10288 rm -f conftest.$ac_objext conftest$ac_exeext
10289 if { (ac_try="$ac_link"
10290 case "(($ac_try" in
10291 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10292 *) ac_try_echo
=$ac_try;;
10294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10295 (eval "$ac_link") 2>conftest.er1
10297 grep -v '^ *+' conftest.er1
>conftest.err
10299 cat conftest.err
>&5
10300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301 (exit $ac_status); } && {
10302 test -z "$ac_c_werror_flag" ||
10303 test ! -s conftest.err
10304 } && test -s conftest
$ac_exeext &&
10305 $as_test_x conftest
$ac_exeext; then
10306 ac_cv_lib_dnet_dnet_ntoa
=yes
10308 echo "$as_me: failed program was:" >&5
10309 sed 's/^/| /' conftest.
$ac_ext >&5
10311 ac_cv_lib_dnet_dnet_ntoa
=no
10314 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10315 conftest
$ac_exeext conftest.
$ac_ext
10316 LIBS
=$ac_check_lib_save_LIBS
10318 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10319 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10320 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10321 cat >>confdefs.h
<<_ACEOF
10322 #define HAVE_LIBDNET 1
10325 LIBS
="-ldnet $LIBS"
10330 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10331 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10332 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10333 echo $ECHO_N "(cached) $ECHO_C" >&6
10335 ac_check_lib_save_LIBS
=$LIBS
10336 LIBS
="-lXbsd $LIBS"
10337 cat >conftest.
$ac_ext <<_ACEOF
10340 cat confdefs.h
>>conftest.
$ac_ext
10341 cat >>conftest.
$ac_ext <<_ACEOF
10342 /* end confdefs.h. */
10353 rm -f conftest.
$ac_objext conftest
$ac_exeext
10354 if { (ac_try
="$ac_link"
10355 case "(($ac_try" in
10356 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10357 *) ac_try_echo=$ac_try;;
10359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10360 (eval "$ac_link") 2>conftest.er1
10362 grep -v '^ *+' conftest.er1 >conftest.err
10364 cat conftest.err >&5
10365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366 (exit $ac_status); } && {
10367 test -z "$ac_c_werror_flag" ||
10368 test ! -s conftest.err
10369 } && test -s conftest$ac_exeext &&
10370 $as_test_x conftest$ac_exeext; then
10371 ac_cv_lib_Xbsd_main=yes
10373 echo "$as_me: failed program was:" >&5
10374 sed 's/^/| /' conftest.$ac_ext >&5
10376 ac_cv_lib_Xbsd_main=no
10379 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10380 conftest$ac_exeext conftest.$ac_ext
10381 LIBS=$ac_check_lib_save_LIBS
10383 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10384 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10385 if test $ac_cv_lib_Xbsd_main = yes; then
10386 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10391 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10392 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10393 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10394 echo $ECHO_N "(cached) $ECHO_C" >&6
10396 ac_check_lib_save_LIBS=$LIBS
10397 LIBS="-lpthreads $LIBS"
10398 cat >conftest.$ac_ext <<_ACEOF
10401 cat confdefs.h >>conftest.$ac_ext
10402 cat >>conftest.$ac_ext <<_ACEOF
10403 /* end confdefs.h. */
10405 /* Override any GCC internal prototype to avoid an error.
10406 Use char because int might match the return type of a GCC
10407 builtin and then its argument prototype would still apply. */
10415 return cma_open ();
10420 rm -f conftest.$ac_objext conftest$ac_exeext
10421 if { (ac_try="$ac_link"
10422 case "(($ac_try" in
10423 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10424 *) ac_try_echo
=$ac_try;;
10426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10427 (eval "$ac_link") 2>conftest.er1
10429 grep -v '^ *+' conftest.er1
>conftest.err
10431 cat conftest.err
>&5
10432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10433 (exit $ac_status); } && {
10434 test -z "$ac_c_werror_flag" ||
10435 test ! -s conftest.err
10436 } && test -s conftest
$ac_exeext &&
10437 $as_test_x conftest
$ac_exeext; then
10438 ac_cv_lib_pthreads_cma_open
=yes
10440 echo "$as_me: failed program was:" >&5
10441 sed 's/^/| /' conftest.
$ac_ext >&5
10443 ac_cv_lib_pthreads_cma_open
=no
10446 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10447 conftest
$ac_exeext conftest.
$ac_ext
10448 LIBS
=$ac_check_lib_save_LIBS
10450 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10451 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10452 if test $ac_cv_lib_pthreads_cma_open = yes; then
10453 cat >>confdefs.h
<<_ACEOF
10454 #define HAVE_LIBPTHREADS 1
10457 LIBS
="-lpthreads $LIBS"
10462 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10463 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10464 if test -d /usr
/X386
/include
; then
10466 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10470 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10471 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10476 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10477 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10478 if test "${gdb_cv_bigtoc+set}" = set; then
10479 echo $ECHO_N "(cached) $ECHO_C" >&6
10483 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10484 *) gdb_cv_bigtoc
=-bbigtoc ;;
10487 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10488 cat >conftest.
$ac_ext <<_ACEOF
10491 cat confdefs.h
>>conftest.
$ac_ext
10492 cat >>conftest.
$ac_ext <<_ACEOF
10493 /* end confdefs.h. */
10503 rm -f conftest.
$ac_objext conftest
$ac_exeext
10504 if { (ac_try
="$ac_link"
10505 case "(($ac_try" in
10506 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10507 *) ac_try_echo=$ac_try;;
10509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10510 (eval "$ac_link") 2>conftest.er1
10512 grep -v '^ *+' conftest.er1 >conftest.err
10514 cat conftest.err >&5
10515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10516 (exit $ac_status); } && {
10517 test -z "$ac_c_werror_flag" ||
10518 test ! -s conftest.err
10519 } && test -s conftest$ac_exeext &&
10520 $as_test_x conftest$ac_exeext; then
10523 echo "$as_me: failed program was:" >&5
10524 sed 's/^/| /' conftest.$ac_ext >&5
10529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10530 conftest$ac_exeext conftest.$ac_ext
10533 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10534 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10538 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10539 # used for the tests that follow. We set them back to REAL_CFLAGS and
10540 # REAL_CPPFLAGS later on.
10542 REAL_CPPFLAGS="$CPPFLAGS"
10544 if test "${HAVE_X11}" = "yes"; then
10545 DEFS="$C_SWITCH_X_SITE $DEFS"
10546 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10548 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10549 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10551 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10552 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10553 # but it's more convenient here to set LD_RUN_PATH
10554 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10555 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10556 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10560 if test "${opsys}" = "gnu-linux"; then
10561 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10562 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10563 cat >conftest.$ac_ext <<_ACEOF
10566 cat confdefs.h >>conftest.$ac_ext
10567 cat >>conftest.$ac_ext <<_ACEOF
10568 /* end confdefs.h. */
10573 XOpenDisplay ("foo");
10578 rm -f conftest.$ac_objext conftest$ac_exeext
10579 if { (ac_try="$ac_link"
10580 case "(($ac_try" in
10581 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10582 *) ac_try_echo
=$ac_try;;
10584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10585 (eval "$ac_link") 2>conftest.er1
10587 grep -v '^ *+' conftest.er1
>conftest.err
10589 cat conftest.err
>&5
10590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591 (exit $ac_status); } && {
10592 test -z "$ac_c_werror_flag" ||
10593 test ! -s conftest.err
10594 } && test -s conftest
$ac_exeext &&
10595 $as_test_x conftest
$ac_exeext; then
10596 xlinux_first_failure
=no
10598 echo "$as_me: failed program was:" >&5
10599 sed 's/^/| /' conftest.
$ac_ext >&5
10601 xlinux_first_failure
=yes
10604 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10605 conftest
$ac_exeext conftest.
$ac_ext
10606 if test "${xlinux_first_failure}" = "yes"; then
10607 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10608 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10609 OLD_CPPFLAGS
="$CPPFLAGS"
10611 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10612 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10613 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10614 LIBS
="$LIBS -b i486-linuxaout"
10615 cat >conftest.
$ac_ext <<_ACEOF
10618 cat confdefs.h
>>conftest.
$ac_ext
10619 cat >>conftest.
$ac_ext <<_ACEOF
10620 /* end confdefs.h. */
10625 XOpenDisplay ("foo");
10630 rm -f conftest.
$ac_objext conftest
$ac_exeext
10631 if { (ac_try
="$ac_link"
10632 case "(($ac_try" in
10633 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10634 *) ac_try_echo=$ac_try;;
10636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10637 (eval "$ac_link") 2>conftest.er1
10639 grep -v '^ *+' conftest.er1 >conftest.err
10641 cat conftest.err >&5
10642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643 (exit $ac_status); } && {
10644 test -z "$ac_c_werror_flag" ||
10645 test ! -s conftest.err
10646 } && test -s conftest$ac_exeext &&
10647 $as_test_x conftest$ac_exeext; then
10648 xlinux_second_failure=no
10650 echo "$as_me: failed program was:" >&5
10651 sed 's/^/| /' conftest.$ac_ext >&5
10653 xlinux_second_failure=yes
10656 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10657 conftest$ac_exeext conftest.$ac_ext
10658 if test "${xlinux_second_failure}" = "yes"; then
10659 # If we get the same failure with -b, there is no use adding -b.
10660 # So take it out. This plays safe.
10661 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10662 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10663 CPPFLAGS="$OLD_CPPFLAGS"
10665 { echo "$as_me:$LINENO: result: no" >&5
10666 echo "${ECHO_T}no" >&6; }
10668 { echo "$as_me:$LINENO: result: yes" >&5
10669 echo "${ECHO_T}yes" >&6; }
10672 { echo "$as_me:$LINENO: result: no" >&5
10673 echo "${ECHO_T}no" >&6; }
10677 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10678 # header files included from there.
10679 { echo "$as_me:$LINENO: checking for Xkb" >&5
10680 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10681 cat >conftest.$ac_ext <<_ACEOF
10684 cat confdefs.h >>conftest.$ac_ext
10685 cat >>conftest.$ac_ext <<_ACEOF
10686 /* end confdefs.h. */
10687 #include <X11/Xlib.h>
10688 #include <X11/XKBlib.h>
10692 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10697 rm -f conftest.$ac_objext conftest$ac_exeext
10698 if { (ac_try="$ac_link"
10699 case "(($ac_try" in
10700 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10701 *) ac_try_echo
=$ac_try;;
10703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10704 (eval "$ac_link") 2>conftest.er1
10706 grep -v '^ *+' conftest.er1
>conftest.err
10708 cat conftest.err
>&5
10709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10710 (exit $ac_status); } && {
10711 test -z "$ac_c_werror_flag" ||
10712 test ! -s conftest.err
10713 } && test -s conftest
$ac_exeext &&
10714 $as_test_x conftest
$ac_exeext; then
10717 echo "$as_me: failed program was:" >&5
10718 sed 's/^/| /' conftest.
$ac_ext >&5
10723 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10724 conftest
$ac_exeext conftest.
$ac_ext
10725 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10726 echo "${ECHO_T}$emacs_xkb" >&6; }
10727 if test $emacs_xkb = yes; then
10729 cat >>confdefs.h
<<\_ACEOF
10730 #define HAVE_XKBGETKEYBOARD 1
10739 for ac_func
in XrmSetDatabase XScreenResourceString \
10740 XScreenNumberOfScreen XSetWMProtocols
10742 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10743 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10744 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10745 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10746 echo $ECHO_N "(cached) $ECHO_C" >&6
10748 cat >conftest.
$ac_ext <<_ACEOF
10751 cat confdefs.h
>>conftest.
$ac_ext
10752 cat >>conftest.
$ac_ext <<_ACEOF
10753 /* end confdefs.h. */
10754 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10755 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10756 #define $ac_func innocuous_$ac_func
10758 /* System header to define __stub macros and hopefully few prototypes,
10759 which can conflict with char $ac_func (); below.
10760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10761 <limits.h> exists even on freestanding compilers. */
10764 # include <limits.h>
10766 # include <assert.h>
10771 /* Override any GCC internal prototype to avoid an error.
10772 Use char because int might match the return type of a GCC
10773 builtin and then its argument prototype would still apply. */
10778 /* The GNU C library defines this for functions which it implements
10779 to always fail with ENOSYS. Some functions are actually named
10780 something starting with __ and the normal name is an alias. */
10781 #if defined __stub_$ac_func || defined __stub___$ac_func
10788 return $ac_func ();
10793 rm -f conftest.
$ac_objext conftest
$ac_exeext
10794 if { (ac_try
="$ac_link"
10795 case "(($ac_try" in
10796 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10797 *) ac_try_echo=$ac_try;;
10799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10800 (eval "$ac_link") 2>conftest.er1
10802 grep -v '^ *+' conftest.er1 >conftest.err
10804 cat conftest.err >&5
10805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10806 (exit $ac_status); } && {
10807 test -z "$ac_c_werror_flag" ||
10808 test ! -s conftest.err
10809 } && test -s conftest$ac_exeext &&
10810 $as_test_x conftest$ac_exeext; then
10811 eval "$as_ac_var=yes"
10813 echo "$as_me: failed program was:" >&5
10814 sed 's/^/| /' conftest.$ac_ext >&5
10816 eval "$as_ac_var=no"
10819 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10820 conftest$ac_exeext conftest.$ac_ext
10822 ac_res=`eval echo '${'$as_ac_var'}'`
10823 { echo "$as_me:$LINENO: result: $ac_res" >&5
10824 echo "${ECHO_T}$ac_res" >&6; }
10825 if test `eval echo '${'$as_ac_var'}'` = yes; then
10826 cat >>confdefs.h <<_ACEOF
10827 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10835 if test "${window_system}" = "x11"; then
10836 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10837 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10838 if test "${emacs_cv_x11_version_6+set}" = set; then
10839 echo $ECHO_N "(cached) $ECHO_C" >&6
10841 cat >conftest.$ac_ext <<_ACEOF
10844 cat confdefs.h >>conftest.$ac_ext
10845 cat >>conftest.$ac_ext <<_ACEOF
10846 /* end confdefs.h. */
10847 #include <X11/Xlib.h>
10851 #if XlibSpecificationRelease < 6
10859 rm -f conftest.$ac_objext conftest$ac_exeext
10860 if { (ac_try="$ac_link"
10861 case "(($ac_try" in
10862 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10863 *) ac_try_echo
=$ac_try;;
10865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10866 (eval "$ac_link") 2>conftest.er1
10868 grep -v '^ *+' conftest.er1
>conftest.err
10870 cat conftest.err
>&5
10871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10872 (exit $ac_status); } && {
10873 test -z "$ac_c_werror_flag" ||
10874 test ! -s conftest.err
10875 } && test -s conftest
$ac_exeext &&
10876 $as_test_x conftest
$ac_exeext; then
10877 emacs_cv_x11_version_6
=yes
10879 echo "$as_me: failed program was:" >&5
10880 sed 's/^/| /' conftest.
$ac_ext >&5
10882 emacs_cv_x11_version_6
=no
10885 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10886 conftest
$ac_exeext conftest.
$ac_ext
10889 if test $emacs_cv_x11_version_6 = yes; then
10890 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10891 echo "${ECHO_T}6 or newer" >&6; }
10893 cat >>confdefs.h
<<\_ACEOF
10894 #define HAVE_X11R6 1
10898 { echo "$as_me:$LINENO: result: before 6" >&5
10899 echo "${ECHO_T}before 6" >&6; }
10903 if test "${window_system}" = "x11"; then
10904 { echo "$as_me:$LINENO: checking X11 version 5" >&5
10905 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6; }
10906 if test "${emacs_cv_x11_version_5+set}" = set; then
10907 echo $ECHO_N "(cached) $ECHO_C" >&6
10909 cat >conftest.
$ac_ext <<_ACEOF
10912 cat confdefs.h
>>conftest.
$ac_ext
10913 cat >>conftest.
$ac_ext <<_ACEOF
10914 /* end confdefs.h. */
10915 #include <X11/Xlib.h>
10919 #if XlibSpecificationRelease < 5
10927 rm -f conftest.
$ac_objext conftest
$ac_exeext
10928 if { (ac_try
="$ac_link"
10929 case "(($ac_try" in
10930 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10931 *) ac_try_echo=$ac_try;;
10933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10934 (eval "$ac_link") 2>conftest.er1
10936 grep -v '^ *+' conftest.er1 >conftest.err
10938 cat conftest.err >&5
10939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10940 (exit $ac_status); } && {
10941 test -z "$ac_c_werror_flag" ||
10942 test ! -s conftest.err
10943 } && test -s conftest$ac_exeext &&
10944 $as_test_x conftest$ac_exeext; then
10945 emacs_cv_x11_version_5=yes
10947 echo "$as_me: failed program was:" >&5
10948 sed 's/^/| /' conftest.$ac_ext >&5
10950 emacs_cv_x11_version_5=no
10953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10954 conftest$ac_exeext conftest.$ac_ext
10957 if test $emacs_cv_x11_version_5 = yes; then
10958 { echo "$as_me:$LINENO: result: 5 or newer" >&5
10959 echo "${ECHO_T}5 or newer" >&6; }
10962 cat >>confdefs.h <<\_ACEOF
10963 #define HAVE_X11R5 1
10968 { echo "$as_me:$LINENO: result: before 5" >&5
10969 echo "${ECHO_T}before 5" >&6; }
10974 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
10977 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
10978 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10979 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10980 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10981 { (exit 1); exit 1; }; };
10985 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10987 if test "X${with_pkg_config_prog}" != X; then
10988 PKG_CONFIG="${with_pkg_config_prog}"
10993 if test -z "$PKG_CONFIG"; then
10994 # Extract the first word of "pkg-config", so it can be a program name with args.
10995 set dummy pkg-config; ac_word=$2
10996 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10998 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10999 echo $ECHO_N "(cached) $ECHO_C" >&6
11001 case $PKG_CONFIG in
11003 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11007 for as_dir in $PATH
11010 test -z "$as_dir" && as_dir=.
11011 for ac_exec_ext in '' $ac_executable_extensions; do
11012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11013 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11021 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11025 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11026 if test -n "$PKG_CONFIG"; then
11027 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11028 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11030 { echo "$as_me:$LINENO: result: no" >&5
11031 echo "${ECHO_T}no" >&6; }
11037 if test "$PKG_CONFIG" = "no" ; then
11038 { { echo "$as_me:$LINENO: error:
11039 *** 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
11040 echo "$as_me: error:
11041 *** 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;}
11042 { (exit 1); exit 1; }; }
11044 PKG_CONFIG_MIN_VERSION=0.9.0
11045 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11046 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11047 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
11049 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11050 { echo "$as_me:$LINENO: result: yes" >&5
11051 echo "${ECHO_T}yes" >&6; }
11054 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11055 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
11056 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|
sed -e 's,///*,/,g'`
11057 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11058 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11060 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11061 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11062 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|
sed -e 's,///*,/,g'`
11063 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11064 echo "${ECHO_T}$GTK_LIBS" >&6; }
11066 { echo "$as_me:$LINENO: result: no" >&5
11067 echo "${ECHO_T}no" >&6; }
11070 ## If we have a custom action on failure, don't print errors, but
11071 ## do set a variable so people can do so.
11072 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11073 echo $GTK_PKG_ERRORS
11079 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11080 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11084 if test $succeeded = yes; then
11087 { { 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
11088 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;}
11089 { (exit 1); exit 1; }; }
11094 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11095 CFLAGS="$CFLAGS $GTK_CFLAGS"
11096 LIBS="$GTK_LIBS $LIBS"
11099 for ac_func in gtk_main
11101 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11102 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11103 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11104 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11105 echo $ECHO_N "(cached) $ECHO_C" >&6
11107 cat >conftest.$ac_ext <<_ACEOF
11110 cat confdefs.h >>conftest.$ac_ext
11111 cat >>conftest.$ac_ext <<_ACEOF
11112 /* end confdefs.h. */
11113 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11114 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11115 #define $ac_func innocuous_$ac_func
11117 /* System header to define __stub macros and hopefully few prototypes,
11118 which can conflict with char $ac_func (); below.
11119 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11120 <limits.h> exists even on freestanding compilers. */
11123 # include <limits.h>
11125 # include <assert.h>
11130 /* Override any GCC internal prototype to avoid an error.
11131 Use char because int might match the return type of a GCC
11132 builtin and then its argument prototype would still apply. */
11137 /* The GNU C library defines this for functions which it implements
11138 to always fail with ENOSYS. Some functions are actually named
11139 something starting with __ and the normal name is an alias. */
11140 #if defined __stub_$ac_func || defined __stub___$ac_func
11147 return $ac_func ();
11152 rm -f conftest.$ac_objext conftest$ac_exeext
11153 if { (ac_try="$ac_link"
11154 case "(($ac_try" in
11155 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11156 *) ac_try_echo
=$ac_try;;
11158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11159 (eval "$ac_link") 2>conftest.er1
11161 grep -v '^ *+' conftest.er1
>conftest.err
11163 cat conftest.err
>&5
11164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11165 (exit $ac_status); } && {
11166 test -z "$ac_c_werror_flag" ||
11167 test ! -s conftest.err
11168 } && test -s conftest
$ac_exeext &&
11169 $as_test_x conftest
$ac_exeext; then
11170 eval "$as_ac_var=yes"
11172 echo "$as_me: failed program was:" >&5
11173 sed 's/^/| /' conftest.
$ac_ext >&5
11175 eval "$as_ac_var=no"
11178 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11179 conftest
$ac_exeext conftest.
$ac_ext
11181 ac_res
=`eval echo '${'$as_ac_var'}'`
11182 { echo "$as_me:$LINENO: result: $ac_res" >&5
11183 echo "${ECHO_T}$ac_res" >&6; }
11184 if test `eval echo '${'$as_ac_var'}'` = yes; then
11185 cat >>confdefs.h
<<_ACEOF
11186 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11192 if test "${GTK_COMPILES}" != "yes"; then
11193 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11194 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11195 { (exit 1); exit 1; }; };
11200 cat >>confdefs.h
<<\_ACEOF
11206 if test "$with_toolkit_scroll_bars" != no
; then
11207 with_toolkit_scroll_bars
=yes
11210 HAVE_GTK_MULTIDISPLAY
=no
11212 for ac_func
in gdk_display_open
11214 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11215 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11216 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11217 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11218 echo $ECHO_N "(cached) $ECHO_C" >&6
11220 cat >conftest.
$ac_ext <<_ACEOF
11223 cat confdefs.h
>>conftest.
$ac_ext
11224 cat >>conftest.
$ac_ext <<_ACEOF
11225 /* end confdefs.h. */
11226 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11227 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11228 #define $ac_func innocuous_$ac_func
11230 /* System header to define __stub macros and hopefully few prototypes,
11231 which can conflict with char $ac_func (); below.
11232 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11233 <limits.h> exists even on freestanding compilers. */
11236 # include <limits.h>
11238 # include <assert.h>
11243 /* Override any GCC internal prototype to avoid an error.
11244 Use char because int might match the return type of a GCC
11245 builtin and then its argument prototype would still apply. */
11250 /* The GNU C library defines this for functions which it implements
11251 to always fail with ENOSYS. Some functions are actually named
11252 something starting with __ and the normal name is an alias. */
11253 #if defined __stub_$ac_func || defined __stub___$ac_func
11260 return $ac_func ();
11265 rm -f conftest.
$ac_objext conftest
$ac_exeext
11266 if { (ac_try
="$ac_link"
11267 case "(($ac_try" in
11268 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11269 *) ac_try_echo=$ac_try;;
11271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11272 (eval "$ac_link") 2>conftest.er1
11274 grep -v '^ *+' conftest.er1 >conftest.err
11276 cat conftest.err >&5
11277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11278 (exit $ac_status); } && {
11279 test -z "$ac_c_werror_flag" ||
11280 test ! -s conftest.err
11281 } && test -s conftest$ac_exeext &&
11282 $as_test_x conftest$ac_exeext; then
11283 eval "$as_ac_var=yes"
11285 echo "$as_me: failed program was:" >&5
11286 sed 's/^/| /' conftest.$ac_ext >&5
11288 eval "$as_ac_var=no"
11291 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11292 conftest$ac_exeext conftest.$ac_ext
11294 ac_res=`eval echo '${'$as_ac_var'}'`
11295 { echo "$as_me:$LINENO: result: $ac_res" >&5
11296 echo "${ECHO_T}$ac_res" >&6; }
11297 if test `eval echo '${'$as_ac_var'}'` = yes; then
11298 cat >>confdefs.h <<_ACEOF
11299 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11301 HAVE_GTK_MULTIDISPLAY=yes
11305 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11307 cat >>confdefs.h <<\_ACEOF
11308 #define HAVE_GTK_MULTIDISPLAY 1
11312 HAVE_GTK_FILE_SELECTION=no
11314 for ac_func in gtk_file_selection_new
11316 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11317 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11318 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11319 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11320 echo $ECHO_N "(cached) $ECHO_C" >&6
11322 cat >conftest.$ac_ext <<_ACEOF
11325 cat confdefs.h >>conftest.$ac_ext
11326 cat >>conftest.$ac_ext <<_ACEOF
11327 /* end confdefs.h. */
11328 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11329 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11330 #define $ac_func innocuous_$ac_func
11332 /* System header to define __stub macros and hopefully few prototypes,
11333 which can conflict with char $ac_func (); below.
11334 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11335 <limits.h> exists even on freestanding compilers. */
11338 # include <limits.h>
11340 # include <assert.h>
11345 /* Override any GCC internal prototype to avoid an error.
11346 Use char because int might match the return type of a GCC
11347 builtin and then its argument prototype would still apply. */
11352 /* The GNU C library defines this for functions which it implements
11353 to always fail with ENOSYS. Some functions are actually named
11354 something starting with __ and the normal name is an alias. */
11355 #if defined __stub_$ac_func || defined __stub___$ac_func
11362 return $ac_func ();
11367 rm -f conftest.$ac_objext conftest$ac_exeext
11368 if { (ac_try="$ac_link"
11369 case "(($ac_try" in
11370 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11371 *) ac_try_echo
=$ac_try;;
11373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11374 (eval "$ac_link") 2>conftest.er1
11376 grep -v '^ *+' conftest.er1
>conftest.err
11378 cat conftest.err
>&5
11379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380 (exit $ac_status); } && {
11381 test -z "$ac_c_werror_flag" ||
11382 test ! -s conftest.err
11383 } && test -s conftest
$ac_exeext &&
11384 $as_test_x conftest
$ac_exeext; then
11385 eval "$as_ac_var=yes"
11387 echo "$as_me: failed program was:" >&5
11388 sed 's/^/| /' conftest.
$ac_ext >&5
11390 eval "$as_ac_var=no"
11393 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11394 conftest
$ac_exeext conftest.
$ac_ext
11396 ac_res
=`eval echo '${'$as_ac_var'}'`
11397 { echo "$as_me:$LINENO: result: $ac_res" >&5
11398 echo "${ECHO_T}$ac_res" >&6; }
11399 if test `eval echo '${'$as_ac_var'}'` = yes; then
11400 cat >>confdefs.h
<<_ACEOF
11401 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11403 HAVE_GTK_FILE_SELECTION
=yes
11408 HAVE_GTK_FILE_CHOOSER
=no
11410 for ac_func
in gtk_file_chooser_dialog_new
11412 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11413 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11414 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11415 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11416 echo $ECHO_N "(cached) $ECHO_C" >&6
11418 cat >conftest.
$ac_ext <<_ACEOF
11421 cat confdefs.h
>>conftest.
$ac_ext
11422 cat >>conftest.
$ac_ext <<_ACEOF
11423 /* end confdefs.h. */
11424 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11425 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11426 #define $ac_func innocuous_$ac_func
11428 /* System header to define __stub macros and hopefully few prototypes,
11429 which can conflict with char $ac_func (); below.
11430 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11431 <limits.h> exists even on freestanding compilers. */
11434 # include <limits.h>
11436 # include <assert.h>
11441 /* Override any GCC internal prototype to avoid an error.
11442 Use char because int might match the return type of a GCC
11443 builtin and then its argument prototype would still apply. */
11448 /* The GNU C library defines this for functions which it implements
11449 to always fail with ENOSYS. Some functions are actually named
11450 something starting with __ and the normal name is an alias. */
11451 #if defined __stub_$ac_func || defined __stub___$ac_func
11458 return $ac_func ();
11463 rm -f conftest.
$ac_objext conftest
$ac_exeext
11464 if { (ac_try
="$ac_link"
11465 case "(($ac_try" in
11466 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11467 *) ac_try_echo=$ac_try;;
11469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11470 (eval "$ac_link") 2>conftest.er1
11472 grep -v '^ *+' conftest.er1 >conftest.err
11474 cat conftest.err >&5
11475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11476 (exit $ac_status); } && {
11477 test -z "$ac_c_werror_flag" ||
11478 test ! -s conftest.err
11479 } && test -s conftest$ac_exeext &&
11480 $as_test_x conftest$ac_exeext; then
11481 eval "$as_ac_var=yes"
11483 echo "$as_me: failed program was:" >&5
11484 sed 's/^/| /' conftest.$ac_ext >&5
11486 eval "$as_ac_var=no"
11489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11490 conftest$ac_exeext conftest.$ac_ext
11492 ac_res=`eval echo '${'$as_ac_var'}'`
11493 { echo "$as_me:$LINENO: result: $ac_res" >&5
11494 echo "${ECHO_T}$ac_res" >&6; }
11495 if test `eval echo '${'$as_ac_var'}'` = yes; then
11496 cat >>confdefs.h <<_ACEOF
11497 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11499 HAVE_GTK_FILE_CHOOSER=yes
11504 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11505 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11507 cat >>confdefs.h <<\_ACEOF
11508 #define HAVE_GTK_FILE_BOTH 1
11513 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11514 HAVE_GTK_AND_PTHREAD=no
11516 for ac_header in pthread.h
11518 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
11519 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11520 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11522 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11523 echo $ECHO_N "(cached) $ECHO_C" >&6
11525 ac_res=`eval echo '${'$as_ac_Header'}'`
11526 { echo "$as_me:$LINENO: result: $ac_res" >&5
11527 echo "${ECHO_T}$ac_res" >&6; }
11529 # Is the header compilable?
11530 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11531 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11532 cat >conftest.$ac_ext <<_ACEOF
11535 cat confdefs.h >>conftest.$ac_ext
11536 cat >>conftest.$ac_ext <<_ACEOF
11537 /* end confdefs.h. */
11538 $ac_includes_default
11539 #include <$ac_header>
11541 rm -f conftest.$ac_objext
11542 if { (ac_try="$ac_compile"
11543 case "(($ac_try" in
11544 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11545 *) ac_try_echo
=$ac_try;;
11547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11548 (eval "$ac_compile") 2>conftest.er1
11550 grep -v '^ *+' conftest.er1
>conftest.err
11552 cat conftest.err
>&5
11553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11554 (exit $ac_status); } && {
11555 test -z "$ac_c_werror_flag" ||
11556 test ! -s conftest.err
11557 } && test -s conftest.
$ac_objext; then
11558 ac_header_compiler
=yes
11560 echo "$as_me: failed program was:" >&5
11561 sed 's/^/| /' conftest.
$ac_ext >&5
11563 ac_header_compiler
=no
11566 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11567 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11568 echo "${ECHO_T}$ac_header_compiler" >&6; }
11570 # Is the header present?
11571 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11572 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11573 cat >conftest.
$ac_ext <<_ACEOF
11576 cat confdefs.h
>>conftest.
$ac_ext
11577 cat >>conftest.
$ac_ext <<_ACEOF
11578 /* end confdefs.h. */
11579 #include <$ac_header>
11581 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11582 case "(($ac_try" in
11583 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11584 *) ac_try_echo=$ac_try;;
11586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11587 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11589 grep -v '^ *+' conftest.er1 >conftest.err
11591 cat conftest.err >&5
11592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11593 (exit $ac_status); } >/dev/null && {
11594 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11595 test ! -s conftest.err
11597 ac_header_preproc=yes
11599 echo "$as_me: failed program was:" >&5
11600 sed 's/^/| /' conftest.$ac_ext >&5
11602 ac_header_preproc=no
11605 rm -f conftest.err conftest.$ac_ext
11606 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11607 echo "${ECHO_T}$ac_header_preproc" >&6; }
11609 # So? What about this header?
11610 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11612 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11613 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11614 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11615 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11616 ac_header_preproc=yes
11619 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11620 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11621 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11622 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11623 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11624 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11625 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11626 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11627 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11628 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11629 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11630 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11634 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11636 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11637 echo $ECHO_N "(cached) $ECHO_C" >&6
11639 eval "$as_ac_Header=\$ac_header_preproc"
11641 ac_res=`eval echo '${'$as_ac_Header'}'`
11642 { echo "$as_me:$LINENO: result: $ac_res" >&5
11643 echo "${ECHO_T}$ac_res" >&6; }
11646 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11647 cat >>confdefs.h <<_ACEOF
11648 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11655 if test "$ac_cv_header_pthread_h"; then
11656 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11657 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11658 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11659 echo $ECHO_N "(cached) $ECHO_C" >&6
11661 ac_check_lib_save_LIBS=$LIBS
11662 LIBS="-lpthread $LIBS"
11663 cat >conftest.$ac_ext <<_ACEOF
11666 cat confdefs.h >>conftest.$ac_ext
11667 cat >>conftest.$ac_ext <<_ACEOF
11668 /* end confdefs.h. */
11670 /* Override any GCC internal prototype to avoid an error.
11671 Use char because int might match the return type of a GCC
11672 builtin and then its argument prototype would still apply. */
11676 char pthread_self ();
11680 return pthread_self ();
11685 rm -f conftest.$ac_objext conftest$ac_exeext
11686 if { (ac_try="$ac_link"
11687 case "(($ac_try" in
11688 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11689 *) ac_try_echo
=$ac_try;;
11691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11692 (eval "$ac_link") 2>conftest.er1
11694 grep -v '^ *+' conftest.er1
>conftest.err
11696 cat conftest.err
>&5
11697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11698 (exit $ac_status); } && {
11699 test -z "$ac_c_werror_flag" ||
11700 test ! -s conftest.err
11701 } && test -s conftest
$ac_exeext &&
11702 $as_test_x conftest
$ac_exeext; then
11703 ac_cv_lib_pthread_pthread_self
=yes
11705 echo "$as_me: failed program was:" >&5
11706 sed 's/^/| /' conftest.
$ac_ext >&5
11708 ac_cv_lib_pthread_pthread_self
=no
11711 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11712 conftest
$ac_exeext conftest.
$ac_ext
11713 LIBS
=$ac_check_lib_save_LIBS
11715 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11716 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11717 if test $ac_cv_lib_pthread_pthread_self = yes; then
11718 HAVE_GTK_AND_PTHREAD
=yes
11722 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11723 GTK_LIBS
="$GTK_LIBS -lpthread"
11725 cat >>confdefs.h
<<\_ACEOF
11726 #define HAVE_GTK_AND_PTHREAD 1
11733 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
11734 if test x
"${HAVE_X11R5}" = xyes
; then
11735 { echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
11736 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6; }
11737 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
11738 echo $ECHO_N "(cached) $ECHO_C" >&6
11740 cat >conftest.
$ac_ext <<_ACEOF
11743 cat confdefs.h
>>conftest.
$ac_ext
11744 cat >>conftest.
$ac_ext <<_ACEOF
11745 /* end confdefs.h. */
11747 #include <X11/Intrinsic.h>
11748 #include <X11/Xaw/Simple.h>
11757 rm -f conftest.
$ac_objext conftest
$ac_exeext
11758 if { (ac_try
="$ac_link"
11759 case "(($ac_try" in
11760 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11761 *) ac_try_echo=$ac_try;;
11763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11764 (eval "$ac_link") 2>conftest.er1
11766 grep -v '^ *+' conftest.er1 >conftest.err
11768 cat conftest.err >&5
11769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770 (exit $ac_status); } && {
11771 test -z "$ac_c_werror_flag" ||
11772 test ! -s conftest.err
11773 } && test -s conftest$ac_exeext &&
11774 $as_test_x conftest$ac_exeext; then
11775 emacs_cv_x11_version_5_with_xaw=yes
11777 echo "$as_me: failed program was:" >&5
11778 sed 's/^/| /' conftest.$ac_ext >&5
11780 emacs_cv_x11_version_5_with_xaw=no
11783 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11784 conftest$ac_exeext conftest.$ac_ext
11787 if test $emacs_cv_x11_version_5_with_xaw = yes; then
11788 { echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
11789 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6; }
11790 USE_X_TOOLKIT=LUCID
11792 if test x"${USE_X_TOOLKIT}" = xLUCID; then
11793 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
11794 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
11795 { (exit 1); exit 1; }; }
11797 { echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
11798 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6; }
11807 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11809 if test "${USE_X_TOOLKIT}" != "none"; then
11810 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11811 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
11812 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11813 echo $ECHO_N "(cached) $ECHO_C" >&6
11815 cat >conftest.$ac_ext <<_ACEOF
11818 cat confdefs.h >>conftest.$ac_ext
11819 cat >>conftest.$ac_ext <<_ACEOF
11820 /* end confdefs.h. */
11821 #include <X11/Intrinsic.h>
11825 #if XtSpecificationRelease < 6
11833 rm -f conftest.$ac_objext conftest$ac_exeext
11834 if { (ac_try="$ac_link"
11835 case "(($ac_try" in
11836 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11837 *) ac_try_echo
=$ac_try;;
11839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11840 (eval "$ac_link") 2>conftest.er1
11842 grep -v '^ *+' conftest.er1
>conftest.err
11844 cat conftest.err
>&5
11845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11846 (exit $ac_status); } && {
11847 test -z "$ac_c_werror_flag" ||
11848 test ! -s conftest.err
11849 } && test -s conftest
$ac_exeext &&
11850 $as_test_x conftest
$ac_exeext; then
11851 emacs_cv_x11_toolkit_version_6
=yes
11853 echo "$as_me: failed program was:" >&5
11854 sed 's/^/| /' conftest.
$ac_ext >&5
11856 emacs_cv_x11_toolkit_version_6
=no
11859 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11860 conftest
$ac_exeext conftest.
$ac_ext
11863 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
11864 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11865 { echo "$as_me:$LINENO: result: 6 or newer" >&5
11866 echo "${ECHO_T}6 or newer" >&6; }
11868 cat >>confdefs.h
<<\_ACEOF
11869 #define HAVE_X11XTR6 1
11873 { echo "$as_me:$LINENO: result: before 6" >&5
11874 echo "${ECHO_T}before 6" >&6; }
11878 if test x
$HAVE_X11XTR6 = xyes
; then
11879 LIBS
="-lXt -lSM -lICE $LIBS"
11884 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
11885 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
11886 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
11887 echo $ECHO_N "(cached) $ECHO_C" >&6
11889 ac_check_lib_save_LIBS
=$LIBS
11891 cat >conftest.
$ac_ext <<_ACEOF
11894 cat confdefs.h
>>conftest.
$ac_ext
11895 cat >>conftest.
$ac_ext <<_ACEOF
11896 /* end confdefs.h. */
11898 /* Override any GCC internal prototype to avoid an error.
11899 Use char because int might match the return type of a GCC
11900 builtin and then its argument prototype would still apply. */
11904 char XmuConvertStandardSelection ();
11908 return XmuConvertStandardSelection ();
11913 rm -f conftest.
$ac_objext conftest
$ac_exeext
11914 if { (ac_try
="$ac_link"
11915 case "(($ac_try" in
11916 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11917 *) ac_try_echo=$ac_try;;
11919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11920 (eval "$ac_link") 2>conftest.er1
11922 grep -v '^ *+' conftest.er1 >conftest.err
11924 cat conftest.err >&5
11925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926 (exit $ac_status); } && {
11927 test -z "$ac_c_werror_flag" ||
11928 test ! -s conftest.err
11929 } && test -s conftest$ac_exeext &&
11930 $as_test_x conftest$ac_exeext; then
11931 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11933 echo "$as_me: failed program was:" >&5
11934 sed 's/^/| /' conftest.$ac_ext >&5
11936 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11940 conftest$ac_exeext conftest.$ac_ext
11941 LIBS=$ac_check_lib_save_LIBS
11943 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11944 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11945 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
11946 cat >>confdefs.h <<_ACEOF
11947 #define HAVE_LIBXMU 1
11954 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11957 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11958 if test "${HAVE_X11}" = "yes"; then
11959 if test "${USE_X_TOOLKIT}" != "none"; then
11961 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
11962 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
11963 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
11964 echo $ECHO_N "(cached) $ECHO_C" >&6
11966 ac_check_lib_save_LIBS=$LIBS
11967 LIBS="-lXext $LIBS"
11968 cat >conftest.$ac_ext <<_ACEOF
11971 cat confdefs.h >>conftest.$ac_ext
11972 cat >>conftest.$ac_ext <<_ACEOF
11973 /* end confdefs.h. */
11975 /* Override any GCC internal prototype to avoid an error.
11976 Use char because int might match the return type of a GCC
11977 builtin and then its argument prototype would still apply. */
11981 char XShapeQueryExtension ();
11985 return XShapeQueryExtension ();
11990 rm -f conftest.$ac_objext conftest$ac_exeext
11991 if { (ac_try="$ac_link"
11992 case "(($ac_try" in
11993 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11994 *) ac_try_echo
=$ac_try;;
11996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11997 (eval "$ac_link") 2>conftest.er1
11999 grep -v '^ *+' conftest.er1
>conftest.err
12001 cat conftest.err
>&5
12002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12003 (exit $ac_status); } && {
12004 test -z "$ac_c_werror_flag" ||
12005 test ! -s conftest.err
12006 } && test -s conftest
$ac_exeext &&
12007 $as_test_x conftest
$ac_exeext; then
12008 ac_cv_lib_Xext_XShapeQueryExtension
=yes
12010 echo "$as_me: failed program was:" >&5
12011 sed 's/^/| /' conftest.
$ac_ext >&5
12013 ac_cv_lib_Xext_XShapeQueryExtension
=no
12016 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12017 conftest
$ac_exeext conftest.
$ac_ext
12018 LIBS
=$ac_check_lib_save_LIBS
12020 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12021 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12022 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12023 cat >>confdefs.h
<<_ACEOF
12024 #define HAVE_LIBXEXT 1
12027 LIBS
="-lXext $LIBS"
12034 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12035 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12036 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12037 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12038 echo $ECHO_N "(cached) $ECHO_C" >&6
12040 cat >conftest.
$ac_ext <<_ACEOF
12043 cat confdefs.h
>>conftest.
$ac_ext
12044 cat >>conftest.
$ac_ext <<_ACEOF
12045 /* end confdefs.h. */
12050 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12053 Motif version prior to 2.1.
12059 rm -f conftest.
$ac_objext
12060 if { (ac_try
="$ac_compile"
12061 case "(($ac_try" in
12062 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12063 *) ac_try_echo=$ac_try;;
12065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12066 (eval "$ac_compile") 2>conftest.er1
12068 grep -v '^ *+' conftest.er1 >conftest.err
12070 cat conftest.err >&5
12071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12072 (exit $ac_status); } && {
12073 test -z "$ac_c_werror_flag" ||
12074 test ! -s conftest.err
12075 } && test -s conftest.$ac_objext; then
12076 emacs_cv_motif_version_2_1=yes
12078 echo "$as_me: failed program was:" >&5
12079 sed 's/^/| /' conftest.$ac_ext >&5
12081 emacs_cv_motif_version_2_1=no
12084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12086 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12087 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12088 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12089 if test $emacs_cv_motif_version_2_1 = yes; then
12092 cat >>confdefs.h <<\_ACEOF
12093 #define HAVE_MOTIF_2_1 1
12096 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12097 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12098 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12099 echo $ECHO_N "(cached) $ECHO_C" >&6
12101 ac_check_lib_save_LIBS=$LIBS
12103 cat >conftest.$ac_ext <<_ACEOF
12106 cat confdefs.h >>conftest.$ac_ext
12107 cat >>conftest.$ac_ext <<_ACEOF
12108 /* end confdefs.h. */
12110 /* Override any GCC internal prototype to avoid an error.
12111 Use char because int might match the return type of a GCC
12112 builtin and then its argument prototype would still apply. */
12116 char XpCreateContext ();
12120 return XpCreateContext ();
12125 rm -f conftest.$ac_objext conftest$ac_exeext
12126 if { (ac_try="$ac_link"
12127 case "(($ac_try" in
12128 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12129 *) ac_try_echo
=$ac_try;;
12131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12132 (eval "$ac_link") 2>conftest.er1
12134 grep -v '^ *+' conftest.er1
>conftest.err
12136 cat conftest.err
>&5
12137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12138 (exit $ac_status); } && {
12139 test -z "$ac_c_werror_flag" ||
12140 test ! -s conftest.err
12141 } && test -s conftest
$ac_exeext &&
12142 $as_test_x conftest
$ac_exeext; then
12143 ac_cv_lib_Xp_XpCreateContext
=yes
12145 echo "$as_me: failed program was:" >&5
12146 sed 's/^/| /' conftest.
$ac_ext >&5
12148 ac_cv_lib_Xp_XpCreateContext
=no
12151 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12152 conftest
$ac_exeext conftest.
$ac_ext
12153 LIBS
=$ac_check_lib_save_LIBS
12155 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12156 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12157 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12161 if test ${HAVE_LIBXP} = yes; then
12163 cat >>confdefs.h
<<\_ACEOF
12164 #define HAVE_LIBXP 1
12169 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12170 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12171 if test "${emacs_cv_lesstif+set}" = set; then
12172 echo $ECHO_N "(cached) $ECHO_C" >&6
12174 # We put this in CFLAGS temporarily to precede other -I options
12175 # that might be in CFLAGS temporarily.
12176 # We put this in CPPFLAGS where it precedes the other -I options.
12177 OLD_CPPFLAGS
=$CPPFLAGS
12179 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12180 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12181 cat >conftest.
$ac_ext <<_ACEOF
12184 cat confdefs.h
>>conftest.
$ac_ext
12185 cat >>conftest.
$ac_ext <<_ACEOF
12186 /* end confdefs.h. */
12187 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12196 rm -f conftest.
$ac_objext
12197 if { (ac_try
="$ac_compile"
12198 case "(($ac_try" in
12199 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12200 *) ac_try_echo=$ac_try;;
12202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12203 (eval "$ac_compile") 2>conftest.er1
12205 grep -v '^ *+' conftest.er1 >conftest.err
12207 cat conftest.err >&5
12208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12209 (exit $ac_status); } && {
12210 test -z "$ac_c_werror_flag" ||
12211 test ! -s conftest.err
12212 } && test -s conftest.$ac_objext; then
12213 emacs_cv_lesstif=yes
12215 echo "$as_me: failed program was:" >&5
12216 sed 's/^/| /' conftest.$ac_ext >&5
12218 emacs_cv_lesstif=no
12221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12223 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12224 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12225 if test $emacs_cv_lesstif = yes; then
12226 # Make sure this -I option remains in CPPFLAGS after it is set
12227 # back to REAL_CPPFLAGS.
12228 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12229 # have those other -I options anyway. Ultimately, having this
12230 # directory ultimately in CPPFLAGS will be enough.
12231 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12232 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12235 CPPFLAGS=$OLD_CPPFLAGS
12240 ### Is -lXaw3d available?
12242 if test "${HAVE_X11}" = "yes"; then
12243 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
12244 { echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
12245 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6; }
12246 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
12247 echo $ECHO_N "(cached) $ECHO_C" >&6
12249 cat >conftest.$ac_ext <<_ACEOF
12252 cat confdefs.h >>conftest.$ac_ext
12253 cat >>conftest.$ac_ext <<_ACEOF
12254 /* end confdefs.h. */
12255 #include <X11/Xaw3d/Scrollbar.h>
12257 if { (ac_try="$ac_cpp conftest.$ac_ext"
12258 case "(($ac_try" in
12259 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12260 *) ac_try_echo
=$ac_try;;
12262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12263 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12265 grep -v '^ *+' conftest.er1
>conftest.err
12267 cat conftest.err
>&5
12268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269 (exit $ac_status); } >/dev
/null
&& {
12270 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12271 test ! -s conftest.err
12273 ac_cv_header_X11_Xaw3d_Scrollbar_h
=yes
12275 echo "$as_me: failed program was:" >&5
12276 sed 's/^/| /' conftest.
$ac_ext >&5
12278 ac_cv_header_X11_Xaw3d_Scrollbar_h
=no
12281 rm -f conftest.err conftest.
$ac_ext
12283 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
12284 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6; }
12285 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
12286 { echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
12287 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6; }
12288 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
12289 echo $ECHO_N "(cached) $ECHO_C" >&6
12291 ac_check_lib_save_LIBS
=$LIBS
12292 LIBS
="-lXaw3d $LIBS"
12293 cat >conftest.
$ac_ext <<_ACEOF
12296 cat confdefs.h
>>conftest.
$ac_ext
12297 cat >>conftest.
$ac_ext <<_ACEOF
12298 /* end confdefs.h. */
12300 /* Override any GCC internal prototype to avoid an error.
12301 Use char because int might match the return type of a GCC
12302 builtin and then its argument prototype would still apply. */
12306 char XawScrollbarSetThumb ();
12310 return XawScrollbarSetThumb ();
12315 rm -f conftest.
$ac_objext conftest
$ac_exeext
12316 if { (ac_try
="$ac_link"
12317 case "(($ac_try" in
12318 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12319 *) ac_try_echo=$ac_try;;
12321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12322 (eval "$ac_link") 2>conftest.er1
12324 grep -v '^ *+' conftest.er1 >conftest.err
12326 cat conftest.err >&5
12327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12328 (exit $ac_status); } && {
12329 test -z "$ac_c_werror_flag" ||
12330 test ! -s conftest.err
12331 } && test -s conftest$ac_exeext &&
12332 $as_test_x conftest$ac_exeext; then
12333 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
12335 echo "$as_me: failed program was:" >&5
12336 sed 's/^/| /' conftest.$ac_ext >&5
12338 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
12341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12342 conftest$ac_exeext conftest.$ac_ext
12343 LIBS=$ac_check_lib_save_LIBS
12345 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
12346 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
12347 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
12354 if test "${HAVE_XAW3D}" = "yes"; then
12356 cat >>confdefs.h <<\_ACEOF
12357 #define HAVE_XAW3D 1
12366 USE_TOOLKIT_SCROLL_BARS=no
12367 if test "${with_toolkit_scroll_bars}" != "no"; then
12368 if test "${USE_X_TOOLKIT}" != "none"; then
12369 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12370 cat >>confdefs.h <<\_ACEOF
12371 #define USE_TOOLKIT_SCROLL_BARS 1
12375 USE_TOOLKIT_SCROLL_BARS=yes
12376 elif test "${HAVE_XAW3D}" = "yes"; then
12377 cat >>confdefs.h <<\_ACEOF
12378 #define USE_TOOLKIT_SCROLL_BARS 1
12381 USE_TOOLKIT_SCROLL_BARS=yes
12383 elif test "${HAVE_GTK}" = "yes"; then
12384 cat >>confdefs.h <<\_ACEOF
12385 #define USE_TOOLKIT_SCROLL_BARS 1
12388 USE_TOOLKIT_SCROLL_BARS=yes
12389 elif test "${HAVE_CARBON}" = "yes"; then
12390 cat >>confdefs.h <<\_ACEOF
12391 #define USE_TOOLKIT_SCROLL_BARS 1
12394 USE_TOOLKIT_SCROLL_BARS=yes
12398 cat >conftest.$ac_ext <<_ACEOF
12401 cat confdefs.h >>conftest.$ac_ext
12402 cat >>conftest.$ac_ext <<_ACEOF
12403 /* end confdefs.h. */
12405 #include <X11/Xlib.h>
12406 #include <X11/Xresource.h>
12415 rm -f conftest.$ac_objext
12416 if { (ac_try="$ac_compile"
12417 case "(($ac_try" in
12418 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12419 *) ac_try_echo
=$ac_try;;
12421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12422 (eval "$ac_compile") 2>conftest.er1
12424 grep -v '^ *+' conftest.er1
>conftest.err
12426 cat conftest.err
>&5
12427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428 (exit $ac_status); } && {
12429 test -z "$ac_c_werror_flag" ||
12430 test ! -s conftest.err
12431 } && test -s conftest.
$ac_objext; then
12434 cat >>confdefs.h
<<\_ACEOF
12439 echo "$as_me: failed program was:" >&5
12440 sed 's/^/| /' conftest.
$ac_ext >&5
12445 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12448 if test "${with_xim}" != "no"; then
12450 cat >>confdefs.h
<<\_ACEOF
12457 if test "${HAVE_XIM}" != "no"; then
12458 late_CFLAGS
=$CFLAGS
12459 if test "$GCC" = yes; then
12460 CFLAGS
="$CFLAGS --pedantic-errors"
12462 cat >conftest.
$ac_ext <<_ACEOF
12465 cat confdefs.h
>>conftest.
$ac_ext
12466 cat >>conftest.
$ac_ext <<_ACEOF
12467 /* end confdefs.h. */
12469 #include <X11/Xlib.h>
12470 #include <X11/Xresource.h>
12479 XPointer *client_data;
12481 /* If we're not using GCC, it's probably not XFree86, and this is
12482 probably right, but we can't use something like --pedantic-errors. */
12483 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12484 char*, XIMProc, XPointer*);
12486 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12492 rm -f conftest.
$ac_objext
12493 if { (ac_try
="$ac_compile"
12494 case "(($ac_try" in
12495 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12496 *) ac_try_echo=$ac_try;;
12498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12499 (eval "$ac_compile") 2>conftest.er1
12501 grep -v '^ *+' conftest.er1 >conftest.err
12503 cat conftest.err >&5
12504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12505 (exit $ac_status); } && {
12506 test -z "$ac_c_werror_flag" ||
12507 test ! -s conftest.err
12508 } && test -s conftest.$ac_objext; then
12509 emacs_cv_arg6_star=yes
12511 echo "$as_me: failed program was:" >&5
12512 sed 's/^/| /' conftest.$ac_ext >&5
12517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12519 if test "$emacs_cv_arg6_star" = yes; then
12520 cat >>confdefs.h <<\_ACEOF
12521 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12525 cat >>confdefs.h <<\_ACEOF
12526 #define XRegisterIMInstantiateCallback_arg6 XPointer
12530 CFLAGS=$late_CFLAGS
12533 ### For font-backend
12534 if test "${USE_FONT_BACKEND}" = "yes"; then
12537 cat >>confdefs.h <<\_ACEOF
12538 #define USE_FONT_BACKEND 1
12542 ### Use -lXft if available, unless `--with-freetype=no
' nor `--with-xft=no'.
12544 if test "${HAVE_X11}" = "yes"; then
12545 if test "x${with_freetype}" = "xno"; then
12548 if test "x${with_xft}" != "xno"; then
12550 if test "X${with_pkg_config_prog}" != X
; then
12551 PKG_CONFIG
="${with_pkg_config_prog}"
12557 if test -z "$PKG_CONFIG"; then
12558 # Extract the first word of "pkg-config", so it can be a program name with args.
12559 set dummy pkg-config
; ac_word
=$2
12560 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12562 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12563 echo $ECHO_N "(cached) $ECHO_C" >&6
12565 case $PKG_CONFIG in
12567 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12570 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12571 for as_dir
in $PATH
12574 test -z "$as_dir" && as_dir
=.
12575 for ac_exec_ext
in '' $ac_executable_extensions; do
12576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12577 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12585 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12589 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12590 if test -n "$PKG_CONFIG"; then
12591 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12592 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12594 { echo "$as_me:$LINENO: result: no" >&5
12595 echo "${ECHO_T}no" >&6; }
12601 if test "$PKG_CONFIG" = "no" ; then
12604 PKG_CONFIG_MIN_VERSION
=0.9.0
12605 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12606 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12607 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12609 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12610 { echo "$as_me:$LINENO: result: yes" >&5
12611 echo "${ECHO_T}yes" >&6; }
12614 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12615 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12616 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12617 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12618 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12620 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12621 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12622 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12623 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12624 echo "${ECHO_T}$XFT_LIBS" >&6; }
12626 { echo "$as_me:$LINENO: result: no" >&5
12627 echo "${ECHO_T}no" >&6; }
12630 ## If we have a custom action on failure, don't print errors, but
12631 ## do set a variable so people can do so.
12632 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12639 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12640 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12644 if test $succeeded = yes; then
12650 if test "$HAVE_XFT" != no
; then
12651 OLD_CPPFLAGS
="$CPPFLAGS"
12652 OLD_CFLAGS
="$CFLAGS"
12654 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
12655 CFLAGS
="$CFLAGS $XFT_CFLAGS"
12656 LIBS
="$XFT_LIBS $LIBS"
12657 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12658 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12659 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12660 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12661 echo $ECHO_N "(cached) $ECHO_C" >&6
12663 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12664 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12666 # Is the header compilable?
12667 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12668 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12669 cat >conftest.
$ac_ext <<_ACEOF
12672 cat confdefs.h
>>conftest.
$ac_ext
12673 cat >>conftest.
$ac_ext <<_ACEOF
12674 /* end confdefs.h. */
12675 $ac_includes_default
12676 #include <X11/Xft/Xft.h>
12678 rm -f conftest.
$ac_objext
12679 if { (ac_try
="$ac_compile"
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_compile") 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); } && {
12692 test -z "$ac_c_werror_flag" ||
12693 test ! -s conftest.err
12694 } && test -s conftest.$ac_objext; then
12695 ac_header_compiler=yes
12697 echo "$as_me: failed program was:" >&5
12698 sed 's/^/| /' conftest.$ac_ext >&5
12700 ac_header_compiler=no
12703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12704 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12705 echo "${ECHO_T}$ac_header_compiler" >&6; }
12707 # Is the header present?
12708 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12709 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12710 cat >conftest.$ac_ext <<_ACEOF
12713 cat confdefs.h >>conftest.$ac_ext
12714 cat >>conftest.$ac_ext <<_ACEOF
12715 /* end confdefs.h. */
12716 #include <X11/Xft/Xft.h>
12718 if { (ac_try="$ac_cpp conftest.$ac_ext"
12719 case "(($ac_try" in
12720 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12721 *) ac_try_echo
=$ac_try;;
12723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12724 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12726 grep -v '^ *+' conftest.er1
>conftest.err
12728 cat conftest.err
>&5
12729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12730 (exit $ac_status); } >/dev
/null
&& {
12731 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12732 test ! -s conftest.err
12734 ac_header_preproc
=yes
12736 echo "$as_me: failed program was:" >&5
12737 sed 's/^/| /' conftest.
$ac_ext >&5
12739 ac_header_preproc
=no
12742 rm -f conftest.err conftest.
$ac_ext
12743 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12744 echo "${ECHO_T}$ac_header_preproc" >&6; }
12746 # So? What about this header?
12747 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12749 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12750 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12751 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12752 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12753 ac_header_preproc
=yes
12756 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12757 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12758 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12759 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12760 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12761 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12762 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12763 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12764 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12765 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12766 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12767 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12771 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12772 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12773 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12774 echo $ECHO_N "(cached) $ECHO_C" >&6
12776 ac_cv_header_X11_Xft_Xft_h
=$ac_header_preproc
12778 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12779 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12782 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12783 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12784 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12785 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12786 echo $ECHO_N "(cached) $ECHO_C" >&6
12788 ac_check_lib_save_LIBS
=$LIBS
12789 LIBS
="-lXft $XFT_LIBS $LIBS"
12790 cat >conftest.
$ac_ext <<_ACEOF
12793 cat confdefs.h
>>conftest.
$ac_ext
12794 cat >>conftest.
$ac_ext <<_ACEOF
12795 /* end confdefs.h. */
12797 /* Override any GCC internal prototype to avoid an error.
12798 Use char because int might match the return type of a GCC
12799 builtin and then its argument prototype would still apply. */
12803 char XftFontOpen ();
12807 return XftFontOpen ();
12812 rm -f conftest.
$ac_objext conftest
$ac_exeext
12813 if { (ac_try
="$ac_link"
12814 case "(($ac_try" in
12815 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12816 *) ac_try_echo=$ac_try;;
12818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12819 (eval "$ac_link") 2>conftest.er1
12821 grep -v '^ *+' conftest.er1 >conftest.err
12823 cat conftest.err >&5
12824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12825 (exit $ac_status); } && {
12826 test -z "$ac_c_werror_flag" ||
12827 test ! -s conftest.err
12828 } && test -s conftest$ac_exeext &&
12829 $as_test_x conftest$ac_exeext; then
12830 ac_cv_lib_Xft_XftFontOpen=yes
12832 echo "$as_me: failed program was:" >&5
12833 sed 's/^/| /' conftest.$ac_ext >&5
12835 ac_cv_lib_Xft_XftFontOpen=no
12838 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12839 conftest$ac_exeext conftest.$ac_ext
12840 LIBS=$ac_check_lib_save_LIBS
12842 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12843 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12844 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12852 if test "${HAVE_XFT}" = "yes"; then
12854 cat >>confdefs.h <<\_ACEOF
12859 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12861 CFLAGS="$OLD_CPPFLAGS"
12862 CFLAGS="$OLD_CFLAGS"
12870 ### Use -lfreetype if available, unless `--with-freetype=no
'.
12871 if test "${HAVE_XFT}" = "yes"; then
12873 elif test "x${with_freetype}" != "xno"; then
12874 if test "X${with_pkg_config_prog}" != X; then
12875 PKG_CONFIG="${with_pkg_config_prog}"
12881 if test -z "$PKG_CONFIG"; then
12882 # Extract the first word of "pkg-config", so it can be a program name with args.
12883 set dummy pkg-config; ac_word=$2
12884 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12886 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12887 echo $ECHO_N "(cached) $ECHO_C" >&6
12889 case $PKG_CONFIG in
12891 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12895 for as_dir in $PATH
12898 test -z "$as_dir" && as_dir=.
12899 for ac_exec_ext in '' $ac_executable_extensions; do
12900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12901 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12909 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12913 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12914 if test -n "$PKG_CONFIG"; then
12915 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12916 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12918 { echo "$as_me:$LINENO: result: no" >&5
12919 echo "${ECHO_T}no" >&6; }
12925 if test "$PKG_CONFIG" = "no" ; then
12928 PKG_CONFIG_MIN_VERSION=0.9.0
12929 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12930 { echo "$as_me:$LINENO: checking for freetype2" >&5
12931 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6; }
12933 if $PKG_CONFIG --exists "freetype2" 2>&5; then
12934 { echo "$as_me:$LINENO: result: yes" >&5
12935 echo "${ECHO_T}yes" >&6; }
12938 { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
12939 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6; }
12940 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's
,///*,/,g
'`
12941 { echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
12942 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; }
12944 { echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
12945 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6; }
12946 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's
,///*,/,g
'`
12947 { echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
12948 echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
12950 { echo "$as_me:$LINENO: result: no" >&5
12951 echo "${ECHO_T}no" >&6; }
12954 ## If we have a custom action on failure, don't print errors
, but
12955 ## do set a variable so people can do so.
12956 FREETYPE_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12963 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12964 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12968 if test $succeeded = yes; then
12974 if test "${HAVE_FREETYPE}" = "yes"; then
12978 if test -z "$PKG_CONFIG"; then
12979 # Extract the first word of "pkg-config", so it can be a program name with args.
12980 set dummy pkg-config
; ac_word
=$2
12981 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12983 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12984 echo $ECHO_N "(cached) $ECHO_C" >&6
12986 case $PKG_CONFIG in
12988 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12991 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12992 for as_dir
in $PATH
12995 test -z "$as_dir" && as_dir
=.
12996 for ac_exec_ext
in '' $ac_executable_extensions; do
12997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12998 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13006 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13010 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13011 if test -n "$PKG_CONFIG"; then
13012 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13013 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13015 { echo "$as_me:$LINENO: result: no" >&5
13016 echo "${ECHO_T}no" >&6; }
13022 if test "$PKG_CONFIG" = "no" ; then
13025 PKG_CONFIG_MIN_VERSION
=0.9.0
13026 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13027 { echo "$as_me:$LINENO: checking for fontconfig" >&5
13028 echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6; }
13030 if $PKG_CONFIG --exists "fontconfig" 2>&5; then
13031 { echo "$as_me:$LINENO: result: yes" >&5
13032 echo "${ECHO_T}yes" >&6; }
13035 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13036 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6; }
13037 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig"|sed -e 's,///*,/,g'`
13038 { echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13039 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
13041 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13042 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6; }
13043 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig"|sed -e 's,///*,/,g'`
13044 { echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13045 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
13047 { echo "$as_me:$LINENO: result: no" >&5
13048 echo "${ECHO_T}no" >&6; }
13049 FONTCONFIG_CFLAGS
=""
13051 ## If we have a custom action on failure, don't print errors, but
13052 ## do set a variable so people can do so.
13053 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
13060 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13061 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13065 if test $succeeded = yes; then
13071 if test "${HAVE_FC}" = "no"; then
13076 if test "${HAVE_FREETYPE}" = "yes"; then
13078 cat >>confdefs.h
<<\_ACEOF
13079 #define HAVE_FREETYPE 1
13082 # Extract the first word of "libotf-config", so it can be a program name with args.
13083 set dummy libotf-config
; ac_word
=$2
13084 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13086 if test "${ac_cv_prog_HAVE_LIBOTF+set}" = set; then
13087 echo $ECHO_N "(cached) $ECHO_C" >&6
13089 if test -n "$HAVE_LIBOTF"; then
13090 ac_cv_prog_HAVE_LIBOTF
="$HAVE_LIBOTF" # Let the user override the test.
13092 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13093 for as_dir
in $PATH
13096 test -z "$as_dir" && as_dir
=.
13097 for ac_exec_ext
in '' $ac_executable_extensions; do
13098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13099 ac_cv_prog_HAVE_LIBOTF
="yes"
13100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13107 test -z "$ac_cv_prog_HAVE_LIBOTF" && ac_cv_prog_HAVE_LIBOTF
="no"
13110 HAVE_LIBOTF
=$ac_cv_prog_HAVE_LIBOTF
13111 if test -n "$HAVE_LIBOTF"; then
13112 { echo "$as_me:$LINENO: result: $HAVE_LIBOTF" >&5
13113 echo "${ECHO_T}$HAVE_LIBOTF" >&6; }
13115 { echo "$as_me:$LINENO: result: no" >&5
13116 echo "${ECHO_T}no" >&6; }
13120 if test "${HAVE_LIBOTF}" = "yes"; then
13122 { echo "$as_me:$LINENO: checking for OTF_get_features in -lotf" >&5
13123 echo $ECHO_N "checking for OTF_get_features in -lotf... $ECHO_C" >&6; }
13124 if test "${ac_cv_lib_otf_OTF_get_features+set}" = set; then
13125 echo $ECHO_N "(cached) $ECHO_C" >&6
13127 ac_check_lib_save_LIBS
=$LIBS
13129 cat >conftest.
$ac_ext <<_ACEOF
13132 cat confdefs.h
>>conftest.
$ac_ext
13133 cat >>conftest.
$ac_ext <<_ACEOF
13134 /* end confdefs.h. */
13136 /* Override any GCC internal prototype to avoid an error.
13137 Use char because int might match the return type of a GCC
13138 builtin and then its argument prototype would still apply. */
13142 char OTF_get_features ();
13146 return OTF_get_features ();
13151 rm -f conftest.
$ac_objext conftest
$ac_exeext
13152 if { (ac_try
="$ac_link"
13153 case "(($ac_try" in
13154 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13155 *) ac_try_echo=$ac_try;;
13157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13158 (eval "$ac_link") 2>conftest.er1
13160 grep -v '^ *+' conftest.er1 >conftest.err
13162 cat conftest.err >&5
13163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13164 (exit $ac_status); } && {
13165 test -z "$ac_c_werror_flag" ||
13166 test ! -s conftest.err
13167 } && test -s conftest$ac_exeext &&
13168 $as_test_x conftest$ac_exeext; then
13169 ac_cv_lib_otf_OTF_get_features=yes
13171 echo "$as_me: failed program was:" >&5
13172 sed 's/^/| /' conftest.$ac_ext >&5
13174 ac_cv_lib_otf_OTF_get_features=no
13177 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13178 conftest$ac_exeext conftest.$ac_ext
13179 LIBS=$ac_check_lib_save_LIBS
13181 { echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_get_features" >&5
13182 echo "${ECHO_T}$ac_cv_lib_otf_OTF_get_features" >&6; }
13183 if test $ac_cv_lib_otf_OTF_get_features = yes; then
13184 cat >>confdefs.h <<_ACEOF
13185 #define HAVE_LIBOTF 1
13194 if test "${HAVE_LIBOTF}" = "yes"; then
13196 cat >>confdefs.h <<\_ACEOF
13197 #define HAVE_LIBOTF 1
13200 LIBOTF_CFLAGS=`libotf-config
--cflags`
13201 LIBOTF_LIBS=`libotf-config
--libs`
13214 ### Use -lXpm if available, unless `--with-xpm=no
'.
13216 if test "${HAVE_X11}" = "yes"; then
13217 if test "${with_xpm}" != "no"; then
13218 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13219 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13220 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13221 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13222 echo $ECHO_N "(cached) $ECHO_C" >&6
13224 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13225 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13227 # Is the header compilable?
13228 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13229 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13230 cat >conftest.$ac_ext <<_ACEOF
13233 cat confdefs.h >>conftest.$ac_ext
13234 cat >>conftest.$ac_ext <<_ACEOF
13235 /* end confdefs.h. */
13236 $ac_includes_default
13237 #include <X11/xpm.h>
13239 rm -f conftest.$ac_objext
13240 if { (ac_try="$ac_compile"
13241 case "(($ac_try" in
13242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13243 *) ac_try_echo=$ac_try;;
13245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13246 (eval "$ac_compile") 2>conftest.er1
13248 grep -v '^
*+' conftest.er1 >conftest.err
13250 cat conftest.err >&5
13251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13252 (exit $ac_status); } && {
13253 test -z "$ac_c_werror_flag" ||
13254 test ! -s conftest.err
13255 } && test -s conftest.$ac_objext; then
13256 ac_header_compiler=yes
13258 echo "$as_me: failed program was:" >&5
13259 sed 's
/^
/|
/' conftest.$ac_ext >&5
13261 ac_header_compiler=no
13264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13265 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13266 echo "${ECHO_T}$ac_header_compiler" >&6; }
13268 # Is the header present?
13269 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13270 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13271 cat >conftest.$ac_ext <<_ACEOF
13274 cat confdefs.h >>conftest.$ac_ext
13275 cat >>conftest.$ac_ext <<_ACEOF
13276 /* end confdefs.h. */
13277 #include <X11/xpm.h>
13279 if { (ac_try="$ac_cpp conftest.$ac_ext"
13280 case "(($ac_try" in
13281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13282 *) ac_try_echo=$ac_try;;
13284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13285 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13287 grep -v '^
*+' conftest.er1 >conftest.err
13289 cat conftest.err >&5
13290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13291 (exit $ac_status); } >/dev/null && {
13292 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13293 test ! -s conftest.err
13295 ac_header_preproc=yes
13297 echo "$as_me: failed program was:" >&5
13298 sed 's
/^
/|
/' conftest.$ac_ext >&5
13300 ac_header_preproc=no
13303 rm -f conftest.err conftest.$ac_ext
13304 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13305 echo "${ECHO_T}$ac_header_preproc" >&6; }
13307 # So? What about this header?
13308 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13310 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13311 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13312 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result
" >&5
13313 echo "$as_me: WARNING
: X11
/xpm.h
: proceeding with the compiler
's result" >&2;}
13314 ac_header_preproc=yes
13317 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13318 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13319 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13320 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13321 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13322 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13323 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13324 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13325 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result
" >&5
13326 echo "$as_me: WARNING
: X11
/xpm.h
: proceeding with the preprocessor
's result" >&2;}
13327 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13328 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13332 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13333 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13334 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13335 echo $ECHO_N "(cached) $ECHO_C" >&6
13337 ac_cv_header_X11_xpm_h=$ac_header_preproc
13339 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13340 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13343 if test $ac_cv_header_X11_xpm_h = yes; then
13344 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13345 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13346 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13347 echo $ECHO_N "(cached) $ECHO_C" >&6
13349 ac_check_lib_save_LIBS=$LIBS
13350 LIBS="-lXpm -lX11 $LIBS"
13351 cat >conftest.$ac_ext <<_ACEOF
13354 cat confdefs.h >>conftest.$ac_ext
13355 cat >>conftest.$ac_ext <<_ACEOF
13356 /* end confdefs.h. */
13358 /* Override any GCC internal prototype to avoid an error.
13359 Use char because int might match the return type of a GCC
13360 builtin and then its argument prototype would still apply. */
13364 char XpmReadFileToPixmap ();
13368 return XpmReadFileToPixmap ();
13373 rm -f conftest.$ac_objext conftest$ac_exeext
13374 if { (ac_try="$ac_link"
13375 case "(($ac_try" in
13376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13377 *) ac_try_echo=$ac_try;;
13379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13380 (eval "$ac_link") 2>conftest.er1
13382 grep -v '^
*+' conftest.er1 >conftest.err
13384 cat conftest.err >&5
13385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13386 (exit $ac_status); } && {
13387 test -z "$ac_c_werror_flag" ||
13388 test ! -s conftest.err
13389 } && test -s conftest$ac_exeext &&
13390 $as_test_x conftest$ac_exeext; then
13391 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13393 echo "$as_me: failed program was:" >&5
13394 sed 's
/^
/|
/' conftest.$ac_ext >&5
13396 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13399 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13400 conftest$ac_exeext conftest.$ac_ext
13401 LIBS=$ac_check_lib_save_LIBS
13403 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13404 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13405 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13412 if test "${HAVE_XPM}" = "yes"; then
13413 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13414 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13415 cat >conftest.$ac_ext <<_ACEOF
13418 cat confdefs.h >>conftest.$ac_ext
13419 cat >>conftest.$ac_ext <<_ACEOF
13420 /* end confdefs.h. */
13421 #include "X11/xpm.h"
13422 #ifndef XpmReturnAllocPixels
13423 no_return_alloc_pixels
13427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13428 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13436 if test "${HAVE_XPM}" = "yes"; then
13437 { echo "$as_me:$LINENO: result: yes" >&5
13438 echo "${ECHO_T}yes" >&6; }
13440 { echo "$as_me:$LINENO: result: no" >&5
13441 echo "${ECHO_T}no" >&6; }
13446 if test "${HAVE_XPM}" = "yes"; then
13448 cat >>confdefs.h <<\_ACEOF
13455 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13457 if test "${HAVE_X11}" = "yes"; then
13458 if test "${with_jpeg}" != "no"; then
13459 if test "${ac_cv_header_jerror_h+set}" = set; then
13460 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13461 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13462 if test "${ac_cv_header_jerror_h+set}" = set; then
13463 echo $ECHO_N "(cached) $ECHO_C" >&6
13465 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13466 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13468 # Is the header compilable?
13469 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13470 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13471 cat >conftest.
$ac_ext <<_ACEOF
13474 cat confdefs.h
>>conftest.
$ac_ext
13475 cat >>conftest.
$ac_ext <<_ACEOF
13476 /* end confdefs.h. */
13477 $ac_includes_default
13478 #include <jerror.h>
13480 rm -f conftest.
$ac_objext
13481 if { (ac_try
="$ac_compile"
13482 case "(($ac_try" in
13483 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13484 *) ac_try_echo=$ac_try;;
13486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13487 (eval "$ac_compile") 2>conftest.er1
13489 grep -v '^ *+' conftest.er1 >conftest.err
13491 cat conftest.err >&5
13492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13493 (exit $ac_status); } && {
13494 test -z "$ac_c_werror_flag" ||
13495 test ! -s conftest.err
13496 } && test -s conftest.$ac_objext; then
13497 ac_header_compiler=yes
13499 echo "$as_me: failed program was:" >&5
13500 sed 's/^/| /' conftest.$ac_ext >&5
13502 ac_header_compiler=no
13505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13506 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13507 echo "${ECHO_T}$ac_header_compiler" >&6; }
13509 # Is the header present?
13510 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13511 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13512 cat >conftest.$ac_ext <<_ACEOF
13515 cat confdefs.h >>conftest.$ac_ext
13516 cat >>conftest.$ac_ext <<_ACEOF
13517 /* end confdefs.h. */
13518 #include <jerror.h>
13520 if { (ac_try="$ac_cpp conftest.$ac_ext"
13521 case "(($ac_try" in
13522 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13523 *) ac_try_echo
=$ac_try;;
13525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13526 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13528 grep -v '^ *+' conftest.er1
>conftest.err
13530 cat conftest.err
>&5
13531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13532 (exit $ac_status); } >/dev
/null
&& {
13533 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13534 test ! -s conftest.err
13536 ac_header_preproc
=yes
13538 echo "$as_me: failed program was:" >&5
13539 sed 's/^/| /' conftest.
$ac_ext >&5
13541 ac_header_preproc
=no
13544 rm -f conftest.err conftest.
$ac_ext
13545 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13546 echo "${ECHO_T}$ac_header_preproc" >&6; }
13548 # So? What about this header?
13549 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13551 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13552 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13553 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13554 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13555 ac_header_preproc
=yes
13558 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13559 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13560 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13561 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13562 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13563 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13564 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13565 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13566 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13567 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13568 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13569 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13573 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13574 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13575 if test "${ac_cv_header_jerror_h+set}" = set; then
13576 echo $ECHO_N "(cached) $ECHO_C" >&6
13578 ac_cv_header_jerror_h
=$ac_header_preproc
13580 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13581 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13584 if test $ac_cv_header_jerror_h = yes; then
13585 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13586 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13587 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13588 echo $ECHO_N "(cached) $ECHO_C" >&6
13590 ac_check_lib_save_LIBS
=$LIBS
13591 LIBS
="-ljpeg $LIBS"
13592 cat >conftest.
$ac_ext <<_ACEOF
13595 cat confdefs.h
>>conftest.
$ac_ext
13596 cat >>conftest.
$ac_ext <<_ACEOF
13597 /* end confdefs.h. */
13599 /* Override any GCC internal prototype to avoid an error.
13600 Use char because int might match the return type of a GCC
13601 builtin and then its argument prototype would still apply. */
13605 char jpeg_destroy_compress ();
13609 return jpeg_destroy_compress ();
13614 rm -f conftest.
$ac_objext conftest
$ac_exeext
13615 if { (ac_try
="$ac_link"
13616 case "(($ac_try" in
13617 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13618 *) ac_try_echo=$ac_try;;
13620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13621 (eval "$ac_link") 2>conftest.er1
13623 grep -v '^ *+' conftest.er1 >conftest.err
13625 cat conftest.err >&5
13626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627 (exit $ac_status); } && {
13628 test -z "$ac_c_werror_flag" ||
13629 test ! -s conftest.err
13630 } && test -s conftest$ac_exeext &&
13631 $as_test_x conftest$ac_exeext; then
13632 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13634 echo "$as_me: failed program was:" >&5
13635 sed 's/^/| /' conftest.$ac_ext >&5
13637 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13641 conftest$ac_exeext conftest.$ac_ext
13642 LIBS=$ac_check_lib_save_LIBS
13644 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13645 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13646 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13656 if test "${HAVE_JPEG}" = "yes"; then
13657 cat >>confdefs.h <<\_ACEOF
13658 #define HAVE_JPEG 1
13661 cat >conftest.$ac_ext <<_ACEOF
13664 cat confdefs.h >>conftest.$ac_ext
13665 cat >>conftest.$ac_ext <<_ACEOF
13666 /* end confdefs.h. */
13667 #include <jpeglib.h>
13668 version=JPEG_LIB_VERSION
13671 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13672 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13673 cat >>confdefs.h <<\_ACEOF
13674 #define HAVE_JPEG 1
13678 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13679 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13687 ### Use -lpng if available, unless `--with-png=no
'.
13689 if test "${HAVE_X11}" = "yes"; then
13690 if test "${with_png}" != "no"; then
13691 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13692 # in /usr/include/libpng.
13695 for ac_header in png.h libpng/png.h
13697 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13698 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
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 ac_res=`eval echo '${'$as_ac_Header'}'`
13705 { echo "$as_me:$LINENO: result: $ac_res" >&5
13706 echo "${ECHO_T}$ac_res" >&6; }
13708 # Is the header compilable?
13709 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13710 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13711 cat >conftest.$ac_ext <<_ACEOF
13714 cat confdefs.h >>conftest.$ac_ext
13715 cat >>conftest.$ac_ext <<_ACEOF
13716 /* end confdefs.h. */
13717 $ac_includes_default
13718 #include <$ac_header>
13720 rm -f conftest.$ac_objext
13721 if { (ac_try="$ac_compile"
13722 case "(($ac_try" in
13723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13724 *) ac_try_echo=$ac_try;;
13726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13727 (eval "$ac_compile") 2>conftest.er1
13729 grep -v '^
*+' conftest.er1 >conftest.err
13731 cat conftest.err >&5
13732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13733 (exit $ac_status); } && {
13734 test -z "$ac_c_werror_flag" ||
13735 test ! -s conftest.err
13736 } && test -s conftest.$ac_objext; then
13737 ac_header_compiler=yes
13739 echo "$as_me: failed program was:" >&5
13740 sed 's
/^
/|
/' conftest.$ac_ext >&5
13742 ac_header_compiler=no
13745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13746 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13747 echo "${ECHO_T}$ac_header_compiler" >&6; }
13749 # Is the header present?
13750 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13751 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13752 cat >conftest.$ac_ext <<_ACEOF
13755 cat confdefs.h >>conftest.$ac_ext
13756 cat >>conftest.$ac_ext <<_ACEOF
13757 /* end confdefs.h. */
13758 #include <$ac_header>
13760 if { (ac_try="$ac_cpp conftest.$ac_ext"
13761 case "(($ac_try" in
13762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13763 *) ac_try_echo=$ac_try;;
13765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13766 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13768 grep -v '^
*+' conftest.er1 >conftest.err
13770 cat conftest.err >&5
13771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13772 (exit $ac_status); } >/dev/null && {
13773 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13774 test ! -s conftest.err
13776 ac_header_preproc=yes
13778 echo "$as_me: failed program was:" >&5
13779 sed 's
/^
/|
/' conftest.$ac_ext >&5
13781 ac_header_preproc=no
13784 rm -f conftest.err conftest.$ac_ext
13785 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13786 echo "${ECHO_T}$ac_header_preproc" >&6; }
13788 # So? What about this header?
13789 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13791 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13792 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13793 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result
" >&5
13794 echo "$as_me: WARNING
: $ac_header: proceeding with the compiler
's result" >&2;}
13795 ac_header_preproc=yes
13798 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13799 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13800 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13801 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13802 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13803 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13804 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13805 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13806 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result
" >&5
13807 echo "$as_me: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&2;}
13808 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13809 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13813 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13815 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13816 echo $ECHO_N "(cached) $ECHO_C" >&6
13818 eval "$as_ac_Header=\$ac_header_preproc"
13820 ac_res=`eval echo '${'$as_ac_Header'}'`
13821 { echo "$as_me:$LINENO: result: $ac_res" >&5
13822 echo "${ECHO_T}$ac_res" >&6; }
13825 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13826 cat >>confdefs.h <<_ACEOF
13827 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13834 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13835 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13836 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13837 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13838 echo $ECHO_N "(cached) $ECHO_C" >&6
13840 ac_check_lib_save_LIBS=$LIBS
13841 LIBS="-lpng -lz -lm $LIBS"
13842 cat >conftest.$ac_ext <<_ACEOF
13845 cat confdefs.h >>conftest.$ac_ext
13846 cat >>conftest.$ac_ext <<_ACEOF
13847 /* end confdefs.h. */
13849 /* Override any GCC internal prototype to avoid an error.
13850 Use char because int might match the return type of a GCC
13851 builtin and then its argument prototype would still apply. */
13855 char png_get_channels ();
13859 return png_get_channels ();
13864 rm -f conftest.$ac_objext conftest$ac_exeext
13865 if { (ac_try="$ac_link"
13866 case "(($ac_try" in
13867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13868 *) ac_try_echo=$ac_try;;
13870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13871 (eval "$ac_link") 2>conftest.er1
13873 grep -v '^
*+' conftest.er1 >conftest.err
13875 cat conftest.err >&5
13876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13877 (exit $ac_status); } && {
13878 test -z "$ac_c_werror_flag" ||
13879 test ! -s conftest.err
13880 } && test -s conftest$ac_exeext &&
13881 $as_test_x conftest$ac_exeext; then
13882 ac_cv_lib_png_png_get_channels=yes
13884 echo "$as_me: failed program was:" >&5
13885 sed 's
/^
/|
/' conftest.$ac_ext >&5
13887 ac_cv_lib_png_png_get_channels=no
13890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13891 conftest$ac_exeext conftest.$ac_ext
13892 LIBS=$ac_check_lib_save_LIBS
13894 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13895 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13896 if test $ac_cv_lib_png_png_get_channels = yes; then
13903 if test "${HAVE_PNG}" = "yes"; then
13905 cat >>confdefs.h <<\_ACEOF
13912 ### Use -ltiff if available, unless `--with-tiff=no'.
13914 if test "${HAVE_X11}" = "yes"; then
13915 if test "${with_tiff}" != "no"; then
13916 if test "${ac_cv_header_tiffio_h+set}" = set; then
13917 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13918 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13919 if test "${ac_cv_header_tiffio_h+set}" = set; then
13920 echo $ECHO_N "(cached) $ECHO_C" >&6
13922 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13923 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13925 # Is the header compilable?
13926 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13927 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13928 cat >conftest.
$ac_ext <<_ACEOF
13931 cat confdefs.h
>>conftest.
$ac_ext
13932 cat >>conftest.
$ac_ext <<_ACEOF
13933 /* end confdefs.h. */
13934 $ac_includes_default
13935 #include <tiffio.h>
13937 rm -f conftest.
$ac_objext
13938 if { (ac_try
="$ac_compile"
13939 case "(($ac_try" in
13940 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13941 *) ac_try_echo=$ac_try;;
13943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13944 (eval "$ac_compile") 2>conftest.er1
13946 grep -v '^ *+' conftest.er1 >conftest.err
13948 cat conftest.err >&5
13949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13950 (exit $ac_status); } && {
13951 test -z "$ac_c_werror_flag" ||
13952 test ! -s conftest.err
13953 } && test -s conftest.$ac_objext; then
13954 ac_header_compiler=yes
13956 echo "$as_me: failed program was:" >&5
13957 sed 's/^/| /' conftest.$ac_ext >&5
13959 ac_header_compiler=no
13962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13963 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13964 echo "${ECHO_T}$ac_header_compiler" >&6; }
13966 # Is the header present?
13967 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13968 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13969 cat >conftest.$ac_ext <<_ACEOF
13972 cat confdefs.h >>conftest.$ac_ext
13973 cat >>conftest.$ac_ext <<_ACEOF
13974 /* end confdefs.h. */
13975 #include <tiffio.h>
13977 if { (ac_try="$ac_cpp conftest.$ac_ext"
13978 case "(($ac_try" in
13979 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13980 *) ac_try_echo
=$ac_try;;
13982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13983 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13985 grep -v '^ *+' conftest.er1
>conftest.err
13987 cat conftest.err
>&5
13988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989 (exit $ac_status); } >/dev
/null
&& {
13990 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13991 test ! -s conftest.err
13993 ac_header_preproc
=yes
13995 echo "$as_me: failed program was:" >&5
13996 sed 's/^/| /' conftest.
$ac_ext >&5
13998 ac_header_preproc
=no
14001 rm -f conftest.err conftest.
$ac_ext
14002 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14003 echo "${ECHO_T}$ac_header_preproc" >&6; }
14005 # So? What about this header?
14006 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14008 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
14009 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14010 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
14011 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
14012 ac_header_preproc
=yes
14015 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
14016 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
14017 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
14018 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
14019 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
14020 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
14021 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
14022 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
14023 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
14024 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
14025 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
14026 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
14030 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14031 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14032 if test "${ac_cv_header_tiffio_h+set}" = set; then
14033 echo $ECHO_N "(cached) $ECHO_C" >&6
14035 ac_cv_header_tiffio_h
=$ac_header_preproc
14037 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14038 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14041 if test $ac_cv_header_tiffio_h = yes; then
14043 # At least one tiff package requires the jpeg library.
14044 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
14045 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
14046 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
14047 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14048 echo $ECHO_N "(cached) $ECHO_C" >&6
14050 ac_check_lib_save_LIBS
=$LIBS
14051 LIBS
="-ltiff $tifflibs $LIBS"
14052 cat >conftest.
$ac_ext <<_ACEOF
14055 cat confdefs.h
>>conftest.
$ac_ext
14056 cat >>conftest.
$ac_ext <<_ACEOF
14057 /* end confdefs.h. */
14059 /* Override any GCC internal prototype to avoid an error.
14060 Use char because int might match the return type of a GCC
14061 builtin and then its argument prototype would still apply. */
14065 char TIFFGetVersion ();
14069 return TIFFGetVersion ();
14074 rm -f conftest.
$ac_objext conftest
$ac_exeext
14075 if { (ac_try
="$ac_link"
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_link") 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); } && {
14088 test -z "$ac_c_werror_flag" ||
14089 test ! -s conftest.err
14090 } && test -s conftest$ac_exeext &&
14091 $as_test_x conftest$ac_exeext; then
14092 ac_cv_lib_tiff_TIFFGetVersion=yes
14094 echo "$as_me: failed program was:" >&5
14095 sed 's/^/| /' conftest.$ac_ext >&5
14097 ac_cv_lib_tiff_TIFFGetVersion=no
14100 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14101 conftest$ac_exeext conftest.$ac_ext
14102 LIBS=$ac_check_lib_save_LIBS
14104 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14105 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14106 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14115 if test "${HAVE_TIFF}" = "yes"; then
14117 cat >>confdefs.h <<\_ACEOF
14118 #define HAVE_TIFF 1
14124 ### Use -lgif if available, unless `--with-gif=no
'.
14126 if test "${HAVE_X11}" = "yes"; then
14127 if test "${with_gif}" != "no"; then
14128 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14129 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14130 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14131 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14132 echo $ECHO_N "(cached) $ECHO_C" >&6
14134 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14135 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14137 # Is the header compilable?
14138 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14139 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14140 cat >conftest.$ac_ext <<_ACEOF
14143 cat confdefs.h >>conftest.$ac_ext
14144 cat >>conftest.$ac_ext <<_ACEOF
14145 /* end confdefs.h. */
14146 $ac_includes_default
14147 #include <gif_lib.h>
14149 rm -f conftest.$ac_objext
14150 if { (ac_try="$ac_compile"
14151 case "(($ac_try" in
14152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14153 *) ac_try_echo=$ac_try;;
14155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14156 (eval "$ac_compile") 2>conftest.er1
14158 grep -v '^
*+' conftest.er1 >conftest.err
14160 cat conftest.err >&5
14161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14162 (exit $ac_status); } && {
14163 test -z "$ac_c_werror_flag" ||
14164 test ! -s conftest.err
14165 } && test -s conftest.$ac_objext; then
14166 ac_header_compiler=yes
14168 echo "$as_me: failed program was:" >&5
14169 sed 's
/^
/|
/' conftest.$ac_ext >&5
14171 ac_header_compiler=no
14174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14175 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14176 echo "${ECHO_T}$ac_header_compiler" >&6; }
14178 # Is the header present?
14179 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14180 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14181 cat >conftest.$ac_ext <<_ACEOF
14184 cat confdefs.h >>conftest.$ac_ext
14185 cat >>conftest.$ac_ext <<_ACEOF
14186 /* end confdefs.h. */
14187 #include <gif_lib.h>
14189 if { (ac_try="$ac_cpp conftest.$ac_ext"
14190 case "(($ac_try" in
14191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14192 *) ac_try_echo=$ac_try;;
14194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14195 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14197 grep -v '^
*+' conftest.er1 >conftest.err
14199 cat conftest.err >&5
14200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14201 (exit $ac_status); } >/dev/null && {
14202 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14203 test ! -s conftest.err
14205 ac_header_preproc=yes
14207 echo "$as_me: failed program was:" >&5
14208 sed 's
/^
/|
/' conftest.$ac_ext >&5
14210 ac_header_preproc=no
14213 rm -f conftest.err conftest.$ac_ext
14214 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14215 echo "${ECHO_T}$ac_header_preproc" >&6; }
14217 # So? What about this header?
14218 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14220 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14221 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14222 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result
" >&5
14223 echo "$as_me: WARNING
: gif_lib.h
: proceeding with the compiler
's result" >&2;}
14224 ac_header_preproc=yes
14227 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14228 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14229 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14230 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14231 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14232 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14233 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14234 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14235 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result
" >&5
14236 echo "$as_me: WARNING
: gif_lib.h
: proceeding with the preprocessor
's result" >&2;}
14237 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14238 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14242 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14243 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14244 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14245 echo $ECHO_N "(cached) $ECHO_C" >&6
14247 ac_cv_header_gif_lib_h=$ac_header_preproc
14249 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14250 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14253 if test $ac_cv_header_gif_lib_h = yes; then
14254 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14255 # Earlier versions can crash Emacs.
14256 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14257 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14258 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14259 echo $ECHO_N "(cached) $ECHO_C" >&6
14261 ac_check_lib_save_LIBS=$LIBS
14262 LIBS="-lungif $LIBS"
14263 cat >conftest.$ac_ext <<_ACEOF
14266 cat confdefs.h >>conftest.$ac_ext
14267 cat >>conftest.$ac_ext <<_ACEOF
14268 /* end confdefs.h. */
14270 /* Override any GCC internal prototype to avoid an error.
14271 Use char because int might match the return type of a GCC
14272 builtin and then its argument prototype would still apply. */
14276 char EGifPutExtensionLast ();
14280 return EGifPutExtensionLast ();
14285 rm -f conftest.$ac_objext conftest$ac_exeext
14286 if { (ac_try="$ac_link"
14287 case "(($ac_try" in
14288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14289 *) ac_try_echo=$ac_try;;
14291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14292 (eval "$ac_link") 2>conftest.er1
14294 grep -v '^
*+' conftest.er1 >conftest.err
14296 cat conftest.err >&5
14297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14298 (exit $ac_status); } && {
14299 test -z "$ac_c_werror_flag" ||
14300 test ! -s conftest.err
14301 } && test -s conftest$ac_exeext &&
14302 $as_test_x conftest$ac_exeext; then
14303 ac_cv_lib_ungif_EGifPutExtensionLast=yes
14305 echo "$as_me: failed program was:" >&5
14306 sed 's
/^
/|
/' conftest.$ac_ext >&5
14308 ac_cv_lib_ungif_EGifPutExtensionLast=no
14311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14312 conftest$ac_exeext conftest.$ac_ext
14313 LIBS=$ac_check_lib_save_LIBS
14315 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14316 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14317 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14326 if test "${HAVE_GIF}" = "yes"; then
14328 cat >>confdefs.h <<\_ACEOF
14335 ### Use -lgpm if available, unless `--with-gpm=no'.
14337 if test "${with_gpm}" != "no"; then
14338 if test "${ac_cv_header_gpm_h+set}" = set; then
14339 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14340 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14341 if test "${ac_cv_header_gpm_h+set}" = set; then
14342 echo $ECHO_N "(cached) $ECHO_C" >&6
14344 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14345 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14347 # Is the header compilable?
14348 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14349 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14350 cat >conftest.
$ac_ext <<_ACEOF
14353 cat confdefs.h
>>conftest.
$ac_ext
14354 cat >>conftest.
$ac_ext <<_ACEOF
14355 /* end confdefs.h. */
14356 $ac_includes_default
14359 rm -f conftest.
$ac_objext
14360 if { (ac_try
="$ac_compile"
14361 case "(($ac_try" in
14362 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14363 *) ac_try_echo=$ac_try;;
14365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14366 (eval "$ac_compile") 2>conftest.er1
14368 grep -v '^ *+' conftest.er1 >conftest.err
14370 cat conftest.err >&5
14371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14372 (exit $ac_status); } && {
14373 test -z "$ac_c_werror_flag" ||
14374 test ! -s conftest.err
14375 } && test -s conftest.$ac_objext; then
14376 ac_header_compiler=yes
14378 echo "$as_me: failed program was:" >&5
14379 sed 's/^/| /' conftest.$ac_ext >&5
14381 ac_header_compiler=no
14384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14385 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14386 echo "${ECHO_T}$ac_header_compiler" >&6; }
14388 # Is the header present?
14389 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14390 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14391 cat >conftest.$ac_ext <<_ACEOF
14394 cat confdefs.h >>conftest.$ac_ext
14395 cat >>conftest.$ac_ext <<_ACEOF
14396 /* end confdefs.h. */
14399 if { (ac_try="$ac_cpp conftest.$ac_ext"
14400 case "(($ac_try" in
14401 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14402 *) ac_try_echo
=$ac_try;;
14404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14405 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14407 grep -v '^ *+' conftest.er1
>conftest.err
14409 cat conftest.err
>&5
14410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411 (exit $ac_status); } >/dev
/null
&& {
14412 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14413 test ! -s conftest.err
14415 ac_header_preproc
=yes
14417 echo "$as_me: failed program was:" >&5
14418 sed 's/^/| /' conftest.
$ac_ext >&5
14420 ac_header_preproc
=no
14423 rm -f conftest.err conftest.
$ac_ext
14424 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14425 echo "${ECHO_T}$ac_header_preproc" >&6; }
14427 # So? What about this header?
14428 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14430 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14431 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14432 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14433 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14434 ac_header_preproc
=yes
14437 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14438 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14439 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14440 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14441 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14442 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14443 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14444 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14445 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14446 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14447 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14448 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14452 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14453 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14454 if test "${ac_cv_header_gpm_h+set}" = set; then
14455 echo $ECHO_N "(cached) $ECHO_C" >&6
14457 ac_cv_header_gpm_h
=$ac_header_preproc
14459 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14460 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14463 if test $ac_cv_header_gpm_h = yes; then
14464 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14465 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14466 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14467 echo $ECHO_N "(cached) $ECHO_C" >&6
14469 ac_check_lib_save_LIBS
=$LIBS
14471 cat >conftest.
$ac_ext <<_ACEOF
14474 cat confdefs.h
>>conftest.
$ac_ext
14475 cat >>conftest.
$ac_ext <<_ACEOF
14476 /* end confdefs.h. */
14478 /* Override any GCC internal prototype to avoid an error.
14479 Use char because int might match the return type of a GCC
14480 builtin and then its argument prototype would still apply. */
14488 return Gpm_Open ();
14493 rm -f conftest.
$ac_objext conftest
$ac_exeext
14494 if { (ac_try
="$ac_link"
14495 case "(($ac_try" in
14496 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14497 *) ac_try_echo=$ac_try;;
14499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14500 (eval "$ac_link") 2>conftest.er1
14502 grep -v '^ *+' conftest.er1 >conftest.err
14504 cat conftest.err >&5
14505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14506 (exit $ac_status); } && {
14507 test -z "$ac_c_werror_flag" ||
14508 test ! -s conftest.err
14509 } && test -s conftest$ac_exeext &&
14510 $as_test_x conftest$ac_exeext; then
14511 ac_cv_lib_gpm_Gpm_Open=yes
14513 echo "$as_me: failed program was:" >&5
14514 sed 's/^/| /' conftest.$ac_ext >&5
14516 ac_cv_lib_gpm_Gpm_Open=no
14519 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14520 conftest$ac_exeext conftest.$ac_ext
14521 LIBS=$ac_check_lib_save_LIBS
14523 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14524 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14525 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14534 if test "${HAVE_GPM}" = "yes"; then
14536 cat >>confdefs.h <<\_ACEOF
14542 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14543 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14544 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14545 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14546 echo $ECHO_N "(cached) $ECHO_C" >&6
14548 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14549 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14551 # Is the header compilable?
14552 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14553 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14554 cat >conftest.$ac_ext <<_ACEOF
14557 cat confdefs.h >>conftest.$ac_ext
14558 cat >>conftest.$ac_ext <<_ACEOF
14559 /* end confdefs.h. */
14560 $ac_includes_default
14561 #include <malloc/malloc.h>
14563 rm -f conftest.$ac_objext
14564 if { (ac_try="$ac_compile"
14565 case "(($ac_try" in
14566 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14567 *) ac_try_echo
=$ac_try;;
14569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14570 (eval "$ac_compile") 2>conftest.er1
14572 grep -v '^ *+' conftest.er1
>conftest.err
14574 cat conftest.err
>&5
14575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14576 (exit $ac_status); } && {
14577 test -z "$ac_c_werror_flag" ||
14578 test ! -s conftest.err
14579 } && test -s conftest.
$ac_objext; then
14580 ac_header_compiler
=yes
14582 echo "$as_me: failed program was:" >&5
14583 sed 's/^/| /' conftest.
$ac_ext >&5
14585 ac_header_compiler
=no
14588 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14589 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14590 echo "${ECHO_T}$ac_header_compiler" >&6; }
14592 # Is the header present?
14593 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14594 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14595 cat >conftest.
$ac_ext <<_ACEOF
14598 cat confdefs.h
>>conftest.
$ac_ext
14599 cat >>conftest.
$ac_ext <<_ACEOF
14600 /* end confdefs.h. */
14601 #include <malloc/malloc.h>
14603 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14604 case "(($ac_try" in
14605 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14606 *) ac_try_echo=$ac_try;;
14608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14609 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14611 grep -v '^ *+' conftest.er1 >conftest.err
14613 cat conftest.err >&5
14614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14615 (exit $ac_status); } >/dev/null && {
14616 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14617 test ! -s conftest.err
14619 ac_header_preproc=yes
14621 echo "$as_me: failed program was:" >&5
14622 sed 's/^/| /' conftest.$ac_ext >&5
14624 ac_header_preproc=no
14627 rm -f conftest.err conftest.$ac_ext
14628 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14629 echo "${ECHO_T}$ac_header_preproc" >&6; }
14631 # So? What about this header?
14632 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14634 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14635 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14636 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14637 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14638 ac_header_preproc=yes
14641 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14642 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14643 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14644 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14645 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14646 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14647 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14648 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14649 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14650 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14651 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14652 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14656 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14657 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14658 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14659 echo $ECHO_N "(cached) $ECHO_C" >&6
14661 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14663 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14664 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14667 if test $ac_cv_header_malloc_malloc_h = yes; then
14669 cat >>confdefs.h <<\_ACEOF
14670 #define HAVE_MALLOC_MALLOC_H 1
14677 ### Use Mac OS X Carbon API to implement GUI.
14678 if test "${HAVE_CARBON}" = "yes"; then
14680 cat >>confdefs.h <<\_ACEOF
14681 #define HAVE_CARBON 1
14684 ## Specify the install directory
14686 if test "${carbon_appdir_x}" != ""; then
14687 case ${carbon_appdir_x} in
14688 y | ye | yes) carbon_appdir=/Applications ;;
14689 * ) carbon_appdir=${carbon_appdir_x} ;;
14692 # We also have mouse menus.
14696 ### Use session management (-lSM -lICE) if available
14698 if test "${HAVE_X11}" = "yes"; then
14699 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14700 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14701 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14702 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14703 echo $ECHO_N "(cached) $ECHO_C" >&6
14705 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14706 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14708 # Is the header compilable?
14709 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14710 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14711 cat >conftest.$ac_ext <<_ACEOF
14714 cat confdefs.h >>conftest.$ac_ext
14715 cat >>conftest.$ac_ext <<_ACEOF
14716 /* end confdefs.h. */
14717 $ac_includes_default
14718 #include <X11/SM/SMlib.h>
14720 rm -f conftest.$ac_objext
14721 if { (ac_try="$ac_compile"
14722 case "(($ac_try" in
14723 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14724 *) ac_try_echo
=$ac_try;;
14726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14727 (eval "$ac_compile") 2>conftest.er1
14729 grep -v '^ *+' conftest.er1
>conftest.err
14731 cat conftest.err
>&5
14732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14733 (exit $ac_status); } && {
14734 test -z "$ac_c_werror_flag" ||
14735 test ! -s conftest.err
14736 } && test -s conftest.
$ac_objext; then
14737 ac_header_compiler
=yes
14739 echo "$as_me: failed program was:" >&5
14740 sed 's/^/| /' conftest.
$ac_ext >&5
14742 ac_header_compiler
=no
14745 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14746 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14747 echo "${ECHO_T}$ac_header_compiler" >&6; }
14749 # Is the header present?
14750 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14751 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14752 cat >conftest.
$ac_ext <<_ACEOF
14755 cat confdefs.h
>>conftest.
$ac_ext
14756 cat >>conftest.
$ac_ext <<_ACEOF
14757 /* end confdefs.h. */
14758 #include <X11/SM/SMlib.h>
14760 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14761 case "(($ac_try" in
14762 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14763 *) ac_try_echo=$ac_try;;
14765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14766 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14768 grep -v '^ *+' conftest.er1 >conftest.err
14770 cat conftest.err >&5
14771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14772 (exit $ac_status); } >/dev/null && {
14773 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14774 test ! -s conftest.err
14776 ac_header_preproc=yes
14778 echo "$as_me: failed program was:" >&5
14779 sed 's/^/| /' conftest.$ac_ext >&5
14781 ac_header_preproc=no
14784 rm -f conftest.err conftest.$ac_ext
14785 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14786 echo "${ECHO_T}$ac_header_preproc" >&6; }
14788 # So? What about this header?
14789 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14791 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14792 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14793 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14794 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14795 ac_header_preproc=yes
14798 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14799 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14800 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14801 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14802 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14803 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14804 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14805 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14806 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14807 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14808 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14809 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14813 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14814 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14815 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14816 echo $ECHO_N "(cached) $ECHO_C" >&6
14818 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14820 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14821 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14824 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14825 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14826 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14827 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14828 echo $ECHO_N "(cached) $ECHO_C" >&6
14830 ac_check_lib_save_LIBS=$LIBS
14831 LIBS="-lSM -lICE $LIBS"
14832 cat >conftest.$ac_ext <<_ACEOF
14835 cat confdefs.h >>conftest.$ac_ext
14836 cat >>conftest.$ac_ext <<_ACEOF
14837 /* end confdefs.h. */
14839 /* Override any GCC internal prototype to avoid an error.
14840 Use char because int might match the return type of a GCC
14841 builtin and then its argument prototype would still apply. */
14845 char SmcOpenConnection ();
14849 return SmcOpenConnection ();
14854 rm -f conftest.$ac_objext conftest$ac_exeext
14855 if { (ac_try="$ac_link"
14856 case "(($ac_try" in
14857 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14858 *) ac_try_echo
=$ac_try;;
14860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14861 (eval "$ac_link") 2>conftest.er1
14863 grep -v '^ *+' conftest.er1
>conftest.err
14865 cat conftest.err
>&5
14866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14867 (exit $ac_status); } && {
14868 test -z "$ac_c_werror_flag" ||
14869 test ! -s conftest.err
14870 } && test -s conftest
$ac_exeext &&
14871 $as_test_x conftest
$ac_exeext; then
14872 ac_cv_lib_SM_SmcOpenConnection
=yes
14874 echo "$as_me: failed program was:" >&5
14875 sed 's/^/| /' conftest.
$ac_ext >&5
14877 ac_cv_lib_SM_SmcOpenConnection
=no
14880 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14881 conftest
$ac_exeext conftest.
$ac_ext
14882 LIBS
=$ac_check_lib_save_LIBS
14884 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14885 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14886 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14894 if test "${HAVE_X_SM}" = "yes"; then
14896 cat >>confdefs.h
<<\_ACEOF
14897 #define HAVE_X_SM 1
14902 *) LIBS
="-lSM -lICE $LIBS" ;;
14907 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14908 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14909 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14910 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14911 echo $ECHO_N "(cached) $ECHO_C" >&6
14913 cat >conftest.
$ac_ext <<_ACEOF
14916 cat confdefs.h
>>conftest.
$ac_ext
14917 cat >>conftest.
$ac_ext <<_ACEOF
14918 /* end confdefs.h. */
14928 rm -f conftest.
$ac_objext conftest
$ac_exeext
14929 if { (ac_try
="$ac_link"
14930 case "(($ac_try" in
14931 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14932 *) ac_try_echo=$ac_try;;
14934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14935 (eval "$ac_link") 2>conftest.er1
14937 grep -v '^ *+' conftest.er1 >conftest.err
14939 cat conftest.err >&5
14940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14941 (exit $ac_status); } && {
14942 test -z "$ac_c_werror_flag" ||
14943 test ! -s conftest.err
14944 } && test -s conftest$ac_exeext &&
14945 $as_test_x conftest$ac_exeext; then
14946 emacs_cv_netdb_declares_h_errno=yes
14948 echo "$as_me: failed program was:" >&5
14949 sed 's/^/| /' conftest.$ac_ext >&5
14951 emacs_cv_netdb_declares_h_errno=no
14954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14955 conftest$ac_exeext conftest.$ac_ext
14957 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
14958 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
14959 if test $emacs_cv_netdb_declares_h_errno = yes; then
14961 cat >>confdefs.h <<\_ACEOF
14962 #define HAVE_H_ERRNO 1
14967 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14968 # for constant arguments. Useless!
14969 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
14970 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
14971 if test "${ac_cv_working_alloca_h+set}" = set; then
14972 echo $ECHO_N "(cached) $ECHO_C" >&6
14974 cat >conftest.$ac_ext <<_ACEOF
14977 cat confdefs.h >>conftest.$ac_ext
14978 cat >>conftest.$ac_ext <<_ACEOF
14979 /* end confdefs.h. */
14980 #include <alloca.h>
14984 char *p = (char *) alloca (2 * sizeof (int));
14990 rm -f conftest.$ac_objext conftest$ac_exeext
14991 if { (ac_try="$ac_link"
14992 case "(($ac_try" in
14993 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14994 *) ac_try_echo
=$ac_try;;
14996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14997 (eval "$ac_link") 2>conftest.er1
14999 grep -v '^ *+' conftest.er1
>conftest.err
15001 cat conftest.err
>&5
15002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15003 (exit $ac_status); } && {
15004 test -z "$ac_c_werror_flag" ||
15005 test ! -s conftest.err
15006 } && test -s conftest
$ac_exeext &&
15007 $as_test_x conftest
$ac_exeext; then
15008 ac_cv_working_alloca_h
=yes
15010 echo "$as_me: failed program was:" >&5
15011 sed 's/^/| /' conftest.
$ac_ext >&5
15013 ac_cv_working_alloca_h
=no
15016 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15017 conftest
$ac_exeext conftest.
$ac_ext
15019 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15020 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15021 if test $ac_cv_working_alloca_h = yes; then
15023 cat >>confdefs.h
<<\_ACEOF
15024 #define HAVE_ALLOCA_H 1
15029 { echo "$as_me:$LINENO: checking for alloca" >&5
15030 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15031 if test "${ac_cv_func_alloca_works+set}" = set; then
15032 echo $ECHO_N "(cached) $ECHO_C" >&6
15034 cat >conftest.
$ac_ext <<_ACEOF
15037 cat confdefs.h
>>conftest.
$ac_ext
15038 cat >>conftest.
$ac_ext <<_ACEOF
15039 /* end confdefs.h. */
15041 # define alloca __builtin_alloca
15044 # include <malloc.h>
15045 # define alloca _alloca
15047 # ifdef HAVE_ALLOCA_H
15048 # include <alloca.h>
15053 # ifndef alloca /* predefined by HP cc +Olibcalls */
15064 char *p = (char *) alloca (1);
15070 rm -f conftest.
$ac_objext conftest
$ac_exeext
15071 if { (ac_try
="$ac_link"
15072 case "(($ac_try" in
15073 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15074 *) ac_try_echo=$ac_try;;
15076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15077 (eval "$ac_link") 2>conftest.er1
15079 grep -v '^ *+' conftest.er1 >conftest.err
15081 cat conftest.err >&5
15082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15083 (exit $ac_status); } && {
15084 test -z "$ac_c_werror_flag" ||
15085 test ! -s conftest.err
15086 } && test -s conftest$ac_exeext &&
15087 $as_test_x conftest$ac_exeext; then
15088 ac_cv_func_alloca_works=yes
15090 echo "$as_me: failed program was:" >&5
15091 sed 's/^/| /' conftest.$ac_ext >&5
15093 ac_cv_func_alloca_works=no
15096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15097 conftest$ac_exeext conftest.$ac_ext
15099 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15100 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15102 if test $ac_cv_func_alloca_works = yes; then
15104 cat >>confdefs.h <<\_ACEOF
15105 #define HAVE_ALLOCA 1
15109 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15110 # that cause trouble. Some versions do not even contain alloca or
15111 # contain a buggy version. If you still want to use their alloca,
15112 # use ar to extract alloca.o from them instead of compiling alloca.c.
15114 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15116 cat >>confdefs.h <<\_ACEOF
15121 { echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
15122 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks...
$ECHO_C" >&6; }
15123 if test "${ac_cv_os_cray+set}" = set; then
15124 echo $ECHO_N "(cached
) $ECHO_C" >&6
15126 cat >conftest.$ac_ext <<_ACEOF
15129 cat confdefs.h >>conftest.$ac_ext
15130 cat >>conftest.$ac_ext <<_ACEOF
15131 /* end confdefs.h. */
15132 #if defined CRAY && ! defined CRAY2
15139 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
15140 $EGREP "webecray
" >/dev/null 2>&1; then
15148 { echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
15149 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15150 if test $ac_cv_os_cray = yes; then
15151 for ac_func in _getb67 GETB67 getb67; do
15152 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15153 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15154 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15155 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15156 echo $ECHO_N "(cached
) $ECHO_C" >&6
15158 cat >conftest.$ac_ext <<_ACEOF
15161 cat confdefs.h >>conftest.$ac_ext
15162 cat >>conftest.$ac_ext <<_ACEOF
15163 /* end confdefs.h. */
15164 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15165 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15166 #define $ac_func innocuous_$ac_func
15168 /* System header to define __stub macros and hopefully few prototypes,
15169 which can conflict with char $ac_func (); below.
15170 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15171 <limits.h> exists even on freestanding compilers. */
15174 # include <limits.h>
15176 # include <assert.h>
15181 /* Override any GCC internal prototype to avoid an error.
15182 Use char because int might match the return type of a GCC
15183 builtin and then its argument prototype would still apply. */
15188 /* The GNU C library defines this for functions which it implements
15189 to always fail with ENOSYS. Some functions are actually named
15190 something starting with __ and the normal name is an alias. */
15191 #if defined __stub_$ac_func || defined __stub___$ac_func
15198 return $ac_func ();
15203 rm -f conftest.$ac_objext conftest$ac_exeext
15204 if { (ac_try="$ac_link"
15205 case "(($ac_try" in
15206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15207 *) ac_try_echo=$ac_try;;
15209 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15210 (eval "$ac_link") 2>conftest.er1
15212 grep -v '^ *+' conftest.er1 >conftest.err
15214 cat conftest.err >&5
15215 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15216 (exit $ac_status); } && {
15217 test -z "$ac_c_werror_flag" ||
15218 test ! -s conftest.err
15219 } && test -s conftest$ac_exeext &&
15220 $as_test_x conftest$ac_exeext; then
15221 eval "$as_ac_var=yes"
15223 echo "$as_me: failed program was
:" >&5
15224 sed 's/^/| /' conftest.$ac_ext >&5
15226 eval "$as_ac_var=no
"
15229 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15230 conftest$ac_exeext conftest.$ac_ext
15232 ac_res=`eval echo '${'$as_ac_var'}'`
15233 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15234 echo "${ECHO_T}$ac_res" >&6; }
15235 if test `eval echo '${'$as_ac_var'}'` = yes; then
15237 cat >>confdefs.h <<_ACEOF
15238 #define CRAY_STACKSEG_END $ac_func
15247 { echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
15248 echo $ECHO_N "checking stack direction
for C alloca...
$ECHO_C" >&6; }
15249 if test "${ac_cv_c_stack_direction+set}" = set; then
15250 echo $ECHO_N "(cached
) $ECHO_C" >&6
15252 if test "$cross_compiling" = yes; then
15253 ac_cv_c_stack_direction=0
15255 cat >conftest.$ac_ext <<_ACEOF
15258 cat confdefs.h >>conftest.$ac_ext
15259 cat >>conftest.$ac_ext <<_ACEOF
15260 /* end confdefs.h. */
15261 $ac_includes_default
15263 find_stack_direction ()
15265 static char *addr = 0;
15270 return find_stack_direction ();
15273 return (&dummy > addr) ? 1 : -1;
15279 return find_stack_direction () < 0;
15282 rm -f conftest$ac_exeext
15283 if { (ac_try="$ac_link"
15284 case "(($ac_try" in
15285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15286 *) ac_try_echo=$ac_try;;
15288 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15289 (eval "$ac_link") 2>&5
15291 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15292 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15293 { (case "(($ac_try" in
15294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15295 *) ac_try_echo=$ac_try;;
15297 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15298 (eval "$ac_try") 2>&5
15300 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15301 (exit $ac_status); }; }; then
15302 ac_cv_c_stack_direction=1
15304 echo "$as_me: program exited with status
$ac_status" >&5
15305 echo "$as_me: failed program was
:" >&5
15306 sed 's/^/| /' conftest.$ac_ext >&5
15308 ( exit $ac_status )
15309 ac_cv_c_stack_direction=-1
15311 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15316 { echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
15317 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15319 cat >>confdefs.h <<_ACEOF
15320 #define STACK_DIRECTION $ac_cv_c_stack_direction
15327 # fmod, logb, and frexp are found in -lm on most systems.
15328 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15330 { echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
15331 echo $ECHO_N "checking
for sqrt
in -lm...
$ECHO_C" >&6; }
15332 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15333 echo $ECHO_N "(cached
) $ECHO_C" >&6
15335 ac_check_lib_save_LIBS=$LIBS
15337 cat >conftest.$ac_ext <<_ACEOF
15340 cat confdefs.h >>conftest.$ac_ext
15341 cat >>conftest.$ac_ext <<_ACEOF
15342 /* end confdefs.h. */
15344 /* Override any GCC internal prototype to avoid an error.
15345 Use char because int might match the return type of a GCC
15346 builtin and then its argument prototype would still apply. */
15359 rm -f conftest.$ac_objext conftest$ac_exeext
15360 if { (ac_try="$ac_link"
15361 case "(($ac_try" in
15362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15363 *) ac_try_echo=$ac_try;;
15365 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15366 (eval "$ac_link") 2>conftest.er1
15368 grep -v '^ *+' conftest.er1 >conftest.err
15370 cat conftest.err >&5
15371 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15372 (exit $ac_status); } && {
15373 test -z "$ac_c_werror_flag" ||
15374 test ! -s conftest.err
15375 } && test -s conftest$ac_exeext &&
15376 $as_test_x conftest$ac_exeext; then
15377 ac_cv_lib_m_sqrt=yes
15379 echo "$as_me: failed program was
:" >&5
15380 sed 's/^/| /' conftest.$ac_ext >&5
15382 ac_cv_lib_m_sqrt=no
15385 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15386 conftest$ac_exeext conftest.$ac_ext
15387 LIBS=$ac_check_lib_save_LIBS
15389 { echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
15390 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15391 if test $ac_cv_lib_m_sqrt = yes; then
15392 cat >>confdefs.h <<_ACEOF
15393 #define HAVE_LIBM 1
15401 # Check for mail-locking functions in a "mail" library. Probably this should
15402 # have the same check as for liblockfile below.
15404 { echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
15405 echo $ECHO_N "checking
for maillock
in -lmail...
$ECHO_C" >&6; }
15406 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15407 echo $ECHO_N "(cached
) $ECHO_C" >&6
15409 ac_check_lib_save_LIBS=$LIBS
15410 LIBS="-lmail $LIBS"
15411 cat >conftest.$ac_ext <<_ACEOF
15414 cat confdefs.h >>conftest.$ac_ext
15415 cat >>conftest.$ac_ext <<_ACEOF
15416 /* end confdefs.h. */
15418 /* Override any GCC internal prototype to avoid an error.
15419 Use char because int might match the return type of a GCC
15420 builtin and then its argument prototype would still apply. */
15428 return maillock ();
15433 rm -f conftest.$ac_objext conftest$ac_exeext
15434 if { (ac_try="$ac_link"
15435 case "(($ac_try" in
15436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15437 *) ac_try_echo=$ac_try;;
15439 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15440 (eval "$ac_link") 2>conftest.er1
15442 grep -v '^ *+' conftest.er1 >conftest.err
15444 cat conftest.err >&5
15445 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15446 (exit $ac_status); } && {
15447 test -z "$ac_c_werror_flag" ||
15448 test ! -s conftest.err
15449 } && test -s conftest$ac_exeext &&
15450 $as_test_x conftest$ac_exeext; then
15451 ac_cv_lib_mail_maillock=yes
15453 echo "$as_me: failed program was
:" >&5
15454 sed 's/^/| /' conftest.$ac_ext >&5
15456 ac_cv_lib_mail_maillock=no
15459 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15460 conftest$ac_exeext conftest.$ac_ext
15461 LIBS=$ac_check_lib_save_LIBS
15463 { echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
15464 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15465 if test $ac_cv_lib_mail_maillock = yes; then
15466 cat >>confdefs.h <<_ACEOF
15467 #define HAVE_LIBMAIL 1
15470 LIBS="-lmail $LIBS"
15475 { echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
15476 echo $ECHO_N "checking
for maillock
in -llockfile...
$ECHO_C" >&6; }
15477 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15478 echo $ECHO_N "(cached
) $ECHO_C" >&6
15480 ac_check_lib_save_LIBS=$LIBS
15481 LIBS="-llockfile $LIBS"
15482 cat >conftest.$ac_ext <<_ACEOF
15485 cat confdefs.h >>conftest.$ac_ext
15486 cat >>conftest.$ac_ext <<_ACEOF
15487 /* end confdefs.h. */
15489 /* Override any GCC internal prototype to avoid an error.
15490 Use char because int might match the return type of a GCC
15491 builtin and then its argument prototype would still apply. */
15499 return maillock ();
15504 rm -f conftest.$ac_objext conftest$ac_exeext
15505 if { (ac_try="$ac_link"
15506 case "(($ac_try" in
15507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15508 *) ac_try_echo=$ac_try;;
15510 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15511 (eval "$ac_link") 2>conftest.er1
15513 grep -v '^ *+' conftest.er1 >conftest.err
15515 cat conftest.err >&5
15516 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15517 (exit $ac_status); } && {
15518 test -z "$ac_c_werror_flag" ||
15519 test ! -s conftest.err
15520 } && test -s conftest$ac_exeext &&
15521 $as_test_x conftest$ac_exeext; then
15522 ac_cv_lib_lockfile_maillock=yes
15524 echo "$as_me: failed program was
:" >&5
15525 sed 's/^/| /' conftest.$ac_ext >&5
15527 ac_cv_lib_lockfile_maillock=no
15530 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15531 conftest$ac_exeext conftest.$ac_ext
15532 LIBS=$ac_check_lib_save_LIBS
15534 { echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
15535 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15536 if test $ac_cv_lib_lockfile_maillock = yes; then
15537 cat >>confdefs.h <<_ACEOF
15538 #define HAVE_LIBLOCKFILE 1
15541 LIBS="-llockfile $LIBS"
15545 # If we have the shared liblockfile, assume we must use it for mail
15546 # locking (e.g. Debian). If we couldn't link against liblockfile
15547 # (no liblockfile.a installed), ensure that we don't need to.
15548 if test "$ac_cv_lib_lockfile_maillock" = no; then
15549 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
15550 set dummy liblockfile.so; ac_word=$2
15551 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
15552 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
15553 if test "${ac_cv_prog_liblockfile+set}" = set; then
15554 echo $ECHO_N "(cached
) $ECHO_C" >&6
15556 if test -n "$liblockfile"; then
15557 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15560 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
15561 for as_dir in $as_dummy
15564 test -z "$as_dir" && as_dir=.
15565 for ac_exec_ext in '' $ac_executable_extensions; do
15566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15567 ac_cv_prog_liblockfile="yes"
15568 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15575 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
15578 liblockfile=$ac_cv_prog_liblockfile
15579 if test -n "$liblockfile"; then
15580 { echo "$as_me:$LINENO: result
: $liblockfile" >&5
15581 echo "${ECHO_T}$liblockfile" >&6; }
15583 { echo "$as_me:$LINENO: result
: no
" >&5
15584 echo "${ECHO_T}no
" >&6; }
15588 if test $ac_cv_prog_liblockfile = yes; then
15589 { { echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
15590 This probably means that movemail could lose mail.
15591 There may be a \`development' package to
install containing liblockfile.
" >&5
15592 echo "$as_me: error
: Shared liblockfile found but can
't link against it.
15593 This probably means that movemail could lose mail.
15594 There may be a \`development' package to
install containing liblockfile.
" >&2;}
15595 { (exit 1); exit 1; }; }
15600 for ac_func in touchlock
15602 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15603 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15604 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15605 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15606 echo $ECHO_N "(cached
) $ECHO_C" >&6
15608 cat >conftest.$ac_ext <<_ACEOF
15611 cat confdefs.h >>conftest.$ac_ext
15612 cat >>conftest.$ac_ext <<_ACEOF
15613 /* end confdefs.h. */
15614 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15615 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15616 #define $ac_func innocuous_$ac_func
15618 /* System header to define __stub macros and hopefully few prototypes,
15619 which can conflict with char $ac_func (); below.
15620 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15621 <limits.h> exists even on freestanding compilers. */
15624 # include <limits.h>
15626 # include <assert.h>
15631 /* Override any GCC internal prototype to avoid an error.
15632 Use char because int might match the return type of a GCC
15633 builtin and then its argument prototype would still apply. */
15638 /* The GNU C library defines this for functions which it implements
15639 to always fail with ENOSYS. Some functions are actually named
15640 something starting with __ and the normal name is an alias. */
15641 #if defined __stub_$ac_func || defined __stub___$ac_func
15648 return $ac_func ();
15653 rm -f conftest.$ac_objext conftest$ac_exeext
15654 if { (ac_try="$ac_link"
15655 case "(($ac_try" in
15656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15657 *) ac_try_echo=$ac_try;;
15659 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15660 (eval "$ac_link") 2>conftest.er1
15662 grep -v '^ *+' conftest.er1 >conftest.err
15664 cat conftest.err >&5
15665 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15666 (exit $ac_status); } && {
15667 test -z "$ac_c_werror_flag" ||
15668 test ! -s conftest.err
15669 } && test -s conftest$ac_exeext &&
15670 $as_test_x conftest$ac_exeext; then
15671 eval "$as_ac_var=yes"
15673 echo "$as_me: failed program was
:" >&5
15674 sed 's/^/| /' conftest.$ac_ext >&5
15676 eval "$as_ac_var=no
"
15679 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15680 conftest$ac_exeext conftest.$ac_ext
15682 ac_res=`eval echo '${'$as_ac_var'}'`
15683 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15684 echo "${ECHO_T}$ac_res" >&6; }
15685 if test `eval echo '${'$as_ac_var'}'` = yes; then
15686 cat >>confdefs.h <<_ACEOF
15687 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15694 for ac_header in maillock.h
15696 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15697 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15698 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15699 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15700 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15701 echo $ECHO_N "(cached
) $ECHO_C" >&6
15703 ac_res=`eval echo '${'$as_ac_Header'}'`
15704 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15705 echo "${ECHO_T}$ac_res" >&6; }
15707 # Is the header compilable?
15708 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15709 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15710 cat >conftest.$ac_ext <<_ACEOF
15713 cat confdefs.h >>conftest.$ac_ext
15714 cat >>conftest.$ac_ext <<_ACEOF
15715 /* end confdefs.h. */
15716 $ac_includes_default
15717 #include <$ac_header>
15719 rm -f conftest.$ac_objext
15720 if { (ac_try="$ac_compile"
15721 case "(($ac_try" in
15722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15723 *) ac_try_echo=$ac_try;;
15725 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15726 (eval "$ac_compile") 2>conftest.er1
15728 grep -v '^ *+' conftest.er1 >conftest.err
15730 cat conftest.err >&5
15731 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15732 (exit $ac_status); } && {
15733 test -z "$ac_c_werror_flag" ||
15734 test ! -s conftest.err
15735 } && test -s conftest.$ac_objext; then
15736 ac_header_compiler=yes
15738 echo "$as_me: failed program was
:" >&5
15739 sed 's/^/| /' conftest.$ac_ext >&5
15741 ac_header_compiler=no
15744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15745 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15746 echo "${ECHO_T}$ac_header_compiler" >&6; }
15748 # Is the header present?
15749 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15750 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15751 cat >conftest.$ac_ext <<_ACEOF
15754 cat confdefs.h >>conftest.$ac_ext
15755 cat >>conftest.$ac_ext <<_ACEOF
15756 /* end confdefs.h. */
15757 #include <$ac_header>
15759 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15760 case "(($ac_try" in
15761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15762 *) ac_try_echo=$ac_try;;
15764 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15765 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15767 grep -v '^ *+' conftest.er1 >conftest.err
15769 cat conftest.err >&5
15770 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15771 (exit $ac_status); } >/dev/null && {
15772 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15773 test ! -s conftest.err
15775 ac_header_preproc=yes
15777 echo "$as_me: failed program was
:" >&5
15778 sed 's/^/| /' conftest.$ac_ext >&5
15780 ac_header_preproc=no
15783 rm -f conftest.err conftest.$ac_ext
15784 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15785 echo "${ECHO_T}$ac_header_preproc" >&6; }
15787 # So? What about this header?
15788 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15790 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15791 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15792 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15793 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15794 ac_header_preproc=yes
15797 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15798 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15799 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15800 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15801 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15802 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15803 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15804 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15805 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15806 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15807 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15808 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15812 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15813 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15814 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15815 echo $ECHO_N "(cached
) $ECHO_C" >&6
15817 eval "$as_ac_Header=\
$ac_header_preproc"
15819 ac_res=`eval echo '${'$as_ac_Header'}'`
15820 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15821 echo "${ECHO_T}$ac_res" >&6; }
15824 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15825 cat >>confdefs.h <<_ACEOF
15826 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15903 for ac_func in gethostname getdomainname dup2 \
15904 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15905 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
15906 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15907 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15908 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15909 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15910 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15911 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15913 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15914 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15915 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15916 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15917 echo $ECHO_N "(cached
) $ECHO_C" >&6
15919 cat >conftest.$ac_ext <<_ACEOF
15922 cat confdefs.h >>conftest.$ac_ext
15923 cat >>conftest.$ac_ext <<_ACEOF
15924 /* end confdefs.h. */
15925 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15926 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15927 #define $ac_func innocuous_$ac_func
15929 /* System header to define __stub macros and hopefully few prototypes,
15930 which can conflict with char $ac_func (); below.
15931 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15932 <limits.h> exists even on freestanding compilers. */
15935 # include <limits.h>
15937 # include <assert.h>
15942 /* Override any GCC internal prototype to avoid an error.
15943 Use char because int might match the return type of a GCC
15944 builtin and then its argument prototype would still apply. */
15949 /* The GNU C library defines this for functions which it implements
15950 to always fail with ENOSYS. Some functions are actually named
15951 something starting with __ and the normal name is an alias. */
15952 #if defined __stub_$ac_func || defined __stub___$ac_func
15959 return $ac_func ();
15964 rm -f conftest.$ac_objext conftest$ac_exeext
15965 if { (ac_try="$ac_link"
15966 case "(($ac_try" in
15967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15968 *) ac_try_echo=$ac_try;;
15970 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15971 (eval "$ac_link") 2>conftest.er1
15973 grep -v '^ *+' conftest.er1 >conftest.err
15975 cat conftest.err >&5
15976 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15977 (exit $ac_status); } && {
15978 test -z "$ac_c_werror_flag" ||
15979 test ! -s conftest.err
15980 } && test -s conftest$ac_exeext &&
15981 $as_test_x conftest$ac_exeext; then
15982 eval "$as_ac_var=yes"
15984 echo "$as_me: failed program was
:" >&5
15985 sed 's/^/| /' conftest.$ac_ext >&5
15987 eval "$as_ac_var=no
"
15990 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15991 conftest$ac_exeext conftest.$ac_ext
15993 ac_res=`eval echo '${'$as_ac_var'}'`
15994 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15995 echo "${ECHO_T}$ac_res" >&6; }
15996 if test `eval echo '${'$as_ac_var'}'` = yes; then
15997 cat >>confdefs.h <<_ACEOF
15998 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16006 for ac_header in sys/un.h
16008 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16009 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16010 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16011 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16012 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16013 echo $ECHO_N "(cached
) $ECHO_C" >&6
16015 ac_res=`eval echo '${'$as_ac_Header'}'`
16016 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16017 echo "${ECHO_T}$ac_res" >&6; }
16019 # Is the header compilable?
16020 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16021 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16022 cat >conftest.$ac_ext <<_ACEOF
16025 cat confdefs.h >>conftest.$ac_ext
16026 cat >>conftest.$ac_ext <<_ACEOF
16027 /* end confdefs.h. */
16028 $ac_includes_default
16029 #include <$ac_header>
16031 rm -f conftest.$ac_objext
16032 if { (ac_try="$ac_compile"
16033 case "(($ac_try" in
16034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16035 *) ac_try_echo=$ac_try;;
16037 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16038 (eval "$ac_compile") 2>conftest.er1
16040 grep -v '^ *+' conftest.er1 >conftest.err
16042 cat conftest.err >&5
16043 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16044 (exit $ac_status); } && {
16045 test -z "$ac_c_werror_flag" ||
16046 test ! -s conftest.err
16047 } && test -s conftest.$ac_objext; then
16048 ac_header_compiler=yes
16050 echo "$as_me: failed program was
:" >&5
16051 sed 's/^/| /' conftest.$ac_ext >&5
16053 ac_header_compiler=no
16056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16057 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16058 echo "${ECHO_T}$ac_header_compiler" >&6; }
16060 # Is the header present?
16061 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16062 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16063 cat >conftest.$ac_ext <<_ACEOF
16066 cat confdefs.h >>conftest.$ac_ext
16067 cat >>conftest.$ac_ext <<_ACEOF
16068 /* end confdefs.h. */
16069 #include <$ac_header>
16071 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16072 case "(($ac_try" in
16073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16074 *) ac_try_echo=$ac_try;;
16076 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16077 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16079 grep -v '^ *+' conftest.er1 >conftest.err
16081 cat conftest.err >&5
16082 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16083 (exit $ac_status); } >/dev/null && {
16084 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16085 test ! -s conftest.err
16087 ac_header_preproc=yes
16089 echo "$as_me: failed program was
:" >&5
16090 sed 's/^/| /' conftest.$ac_ext >&5
16092 ac_header_preproc=no
16095 rm -f conftest.err conftest.$ac_ext
16096 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16097 echo "${ECHO_T}$ac_header_preproc" >&6; }
16099 # So? What about this header?
16100 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16102 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16103 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16104 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16105 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16106 ac_header_preproc=yes
16109 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16110 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16111 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16112 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16113 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16114 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16115 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16116 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16117 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16118 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16119 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16120 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16124 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16125 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16126 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16127 echo $ECHO_N "(cached
) $ECHO_C" >&6
16129 eval "$as_ac_Header=\
$ac_header_preproc"
16131 ac_res=`eval echo '${'$as_ac_Header'}'`
16132 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16133 echo "${ECHO_T}$ac_res" >&6; }
16136 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16137 cat >>confdefs.h <<_ACEOF
16138 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16150 for ac_header in $ac_header_list
16152 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16153 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16154 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16155 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16156 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16157 echo $ECHO_N "(cached
) $ECHO_C" >&6
16159 ac_res=`eval echo '${'$as_ac_Header'}'`
16160 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16161 echo "${ECHO_T}$ac_res" >&6; }
16163 # Is the header compilable?
16164 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16165 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16166 cat >conftest.$ac_ext <<_ACEOF
16169 cat confdefs.h >>conftest.$ac_ext
16170 cat >>conftest.$ac_ext <<_ACEOF
16171 /* end confdefs.h. */
16172 $ac_includes_default
16173 #include <$ac_header>
16175 rm -f conftest.$ac_objext
16176 if { (ac_try="$ac_compile"
16177 case "(($ac_try" in
16178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16179 *) ac_try_echo=$ac_try;;
16181 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16182 (eval "$ac_compile") 2>conftest.er1
16184 grep -v '^ *+' conftest.er1 >conftest.err
16186 cat conftest.err >&5
16187 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16188 (exit $ac_status); } && {
16189 test -z "$ac_c_werror_flag" ||
16190 test ! -s conftest.err
16191 } && test -s conftest.$ac_objext; then
16192 ac_header_compiler=yes
16194 echo "$as_me: failed program was
:" >&5
16195 sed 's/^/| /' conftest.$ac_ext >&5
16197 ac_header_compiler=no
16200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16201 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16202 echo "${ECHO_T}$ac_header_compiler" >&6; }
16204 # Is the header present?
16205 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16206 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16207 cat >conftest.$ac_ext <<_ACEOF
16210 cat confdefs.h >>conftest.$ac_ext
16211 cat >>conftest.$ac_ext <<_ACEOF
16212 /* end confdefs.h. */
16213 #include <$ac_header>
16215 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16216 case "(($ac_try" in
16217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16218 *) ac_try_echo=$ac_try;;
16220 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16221 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16223 grep -v '^ *+' conftest.er1 >conftest.err
16225 cat conftest.err >&5
16226 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16227 (exit $ac_status); } >/dev/null && {
16228 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16229 test ! -s conftest.err
16231 ac_header_preproc=yes
16233 echo "$as_me: failed program was
:" >&5
16234 sed 's/^/| /' conftest.$ac_ext >&5
16236 ac_header_preproc=no
16239 rm -f conftest.err conftest.$ac_ext
16240 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16241 echo "${ECHO_T}$ac_header_preproc" >&6; }
16243 # So? What about this header?
16244 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16246 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16247 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16248 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16249 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16250 ac_header_preproc=yes
16253 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16254 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16255 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16256 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16257 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16258 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16259 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16260 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16261 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16262 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16263 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16264 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16268 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16269 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16270 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16271 echo $ECHO_N "(cached
) $ECHO_C" >&6
16273 eval "$as_ac_Header=\
$ac_header_preproc"
16275 ac_res=`eval echo '${'$as_ac_Header'}'`
16276 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16277 echo "${ECHO_T}$ac_res" >&6; }
16280 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16281 cat >>confdefs.h <<_ACEOF
16282 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16297 for ac_func in $ac_func_list
16299 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16300 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16301 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16302 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16303 echo $ECHO_N "(cached
) $ECHO_C" >&6
16305 cat >conftest.$ac_ext <<_ACEOF
16308 cat confdefs.h >>conftest.$ac_ext
16309 cat >>conftest.$ac_ext <<_ACEOF
16310 /* end confdefs.h. */
16311 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16312 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16313 #define $ac_func innocuous_$ac_func
16315 /* System header to define __stub macros and hopefully few prototypes,
16316 which can conflict with char $ac_func (); below.
16317 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16318 <limits.h> exists even on freestanding compilers. */
16321 # include <limits.h>
16323 # include <assert.h>
16328 /* Override any GCC internal prototype to avoid an error.
16329 Use char because int might match the return type of a GCC
16330 builtin and then its argument prototype would still apply. */
16335 /* The GNU C library defines this for functions which it implements
16336 to always fail with ENOSYS. Some functions are actually named
16337 something starting with __ and the normal name is an alias. */
16338 #if defined __stub_$ac_func || defined __stub___$ac_func
16345 return $ac_func ();
16350 rm -f conftest.$ac_objext conftest$ac_exeext
16351 if { (ac_try="$ac_link"
16352 case "(($ac_try" in
16353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16354 *) ac_try_echo=$ac_try;;
16356 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16357 (eval "$ac_link") 2>conftest.er1
16359 grep -v '^ *+' conftest.er1 >conftest.err
16361 cat conftest.err >&5
16362 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16363 (exit $ac_status); } && {
16364 test -z "$ac_c_werror_flag" ||
16365 test ! -s conftest.err
16366 } && test -s conftest$ac_exeext &&
16367 $as_test_x conftest$ac_exeext; then
16368 eval "$as_ac_var=yes"
16370 echo "$as_me: failed program was
:" >&5
16371 sed 's/^/| /' conftest.$ac_ext >&5
16373 eval "$as_ac_var=no
"
16376 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16377 conftest$ac_exeext conftest.$ac_ext
16379 ac_res=`eval echo '${'$as_ac_var'}'`
16380 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16381 echo "${ECHO_T}$ac_res" >&6; }
16382 if test `eval echo '${'$as_ac_var'}'` = yes; then
16383 cat >>confdefs.h <<_ACEOF
16384 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16406 { echo "$as_me:$LINENO: checking
for working mktime
" >&5
16407 echo $ECHO_N "checking
for working mktime...
$ECHO_C" >&6; }
16408 if test "${ac_cv_func_working_mktime+set}" = set; then
16409 echo $ECHO_N "(cached
) $ECHO_C" >&6
16411 if test "$cross_compiling" = yes; then
16412 ac_cv_func_working_mktime=no
16414 cat >conftest.$ac_ext <<_ACEOF
16417 cat confdefs.h >>conftest.$ac_ext
16418 cat >>conftest.$ac_ext <<_ACEOF
16419 /* end confdefs.h. */
16420 /* Test program from Paul Eggert and Tony Leneis. */
16421 #ifdef TIME_WITH_SYS_TIME
16422 # include <sys/time.h>
16425 # ifdef HAVE_SYS_TIME_H
16426 # include <sys/time.h>
16432 #include <stdlib.h>
16434 #ifdef HAVE_UNISTD_H
16435 # include <unistd.h>
16439 # define alarm(X) /* empty */
16442 /* Work around redefinition to rpl_putenv by other config tests. */
16445 static time_t time_t_max;
16446 static time_t time_t_min;
16448 /* Values we'll use to set the TZ environment variable. */
16449 static char *tz_strings[] = {
16450 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
16451 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
16453 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16455 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16456 Based on a problem report from Andreas Jaeger. */
16458 spring_forward_gap ()
16460 /* glibc (up to about 1998-10-07) failed this test. */
16463 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16464 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16465 on systems that don't support the Olson extension, or don't have the
16466 full zoneinfo tables installed. */
16467 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16476 return mktime (&tm) != (time_t) -1;
16484 return ! (lt = localtime (&now)) || mktime (lt) == now;
16491 return (mktime_test1 (now)
16492 && mktime_test1 ((time_t) (time_t_max - now))
16493 && mktime_test1 ((time_t) (time_t_min + now)));
16499 /* Based on code from Ariel Faigon. */
16509 return tm.tm_mon == 2 && tm.tm_mday == 31;
16518 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16519 now = mktime (&tm);
16520 if (now != (time_t) -1)
16522 struct tm *lt = localtime (&now);
16524 && lt->tm_year == tm.tm_year
16525 && lt->tm_mon == tm.tm_mon
16526 && lt->tm_mday == tm.tm_mday
16527 && lt->tm_hour == tm.tm_hour
16528 && lt->tm_min == tm.tm_min
16529 && lt->tm_sec == tm.tm_sec
16530 && lt->tm_yday == tm.tm_yday
16531 && lt->tm_wday == tm.tm_wday
16532 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16533 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16542 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16543 ignoring leap seconds. */
16544 unsigned long int answer = 2527315200UL;
16548 tm.tm_year = 2050 - 1900;
16551 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16554 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16555 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16556 on systems that don't support the Olson extension, or don't have the
16557 full zoneinfo tables installed. */
16558 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16562 /* Check that the result is either a failure, or close enough
16563 to the correct answer that we can assume the discrepancy is
16564 due to leap seconds. */
16565 return (t == (time_t) -1
16566 || (0 < t && answer - 120 <= t && t <= answer + 120));
16575 /* This test makes some buggy mktime implementations loop.
16576 Give up after 60 seconds; a mktime slower than that
16577 isn't worth using anyway. */
16580 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16583 if ((time_t) -1 < 0)
16584 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16586 delta = time_t_max / 997; /* a suitable prime number */
16587 for (i = 0; i < N_STRINGS; i++)
16590 putenv (tz_strings[i]);
16592 for (t = 0; t <= time_t_max - delta; t += delta)
16593 if (! mktime_test (t))
16595 if (! (mktime_test ((time_t) 1)
16596 && mktime_test ((time_t) (60 * 60))
16597 && mktime_test ((time_t) (60 * 60 * 24))))
16600 for (j = 1; 0 < j; j *= 2)
16601 if (! bigtime_test (j))
16603 if (! bigtime_test (j - 1))
16606 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16609 rm -f conftest$ac_exeext
16610 if { (ac_try="$ac_link"
16611 case "(($ac_try" in
16612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16613 *) ac_try_echo=$ac_try;;
16615 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16616 (eval "$ac_link") 2>&5
16618 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16619 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16620 { (case "(($ac_try" in
16621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16622 *) ac_try_echo=$ac_try;;
16624 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16625 (eval "$ac_try") 2>&5
16627 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16628 (exit $ac_status); }; }; then
16629 ac_cv_func_working_mktime=yes
16631 echo "$as_me: program exited with status
$ac_status" >&5
16632 echo "$as_me: failed program was
:" >&5
16633 sed 's/^/| /' conftest.$ac_ext >&5
16635 ( exit $ac_status )
16636 ac_cv_func_working_mktime=no
16638 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16643 { echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
16644 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16645 if test $ac_cv_func_working_mktime = no; then
16646 case " $LIBOBJS " in
16647 *" mktime.
$ac_objext "* ) ;;
16648 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
16654 if test "$ac_cv_func_working_mktime" = no; then
16656 cat >>confdefs.h <<\_ACEOF
16657 #define BROKEN_MKTIME 1
16662 ac_have_func=no # yes means we've found a way to get the load average.
16664 # Make sure getloadavg.c is where it belongs, at configure-time.
16665 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
16666 { { echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
16667 echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
16668 { (exit 1); exit 1; }; }
16672 # Check for getloadavg, but be sure not to touch the cache variable.
16673 ({ echo "$as_me:$LINENO: checking
for getloadavg
" >&5
16674 echo $ECHO_N "checking
for getloadavg...
$ECHO_C" >&6; }
16675 if test "${ac_cv_func_getloadavg+set}" = set; then
16676 echo $ECHO_N "(cached
) $ECHO_C" >&6
16678 cat >conftest.$ac_ext <<_ACEOF
16681 cat confdefs.h >>conftest.$ac_ext
16682 cat >>conftest.$ac_ext <<_ACEOF
16683 /* end confdefs.h. */
16684 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16685 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16686 #define getloadavg innocuous_getloadavg
16688 /* System header to define __stub macros and hopefully few prototypes,
16689 which can conflict with char getloadavg (); below.
16690 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16691 <limits.h> exists even on freestanding compilers. */
16694 # include <limits.h>
16696 # include <assert.h>
16701 /* Override any GCC internal prototype to avoid an error.
16702 Use char because int might match the return type of a GCC
16703 builtin and then its argument prototype would still apply. */
16707 char getloadavg ();
16708 /* The GNU C library defines this for functions which it implements
16709 to always fail with ENOSYS. Some functions are actually named
16710 something starting with __ and the normal name is an alias. */
16711 #if defined __stub_getloadavg || defined __stub___getloadavg
16718 return getloadavg ();
16723 rm -f conftest.$ac_objext conftest$ac_exeext
16724 if { (ac_try="$ac_link"
16725 case "(($ac_try" in
16726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16727 *) ac_try_echo=$ac_try;;
16729 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16730 (eval "$ac_link") 2>conftest.er1
16732 grep -v '^ *+' conftest.er1 >conftest.err
16734 cat conftest.err >&5
16735 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16736 (exit $ac_status); } && {
16737 test -z "$ac_c_werror_flag" ||
16738 test ! -s conftest.err
16739 } && test -s conftest$ac_exeext &&
16740 $as_test_x conftest$ac_exeext; then
16741 ac_cv_func_getloadavg=yes
16743 echo "$as_me: failed program was
:" >&5
16744 sed 's/^/| /' conftest.$ac_ext >&5
16746 ac_cv_func_getloadavg=no
16749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16750 conftest$ac_exeext conftest.$ac_ext
16752 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
16753 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16754 if test $ac_cv_func_getloadavg = yes; then
16759 ) && ac_have_func=yes
16761 # On HPUX9, an unprivileged user can get load averages through this function.
16763 for ac_func in pstat_getdynamic
16765 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16766 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16767 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16768 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16769 echo $ECHO_N "(cached
) $ECHO_C" >&6
16771 cat >conftest.$ac_ext <<_ACEOF
16774 cat confdefs.h >>conftest.$ac_ext
16775 cat >>conftest.$ac_ext <<_ACEOF
16776 /* end confdefs.h. */
16777 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16778 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16779 #define $ac_func innocuous_$ac_func
16781 /* System header to define __stub macros and hopefully few prototypes,
16782 which can conflict with char $ac_func (); below.
16783 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16784 <limits.h> exists even on freestanding compilers. */
16787 # include <limits.h>
16789 # include <assert.h>
16794 /* Override any GCC internal prototype to avoid an error.
16795 Use char because int might match the return type of a GCC
16796 builtin and then its argument prototype would still apply. */
16801 /* The GNU C library defines this for functions which it implements
16802 to always fail with ENOSYS. Some functions are actually named
16803 something starting with __ and the normal name is an alias. */
16804 #if defined __stub_$ac_func || defined __stub___$ac_func
16811 return $ac_func ();
16816 rm -f conftest.$ac_objext conftest$ac_exeext
16817 if { (ac_try="$ac_link"
16818 case "(($ac_try" in
16819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16820 *) ac_try_echo=$ac_try;;
16822 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16823 (eval "$ac_link") 2>conftest.er1
16825 grep -v '^ *+' conftest.er1 >conftest.err
16827 cat conftest.err >&5
16828 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16829 (exit $ac_status); } && {
16830 test -z "$ac_c_werror_flag" ||
16831 test ! -s conftest.err
16832 } && test -s conftest$ac_exeext &&
16833 $as_test_x conftest$ac_exeext; then
16834 eval "$as_ac_var=yes"
16836 echo "$as_me: failed program was
:" >&5
16837 sed 's/^/| /' conftest.$ac_ext >&5
16839 eval "$as_ac_var=no
"
16842 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16843 conftest$ac_exeext conftest.$ac_ext
16845 ac_res=`eval echo '${'$as_ac_var'}'`
16846 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16847 echo "${ECHO_T}$ac_res" >&6; }
16848 if test `eval echo '${'$as_ac_var'}'` = yes; then
16849 cat >>confdefs.h <<_ACEOF
16850 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16857 # Solaris has libkstat which does not require root.
16859 { echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
16860 echo $ECHO_N "checking
for kstat_open
in -lkstat...
$ECHO_C" >&6; }
16861 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16862 echo $ECHO_N "(cached
) $ECHO_C" >&6
16864 ac_check_lib_save_LIBS=$LIBS
16865 LIBS="-lkstat $LIBS"
16866 cat >conftest.$ac_ext <<_ACEOF
16869 cat confdefs.h >>conftest.$ac_ext
16870 cat >>conftest.$ac_ext <<_ACEOF
16871 /* end confdefs.h. */
16873 /* Override any GCC internal prototype to avoid an error.
16874 Use char because int might match the return type of a GCC
16875 builtin and then its argument prototype would still apply. */
16879 char kstat_open ();
16883 return kstat_open ();
16888 rm -f conftest.$ac_objext conftest$ac_exeext
16889 if { (ac_try="$ac_link"
16890 case "(($ac_try" in
16891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16892 *) ac_try_echo=$ac_try;;
16894 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16895 (eval "$ac_link") 2>conftest.er1
16897 grep -v '^ *+' conftest.er1 >conftest.err
16899 cat conftest.err >&5
16900 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16901 (exit $ac_status); } && {
16902 test -z "$ac_c_werror_flag" ||
16903 test ! -s conftest.err
16904 } && test -s conftest$ac_exeext &&
16905 $as_test_x conftest$ac_exeext; then
16906 ac_cv_lib_kstat_kstat_open=yes
16908 echo "$as_me: failed program was
:" >&5
16909 sed 's/^/| /' conftest.$ac_ext >&5
16911 ac_cv_lib_kstat_kstat_open=no
16914 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16915 conftest$ac_exeext conftest.$ac_ext
16916 LIBS=$ac_check_lib_save_LIBS
16918 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
16919 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16920 if test $ac_cv_lib_kstat_kstat_open = yes; then
16921 cat >>confdefs.h <<_ACEOF
16922 #define HAVE_LIBKSTAT 1
16925 LIBS="-lkstat $LIBS"
16929 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
16931 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16932 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16933 # to get the right answer into the cache.
16934 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16935 if test $ac_have_func = no; then
16936 { echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
16937 echo $ECHO_N "checking
for elf_begin
in -lelf...
$ECHO_C" >&6; }
16938 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
16939 echo $ECHO_N "(cached
) $ECHO_C" >&6
16941 ac_check_lib_save_LIBS=$LIBS
16943 cat >conftest.$ac_ext <<_ACEOF
16946 cat confdefs.h >>conftest.$ac_ext
16947 cat >>conftest.$ac_ext <<_ACEOF
16948 /* end confdefs.h. */
16950 /* Override any GCC internal prototype to avoid an error.
16951 Use char because int might match the return type of a GCC
16952 builtin and then its argument prototype would still apply. */
16960 return elf_begin ();
16965 rm -f conftest.$ac_objext conftest$ac_exeext
16966 if { (ac_try="$ac_link"
16967 case "(($ac_try" in
16968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16969 *) ac_try_echo=$ac_try;;
16971 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16972 (eval "$ac_link") 2>conftest.er1
16974 grep -v '^ *+' conftest.er1 >conftest.err
16976 cat conftest.err >&5
16977 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16978 (exit $ac_status); } && {
16979 test -z "$ac_c_werror_flag" ||
16980 test ! -s conftest.err
16981 } && test -s conftest$ac_exeext &&
16982 $as_test_x conftest$ac_exeext; then
16983 ac_cv_lib_elf_elf_begin=yes
16985 echo "$as_me: failed program was
:" >&5
16986 sed 's/^/| /' conftest.$ac_ext >&5
16988 ac_cv_lib_elf_elf_begin=no
16991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16992 conftest$ac_exeext conftest.$ac_ext
16993 LIBS=$ac_check_lib_save_LIBS
16995 { echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
16996 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
16997 if test $ac_cv_lib_elf_elf_begin = yes; then
17002 if test $ac_have_func = no; then
17003 { echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
17004 echo $ECHO_N "checking
for kvm_open
in -lkvm...
$ECHO_C" >&6; }
17005 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17006 echo $ECHO_N "(cached
) $ECHO_C" >&6
17008 ac_check_lib_save_LIBS=$LIBS
17010 cat >conftest.$ac_ext <<_ACEOF
17013 cat confdefs.h >>conftest.$ac_ext
17014 cat >>conftest.$ac_ext <<_ACEOF
17015 /* end confdefs.h. */
17017 /* Override any GCC internal prototype to avoid an error.
17018 Use char because int might match the return type of a GCC
17019 builtin and then its argument prototype would still apply. */
17027 return kvm_open ();
17032 rm -f conftest.$ac_objext conftest$ac_exeext
17033 if { (ac_try="$ac_link"
17034 case "(($ac_try" in
17035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17036 *) ac_try_echo=$ac_try;;
17038 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17039 (eval "$ac_link") 2>conftest.er1
17041 grep -v '^ *+' conftest.er1 >conftest.err
17043 cat conftest.err >&5
17044 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17045 (exit $ac_status); } && {
17046 test -z "$ac_c_werror_flag" ||
17047 test ! -s conftest.err
17048 } && test -s conftest$ac_exeext &&
17049 $as_test_x conftest$ac_exeext; then
17050 ac_cv_lib_kvm_kvm_open=yes
17052 echo "$as_me: failed program was
:" >&5
17053 sed 's/^/| /' conftest.$ac_ext >&5
17055 ac_cv_lib_kvm_kvm_open=no
17058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17059 conftest$ac_exeext conftest.$ac_ext
17060 LIBS=$ac_check_lib_save_LIBS
17062 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
17063 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17064 if test $ac_cv_lib_kvm_kvm_open = yes; then
17068 # Check for the 4.4BSD definition of getloadavg.
17069 { echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
17070 echo $ECHO_N "checking
for getloadavg
in -lutil...
$ECHO_C" >&6; }
17071 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17072 echo $ECHO_N "(cached
) $ECHO_C" >&6
17074 ac_check_lib_save_LIBS=$LIBS
17075 LIBS="-lutil $LIBS"
17076 cat >conftest.$ac_ext <<_ACEOF
17079 cat confdefs.h >>conftest.$ac_ext
17080 cat >>conftest.$ac_ext <<_ACEOF
17081 /* end confdefs.h. */
17083 /* Override any GCC internal prototype to avoid an error.
17084 Use char because int might match the return type of a GCC
17085 builtin and then its argument prototype would still apply. */
17089 char getloadavg ();
17093 return getloadavg ();
17098 rm -f conftest.$ac_objext conftest$ac_exeext
17099 if { (ac_try="$ac_link"
17100 case "(($ac_try" in
17101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17102 *) ac_try_echo=$ac_try;;
17104 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17105 (eval "$ac_link") 2>conftest.er1
17107 grep -v '^ *+' conftest.er1 >conftest.err
17109 cat conftest.err >&5
17110 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17111 (exit $ac_status); } && {
17112 test -z "$ac_c_werror_flag" ||
17113 test ! -s conftest.err
17114 } && test -s conftest$ac_exeext &&
17115 $as_test_x conftest$ac_exeext; then
17116 ac_cv_lib_util_getloadavg=yes
17118 echo "$as_me: failed program was
:" >&5
17119 sed 's/^/| /' conftest.$ac_ext >&5
17121 ac_cv_lib_util_getloadavg=no
17124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17125 conftest$ac_exeext conftest.$ac_ext
17126 LIBS=$ac_check_lib_save_LIBS
17128 { echo "$as_me:$LINENO: result
: $ac_cv_lib_util_getloadavg" >&5
17129 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17130 if test $ac_cv_lib_util_getloadavg = yes; then
17131 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17136 if test $ac_have_func = no; then
17137 # There is a commonly available library for RS/6000 AIX.
17138 # Since it is not a standard part of AIX, it might be installed locally.
17139 ac_getloadavg_LIBS=$LIBS
17140 LIBS="-L/usr
/local
/lib
$LIBS"
17141 { echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
17142 echo $ECHO_N "checking
for getloadavg
in -lgetloadavg...
$ECHO_C" >&6; }
17143 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17144 echo $ECHO_N "(cached
) $ECHO_C" >&6
17146 ac_check_lib_save_LIBS=$LIBS
17147 LIBS="-lgetloadavg $LIBS"
17148 cat >conftest.$ac_ext <<_ACEOF
17151 cat confdefs.h >>conftest.$ac_ext
17152 cat >>conftest.$ac_ext <<_ACEOF
17153 /* end confdefs.h. */
17155 /* Override any GCC internal prototype to avoid an error.
17156 Use char because int might match the return type of a GCC
17157 builtin and then its argument prototype would still apply. */
17161 char getloadavg ();
17165 return getloadavg ();
17170 rm -f conftest.$ac_objext conftest$ac_exeext
17171 if { (ac_try="$ac_link"
17172 case "(($ac_try" in
17173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17174 *) ac_try_echo=$ac_try;;
17176 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17177 (eval "$ac_link") 2>conftest.er1
17179 grep -v '^ *+' conftest.er1 >conftest.err
17181 cat conftest.err >&5
17182 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17183 (exit $ac_status); } && {
17184 test -z "$ac_c_werror_flag" ||
17185 test ! -s conftest.err
17186 } && test -s conftest$ac_exeext &&
17187 $as_test_x conftest$ac_exeext; then
17188 ac_cv_lib_getloadavg_getloadavg=yes
17190 echo "$as_me: failed program was
:" >&5
17191 sed 's/^/| /' conftest.$ac_ext >&5
17193 ac_cv_lib_getloadavg_getloadavg=no
17196 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17197 conftest$ac_exeext conftest.$ac_ext
17198 LIBS=$ac_check_lib_save_LIBS
17200 { echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
17201 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17202 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17203 LIBS="-lgetloadavg $LIBS"
17205 LIBS=$ac_getloadavg_LIBS
17210 # Make sure it is really in the library, if we think we found it,
17211 # otherwise set up the replacement function.
17213 for ac_func in getloadavg
17215 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17216 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17217 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17218 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17219 echo $ECHO_N "(cached
) $ECHO_C" >&6
17221 cat >conftest.$ac_ext <<_ACEOF
17224 cat confdefs.h >>conftest.$ac_ext
17225 cat >>conftest.$ac_ext <<_ACEOF
17226 /* end confdefs.h. */
17227 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17228 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17229 #define $ac_func innocuous_$ac_func
17231 /* System header to define __stub macros and hopefully few prototypes,
17232 which can conflict with char $ac_func (); below.
17233 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17234 <limits.h> exists even on freestanding compilers. */
17237 # include <limits.h>
17239 # include <assert.h>
17244 /* Override any GCC internal prototype to avoid an error.
17245 Use char because int might match the return type of a GCC
17246 builtin and then its argument prototype would still apply. */
17251 /* The GNU C library defines this for functions which it implements
17252 to always fail with ENOSYS. Some functions are actually named
17253 something starting with __ and the normal name is an alias. */
17254 #if defined __stub_$ac_func || defined __stub___$ac_func
17261 return $ac_func ();
17266 rm -f conftest.$ac_objext conftest$ac_exeext
17267 if { (ac_try="$ac_link"
17268 case "(($ac_try" in
17269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17270 *) ac_try_echo=$ac_try;;
17272 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17273 (eval "$ac_link") 2>conftest.er1
17275 grep -v '^ *+' conftest.er1 >conftest.err
17277 cat conftest.err >&5
17278 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17279 (exit $ac_status); } && {
17280 test -z "$ac_c_werror_flag" ||
17281 test ! -s conftest.err
17282 } && test -s conftest$ac_exeext &&
17283 $as_test_x conftest$ac_exeext; then
17284 eval "$as_ac_var=yes"
17286 echo "$as_me: failed program was
:" >&5
17287 sed 's/^/| /' conftest.$ac_ext >&5
17289 eval "$as_ac_var=no
"
17292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17293 conftest$ac_exeext conftest.$ac_ext
17295 ac_res=`eval echo '${'$as_ac_var'}'`
17296 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17297 echo "${ECHO_T}$ac_res" >&6; }
17298 if test `eval echo '${'$as_ac_var'}'` = yes; then
17299 cat >>confdefs.h <<_ACEOF
17300 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17304 case " $LIBOBJS " in
17305 *" getloadavg.
$ac_objext "* ) ;;
17306 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
17311 cat >>confdefs.h <<\_ACEOF
17312 #define C_GETLOADAVG 1
17315 # Figure out what our getloadavg.c needs.
17317 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17318 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17319 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17320 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17321 echo $ECHO_N "(cached
) $ECHO_C" >&6
17323 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17324 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17326 # Is the header compilable?
17327 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
17328 echo $ECHO_N "checking sys
/dg_sys_info.h usability...
$ECHO_C" >&6; }
17329 cat >conftest.$ac_ext <<_ACEOF
17332 cat confdefs.h >>conftest.$ac_ext
17333 cat >>conftest.$ac_ext <<_ACEOF
17334 /* end confdefs.h. */
17335 $ac_includes_default
17336 #include <sys/dg_sys_info.h>
17338 rm -f conftest.$ac_objext
17339 if { (ac_try="$ac_compile"
17340 case "(($ac_try" in
17341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17342 *) ac_try_echo=$ac_try;;
17344 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17345 (eval "$ac_compile") 2>conftest.er1
17347 grep -v '^ *+' conftest.er1 >conftest.err
17349 cat conftest.err >&5
17350 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17351 (exit $ac_status); } && {
17352 test -z "$ac_c_werror_flag" ||
17353 test ! -s conftest.err
17354 } && test -s conftest.$ac_objext; then
17355 ac_header_compiler=yes
17357 echo "$as_me: failed program was
:" >&5
17358 sed 's/^/| /' conftest.$ac_ext >&5
17360 ac_header_compiler=no
17363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17364 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17365 echo "${ECHO_T}$ac_header_compiler" >&6; }
17367 # Is the header present?
17368 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
17369 echo $ECHO_N "checking sys
/dg_sys_info.h presence...
$ECHO_C" >&6; }
17370 cat >conftest.$ac_ext <<_ACEOF
17373 cat confdefs.h >>conftest.$ac_ext
17374 cat >>conftest.$ac_ext <<_ACEOF
17375 /* end confdefs.h. */
17376 #include <sys/dg_sys_info.h>
17378 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17379 case "(($ac_try" in
17380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17381 *) ac_try_echo=$ac_try;;
17383 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17384 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17386 grep -v '^ *+' conftest.er1 >conftest.err
17388 cat conftest.err >&5
17389 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17390 (exit $ac_status); } >/dev/null && {
17391 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17392 test ! -s conftest.err
17394 ac_header_preproc=yes
17396 echo "$as_me: failed program was
:" >&5
17397 sed 's/^/| /' conftest.$ac_ext >&5
17399 ac_header_preproc=no
17402 rm -f conftest.err conftest.$ac_ext
17403 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17404 echo "${ECHO_T}$ac_header_preproc" >&6; }
17406 # So? What about this header?
17407 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17409 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17410 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17411 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
17412 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
17413 ac_header_preproc=yes
17416 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
17417 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
17418 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
17419 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
17420 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
17421 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
17422 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17423 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17424 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
17425 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
17426 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
17427 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
17431 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17432 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17433 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17434 echo $ECHO_N "(cached
) $ECHO_C" >&6
17436 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17438 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17439 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17442 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17445 cat >>confdefs.h <<\_ACEOF
17450 { echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
17451 echo $ECHO_N "checking
for dg_sys_info
in -ldgc...
$ECHO_C" >&6; }
17452 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17453 echo $ECHO_N "(cached
) $ECHO_C" >&6
17455 ac_check_lib_save_LIBS=$LIBS
17457 cat >conftest.$ac_ext <<_ACEOF
17460 cat confdefs.h >>conftest.$ac_ext
17461 cat >>conftest.$ac_ext <<_ACEOF
17462 /* end confdefs.h. */
17464 /* Override any GCC internal prototype to avoid an error.
17465 Use char because int might match the return type of a GCC
17466 builtin and then its argument prototype would still apply. */
17470 char dg_sys_info ();
17474 return dg_sys_info ();
17479 rm -f conftest.$ac_objext conftest$ac_exeext
17480 if { (ac_try="$ac_link"
17481 case "(($ac_try" in
17482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17483 *) ac_try_echo=$ac_try;;
17485 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17486 (eval "$ac_link") 2>conftest.er1
17488 grep -v '^ *+' conftest.er1 >conftest.err
17490 cat conftest.err >&5
17491 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17492 (exit $ac_status); } && {
17493 test -z "$ac_c_werror_flag" ||
17494 test ! -s conftest.err
17495 } && test -s conftest$ac_exeext &&
17496 $as_test_x conftest$ac_exeext; then
17497 ac_cv_lib_dgc_dg_sys_info=yes
17499 echo "$as_me: failed program was
:" >&5
17500 sed 's/^/| /' conftest.$ac_ext >&5
17502 ac_cv_lib_dgc_dg_sys_info=no
17505 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17506 conftest$ac_exeext conftest.$ac_ext
17507 LIBS=$ac_check_lib_save_LIBS
17509 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
17510 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17511 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17512 cat >>confdefs.h <<_ACEOF
17513 #define HAVE_LIBDGC 1
17524 if test "${ac_cv_header_locale_h+set}" = set; then
17525 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17526 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17527 if test "${ac_cv_header_locale_h+set}" = set; then
17528 echo $ECHO_N "(cached
) $ECHO_C" >&6
17530 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17531 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17533 # Is the header compilable?
17534 { echo "$as_me:$LINENO: checking locale.h usability
" >&5
17535 echo $ECHO_N "checking locale.h usability...
$ECHO_C" >&6; }
17536 cat >conftest.$ac_ext <<_ACEOF
17539 cat confdefs.h >>conftest.$ac_ext
17540 cat >>conftest.$ac_ext <<_ACEOF
17541 /* end confdefs.h. */
17542 $ac_includes_default
17543 #include <locale.h>
17545 rm -f conftest.$ac_objext
17546 if { (ac_try="$ac_compile"
17547 case "(($ac_try" in
17548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17549 *) ac_try_echo=$ac_try;;
17551 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17552 (eval "$ac_compile") 2>conftest.er1
17554 grep -v '^ *+' conftest.er1 >conftest.err
17556 cat conftest.err >&5
17557 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17558 (exit $ac_status); } && {
17559 test -z "$ac_c_werror_flag" ||
17560 test ! -s conftest.err
17561 } && test -s conftest.$ac_objext; then
17562 ac_header_compiler=yes
17564 echo "$as_me: failed program was
:" >&5
17565 sed 's/^/| /' conftest.$ac_ext >&5
17567 ac_header_compiler=no
17570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17571 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17572 echo "${ECHO_T}$ac_header_compiler" >&6; }
17574 # Is the header present?
17575 { echo "$as_me:$LINENO: checking locale.h presence
" >&5
17576 echo $ECHO_N "checking locale.h presence...
$ECHO_C" >&6; }
17577 cat >conftest.$ac_ext <<_ACEOF
17580 cat confdefs.h >>conftest.$ac_ext
17581 cat >>conftest.$ac_ext <<_ACEOF
17582 /* end confdefs.h. */
17583 #include <locale.h>
17585 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17586 case "(($ac_try" in
17587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17588 *) ac_try_echo=$ac_try;;
17590 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17591 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17593 grep -v '^ *+' conftest.er1 >conftest.err
17595 cat conftest.err >&5
17596 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17597 (exit $ac_status); } >/dev/null && {
17598 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17599 test ! -s conftest.err
17601 ac_header_preproc=yes
17603 echo "$as_me: failed program was
:" >&5
17604 sed 's/^/| /' conftest.$ac_ext >&5
17606 ac_header_preproc=no
17609 rm -f conftest.err conftest.$ac_ext
17610 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17611 echo "${ECHO_T}$ac_header_preproc" >&6; }
17613 # So? What about this header?
17614 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17616 { echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17617 echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17618 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
17619 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
17620 ac_header_preproc=yes
17623 { echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
17624 echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
17625 { echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
17626 echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
17627 { echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
17628 echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
17629 { echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17630 echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17631 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
17632 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
17633 { echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
17634 echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
17638 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17639 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17640 if test "${ac_cv_header_locale_h+set}" = set; then
17641 echo $ECHO_N "(cached
) $ECHO_C" >&6
17643 ac_cv_header_locale_h=$ac_header_preproc
17645 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17646 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17652 for ac_func in setlocale
17654 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17655 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17656 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17657 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17658 echo $ECHO_N "(cached
) $ECHO_C" >&6
17660 cat >conftest.$ac_ext <<_ACEOF
17663 cat confdefs.h >>conftest.$ac_ext
17664 cat >>conftest.$ac_ext <<_ACEOF
17665 /* end confdefs.h. */
17666 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17667 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17668 #define $ac_func innocuous_$ac_func
17670 /* System header to define __stub macros and hopefully few prototypes,
17671 which can conflict with char $ac_func (); below.
17672 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17673 <limits.h> exists even on freestanding compilers. */
17676 # include <limits.h>
17678 # include <assert.h>
17683 /* Override any GCC internal prototype to avoid an error.
17684 Use char because int might match the return type of a GCC
17685 builtin and then its argument prototype would still apply. */
17690 /* The GNU C library defines this for functions which it implements
17691 to always fail with ENOSYS. Some functions are actually named
17692 something starting with __ and the normal name is an alias. */
17693 #if defined __stub_$ac_func || defined __stub___$ac_func
17700 return $ac_func ();
17705 rm -f conftest.$ac_objext conftest$ac_exeext
17706 if { (ac_try="$ac_link"
17707 case "(($ac_try" in
17708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17709 *) ac_try_echo=$ac_try;;
17711 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17712 (eval "$ac_link") 2>conftest.er1
17714 grep -v '^ *+' conftest.er1 >conftest.err
17716 cat conftest.err >&5
17717 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17718 (exit $ac_status); } && {
17719 test -z "$ac_c_werror_flag" ||
17720 test ! -s conftest.err
17721 } && test -s conftest$ac_exeext &&
17722 $as_test_x conftest$ac_exeext; then
17723 eval "$as_ac_var=yes"
17725 echo "$as_me: failed program was
:" >&5
17726 sed 's/^/| /' conftest.$ac_ext >&5
17728 eval "$as_ac_var=no
"
17731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17732 conftest$ac_exeext conftest.$ac_ext
17734 ac_res=`eval echo '${'$as_ac_var'}'`
17735 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17736 echo "${ECHO_T}$ac_res" >&6; }
17737 if test `eval echo '${'$as_ac_var'}'` = yes; then
17738 cat >>confdefs.h <<_ACEOF
17739 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17746 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17747 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17748 # Irix 4.0.5F has the header but not the library.
17749 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17752 cat >>confdefs.h <<\_ACEOF
17758 if test $ac_have_func = no; then
17759 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17760 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17761 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17762 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17763 echo $ECHO_N "(cached
) $ECHO_C" >&6
17765 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17766 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17768 # Is the header compilable?
17769 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
17770 echo $ECHO_N "checking inq_stats
/cpustats.h usability...
$ECHO_C" >&6; }
17771 cat >conftest.$ac_ext <<_ACEOF
17774 cat confdefs.h >>conftest.$ac_ext
17775 cat >>conftest.$ac_ext <<_ACEOF
17776 /* end confdefs.h. */
17777 $ac_includes_default
17778 #include <inq_stats/cpustats.h>
17780 rm -f conftest.$ac_objext
17781 if { (ac_try="$ac_compile"
17782 case "(($ac_try" in
17783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17784 *) ac_try_echo=$ac_try;;
17786 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17787 (eval "$ac_compile") 2>conftest.er1
17789 grep -v '^ *+' conftest.er1 >conftest.err
17791 cat conftest.err >&5
17792 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17793 (exit $ac_status); } && {
17794 test -z "$ac_c_werror_flag" ||
17795 test ! -s conftest.err
17796 } && test -s conftest.$ac_objext; then
17797 ac_header_compiler=yes
17799 echo "$as_me: failed program was
:" >&5
17800 sed 's/^/| /' conftest.$ac_ext >&5
17802 ac_header_compiler=no
17805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17806 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17807 echo "${ECHO_T}$ac_header_compiler" >&6; }
17809 # Is the header present?
17810 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
17811 echo $ECHO_N "checking inq_stats
/cpustats.h presence...
$ECHO_C" >&6; }
17812 cat >conftest.$ac_ext <<_ACEOF
17815 cat confdefs.h >>conftest.$ac_ext
17816 cat >>conftest.$ac_ext <<_ACEOF
17817 /* end confdefs.h. */
17818 #include <inq_stats/cpustats.h>
17820 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17821 case "(($ac_try" in
17822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17823 *) ac_try_echo=$ac_try;;
17825 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17826 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17828 grep -v '^ *+' conftest.er1 >conftest.err
17830 cat conftest.err >&5
17831 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17832 (exit $ac_status); } >/dev/null && {
17833 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17834 test ! -s conftest.err
17836 ac_header_preproc=yes
17838 echo "$as_me: failed program was
:" >&5
17839 sed 's/^/| /' conftest.$ac_ext >&5
17841 ac_header_preproc=no
17844 rm -f conftest.err conftest.$ac_ext
17845 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17846 echo "${ECHO_T}$ac_header_preproc" >&6; }
17848 # So? What about this header?
17849 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17851 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17852 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17853 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
17854 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
17855 ac_header_preproc=yes
17858 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
17859 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
17860 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
17861 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
17862 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
17863 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
17864 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17865 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17866 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
17867 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
17868 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
17869 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
17873 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17874 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17875 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17876 echo $ECHO_N "(cached
) $ECHO_C" >&6
17878 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17880 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17881 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17884 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17887 cat >>confdefs.h <<\_ACEOF
17892 cat >>confdefs.h <<\_ACEOF
17901 if test $ac_have_func = no; then
17902 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17903 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
17904 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
17905 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17906 echo $ECHO_N "(cached
) $ECHO_C" >&6
17908 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
17909 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17911 # Is the header compilable?
17912 { echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
17913 echo $ECHO_N "checking sys
/cpustats.h usability...
$ECHO_C" >&6; }
17914 cat >conftest.$ac_ext <<_ACEOF
17917 cat confdefs.h >>conftest.$ac_ext
17918 cat >>conftest.$ac_ext <<_ACEOF
17919 /* end confdefs.h. */
17920 $ac_includes_default
17921 #include <sys/cpustats.h>
17923 rm -f conftest.$ac_objext
17924 if { (ac_try="$ac_compile"
17925 case "(($ac_try" in
17926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17927 *) ac_try_echo=$ac_try;;
17929 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17930 (eval "$ac_compile") 2>conftest.er1
17932 grep -v '^ *+' conftest.er1 >conftest.err
17934 cat conftest.err >&5
17935 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17936 (exit $ac_status); } && {
17937 test -z "$ac_c_werror_flag" ||
17938 test ! -s conftest.err
17939 } && test -s conftest.$ac_objext; then
17940 ac_header_compiler=yes
17942 echo "$as_me: failed program was
:" >&5
17943 sed 's/^/| /' conftest.$ac_ext >&5
17945 ac_header_compiler=no
17948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17949 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17950 echo "${ECHO_T}$ac_header_compiler" >&6; }
17952 # Is the header present?
17953 { echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
17954 echo $ECHO_N "checking sys
/cpustats.h presence...
$ECHO_C" >&6; }
17955 cat >conftest.$ac_ext <<_ACEOF
17958 cat confdefs.h >>conftest.$ac_ext
17959 cat >>conftest.$ac_ext <<_ACEOF
17960 /* end confdefs.h. */
17961 #include <sys/cpustats.h>
17963 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17964 case "(($ac_try" in
17965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17966 *) ac_try_echo=$ac_try;;
17968 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17969 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17971 grep -v '^ *+' conftest.er1 >conftest.err
17973 cat conftest.err >&5
17974 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17975 (exit $ac_status); } >/dev/null && {
17976 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17977 test ! -s conftest.err
17979 ac_header_preproc=yes
17981 echo "$as_me: failed program was
:" >&5
17982 sed 's/^/| /' conftest.$ac_ext >&5
17984 ac_header_preproc=no
17987 rm -f conftest.err conftest.$ac_ext
17988 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17989 echo "${ECHO_T}$ac_header_preproc" >&6; }
17991 # So? What about this header?
17992 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17994 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17995 echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17996 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
17997 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
17998 ac_header_preproc=yes
18001 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
18002 echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
18003 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
18004 echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
18005 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
18006 echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
18007 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
18008 echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
18009 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
18010 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
18011 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
18012 echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
18016 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
18017 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
18018 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18019 echo $ECHO_N "(cached
) $ECHO_C" >&6
18021 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18023 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
18024 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18027 if test $ac_cv_header_sys_cpustats_h = yes; then
18028 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18037 if test $ac_have_func = no; then
18039 for ac_header in mach/mach.h
18041 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18042 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18043 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18044 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18045 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18046 echo $ECHO_N "(cached
) $ECHO_C" >&6
18048 ac_res=`eval echo '${'$as_ac_Header'}'`
18049 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18050 echo "${ECHO_T}$ac_res" >&6; }
18052 # Is the header compilable?
18053 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18054 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18055 cat >conftest.$ac_ext <<_ACEOF
18058 cat confdefs.h >>conftest.$ac_ext
18059 cat >>conftest.$ac_ext <<_ACEOF
18060 /* end confdefs.h. */
18061 $ac_includes_default
18062 #include <$ac_header>
18064 rm -f conftest.$ac_objext
18065 if { (ac_try="$ac_compile"
18066 case "(($ac_try" in
18067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18068 *) ac_try_echo=$ac_try;;
18070 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18071 (eval "$ac_compile") 2>conftest.er1
18073 grep -v '^ *+' conftest.er1 >conftest.err
18075 cat conftest.err >&5
18076 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18077 (exit $ac_status); } && {
18078 test -z "$ac_c_werror_flag" ||
18079 test ! -s conftest.err
18080 } && test -s conftest.$ac_objext; then
18081 ac_header_compiler=yes
18083 echo "$as_me: failed program was
:" >&5
18084 sed 's/^/| /' conftest.$ac_ext >&5
18086 ac_header_compiler=no
18089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18090 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18091 echo "${ECHO_T}$ac_header_compiler" >&6; }
18093 # Is the header present?
18094 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18095 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18096 cat >conftest.$ac_ext <<_ACEOF
18099 cat confdefs.h >>conftest.$ac_ext
18100 cat >>conftest.$ac_ext <<_ACEOF
18101 /* end confdefs.h. */
18102 #include <$ac_header>
18104 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18105 case "(($ac_try" in
18106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18107 *) ac_try_echo=$ac_try;;
18109 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18110 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18112 grep -v '^ *+' conftest.er1 >conftest.err
18114 cat conftest.err >&5
18115 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18116 (exit $ac_status); } >/dev/null && {
18117 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18118 test ! -s conftest.err
18120 ac_header_preproc=yes
18122 echo "$as_me: failed program was
:" >&5
18123 sed 's/^/| /' conftest.$ac_ext >&5
18125 ac_header_preproc=no
18128 rm -f conftest.err conftest.$ac_ext
18129 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18130 echo "${ECHO_T}$ac_header_preproc" >&6; }
18132 # So? What about this header?
18133 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18135 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18136 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18137 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18138 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18139 ac_header_preproc=yes
18142 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18143 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18144 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18145 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18146 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18147 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18148 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18149 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18150 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18151 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18152 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18153 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18157 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18158 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18159 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18160 echo $ECHO_N "(cached
) $ECHO_C" >&6
18162 eval "$as_ac_Header=\
$ac_header_preproc"
18164 ac_res=`eval echo '${'$as_ac_Header'}'`
18165 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18166 echo "${ECHO_T}$ac_res" >&6; }
18169 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18170 cat >>confdefs.h <<_ACEOF
18171 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18181 for ac_header in nlist.h
18183 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18184 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18185 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18186 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18187 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18188 echo $ECHO_N "(cached
) $ECHO_C" >&6
18190 ac_res=`eval echo '${'$as_ac_Header'}'`
18191 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18192 echo "${ECHO_T}$ac_res" >&6; }
18194 # Is the header compilable?
18195 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18196 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18197 cat >conftest.$ac_ext <<_ACEOF
18200 cat confdefs.h >>conftest.$ac_ext
18201 cat >>conftest.$ac_ext <<_ACEOF
18202 /* end confdefs.h. */
18203 $ac_includes_default
18204 #include <$ac_header>
18206 rm -f conftest.$ac_objext
18207 if { (ac_try="$ac_compile"
18208 case "(($ac_try" in
18209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18210 *) ac_try_echo=$ac_try;;
18212 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18213 (eval "$ac_compile") 2>conftest.er1
18215 grep -v '^ *+' conftest.er1 >conftest.err
18217 cat conftest.err >&5
18218 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18219 (exit $ac_status); } && {
18220 test -z "$ac_c_werror_flag" ||
18221 test ! -s conftest.err
18222 } && test -s conftest.$ac_objext; then
18223 ac_header_compiler=yes
18225 echo "$as_me: failed program was
:" >&5
18226 sed 's/^/| /' conftest.$ac_ext >&5
18228 ac_header_compiler=no
18231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18232 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18233 echo "${ECHO_T}$ac_header_compiler" >&6; }
18235 # Is the header present?
18236 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18237 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18238 cat >conftest.$ac_ext <<_ACEOF
18241 cat confdefs.h >>conftest.$ac_ext
18242 cat >>conftest.$ac_ext <<_ACEOF
18243 /* end confdefs.h. */
18244 #include <$ac_header>
18246 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18247 case "(($ac_try" in
18248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18249 *) ac_try_echo=$ac_try;;
18251 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18252 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18254 grep -v '^ *+' conftest.er1 >conftest.err
18256 cat conftest.err >&5
18257 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18258 (exit $ac_status); } >/dev/null && {
18259 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18260 test ! -s conftest.err
18262 ac_header_preproc=yes
18264 echo "$as_me: failed program was
:" >&5
18265 sed 's/^/| /' conftest.$ac_ext >&5
18267 ac_header_preproc=no
18270 rm -f conftest.err conftest.$ac_ext
18271 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18272 echo "${ECHO_T}$ac_header_preproc" >&6; }
18274 # So? What about this header?
18275 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18277 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18278 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18279 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18280 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18281 ac_header_preproc=yes
18284 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18285 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18286 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18287 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18288 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18289 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18290 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18291 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18292 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18293 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18294 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18295 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18299 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18300 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18301 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18302 echo $ECHO_N "(cached
) $ECHO_C" >&6
18304 eval "$as_ac_Header=\
$ac_header_preproc"
18306 ac_res=`eval echo '${'$as_ac_Header'}'`
18307 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18308 echo "${ECHO_T}$ac_res" >&6; }
18311 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18312 cat >>confdefs.h <<_ACEOF
18313 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18315 { echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
18316 echo $ECHO_N "checking
for struct nlist.n_un.n_name...
$ECHO_C" >&6; }
18317 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18318 echo $ECHO_N "(cached
) $ECHO_C" >&6
18320 cat >conftest.$ac_ext <<_ACEOF
18323 cat confdefs.h >>conftest.$ac_ext
18324 cat >>conftest.$ac_ext <<_ACEOF
18325 /* end confdefs.h. */
18331 static struct nlist ac_aggr;
18332 if (ac_aggr.n_un.n_name)
18338 rm -f conftest.$ac_objext
18339 if { (ac_try="$ac_compile"
18340 case "(($ac_try" in
18341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18342 *) ac_try_echo=$ac_try;;
18344 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18345 (eval "$ac_compile") 2>conftest.er1
18347 grep -v '^ *+' conftest.er1 >conftest.err
18349 cat conftest.err >&5
18350 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18351 (exit $ac_status); } && {
18352 test -z "$ac_c_werror_flag" ||
18353 test ! -s conftest.err
18354 } && test -s conftest.$ac_objext; then
18355 ac_cv_member_struct_nlist_n_un_n_name=yes
18357 echo "$as_me: failed program was
:" >&5
18358 sed 's/^/| /' conftest.$ac_ext >&5
18360 cat >conftest.$ac_ext <<_ACEOF
18363 cat confdefs.h >>conftest.$ac_ext
18364 cat >>conftest.$ac_ext <<_ACEOF
18365 /* end confdefs.h. */
18371 static struct nlist ac_aggr;
18372 if (sizeof ac_aggr.n_un.n_name)
18378 rm -f conftest.$ac_objext
18379 if { (ac_try="$ac_compile"
18380 case "(($ac_try" in
18381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18382 *) ac_try_echo=$ac_try;;
18384 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18385 (eval "$ac_compile") 2>conftest.er1
18387 grep -v '^ *+' conftest.er1 >conftest.err
18389 cat conftest.err >&5
18390 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18391 (exit $ac_status); } && {
18392 test -z "$ac_c_werror_flag" ||
18393 test ! -s conftest.err
18394 } && test -s conftest.$ac_objext; then
18395 ac_cv_member_struct_nlist_n_un_n_name=yes
18397 echo "$as_me: failed program was
:" >&5
18398 sed 's/^/| /' conftest.$ac_ext >&5
18400 ac_cv_member_struct_nlist_n_un_n_name=no
18403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18408 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18409 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18410 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18412 cat >>confdefs.h <<_ACEOF
18413 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18417 cat >>confdefs.h <<\_ACEOF
18418 #define NLIST_NAME_UNION 1
18432 # Some definitions of getloadavg require that the program be installed setgid.
18433 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
18434 echo $ECHO_N "checking whether getloadavg requires setgid...
$ECHO_C" >&6; }
18435 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18436 echo $ECHO_N "(cached
) $ECHO_C" >&6
18438 cat >conftest.$ac_ext <<_ACEOF
18441 cat confdefs.h >>conftest.$ac_ext
18442 cat >>conftest.$ac_ext <<_ACEOF
18443 /* end confdefs.h. */
18444 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
18445 #ifdef LDAV_PRIVILEGED
18446 Yowza Am I SETGID yet
18449 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
18450 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
18451 ac_cv_func_getloadavg_setgid=yes
18453 ac_cv_func_getloadavg_setgid=no
18458 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
18459 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18460 if test $ac_cv_func_getloadavg_setgid = yes; then
18463 cat >>confdefs.h <<\_ACEOF
18464 #define GETLOADAVG_PRIVILEGED 1
18471 if test $ac_cv_func_getloadavg_setgid = yes; then
18472 { echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
18473 echo $ECHO_N "checking group of
/dev
/kmem...
$ECHO_C" >&6; }
18474 if test "${ac_cv_group_kmem+set}" = set; then
18475 echo $ECHO_N "(cached
) $ECHO_C" >&6
18477 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18478 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18479 # If we got an error (system does not support symlinks), try without -L.
18480 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18481 ac_cv_group_kmem=`echo $ac_ls_output \
18482 | sed -ne 's/[ ][ ]*/ /g;
18483 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18487 { echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
18488 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18489 KMEM_GROUP=$ac_cv_group_kmem
18491 if test "x
$ac_save_LIBS" = x; then
18492 GETLOADAVG_LIBS=$LIBS
18494 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s
!$ac_save_LIBS!!"`
18500 { echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
18501 echo $ECHO_N "checking
for _LARGEFILE_SOURCE value needed
for large files...
$ECHO_C" >&6; }
18502 if test "${ac_cv_sys_largefile_source+set}" = set; then
18503 echo $ECHO_N "(cached
) $ECHO_C" >&6
18506 cat >conftest.$ac_ext <<_ACEOF
18509 cat confdefs.h >>conftest.$ac_ext
18510 cat >>conftest.$ac_ext <<_ACEOF
18511 /* end confdefs.h. */
18512 #include <sys/types.h> /* for off_t */
18517 int (*fp) (FILE *, off_t, int) = fseeko;
18518 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18523 rm -f conftest.$ac_objext conftest$ac_exeext
18524 if { (ac_try="$ac_link"
18525 case "(($ac_try" in
18526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18527 *) ac_try_echo=$ac_try;;
18529 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18530 (eval "$ac_link") 2>conftest.er1
18532 grep -v '^ *+' conftest.er1 >conftest.err
18534 cat conftest.err >&5
18535 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18536 (exit $ac_status); } && {
18537 test -z "$ac_c_werror_flag" ||
18538 test ! -s conftest.err
18539 } && test -s conftest$ac_exeext &&
18540 $as_test_x conftest$ac_exeext; then
18541 ac_cv_sys_largefile_source=no; break
18543 echo "$as_me: failed program was
:" >&5
18544 sed 's/^/| /' conftest.$ac_ext >&5
18549 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18550 conftest$ac_exeext conftest.$ac_ext
18551 cat >conftest.$ac_ext <<_ACEOF
18554 cat confdefs.h >>conftest.$ac_ext
18555 cat >>conftest.$ac_ext <<_ACEOF
18556 /* end confdefs.h. */
18557 #define _LARGEFILE_SOURCE 1
18558 #include <sys/types.h> /* for off_t */
18563 int (*fp) (FILE *, off_t, int) = fseeko;
18564 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18569 rm -f conftest.$ac_objext conftest$ac_exeext
18570 if { (ac_try="$ac_link"
18571 case "(($ac_try" in
18572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18573 *) ac_try_echo=$ac_try;;
18575 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18576 (eval "$ac_link") 2>conftest.er1
18578 grep -v '^ *+' conftest.er1 >conftest.err
18580 cat conftest.err >&5
18581 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18582 (exit $ac_status); } && {
18583 test -z "$ac_c_werror_flag" ||
18584 test ! -s conftest.err
18585 } && test -s conftest$ac_exeext &&
18586 $as_test_x conftest$ac_exeext; then
18587 ac_cv_sys_largefile_source=1; break
18589 echo "$as_me: failed program was
:" >&5
18590 sed 's/^/| /' conftest.$ac_ext >&5
18595 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18596 conftest$ac_exeext conftest.$ac_ext
18597 ac_cv_sys_largefile_source=unknown
18601 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
18602 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18603 case $ac_cv_sys_largefile_source in #(
18606 cat >>confdefs.h <<_ACEOF
18607 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18613 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18614 # in glibc 2.1.3, but that breaks too many other things.
18615 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18616 if test $ac_cv_sys_largefile_source != unknown; then
18618 cat >>confdefs.h <<\_ACEOF
18619 #define HAVE_FSEEKO 1
18625 # Configure getopt.
18626 # getopt.m4 serial 10
18628 # The getopt module assume you want GNU getopt, with getopt_long etc,
18629 # rather than vanilla POSIX getopt. This means your your code should
18630 # always include <getopt.h> for the getopt prototypes.
18642 # Prerequisites of lib/getopt*.
18649 for ac_header in getopt.h
18651 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18652 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18653 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18654 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18655 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18656 echo $ECHO_N "(cached
) $ECHO_C" >&6
18658 ac_res=`eval echo '${'$as_ac_Header'}'`
18659 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18660 echo "${ECHO_T}$ac_res" >&6; }
18662 # Is the header compilable?
18663 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18664 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18665 cat >conftest.$ac_ext <<_ACEOF
18668 cat confdefs.h >>conftest.$ac_ext
18669 cat >>conftest.$ac_ext <<_ACEOF
18670 /* end confdefs.h. */
18671 $ac_includes_default
18672 #include <$ac_header>
18674 rm -f conftest.$ac_objext
18675 if { (ac_try="$ac_compile"
18676 case "(($ac_try" in
18677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18678 *) ac_try_echo=$ac_try;;
18680 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18681 (eval "$ac_compile") 2>conftest.er1
18683 grep -v '^ *+' conftest.er1 >conftest.err
18685 cat conftest.err >&5
18686 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18687 (exit $ac_status); } && {
18688 test -z "$ac_c_werror_flag" ||
18689 test ! -s conftest.err
18690 } && test -s conftest.$ac_objext; then
18691 ac_header_compiler=yes
18693 echo "$as_me: failed program was
:" >&5
18694 sed 's/^/| /' conftest.$ac_ext >&5
18696 ac_header_compiler=no
18699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18700 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18701 echo "${ECHO_T}$ac_header_compiler" >&6; }
18703 # Is the header present?
18704 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18705 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18706 cat >conftest.$ac_ext <<_ACEOF
18709 cat confdefs.h >>conftest.$ac_ext
18710 cat >>conftest.$ac_ext <<_ACEOF
18711 /* end confdefs.h. */
18712 #include <$ac_header>
18714 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18715 case "(($ac_try" in
18716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18717 *) ac_try_echo=$ac_try;;
18719 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18720 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18722 grep -v '^ *+' conftest.er1 >conftest.err
18724 cat conftest.err >&5
18725 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18726 (exit $ac_status); } >/dev/null && {
18727 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18728 test ! -s conftest.err
18730 ac_header_preproc=yes
18732 echo "$as_me: failed program was
:" >&5
18733 sed 's/^/| /' conftest.$ac_ext >&5
18735 ac_header_preproc=no
18738 rm -f conftest.err conftest.$ac_ext
18739 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18740 echo "${ECHO_T}$ac_header_preproc" >&6; }
18742 # So? What about this header?
18743 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18745 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18746 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18747 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18748 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18749 ac_header_preproc=yes
18752 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18753 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18754 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18755 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18756 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18757 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18758 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18759 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18760 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18761 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18762 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18763 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18767 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18768 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18769 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18770 echo $ECHO_N "(cached
) $ECHO_C" >&6
18772 eval "$as_ac_Header=\
$ac_header_preproc"
18774 ac_res=`eval echo '${'$as_ac_Header'}'`
18775 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18776 echo "${ECHO_T}$ac_res" >&6; }
18779 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18780 cat >>confdefs.h <<_ACEOF
18781 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18790 if test -z "$GETOPT_H"; then
18792 for ac_func in getopt_long_only
18794 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18795 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18796 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18797 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18798 echo $ECHO_N "(cached
) $ECHO_C" >&6
18800 cat >conftest.$ac_ext <<_ACEOF
18803 cat confdefs.h >>conftest.$ac_ext
18804 cat >>conftest.$ac_ext <<_ACEOF
18805 /* end confdefs.h. */
18806 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18807 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18808 #define $ac_func innocuous_$ac_func
18810 /* System header to define __stub macros and hopefully few prototypes,
18811 which can conflict with char $ac_func (); below.
18812 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18813 <limits.h> exists even on freestanding compilers. */
18816 # include <limits.h>
18818 # include <assert.h>
18823 /* Override any GCC internal prototype to avoid an error.
18824 Use char because int might match the return type of a GCC
18825 builtin and then its argument prototype would still apply. */
18830 /* The GNU C library defines this for functions which it implements
18831 to always fail with ENOSYS. Some functions are actually named
18832 something starting with __ and the normal name is an alias. */
18833 #if defined __stub_$ac_func || defined __stub___$ac_func
18840 return $ac_func ();
18845 rm -f conftest.$ac_objext conftest$ac_exeext
18846 if { (ac_try="$ac_link"
18847 case "(($ac_try" in
18848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18849 *) ac_try_echo=$ac_try;;
18851 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18852 (eval "$ac_link") 2>conftest.er1
18854 grep -v '^ *+' conftest.er1 >conftest.err
18856 cat conftest.err >&5
18857 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18858 (exit $ac_status); } && {
18859 test -z "$ac_c_werror_flag" ||
18860 test ! -s conftest.err
18861 } && test -s conftest$ac_exeext &&
18862 $as_test_x conftest$ac_exeext; then
18863 eval "$as_ac_var=yes"
18865 echo "$as_me: failed program was
:" >&5
18866 sed 's/^/| /' conftest.$ac_ext >&5
18868 eval "$as_ac_var=no
"
18871 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18872 conftest$ac_exeext conftest.$ac_ext
18874 ac_res=`eval echo '${'$as_ac_var'}'`
18875 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18876 echo "${ECHO_T}$ac_res" >&6; }
18877 if test `eval echo '${'$as_ac_var'}'` = yes; then
18878 cat >>confdefs.h <<_ACEOF
18879 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18889 if test -z "$GETOPT_H"; then
18890 { echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
18891 echo $ECHO_N "checking whether optreset is declared...
$ECHO_C" >&6; }
18892 if test "${ac_cv_have_decl_optreset+set}" = set; then
18893 echo $ECHO_N "(cached
) $ECHO_C" >&6
18895 cat >conftest.$ac_ext <<_ACEOF
18898 cat confdefs.h >>conftest.$ac_ext
18899 cat >>conftest.$ac_ext <<_ACEOF
18900 /* end confdefs.h. */
18901 #include <getopt.h>
18914 rm -f conftest.$ac_objext
18915 if { (ac_try="$ac_compile"
18916 case "(($ac_try" in
18917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18918 *) ac_try_echo=$ac_try;;
18920 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18921 (eval "$ac_compile") 2>conftest.er1
18923 grep -v '^ *+' conftest.er1 >conftest.err
18925 cat conftest.err >&5
18926 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18927 (exit $ac_status); } && {
18928 test -z "$ac_c_werror_flag" ||
18929 test ! -s conftest.err
18930 } && test -s conftest.$ac_objext; then
18931 ac_cv_have_decl_optreset=yes
18933 echo "$as_me: failed program was
:" >&5
18934 sed 's/^/| /' conftest.$ac_ext >&5
18936 ac_cv_have_decl_optreset=no
18939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18941 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
18942 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
18943 if test $ac_cv_have_decl_optreset = yes; then
18949 if test -z "$GETOPT_H"; then
18950 { echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
18951 echo $ECHO_N "checking
for working GNU getopt
function...
$ECHO_C" >&6; }
18952 if test "${gl_cv_func_gnu_getopt+set}" = set; then
18953 echo $ECHO_N "(cached
) $ECHO_C" >&6
18955 if test "$cross_compiling" = yes; then
18956 { echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
18957 echo $ECHO_N "checking whether getopt_clip is declared...
$ECHO_C" >&6; }
18958 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
18959 echo $ECHO_N "(cached
) $ECHO_C" >&6
18961 cat >conftest.$ac_ext <<_ACEOF
18964 cat confdefs.h >>conftest.$ac_ext
18965 cat >>conftest.$ac_ext <<_ACEOF
18966 /* end confdefs.h. */
18967 #include <getopt.h>
18972 #ifndef getopt_clip
18973 (void) getopt_clip;
18980 rm -f conftest.$ac_objext
18981 if { (ac_try="$ac_compile"
18982 case "(($ac_try" in
18983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18984 *) ac_try_echo=$ac_try;;
18986 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18987 (eval "$ac_compile") 2>conftest.er1
18989 grep -v '^ *+' conftest.er1 >conftest.err
18991 cat conftest.err >&5
18992 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18993 (exit $ac_status); } && {
18994 test -z "$ac_c_werror_flag" ||
18995 test ! -s conftest.err
18996 } && test -s conftest.$ac_objext; then
18997 ac_cv_have_decl_getopt_clip=yes
18999 echo "$as_me: failed program was
:" >&5
19000 sed 's/^/| /' conftest.$ac_ext >&5
19002 ac_cv_have_decl_getopt_clip=no
19005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19007 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
19008 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19009 if test $ac_cv_have_decl_getopt_clip = yes; then
19010 gl_cv_func_gnu_getopt=no
19012 gl_cv_func_gnu_getopt=yes
19016 cat >conftest.$ac_ext <<_ACEOF
19019 cat confdefs.h >>conftest.$ac_ext
19020 cat >>conftest.$ac_ext <<_ACEOF
19021 /* end confdefs.h. */
19022 #include <getopt.h>
19028 myargv[0] = "conftest
";
19031 return getopt (2, myargv, "+a
") != '?';
19037 rm -f conftest$ac_exeext
19038 if { (ac_try="$ac_link"
19039 case "(($ac_try" in
19040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19041 *) ac_try_echo=$ac_try;;
19043 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19044 (eval "$ac_link") 2>&5
19046 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19047 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19048 { (case "(($ac_try" in
19049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19050 *) ac_try_echo=$ac_try;;
19052 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19053 (eval "$ac_try") 2>&5
19055 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19056 (exit $ac_status); }; }; then
19057 gl_cv_func_gnu_getopt=yes
19059 echo "$as_me: program exited with status
$ac_status" >&5
19060 echo "$as_me: failed program was
:" >&5
19061 sed 's/^/| /' conftest.$ac_ext >&5
19063 ( exit $ac_status )
19064 gl_cv_func_gnu_getopt=no
19066 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19071 { echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
19072 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19073 if test "$gl_cv_func_gnu_getopt" = "no
"; then
19080 if test -n "$GETOPT_H"; then
19085 cat >>confdefs.h <<\_ACEOF
19086 #define __GETOPT_PREFIX rpl_
19092 GETOPTOBJS='getopt.o getopt1.o'
19099 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
19100 echo $ECHO_N "checking whether getpgrp requires zero arguments...
$ECHO_C" >&6; }
19101 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19102 echo $ECHO_N "(cached
) $ECHO_C" >&6
19104 # Use it with a single arg.
19105 cat >conftest.$ac_ext <<_ACEOF
19108 cat confdefs.h >>conftest.$ac_ext
19109 cat >>conftest.$ac_ext <<_ACEOF
19110 /* end confdefs.h. */
19111 $ac_includes_default
19120 rm -f conftest.$ac_objext
19121 if { (ac_try="$ac_compile"
19122 case "(($ac_try" in
19123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19124 *) ac_try_echo=$ac_try;;
19126 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19127 (eval "$ac_compile") 2>conftest.er1
19129 grep -v '^ *+' conftest.er1 >conftest.err
19131 cat conftest.err >&5
19132 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19133 (exit $ac_status); } && {
19134 test -z "$ac_c_werror_flag" ||
19135 test ! -s conftest.err
19136 } && test -s conftest.$ac_objext; then
19137 ac_cv_func_getpgrp_void=no
19139 echo "$as_me: failed program was
:" >&5
19140 sed 's/^/| /' conftest.$ac_ext >&5
19142 ac_cv_func_getpgrp_void=yes
19145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19148 { echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
19149 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19150 if test $ac_cv_func_getpgrp_void = yes; then
19152 cat >>confdefs.h <<\_ACEOF
19153 #define GETPGRP_VOID 1
19160 for ac_func in strftime
19162 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19163 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19164 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19165 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19166 echo $ECHO_N "(cached
) $ECHO_C" >&6
19168 cat >conftest.$ac_ext <<_ACEOF
19171 cat confdefs.h >>conftest.$ac_ext
19172 cat >>conftest.$ac_ext <<_ACEOF
19173 /* end confdefs.h. */
19174 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19175 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19176 #define $ac_func innocuous_$ac_func
19178 /* System header to define __stub macros and hopefully few prototypes,
19179 which can conflict with char $ac_func (); below.
19180 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19181 <limits.h> exists even on freestanding compilers. */
19184 # include <limits.h>
19186 # include <assert.h>
19191 /* Override any GCC internal prototype to avoid an error.
19192 Use char because int might match the return type of a GCC
19193 builtin and then its argument prototype would still apply. */
19198 /* The GNU C library defines this for functions which it implements
19199 to always fail with ENOSYS. Some functions are actually named
19200 something starting with __ and the normal name is an alias. */
19201 #if defined __stub_$ac_func || defined __stub___$ac_func
19208 return $ac_func ();
19213 rm -f conftest.$ac_objext conftest$ac_exeext
19214 if { (ac_try="$ac_link"
19215 case "(($ac_try" in
19216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19217 *) ac_try_echo=$ac_try;;
19219 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19220 (eval "$ac_link") 2>conftest.er1
19222 grep -v '^ *+' conftest.er1 >conftest.err
19224 cat conftest.err >&5
19225 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19226 (exit $ac_status); } && {
19227 test -z "$ac_c_werror_flag" ||
19228 test ! -s conftest.err
19229 } && test -s conftest$ac_exeext &&
19230 $as_test_x conftest$ac_exeext; then
19231 eval "$as_ac_var=yes"
19233 echo "$as_me: failed program was
:" >&5
19234 sed 's/^/| /' conftest.$ac_ext >&5
19236 eval "$as_ac_var=no
"
19239 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19240 conftest$ac_exeext conftest.$ac_ext
19242 ac_res=`eval echo '${'$as_ac_var'}'`
19243 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19244 echo "${ECHO_T}$ac_res" >&6; }
19245 if test `eval echo '${'$as_ac_var'}'` = yes; then
19246 cat >>confdefs.h <<_ACEOF
19247 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19251 # strftime is in -lintl on SCO UNIX.
19252 { echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
19253 echo $ECHO_N "checking
for strftime
in -lintl...
$ECHO_C" >&6; }
19254 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19255 echo $ECHO_N "(cached
) $ECHO_C" >&6
19257 ac_check_lib_save_LIBS=$LIBS
19258 LIBS="-lintl $LIBS"
19259 cat >conftest.$ac_ext <<_ACEOF
19262 cat confdefs.h >>conftest.$ac_ext
19263 cat >>conftest.$ac_ext <<_ACEOF
19264 /* end confdefs.h. */
19266 /* Override any GCC internal prototype to avoid an error.
19267 Use char because int might match the return type of a GCC
19268 builtin and then its argument prototype would still apply. */
19276 return strftime ();
19281 rm -f conftest.$ac_objext conftest$ac_exeext
19282 if { (ac_try="$ac_link"
19283 case "(($ac_try" in
19284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19285 *) ac_try_echo=$ac_try;;
19287 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19288 (eval "$ac_link") 2>conftest.er1
19290 grep -v '^ *+' conftest.er1 >conftest.err
19292 cat conftest.err >&5
19293 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19294 (exit $ac_status); } && {
19295 test -z "$ac_c_werror_flag" ||
19296 test ! -s conftest.err
19297 } && test -s conftest$ac_exeext &&
19298 $as_test_x conftest$ac_exeext; then
19299 ac_cv_lib_intl_strftime=yes
19301 echo "$as_me: failed program was
:" >&5
19302 sed 's/^/| /' conftest.$ac_ext >&5
19304 ac_cv_lib_intl_strftime=no
19307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19308 conftest$ac_exeext conftest.$ac_ext
19309 LIBS=$ac_check_lib_save_LIBS
19311 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
19312 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19313 if test $ac_cv_lib_intl_strftime = yes; then
19314 cat >>confdefs.h <<\_ACEOF
19315 #define HAVE_STRFTIME 1
19318 LIBS="-lintl $LIBS"
19327 for ac_func in grantpt
19329 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19330 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19331 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19332 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19333 echo $ECHO_N "(cached
) $ECHO_C" >&6
19335 cat >conftest.$ac_ext <<_ACEOF
19338 cat confdefs.h >>conftest.$ac_ext
19339 cat >>conftest.$ac_ext <<_ACEOF
19340 /* end confdefs.h. */
19341 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19342 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19343 #define $ac_func innocuous_$ac_func
19345 /* System header to define __stub macros and hopefully few prototypes,
19346 which can conflict with char $ac_func (); below.
19347 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19348 <limits.h> exists even on freestanding compilers. */
19351 # include <limits.h>
19353 # include <assert.h>
19358 /* Override any GCC internal prototype to avoid an error.
19359 Use char because int might match the return type of a GCC
19360 builtin and then its argument prototype would still apply. */
19365 /* The GNU C library defines this for functions which it implements
19366 to always fail with ENOSYS. Some functions are actually named
19367 something starting with __ and the normal name is an alias. */
19368 #if defined __stub_$ac_func || defined __stub___$ac_func
19375 return $ac_func ();
19380 rm -f conftest.$ac_objext conftest$ac_exeext
19381 if { (ac_try="$ac_link"
19382 case "(($ac_try" in
19383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19384 *) ac_try_echo=$ac_try;;
19386 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19387 (eval "$ac_link") 2>conftest.er1
19389 grep -v '^ *+' conftest.er1 >conftest.err
19391 cat conftest.err >&5
19392 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19393 (exit $ac_status); } && {
19394 test -z "$ac_c_werror_flag" ||
19395 test ! -s conftest.err
19396 } && test -s conftest$ac_exeext &&
19397 $as_test_x conftest$ac_exeext; then
19398 eval "$as_ac_var=yes"
19400 echo "$as_me: failed program was
:" >&5
19401 sed 's/^/| /' conftest.$ac_ext >&5
19403 eval "$as_ac_var=no
"
19406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19407 conftest$ac_exeext conftest.$ac_ext
19409 ac_res=`eval echo '${'$as_ac_var'}'`
19410 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19411 echo "${ECHO_T}$ac_res" >&6; }
19412 if test `eval echo '${'$as_ac_var'}'` = yes; then
19413 cat >>confdefs.h <<_ACEOF
19414 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19421 # PTY-related GNU extensions.
19423 for ac_func in getpt
19425 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19426 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19427 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19428 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19429 echo $ECHO_N "(cached
) $ECHO_C" >&6
19431 cat >conftest.$ac_ext <<_ACEOF
19434 cat confdefs.h >>conftest.$ac_ext
19435 cat >>conftest.$ac_ext <<_ACEOF
19436 /* end confdefs.h. */
19437 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19438 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19439 #define $ac_func innocuous_$ac_func
19441 /* System header to define __stub macros and hopefully few prototypes,
19442 which can conflict with char $ac_func (); below.
19443 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19444 <limits.h> exists even on freestanding compilers. */
19447 # include <limits.h>
19449 # include <assert.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. */
19461 /* The GNU C library defines this for functions which it implements
19462 to always fail with ENOSYS. Some functions are actually named
19463 something starting with __ and the normal name is an alias. */
19464 #if defined __stub_$ac_func || defined __stub___$ac_func
19471 return $ac_func ();
19476 rm -f conftest.$ac_objext conftest$ac_exeext
19477 if { (ac_try="$ac_link"
19478 case "(($ac_try" in
19479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19480 *) ac_try_echo=$ac_try;;
19482 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19483 (eval "$ac_link") 2>conftest.er1
19485 grep -v '^ *+' conftest.er1 >conftest.err
19487 cat conftest.err >&5
19488 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19489 (exit $ac_status); } && {
19490 test -z "$ac_c_werror_flag" ||
19491 test ! -s conftest.err
19492 } && test -s conftest$ac_exeext &&
19493 $as_test_x conftest$ac_exeext; then
19494 eval "$as_ac_var=yes"
19496 echo "$as_me: failed program was
:" >&5
19497 sed 's/^/| /' conftest.$ac_ext >&5
19499 eval "$as_ac_var=no
"
19502 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19503 conftest$ac_exeext conftest.$ac_ext
19505 ac_res=`eval echo '${'$as_ac_var'}'`
19506 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19507 echo "${ECHO_T}$ac_res" >&6; }
19508 if test `eval echo '${'$as_ac_var'}'` = yes; then
19509 cat >>confdefs.h <<_ACEOF
19510 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19517 # Check this now, so that we will NOT find the above functions in ncurses.
19518 # That is because we have not set up to link ncurses in lib-src.
19519 # It's better to believe a function is not available
19520 # than to expect to find it in ncurses.
19522 { echo "$as_me:$LINENO: checking
for tparm
in -lncurses" >&5
19523 echo $ECHO_N "checking
for tparm
in -lncurses...
$ECHO_C" >&6; }
19524 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19525 echo $ECHO_N "(cached
) $ECHO_C" >&6
19527 ac_check_lib_save_LIBS=$LIBS
19528 LIBS="-lncurses $LIBS"
19529 cat >conftest.$ac_ext <<_ACEOF
19532 cat confdefs.h >>conftest.$ac_ext
19533 cat >>conftest.$ac_ext <<_ACEOF
19534 /* end confdefs.h. */
19536 /* Override any GCC internal prototype to avoid an error.
19537 Use char because int might match the return type of a GCC
19538 builtin and then its argument prototype would still apply. */
19551 rm -f conftest.$ac_objext conftest$ac_exeext
19552 if { (ac_try="$ac_link"
19553 case "(($ac_try" in
19554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19555 *) ac_try_echo=$ac_try;;
19557 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19558 (eval "$ac_link") 2>conftest.er1
19560 grep -v '^ *+' conftest.er1 >conftest.err
19562 cat conftest.err >&5
19563 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19564 (exit $ac_status); } && {
19565 test -z "$ac_c_werror_flag" ||
19566 test ! -s conftest.err
19567 } && test -s conftest$ac_exeext &&
19568 $as_test_x conftest$ac_exeext; then
19569 ac_cv_lib_ncurses_tparm=yes
19571 echo "$as_me: failed program was
:" >&5
19572 sed 's/^/| /' conftest.$ac_ext >&5
19574 ac_cv_lib_ncurses_tparm=no
19577 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19578 conftest$ac_exeext conftest.$ac_ext
19579 LIBS=$ac_check_lib_save_LIBS
19581 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ncurses_tparm" >&5
19582 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19583 if test $ac_cv_lib_ncurses_tparm = yes; then
19584 cat >>confdefs.h <<_ACEOF
19585 #define HAVE_LIBNCURSES 1
19588 LIBS="-lncurses $LIBS"
19593 # Do we need the Hesiod library to provide the support routines?
19594 if test "$with_hesiod" = yes ; then
19595 # Don't set $LIBS here -- see comments above.
19597 { echo "$as_me:$LINENO: checking
for res_send
" >&5
19598 echo $ECHO_N "checking
for res_send...
$ECHO_C" >&6; }
19599 if test "${ac_cv_func_res_send+set}" = set; then
19600 echo $ECHO_N "(cached
) $ECHO_C" >&6
19602 cat >conftest.$ac_ext <<_ACEOF
19605 cat confdefs.h >>conftest.$ac_ext
19606 cat >>conftest.$ac_ext <<_ACEOF
19607 /* end confdefs.h. */
19608 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19609 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19610 #define res_send innocuous_res_send
19612 /* System header to define __stub macros and hopefully few prototypes,
19613 which can conflict with char res_send (); below.
19614 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19615 <limits.h> exists even on freestanding compilers. */
19618 # include <limits.h>
19620 # include <assert.h>
19625 /* Override any GCC internal prototype to avoid an error.
19626 Use char because int might match the return type of a GCC
19627 builtin and then its argument prototype would still apply. */
19632 /* The GNU C library defines this for functions which it implements
19633 to always fail with ENOSYS. Some functions are actually named
19634 something starting with __ and the normal name is an alias. */
19635 #if defined __stub_res_send || defined __stub___res_send
19642 return res_send ();
19647 rm -f conftest.$ac_objext conftest$ac_exeext
19648 if { (ac_try="$ac_link"
19649 case "(($ac_try" in
19650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19651 *) ac_try_echo=$ac_try;;
19653 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19654 (eval "$ac_link") 2>conftest.er1
19656 grep -v '^ *+' conftest.er1 >conftest.err
19658 cat conftest.err >&5
19659 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19660 (exit $ac_status); } && {
19661 test -z "$ac_c_werror_flag" ||
19662 test ! -s conftest.err
19663 } && test -s conftest$ac_exeext &&
19664 $as_test_x conftest$ac_exeext; then
19665 ac_cv_func_res_send=yes
19667 echo "$as_me: failed program was
:" >&5
19668 sed 's/^/| /' conftest.$ac_ext >&5
19670 ac_cv_func_res_send=no
19673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19674 conftest$ac_exeext conftest.$ac_ext
19676 { echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
19677 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19678 if test $ac_cv_func_res_send = yes; then
19681 { echo "$as_me:$LINENO: checking
for __res_send
" >&5
19682 echo $ECHO_N "checking
for __res_send...
$ECHO_C" >&6; }
19683 if test "${ac_cv_func___res_send+set}" = set; then
19684 echo $ECHO_N "(cached
) $ECHO_C" >&6
19686 cat >conftest.$ac_ext <<_ACEOF
19689 cat confdefs.h >>conftest.$ac_ext
19690 cat >>conftest.$ac_ext <<_ACEOF
19691 /* end confdefs.h. */
19692 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19693 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19694 #define __res_send innocuous___res_send
19696 /* System header to define __stub macros and hopefully few prototypes,
19697 which can conflict with char __res_send (); below.
19698 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19699 <limits.h> exists even on freestanding compilers. */
19702 # include <limits.h>
19704 # include <assert.h>
19709 /* Override any GCC internal prototype to avoid an error.
19710 Use char because int might match the return type of a GCC
19711 builtin and then its argument prototype would still apply. */
19715 char __res_send ();
19716 /* The GNU C library defines this for functions which it implements
19717 to always fail with ENOSYS. Some functions are actually named
19718 something starting with __ and the normal name is an alias. */
19719 #if defined __stub___res_send || defined __stub_____res_send
19726 return __res_send ();
19731 rm -f conftest.$ac_objext conftest$ac_exeext
19732 if { (ac_try="$ac_link"
19733 case "(($ac_try" in
19734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19735 *) ac_try_echo=$ac_try;;
19737 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19738 (eval "$ac_link") 2>conftest.er1
19740 grep -v '^ *+' conftest.er1 >conftest.err
19742 cat conftest.err >&5
19743 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19744 (exit $ac_status); } && {
19745 test -z "$ac_c_werror_flag" ||
19746 test ! -s conftest.err
19747 } && test -s conftest$ac_exeext &&
19748 $as_test_x conftest$ac_exeext; then
19749 ac_cv_func___res_send=yes
19751 echo "$as_me: failed program was
:" >&5
19752 sed 's/^/| /' conftest.$ac_ext >&5
19754 ac_cv_func___res_send=no
19757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19758 conftest$ac_exeext conftest.$ac_ext
19760 { echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
19761 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19762 if test $ac_cv_func___res_send = yes; then
19765 { echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
19766 echo $ECHO_N "checking
for res_send
in -lresolv...
$ECHO_C" >&6; }
19767 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19768 echo $ECHO_N "(cached
) $ECHO_C" >&6
19770 ac_check_lib_save_LIBS=$LIBS
19771 LIBS="-lresolv $LIBS"
19772 cat >conftest.$ac_ext <<_ACEOF
19775 cat confdefs.h >>conftest.$ac_ext
19776 cat >>conftest.$ac_ext <<_ACEOF
19777 /* end confdefs.h. */
19779 /* Override any GCC internal prototype to avoid an error.
19780 Use char because int might match the return type of a GCC
19781 builtin and then its argument prototype would still apply. */
19789 return res_send ();
19794 rm -f conftest.$ac_objext conftest$ac_exeext
19795 if { (ac_try="$ac_link"
19796 case "(($ac_try" in
19797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19798 *) ac_try_echo=$ac_try;;
19800 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19801 (eval "$ac_link") 2>conftest.er1
19803 grep -v '^ *+' conftest.er1 >conftest.err
19805 cat conftest.err >&5
19806 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19807 (exit $ac_status); } && {
19808 test -z "$ac_c_werror_flag" ||
19809 test ! -s conftest.err
19810 } && test -s conftest$ac_exeext &&
19811 $as_test_x conftest$ac_exeext; then
19812 ac_cv_lib_resolv_res_send=yes
19814 echo "$as_me: failed program was
:" >&5
19815 sed 's/^/| /' conftest.$ac_ext >&5
19817 ac_cv_lib_resolv_res_send=no
19820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19821 conftest$ac_exeext conftest.$ac_ext
19822 LIBS=$ac_check_lib_save_LIBS
19824 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
19825 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
19826 if test $ac_cv_lib_resolv_res_send = yes; then
19829 { echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
19830 echo $ECHO_N "checking
for __res_send
in -lresolv...
$ECHO_C" >&6; }
19831 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
19832 echo $ECHO_N "(cached
) $ECHO_C" >&6
19834 ac_check_lib_save_LIBS=$LIBS
19835 LIBS="-lresolv $LIBS"
19836 cat >conftest.$ac_ext <<_ACEOF
19839 cat confdefs.h >>conftest.$ac_ext
19840 cat >>conftest.$ac_ext <<_ACEOF
19841 /* end confdefs.h. */
19843 /* Override any GCC internal prototype to avoid an error.
19844 Use char because int might match the return type of a GCC
19845 builtin and then its argument prototype would still apply. */
19849 char __res_send ();
19853 return __res_send ();
19858 rm -f conftest.$ac_objext conftest$ac_exeext
19859 if { (ac_try="$ac_link"
19860 case "(($ac_try" in
19861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19862 *) ac_try_echo=$ac_try;;
19864 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19865 (eval "$ac_link") 2>conftest.er1
19867 grep -v '^ *+' conftest.er1 >conftest.err
19869 cat conftest.err >&5
19870 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19871 (exit $ac_status); } && {
19872 test -z "$ac_c_werror_flag" ||
19873 test ! -s conftest.err
19874 } && test -s conftest$ac_exeext &&
19875 $as_test_x conftest$ac_exeext; then
19876 ac_cv_lib_resolv___res_send=yes
19878 echo "$as_me: failed program was
:" >&5
19879 sed 's/^/| /' conftest.$ac_ext >&5
19881 ac_cv_lib_resolv___res_send=no
19884 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19885 conftest$ac_exeext conftest.$ac_ext
19886 LIBS=$ac_check_lib_save_LIBS
19888 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
19889 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
19890 if test $ac_cv_lib_resolv___res_send = yes; then
19900 if test "$resolv" = yes ; then
19903 cat >>confdefs.h <<\_ACEOF
19904 #define HAVE_LIBRESOLV 1
19910 { echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
19911 echo $ECHO_N "checking
for hes_getmailhost...
$ECHO_C" >&6; }
19912 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
19913 echo $ECHO_N "(cached
) $ECHO_C" >&6
19915 cat >conftest.$ac_ext <<_ACEOF
19918 cat confdefs.h >>conftest.$ac_ext
19919 cat >>conftest.$ac_ext <<_ACEOF
19920 /* end confdefs.h. */
19921 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
19922 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19923 #define hes_getmailhost innocuous_hes_getmailhost
19925 /* System header to define __stub macros and hopefully few prototypes,
19926 which can conflict with char hes_getmailhost (); below.
19927 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19928 <limits.h> exists even on freestanding compilers. */
19931 # include <limits.h>
19933 # include <assert.h>
19936 #undef hes_getmailhost
19938 /* Override any GCC internal prototype to avoid an error.
19939 Use char because int might match the return type of a GCC
19940 builtin and then its argument prototype would still apply. */
19944 char hes_getmailhost ();
19945 /* The GNU C library defines this for functions which it implements
19946 to always fail with ENOSYS. Some functions are actually named
19947 something starting with __ and the normal name is an alias. */
19948 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
19955 return hes_getmailhost ();
19960 rm -f conftest.$ac_objext conftest$ac_exeext
19961 if { (ac_try="$ac_link"
19962 case "(($ac_try" in
19963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19964 *) ac_try_echo=$ac_try;;
19966 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19967 (eval "$ac_link") 2>conftest.er1
19969 grep -v '^ *+' conftest.er1 >conftest.err
19971 cat conftest.err >&5
19972 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19973 (exit $ac_status); } && {
19974 test -z "$ac_c_werror_flag" ||
19975 test ! -s conftest.err
19976 } && test -s conftest$ac_exeext &&
19977 $as_test_x conftest$ac_exeext; then
19978 ac_cv_func_hes_getmailhost=yes
19980 echo "$as_me: failed program was
:" >&5
19981 sed 's/^/| /' conftest.$ac_ext >&5
19983 ac_cv_func_hes_getmailhost=no
19986 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19987 conftest$ac_exeext conftest.$ac_ext
19989 { echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
19990 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
19991 if test $ac_cv_func_hes_getmailhost = yes; then
19994 { echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
19995 echo $ECHO_N "checking
for hes_getmailhost
in -lhesiod...
$ECHO_C" >&6; }
19996 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
19997 echo $ECHO_N "(cached
) $ECHO_C" >&6
19999 ac_check_lib_save_LIBS=$LIBS
20000 LIBS="-lhesiod $RESOLVLIB $LIBS"
20001 cat >conftest.$ac_ext <<_ACEOF
20004 cat confdefs.h >>conftest.$ac_ext
20005 cat >>conftest.$ac_ext <<_ACEOF
20006 /* end confdefs.h. */
20008 /* Override any GCC internal prototype to avoid an error.
20009 Use char because int might match the return type of a GCC
20010 builtin and then its argument prototype would still apply. */
20014 char hes_getmailhost ();
20018 return hes_getmailhost ();
20023 rm -f conftest.$ac_objext conftest$ac_exeext
20024 if { (ac_try="$ac_link"
20025 case "(($ac_try" in
20026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20027 *) ac_try_echo=$ac_try;;
20029 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20030 (eval "$ac_link") 2>conftest.er1
20032 grep -v '^ *+' conftest.er1 >conftest.err
20034 cat conftest.err >&5
20035 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20036 (exit $ac_status); } && {
20037 test -z "$ac_c_werror_flag" ||
20038 test ! -s conftest.err
20039 } && test -s conftest$ac_exeext &&
20040 $as_test_x conftest$ac_exeext; then
20041 ac_cv_lib_hesiod_hes_getmailhost=yes
20043 echo "$as_me: failed program was
:" >&5
20044 sed 's/^/| /' conftest.$ac_ext >&5
20046 ac_cv_lib_hesiod_hes_getmailhost=no
20049 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20050 conftest$ac_exeext conftest.$ac_ext
20051 LIBS=$ac_check_lib_save_LIBS
20053 { echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20054 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20055 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20057 cat >>confdefs.h <<\_ACEOF
20058 #define HAVE_LIBHESIOD 1
20069 # These tell us which Kerberos-related libraries to use.
20070 if test "${with_kerberos+set}" = set; then
20072 { echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
20073 echo $ECHO_N "checking
for com_err
in -lcom_err...
$ECHO_C" >&6; }
20074 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20075 echo $ECHO_N "(cached
) $ECHO_C" >&6
20077 ac_check_lib_save_LIBS=$LIBS
20078 LIBS="-lcom_err $LIBS"
20079 cat >conftest.$ac_ext <<_ACEOF
20082 cat confdefs.h >>conftest.$ac_ext
20083 cat >>conftest.$ac_ext <<_ACEOF
20084 /* end confdefs.h. */
20086 /* Override any GCC internal prototype to avoid an error.
20087 Use char because int might match the return type of a GCC
20088 builtin and then its argument prototype would still apply. */
20101 rm -f conftest.$ac_objext conftest$ac_exeext
20102 if { (ac_try="$ac_link"
20103 case "(($ac_try" in
20104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20105 *) ac_try_echo=$ac_try;;
20107 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20108 (eval "$ac_link") 2>conftest.er1
20110 grep -v '^ *+' conftest.er1 >conftest.err
20112 cat conftest.err >&5
20113 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20114 (exit $ac_status); } && {
20115 test -z "$ac_c_werror_flag" ||
20116 test ! -s conftest.err
20117 } && test -s conftest$ac_exeext &&
20118 $as_test_x conftest$ac_exeext; then
20119 ac_cv_lib_com_err_com_err=yes
20121 echo "$as_me: failed program was
:" >&5
20122 sed 's/^/| /' conftest.$ac_ext >&5
20124 ac_cv_lib_com_err_com_err=no
20127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20128 conftest$ac_exeext conftest.$ac_ext
20129 LIBS=$ac_check_lib_save_LIBS
20131 { echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
20132 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20133 if test $ac_cv_lib_com_err_com_err = yes; then
20134 cat >>confdefs.h <<_ACEOF
20135 #define HAVE_LIBCOM_ERR 1
20138 LIBS="-lcom_err $LIBS"
20143 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
20144 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lk5crypto...
$ECHO_C" >&6; }
20145 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20146 echo $ECHO_N "(cached
) $ECHO_C" >&6
20148 ac_check_lib_save_LIBS=$LIBS
20149 LIBS="-lk5crypto $LIBS"
20150 cat >conftest.$ac_ext <<_ACEOF
20153 cat confdefs.h >>conftest.$ac_ext
20154 cat >>conftest.$ac_ext <<_ACEOF
20155 /* end confdefs.h. */
20157 /* Override any GCC internal prototype to avoid an error.
20158 Use char because int might match the return type of a GCC
20159 builtin and then its argument prototype would still apply. */
20163 char mit_des_cbc_encrypt ();
20167 return mit_des_cbc_encrypt ();
20172 rm -f conftest.$ac_objext conftest$ac_exeext
20173 if { (ac_try="$ac_link"
20174 case "(($ac_try" in
20175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20176 *) ac_try_echo=$ac_try;;
20178 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20179 (eval "$ac_link") 2>conftest.er1
20181 grep -v '^ *+' conftest.er1 >conftest.err
20183 cat conftest.err >&5
20184 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20185 (exit $ac_status); } && {
20186 test -z "$ac_c_werror_flag" ||
20187 test ! -s conftest.err
20188 } && test -s conftest$ac_exeext &&
20189 $as_test_x conftest$ac_exeext; then
20190 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20192 echo "$as_me: failed program was
:" >&5
20193 sed 's/^/| /' conftest.$ac_ext >&5
20195 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20199 conftest$ac_exeext conftest.$ac_ext
20200 LIBS=$ac_check_lib_save_LIBS
20202 { echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20203 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20204 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20205 cat >>confdefs.h <<_ACEOF
20206 #define HAVE_LIBK5CRYPTO 1
20209 LIBS="-lk5crypto $LIBS"
20214 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
20215 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lcrypto...
$ECHO_C" >&6; }
20216 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20217 echo $ECHO_N "(cached
) $ECHO_C" >&6
20219 ac_check_lib_save_LIBS=$LIBS
20220 LIBS="-lcrypto $LIBS"
20221 cat >conftest.$ac_ext <<_ACEOF
20224 cat confdefs.h >>conftest.$ac_ext
20225 cat >>conftest.$ac_ext <<_ACEOF
20226 /* end confdefs.h. */
20228 /* Override any GCC internal prototype to avoid an error.
20229 Use char because int might match the return type of a GCC
20230 builtin and then its argument prototype would still apply. */
20234 char mit_des_cbc_encrypt ();
20238 return mit_des_cbc_encrypt ();
20243 rm -f conftest.$ac_objext conftest$ac_exeext
20244 if { (ac_try="$ac_link"
20245 case "(($ac_try" in
20246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20247 *) ac_try_echo=$ac_try;;
20249 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20250 (eval "$ac_link") 2>conftest.er1
20252 grep -v '^ *+' conftest.er1 >conftest.err
20254 cat conftest.err >&5
20255 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20256 (exit $ac_status); } && {
20257 test -z "$ac_c_werror_flag" ||
20258 test ! -s conftest.err
20259 } && test -s conftest$ac_exeext &&
20260 $as_test_x conftest$ac_exeext; then
20261 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20263 echo "$as_me: failed program was
:" >&5
20264 sed 's/^/| /' conftest.$ac_ext >&5
20266 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20269 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20270 conftest$ac_exeext conftest.$ac_ext
20271 LIBS=$ac_check_lib_save_LIBS
20273 { echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20274 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20275 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20276 cat >>confdefs.h <<_ACEOF
20277 #define HAVE_LIBCRYPTO 1
20280 LIBS="-lcrypto $LIBS"
20285 { echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
20286 echo $ECHO_N "checking
for krb5_init_context
in -lkrb5...
$ECHO_C" >&6; }
20287 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20288 echo $ECHO_N "(cached
) $ECHO_C" >&6
20290 ac_check_lib_save_LIBS=$LIBS
20291 LIBS="-lkrb5 $LIBS"
20292 cat >conftest.$ac_ext <<_ACEOF
20295 cat confdefs.h >>conftest.$ac_ext
20296 cat >>conftest.$ac_ext <<_ACEOF
20297 /* end confdefs.h. */
20299 /* Override any GCC internal prototype to avoid an error.
20300 Use char because int might match the return type of a GCC
20301 builtin and then its argument prototype would still apply. */
20305 char krb5_init_context ();
20309 return krb5_init_context ();
20314 rm -f conftest.$ac_objext conftest$ac_exeext
20315 if { (ac_try="$ac_link"
20316 case "(($ac_try" in
20317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20318 *) ac_try_echo=$ac_try;;
20320 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20321 (eval "$ac_link") 2>conftest.er1
20323 grep -v '^ *+' conftest.er1 >conftest.err
20325 cat conftest.err >&5
20326 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20327 (exit $ac_status); } && {
20328 test -z "$ac_c_werror_flag" ||
20329 test ! -s conftest.err
20330 } && test -s conftest$ac_exeext &&
20331 $as_test_x conftest$ac_exeext; then
20332 ac_cv_lib_krb5_krb5_init_context=yes
20334 echo "$as_me: failed program was
:" >&5
20335 sed 's/^/| /' conftest.$ac_ext >&5
20337 ac_cv_lib_krb5_krb5_init_context=no
20340 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20341 conftest$ac_exeext conftest.$ac_ext
20342 LIBS=$ac_check_lib_save_LIBS
20344 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
20345 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20346 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20347 cat >>confdefs.h <<_ACEOF
20348 #define HAVE_LIBKRB5 1
20351 LIBS="-lkrb5 $LIBS"
20355 if test "${with_kerberos5+set}" != set; then
20357 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
20358 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes425...
$ECHO_C" >&6; }
20359 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20360 echo $ECHO_N "(cached
) $ECHO_C" >&6
20362 ac_check_lib_save_LIBS=$LIBS
20363 LIBS="-ldes425 $LIBS"
20364 cat >conftest.$ac_ext <<_ACEOF
20367 cat confdefs.h >>conftest.$ac_ext
20368 cat >>conftest.$ac_ext <<_ACEOF
20369 /* end confdefs.h. */
20371 /* Override any GCC internal prototype to avoid an error.
20372 Use char because int might match the return type of a GCC
20373 builtin and then its argument prototype would still apply. */
20377 char des_cbc_encrypt ();
20381 return des_cbc_encrypt ();
20386 rm -f conftest.$ac_objext conftest$ac_exeext
20387 if { (ac_try="$ac_link"
20388 case "(($ac_try" in
20389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20390 *) ac_try_echo=$ac_try;;
20392 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20393 (eval "$ac_link") 2>conftest.er1
20395 grep -v '^ *+' conftest.er1 >conftest.err
20397 cat conftest.err >&5
20398 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20399 (exit $ac_status); } && {
20400 test -z "$ac_c_werror_flag" ||
20401 test ! -s conftest.err
20402 } && test -s conftest$ac_exeext &&
20403 $as_test_x conftest$ac_exeext; then
20404 ac_cv_lib_des425_des_cbc_encrypt=yes
20406 echo "$as_me: failed program was
:" >&5
20407 sed 's/^/| /' conftest.$ac_ext >&5
20409 ac_cv_lib_des425_des_cbc_encrypt=no
20412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20413 conftest$ac_exeext conftest.$ac_ext
20414 LIBS=$ac_check_lib_save_LIBS
20416 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20417 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20418 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20419 cat >>confdefs.h <<_ACEOF
20420 #define HAVE_LIBDES425 1
20423 LIBS="-ldes425 $LIBS"
20427 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
20428 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes...
$ECHO_C" >&6; }
20429 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20430 echo $ECHO_N "(cached
) $ECHO_C" >&6
20432 ac_check_lib_save_LIBS=$LIBS
20434 cat >conftest.$ac_ext <<_ACEOF
20437 cat confdefs.h >>conftest.$ac_ext
20438 cat >>conftest.$ac_ext <<_ACEOF
20439 /* end confdefs.h. */
20441 /* Override any GCC internal prototype to avoid an error.
20442 Use char because int might match the return type of a GCC
20443 builtin and then its argument prototype would still apply. */
20447 char des_cbc_encrypt ();
20451 return des_cbc_encrypt ();
20456 rm -f conftest.$ac_objext conftest$ac_exeext
20457 if { (ac_try="$ac_link"
20458 case "(($ac_try" in
20459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20460 *) ac_try_echo=$ac_try;;
20462 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20463 (eval "$ac_link") 2>conftest.er1
20465 grep -v '^ *+' conftest.er1 >conftest.err
20467 cat conftest.err >&5
20468 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20469 (exit $ac_status); } && {
20470 test -z "$ac_c_werror_flag" ||
20471 test ! -s conftest.err
20472 } && test -s conftest$ac_exeext &&
20473 $as_test_x conftest$ac_exeext; then
20474 ac_cv_lib_des_des_cbc_encrypt=yes
20476 echo "$as_me: failed program was
:" >&5
20477 sed 's/^/| /' conftest.$ac_ext >&5
20479 ac_cv_lib_des_des_cbc_encrypt=no
20482 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20483 conftest$ac_exeext conftest.$ac_ext
20484 LIBS=$ac_check_lib_save_LIBS
20486 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
20487 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20488 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20489 cat >>confdefs.h <<_ACEOF
20490 #define HAVE_LIBDES 1
20500 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
20501 echo $ECHO_N "checking
for krb_get_cred
in -lkrb4...
$ECHO_C" >&6; }
20502 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20503 echo $ECHO_N "(cached
) $ECHO_C" >&6
20505 ac_check_lib_save_LIBS=$LIBS
20506 LIBS="-lkrb4 $LIBS"
20507 cat >conftest.$ac_ext <<_ACEOF
20510 cat confdefs.h >>conftest.$ac_ext
20511 cat >>conftest.$ac_ext <<_ACEOF
20512 /* end confdefs.h. */
20514 /* Override any GCC internal prototype to avoid an error.
20515 Use char because int might match the return type of a GCC
20516 builtin and then its argument prototype would still apply. */
20520 char krb_get_cred ();
20524 return krb_get_cred ();
20529 rm -f conftest.$ac_objext conftest$ac_exeext
20530 if { (ac_try="$ac_link"
20531 case "(($ac_try" in
20532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20533 *) ac_try_echo=$ac_try;;
20535 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20536 (eval "$ac_link") 2>conftest.er1
20538 grep -v '^ *+' conftest.er1 >conftest.err
20540 cat conftest.err >&5
20541 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20542 (exit $ac_status); } && {
20543 test -z "$ac_c_werror_flag" ||
20544 test ! -s conftest.err
20545 } && test -s conftest$ac_exeext &&
20546 $as_test_x conftest$ac_exeext; then
20547 ac_cv_lib_krb4_krb_get_cred=yes
20549 echo "$as_me: failed program was
:" >&5
20550 sed 's/^/| /' conftest.$ac_ext >&5
20552 ac_cv_lib_krb4_krb_get_cred=no
20555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20556 conftest$ac_exeext conftest.$ac_ext
20557 LIBS=$ac_check_lib_save_LIBS
20559 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
20560 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20561 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20562 cat >>confdefs.h <<_ACEOF
20563 #define HAVE_LIBKRB4 1
20566 LIBS="-lkrb4 $LIBS"
20570 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
20571 echo $ECHO_N "checking
for krb_get_cred
in -lkrb...
$ECHO_C" >&6; }
20572 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20573 echo $ECHO_N "(cached
) $ECHO_C" >&6
20575 ac_check_lib_save_LIBS=$LIBS
20577 cat >conftest.$ac_ext <<_ACEOF
20580 cat confdefs.h >>conftest.$ac_ext
20581 cat >>conftest.$ac_ext <<_ACEOF
20582 /* end confdefs.h. */
20584 /* Override any GCC internal prototype to avoid an error.
20585 Use char because int might match the return type of a GCC
20586 builtin and then its argument prototype would still apply. */
20590 char krb_get_cred ();
20594 return krb_get_cred ();
20599 rm -f conftest.$ac_objext conftest$ac_exeext
20600 if { (ac_try="$ac_link"
20601 case "(($ac_try" in
20602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20603 *) ac_try_echo=$ac_try;;
20605 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20606 (eval "$ac_link") 2>conftest.er1
20608 grep -v '^ *+' conftest.er1 >conftest.err
20610 cat conftest.err >&5
20611 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20612 (exit $ac_status); } && {
20613 test -z "$ac_c_werror_flag" ||
20614 test ! -s conftest.err
20615 } && test -s conftest$ac_exeext &&
20616 $as_test_x conftest$ac_exeext; then
20617 ac_cv_lib_krb_krb_get_cred=yes
20619 echo "$as_me: failed program was
:" >&5
20620 sed 's/^/| /' conftest.$ac_ext >&5
20622 ac_cv_lib_krb_krb_get_cred=no
20625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20626 conftest$ac_exeext conftest.$ac_ext
20627 LIBS=$ac_check_lib_save_LIBS
20629 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
20630 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20631 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20632 cat >>confdefs.h <<_ACEOF
20633 #define HAVE_LIBKRB 1
20644 if test "${with_kerberos5+set}" = set; then
20646 for ac_header in krb5.h
20648 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20649 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20650 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20651 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20652 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20653 echo $ECHO_N "(cached
) $ECHO_C" >&6
20655 ac_res=`eval echo '${'$as_ac_Header'}'`
20656 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20657 echo "${ECHO_T}$ac_res" >&6; }
20659 # Is the header compilable?
20660 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20661 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20662 cat >conftest.$ac_ext <<_ACEOF
20665 cat confdefs.h >>conftest.$ac_ext
20666 cat >>conftest.$ac_ext <<_ACEOF
20667 /* end confdefs.h. */
20668 $ac_includes_default
20669 #include <$ac_header>
20671 rm -f conftest.$ac_objext
20672 if { (ac_try="$ac_compile"
20673 case "(($ac_try" in
20674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20675 *) ac_try_echo=$ac_try;;
20677 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20678 (eval "$ac_compile") 2>conftest.er1
20680 grep -v '^ *+' conftest.er1 >conftest.err
20682 cat conftest.err >&5
20683 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20684 (exit $ac_status); } && {
20685 test -z "$ac_c_werror_flag" ||
20686 test ! -s conftest.err
20687 } && test -s conftest.$ac_objext; then
20688 ac_header_compiler=yes
20690 echo "$as_me: failed program was
:" >&5
20691 sed 's/^/| /' conftest.$ac_ext >&5
20693 ac_header_compiler=no
20696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20697 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20698 echo "${ECHO_T}$ac_header_compiler" >&6; }
20700 # Is the header present?
20701 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20702 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20703 cat >conftest.$ac_ext <<_ACEOF
20706 cat confdefs.h >>conftest.$ac_ext
20707 cat >>conftest.$ac_ext <<_ACEOF
20708 /* end confdefs.h. */
20709 #include <$ac_header>
20711 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20712 case "(($ac_try" in
20713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20714 *) ac_try_echo=$ac_try;;
20716 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20717 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20719 grep -v '^ *+' conftest.er1 >conftest.err
20721 cat conftest.err >&5
20722 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20723 (exit $ac_status); } >/dev/null && {
20724 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20725 test ! -s conftest.err
20727 ac_header_preproc=yes
20729 echo "$as_me: failed program was
:" >&5
20730 sed 's/^/| /' conftest.$ac_ext >&5
20732 ac_header_preproc=no
20735 rm -f conftest.err conftest.$ac_ext
20736 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20737 echo "${ECHO_T}$ac_header_preproc" >&6; }
20739 # So? What about this header?
20740 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20742 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20743 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20744 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20745 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20746 ac_header_preproc=yes
20749 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20750 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20751 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20752 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20753 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20754 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20755 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20756 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20757 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20758 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20759 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20760 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20764 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20765 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20766 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20767 echo $ECHO_N "(cached
) $ECHO_C" >&6
20769 eval "$as_ac_Header=\
$ac_header_preproc"
20771 ac_res=`eval echo '${'$as_ac_Header'}'`
20772 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20773 echo "${ECHO_T}$ac_res" >&6; }
20776 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20777 cat >>confdefs.h <<_ACEOF
20778 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20787 for ac_header in des.h
20789 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20790 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20791 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20792 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20793 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20794 echo $ECHO_N "(cached
) $ECHO_C" >&6
20796 ac_res=`eval echo '${'$as_ac_Header'}'`
20797 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20798 echo "${ECHO_T}$ac_res" >&6; }
20800 # Is the header compilable?
20801 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20802 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20803 cat >conftest.$ac_ext <<_ACEOF
20806 cat confdefs.h >>conftest.$ac_ext
20807 cat >>conftest.$ac_ext <<_ACEOF
20808 /* end confdefs.h. */
20809 $ac_includes_default
20810 #include <$ac_header>
20812 rm -f conftest.$ac_objext
20813 if { (ac_try="$ac_compile"
20814 case "(($ac_try" in
20815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20816 *) ac_try_echo=$ac_try;;
20818 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20819 (eval "$ac_compile") 2>conftest.er1
20821 grep -v '^ *+' conftest.er1 >conftest.err
20823 cat conftest.err >&5
20824 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20825 (exit $ac_status); } && {
20826 test -z "$ac_c_werror_flag" ||
20827 test ! -s conftest.err
20828 } && test -s conftest.$ac_objext; then
20829 ac_header_compiler=yes
20831 echo "$as_me: failed program was
:" >&5
20832 sed 's/^/| /' conftest.$ac_ext >&5
20834 ac_header_compiler=no
20837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20838 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20839 echo "${ECHO_T}$ac_header_compiler" >&6; }
20841 # Is the header present?
20842 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20843 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20844 cat >conftest.$ac_ext <<_ACEOF
20847 cat confdefs.h >>conftest.$ac_ext
20848 cat >>conftest.$ac_ext <<_ACEOF
20849 /* end confdefs.h. */
20850 #include <$ac_header>
20852 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20853 case "(($ac_try" in
20854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20855 *) ac_try_echo=$ac_try;;
20857 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20858 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20860 grep -v '^ *+' conftest.er1 >conftest.err
20862 cat conftest.err >&5
20863 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20864 (exit $ac_status); } >/dev/null && {
20865 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20866 test ! -s conftest.err
20868 ac_header_preproc=yes
20870 echo "$as_me: failed program was
:" >&5
20871 sed 's/^/| /' conftest.$ac_ext >&5
20873 ac_header_preproc=no
20876 rm -f conftest.err conftest.$ac_ext
20877 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20878 echo "${ECHO_T}$ac_header_preproc" >&6; }
20880 # So? What about this header?
20881 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20883 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20884 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20885 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20886 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20887 ac_header_preproc=yes
20890 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20891 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20892 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20893 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20894 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20895 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20896 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20897 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20898 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20899 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20900 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20901 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20905 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20906 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20907 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20908 echo $ECHO_N "(cached
) $ECHO_C" >&6
20910 eval "$as_ac_Header=\
$ac_header_preproc"
20912 ac_res=`eval echo '${'$as_ac_Header'}'`
20913 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20914 echo "${ECHO_T}$ac_res" >&6; }
20917 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20918 cat >>confdefs.h <<_ACEOF
20919 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20924 for ac_header in kerberosIV/des.h
20926 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20927 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20928 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20929 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20930 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20931 echo $ECHO_N "(cached
) $ECHO_C" >&6
20933 ac_res=`eval echo '${'$as_ac_Header'}'`
20934 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20935 echo "${ECHO_T}$ac_res" >&6; }
20937 # Is the header compilable?
20938 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20939 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20940 cat >conftest.$ac_ext <<_ACEOF
20943 cat confdefs.h >>conftest.$ac_ext
20944 cat >>conftest.$ac_ext <<_ACEOF
20945 /* end confdefs.h. */
20946 $ac_includes_default
20947 #include <$ac_header>
20949 rm -f conftest.$ac_objext
20950 if { (ac_try="$ac_compile"
20951 case "(($ac_try" in
20952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20953 *) ac_try_echo=$ac_try;;
20955 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20956 (eval "$ac_compile") 2>conftest.er1
20958 grep -v '^ *+' conftest.er1 >conftest.err
20960 cat conftest.err >&5
20961 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20962 (exit $ac_status); } && {
20963 test -z "$ac_c_werror_flag" ||
20964 test ! -s conftest.err
20965 } && test -s conftest.$ac_objext; then
20966 ac_header_compiler=yes
20968 echo "$as_me: failed program was
:" >&5
20969 sed 's/^/| /' conftest.$ac_ext >&5
20971 ac_header_compiler=no
20974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20975 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20976 echo "${ECHO_T}$ac_header_compiler" >&6; }
20978 # Is the header present?
20979 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20980 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20981 cat >conftest.$ac_ext <<_ACEOF
20984 cat confdefs.h >>conftest.$ac_ext
20985 cat >>conftest.$ac_ext <<_ACEOF
20986 /* end confdefs.h. */
20987 #include <$ac_header>
20989 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20990 case "(($ac_try" in
20991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20992 *) ac_try_echo=$ac_try;;
20994 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20995 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20997 grep -v '^ *+' conftest.er1 >conftest.err
20999 cat conftest.err >&5
21000 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21001 (exit $ac_status); } >/dev/null && {
21002 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21003 test ! -s conftest.err
21005 ac_header_preproc=yes
21007 echo "$as_me: failed program was
:" >&5
21008 sed 's/^/| /' conftest.$ac_ext >&5
21010 ac_header_preproc=no
21013 rm -f conftest.err conftest.$ac_ext
21014 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21015 echo "${ECHO_T}$ac_header_preproc" >&6; }
21017 # So? What about this header?
21018 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21020 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21021 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21022 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21023 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21024 ac_header_preproc=yes
21027 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21028 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21029 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21030 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21031 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21032 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21033 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21034 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21035 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21036 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21037 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21038 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21042 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21043 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21044 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21045 echo $ECHO_N "(cached
) $ECHO_C" >&6
21047 eval "$as_ac_Header=\
$ac_header_preproc"
21049 ac_res=`eval echo '${'$as_ac_Header'}'`
21050 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21051 echo "${ECHO_T}$ac_res" >&6; }
21054 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21055 cat >>confdefs.h <<_ACEOF
21056 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21061 for ac_header in kerberos/des.h
21063 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21064 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21065 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21066 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21067 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21068 echo $ECHO_N "(cached
) $ECHO_C" >&6
21070 ac_res=`eval echo '${'$as_ac_Header'}'`
21071 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21072 echo "${ECHO_T}$ac_res" >&6; }
21074 # Is the header compilable?
21075 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21076 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21077 cat >conftest.$ac_ext <<_ACEOF
21080 cat confdefs.h >>conftest.$ac_ext
21081 cat >>conftest.$ac_ext <<_ACEOF
21082 /* end confdefs.h. */
21083 $ac_includes_default
21084 #include <$ac_header>
21086 rm -f conftest.$ac_objext
21087 if { (ac_try="$ac_compile"
21088 case "(($ac_try" in
21089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21090 *) ac_try_echo=$ac_try;;
21092 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21093 (eval "$ac_compile") 2>conftest.er1
21095 grep -v '^ *+' conftest.er1 >conftest.err
21097 cat conftest.err >&5
21098 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21099 (exit $ac_status); } && {
21100 test -z "$ac_c_werror_flag" ||
21101 test ! -s conftest.err
21102 } && test -s conftest.$ac_objext; then
21103 ac_header_compiler=yes
21105 echo "$as_me: failed program was
:" >&5
21106 sed 's/^/| /' conftest.$ac_ext >&5
21108 ac_header_compiler=no
21111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21112 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21113 echo "${ECHO_T}$ac_header_compiler" >&6; }
21115 # Is the header present?
21116 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21117 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21118 cat >conftest.$ac_ext <<_ACEOF
21121 cat confdefs.h >>conftest.$ac_ext
21122 cat >>conftest.$ac_ext <<_ACEOF
21123 /* end confdefs.h. */
21124 #include <$ac_header>
21126 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21127 case "(($ac_try" in
21128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21129 *) ac_try_echo=$ac_try;;
21131 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21132 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21134 grep -v '^ *+' conftest.er1 >conftest.err
21136 cat conftest.err >&5
21137 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21138 (exit $ac_status); } >/dev/null && {
21139 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21140 test ! -s conftest.err
21142 ac_header_preproc=yes
21144 echo "$as_me: failed program was
:" >&5
21145 sed 's/^/| /' conftest.$ac_ext >&5
21147 ac_header_preproc=no
21150 rm -f conftest.err conftest.$ac_ext
21151 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21152 echo "${ECHO_T}$ac_header_preproc" >&6; }
21154 # So? What about this header?
21155 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21157 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21158 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21159 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21160 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21161 ac_header_preproc=yes
21164 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21165 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21166 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21167 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21168 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21169 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21170 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21171 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21172 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21173 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21174 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21175 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21179 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21180 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21181 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21182 echo $ECHO_N "(cached
) $ECHO_C" >&6
21184 eval "$as_ac_Header=\
$ac_header_preproc"
21186 ac_res=`eval echo '${'$as_ac_Header'}'`
21187 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21188 echo "${ECHO_T}$ac_res" >&6; }
21191 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21192 cat >>confdefs.h <<_ACEOF
21193 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21209 for ac_header in krb.h
21211 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21212 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21213 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21214 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21215 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21216 echo $ECHO_N "(cached
) $ECHO_C" >&6
21218 ac_res=`eval echo '${'$as_ac_Header'}'`
21219 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21220 echo "${ECHO_T}$ac_res" >&6; }
21222 # Is the header compilable?
21223 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21224 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21225 cat >conftest.$ac_ext <<_ACEOF
21228 cat confdefs.h >>conftest.$ac_ext
21229 cat >>conftest.$ac_ext <<_ACEOF
21230 /* end confdefs.h. */
21231 $ac_includes_default
21232 #include <$ac_header>
21234 rm -f conftest.$ac_objext
21235 if { (ac_try="$ac_compile"
21236 case "(($ac_try" in
21237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21238 *) ac_try_echo=$ac_try;;
21240 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21241 (eval "$ac_compile") 2>conftest.er1
21243 grep -v '^ *+' conftest.er1 >conftest.err
21245 cat conftest.err >&5
21246 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21247 (exit $ac_status); } && {
21248 test -z "$ac_c_werror_flag" ||
21249 test ! -s conftest.err
21250 } && test -s conftest.$ac_objext; then
21251 ac_header_compiler=yes
21253 echo "$as_me: failed program was
:" >&5
21254 sed 's/^/| /' conftest.$ac_ext >&5
21256 ac_header_compiler=no
21259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21260 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21261 echo "${ECHO_T}$ac_header_compiler" >&6; }
21263 # Is the header present?
21264 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21265 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21266 cat >conftest.$ac_ext <<_ACEOF
21269 cat confdefs.h >>conftest.$ac_ext
21270 cat >>conftest.$ac_ext <<_ACEOF
21271 /* end confdefs.h. */
21272 #include <$ac_header>
21274 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21275 case "(($ac_try" in
21276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21277 *) ac_try_echo=$ac_try;;
21279 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21280 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21282 grep -v '^ *+' conftest.er1 >conftest.err
21284 cat conftest.err >&5
21285 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21286 (exit $ac_status); } >/dev/null && {
21287 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21288 test ! -s conftest.err
21290 ac_header_preproc=yes
21292 echo "$as_me: failed program was
:" >&5
21293 sed 's/^/| /' conftest.$ac_ext >&5
21295 ac_header_preproc=no
21298 rm -f conftest.err conftest.$ac_ext
21299 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21300 echo "${ECHO_T}$ac_header_preproc" >&6; }
21302 # So? What about this header?
21303 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21305 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21306 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21307 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21308 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21309 ac_header_preproc=yes
21312 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21313 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21314 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21315 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21316 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21317 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21318 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21319 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21320 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21321 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21322 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21323 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21327 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21328 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21329 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21330 echo $ECHO_N "(cached
) $ECHO_C" >&6
21332 eval "$as_ac_Header=\
$ac_header_preproc"
21334 ac_res=`eval echo '${'$as_ac_Header'}'`
21335 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21336 echo "${ECHO_T}$ac_res" >&6; }
21339 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21340 cat >>confdefs.h <<_ACEOF
21341 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21346 for ac_header in kerberosIV/krb.h
21348 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21349 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21350 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21351 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21352 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21353 echo $ECHO_N "(cached
) $ECHO_C" >&6
21355 ac_res=`eval echo '${'$as_ac_Header'}'`
21356 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21357 echo "${ECHO_T}$ac_res" >&6; }
21359 # Is the header compilable?
21360 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21361 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21362 cat >conftest.$ac_ext <<_ACEOF
21365 cat confdefs.h >>conftest.$ac_ext
21366 cat >>conftest.$ac_ext <<_ACEOF
21367 /* end confdefs.h. */
21368 $ac_includes_default
21369 #include <$ac_header>
21371 rm -f conftest.$ac_objext
21372 if { (ac_try="$ac_compile"
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_compile") 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); } && {
21385 test -z "$ac_c_werror_flag" ||
21386 test ! -s conftest.err
21387 } && test -s conftest.$ac_objext; then
21388 ac_header_compiler=yes
21390 echo "$as_me: failed program was
:" >&5
21391 sed 's/^/| /' conftest.$ac_ext >&5
21393 ac_header_compiler=no
21396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21397 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21398 echo "${ECHO_T}$ac_header_compiler" >&6; }
21400 # Is the header present?
21401 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21402 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21403 cat >conftest.$ac_ext <<_ACEOF
21406 cat confdefs.h >>conftest.$ac_ext
21407 cat >>conftest.$ac_ext <<_ACEOF
21408 /* end confdefs.h. */
21409 #include <$ac_header>
21411 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21412 case "(($ac_try" in
21413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21414 *) ac_try_echo=$ac_try;;
21416 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21417 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21419 grep -v '^ *+' conftest.er1 >conftest.err
21421 cat conftest.err >&5
21422 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21423 (exit $ac_status); } >/dev/null && {
21424 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21425 test ! -s conftest.err
21427 ac_header_preproc=yes
21429 echo "$as_me: failed program was
:" >&5
21430 sed 's/^/| /' conftest.$ac_ext >&5
21432 ac_header_preproc=no
21435 rm -f conftest.err conftest.$ac_ext
21436 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21437 echo "${ECHO_T}$ac_header_preproc" >&6; }
21439 # So? What about this header?
21440 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21442 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21443 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21444 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21445 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21446 ac_header_preproc=yes
21449 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21450 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21451 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21452 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21453 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21454 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21455 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21456 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21457 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21458 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21459 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21460 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21464 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21465 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21466 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21467 echo $ECHO_N "(cached
) $ECHO_C" >&6
21469 eval "$as_ac_Header=\
$ac_header_preproc"
21471 ac_res=`eval echo '${'$as_ac_Header'}'`
21472 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21473 echo "${ECHO_T}$ac_res" >&6; }
21476 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21477 cat >>confdefs.h <<_ACEOF
21478 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21483 for ac_header in kerberos/krb.h
21485 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21486 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21487 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21488 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21489 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21490 echo $ECHO_N "(cached
) $ECHO_C" >&6
21492 ac_res=`eval echo '${'$as_ac_Header'}'`
21493 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21494 echo "${ECHO_T}$ac_res" >&6; }
21496 # Is the header compilable?
21497 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21498 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21499 cat >conftest.$ac_ext <<_ACEOF
21502 cat confdefs.h >>conftest.$ac_ext
21503 cat >>conftest.$ac_ext <<_ACEOF
21504 /* end confdefs.h. */
21505 $ac_includes_default
21506 #include <$ac_header>
21508 rm -f conftest.$ac_objext
21509 if { (ac_try="$ac_compile"
21510 case "(($ac_try" in
21511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21512 *) ac_try_echo=$ac_try;;
21514 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21515 (eval "$ac_compile") 2>conftest.er1
21517 grep -v '^ *+' conftest.er1 >conftest.err
21519 cat conftest.err >&5
21520 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21521 (exit $ac_status); } && {
21522 test -z "$ac_c_werror_flag" ||
21523 test ! -s conftest.err
21524 } && test -s conftest.$ac_objext; then
21525 ac_header_compiler=yes
21527 echo "$as_me: failed program was
:" >&5
21528 sed 's/^/| /' conftest.$ac_ext >&5
21530 ac_header_compiler=no
21533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21534 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21535 echo "${ECHO_T}$ac_header_compiler" >&6; }
21537 # Is the header present?
21538 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21539 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21540 cat >conftest.$ac_ext <<_ACEOF
21543 cat confdefs.h >>conftest.$ac_ext
21544 cat >>conftest.$ac_ext <<_ACEOF
21545 /* end confdefs.h. */
21546 #include <$ac_header>
21548 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21549 case "(($ac_try" in
21550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21551 *) ac_try_echo=$ac_try;;
21553 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21554 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21556 grep -v '^ *+' conftest.er1 >conftest.err
21558 cat conftest.err >&5
21559 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21560 (exit $ac_status); } >/dev/null && {
21561 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21562 test ! -s conftest.err
21564 ac_header_preproc=yes
21566 echo "$as_me: failed program was
:" >&5
21567 sed 's/^/| /' conftest.$ac_ext >&5
21569 ac_header_preproc=no
21572 rm -f conftest.err conftest.$ac_ext
21573 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21574 echo "${ECHO_T}$ac_header_preproc" >&6; }
21576 # So? What about this header?
21577 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21579 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21580 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21581 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21582 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21583 ac_header_preproc=yes
21586 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21587 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21588 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21589 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21590 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21591 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21592 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21593 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21594 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21595 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21596 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21597 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21601 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21602 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21603 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21604 echo $ECHO_N "(cached
) $ECHO_C" >&6
21606 eval "$as_ac_Header=\
$ac_header_preproc"
21608 ac_res=`eval echo '${'$as_ac_Header'}'`
21609 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21610 echo "${ECHO_T}$ac_res" >&6; }
21613 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21614 cat >>confdefs.h <<_ACEOF
21615 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21632 for ac_header in com_err.h
21634 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21635 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21636 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21637 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21638 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21639 echo $ECHO_N "(cached
) $ECHO_C" >&6
21641 ac_res=`eval echo '${'$as_ac_Header'}'`
21642 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21643 echo "${ECHO_T}$ac_res" >&6; }
21645 # Is the header compilable?
21646 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21647 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21648 cat >conftest.$ac_ext <<_ACEOF
21651 cat confdefs.h >>conftest.$ac_ext
21652 cat >>conftest.$ac_ext <<_ACEOF
21653 /* end confdefs.h. */
21654 $ac_includes_default
21655 #include <$ac_header>
21657 rm -f conftest.$ac_objext
21658 if { (ac_try="$ac_compile"
21659 case "(($ac_try" in
21660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21661 *) ac_try_echo=$ac_try;;
21663 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21664 (eval "$ac_compile") 2>conftest.er1
21666 grep -v '^ *+' conftest.er1 >conftest.err
21668 cat conftest.err >&5
21669 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21670 (exit $ac_status); } && {
21671 test -z "$ac_c_werror_flag" ||
21672 test ! -s conftest.err
21673 } && test -s conftest.$ac_objext; then
21674 ac_header_compiler=yes
21676 echo "$as_me: failed program was
:" >&5
21677 sed 's/^/| /' conftest.$ac_ext >&5
21679 ac_header_compiler=no
21682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21683 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21684 echo "${ECHO_T}$ac_header_compiler" >&6; }
21686 # Is the header present?
21687 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21688 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21689 cat >conftest.$ac_ext <<_ACEOF
21692 cat confdefs.h >>conftest.$ac_ext
21693 cat >>conftest.$ac_ext <<_ACEOF
21694 /* end confdefs.h. */
21695 #include <$ac_header>
21697 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21698 case "(($ac_try" in
21699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21700 *) ac_try_echo=$ac_try;;
21702 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21703 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21705 grep -v '^ *+' conftest.er1 >conftest.err
21707 cat conftest.err >&5
21708 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21709 (exit $ac_status); } >/dev/null && {
21710 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21711 test ! -s conftest.err
21713 ac_header_preproc=yes
21715 echo "$as_me: failed program was
:" >&5
21716 sed 's/^/| /' conftest.$ac_ext >&5
21718 ac_header_preproc=no
21721 rm -f conftest.err conftest.$ac_ext
21722 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21723 echo "${ECHO_T}$ac_header_preproc" >&6; }
21725 # So? What about this header?
21726 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21728 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21729 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21730 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21731 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21732 ac_header_preproc=yes
21735 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21736 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21737 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21738 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21739 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21740 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21741 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21742 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21743 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21744 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21745 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21746 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21750 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21751 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21752 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21753 echo $ECHO_N "(cached
) $ECHO_C" >&6
21755 eval "$as_ac_Header=\
$ac_header_preproc"
21757 ac_res=`eval echo '${'$as_ac_Header'}'`
21758 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21759 echo "${ECHO_T}$ac_res" >&6; }
21762 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21763 cat >>confdefs.h <<_ACEOF
21764 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21773 # Solaris requires -lintl if you want strerror (which calls dgettext)
21774 # to return localized messages.
21776 { echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
21777 echo $ECHO_N "checking
for dgettext
in -lintl...
$ECHO_C" >&6; }
21778 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21779 echo $ECHO_N "(cached
) $ECHO_C" >&6
21781 ac_check_lib_save_LIBS=$LIBS
21782 LIBS="-lintl $LIBS"
21783 cat >conftest.$ac_ext <<_ACEOF
21786 cat confdefs.h >>conftest.$ac_ext
21787 cat >>conftest.$ac_ext <<_ACEOF
21788 /* end confdefs.h. */
21790 /* Override any GCC internal prototype to avoid an error.
21791 Use char because int might match the return type of a GCC
21792 builtin and then its argument prototype would still apply. */
21800 return dgettext ();
21805 rm -f conftest.$ac_objext conftest$ac_exeext
21806 if { (ac_try="$ac_link"
21807 case "(($ac_try" in
21808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21809 *) ac_try_echo=$ac_try;;
21811 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21812 (eval "$ac_link") 2>conftest.er1
21814 grep -v '^ *+' conftest.er1 >conftest.err
21816 cat conftest.err >&5
21817 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21818 (exit $ac_status); } && {
21819 test -z "$ac_c_werror_flag" ||
21820 test ! -s conftest.err
21821 } && test -s conftest$ac_exeext &&
21822 $as_test_x conftest$ac_exeext; then
21823 ac_cv_lib_intl_dgettext=yes
21825 echo "$as_me: failed program was
:" >&5
21826 sed 's/^/| /' conftest.$ac_ext >&5
21828 ac_cv_lib_intl_dgettext=no
21831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21832 conftest$ac_exeext conftest.$ac_ext
21833 LIBS=$ac_check_lib_save_LIBS
21835 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
21836 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
21837 if test $ac_cv_lib_intl_dgettext = yes; then
21838 cat >>confdefs.h <<_ACEOF
21839 #define HAVE_LIBINTL 1
21842 LIBS="-lintl $LIBS"
21847 { echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
21848 echo $ECHO_N "checking whether localtime caches TZ...
$ECHO_C" >&6; }
21849 if test "${emacs_cv_localtime_cache+set}" = set; then
21850 echo $ECHO_N "(cached
) $ECHO_C" >&6
21852 if test x$ac_cv_func_tzset = xyes; then
21853 if test "$cross_compiling" = yes; then
21854 # If we have tzset, assume the worst when cross-compiling.
21855 emacs_cv_localtime_cache=yes
21857 cat >conftest.$ac_ext <<_ACEOF
21860 cat confdefs.h >>conftest.$ac_ext
21861 cat >>conftest.$ac_ext <<_ACEOF
21862 /* end confdefs.h. */
21864 extern char **environ;
21868 for (to = from = environ; (*to = *from); from++)
21869 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
21872 char TZ_GMT0[] = "TZ
=GMT0
";
21873 char TZ_PST8[] = "TZ
=PST8
";
21876 time_t now = time ((time_t *) 0);
21877 int hour_GMT0, hour_unset;
21878 if (putenv (TZ_GMT0) != 0)
21880 hour_GMT0 = localtime (&now)->tm_hour;
21882 hour_unset = localtime (&now)->tm_hour;
21883 if (putenv (TZ_PST8) != 0)
21885 if (localtime (&now)->tm_hour == hour_GMT0)
21888 if (localtime (&now)->tm_hour != hour_unset)
21893 rm -f conftest$ac_exeext
21894 if { (ac_try="$ac_link"
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_link") 2>&5
21902 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21903 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21904 { (case "(($ac_try" in
21905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21906 *) ac_try_echo=$ac_try;;
21908 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21909 (eval "$ac_try") 2>&5
21911 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21912 (exit $ac_status); }; }; then
21913 emacs_cv_localtime_cache=no
21915 echo "$as_me: program exited with status
$ac_status" >&5
21916 echo "$as_me: failed program was
:" >&5
21917 sed 's/^/| /' conftest.$ac_ext >&5
21919 ( exit $ac_status )
21920 emacs_cv_localtime_cache=yes
21922 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21927 # If we lack tzset, report that localtime does not cache TZ,
21928 # since we can't invalidate the cache if we don't have tzset.
21929 emacs_cv_localtime_cache=no
21932 { echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
21933 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
21934 if test $emacs_cv_localtime_cache = yes; then
21936 cat >>confdefs.h <<\_ACEOF
21937 #define LOCALTIME_CACHE 1
21942 if test "x
$HAVE_TIMEVAL" = xyes; then
21944 for ac_func in gettimeofday
21946 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
21947 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
21948 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
21949 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
21950 echo $ECHO_N "(cached
) $ECHO_C" >&6
21952 cat >conftest.$ac_ext <<_ACEOF
21955 cat confdefs.h >>conftest.$ac_ext
21956 cat >>conftest.$ac_ext <<_ACEOF
21957 /* end confdefs.h. */
21958 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21959 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21960 #define $ac_func innocuous_$ac_func
21962 /* System header to define __stub macros and hopefully few prototypes,
21963 which can conflict with char $ac_func (); below.
21964 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21965 <limits.h> exists even on freestanding compilers. */
21968 # include <limits.h>
21970 # include <assert.h>
21975 /* Override any GCC internal prototype to avoid an error.
21976 Use char because int might match the return type of a GCC
21977 builtin and then its argument prototype would still apply. */
21982 /* The GNU C library defines this for functions which it implements
21983 to always fail with ENOSYS. Some functions are actually named
21984 something starting with __ and the normal name is an alias. */
21985 #if defined __stub_$ac_func || defined __stub___$ac_func
21992 return $ac_func ();
21997 rm -f conftest.$ac_objext conftest$ac_exeext
21998 if { (ac_try="$ac_link"
21999 case "(($ac_try" in
22000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22001 *) ac_try_echo=$ac_try;;
22003 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22004 (eval "$ac_link") 2>conftest.er1
22006 grep -v '^ *+' conftest.er1 >conftest.err
22008 cat conftest.err >&5
22009 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22010 (exit $ac_status); } && {
22011 test -z "$ac_c_werror_flag" ||
22012 test ! -s conftest.err
22013 } && test -s conftest$ac_exeext &&
22014 $as_test_x conftest$ac_exeext; then
22015 eval "$as_ac_var=yes"
22017 echo "$as_me: failed program was
:" >&5
22018 sed 's/^/| /' conftest.$ac_ext >&5
22020 eval "$as_ac_var=no
"
22023 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22024 conftest$ac_exeext conftest.$ac_ext
22026 ac_res=`eval echo '${'$as_ac_var'}'`
22027 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22028 echo "${ECHO_T}$ac_res" >&6; }
22029 if test `eval echo '${'$as_ac_var'}'` = yes; then
22030 cat >>confdefs.h <<_ACEOF
22031 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
22037 if test $ac_cv_func_gettimeofday = yes; then
22038 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
22039 echo $ECHO_N "checking whether gettimeofday can accept two arguments...
$ECHO_C" >&6; }
22040 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22041 echo $ECHO_N "(cached
) $ECHO_C" >&6
22043 cat >conftest.$ac_ext <<_ACEOF
22046 cat confdefs.h >>conftest.$ac_ext
22047 cat >>conftest.$ac_ext <<_ACEOF
22048 /* end confdefs.h. */
22050 #ifdef TIME_WITH_SYS_TIME
22051 #include <sys/time.h>
22054 #ifdef HAVE_SYS_TIME_H
22055 #include <sys/time.h>
22063 struct timeval time;
22064 gettimeofday (&time, 0);
22069 rm -f conftest.$ac_objext
22070 if { (ac_try="$ac_compile"
22071 case "(($ac_try" in
22072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22073 *) ac_try_echo=$ac_try;;
22075 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22076 (eval "$ac_compile") 2>conftest.er1
22078 grep -v '^ *+' conftest.er1 >conftest.err
22080 cat conftest.err >&5
22081 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22082 (exit $ac_status); } && {
22083 test -z "$ac_c_werror_flag" ||
22084 test ! -s conftest.err
22085 } && test -s conftest.$ac_objext; then
22086 emacs_cv_gettimeofday_two_arguments=yes
22088 echo "$as_me: failed program was
:" >&5
22089 sed 's/^/| /' conftest.$ac_ext >&5
22091 emacs_cv_gettimeofday_two_arguments=no
22094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22096 { echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
22097 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22098 if test $emacs_cv_gettimeofday_two_arguments = no; then
22100 cat >>confdefs.h <<\_ACEOF
22101 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22109 { echo "$as_me:$LINENO: checking
for socket
" >&5
22110 echo $ECHO_N "checking
for socket...
$ECHO_C" >&6; }
22111 if test "${ac_cv_func_socket+set}" = set; then
22112 echo $ECHO_N "(cached
) $ECHO_C" >&6
22114 cat >conftest.$ac_ext <<_ACEOF
22117 cat confdefs.h >>conftest.$ac_ext
22118 cat >>conftest.$ac_ext <<_ACEOF
22119 /* end confdefs.h. */
22120 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22121 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22122 #define socket innocuous_socket
22124 /* System header to define __stub macros and hopefully few prototypes,
22125 which can conflict with char socket (); below.
22126 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22127 <limits.h> exists even on freestanding compilers. */
22130 # include <limits.h>
22132 # include <assert.h>
22137 /* Override any GCC internal prototype to avoid an error.
22138 Use char because int might match the return type of a GCC
22139 builtin and then its argument prototype would still apply. */
22144 /* The GNU C library defines this for functions which it implements
22145 to always fail with ENOSYS. Some functions are actually named
22146 something starting with __ and the normal name is an alias. */
22147 #if defined __stub_socket || defined __stub___socket
22159 rm -f conftest.$ac_objext conftest$ac_exeext
22160 if { (ac_try="$ac_link"
22161 case "(($ac_try" in
22162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22163 *) ac_try_echo=$ac_try;;
22165 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22166 (eval "$ac_link") 2>conftest.er1
22168 grep -v '^ *+' conftest.er1 >conftest.err
22170 cat conftest.err >&5
22171 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22172 (exit $ac_status); } && {
22173 test -z "$ac_c_werror_flag" ||
22174 test ! -s conftest.err
22175 } && test -s conftest$ac_exeext &&
22176 $as_test_x conftest$ac_exeext; then
22177 ac_cv_func_socket=yes
22179 echo "$as_me: failed program was
:" >&5
22180 sed 's/^/| /' conftest.$ac_ext >&5
22182 ac_cv_func_socket=no
22185 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22186 conftest$ac_exeext conftest.$ac_ext
22188 { echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
22189 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22190 if test $ac_cv_func_socket = yes; then
22196 if test $ok_so_far = yes; then
22197 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22198 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
22199 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
22200 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22201 echo $ECHO_N "(cached
) $ECHO_C" >&6
22203 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
22204 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22206 # Is the header compilable?
22207 { echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
22208 echo $ECHO_N "checking netinet
/in.h usability...
$ECHO_C" >&6; }
22209 cat >conftest.$ac_ext <<_ACEOF
22212 cat confdefs.h >>conftest.$ac_ext
22213 cat >>conftest.$ac_ext <<_ACEOF
22214 /* end confdefs.h. */
22215 $ac_includes_default
22216 #include <netinet/in.h>
22218 rm -f conftest.$ac_objext
22219 if { (ac_try="$ac_compile"
22220 case "(($ac_try" in
22221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22222 *) ac_try_echo=$ac_try;;
22224 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22225 (eval "$ac_compile") 2>conftest.er1
22227 grep -v '^ *+' conftest.er1 >conftest.err
22229 cat conftest.err >&5
22230 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22231 (exit $ac_status); } && {
22232 test -z "$ac_c_werror_flag" ||
22233 test ! -s conftest.err
22234 } && test -s conftest.$ac_objext; then
22235 ac_header_compiler=yes
22237 echo "$as_me: failed program was
:" >&5
22238 sed 's/^/| /' conftest.$ac_ext >&5
22240 ac_header_compiler=no
22243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22244 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22245 echo "${ECHO_T}$ac_header_compiler" >&6; }
22247 # Is the header present?
22248 { echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
22249 echo $ECHO_N "checking netinet
/in.h presence...
$ECHO_C" >&6; }
22250 cat >conftest.$ac_ext <<_ACEOF
22253 cat confdefs.h >>conftest.$ac_ext
22254 cat >>conftest.$ac_ext <<_ACEOF
22255 /* end confdefs.h. */
22256 #include <netinet/in.h>
22258 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22259 case "(($ac_try" in
22260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22261 *) ac_try_echo=$ac_try;;
22263 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22264 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22266 grep -v '^ *+' conftest.er1 >conftest.err
22268 cat conftest.err >&5
22269 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22270 (exit $ac_status); } >/dev/null && {
22271 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22272 test ! -s conftest.err
22274 ac_header_preproc=yes
22276 echo "$as_me: failed program was
:" >&5
22277 sed 's/^/| /' conftest.$ac_ext >&5
22279 ac_header_preproc=no
22282 rm -f conftest.err conftest.$ac_ext
22283 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22284 echo "${ECHO_T}$ac_header_preproc" >&6; }
22286 # So? What about this header?
22287 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22289 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22290 echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22291 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
22292 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
22293 ac_header_preproc=yes
22296 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
22297 echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
22298 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
22299 echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
22300 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
22301 echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
22302 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22303 echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22304 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
22305 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
22306 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
22307 echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
22311 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
22312 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
22313 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22314 echo $ECHO_N "(cached
) $ECHO_C" >&6
22316 ac_cv_header_netinet_in_h=$ac_header_preproc
22318 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
22319 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22322 if test $ac_cv_header_netinet_in_h = yes; then
22330 if test $ok_so_far = yes; then
22331 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22332 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22333 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22334 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22335 echo $ECHO_N "(cached
) $ECHO_C" >&6
22337 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22338 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22340 # Is the header compilable?
22341 { echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
22342 echo $ECHO_N "checking arpa
/inet.h usability...
$ECHO_C" >&6; }
22343 cat >conftest.$ac_ext <<_ACEOF
22346 cat confdefs.h >>conftest.$ac_ext
22347 cat >>conftest.$ac_ext <<_ACEOF
22348 /* end confdefs.h. */
22349 $ac_includes_default
22350 #include <arpa/inet.h>
22352 rm -f conftest.$ac_objext
22353 if { (ac_try="$ac_compile"
22354 case "(($ac_try" in
22355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22356 *) ac_try_echo=$ac_try;;
22358 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22359 (eval "$ac_compile") 2>conftest.er1
22361 grep -v '^ *+' conftest.er1 >conftest.err
22363 cat conftest.err >&5
22364 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22365 (exit $ac_status); } && {
22366 test -z "$ac_c_werror_flag" ||
22367 test ! -s conftest.err
22368 } && test -s conftest.$ac_objext; then
22369 ac_header_compiler=yes
22371 echo "$as_me: failed program was
:" >&5
22372 sed 's/^/| /' conftest.$ac_ext >&5
22374 ac_header_compiler=no
22377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22378 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22379 echo "${ECHO_T}$ac_header_compiler" >&6; }
22381 # Is the header present?
22382 { echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
22383 echo $ECHO_N "checking arpa
/inet.h presence...
$ECHO_C" >&6; }
22384 cat >conftest.$ac_ext <<_ACEOF
22387 cat confdefs.h >>conftest.$ac_ext
22388 cat >>conftest.$ac_ext <<_ACEOF
22389 /* end confdefs.h. */
22390 #include <arpa/inet.h>
22392 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22393 case "(($ac_try" in
22394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22395 *) ac_try_echo=$ac_try;;
22397 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22398 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22400 grep -v '^ *+' conftest.er1 >conftest.err
22402 cat conftest.err >&5
22403 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22404 (exit $ac_status); } >/dev/null && {
22405 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22406 test ! -s conftest.err
22408 ac_header_preproc=yes
22410 echo "$as_me: failed program was
:" >&5
22411 sed 's/^/| /' conftest.$ac_ext >&5
22413 ac_header_preproc=no
22416 rm -f conftest.err conftest.$ac_ext
22417 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22418 echo "${ECHO_T}$ac_header_preproc" >&6; }
22420 # So? What about this header?
22421 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22423 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22424 echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22425 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
22426 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
22427 ac_header_preproc=yes
22430 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
22431 echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
22432 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
22433 echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
22434 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
22435 echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
22436 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22437 echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22438 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
22439 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
22440 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
22441 echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
22445 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22446 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22447 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22448 echo $ECHO_N "(cached
) $ECHO_C" >&6
22450 ac_cv_header_arpa_inet_h=$ac_header_preproc
22452 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22453 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22456 if test $ac_cv_header_arpa_inet_h = yes; then
22464 if test $ok_so_far = yes; then
22466 cat >>confdefs.h <<\_ACEOF
22467 #define HAVE_INET_SOCKETS 1
22473 for ac_header in sys/ioctl.h
22475 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22476 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22477 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22478 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22479 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22480 echo $ECHO_N "(cached
) $ECHO_C" >&6
22482 ac_res=`eval echo '${'$as_ac_Header'}'`
22483 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22484 echo "${ECHO_T}$ac_res" >&6; }
22486 # Is the header compilable?
22487 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22488 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22489 cat >conftest.$ac_ext <<_ACEOF
22492 cat confdefs.h >>conftest.$ac_ext
22493 cat >>conftest.$ac_ext <<_ACEOF
22494 /* end confdefs.h. */
22495 $ac_includes_default
22496 #include <$ac_header>
22498 rm -f conftest.$ac_objext
22499 if { (ac_try="$ac_compile"
22500 case "(($ac_try" in
22501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22502 *) ac_try_echo=$ac_try;;
22504 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22505 (eval "$ac_compile") 2>conftest.er1
22507 grep -v '^ *+' conftest.er1 >conftest.err
22509 cat conftest.err >&5
22510 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22511 (exit $ac_status); } && {
22512 test -z "$ac_c_werror_flag" ||
22513 test ! -s conftest.err
22514 } && test -s conftest.$ac_objext; then
22515 ac_header_compiler=yes
22517 echo "$as_me: failed program was
:" >&5
22518 sed 's/^/| /' conftest.$ac_ext >&5
22520 ac_header_compiler=no
22523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22524 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22525 echo "${ECHO_T}$ac_header_compiler" >&6; }
22527 # Is the header present?
22528 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22529 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22530 cat >conftest.$ac_ext <<_ACEOF
22533 cat confdefs.h >>conftest.$ac_ext
22534 cat >>conftest.$ac_ext <<_ACEOF
22535 /* end confdefs.h. */
22536 #include <$ac_header>
22538 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22539 case "(($ac_try" in
22540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22541 *) ac_try_echo=$ac_try;;
22543 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22544 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22546 grep -v '^ *+' conftest.er1 >conftest.err
22548 cat conftest.err >&5
22549 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22550 (exit $ac_status); } >/dev/null && {
22551 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22552 test ! -s conftest.err
22554 ac_header_preproc=yes
22556 echo "$as_me: failed program was
:" >&5
22557 sed 's/^/| /' conftest.$ac_ext >&5
22559 ac_header_preproc=no
22562 rm -f conftest.err conftest.$ac_ext
22563 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22564 echo "${ECHO_T}$ac_header_preproc" >&6; }
22566 # So? What about this header?
22567 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22569 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22570 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22571 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22572 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22573 ac_header_preproc=yes
22576 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22577 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22578 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22579 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22580 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22581 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22582 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22583 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22584 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22585 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22586 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22587 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22591 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22592 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22593 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22594 echo $ECHO_N "(cached
) $ECHO_C" >&6
22596 eval "$as_ac_Header=\
$ac_header_preproc"
22598 ac_res=`eval echo '${'$as_ac_Header'}'`
22599 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22600 echo "${ECHO_T}$ac_res" >&6; }
22603 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22604 cat >>confdefs.h <<_ACEOF
22605 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22613 if test -f /usr/lpp/X11/bin/smt.exp; then
22615 cat >>confdefs.h <<\_ACEOF
22616 #define HAVE_AIX_SMT_EXP 1
22621 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
22622 echo $ECHO_N "checking whether system supports dynamic ptys...
$ECHO_C" >&6; }
22623 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22624 { echo "$as_me:$LINENO: result
: yes" >&5
22625 echo "${ECHO_T}yes" >&6; }
22627 cat >>confdefs.h <<\_ACEOF
22628 #define HAVE_DEV_PTMX 1
22632 { echo "$as_me:$LINENO: result
: no
" >&5
22633 echo "${ECHO_T}no
" >&6; }
22636 { echo "$as_me:$LINENO: checking
for pid_t
" >&5
22637 echo $ECHO_N "checking
for pid_t...
$ECHO_C" >&6; }
22638 if test "${ac_cv_type_pid_t+set}" = set; then
22639 echo $ECHO_N "(cached
) $ECHO_C" >&6
22641 cat >conftest.$ac_ext <<_ACEOF
22644 cat confdefs.h >>conftest.$ac_ext
22645 cat >>conftest.$ac_ext <<_ACEOF
22646 /* end confdefs.h. */
22647 $ac_includes_default
22648 typedef pid_t ac__type_new_;
22652 if ((ac__type_new_ *) 0)
22654 if (sizeof (ac__type_new_))
22660 rm -f conftest.$ac_objext
22661 if { (ac_try="$ac_compile"
22662 case "(($ac_try" in
22663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22664 *) ac_try_echo=$ac_try;;
22666 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22667 (eval "$ac_compile") 2>conftest.er1
22669 grep -v '^ *+' conftest.er1 >conftest.err
22671 cat conftest.err >&5
22672 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22673 (exit $ac_status); } && {
22674 test -z "$ac_c_werror_flag" ||
22675 test ! -s conftest.err
22676 } && test -s conftest.$ac_objext; then
22677 ac_cv_type_pid_t=yes
22679 echo "$as_me: failed program was
:" >&5
22680 sed 's/^/| /' conftest.$ac_ext >&5
22682 ac_cv_type_pid_t=no
22685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22687 { echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
22688 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22689 if test $ac_cv_type_pid_t = yes; then
22693 cat >>confdefs.h <<_ACEOF
22700 for ac_header in vfork.h
22702 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22703 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22704 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22705 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22706 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22707 echo $ECHO_N "(cached
) $ECHO_C" >&6
22709 ac_res=`eval echo '${'$as_ac_Header'}'`
22710 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22711 echo "${ECHO_T}$ac_res" >&6; }
22713 # Is the header compilable?
22714 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22715 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22716 cat >conftest.$ac_ext <<_ACEOF
22719 cat confdefs.h >>conftest.$ac_ext
22720 cat >>conftest.$ac_ext <<_ACEOF
22721 /* end confdefs.h. */
22722 $ac_includes_default
22723 #include <$ac_header>
22725 rm -f conftest.$ac_objext
22726 if { (ac_try="$ac_compile"
22727 case "(($ac_try" in
22728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22729 *) ac_try_echo=$ac_try;;
22731 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22732 (eval "$ac_compile") 2>conftest.er1
22734 grep -v '^ *+' conftest.er1 >conftest.err
22736 cat conftest.err >&5
22737 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22738 (exit $ac_status); } && {
22739 test -z "$ac_c_werror_flag" ||
22740 test ! -s conftest.err
22741 } && test -s conftest.$ac_objext; then
22742 ac_header_compiler=yes
22744 echo "$as_me: failed program was
:" >&5
22745 sed 's/^/| /' conftest.$ac_ext >&5
22747 ac_header_compiler=no
22750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22751 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22752 echo "${ECHO_T}$ac_header_compiler" >&6; }
22754 # Is the header present?
22755 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22756 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22757 cat >conftest.$ac_ext <<_ACEOF
22760 cat confdefs.h >>conftest.$ac_ext
22761 cat >>conftest.$ac_ext <<_ACEOF
22762 /* end confdefs.h. */
22763 #include <$ac_header>
22765 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22766 case "(($ac_try" in
22767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22768 *) ac_try_echo=$ac_try;;
22770 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22771 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22773 grep -v '^ *+' conftest.er1 >conftest.err
22775 cat conftest.err >&5
22776 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22777 (exit $ac_status); } >/dev/null && {
22778 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22779 test ! -s conftest.err
22781 ac_header_preproc=yes
22783 echo "$as_me: failed program was
:" >&5
22784 sed 's/^/| /' conftest.$ac_ext >&5
22786 ac_header_preproc=no
22789 rm -f conftest.err conftest.$ac_ext
22790 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22791 echo "${ECHO_T}$ac_header_preproc" >&6; }
22793 # So? What about this header?
22794 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22796 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22797 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22798 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22799 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22800 ac_header_preproc=yes
22803 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22804 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22805 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22806 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22807 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22808 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22809 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22810 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22811 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22812 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22813 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22814 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22818 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22819 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22820 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22821 echo $ECHO_N "(cached
) $ECHO_C" >&6
22823 eval "$as_ac_Header=\
$ac_header_preproc"
22825 ac_res=`eval echo '${'$as_ac_Header'}'`
22826 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22827 echo "${ECHO_T}$ac_res" >&6; }
22830 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22831 cat >>confdefs.h <<_ACEOF
22832 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22841 for ac_func in fork vfork
22843 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
22844 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
22845 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
22846 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
22847 echo $ECHO_N "(cached
) $ECHO_C" >&6
22849 cat >conftest.$ac_ext <<_ACEOF
22852 cat confdefs.h >>conftest.$ac_ext
22853 cat >>conftest.$ac_ext <<_ACEOF
22854 /* end confdefs.h. */
22855 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22856 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22857 #define $ac_func innocuous_$ac_func
22859 /* System header to define __stub macros and hopefully few prototypes,
22860 which can conflict with char $ac_func (); below.
22861 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22862 <limits.h> exists even on freestanding compilers. */
22865 # include <limits.h>
22867 # include <assert.h>
22872 /* Override any GCC internal prototype to avoid an error.
22873 Use char because int might match the return type of a GCC
22874 builtin and then its argument prototype would still apply. */
22879 /* The GNU C library defines this for functions which it implements
22880 to always fail with ENOSYS. Some functions are actually named
22881 something starting with __ and the normal name is an alias. */
22882 #if defined __stub_$ac_func || defined __stub___$ac_func
22889 return $ac_func ();
22894 rm -f conftest.$ac_objext conftest$ac_exeext
22895 if { (ac_try="$ac_link"
22896 case "(($ac_try" in
22897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22898 *) ac_try_echo=$ac_try;;
22900 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22901 (eval "$ac_link") 2>conftest.er1
22903 grep -v '^ *+' conftest.er1 >conftest.err
22905 cat conftest.err >&5
22906 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22907 (exit $ac_status); } && {
22908 test -z "$ac_c_werror_flag" ||
22909 test ! -s conftest.err
22910 } && test -s conftest$ac_exeext &&
22911 $as_test_x conftest$ac_exeext; then
22912 eval "$as_ac_var=yes"
22914 echo "$as_me: failed program was
:" >&5
22915 sed 's/^/| /' conftest.$ac_ext >&5
22917 eval "$as_ac_var=no
"
22920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22921 conftest$ac_exeext conftest.$ac_ext
22923 ac_res=`eval echo '${'$as_ac_var'}'`
22924 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22925 echo "${ECHO_T}$ac_res" >&6; }
22926 if test `eval echo '${'$as_ac_var'}'` = yes; then
22927 cat >>confdefs.h <<_ACEOF
22928 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
22934 if test "x
$ac_cv_func_fork" = xyes; then
22935 { echo "$as_me:$LINENO: checking
for working fork
" >&5
22936 echo $ECHO_N "checking
for working fork...
$ECHO_C" >&6; }
22937 if test "${ac_cv_func_fork_works+set}" = set; then
22938 echo $ECHO_N "(cached
) $ECHO_C" >&6
22940 if test "$cross_compiling" = yes; then
22941 ac_cv_func_fork_works=cross
22943 cat >conftest.$ac_ext <<_ACEOF
22946 cat confdefs.h >>conftest.$ac_ext
22947 cat >>conftest.$ac_ext <<_ACEOF
22948 /* end confdefs.h. */
22949 $ac_includes_default
22954 /* By Ruediger Kuhlmann. */
22955 return fork () < 0;
22961 rm -f conftest$ac_exeext
22962 if { (ac_try="$ac_link"
22963 case "(($ac_try" in
22964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22965 *) ac_try_echo=$ac_try;;
22967 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22968 (eval "$ac_link") 2>&5
22970 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22971 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22972 { (case "(($ac_try" in
22973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22974 *) ac_try_echo=$ac_try;;
22976 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22977 (eval "$ac_try") 2>&5
22979 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22980 (exit $ac_status); }; }; then
22981 ac_cv_func_fork_works=yes
22983 echo "$as_me: program exited with status
$ac_status" >&5
22984 echo "$as_me: failed program was
:" >&5
22985 sed 's/^/| /' conftest.$ac_ext >&5
22987 ( exit $ac_status )
22988 ac_cv_func_fork_works=no
22990 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22995 { echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
22996 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
22999 ac_cv_func_fork_works=$ac_cv_func_fork
23001 if test "x
$ac_cv_func_fork_works" = xcross; then
23003 *-*-amigaos* | *-*-msdosdjgpp*)
23004 # Override, as these systems have only a dummy fork() stub
23005 ac_cv_func_fork_works=no
23008 ac_cv_func_fork_works=yes
23011 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
23012 echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
23014 ac_cv_func_vfork_works=$ac_cv_func_vfork
23015 if test "x
$ac_cv_func_vfork" = xyes; then
23016 { echo "$as_me:$LINENO: checking
for working vfork
" >&5
23017 echo $ECHO_N "checking
for working vfork...
$ECHO_C" >&6; }
23018 if test "${ac_cv_func_vfork_works+set}" = set; then
23019 echo $ECHO_N "(cached
) $ECHO_C" >&6
23021 if test "$cross_compiling" = yes; then
23022 ac_cv_func_vfork_works=cross
23024 cat >conftest.$ac_ext <<_ACEOF
23027 cat confdefs.h >>conftest.$ac_ext
23028 cat >>conftest.$ac_ext <<_ACEOF
23029 /* end confdefs.h. */
23030 /* Thanks to Paul Eggert for this test. */
23031 $ac_includes_default
23032 #include <sys/wait.h>
23033 #ifdef HAVE_VFORK_H
23034 # include <vfork.h>
23036 /* On some sparc systems, changes by the child to local and incoming
23037 argument registers are propagated back to the parent. The compiler
23038 is told about this with #include <vfork.h>, but some compilers
23039 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23040 static variable whose address is put into a register that is
23041 clobbered by the vfork. */
23044 sparc_address_test (int arg)
23046 sparc_address_test (arg) int arg;
23049 static pid_t child;
23067 pid_t parent = getpid ();
23070 sparc_address_test (0);
23075 /* Here is another test for sparc vfork register problems. This
23076 test uses lots of local variables, at least as many local
23077 variables as main has allocated so far including compiler
23078 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23079 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23080 reuse the register of parent for one of the local variables,
23081 since it will think that parent can't possibly be used any more
23082 in this routine. Assigning to the local variable will thus
23083 munge parent in the parent process. */
23085 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23086 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23087 /* Convince the compiler that p..p7 are live; otherwise, it might
23088 use the same hardware register for all 8 local variables. */
23089 if (p != p1 || p != p2 || p != p3 || p != p4
23090 || p != p5 || p != p6 || p != p7)
23093 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23094 from child file descriptors. If the child closes a descriptor
23095 before it execs or exits, this munges the parent's descriptor
23096 as well. Test for this by closing stdout in the child. */
23097 _exit(close(fileno(stdout)) != 0);
23102 while (wait(&status) != child)
23105 /* Was there some problem with vforking? */
23108 /* Did the child fail? (This shouldn't happen.) */
23111 /* Did the vfork/compiler bug occur? */
23112 || parent != getpid()
23114 /* Did the file descriptor bug occur? */
23115 || fstat(fileno(stdout), &st) != 0
23120 rm -f conftest$ac_exeext
23121 if { (ac_try="$ac_link"
23122 case "(($ac_try" in
23123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23124 *) ac_try_echo=$ac_try;;
23126 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23127 (eval "$ac_link") 2>&5
23129 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23130 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23131 { (case "(($ac_try" in
23132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23133 *) ac_try_echo=$ac_try;;
23135 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23136 (eval "$ac_try") 2>&5
23138 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23139 (exit $ac_status); }; }; then
23140 ac_cv_func_vfork_works=yes
23142 echo "$as_me: program exited with status
$ac_status" >&5
23143 echo "$as_me: failed program was
:" >&5
23144 sed 's/^/| /' conftest.$ac_ext >&5
23146 ( exit $ac_status )
23147 ac_cv_func_vfork_works=no
23149 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23154 { echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
23155 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23158 if test "x
$ac_cv_func_fork_works" = xcross; then
23159 ac_cv_func_vfork_works=$ac_cv_func_vfork
23160 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
23161 echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
23164 if test "x
$ac_cv_func_vfork_works" = xyes; then
23166 cat >>confdefs.h <<\_ACEOF
23167 #define HAVE_WORKING_VFORK 1
23172 cat >>confdefs.h <<\_ACEOF
23177 if test "x
$ac_cv_func_fork_works" = xyes; then
23179 cat >>confdefs.h <<\_ACEOF
23180 #define HAVE_WORKING_FORK 1
23186 { echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
23187 echo $ECHO_N "checking
for nl_langinfo and CODESET...
$ECHO_C" >&6; }
23188 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23189 echo $ECHO_N "(cached
) $ECHO_C" >&6
23191 cat >conftest.$ac_ext <<_ACEOF
23194 cat confdefs.h >>conftest.$ac_ext
23195 cat >>conftest.$ac_ext <<_ACEOF
23196 /* end confdefs.h. */
23197 #include <langinfo.h>
23201 char* cs = nl_langinfo(CODESET);
23206 rm -f conftest.$ac_objext conftest$ac_exeext
23207 if { (ac_try="$ac_link"
23208 case "(($ac_try" in
23209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23210 *) ac_try_echo=$ac_try;;
23212 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23213 (eval "$ac_link") 2>conftest.er1
23215 grep -v '^ *+' conftest.er1 >conftest.err
23217 cat conftest.err >&5
23218 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23219 (exit $ac_status); } && {
23220 test -z "$ac_c_werror_flag" ||
23221 test ! -s conftest.err
23222 } && test -s conftest$ac_exeext &&
23223 $as_test_x conftest$ac_exeext; then
23224 emacs_cv_langinfo_codeset=yes
23226 echo "$as_me: failed program was
:" >&5
23227 sed 's/^/| /' conftest.$ac_ext >&5
23229 emacs_cv_langinfo_codeset=no
23232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23233 conftest$ac_exeext conftest.$ac_ext
23236 { echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
23237 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23238 if test $emacs_cv_langinfo_codeset = yes; then
23240 cat >>confdefs.h <<\_ACEOF
23241 #define HAVE_LANGINFO_CODESET 1
23246 { echo "$as_me:$LINENO: checking
for size_t
" >&5
23247 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
23248 if test "${ac_cv_type_size_t+set}" = set; then
23249 echo $ECHO_N "(cached
) $ECHO_C" >&6
23251 cat >conftest.$ac_ext <<_ACEOF
23254 cat confdefs.h >>conftest.$ac_ext
23255 cat >>conftest.$ac_ext <<_ACEOF
23256 /* end confdefs.h. */
23257 $ac_includes_default
23258 typedef size_t ac__type_new_;
23262 if ((ac__type_new_ *) 0)
23264 if (sizeof (ac__type_new_))
23270 rm -f conftest.$ac_objext
23271 if { (ac_try="$ac_compile"
23272 case "(($ac_try" in
23273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23274 *) ac_try_echo=$ac_try;;
23276 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23277 (eval "$ac_compile") 2>conftest.er1
23279 grep -v '^ *+' conftest.er1 >conftest.err
23281 cat conftest.err >&5
23282 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23283 (exit $ac_status); } && {
23284 test -z "$ac_c_werror_flag" ||
23285 test ! -s conftest.err
23286 } && test -s conftest.$ac_objext; then
23287 ac_cv_type_size_t=yes
23289 echo "$as_me: failed program was
:" >&5
23290 sed 's/^/| /' conftest.$ac_ext >&5
23292 ac_cv_type_size_t=no
23295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23297 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
23298 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23299 if test $ac_cv_type_size_t = yes; then
23301 cat >>confdefs.h <<_ACEOF
23302 #define HAVE_SIZE_T 1
23309 { echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
23310 echo $ECHO_N "checking
for mbstate_t...
$ECHO_C" >&6; }
23311 if test "${ac_cv_type_mbstate_t+set}" = set; then
23312 echo $ECHO_N "(cached
) $ECHO_C" >&6
23314 cat >conftest.$ac_ext <<_ACEOF
23317 cat confdefs.h >>conftest.$ac_ext
23318 cat >>conftest.$ac_ext <<_ACEOF
23319 /* end confdefs.h. */
23320 $ac_includes_default
23321 # include <wchar.h>
23325 mbstate_t x; return sizeof x;
23330 rm -f conftest.$ac_objext
23331 if { (ac_try="$ac_compile"
23332 case "(($ac_try" in
23333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23334 *) ac_try_echo=$ac_try;;
23336 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23337 (eval "$ac_compile") 2>conftest.er1
23339 grep -v '^ *+' conftest.er1 >conftest.err
23341 cat conftest.err >&5
23342 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23343 (exit $ac_status); } && {
23344 test -z "$ac_c_werror_flag" ||
23345 test ! -s conftest.err
23346 } && test -s conftest.$ac_objext; then
23347 ac_cv_type_mbstate_t=yes
23349 echo "$as_me: failed program was
:" >&5
23350 sed 's/^/| /' conftest.$ac_ext >&5
23352 ac_cv_type_mbstate_t=no
23355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23357 { echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
23358 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23359 if test $ac_cv_type_mbstate_t = yes; then
23361 cat >>confdefs.h <<\_ACEOF
23362 #define HAVE_MBSTATE_T 1
23367 cat >>confdefs.h <<\_ACEOF
23368 #define mbstate_t int
23373 { echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
23374 echo $ECHO_N "checking
for C restrict keyword...
$ECHO_C" >&6; }
23375 if test "${emacs_cv_c_restrict+set}" = set; then
23376 echo $ECHO_N "(cached
) $ECHO_C" >&6
23378 cat >conftest.$ac_ext <<_ACEOF
23381 cat confdefs.h >>conftest.$ac_ext
23382 cat >>conftest.$ac_ext <<_ACEOF
23383 /* end confdefs.h. */
23384 void fred (int *restrict x);
23393 rm -f conftest.$ac_objext
23394 if { (ac_try="$ac_compile"
23395 case "(($ac_try" in
23396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23397 *) ac_try_echo=$ac_try;;
23399 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23400 (eval "$ac_compile") 2>conftest.er1
23402 grep -v '^ *+' conftest.er1 >conftest.err
23404 cat conftest.err >&5
23405 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23406 (exit $ac_status); } && {
23407 test -z "$ac_c_werror_flag" ||
23408 test ! -s conftest.err
23409 } && test -s conftest.$ac_objext; then
23410 emacs_cv_c_restrict=yes
23412 echo "$as_me: failed program was
:" >&5
23413 sed 's/^/| /' conftest.$ac_ext >&5
23415 cat >conftest.$ac_ext <<_ACEOF
23418 cat confdefs.h >>conftest.$ac_ext
23419 cat >>conftest.$ac_ext <<_ACEOF
23420 /* end confdefs.h. */
23421 void fred (int *__restrict x);
23430 rm -f conftest.$ac_objext
23431 if { (ac_try="$ac_compile"
23432 case "(($ac_try" in
23433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23434 *) ac_try_echo=$ac_try;;
23436 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23437 (eval "$ac_compile") 2>conftest.er1
23439 grep -v '^ *+' conftest.er1 >conftest.err
23441 cat conftest.err >&5
23442 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23443 (exit $ac_status); } && {
23444 test -z "$ac_c_werror_flag" ||
23445 test ! -s conftest.err
23446 } && test -s conftest.$ac_objext; then
23447 emacs_cv_c_restrict=__restrict
23449 echo "$as_me: failed program was
:" >&5
23450 sed 's/^/| /' conftest.$ac_ext >&5
23452 emacs_cv_c_restrict=no
23455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23460 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
23461 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23462 case "$emacs_cv_c_restrict" in
23463 yes) emacs_restrict=restrict;;
23464 no) emacs_restrict="";;
23465 *) emacs_restrict="$emacs_cv_c_restrict";;
23467 if test "$emacs_restrict" != __restrict; then
23469 cat >>confdefs.h <<_ACEOF
23470 #define __restrict $emacs_restrict
23475 { echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
23476 echo $ECHO_N "checking
for C restricted array declarations...
$ECHO_C" >&6; }
23477 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23478 echo $ECHO_N "(cached
) $ECHO_C" >&6
23480 cat >conftest.$ac_ext <<_ACEOF
23483 cat confdefs.h >>conftest.$ac_ext
23484 cat >>conftest.$ac_ext <<_ACEOF
23485 /* end confdefs.h. */
23486 void fred (int x[__restrict]);
23495 rm -f conftest.$ac_objext
23496 if { (ac_try="$ac_compile"
23497 case "(($ac_try" in
23498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23499 *) ac_try_echo=$ac_try;;
23501 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23502 (eval "$ac_compile") 2>conftest.er1
23504 grep -v '^ *+' conftest.er1 >conftest.err
23506 cat conftest.err >&5
23507 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23508 (exit $ac_status); } && {
23509 test -z "$ac_c_werror_flag" ||
23510 test ! -s conftest.err
23511 } && test -s conftest.$ac_objext; then
23512 emacs_cv_c_restrict_arr=yes
23514 echo "$as_me: failed program was
:" >&5
23515 sed 's/^/| /' conftest.$ac_ext >&5
23517 emacs_cv_c_restrict_arr=no
23520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23522 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
23523 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23524 if test "$emacs_cv_c_restrict_arr" = yes; then
23526 cat >>confdefs.h <<\_ACEOF
23527 #define __restrict_arr __restrict
23534 # Set up the CFLAGS for real compilation, so we can substitute it.
23535 CFLAGS="$REAL_CFLAGS"
23536 CPPFLAGS="$REAL_CPPFLAGS"
23538 #### Find out which version of Emacs this is.
23539 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23540 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
23541 if test x"${version}" = x; then
23542 { { echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&5
23543 echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&2;}
23544 { (exit 1); exit 1; }; }
23547 ### Specify what sort of things we'll be editing into Makefile and config.h.
23548 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23584 cat >>confdefs.h <<_ACEOF
23585 #define EMACS_CONFIGURATION "${canonical}"
23589 cat >>confdefs.h <<_ACEOF
23590 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23594 cat >>confdefs.h <<_ACEOF
23595 #define config_machfile "${machfile}"
23599 cat >>confdefs.h <<_ACEOF
23600 #define config_opsysfile "${opsysfile}"
23604 cat >>confdefs.h <<_ACEOF
23605 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23609 cat >>confdefs.h <<_ACEOF
23610 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23614 cat >>confdefs.h <<_ACEOF
23615 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23619 cat >>confdefs.h <<_ACEOF
23620 #define UNEXEC_SRC ${UNEXEC_SRC}
23624 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23626 cat >>confdefs.h <<\_ACEOF
23627 #define HAVE_X_WINDOWS 1
23631 if test "${USE_X_TOOLKIT}" != "none
" ; then
23633 cat >>confdefs.h <<\_ACEOF
23634 #define USE_X_TOOLKIT 1
23638 if test "${HAVE_X11}" = "yes" ; then
23640 cat >>confdefs.h <<\_ACEOF
23645 if test "${HAVE_XFREE386}" = "yes" ; then
23647 cat >>confdefs.h <<\_ACEOF
23648 #define HAVE_XFREE386 1
23652 if test "${HAVE_MENUS}" = "yes" ; then
23654 cat >>confdefs.h <<\_ACEOF
23655 #define HAVE_MENUS 1
23659 if test "${GNU_MALLOC}" = "yes" ; then
23661 cat >>confdefs.h <<\_ACEOF
23662 #define GNU_MALLOC 1
23666 if test "${REL_ALLOC}" = "yes" ; then
23668 cat >>confdefs.h <<\_ACEOF
23669 #define REL_ALLOC 1
23678 #### Report on what we decided to do.
23679 #### Report GTK as a toolkit, even if it doesn't use Xt.
23680 #### It makes printing result more understandable as using GTK sets
23681 #### toolkit_scroll_bars to yes by default.
23682 if test "${HAVE_GTK}" = "yes"; then
23687 Configured
for \
`${canonical}'.
23689 Where should the build process find the source code? ${srcdir}
23690 What operating system and machine description files should Emacs use?
23691 \`${opsysfile}' and \`${machfile}'
23692 What compiler should emacs be built with?
${CC} ${CFLAGS}
23693 Should Emacs use the GNU version of malloc?
${GNU_MALLOC}${GNU_MALLOC_reason}
23694 Should Emacs use a relocating allocator
for buffers?
${REL_ALLOC}
23695 Should Emacs use mmap
(2) for buffer allocation?
$use_mmap_for_buffers
23696 What window system should Emacs use?
${window_system}
23697 What toolkit should Emacs use?
${USE_X_TOOLKIT}"
23699 if test -n "${x_includes}"; then
23700 echo " Where
do we
find X Windows header files?
${x_includes}"
23702 echo " Where
do we
find X Windows header files? Standard
dirs"
23704 if test -n "${x_libraries}"; then
23705 echo " Where
do we
find X Windows libraries?
${x_libraries}"
23707 echo " Where
do we
find X Windows libraries? Standard
dirs"
23710 echo " Does Emacs use
-lXaw3d?
${HAVE_XAW3D}"
23711 echo " Does Emacs use
-lXpm?
${HAVE_XPM}"
23712 echo " Does Emacs use
-ljpeg?
${HAVE_JPEG}"
23713 echo " Does Emacs use
-ltiff?
${HAVE_TIFF}"
23714 echo " Does Emacs use
-lungif?
${HAVE_GIF}"
23715 echo " Does Emacs use
-lpng?
${HAVE_PNG}"
23716 echo " Does Emacs use
-lgpm?
${HAVE_GPM}"
23717 echo " Does Emacs use X toolkit scroll bars?
${USE_TOOLKIT_SCROLL_BARS}"
23720 if test $USE_XASSERTS = yes; then
23721 echo " Compiling with asserts turned on.
"
23722 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23726 if test "$USE_X_TOOLKIT" = GTK; then
23727 case "$canonical" in
23729 echo "There are known problems with Emacs and Gtk
+ on cygwin
, so you
23730 will probably get a crash on startup. If this happens
, please use another
23731 toolkit
for Emacs. See etc
/PROBLEMS
for more information.
"
23738 # Remove any trailing slashes in these variables.
23739 test "${prefix}" != NONE &&
23740 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23741 test "${exec_prefix}" != NONE &&
23742 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23744 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23745 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23746 ## from Makefile.c can correctly provide the arg `-traditional' to the
23749 cat >conftest.$ac_ext <<_ACEOF
23752 cat confdefs.h >>conftest.$ac_ext
23753 cat >>conftest.$ac_ext <<_ACEOF
23754 /* end confdefs.h. */
23757 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
23758 $EGREP "yes..
yes" >/dev/null 2>&1; then
23759 CPP_NEED_TRADITIONAL=no
23761 CPP_NEED_TRADITIONAL=yes
23766 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
"
23768 ac_config_commands="$ac_config_commands default
"
23770 cat >confcache <<\_ACEOF
23771 # This file is a shell script that caches the results of configure
23772 # tests run on this system so they can be shared between configure
23773 # scripts and configure runs, see configure's option --config-cache.
23774 # It is not useful on other systems. If it contains results you don't
23775 # want to keep, you may remove or edit it.
23777 # config.status only pays attention to the cache file if you give it
23778 # the --recheck option to rerun configure.
23780 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23781 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23782 # following values.
23786 # The following way of writing the cache mishandles newlines in values,
23787 # but we know of no workaround that is simple, portable, and efficient.
23788 # So, we kill variables containing newlines.
23789 # Ultrix sh set writes to stderr and can't be redirected directly,
23790 # and sets the high bit in the cache file unless we assign to the vars.
23792 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23793 eval ac_val=\$$ac_var
23797 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
23798 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
23801 _ | IFS | as_nl) ;; #(
23802 *) $as_unset $ac_var ;;
23808 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23809 *${as_nl}ac_space=\ *)
23810 # `set' does not quote correctly, so add quotes (double-quote
23811 # substitution turns \\\\ into \\, and sed turns \\ into \).
23814 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
23817 # `set' quotes correctly as required by POSIX, so do not add quotes.
23818 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
23827 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23829 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23831 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23832 if test -w "$cache_file"; then
23833 test "x
$cache_file" != "x
/dev
/null
" &&
23834 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
23835 echo "$as_me: updating cache
$cache_file" >&6;}
23836 cat confcache >$cache_file
23838 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
23839 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
23844 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
23845 # Let make expand exec_prefix.
23846 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
23848 DEFS=-DHAVE_CONFIG_H
23852 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
23853 # 1. Remove the extension, and $U if already installed.
23854 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23855 ac_i=`echo "$ac_i" | sed "$ac_script"`
23856 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23857 # will be set to the directory where LIBOBJS objects are built.
23858 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
23859 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
23861 LIBOBJS=$ac_libobjs
23863 LTLIBOBJS=$ac_ltlibobjs
23867 : ${CONFIG_STATUS=./config.status}
23868 ac_clean_files_save=$ac_clean_files
23869 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23870 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
23871 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
23872 cat >$CONFIG_STATUS <<_ACEOF
23874 # Generated by $as_me.
23875 # Run this file to recreate the current configuration.
23876 # Compiler output produced by configure, useful for debugging
23877 # configure, is in config.log if it exists.
23880 ac_cs_recheck=false
23882 SHELL=\${CONFIG_SHELL-$SHELL}
23885 cat >>$CONFIG_STATUS <<\_ACEOF
23886 ## --------------------- ##
23887 ## M4sh Initialization. ##
23888 ## --------------------- ##
23890 # Be more Bourne compatible
23891 DUALCASE=1; export DUALCASE # for MKS sh
23892 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23895 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23896 # is contrary to our usage. Disable this feature.
23897 alias -g '${1+"$@"}'='"$@
"'
23898 setopt NO_GLOB_SUBST
23900 case `(set -o) 2>/dev/null` in
23901 *posix*) set -o posix ;;
23910 # Avoid depending upon Character Ranges.
23911 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23912 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23913 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23914 as_cr_digits='0123456789'
23915 as_cr_alnum=$as_cr_Letters$as_cr_digits
23917 # The user is always right.
23918 if test "${PATH_SEPARATOR+set}" != set; then
23919 echo "#! /bin/sh" >conf$$.sh
23920 echo "exit 0" >>conf$$.sh
23922 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
23930 # Support unset when possible.
23931 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
23939 # We need space, tab and new line, in precisely that order. Quoting is
23940 # there to prevent editors from complaining about space-tab.
23941 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23942 # splitting by setting IFS to empty value.)
23947 # Find who we are. Look in the path if we contain no directory separator.
23949 *[\\/]* ) as_myself
=$0 ;;
23950 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23951 for as_dir
in $PATH
23954 test -z "$as_dir" && as_dir
=.
23955 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
23961 # We did not find ourselves, most probably we were run as `sh COMMAND'
23962 # in which case we are not to be found in the path.
23963 if test "x$as_myself" = x
; then
23966 if test ! -f "$as_myself"; then
23967 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23968 { (exit 1); exit 1; }
23971 # Work around bugs in pre-3.0 UWIN ksh.
23972 for as_var
in ENV MAIL MAILPATH
23973 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
23981 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23982 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23983 LC_TELEPHONE LC_TIME
23985 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23986 eval $as_var=C
; export $as_var
23988 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
23992 # Required to use basename.
23993 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
23994 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24000 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24001 as_basename
=basename
24007 # Name of the executable.
24008 as_me
=`$as_basename -- "$0" ||
24009 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24010 X"$0" : 'X\(//\)$' \| \
24011 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24013 sed '/^.*\/\([^/][^/]*\)\/*$/{
24032 as_lineno_1
=$LINENO
24033 as_lineno_2
=$LINENO
24034 test "x$as_lineno_1" != "x$as_lineno_2" &&
24035 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
24037 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24038 # uniformly replaced by the line number. The first 'sed' inserts a
24039 # line-number line after each line using $LINENO; the second 'sed'
24040 # does the real work. The second script uses 'N' to pair each
24041 # line-number line with the line containing $LINENO, and appends
24042 # trailing '-' during substitution so that $LINENO is not a special
24043 # case at line end.
24044 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24045 # scripts with optimization help from Paolo Bonzini. Blame Lee
24046 # E. McMahon (1931-1989) for sed's syntax. :-)
24058 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24061 ' >$as_me.lineno
&&
24062 chmod +x
"$as_me.lineno" ||
24063 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24064 { (exit 1); exit 1; }; }
24066 # Don't try to exec as it changes $[0], causing all sort of problems
24067 # (the dirname of $[0] is not the place where we might find the
24068 # original and so on. Autoconf is especially sensitive to this).
24069 .
"./$as_me.lineno"
24070 # Exit status is that of the last command.
24075 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
24081 ECHO_C
= ECHO_N
= ECHO_T
=
24082 case `echo -n x` in
24084 case `echo 'x\c'` in
24085 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
24092 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24093 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24099 rm -f conf$$ conf$$.exe conf$$.
file
24100 if test -d conf$$.dir
; then
24101 rm -f conf$$.dir
/conf$$.
file
24107 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
24109 # ... but there are two gotchas:
24110 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24111 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24112 # In both cases, we have to default to `cp -p'.
24113 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
24115 elif ln conf$$.
file conf$$
2>/dev
/null
; then
24120 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
24121 rmdir conf$$.dir
2>/dev
/null
24123 if mkdir
-p .
2>/dev
/null
; then
24126 test -d .
/-p && rmdir .
/-p
24130 if test -x / >/dev
/null
2>&1; then
24131 as_test_x
='test -x'
24133 if ls -dL / >/dev
/null
2>&1; then
24140 if test -d "$1"; then
24146 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24147 ???[sx]*):;;*)false;;esac;fi
24151 as_executable_p
=$as_test_x
24153 # Sed expression to map a string onto a valid CPP name.
24154 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24156 # Sed expression to map a string onto a valid variable name.
24157 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24162 # Save the log message, to keep $[0] and so on meaningful, and to
24163 # report actual input values of CONFIG_FILES etc. instead of their
24164 # values after options handling.
24166 This file was extended by $as_me, which was
24167 generated by GNU Autoconf 2.61. Invocation command line was
24169 CONFIG_FILES = $CONFIG_FILES
24170 CONFIG_HEADERS = $CONFIG_HEADERS
24171 CONFIG_LINKS = $CONFIG_LINKS
24172 CONFIG_COMMANDS = $CONFIG_COMMANDS
24175 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24180 cat >>$CONFIG_STATUS <<_ACEOF
24181 # Files that config.status was made for.
24182 config_files="$ac_config_files"
24183 config_headers="$ac_config_headers"
24184 config_commands="$ac_config_commands"
24188 cat >>$CONFIG_STATUS <<\_ACEOF
24190 \`$as_me' instantiates files from templates according to the
24191 current configuration.
24193 Usage: $0 [OPTIONS] [FILE]...
24195 -h, --help print this help, then exit
24196 -V, --version print version number and configuration settings, then exit
24197 -q, --quiet do not print progress messages
24198 -d, --debug don't remove temporary files
24199 --recheck update $as_me by reconfiguring in the same conditions
24200 --file=FILE[:TEMPLATE]
24201 instantiate the configuration file FILE
24202 --header=FILE[:TEMPLATE]
24203 instantiate the configuration header FILE
24205 Configuration files:
24208 Configuration headers:
24211 Configuration commands:
24214 Report bugs to <bug-autoconf@gnu.org>."
24217 cat >>$CONFIG_STATUS <<_ACEOF
24220 configured by $0, generated by GNU Autoconf 2.61,
24221 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24223 Copyright (C) 2006 Free Software Foundation, Inc.
24224 This config.status script is free software; the Free Software Foundation
24225 gives unlimited permission to copy, distribute and modify it."
24232 cat >>$CONFIG_STATUS <<\_ACEOF
24233 # If no file are specified by the user, then we need to provide default
24234 # value. By we need to know if files were specified by the user.
24240 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
24241 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
24252 # Handling of the options.
24253 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
24255 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
24256 echo "$ac_cs_version"; exit ;;
24257 --debug |
--debu |
--deb |
--de |
--d |
-d )
24259 --file |
--fil |
--fi |
--f )
24261 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
24262 ac_need_defaults
=false
;;
24263 --header |
--heade |
--head |
--hea )
24265 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
24266 ac_need_defaults
=false
;;
24268 # Conflict between --help and --header
24269 { echo "$as_me: error: ambiguous option: $1
24270 Try \`$0 --help' for more information." >&2
24271 { (exit 1); exit 1; }; };;
24272 --help |
--hel |
-h )
24273 echo "$ac_cs_usage"; exit ;;
24274 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
24275 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
24278 # This is an error.
24279 -*) { echo "$as_me: error: unrecognized option: $1
24280 Try \`$0 --help' for more information." >&2
24281 { (exit 1); exit 1; }; } ;;
24283 *) ac_config_targets
="$ac_config_targets $1"
24284 ac_need_defaults
=false
;;
24290 ac_configure_extra_args
=
24292 if $ac_cs_silent; then
24294 ac_configure_extra_args
="$ac_configure_extra_args --silent"
24298 cat >>$CONFIG_STATUS <<_ACEOF
24299 if \$ac_cs_recheck; then
24300 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24301 CONFIG_SHELL=$SHELL
24302 export CONFIG_SHELL
24303 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24307 cat >>$CONFIG_STATUS <<\_ACEOF
24311 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24312 ## Running $as_me. ##
24318 cat >>$CONFIG_STATUS <<_ACEOF
24322 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
24326 cat >>$CONFIG_STATUS <<\_ACEOF
24328 # Handling of arguments.
24329 for ac_config_target
in $ac_config_targets
24331 case $ac_config_target in
24332 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24333 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
24334 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24335 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
24336 "man/Makefile") CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
24337 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
24338 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24339 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
24340 "lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
24341 "lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
24342 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
24343 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
24345 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24346 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24347 { (exit 1); exit 1; }; };;
24352 # If the user did not use the arguments to specify the items to instantiate,
24353 # then the envvar interface is used. Set only those that are not.
24354 # We use the long form for the default assignment because of an extremely
24355 # bizarre bug on SunOS 4.1.3.
24356 if $ac_need_defaults; then
24357 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
24358 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
24359 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
24362 # Have a temporary directory for convenience. Make it in the build tree
24363 # simply because there is no reason against having it here, and in addition,
24364 # creating and moving files from /tmp can sometimes cause problems.
24365 # Hook for its removal unless debugging.
24366 # Note that there is a small window in which the directory will not be cleaned:
24367 # after its creation but before its name has been assigned to `$tmp'.
24371 trap 'exit_status=$?
24372 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24374 trap '{ (exit 1); exit 1; }' 1 2 13 15
24376 # Create a (secure) tmp directory for tmp files.
24379 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24380 test -n "$tmp" && test -d "$tmp"
24383 tmp
=.
/conf$$
-$RANDOM
24384 (umask 077 && mkdir
"$tmp")
24387 echo "$me: cannot create a temporary directory in ." >&2
24388 { (exit 1); exit 1; }
24392 # Set up the sed scripts for CONFIG_FILES section.
24395 # No need to generate the scripts if there are no CONFIG_FILES.
24396 # This happens for instance when ./config.status config.h
24397 if test -n "$CONFIG_FILES"; then
24404 for ac_last_try
in false false false false false
:; do
24405 cat >conf$
$subs.
sed <<_ACEOF
24406 SHELL!$SHELL$ac_delim
24407 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24408 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24409 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24410 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24411 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24412 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24413 exec_prefix!$exec_prefix$ac_delim
24414 prefix!$prefix$ac_delim
24415 program_transform_name!$program_transform_name$ac_delim
24416 bindir!$bindir$ac_delim
24417 sbindir!$sbindir$ac_delim
24418 libexecdir!$libexecdir$ac_delim
24419 datarootdir!$datarootdir$ac_delim
24420 datadir!$datadir$ac_delim
24421 sysconfdir!$sysconfdir$ac_delim
24422 sharedstatedir!$sharedstatedir$ac_delim
24423 localstatedir!$localstatedir$ac_delim
24424 includedir!$includedir$ac_delim
24425 oldincludedir!$oldincludedir$ac_delim
24426 docdir!$docdir$ac_delim
24427 infodir!$infodir$ac_delim
24428 htmldir!$htmldir$ac_delim
24429 dvidir!$dvidir$ac_delim
24430 pdfdir!$pdfdir$ac_delim
24431 psdir!$psdir$ac_delim
24432 libdir!$libdir$ac_delim
24433 localedir!$localedir$ac_delim
24434 mandir!$mandir$ac_delim
24435 DEFS!$DEFS$ac_delim
24436 ECHO_C!$ECHO_C$ac_delim
24437 ECHO_N!$ECHO_N$ac_delim
24438 ECHO_T!$ECHO_T$ac_delim
24439 LIBS!$LIBS$ac_delim
24440 build_alias!$build_alias$ac_delim
24441 host_alias!$host_alias$ac_delim
24442 target_alias!$target_alias$ac_delim
24443 MAINT!$MAINT$ac_delim
24444 build!$build$ac_delim
24445 build_cpu!$build_cpu$ac_delim
24446 build_vendor!$build_vendor$ac_delim
24447 build_os!$build_os$ac_delim
24448 host!$host$ac_delim
24449 host_cpu!$host_cpu$ac_delim
24450 host_vendor!$host_vendor$ac_delim
24451 host_os!$host_os$ac_delim
24453 CFLAGS!$CFLAGS$ac_delim
24454 LDFLAGS!$LDFLAGS$ac_delim
24455 CPPFLAGS!$CPPFLAGS$ac_delim
24456 ac_ct_CC!$ac_ct_CC$ac_delim
24457 EXEEXT!$EXEEXT$ac_delim
24458 OBJEXT!$OBJEXT$ac_delim
24460 GREP!$GREP$ac_delim
24461 EGREP!$EGREP$ac_delim
24462 LN_S!$LN_S$ac_delim
24463 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24464 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24465 INSTALL_DATA!$INSTALL_DATA$ac_delim
24466 RANLIB!$RANLIB$ac_delim
24467 INSTALL_INFO!$INSTALL_INFO$ac_delim
24468 GZIP_PROG!$GZIP_PROG$ac_delim
24469 LIBSOUND!$LIBSOUND$ac_delim
24470 PKG_CONFIG!$PKG_CONFIG$ac_delim
24471 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24472 ALSA_LIBS!$ALSA_LIBS$ac_delim
24473 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24474 SET_MAKE!$SET_MAKE$ac_delim
24475 XMKMF!$XMKMF$ac_delim
24476 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24477 GTK_LIBS!$GTK_LIBS$ac_delim
24478 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24479 XFT_LIBS!$XFT_LIBS$ac_delim
24480 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
24481 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
24482 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
24483 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
24484 HAVE_LIBOTF!$HAVE_LIBOTF$ac_delim
24485 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
24486 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
24487 ALLOCA!$ALLOCA$ac_delim
24488 liblockfile!$liblockfile$ac_delim
24489 LIBOBJS!$LIBOBJS$ac_delim
24490 NEED_SETGID!$NEED_SETGID$ac_delim
24491 KMEM_GROUP!$KMEM_GROUP$ac_delim
24492 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24493 GETOPT_H!$GETOPT_H$ac_delim
24494 GETOPTOBJS!$GETOPTOBJS$ac_delim
24495 version!$version$ac_delim
24496 configuration!$configuration$ac_delim
24497 canonical!$canonical$ac_delim
24498 srcdir!$srcdir$ac_delim
24499 lispdir!$lispdir$ac_delim
24500 locallisppath!$locallisppath$ac_delim
24501 lisppath!$lisppath$ac_delim
24502 x_default_search_path!$x_default_search_path$ac_delim
24505 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24507 elif $ac_last_try; then
24508 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24509 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24510 { (exit 1); exit 1; }; }
24512 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24516 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24517 if test -n "$ac_eof"; then
24518 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24519 ac_eof
=`expr $ac_eof + 1`
24522 cat >>$CONFIG_STATUS <<_ACEOF
24523 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24524 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24527 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24528 s/^/s,@/; s/!/@,|#_!!_#|/
24531 s/'"$ac_delim"'$/,g/; t
24533 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24534 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24535 rm -f conf$
$subs.
sed
24536 cat >>$CONFIG_STATUS <<_ACEOF
24542 for ac_last_try
in false false false false false
:; do
24543 cat >conf$
$subs.
sed <<_ACEOF
24544 etcdir!$etcdir$ac_delim
24545 archlibdir!$archlibdir$ac_delim
24546 bitmapdir!$bitmapdir$ac_delim
24547 gamedir!$gamedir$ac_delim
24548 gameuser!$gameuser$ac_delim
24549 c_switch_system!$c_switch_system$ac_delim
24550 c_switch_machine!$c_switch_machine$ac_delim
24551 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
24552 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
24553 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
24554 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
24555 machfile!$machfile$ac_delim
24556 opsysfile!$opsysfile$ac_delim
24557 carbon_appdir!$carbon_appdir$ac_delim
24558 LTLIBOBJS!$LTLIBOBJS$ac_delim
24561 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 15; then
24563 elif $ac_last_try; then
24564 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24565 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24566 { (exit 1); exit 1; }; }
24568 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24572 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24573 if test -n "$ac_eof"; then
24574 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24575 ac_eof
=`expr $ac_eof + 1`
24578 cat >>$CONFIG_STATUS <<_ACEOF
24579 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24580 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24583 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24584 s/^/s,@/; s/!/@,|#_!!_#|/
24587 s/'"$ac_delim"'$/,g/; t
24589 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24590 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24591 rm -f conf$
$subs.
sed
24592 cat >>$CONFIG_STATUS <<_ACEOF
24599 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24600 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24601 # trailing colons and then remove the whole line if VPATH becomes empty
24602 # (actually we leave an empty line to preserve line numbers).
24603 if test "x$srcdir" = x.
; then
24604 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
24605 s/:*\$(srcdir):*/:/
24606 s/:*\${srcdir}:*/:/
24608 s/^\([^=]*=[ ]*\):*/\1/
24614 cat >>$CONFIG_STATUS <<\_ACEOF
24615 fi # test -n "$CONFIG_FILES"
24618 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
24621 :[FHLC
]) ac_mode
=$ac_tag; continue;;
24623 case $ac_mode$ac_tag in
24625 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24626 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24627 { (exit 1); exit 1; }; };;
24628 :[FH
]-) ac_tag
=-:-;;
24629 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
24646 -) ac_f
="$tmp/stdin";;
24647 *) # Look for the file first in the build tree, then in the source tree
24648 # (if the path is not absolute). The absolute path cannot be DOS-style,
24649 # because $ac_f cannot contain `:'.
24653 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
24655 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24656 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24657 { (exit 1); exit 1; }; };;
24659 ac_file_inputs
="$ac_file_inputs $ac_f"
24662 # Let's still pretend it is `configure' which instantiates (i.e., don't
24663 # use $as_me), people would be surprised to read:
24664 # /* config.h. Generated by config.status. */
24665 configure_input
="Generated from "`IFS=:
24666 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24667 if test x
"$ac_file" != x-
; then
24668 configure_input
="$ac_file. $configure_input"
24669 { echo "$as_me:$LINENO: creating $ac_file" >&5
24670 echo "$as_me: creating $ac_file" >&6;}
24674 *:-:* |
*:-) cat >"$tmp/stdin";;
24679 ac_dir
=`$as_dirname -- "$ac_file" ||
24680 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24681 X"$ac_file" : 'X\(//\)[^/]' \| \
24682 X"$ac_file" : 'X\(//\)$' \| \
24683 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24685 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24689 /^X\(\/\/\)[^/].*/{
24704 -*) as_dir
=.
/$as_dir;;
24706 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
24710 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24711 *) as_qdir
=$as_dir;;
24713 as_dirs
="'$as_qdir' $as_dirs"
24714 as_dir
=`$as_dirname -- "$as_dir" ||
24715 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24716 X"$as_dir" : 'X\(//\)[^/]' \| \
24717 X"$as_dir" : 'X\(//\)$' \| \
24718 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24724 /^X\(\/\/\)[^/].*/{
24737 test -d "$as_dir" && break
24739 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
24740 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24741 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24742 { (exit 1); exit 1; }; }; }
24746 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24748 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24749 # A ".." for each directory in $ac_dir_suffix.
24750 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24751 case $ac_top_builddir_sub in
24752 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24753 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
24756 ac_abs_top_builddir
=$ac_pwd
24757 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
24758 # for backward compatibility:
24759 ac_top_builddir
=$ac_top_build_prefix
24762 .
) # We are building in place.
24764 ac_top_srcdir
=$ac_top_builddir_sub
24765 ac_abs_top_srcdir
=$ac_pwd ;;
24766 [\\/]* | ?
:[\\/]* ) # Absolute name.
24767 ac_srcdir
=$srcdir$ac_dir_suffix;
24768 ac_top_srcdir
=$srcdir
24769 ac_abs_top_srcdir
=$srcdir ;;
24770 *) # Relative name.
24771 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
24772 ac_top_srcdir
=$ac_top_build_prefix$srcdir
24773 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
24775 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
24785 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
24786 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
24790 cat >>$CONFIG_STATUS <<\_ACEOF
24791 # If the template does not know about datarootdir, expand it.
24792 # FIXME: This hack should be removed a few years after 2.60.
24793 ac_datarootdir_hack
=; ac_datarootdir_seen
=
24795 case `sed -n '/datarootdir/ {
24804 ' $ac_file_inputs` in
24805 *datarootdir
*) ac_datarootdir_seen
=yes;;
24806 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
24807 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24808 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24810 cat >>$CONFIG_STATUS <<_ACEOF
24811 ac_datarootdir_hack='
24812 s&@datadir@&$datadir&g
24813 s&@docdir@&$docdir&g
24814 s&@infodir@&$infodir&g
24815 s&@localedir@&$localedir&g
24816 s&@mandir@&$mandir&g
24817 s&\\\${datarootdir}&$datarootdir&g' ;;
24821 # Neutralize VPATH when `$srcdir' = `.'.
24822 # Shell code in configure.ac might set extrasub.
24823 # FIXME: do we really want to maintain this feature?
24824 cat >>$CONFIG_STATUS <<_ACEOF
24828 cat >>$CONFIG_STATUS <<\_ACEOF
24830 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
24831 s
&@configure_input@
&$configure_input&;t t
24832 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
24833 s
&@srcdir@
&$ac_srcdir&;t t
24834 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
24835 s
&@top_srcdir@
&$ac_top_srcdir&;t t
24836 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
24837 s
&@builddir@
&$ac_builddir&;t t
24838 s
&@abs_builddir@
&$ac_abs_builddir&;t t
24839 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
24840 s
&@INSTALL@
&$ac_INSTALL&;t t
24841 $ac_datarootdir_hack
24842 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
24844 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24845 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
24846 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
24847 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
24848 which seems to be undefined. Please make sure it is defined." >&5
24849 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
24850 which seems to be undefined. Please make sure it is defined." >&2;}
24854 -) cat "$tmp/out"; rm -f "$tmp/out";;
24855 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24864 # Transform confdefs.h into a sed script `conftest.defines', that
24865 # substitutes the proper values into config.h.in to produce config.h.
24866 rm -f conftest.defines conftest.
tail
24867 # First, append a space to every undef/define line, to ease matching.
24868 echo 's/$/ /' >conftest.defines
24869 # Then, protect against being on the right side of a sed subst, or in
24870 # an unquoted here document, in config.status. If some macros were
24871 # called several times there might be several #defines for the same
24872 # symbol, which is useless. But do not sort them, since the last
24873 # AC_DEFINE must be honored.
24874 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
24875 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24876 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24877 # PARAMS is the parameter list in the macro definition--in most cases, it's
24878 # just an empty string.
24879 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24880 ac_dB
='\\)[ (].*,\\1define\\2'
24888 s/^[ ]*#[ ]*define[ ][ ]*//
24893 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24894 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24895 ' >>conftest.defines
24897 # Remove the space that was appended to ease matching.
24898 # Then replace #undef with comments. This is necessary, for
24899 # example, in the case of _POSIX_SOURCE, which is predefined and required
24900 # on some systems where configure will not decide to define it.
24901 # (The regexp can be short, since the line contains either #define or #undef.)
24903 s,^[ #]*u.*,/* & */,' >>conftest.defines
24905 # Break up conftest.defines:
24906 ac_max_sed_lines
=50
24908 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24909 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24910 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24912 ac_in
='$ac_file_inputs'
24913 ac_out
='"$tmp/out1"'
24914 ac_nxt
='"$tmp/out2"'
24918 # Write a here document:
24919 cat >>$CONFIG_STATUS <<_ACEOF
24920 # First, check the format of the line:
24921 cat >"\$tmp/defines.sed" <<\\CEOF
24922 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24923 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24927 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
24929 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24930 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
24931 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
24932 grep . conftest.
tail >/dev
/null ||
break
24933 rm -f conftest.defines
24934 mv conftest.
tail conftest.defines
24936 rm -f conftest.defines conftest.
tail
24938 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24939 cat >>$CONFIG_STATUS <<\_ACEOF
24940 if test x
"$ac_file" != x-
; then
24941 echo "/* $configure_input */" >"$tmp/config.h"
24942 cat "$ac_result" >>"$tmp/config.h"
24943 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
24944 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24945 echo "$as_me: $ac_file is unchanged" >&6;}
24948 mv "$tmp/config.h" $ac_file
24951 echo "/* $configure_input */"
24957 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24958 echo "$as_me: executing $ac_file commands" >&6;}
24963 case $ac_file$ac_mode in
24966 ### Make the necessary directories, if they don't exist.
24967 for dir
in etc lisp
; do
24968 test -d ${dir} || mkdir
${dir}
24971 # Build src/Makefile from ${srcdir}/src/Makefile.c
24972 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24973 # This must be done after src/config.h is built, since we rely on that file.
24975 # Now get this: Some word that is part of the ${srcdir} directory name
24976 # or the ${configuration} value might, just might, happen to be an
24977 # identifier like `sun4' or `i386' or something, and be predefined by
24978 # the C preprocessor to some helpful value like 1, or maybe the empty
24979 # string. Needless to say consequent macro substitutions are less
24980 # than conducive to the makefile finding the correct directory.
24981 undefs
="`echo $top_srcdir $configuration $canonical |
24982 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24983 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24986 echo creating src
/epaths.h
24987 ${MAKE-make} epaths-force
24989 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24990 # `..' to `. .' unless invoked with -traditional
24992 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
24993 CPPFLAGS
="$CPPFLAGS -traditional"
24996 echo creating lib-src
/Makefile
24998 rm -f junk.c junk1.c junk2.c
24999 sed -e '/start of cpp stuff/q' \
25000 < Makefile.c
> junk1.c
25001 sed -e '1,/start of cpp stuff/d'\
25002 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25003 < Makefile.c
> junk.c
25004 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
25005 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25006 cat junk1.c junk2.c
> Makefile.new
25007 rm -f junk.c junk1.c junk2.c
25008 chmod 444 Makefile.new
25009 mv -f Makefile.new Makefile
25012 echo creating src
/Makefile
25014 rm -f junk.c junk1.c junk2.c
25015 sed -e '/start of cpp stuff/q' \
25016 < Makefile.c
> junk1.c
25017 sed -e '1,/start of cpp stuff/d'\
25018 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25019 < Makefile.c
> junk.c
25020 if test -f ${srcdir}/admin
/unidata
/UnicodeData.txt
; then
25021 CPPFLAGS
="$CPPFLAGS -DHAVE_UNIDATA"
25023 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
25024 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25025 cat junk1.c junk2.c
> Makefile.new
25026 rm -f junk.c junk1.c junk2.c
25027 chmod 444 Makefile.new
25028 mv -f Makefile.new Makefile
25031 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
25032 echo creating src
/.gdbinit
25033 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
25036 # This is how we know whether to re-run configure in certain cases.
25037 touch src
/config.stamp
25045 { (exit 0); exit 0; }
25047 chmod +x
$CONFIG_STATUS
25048 ac_clean_files
=$ac_clean_files_save
25051 # configure is writing to config.log, and then calls config.status.
25052 # config.status does its own redirection, appending to config.log.
25053 # Unfortunately, on DOS this fails, as config.log is still kept open
25054 # by configure, so config.status won't be able to write to it; its
25055 # output is simply discarded. So we exec the FD to /dev/null,
25056 # effectively closing config.log, so it can be properly (re)opened and
25057 # appended to by config.status. When coming back to configure, we
25058 # need to make the FD available again.
25059 if test "$no_create" != yes; then
25061 ac_config_status_args
=
25062 test "$silent" = yes &&
25063 ac_config_status_args
="$ac_config_status_args --quiet"
25065 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
25067 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25068 # would make configure fail if this is the last instruction.
25069 $ac_cs_success ||
{ (exit 1); exit 1; }