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
714 x_default_search_path
731 ac_precious_vars
='build_alias
743 # Initialize some variables set by options.
745 ac_init_version
=false
746 # The variables have the same names as the options, with
747 # dashes changed to underlines.
755 program_transform_name
=s
,x
,x
,
763 # Installation directory options.
764 # These are left unexpanded so users can "make install exec_prefix=/foo"
765 # and all the variables that are supposed to be based on exec_prefix
766 # by default will actually change.
767 # Use braces instead of parens because sh, perl, etc. also accept them.
768 # (The list follows the same order as the GNU Coding Standards.)
769 bindir
='${exec_prefix}/bin'
770 sbindir
='${exec_prefix}/sbin'
771 libexecdir
='${exec_prefix}/libexec'
772 datarootdir
='${prefix}/share'
773 datadir
='${datarootdir}'
774 sysconfdir
='${prefix}/etc'
775 sharedstatedir
='${prefix}/com'
776 localstatedir
='${prefix}/var'
777 includedir
='${prefix}/include'
778 oldincludedir
='/usr/include'
779 docdir
='${datarootdir}/doc/${PACKAGE}'
780 infodir
='${datarootdir}/info'
785 libdir
='${exec_prefix}/lib'
786 localedir
='${datarootdir}/locale'
787 mandir
='${datarootdir}/man'
793 # If the previous option needs an argument, assign it.
794 if test -n "$ac_prev"; then
795 eval $ac_prev=\
$ac_option
801 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
805 # Accept the important Cygnus configure options, so we can diagnose typos.
807 case $ac_dashdash$ac_option in
811 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
813 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
816 -build |
--build |
--buil |
--bui |
--bu)
817 ac_prev
=build_alias
;;
818 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
819 build_alias
=$ac_optarg ;;
821 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
822 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
823 ac_prev
=cache_file
;;
824 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
825 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
826 cache_file
=$ac_optarg ;;
829 cache_file
=config.cache
;;
831 -datadir |
--datadir |
--datadi |
--datad)
833 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
834 datadir
=$ac_optarg ;;
836 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
837 |
--dataroo |
--dataro |
--datar)
838 ac_prev
=datarootdir
;;
839 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
840 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
841 datarootdir
=$ac_optarg ;;
843 -disable-* |
--disable-*)
844 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
845 # Reject names that are not valid shell variable names.
846 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
847 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
848 { (exit 1); exit 1; }; }
849 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
850 eval enable_
$ac_feature=no
;;
852 -docdir |
--docdir |
--docdi |
--doc |
--do)
854 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
857 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
859 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
862 -enable-* |
--enable-*)
863 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
864 # Reject names that are not valid shell variable names.
865 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
866 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
867 { (exit 1); exit 1; }; }
868 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
869 eval enable_
$ac_feature=\
$ac_optarg ;;
871 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
872 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
873 |
--exec |
--exe |
--ex)
874 ac_prev
=exec_prefix
;;
875 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
876 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
877 |
--exec=* |
--exe=* |
--ex=*)
878 exec_prefix
=$ac_optarg ;;
880 -gas |
--gas |
--ga |
--g)
881 # Obsolete; use --with-gas.
884 -help |
--help |
--hel |
--he |
-h)
886 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
887 ac_init_help
=recursive
;;
888 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
889 ac_init_help
=short
;;
891 -host |
--host |
--hos |
--ho)
892 ac_prev
=host_alias
;;
893 -host=* |
--host=* |
--hos=* |
--ho=*)
894 host_alias
=$ac_optarg ;;
896 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
898 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
900 htmldir
=$ac_optarg ;;
902 -includedir |
--includedir |
--includedi |
--included |
--include \
903 |
--includ |
--inclu |
--incl |
--inc)
904 ac_prev
=includedir
;;
905 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
906 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
907 includedir
=$ac_optarg ;;
909 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
911 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
912 infodir
=$ac_optarg ;;
914 -libdir |
--libdir |
--libdi |
--libd)
916 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
919 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
920 |
--libexe |
--libex |
--libe)
921 ac_prev
=libexecdir
;;
922 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
923 |
--libexe=* |
--libex=* |
--libe=*)
924 libexecdir
=$ac_optarg ;;
926 -localedir |
--localedir |
--localedi |
--localed |
--locale)
928 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
929 localedir
=$ac_optarg ;;
931 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
932 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
933 ac_prev
=localstatedir
;;
934 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
935 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
936 localstatedir
=$ac_optarg ;;
938 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
940 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
944 # Obsolete; use --without-fp.
947 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
948 |
--no-cr |
--no-c |
-n)
951 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
952 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
955 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
956 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
957 |
--oldin |
--oldi |
--old |
--ol |
--o)
958 ac_prev
=oldincludedir
;;
959 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
960 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
961 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
962 oldincludedir
=$ac_optarg ;;
964 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
966 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
969 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
970 |
--program-pre |
--program-pr |
--program-p)
971 ac_prev
=program_prefix
;;
972 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
973 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
974 program_prefix
=$ac_optarg ;;
976 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
977 |
--program-suf |
--program-su |
--program-s)
978 ac_prev
=program_suffix
;;
979 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
980 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
981 program_suffix
=$ac_optarg ;;
983 -program-transform-name |
--program-transform-name \
984 |
--program-transform-nam |
--program-transform-na \
985 |
--program-transform-n |
--program-transform- \
986 |
--program-transform |
--program-transfor \
987 |
--program-transfo |
--program-transf \
988 |
--program-trans |
--program-tran \
989 |
--progr-tra |
--program-tr |
--program-t)
990 ac_prev
=program_transform_name
;;
991 -program-transform-name=* |
--program-transform-name=* \
992 |
--program-transform-nam=* |
--program-transform-na=* \
993 |
--program-transform-n=* |
--program-transform-=* \
994 |
--program-transform=* |
--program-transfor=* \
995 |
--program-transfo=* |
--program-transf=* \
996 |
--program-trans=* |
--program-tran=* \
997 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
998 program_transform_name
=$ac_optarg ;;
1000 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1002 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1003 pdfdir
=$ac_optarg ;;
1005 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1007 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1010 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1011 |
-silent |
--silent |
--silen |
--sile |
--sil)
1014 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1016 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1018 sbindir
=$ac_optarg ;;
1020 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1021 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1022 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1024 ac_prev
=sharedstatedir
;;
1025 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1026 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1027 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1029 sharedstatedir
=$ac_optarg ;;
1031 -site |
--site |
--sit)
1033 -site=* |
--site=* |
--sit=*)
1036 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1038 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1039 srcdir
=$ac_optarg ;;
1041 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1042 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1043 ac_prev
=sysconfdir
;;
1044 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1045 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1046 sysconfdir
=$ac_optarg ;;
1048 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1049 ac_prev
=target_alias
;;
1050 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1051 target_alias
=$ac_optarg ;;
1053 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1056 -version |
--version |
--versio |
--versi |
--vers |
-V)
1057 ac_init_version
=: ;;
1060 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1061 # Reject names that are not valid shell variable names.
1062 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1063 { echo "$as_me: error: invalid package name: $ac_package" >&2
1064 { (exit 1); exit 1; }; }
1065 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1066 eval with_
$ac_package=\
$ac_optarg ;;
1068 -without-* |
--without-*)
1069 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1070 # Reject names that are not valid shell variable names.
1071 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1072 { echo "$as_me: error: invalid package name: $ac_package" >&2
1073 { (exit 1); exit 1; }; }
1074 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1075 eval with_
$ac_package=no
;;
1078 # Obsolete; use --with-x.
1081 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1082 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1083 ac_prev
=x_includes
;;
1084 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1085 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1086 x_includes
=$ac_optarg ;;
1088 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1089 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1090 ac_prev
=x_libraries
;;
1091 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1092 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1093 x_libraries
=$ac_optarg ;;
1095 -*) { echo "$as_me: error: unrecognized option: $ac_option
1096 Try \`$0 --help' for more information." >&2
1097 { (exit 1); exit 1; }; }
1101 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1102 # Reject names that are not valid shell variable names.
1103 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1104 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1105 { (exit 1); exit 1; }; }
1106 eval $ac_envvar=\
$ac_optarg
1107 export $ac_envvar ;;
1110 # FIXME: should be removed in autoconf 3.0.
1111 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1112 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1113 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1114 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1120 if test -n "$ac_prev"; then
1121 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1122 { echo "$as_me: error: missing argument to $ac_option" >&2
1123 { (exit 1); exit 1; }; }
1126 # Be sure to have absolute directory names.
1127 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1128 datadir sysconfdir sharedstatedir localstatedir includedir \
1129 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1130 libdir localedir mandir
1132 eval ac_val
=\$
$ac_var
1134 [\\/$
]* | ?
:[\\/]* ) continue;;
1135 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1137 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1138 { (exit 1); exit 1; }; }
1141 # There might be people who depend on the old broken behavior: `$host'
1142 # used to hold the argument of --host etc.
1143 # FIXME: To remove some day.
1146 target
=$target_alias
1148 # FIXME: To remove some day.
1149 if test "x$host_alias" != x
; then
1150 if test "x$build_alias" = x
; then
1151 cross_compiling
=maybe
1152 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1153 If a cross compiler is detected then cross compile mode will be used." >&2
1154 elif test "x$build_alias" != "x$host_alias"; then
1160 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1162 test "$silent" = yes && exec 6>/dev
/null
1165 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1166 ac_ls_di
=`ls -di .` &&
1167 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1168 { echo "$as_me: error: Working directory cannot be determined" >&2
1169 { (exit 1); exit 1; }; }
1170 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1171 { echo "$as_me: error: pwd does not report name of working directory" >&2
1172 { (exit 1); exit 1; }; }
1175 # Find the source files, if location was not specified.
1176 if test -z "$srcdir"; then
1177 ac_srcdir_defaulted
=yes
1178 # Try the directory containing this script, then the parent directory.
1179 ac_confdir
=`$as_dirname -- "$0" ||
1180 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1181 X"$0" : 'X\(//\)[^/]' \| \
1182 X"$0" : 'X\(//\)$' \| \
1183 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1185 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1203 if test ! -r "$srcdir/$ac_unique_file"; then
1207 ac_srcdir_defaulted
=no
1209 if test ! -r "$srcdir/$ac_unique_file"; then
1210 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1211 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1212 { (exit 1); exit 1; }; }
1214 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1216 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1217 { (exit 1); exit 1; }; }
1219 # When building in place, set srcdir=.
1220 if test "$ac_abs_confdir" = "$ac_pwd"; then
1223 # Remove unnecessary trailing slashes from srcdir.
1224 # Double slashes in file names in object file debugging info
1225 # mess up M-x gdb in Emacs.
1227 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1229 for ac_var
in $ac_precious_vars; do
1230 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1231 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1232 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1233 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1237 # Report the --help message.
1239 if test "$ac_init_help" = "long"; then
1240 # Omit some internal or obsolete options to make the list less imposing.
1241 # This message is too long to be a string in the A/UX 3.1 sh.
1243 \`configure' configures this package to adapt to many kinds of systems.
1245 Usage: $0 [OPTION]... [VAR=VALUE]...
1247 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1248 VAR=VALUE. See below for descriptions of some of the useful variables.
1250 Defaults for the options are specified in brackets.
1253 -h, --help display this help and exit
1254 --help=short display options specific to this package
1255 --help=recursive display the short help of all the included packages
1256 -V, --version display version information and exit
1257 -q, --quiet, --silent do not print \`checking...' messages
1258 --cache-file=FILE cache test results in FILE [disabled]
1259 -C, --config-cache alias for \`--cache-file=config.cache'
1260 -n, --no-create do not create output files
1261 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1263 Installation directories:
1264 --prefix=PREFIX install architecture-independent files in PREFIX
1265 [$ac_default_prefix]
1266 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1269 By default, \`make install' will install all the files in
1270 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1271 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1272 for instance \`--prefix=\$HOME'.
1274 For better control, use the options below.
1276 Fine tuning of the installation directories:
1277 --bindir=DIR user executables [EPREFIX/bin]
1278 --sbindir=DIR system admin executables [EPREFIX/sbin]
1279 --libexecdir=DIR program executables [EPREFIX/libexec]
1280 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1281 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1282 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1283 --libdir=DIR object code libraries [EPREFIX/lib]
1284 --includedir=DIR C header files [PREFIX/include]
1285 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1286 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1287 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1288 --infodir=DIR info documentation [DATAROOTDIR/info]
1289 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1290 --mandir=DIR man documentation [DATAROOTDIR/man]
1291 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1292 --htmldir=DIR html documentation [DOCDIR]
1293 --dvidir=DIR dvi documentation [DOCDIR]
1294 --pdfdir=DIR pdf documentation [DOCDIR]
1295 --psdir=DIR ps documentation [DOCDIR]
1301 --program-prefix=PREFIX prepend PREFIX to installed program names
1302 --program-suffix=SUFFIX append SUFFIX to installed program names
1303 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1306 --x-includes=DIR X include files are
in DIR
1307 --x-libraries=DIR X library files are
in DIR
1310 --build=BUILD configure
for building on BUILD
[guessed
]
1311 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1315 if test -n "$ac_init_help"; then
1320 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1321 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1322 --enable-carbon-app[=DIR
]
1323 specify
install directory
for Emacs.app on Mac OS X
1325 --enable-asserts compile code with asserts enabled
1326 --enable-maintainer-mode
1327 enable make rules and dependencies not useful
(and
1328 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 (KIT one of: yes, lucid, athena,
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 -lgif (or -lungif) for displaying GIF images
1349 --with-png use -lpng for displaying PNG images
1350 --with-gpm use -lgpm for mouse support on a GNU/Linux console
1351 --with-rsvg use -lrsvg-2 for displaying SVG images
1352 --with-gtk use GTK (same as --with-x-toolkit=gtk)
1353 --with-pkg-config-prog Path to pkg-config for finding GTK and librsvg
1354 --without-toolkit-scroll-bars
1355 don't use Motif or Xaw3d scroll bars
1356 --without-xaw3d don
't use Xaw3d
1357 --without-xim don't use X11 XIM
1358 --without-carbon don
't use Carbon GUI on Mac OS X
1359 --without-dbus don't use D-Bus
1360 --with-x use the X Window System
1362 Some influential environment variables
:
1363 CC C compiler
command
1364 CFLAGS C compiler flags
1365 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1366 nonstandard directory
<lib dir
>
1367 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1368 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1369 you have headers
in a nonstandard directory
<include dir
>
1371 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1373 Use these variables to override the choices made by
`configure' or to help
1374 it to find libraries and programs with nonstandard names/locations.
1380 if test "$ac_init_help" = "recursive"; then
1381 # If there are subdirs, report their specific --help.
1382 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1383 test -d "$ac_dir" || continue
1387 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1389 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1390 # A ".." for each directory in $ac_dir_suffix.
1391 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1392 case $ac_top_builddir_sub in
1393 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1394 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1397 ac_abs_top_builddir=$ac_pwd
1398 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1399 # for backward compatibility:
1400 ac_top_builddir=$ac_top_build_prefix
1403 .) # We are building in place.
1405 ac_top_srcdir=$ac_top_builddir_sub
1406 ac_abs_top_srcdir=$ac_pwd ;;
1407 [\\/]* | ?:[\\/]* ) # Absolute name.
1408 ac_srcdir=$srcdir$ac_dir_suffix;
1409 ac_top_srcdir=$srcdir
1410 ac_abs_top_srcdir=$srcdir ;;
1412 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1413 ac_top_srcdir=$ac_top_build_prefix$srcdir
1414 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1416 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1418 cd "$ac_dir" || { ac_status=$?; continue; }
1419 # Check for guested configure.
1420 if test -f "$ac_srcdir/configure.gnu"; then
1422 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1423 elif test -f "$ac_srcdir/configure"; then
1425 $SHELL "$ac_srcdir/configure" --help=recursive
1427 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1429 cd "$ac_pwd" || { ac_status=$?; break; }
1433 test -n "$ac_init_help" && exit $ac_status
1434 if $ac_init_version; then
1437 generated by GNU Autoconf 2.61
1439 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1440 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1441 This configure script is free software; the Free Software Foundation
1442 gives unlimited permission to copy, distribute and modify it.
1446 cat >config.log <<_ACEOF
1447 This file contains any messages produced by compilers while
1448 running configure, to aid debugging if configure makes a mistake.
1450 It was created by $as_me, which was
1451 generated by GNU Autoconf 2.61. Invocation command line was
1463 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1464 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1465 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1466 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1467 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1469 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1470 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1472 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1473 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1474 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1475 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1476 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1477 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1478 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1486 test -z "$as_dir" && as_dir=.
1487 echo "PATH: $as_dir"
1503 # Keep a trace of the command line.
1504 # Strip out --no-create and --no-recursion so they do not pile up.
1505 # Strip out --silent because we don't want to record it for future runs.
1506 # Also quote any args containing shell meta-characters.
1507 # Make two passes to allow for proper duplicate-argument suppression.
1511 ac_must_keep_next=false
1517 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1518 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1519 | -silent | --silent | --silen | --sile | --sil)
1522 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1525 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1527 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1528 if test $ac_must_keep_next = true; then
1529 ac_must_keep_next=false # Got value, back to normal.
1532 *=* | --config-cache | -C | -disable-* | --disable-* \
1533 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1534 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1535 | -with-* | --with-* | -without-* | --without-* | --x)
1536 case "$ac_configure_args0 " in
1537 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1540 -* ) ac_must_keep_next=true ;;
1543 ac_configure_args="$ac_configure_args '$ac_arg'"
1548 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1549 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1551 # When interrupted or exit'd, cleanup temporary files, and complete
1552 # config.log. We remove comments because anyway the quotes in there
1553 # would cause problems or look ugly.
1554 # WARNING: Use '\'' to represent an apostrophe within the trap.
1555 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1556 trap 'exit_status=$?
1557 # Save into config.log some information that might help in debugging.
1562 ## ---------------- ##
1563 ## Cache variables. ##
1564 ## ---------------- ##
1567 # The following way of writing the cache mishandles newlines in values,
1569 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1570 eval ac_val=\$$ac_var
1574 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1575 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1578 _ | IFS | as_nl) ;; #(
1579 *) $as_unset $ac_var ;;
1584 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1585 *${as_nl}ac_space=\ *)
1587 "s/'\''/'\''\\\\'\'''\''/g;
1588 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1591 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1599 ## ----------------- ##
1600 ## Output variables. ##
1601 ## ----------------- ##
1604 for ac_var in $ac_subst_vars
1606 eval ac_val=\$$ac_var
1608 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1610 echo "$ac_var='\''$ac_val'\''"
1614 if test -n "$ac_subst_files"; then
1616 ## ------------------- ##
1617 ## File substitutions. ##
1618 ## ------------------- ##
1621 for ac_var in $ac_subst_files
1623 eval ac_val=\$$ac_var
1625 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1627 echo "$ac_var='\''$ac_val'\''"
1632 if test -s confdefs.h; then
1642 test "$ac_signal" != 0 &&
1643 echo "$as_me: caught signal $ac_signal"
1644 echo "$as_me: exit $exit_status"
1646 rm -f core *.core core.conftest.* &&
1647 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1650 for ac_signal in 1 2 13 15; do
1651 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1655 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1656 rm -f -r conftest* confdefs.h
1658 # Predefined preprocessor variables.
1660 cat >>confdefs.h <<_ACEOF
1661 #define PACKAGE_NAME "$PACKAGE_NAME"
1665 cat >>confdefs.h <<_ACEOF
1666 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1670 cat >>confdefs.h <<_ACEOF
1671 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1675 cat >>confdefs.h <<_ACEOF
1676 #define PACKAGE_STRING "$PACKAGE_STRING"
1680 cat >>confdefs.h <<_ACEOF
1681 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1685 # Let the site file select an alternate cache file if it wants to.
1686 # Prefer explicitly selected file to automatically selected ones.
1687 if test -n "$CONFIG_SITE"; then
1688 set x "$CONFIG_SITE"
1689 elif test "x$prefix" != xNONE; then
1690 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1692 set x "$ac_default_prefix/share/config.site" \
1693 "$ac_default_prefix/etc/config.site"
1698 if test -r "$ac_site_file"; then
1699 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1700 echo "$as_me: loading site script $ac_site_file" >&6;}
1701 sed 's/^/| /' "$ac_site_file" >&5
1706 if test -r "$cache_file"; then
1707 # Some versions of bash will fail to source /dev/null (special
1708 # files actually), so we avoid doing that.
1709 if test -f "$cache_file"; then
1710 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1711 echo "$as_me: loading cache $cache_file" >&6;}
1713 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1714 *) . "./$cache_file";;
1718 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1719 echo "$as_me: creating cache $cache_file" >&6;}
1723 ac_header_list="$ac_header_list sys/time.h"
1724 ac_header_list="$ac_header_list unistd.h"
1725 ac_func_list="$ac_func_list alarm"
1726 # Check that the precious variables saved in the cache have kept the same
1728 ac_cache_corrupted=false
1729 for ac_var in $ac_precious_vars; do
1730 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1731 eval ac_new_set=\$ac_env_${ac_var}_set
1732 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1733 eval ac_new_val=\$ac_env_${ac_var}_value
1734 case $ac_old_set,$ac_new_set in
1736 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1737 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1738 ac_cache_corrupted=: ;;
1740 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1741 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1742 ac_cache_corrupted=: ;;
1745 if test "x$ac_old_val" != "x$ac_new_val"; then
1746 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1747 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1748 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1749 echo "$as_me: former value
: $ac_old_val" >&2;}
1750 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1751 echo "$as_me: current value
: $ac_new_val" >&2;}
1752 ac_cache_corrupted=:
1755 # Pass precious variables to config.status.
1756 if test "$ac_new_set" = set; then
1758 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1759 *) ac_arg=$ac_var=$ac_new_val ;;
1761 case " $ac_configure_args " in
1762 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1763 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1767 if $ac_cache_corrupted; then
1768 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1769 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1770 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1771 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1772 { (exit 1); exit 1; }; }
1792 ac_cpp='$CPP $CPPFLAGS'
1793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1798 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1801 test "$program_prefix" != NONE &&
1802 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1803 # Use a double $ so make ignores it.
1804 test "$program_suffix" != NONE &&
1805 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1806 # Double any \ or $. echo might interpret backslashes.
1807 # By default was `s
,x
,x
', remove it if useless.
1808 cat <<\_ACEOF >conftest.sed
1809 s/[\\$]/&&/g;s/;s,x,x,$//
1811 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1815 lispdir='${datadir}/emacs
/${version}/lisp
'
1816 locallisppath='${datadir}/emacs
/${version}/site-lisp
:'\
1817 '${datadir}/emacs
/site-lisp
'
1818 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim
'
1819 etcdir='${datadir}/emacs
/${version}/etc
'
1820 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1821 docdir='${datadir}/emacs
/${version}/etc
'
1822 gamedir='${localstatedir}/games
/emacs
'
1828 # Check whether --with-gcc was given.
1829 if test "${with_gcc+set}" = set; then
1835 # Check whether --with-pop was given.
1836 if test "${with_pop+set}" = set; then
1837 withval=$with_pop; if test "$withval" = yes; then
1838 cat >>confdefs.h <<\_ACEOF
1839 #define MAIL_USE_POP 1
1845 cat >>confdefs.h <<\_ACEOF
1846 #define MAIL_USE_POP 1
1854 # Check whether --with-kerberos was given.
1855 if test "${with_kerberos+set}" = set; then
1856 withval=$with_kerberos; if test "$withval" = yes; then
1857 cat >>confdefs.h <<\_ACEOF
1867 # Check whether --with-kerberos5 was given.
1868 if test "${with_kerberos5+set}" = set; then
1869 withval=$with_kerberos5; if test "${with_kerberos5+set}" = set; then
1870 if test "${with_kerberos+set}" != set; then
1872 cat >>confdefs.h <<\_ACEOF
1878 cat >>confdefs.h <<\_ACEOF
1887 # Check whether --with-hesiod was given.
1888 if test "${with_hesiod+set}" = set; then
1889 withval=$with_hesiod; if test "$withval" = yes; then
1891 cat >>confdefs.h <<\_ACEOF
1900 # Check whether --with-sound was given.
1901 if test "${with_sound+set}" = set; then
1902 withval=$with_sound;
1907 # Check whether --with-x-toolkit was given.
1908 if test "${with_x_toolkit+set}" = set; then
1909 withval=$with_x_toolkit; case "${withval}" in
1910 y | ye | yes ) val=gtk ;;
1912 l | lu | luc | luci | lucid ) val=lucid ;;
1913 a | at | ath | athe | athen | athena ) val=athena ;;
1914 m | mo | mot | moti | motif ) val=motif ;;
1915 g | gt | gtk ) val=gtk ;;
1917 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid
;
1918 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', \
`motif' or \`gtk
'.
1919 \`yes' and \
`gtk' are synonyms. \`athena
' and \`lucid' are synonyms.
" >&5
1920 echo "$as_me: error
: \
`--with-x-toolkit=$withval' is invalid;
1921 this option's value should be \`yes', \`no', \
`lucid', \`athena
', \`motif' or \
`gtk'.
1922 \`yes' and \`gtk' are synonyms. \
`athena' and \`lucid
' are synonyms." >&2;}
1923 { (exit 1); exit 1; }; }
1932 # Check whether --with-xpm was given.
1933 if test "${with_xpm+set}" = set; then
1938 # Check whether --with-jpeg was given.
1939 if test "${with_jpeg+set}" = set; then
1944 # Check whether --with-tiff was given.
1945 if test "${with_tiff+set}" = set; then
1950 # Check whether --with-gif was given.
1951 if test "${with_gif+set}" = set; then
1956 # Check whether --with-png was given.
1957 if test "${with_png+set}" = set; then
1962 # Check whether --with-gpm was given.
1963 if test "${with_gpm+set}" = set; then
1968 # Check whether --with-rsvg was given.
1969 if test "${with_rsvg+set}" = set; then
1974 # Check whether --with-gtk was given.
1975 if test "${with_gtk+set}" = set; then
1980 # Check whether --with-pkg-config-prog was given.
1981 if test "${with_pkg_config_prog+set}" = set; then
1982 withval=$with_pkg_config_prog;
1986 # Check whether --with-toolkit-scroll-bars was given.
1987 if test "${with_toolkit_scroll_bars+set}" = set; then
1988 withval=$with_toolkit_scroll_bars;
1992 # Check whether --with-xaw3d was given.
1993 if test "${with_xaw3d+set}" = set; then
1994 withval=$with_xaw3d;
1998 # Check whether --with-xim was given.
1999 if test "${with_xim+set}" = set; then
2004 # Check whether --with-carbon was given.
2005 if test "${with_carbon+set}" = set; then
2006 withval=$with_carbon;
2010 # Check whether --with-dbus was given.
2011 if test "${with_dbus+set}" = set; then
2016 # Check whether --enable-carbon-app was given.
2017 if test "${enable_carbon_app+set}" = set; then
2018 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
2022 # Check whether --enable-asserts was given.
2023 if test "${enable_asserts+set}" = set; then
2024 enableval=$enable_asserts; USE_XASSERTS=$enableval
2030 # Check whether --enable-maintainer-mode was given.
2031 if test "${enable_maintainer_mode+set}" = set; then
2032 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2034 USE_MAINTAINER_MODE=no
2037 if test $USE_MAINTAINER_MODE = yes; then
2044 # Check whether --enable-locallisppath was given.
2045 if test "${enable_locallisppath+set}" = set; then
2046 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2048 elif test "${enableval}" != "yes"; then
2049 locallisppath=${enableval}
2054 #### Make srcdir absolute, if it isn't already. It
's important to
2055 #### avoid running the path through pwd unnecessarily, since pwd can
2056 #### give you automounter prefixes, which can go away. We do all this
2057 #### so Emacs can find its files when run uninstalled.
2058 ## Make sure CDPATH doesn't affect
cd (in case PWD is relative
).
2063 ## We may be able to use the $PWD environment variable to make this
2064 ## absolute. But sometimes PWD is inaccurate.
2065 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2066 ## but that tested only for a well-formed and valid PWD,
2067 ## it did not object when PWD was well-formed and valid but just wrong.
2068 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2072 srcdir
="`(cd ${srcdir}; pwd)`"
2075 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2078 #### Check if the source directory already has a configured system in it.
2079 if test `pwd` != `(cd ${srcdir} && pwd)` \
2080 && test -f "${srcdir}/src/config.h" ; then
2081 { echo "$as_me:$LINENO: 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." >&5
2087 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2088 as a build directory right now; it has been configured in its own
2089 right. To configure in another directory as well, you MUST
2090 use GNU make. If you do not have GNU make, then you must
2091 now do \`make distclean' in ${srcdir},
2092 and then run $0 again." >&2;}
2095 #### Given the configuration name, set machfile and opsysfile to the
2096 #### names of the m/*.h and s/*.h files we should use.
2098 ### Canonicalize the configuration name.
2101 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2102 if test -f "$ac_dir/install-sh"; then
2104 ac_install_sh
="$ac_aux_dir/install-sh -c"
2106 elif test -f "$ac_dir/install.sh"; then
2108 ac_install_sh
="$ac_aux_dir/install.sh -c"
2110 elif test -f "$ac_dir/shtool"; then
2112 ac_install_sh
="$ac_aux_dir/shtool install -c"
2116 if test -z "$ac_aux_dir"; then
2117 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2118 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2119 { (exit 1); exit 1; }; }
2122 # These three variables are undocumented and unsupported,
2123 # and are intended to be withdrawn in a future Autoconf release.
2124 # They can cause serious problems if a builder's source tree is in a directory
2125 # whose full name contains unusual characters.
2126 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2127 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2128 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2131 # Make sure we can run config.sub.
2132 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2133 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2134 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2135 { (exit 1); exit 1; }; }
2137 { echo "$as_me:$LINENO: checking build system type" >&5
2138 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2139 if test "${ac_cv_build+set}" = set; then
2140 echo $ECHO_N "(cached) $ECHO_C" >&6
2142 ac_build_alias
=$build_alias
2143 test "x$ac_build_alias" = x
&&
2144 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2145 test "x$ac_build_alias" = x
&&
2146 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2147 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2148 { (exit 1); exit 1; }; }
2149 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2150 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2151 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2152 { (exit 1); exit 1; }; }
2155 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2156 echo "${ECHO_T}$ac_cv_build" >&6; }
2157 case $ac_cv_build in
2159 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2160 echo "$as_me: error: invalid value of canonical build" >&2;}
2161 { (exit 1); exit 1; }; };;
2164 ac_save_IFS
=$IFS; IFS
='-'
2170 # Remember, the first character of IFS is used to create $*,
2171 # except with old shells:
2174 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2177 { echo "$as_me:$LINENO: checking host system type" >&5
2178 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2179 if test "${ac_cv_host+set}" = set; then
2180 echo $ECHO_N "(cached) $ECHO_C" >&6
2182 if test "x$host_alias" = x
; then
2183 ac_cv_host
=$ac_cv_build
2185 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2186 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2187 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2188 { (exit 1); exit 1; }; }
2192 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2193 echo "${ECHO_T}$ac_cv_host" >&6; }
2196 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2197 echo "$as_me: error: invalid value of canonical host" >&2;}
2198 { (exit 1); exit 1; }; };;
2201 ac_save_IFS
=$IFS; IFS
='-'
2207 # Remember, the first character of IFS is used to create $*,
2208 # except with old shells:
2211 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2215 configuration
=${host_alias-${build_alias-$host}}
2219 ### If you add support for a new configuration, add code to this
2220 ### switch statement to recognize your configuration name and select
2221 ### the appropriate operating system and machine description files.
2223 ### You would hope that you could choose an m/*.h file pretty much
2224 ### based on the machine portion of the configuration name, and an s-
2225 ### file based on the operating system portion. However, it turns out
2226 ### that each m/*.h file is pretty manufacturer-specific - for
2227 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
2228 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
2229 ### machines. So we basically have to have a special case for each
2230 ### configuration name.
2232 ### As far as handling version numbers on operating systems is
2233 ### concerned, make sure things will fail in a fixable way. If
2234 ### /etc/MACHINES doesn't say anything about version numbers, be
2235 ### prepared to handle anything reasonably. If version numbers
2236 ### matter, be sure /etc/MACHINES says something about it.
2238 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2239 ### "System V Release 4"; he writes, "The old convention encouraged
2240 ### confusion between `system' and `release' levels'."
2242 machine
='' opsys
='' unported
=no
2243 case "${canonical}" in
2248 case "${canonical}" in
2249 alpha
*-*-freebsd*) machine
=alpha
;;
2250 ia64-
*-freebsd*) machine
=ia64
;;
2251 sparc64-
*-freebsd*) machine
=sparc
;;
2252 powerpc-
*-freebsd*) machine
=macppc
;;
2253 i
[3456]86-*-freebsd*) machine
=intel386
;;
2254 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2258 ## FreeBSD kernel + glibc based userland
2261 case "${canonical}" in
2262 alpha
*-*-kfreebsd*) machine
=alpha
;;
2263 ia64-
*-kfreebsd*) machine
=ia64
;;
2264 sparc64-
*-kfreebsd*) machine
=sparc
;;
2265 powerpc-
*-kfreebsd*) machine
=macppc
;;
2266 i
[3456]86-*-kfreebsd*) machine
=intel386
;;
2267 amd64-
*-kfreebsd*|x86_64-
*-kfreebsd*) machine
=amdx86-64
;;
2274 if test -f /usr
/lib
/crti.o
; then
2276 cat >>confdefs.h
<<\_ACEOF
2282 case "${canonical}" in
2283 alpha
*-*-netbsd*) machine
=alpha
;;
2284 i
[3456]86-*-netbsd*) machine
=intel386
;;
2286 # This is somewhat bogus.
2287 machine
=hp9000s300
;;
2288 mips-
*-netbsd*) machine
=pmax
;;
2289 mipsel-
*-netbsd*) machine
=pmax
;;
2290 mipseb-
*-netbsd*) machine
=pmax
;;
2291 ns32k-
*-netbsd*) machine
=ns32000
;;
2292 powerpc-
*-netbsd*) machine
=macppc
;;
2293 sparc
*-*-netbsd*) machine
=sparc
;;
2294 vax-
*-netbsd*) machine
=vax
;;
2295 arm-
*-netbsd*) machine
=arm
;;
2296 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2297 hppa-
*-netbsd*) machine
=hp800
;;
2298 shle-
*-netbsd*) machine
=sh3el
;;
2305 case "${canonical}" in
2306 alpha
*-*-openbsd*) machine
=alpha
;;
2307 arm-
*-openbsd*) machine
=arm
;;
2308 hppa-
*-openbsd*) machine
=hp9000s300
;;
2309 i386-
*-openbsd*) machine
=intel386
;;
2310 m68k-
*-openbsd*) machine
=hp9000s300
;;
2311 m88k-
*-openbsd*) machine
=aviion
;;
2312 mips64-
*-openbsd*) machine
=mips64
;;
2313 powerpc-
*-openbsd*) machine
=macppc
;;
2314 sh-
*-openbsd*) machine
=sh3el
;;
2315 sparc
*-*-openbsd*) machine
=sparc
;;
2316 vax-
*-openbsd*) machine
=vax
;;
2317 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2324 case "${canonical}" in
2325 i
[3456]86-*-lynxos*) machine
=intel386
;;
2326 powerpc-
*-lynxos*) machine
=powerpc
;;
2331 arm-acorn-riscix1.1
* )
2332 machine
=acorn opsys
=riscix1-1
2334 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
2335 ## This name is riscix12 instead of riscix1.2
2336 ## to avoid a file name conflict on MSDOS.
2337 machine
=acorn opsys
=riscix12
2343 case "${canonical}" in
2344 i
[345]86-*-bsdi*) machine
=intel386
;;
2345 sparc-
*-bsdi*) machine
=sparc
;;
2346 powerpc-
*-bsdi*) machine
=macppc
;;
2348 case "${canonical}" in
2349 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
2350 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
2351 *-*-bsdi2* ) opsys
=bsdos2-1
;;
2352 *-*-bsdi3* ) opsys
=bsdos3
;;
2353 *-*-bsdi[45]* ) opsys
=bsdos4
;;
2358 ## Strictly speaking, we need the version of the alliant operating
2359 ## system to choose the right machine file, but currently the
2360 ## configuration name doesn't tell us enough to choose the right
2361 ## one; we need to give alliants their own operating system name to
2362 ## do this right. When someone cares, they can help us.
2364 machine
=alliant4 opsys
=bsd4-2
2367 machine
=alliant-2800 opsys
=bsd4-3
2370 ## Alpha (DEC) machines.
2372 machine
=alpha opsys
=osf1
2373 # This is needed to find X11R6.1 libraries for certain tests.
2374 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2375 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2376 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2377 # due to non-traditional preprocessing with the current compiler
2378 # defaults. OSF 4 can also have that compiler version, and there
2379 # seems always to have been a usable /usr/bin/cpp.
2380 NON_GNU_CPP
=/usr
/bin
/cpp
2381 case "${canonical}" in
2382 alpha
*-dec-osf[5-9]*)
2387 alpha
*-*-linux-gnu* )
2388 machine
=alpha opsys
=gnu-linux
2392 machine
=arm opsys
=gnu-linux
2397 machine
=altos opsys
=usg5-2
2402 machine
=amdahl opsys
=usg5-2-2
2405 ## Apollo, Domain/OS
2407 machine
=apollo opsys
=bsd4-3
2410 ## Apple Darwin / Mac OS X
2412 case "${canonical}" in
2413 i
[3456]86-* ) machine
=intel386
;;
2414 powerpc-
* ) machine
=powermac
;;
2418 # Define CPP as follows to make autoconf work correctly.
2419 CPP
="${CC-cc} -E -no-cpp-precomp"
2420 # Use fink packages if available.
2421 if test -d /sw
/include
&& test -d /sw
/lib
; then
2422 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2423 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2424 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2428 ## AT&T 3b2, 3b5, 3b15, 3b20
2430 machine
=att3b opsys
=usg5-2-2
2433 ## AT&T 3b1 - The Mighty Unix PC!
2435 machine
=7300 opsys
=usg5-2-2
2440 machine
=ibmrs6000 opsys
=aix3-2
2445 machine
=dpx2 opsys
=usg5-3
2450 machine
=sps7 opsys
=usg5-2
2453 ## CCI 5/32, 6/32 -- see "Tahoe".
2456 ## I don't know what configuration name to use for this; config.sub
2457 ## doesn't seem to know anything about it. Hey, Celerity users, get
2458 ## in touch with us!
2459 celerity-celerity-bsd
* )
2460 machine
=celerity opsys
=bsd4-2
2464 ## What operating systems does this chip run that Emacs has been
2468 ## We'll use the catch-all code at the bottom to guess the
2469 ## operating system.
2473 mips-compaq-nonstopux
* )
2474 machine
=nonstopux opsys
=nonstopux
2478 *-convex-bsd* |
*-convex-convexos* )
2479 machine
=convex opsys
=bsd4-3
2480 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2481 NON_GNU_CPP
="cc -E -P"
2485 i
[3456]86-cubix-sysv* )
2486 machine
=intel386 opsys
=usg5-3
2490 cydra
*-cydrome-sysv* )
2491 machine
=cydra5 opsys
=usg5-3
2494 ## Data General AViiON Machines
2495 ## DG changed naming conventions with the release of 5.4.4.10, they
2496 ## dropped the initial 5.4 but left the intervening R. Because of the
2497 ## R this shouldn't conflict with older versions of the OS (which I
2498 ## think were named like dgux4.*). In addition, DG new AViiONs series
2499 ## uses either Motorola M88k or Intel Pentium CPUs.
2500 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
2501 machine
=aviion opsys
=dgux4
2503 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
2504 ## This name is dgux5-4-3 instead of dgux5-4r3
2505 ## to avoid a file name conflict on MSDOS.
2506 machine
=aviion opsys
=dgux5-4-3
2508 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
2509 machine
=aviion opsys
=dgux5-4r2
2512 machine
=aviion opsys
=dgux
2515 ## Data General AViiON Intel (x86) Machines
2516 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2517 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2518 i
[345]86-dg-dguxR4* )
2519 machine
=aviion-intel opsys
=dgux4
2523 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
2524 machine
=pmax opsys
=bsd4-2
2526 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
2527 machine
=pmax opsys
=bsd4-3
2530 machine
=pmax opsys
=ultrix4-3
2533 machine
=pmax opsys
=osf1
2535 mips-dec-mach_bsd4.3
* )
2536 machine
=pmax opsys
=mach-bsd4-3
2539 ## Motorola Delta machines
2540 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
2541 machine
=delta opsys
=usg5-3
2542 if test -z "`type gnucc | grep 'not found'`"
2544 if test -s /etc
/167config
2545 then CC
="gnucc -m68040"
2546 else CC
="gnucc -m68881"
2549 if test -z "`type gcc | grep 'not found'`"
2555 m88k-motorola-sysv4
* )
2556 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2557 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2558 # I hope there are not other 4.0 versions for this machine
2559 # which really need usg5-4 instead.
2560 machine
=delta88k opsys
=usg5-4-2
2562 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
2563 machine
=delta88k opsys
=usg5-3
2568 machine
=dual opsys
=usg5-2
2570 m68
*-dual-uniplus* )
2571 machine
=dual opsys
=unipl5-2
2576 machine
=elxsi opsys
=usg5-2
2581 machine
=ns16000 opsys
=umax
2584 ## The GEC 63 - apparently, this port isn't really finished yet.
2585 # I'm sure we finished off the last of the machines, though. -- fx
2587 ## Gould Power Node and NP1
2589 machine
=gould opsys
=bsd4-2
2592 machine
=gould opsys
=bsd4-3
2595 machine
=gould-np1 opsys
=bsd4-3
2598 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2599 ## as far as Emacs is concerned).
2601 # Build needs to be different on 7.0 and later releases
2602 case "`uname -r`" in
2603 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
2604 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
2606 NON_GNU_CPP
="/lib/cpp"
2608 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2610 machine
=nh3000 opsys
=cxux
2612 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2613 powerpc-harris-powerunix
)
2614 machine
=nh6000 opsys
=powerunix
2615 NON_GNU_CPP
="cc -Xo -E -P"
2617 ## SR2001/SR2201 running HI-UX/MPP
2618 hppa1.1
-hitachi-hiuxmpp* )
2619 machine
=sr2k opsys
=hiuxmpp
2621 hppa1.1
-hitachi-hiuxwe2* )
2622 machine
=sr2k opsys
=hiuxwe2
2625 xps
*-honeywell-sysv* )
2626 machine
=xps100 opsys
=usg5-2
2629 ## HP 9000 series 200 or 300
2631 machine
=hp9000s300 opsys
=bsd4-3
2633 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2635 case "`uname -r`" in
2636 ## Someone's system reports A.B8.05 for this.
2637 ## I wonder what other possibilities there are.
2638 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2639 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2640 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2641 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2642 *) machine
=hp9000s300 opsys
=hpux
;;
2646 ## HP 9000 series 700 and 800, running HP/UX
2648 machine
=hp800 opsys
=hpux
2651 machine
=hp800 opsys
=hpux8
2653 hppa
*-hp-hpux9shr* )
2654 machine
=hp800 opsys
=hpux9shr
2657 machine
=hp800 opsys
=hpux9
2659 hppa
*-hp-hpux10.2
* )
2660 machine
=hp800 opsys
=hpux10-20
2663 machine
=hp800 opsys
=hpux10
2665 hppa
*-hp-hpux1[1-9]* )
2666 machine
=hp800 opsys
=hpux11
2667 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2670 hppa
*-*-linux-gnu* )
2671 machine
=hp800 opsys
=gnu-linux
2674 ## HP 9000 series 700 and 800, running HP/UX
2676 ## Cross-compilation? Nah!
2677 case "`uname -r`" in
2678 ## Someone's system reports A.B8.05 for this.
2679 ## I wonder what other possibilities there are.
2680 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2681 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2682 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2683 *) machine
=hp800 opsys
=hpux10
;;
2687 machine
=hp800 opsys
=nextstep
2692 machine
=orion opsys
=bsd4-2
2694 clipper-orion-bsd
* )
2695 machine
=orion105 opsys
=bsd4-2
2699 i
[3456]86-ibm-aix1.1
* )
2700 machine
=ibmps2-aix opsys
=usg5-2-2
2702 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2703 machine
=ibmps2-aix opsys
=usg5-3
2706 machine
=ibm370aix opsys
=usg5-3
2709 machine
=ibms390 opsys
=gnu-linux
2711 s390x-
*-linux-gnu* )
2712 machine
=ibms390x opsys
=gnu-linux
2714 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2715 machine
=ibmrs6000 opsys
=aix3-1
2717 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2718 machine
=ibmrs6000 opsys
=aix3-2-5
2720 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2721 machine
=ibmrs6000 opsys
=aix4-1
2723 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2724 machine
=ibmrs6000 opsys
=aix4-2
2726 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
2727 machine
=ibmrs6000 opsys
=aix4-2
2729 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2730 machine
=ibmrs6000 opsys
=aix4-2
2732 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2733 machine
=ibmrs6000 opsys
=aix4
2735 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2736 machine
=ibmrs6000 opsys
=aix4-1
2738 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2739 machine
=ibmrs6000 opsys
=aix3-2
2742 machine
=ibmrt opsys
=bsd4-3
2745 machine
=ibmrt opsys
=bsd4-2
2748 machine
=ibmrt opsys
=bsd4-3
2751 machine
=ibmrt opsys
=bsd4-2
2754 machine
=ibmrt opsys
=bsd4-3
2757 machine
=ibmrt opsys
=bsd4-3
2760 machine
=ibmrt-aix opsys
=usg5-2-2
2763 ## Integrated Solutions `Optimum V'
2765 machine
=isi-ov opsys
=bsd4-2
2768 machine
=isi-ov opsys
=bsd4-3
2771 ## Intel 386 machines where we do care about the manufacturer
2772 i
[3456]86-intsys-sysv* )
2773 machine
=is386 opsys
=usg5-2-2
2777 i
[3456]86-prime-sysv* )
2778 machine
=i386 opsys
=usg5-3
2781 ## Sequent Symmetry running Dynix
2782 i
[3456]86-sequent-bsd* )
2783 machine
=symmetry opsys
=bsd4-3
2786 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2787 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2788 machine
=sequent-ptx opsys
=ptx4
2789 NON_GNU_CPP
=/lib
/cpp
2792 ## Sequent Symmetry running DYNIX/ptx
2793 ## Use the old cpp rather than the newer ANSI one.
2794 i
[3456]86-sequent-ptx* )
2795 machine
=sequent-ptx opsys
=ptx
2796 NON_GNU_CPP
="/lib/cpp"
2799 ## ncr machine running svr4.3.
2800 i
[3456]86-ncr-sysv4.3
)
2801 machine
=ncr386 opsys
=usg5-4-3
2804 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2805 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2806 i
[3456]86-ncr-sysv* )
2807 machine
=ncr386 opsys
=usg5-4-2
2810 ## Intel Paragon OSF/1
2812 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2817 machine
=i860 opsys
=usg5-4
2818 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2819 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2822 ## Macintosh PowerPC
2823 powerpc
*-*-linux-gnu* )
2824 machine
=macppc opsys
=gnu-linux
2827 ## Masscomp machines
2828 m68
*-masscomp-rtu* )
2829 machine
=masscomp opsys
=rtu
2832 ## Megatest machines
2833 m68
*-megatest-bsd* )
2834 machine
=mega68 opsys
=bsd4-2
2837 ## Workstations sold by MIPS
2838 ## This is not necessarily all workstations using the MIPS processor -
2839 ## Irises are produced by SGI, and DECstations by DEC.
2841 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2842 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2843 ## it gives for choosing between the alternatives seems to be "Use
2844 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2845 ## the BSD world." I'll assume that these are instructions for
2846 ## handling two odd situations, and that every other situation
2847 ## should use mips.h and usg5-2-2, they being listed first.
2850 ## Fall through to the general code at the bottom to decide on the OS.
2852 mips-mips-riscos4
* )
2853 machine
=mips4 opsys
=bsd4-3
2854 NON_GNU_CC
="cc -systype bsd43"
2855 NON_GNU_CPP
="cc -systype bsd43 -E"
2857 mips-mips-riscos5
* )
2858 machine
=mips4 opsys
=riscos5
2859 NON_GNU_CC
="cc -systype bsd43"
2860 NON_GNU_CPP
="cc -systype bsd43 -E"
2863 machine
=mips opsys
=bsd4-3
2866 machine
=mips opsys
=usg5-2-2
2870 m68
*-next-* | m68k-
*-nextstep* )
2871 machine
=m68k opsys
=nextstep
2874 ## The complete machine from National Semiconductor
2876 machine
=ns32000 opsys
=usg5-2
2880 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2881 machine
=tower32 opsys
=usg5-2-2
2883 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2884 machine
=tower32v3 opsys
=usg5-3
2889 machine
=ews4800 opsys
=ux4800
2892 ## Nixdorf Targon 31
2893 m68
*-nixdorf-sysv* )
2894 machine
=targon31 opsys
=usg5-2-2
2899 machine
=nu opsys
=usg5-2
2904 machine
=plexus opsys
=usg5-2
2908 ## I don't really have any idea what sort of processor the Pyramid has,
2909 ## so I'm assuming it is its own architecture.
2910 pyramid-pyramid-bsd
* )
2911 machine
=pyramid opsys
=bsd4-2
2915 ns32k-sequent-bsd4.2
* )
2916 machine
=sequent opsys
=bsd4-2
2918 ns32k-sequent-bsd4.3
* )
2919 machine
=sequent opsys
=bsd4-3
2923 mips-siemens-sysv
* | mips-sni-sysv
*)
2924 machine
=mips-siemens opsys
=usg5-4
2925 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2926 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2929 ## Silicon Graphics machines
2930 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2932 machine
=irist opsys
=iris3-5
2934 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2935 machine
=irist opsys
=iris3-6
2939 machine
=iris4d opsys
=irix3-3
2942 machine
=iris4d opsys
=irix4-0
2945 machine
=iris4d opsys
=irix6-5
2946 # Without defining _LANGUAGE_C, things get masked out in the headers
2947 # so that, for instance, grepping for `free' in stdlib.h fails and
2948 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2949 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2950 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2953 machine
=iris4d opsys
=irix6-0
2954 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2955 # but presumably it does no harm.
2956 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2957 # -32 probably isn't necessary in later v.6s -- anyone know which?
2958 NON_GCC_TEST_OPTIONS
=-32
2960 mips-sgi-irix5.
[01]* )
2961 machine
=iris4d opsys
=irix5-0
2963 mips-sgi-irix5
* | mips-sgi-irix
* )
2964 machine
=iris4d opsys
=irix5-2
2969 machine
=news opsys
=bsd4-2
2972 machine
=news opsys
=bsd4-3
2974 m68
*-sony-newsos3* | m68
*-sony-news3*)
2975 machine
=news opsys
=bsd4-3
2977 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2978 machine
=news-risc opsys
=bsd4-3
2980 mips-sony-newsos6
* )
2981 machine
=news-r6 opsys
=newsos6
2984 machine
=news-risc opsys
=newsos5
2989 machine
=stride opsys
=usg5-2
2993 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2994 machine
=sparc opsys
=gnu-linux
2997 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2998 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2999 | rs6000-
*-solaris2*)
3000 case "${canonical}" in
3001 m68
*-sunos1* ) machine
=sun1
;;
3002 m68
*-sunos2* ) machine
=sun2
;;
3003 m68
* ) machine
=sun3
;;
3004 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
3005 i
[3456]86-*-* ) machine
=intel386
;;
3006 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
3007 powerpcle
* ) machine
=powerpcle
;;
3008 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
3009 sparc
* ) machine
=sparc
;;
3012 case "${canonical}" in
3013 ## The Sun386 didn't get past 4.0.
3014 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
3015 *-sunos4.0
* ) opsys
=sunos4-0
;;
3016 *-sunos4.1.
[3-9]*noshare
)
3017 ## This name is sunos413 instead of sunos4-1-3
3018 ## to avoid a file name conflict on MSDOS.
3020 NON_GNU_CPP
=/usr
/lib
/cpp
3021 NON_GCC_TEST_OPTIONS
=-Bstatic
3022 GCC_TEST_OPTIONS
=-static
3024 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
3026 NON_GNU_CPP
=/usr
/lib
/cpp
3028 *-sunos4* |
*-sunos )
3030 NON_GCC_TEST_OPTIONS
=-Bstatic
3031 GCC_TEST_OPTIONS
=-static
3033 *-sunos5.3
* |
*-solaris2.3
* )
3035 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3037 *-sunos5.4
* |
*-solaris2.4
* )
3039 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3042 *-sunos5.5
* |
*-solaris2.5
* )
3044 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3047 *-sunos5.6
* |
*-solaris2.6
* )
3049 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3052 *-sunos5* |
*-solaris* )
3054 emacs_check_sunpro_c
=yes
3055 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3059 ## Watch out for a compiler that we know will not work.
3060 case "${canonical}" in
3061 *-solaris* |
*-sunos5* )
3062 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
3063 ## /usr/ucb/cc doesn't work;
3064 ## we should find some other compiler that does work.
3072 machine
=sparc opsys
=nextstep
3076 m68
*-tadpole-sysv* )
3077 machine
=tad68k opsys
=usg5-3
3081 tahoe-tahoe-bsd4.2
* )
3082 machine
=tahoe opsys
=bsd4-2
3084 tahoe-tahoe-bsd4.3
* )
3085 machine
=tahoe opsys
=bsd4-3
3088 ## Tandem Integrity S2
3090 machine
=tandem-s2 opsys
=usg5-3
3094 m88k-tektronix-sysv3
* )
3095 machine
=tekxd88 opsys
=usg5-3
3098 ## Tektronix 16000 box (6130?)
3099 ns16k-tektronix-bsd
* )
3100 machine
=ns16000 opsys
=bsd4-2
3103 ## src/m/tek4300.h hints that this is a m68k machine.
3104 m68
*-tektronix-bsd* )
3105 machine
=tek4300 opsys
=bsd4-3
3109 ## We seem to have lost the machine-description file titan.h!
3111 machine
=titan opsys
=usg5-3
3114 ## Ustation E30 (SS5E)
3115 m68
*-unisys-uniplus* )
3116 machine
=ustation opsystem
=unipl5-2
3122 case "${canonical}" in
3123 *-bsd4.1
* ) opsys
=bsd4-1
;;
3124 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
3125 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
3126 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
3127 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
3128 *-vms* ) opsys
=vms
;;
3134 ns16k-whitechapel-
* )
3136 ## We don't know what sort of OS runs on these; we'll let the
3137 ## operating system guessing code below try.
3142 machine
=wicat opsys
=usg5-2
3147 machine
=ia64 opsys
=gnu-linux
3150 ## Intel 386 machines where we don't care about the manufacturer
3153 case "${canonical}" in
3154 *-cygwin ) opsys
=cygwin
;;
3155 *-darwin* ) opsys
=darwin
3156 CPP
="${CC-cc} -E -no-cpp-precomp"
3158 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
3159 *-isc2.2
* ) opsys
=isc2-2
;;
3160 *-isc4.0
* ) opsys
=isc4-0
;;
3161 *-isc4.
* ) opsys
=isc4-1
3162 GCC_TEST_OPTIONS
=-posix
3163 NON_GCC_TEST_OPTIONS
=-Xp
3165 *-isc* ) opsys
=isc3-0
;;
3166 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
3167 *-esix* ) opsys
=esix
;;
3168 *-xenix* ) opsys
=xenix
;;
3169 *-linux-gnu* ) opsys
=gnu-linux
;;
3170 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
3171 *-sco3.2v5
* ) opsys
=sco5
3172 NON_GNU_CPP
=/lib
/cpp
3173 # Prevent -belf from being passed to $CPP.
3174 # /lib/cpp does not accept it.
3175 OVERRIDE_CPPFLAGS
=" "
3177 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3178 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3179 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3180 *-386bsd* ) opsys
=386bsd
;;
3181 *-nextstep* ) opsys
=nextstep
;;
3182 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3186 ## m68k Linux-based GNU system
3188 machine
=m68k opsys
=gnu-linux
3191 ## Mips Linux-based GNU system
3192 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
3193 machine
=mips opsys
=gnu-linux
3197 sparc-fujitsu-sysv4
* )
3198 machine
=sparc opsys
=uxpds
3199 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3204 f301-fujitsu-uxpv4.1
)
3205 machine
=f301 opsys
=uxpv
3208 ## AMD x86-64 Linux-based GNU system
3209 x86_64-
*-linux-gnu* )
3210 machine
=amdx86-64 opsys
=gnu-linux
3213 ## Tensilica Xtensa Linux-based GNU system
3214 xtensa-
*-linux-gnu* )
3215 machine
=xtensa opsys
=gnu-linux
3223 ### If the code above didn't choose an operating system, just choose
3224 ### an operating system based on the configuration name. You really
3225 ### only want to use this when you have no idea what the right
3226 ### operating system is; if you know what operating systems a machine
3227 ### runs, it's cleaner to make it explicit in the case statement
3229 if test x
"${opsys}" = x
; then
3230 case "${canonical}" in
3231 *-gnu* ) opsys
=gnu
;;
3232 *-bsd4.
[01] ) opsys
=bsd4-1
;;
3233 *-bsd4.2
) opsys
=bsd4-2
;;
3234 *-bsd4.3
) opsys
=bsd4-3
;;
3235 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
3236 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
3237 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
3238 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
3239 *-sysv4.2uw
* ) opsys
=unixware
;;
3240 *-sysv5uw* ) opsys
=unixware
;;
3241 *-sysv5OpenUNIX* ) opsys
=unixware
;;
3242 *-sysv4.1
* |
*-sysvr4.1
* )
3243 NON_GNU_CPP
=/usr
/lib
/cpp
3245 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
3246 if [ x
$NON_GNU_CPP = x
]; then
3247 if [ -f /usr
/ccs
/lib
/cpp
]; then
3248 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3250 NON_GNU_CPP
=/lib
/cpp
3254 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
3263 if test $unported = yes; then
3264 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3265 Check \`etc/MACHINES' for recognized configuration names." >&5
3266 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3267 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3268 { (exit 1); exit 1; }; }
3271 machfile
="m/${machine}.h"
3272 opsysfile
="s/${opsys}.h"
3275 #### Choose a compiler.
3276 test -n "$CC" && cc_specified
=yes
3278 # Save the value of CFLAGS that the user specified.
3279 SPECIFIED_CFLAGS
="$CFLAGS"
3282 "yes" ) CC
="gcc" GCC
=yes ;;
3283 "no" ) : ${CC=cc} ;;
3287 ac_cpp
='$CPP $CPPFLAGS'
3288 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3289 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3290 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3291 if test -n "$ac_tool_prefix"; then
3292 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3293 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3294 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3296 if test "${ac_cv_prog_CC+set}" = set; then
3297 echo $ECHO_N "(cached) $ECHO_C" >&6
3299 if test -n "$CC"; then
3300 ac_cv_prog_CC
="$CC" # Let the user override the test.
3302 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3306 test -z "$as_dir" && as_dir
=.
3307 for ac_exec_ext
in '' $ac_executable_extensions; do
3308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3309 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3320 if test -n "$CC"; then
3321 { echo "$as_me:$LINENO: result: $CC" >&5
3322 echo "${ECHO_T}$CC" >&6; }
3324 { echo "$as_me:$LINENO: result: no" >&5
3325 echo "${ECHO_T}no" >&6; }
3330 if test -z "$ac_cv_prog_CC"; then
3332 # Extract the first word of "gcc", so it can be a program name with args.
3333 set dummy gcc
; ac_word
=$2
3334 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3336 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3337 echo $ECHO_N "(cached) $ECHO_C" >&6
3339 if test -n "$ac_ct_CC"; then
3340 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3342 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3346 test -z "$as_dir" && as_dir
=.
3347 for ac_exec_ext
in '' $ac_executable_extensions; do
3348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3349 ac_cv_prog_ac_ct_CC
="gcc"
3350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3359 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3360 if test -n "$ac_ct_CC"; then
3361 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3362 echo "${ECHO_T}$ac_ct_CC" >&6; }
3364 { echo "$as_me:$LINENO: result: no" >&5
3365 echo "${ECHO_T}no" >&6; }
3368 if test "x$ac_ct_CC" = x
; then
3371 case $cross_compiling:$ac_tool_warned in
3373 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3374 whose name does not start with the host triplet. If you think this
3375 configuration is useful to you, please write to autoconf@gnu.org." >&5
3376 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3377 whose name does not start with the host triplet. If you think this
3378 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3379 ac_tool_warned
=yes ;;
3387 if test -z "$CC"; then
3388 if test -n "$ac_tool_prefix"; then
3389 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3390 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3391 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3393 if test "${ac_cv_prog_CC+set}" = set; then
3394 echo $ECHO_N "(cached) $ECHO_C" >&6
3396 if test -n "$CC"; then
3397 ac_cv_prog_CC
="$CC" # Let the user override the test.
3399 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3403 test -z "$as_dir" && as_dir
=.
3404 for ac_exec_ext
in '' $ac_executable_extensions; do
3405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3406 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3417 if test -n "$CC"; then
3418 { echo "$as_me:$LINENO: result: $CC" >&5
3419 echo "${ECHO_T}$CC" >&6; }
3421 { echo "$as_me:$LINENO: result: no" >&5
3422 echo "${ECHO_T}no" >&6; }
3428 if test -z "$CC"; then
3429 # Extract the first word of "cc", so it can be a program name with args.
3430 set dummy cc
; ac_word
=$2
3431 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3433 if test "${ac_cv_prog_CC+set}" = set; then
3434 echo $ECHO_N "(cached) $ECHO_C" >&6
3436 if test -n "$CC"; then
3437 ac_cv_prog_CC
="$CC" # Let the user override the test.
3440 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3444 test -z "$as_dir" && as_dir
=.
3445 for ac_exec_ext
in '' $ac_executable_extensions; do
3446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3447 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3448 ac_prog_rejected
=yes
3452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3459 if test $ac_prog_rejected = yes; then
3460 # We found a bogon in the path, so make sure we never use it.
3461 set dummy
$ac_cv_prog_CC
3463 if test $# != 0; then
3464 # We chose a different compiler from the bogus one.
3465 # However, it has the same basename, so the bogon will be chosen
3466 # first if we set CC to just the basename; use the full file name.
3468 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3474 if test -n "$CC"; then
3475 { echo "$as_me:$LINENO: result: $CC" >&5
3476 echo "${ECHO_T}$CC" >&6; }
3478 { echo "$as_me:$LINENO: result: no" >&5
3479 echo "${ECHO_T}no" >&6; }
3484 if test -z "$CC"; then
3485 if test -n "$ac_tool_prefix"; then
3486 for ac_prog
in cl.exe
3488 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3489 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3490 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3492 if test "${ac_cv_prog_CC+set}" = set; then
3493 echo $ECHO_N "(cached) $ECHO_C" >&6
3495 if test -n "$CC"; then
3496 ac_cv_prog_CC
="$CC" # Let the user override the test.
3498 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3502 test -z "$as_dir" && as_dir
=.
3503 for ac_exec_ext
in '' $ac_executable_extensions; do
3504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3505 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3516 if test -n "$CC"; then
3517 { echo "$as_me:$LINENO: result: $CC" >&5
3518 echo "${ECHO_T}$CC" >&6; }
3520 { echo "$as_me:$LINENO: result: no" >&5
3521 echo "${ECHO_T}no" >&6; }
3525 test -n "$CC" && break
3528 if test -z "$CC"; then
3530 for ac_prog
in cl.exe
3532 # Extract the first word of "$ac_prog", so it can be a program name with args.
3533 set dummy
$ac_prog; ac_word
=$2
3534 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3536 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3537 echo $ECHO_N "(cached) $ECHO_C" >&6
3539 if test -n "$ac_ct_CC"; then
3540 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3542 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3546 test -z "$as_dir" && as_dir
=.
3547 for ac_exec_ext
in '' $ac_executable_extensions; do
3548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3549 ac_cv_prog_ac_ct_CC
="$ac_prog"
3550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3559 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3560 if test -n "$ac_ct_CC"; then
3561 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3562 echo "${ECHO_T}$ac_ct_CC" >&6; }
3564 { echo "$as_me:$LINENO: result: no" >&5
3565 echo "${ECHO_T}no" >&6; }
3569 test -n "$ac_ct_CC" && break
3572 if test "x$ac_ct_CC" = x
; then
3575 case $cross_compiling:$ac_tool_warned in
3577 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3578 whose name does not start with the host triplet. If you think this
3579 configuration is useful to you, please write to autoconf@gnu.org." >&5
3580 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3581 whose name does not start with the host triplet. If you think this
3582 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3583 ac_tool_warned
=yes ;;
3592 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3593 See \`config.log' for more details." >&5
3594 echo "$as_me: error: no acceptable C compiler found in \$PATH
3595 See \`config.log' for more details." >&2;}
3596 { (exit 1); exit 1; }; }
3598 # Provide some information about the compiler.
3599 echo "$as_me:$LINENO: checking for C compiler version" >&5
3600 ac_compiler
=`set X $ac_compile; echo $2`
3601 { (ac_try
="$ac_compiler --version >&5"
3603 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3604 *) ac_try_echo=$ac_try;;
3606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3607 (eval "$ac_compiler --version >&5") 2>&5
3609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610 (exit $ac_status); }
3611 { (ac_try="$ac_compiler -v >&5"
3613 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3614 *) ac_try_echo
=$ac_try;;
3616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3617 (eval "$ac_compiler -v >&5") 2>&5
3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620 (exit $ac_status); }
3621 { (ac_try
="$ac_compiler -V >&5"
3623 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3624 *) ac_try_echo=$ac_try;;
3626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3627 (eval "$ac_compiler -V >&5") 2>&5
3629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630 (exit $ac_status); }
3632 cat >conftest.$ac_ext <<_ACEOF
3635 cat confdefs.h >>conftest.$ac_ext
3636 cat >>conftest.$ac_ext <<_ACEOF
3637 /* end confdefs.h. */
3647 ac_clean_files_save=$ac_clean_files
3648 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3649 # Try to create an executable without -o first, disregard a.out.
3650 # It will help us diagnose broken compilers, and finding out an intuition
3652 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3653 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3654 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3656 # List of possible output files, starting from the most likely.
3657 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
3658 # only as a last resort. b.out is created by i960 compilers.
3659 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
3661 # The IRIX 6 linker writes into existing files which may not be
3662 # executable, retaining their permissions. Remove them first so a
3663 # subsequent execution test works.
3665 for ac_file in $ac_files
3668 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3669 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3674 if { (ac_try="$ac_link_default"
3676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3677 *) ac_try_echo=$ac_try;;
3679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3680 (eval "$ac_link_default") 2>&5
3682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683 (exit $ac_status); }; then
3684 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3685 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3686 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3687 # so that the user can short-circuit this test for compilers unknown to
3689 for ac_file
in $ac_files ''
3691 test -f "$ac_file" ||
continue
3693 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
3696 # We found the default executable, but exeext='' is most
3700 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3702 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3704 # We set ac_cv_exeext here because the later test for it is not
3705 # safe: cross compilers may not add the suffix if given an `-o'
3706 # argument, so we may need to know it at that point already.
3707 # Even if this section looks crufty: it has the advantage of
3714 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3720 { echo "$as_me:$LINENO: result: $ac_file" >&5
3721 echo "${ECHO_T}$ac_file" >&6; }
3722 if test -z "$ac_file"; then
3723 echo "$as_me: failed program was:" >&5
3724 sed 's/^/| /' conftest.
$ac_ext >&5
3726 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3727 See \`config.log' for more details." >&5
3728 echo "$as_me: error: C compiler cannot create executables
3729 See \`config.log' for more details." >&2;}
3730 { (exit 77); exit 77; }; }
3733 ac_exeext
=$ac_cv_exeext
3735 # Check that the compiler produces executables we can run. If not, either
3736 # the compiler is broken, or we cross compile.
3737 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3738 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3739 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3740 # If not cross compiling, check that we can run a simple program.
3741 if test "$cross_compiling" != yes; then
3742 if { ac_try
='./$ac_file'
3743 { (case "(($ac_try" in
3744 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3745 *) ac_try_echo=$ac_try;;
3747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3748 (eval "$ac_try") 2>&5
3750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751 (exit $ac_status); }; }; then
3754 if test "$cross_compiling" = maybe; then
3757 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3758 If you meant to cross compile, use \`--host'.
3759 See \`config.log' for more details.
" >&5
3760 echo "$as_me: error
: cannot run C compiled programs.
3761 If you meant to cross compile
, use \
`--host'.
3762 See \`config.log
' for more details." >&2;}
3763 { (exit 1); exit 1; }; }
3767 { echo "$as_me:$LINENO: result: yes" >&5
3768 echo "${ECHO_T}yes" >&6; }
3770 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3771 ac_clean_files=$ac_clean_files_save
3772 # Check that the compiler produces executables we can run. If not, either
3773 # the compiler is broken, or we cross compile.
3774 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3775 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3776 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3777 echo "${ECHO_T}$cross_compiling" >&6; }
3779 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3780 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3781 if { (ac_try="$ac_link"
3783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3784 *) ac_try_echo=$ac_try;;
3786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3787 (eval "$ac_link") 2>&5
3789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790 (exit $ac_status); }; then
3791 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3792 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3793 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3795 for ac_file
in conftest.exe conftest conftest.
*; do
3796 test -f "$ac_file" ||
continue
3798 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
3799 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3805 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3806 See \`config.log' for more details." >&5
3807 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3808 See \`config.log' for more details." >&2;}
3809 { (exit 1); exit 1; }; }
3812 rm -f conftest
$ac_cv_exeext
3813 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3814 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3816 rm -f conftest.
$ac_ext
3817 EXEEXT
=$ac_cv_exeext
3819 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3820 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3821 if test "${ac_cv_objext+set}" = set; then
3822 echo $ECHO_N "(cached) $ECHO_C" >&6
3824 cat >conftest.
$ac_ext <<_ACEOF
3827 cat confdefs.h
>>conftest.
$ac_ext
3828 cat >>conftest.
$ac_ext <<_ACEOF
3829 /* end confdefs.h. */
3839 rm -f conftest.o conftest.obj
3840 if { (ac_try
="$ac_compile"
3842 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3843 *) ac_try_echo=$ac_try;;
3845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3846 (eval "$ac_compile") 2>&5
3848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849 (exit $ac_status); }; then
3850 for ac_file in conftest.o conftest.obj conftest.*; do
3851 test -f "$ac_file" || continue;
3853 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3854 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3859 echo "$as_me: failed program was:" >&5
3860 sed 's/^/| /' conftest.$ac_ext >&5
3862 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3863 See \`config.log
' for more details." >&5
3864 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3865 See \`config.log' for more details.
" >&2;}
3866 { (exit 1); exit 1; }; }
3869 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3871 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3872 echo "${ECHO_T}$ac_cv_objext" >&6; }
3873 OBJEXT=$ac_cv_objext
3875 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3876 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3877 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3878 echo $ECHO_N "(cached
) $ECHO_C" >&6
3880 cat >conftest.$ac_ext <<_ACEOF
3883 cat confdefs.h >>conftest.$ac_ext
3884 cat >>conftest.$ac_ext <<_ACEOF
3885 /* end confdefs.h. */
3898 rm -f conftest.$ac_objext
3899 if { (ac_try="$ac_compile"
3901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3902 *) ac_try_echo=$ac_try;;
3904 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3905 (eval "$ac_compile") 2>conftest.er1
3907 grep -v '^ *+' conftest.er1 >conftest.err
3909 cat conftest.err >&5
3910 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3911 (exit $ac_status); } && {
3912 test -z "$ac_c_werror_flag" ||
3913 test ! -s conftest.err
3914 } && test -s conftest.$ac_objext; then
3917 echo "$as_me: failed program was
:" >&5
3918 sed 's/^/| /' conftest.$ac_ext >&5
3923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3924 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3927 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3928 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3929 GCC=`test $ac_compiler_gnu = yes && echo yes`
3930 ac_test_CFLAGS=${CFLAGS+set}
3931 ac_save_CFLAGS=$CFLAGS
3932 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3933 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3934 if test "${ac_cv_prog_cc_g+set}" = set; then
3935 echo $ECHO_N "(cached
) $ECHO_C" >&6
3937 ac_save_c_werror_flag=$ac_c_werror_flag
3938 ac_c_werror_flag=yes
3941 cat >conftest.$ac_ext <<_ACEOF
3944 cat confdefs.h >>conftest.$ac_ext
3945 cat >>conftest.$ac_ext <<_ACEOF
3946 /* end confdefs.h. */
3956 rm -f conftest.$ac_objext
3957 if { (ac_try="$ac_compile"
3959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3960 *) ac_try_echo=$ac_try;;
3962 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3963 (eval "$ac_compile") 2>conftest.er1
3965 grep -v '^ *+' conftest.er1 >conftest.err
3967 cat conftest.err >&5
3968 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3969 (exit $ac_status); } && {
3970 test -z "$ac_c_werror_flag" ||
3971 test ! -s conftest.err
3972 } && test -s conftest.$ac_objext; then
3975 echo "$as_me: failed program was
:" >&5
3976 sed 's/^/| /' conftest.$ac_ext >&5
3979 cat >conftest.$ac_ext <<_ACEOF
3982 cat confdefs.h >>conftest.$ac_ext
3983 cat >>conftest.$ac_ext <<_ACEOF
3984 /* end confdefs.h. */
3994 rm -f conftest.$ac_objext
3995 if { (ac_try="$ac_compile"
3997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3998 *) ac_try_echo=$ac_try;;
4000 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4001 (eval "$ac_compile") 2>conftest.er1
4003 grep -v '^ *+' conftest.er1 >conftest.err
4005 cat conftest.err >&5
4006 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4007 (exit $ac_status); } && {
4008 test -z "$ac_c_werror_flag" ||
4009 test ! -s conftest.err
4010 } && test -s conftest.$ac_objext; then
4013 echo "$as_me: failed program was
:" >&5
4014 sed 's/^/| /' conftest.$ac_ext >&5
4016 ac_c_werror_flag=$ac_save_c_werror_flag
4018 cat >conftest.$ac_ext <<_ACEOF
4021 cat confdefs.h >>conftest.$ac_ext
4022 cat >>conftest.$ac_ext <<_ACEOF
4023 /* end confdefs.h. */
4033 rm -f conftest.$ac_objext
4034 if { (ac_try="$ac_compile"
4036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4037 *) ac_try_echo=$ac_try;;
4039 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4040 (eval "$ac_compile") 2>conftest.er1
4042 grep -v '^ *+' conftest.er1 >conftest.err
4044 cat conftest.err >&5
4045 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4046 (exit $ac_status); } && {
4047 test -z "$ac_c_werror_flag" ||
4048 test ! -s conftest.err
4049 } && test -s conftest.$ac_objext; then
4052 echo "$as_me: failed program was
:" >&5
4053 sed 's/^/| /' conftest.$ac_ext >&5
4058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4065 ac_c_werror_flag=$ac_save_c_werror_flag
4067 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
4068 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4069 if test "$ac_test_CFLAGS" = set; then
4070 CFLAGS=$ac_save_CFLAGS
4071 elif test $ac_cv_prog_cc_g = yes; then
4072 if test "$GCC" = yes; then
4078 if test "$GCC" = yes; then
4084 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
4085 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
4086 if test "${ac_cv_prog_cc_c89+set}" = set; then
4087 echo $ECHO_N "(cached
) $ECHO_C" >&6
4089 ac_cv_prog_cc_c89=no
4091 cat >conftest.$ac_ext <<_ACEOF
4094 cat confdefs.h >>conftest.$ac_ext
4095 cat >>conftest.$ac_ext <<_ACEOF
4096 /* end confdefs.h. */
4099 #include <sys/types.h>
4100 #include <sys/stat.h>
4101 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4102 struct buf { int x; };
4103 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4104 static char *e (p, i)
4110 static char *f (char * (*g) (char **, int), char **p, ...)
4115 s = g (p, va_arg (v,int));
4120 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4121 function prototypes and stuff, but not '\xHH' hex character constants.
4122 These don't provoke an error unfortunately, instead are silently treated
4123 as 'x'. The following induces an error, until -std is added to get
4124 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4125 array size at least. It's necessary to write '\x00'==0 to get something
4126 that's true only with -std. */
4127 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4129 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4130 inside strings and character constants. */
4132 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4134 int test (int i, double x);
4135 struct s1 {int (*f) (int a);};
4136 struct s2 {int (*f) (double a);};
4137 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4143 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4148 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4149 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4151 CC="$ac_save_CC $ac_arg"
4152 rm -f conftest.$ac_objext
4153 if { (ac_try="$ac_compile"
4155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4156 *) ac_try_echo=$ac_try;;
4158 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4159 (eval "$ac_compile") 2>conftest.er1
4161 grep -v '^ *+' conftest.er1 >conftest.err
4163 cat conftest.err >&5
4164 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4165 (exit $ac_status); } && {
4166 test -z "$ac_c_werror_flag" ||
4167 test ! -s conftest.err
4168 } && test -s conftest.$ac_objext; then
4169 ac_cv_prog_cc_c89=$ac_arg
4171 echo "$as_me: failed program was
:" >&5
4172 sed 's/^/| /' conftest.$ac_ext >&5
4177 rm -f core conftest.err conftest.$ac_objext
4178 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
4180 rm -f conftest.$ac_ext
4185 case "x
$ac_cv_prog_cc_c89" in
4187 { echo "$as_me:$LINENO: result
: none needed
" >&5
4188 echo "${ECHO_T}none needed
" >&6; } ;;
4190 { echo "$as_me:$LINENO: result
: unsupported
" >&5
4191 echo "${ECHO_T}unsupported
" >&6; } ;;
4193 CC="$CC $ac_cv_prog_cc_c89"
4194 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
4195 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4200 ac_cpp='$CPP $CPPFLAGS'
4201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4206 # On Suns, sometimes $CPP names a directory.
4207 if test -n "$CPP" && test -d "$CPP"; then
4211 ## If not using gcc, and on Solaris, and no CPP specified, see if
4212 ## using a Sun compiler, which needs -Xs to prevent whitespace.
4213 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
4214 test x"$CPP" = x; then
4215 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler
" >&5
4216 echo $ECHO_N "checking whether we are using a Sun C compiler...
$ECHO_C" >&6; }
4218 if test "${emacs_cv_sunpro_c+set}" = set; then
4219 echo $ECHO_N "(cached
) $ECHO_C" >&6
4221 cat >conftest.$ac_ext <<_ACEOF
4224 cat confdefs.h >>conftest.$ac_ext
4225 cat >>conftest.$ac_ext <<_ACEOF
4226 /* end confdefs.h. */
4239 rm -f conftest.$ac_objext conftest$ac_exeext
4240 if { (ac_try="$ac_link"
4242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4243 *) ac_try_echo=$ac_try;;
4245 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4246 (eval "$ac_link") 2>conftest.er1
4248 grep -v '^ *+' conftest.er1 >conftest.err
4250 cat conftest.err >&5
4251 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4252 (exit $ac_status); } && {
4253 test -z "$ac_c_werror_flag" ||
4254 test ! -s conftest.err
4255 } && test -s conftest$ac_exeext &&
4256 $as_test_x conftest$ac_exeext; then
4257 emacs_cv_sunpro_c=yes
4259 echo "$as_me: failed program was
:" >&5
4260 sed 's/^/| /' conftest.$ac_ext >&5
4262 emacs_cv_sunpro_c=no
4265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4266 conftest$ac_exeext conftest.$ac_ext
4269 { echo "$as_me:$LINENO: result
: $emacs_cv_sunpro_c" >&5
4270 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
4272 if test x"$emacs_cv_sunpro_c" = xyes; then
4273 NON_GNU_CPP="$CC -E -Xs"
4277 #### Some systems specify a CPP to use unless we are using GCC.
4278 #### Now that we know whether we are using GCC, we can decide whether
4279 #### to use that one.
4280 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
4285 #### Some systems specify a CC to use unless we are using GCC.
4286 #### Now that we know whether we are using GCC, we can decide whether
4287 #### to use that one.
4288 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
4289 test x$cc_specified != xyes
4294 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
4296 CC="$CC $GCC_TEST_OPTIONS"
4299 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
4301 CC="$CC $NON_GCC_TEST_OPTIONS"
4305 ac_cpp='$CPP $CPPFLAGS'
4306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4309 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
4310 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
4311 # On Suns, sometimes $CPP names a directory.
4312 if test -n "$CPP" && test -d "$CPP"; then
4315 if test -z "$CPP"; then
4316 if test "${ac_cv_prog_CPP+set}" = set; then
4317 echo $ECHO_N "(cached
) $ECHO_C" >&6
4319 # Double quotes because CPP needs to be expanded
4320 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
4323 for ac_c_preproc_warn_flag in '' yes
4325 # Use a header file that comes with gcc, so configuring glibc
4326 # with a fresh cross-compiler works.
4327 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4328 # <limits.h> exists even on freestanding compilers.
4329 # On the NeXT, cc -E runs the code through the compiler's parser,
4330 # not just through cpp. "Syntax error
" is here to catch this case.
4331 cat >conftest.$ac_ext <<_ACEOF
4334 cat confdefs.h >>conftest.$ac_ext
4335 cat >>conftest.$ac_ext <<_ACEOF
4336 /* end confdefs.h. */
4338 # include <limits.h>
4340 # include <assert.h>
4344 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4347 *) ac_try_echo=$ac_try;;
4349 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4350 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4352 grep -v '^ *+' conftest.er1 >conftest.err
4354 cat conftest.err >&5
4355 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4356 (exit $ac_status); } >/dev/null && {
4357 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4358 test ! -s conftest.err
4362 echo "$as_me: failed program was
:" >&5
4363 sed 's/^/| /' conftest.$ac_ext >&5
4365 # Broken: fails on valid input.
4369 rm -f conftest.err conftest.$ac_ext
4371 # OK, works on sane cases. Now check whether nonexistent headers
4372 # can be detected and how.
4373 cat >conftest.$ac_ext <<_ACEOF
4376 cat confdefs.h >>conftest.$ac_ext
4377 cat >>conftest.$ac_ext <<_ACEOF
4378 /* end confdefs.h. */
4379 #include <ac_nonexistent.h>
4381 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4384 *) ac_try_echo=$ac_try;;
4386 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4387 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4389 grep -v '^ *+' conftest.er1 >conftest.err
4391 cat conftest.err >&5
4392 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4393 (exit $ac_status); } >/dev/null && {
4394 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4395 test ! -s conftest.err
4397 # Broken: success on invalid input.
4400 echo "$as_me: failed program was
:" >&5
4401 sed 's/^/| /' conftest.$ac_ext >&5
4403 # Passes both tests.
4408 rm -f conftest.err conftest.$ac_ext
4411 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4412 rm -f conftest.err conftest.$ac_ext
4413 if $ac_preproc_ok; then
4425 { echo "$as_me:$LINENO: result
: $CPP" >&5
4426 echo "${ECHO_T}$CPP" >&6; }
4428 for ac_c_preproc_warn_flag in '' yes
4430 # Use a header file that comes with gcc, so configuring glibc
4431 # with a fresh cross-compiler works.
4432 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4433 # <limits.h> exists even on freestanding compilers.
4434 # On the NeXT, cc -E runs the code through the compiler's parser,
4435 # not just through cpp. "Syntax error
" is here to catch this case.
4436 cat >conftest.$ac_ext <<_ACEOF
4439 cat confdefs.h >>conftest.$ac_ext
4440 cat >>conftest.$ac_ext <<_ACEOF
4441 /* end confdefs.h. */
4443 # include <limits.h>
4445 # include <assert.h>
4449 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4452 *) ac_try_echo=$ac_try;;
4454 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4455 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4457 grep -v '^ *+' conftest.er1 >conftest.err
4459 cat conftest.err >&5
4460 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4461 (exit $ac_status); } >/dev/null && {
4462 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4463 test ! -s conftest.err
4467 echo "$as_me: failed program was
:" >&5
4468 sed 's/^/| /' conftest.$ac_ext >&5
4470 # Broken: fails on valid input.
4474 rm -f conftest.err conftest.$ac_ext
4476 # OK, works on sane cases. Now check whether nonexistent headers
4477 # can be detected and how.
4478 cat >conftest.$ac_ext <<_ACEOF
4481 cat confdefs.h >>conftest.$ac_ext
4482 cat >>conftest.$ac_ext <<_ACEOF
4483 /* end confdefs.h. */
4484 #include <ac_nonexistent.h>
4486 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4489 *) ac_try_echo=$ac_try;;
4491 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4492 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4494 grep -v '^ *+' conftest.er1 >conftest.err
4496 cat conftest.err >&5
4497 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4498 (exit $ac_status); } >/dev/null && {
4499 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4500 test ! -s conftest.err
4502 # Broken: success on invalid input.
4505 echo "$as_me: failed program was
:" >&5
4506 sed 's/^/| /' conftest.$ac_ext >&5
4508 # Passes both tests.
4513 rm -f conftest.err conftest.$ac_ext
4516 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4517 rm -f conftest.err conftest.$ac_ext
4518 if $ac_preproc_ok; then
4521 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4522 See \
`config.log' for more details." >&5
4523 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4524 See \`config.log
' for more details." >&2;}
4525 { (exit 1); exit 1; }; }
4529 ac_cpp='$CPP $CPPFLAGS'
4530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4531 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4535 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4536 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4537 if test "${ac_cv_path_GREP+set}" = set; then
4538 echo $ECHO_N "(cached) $ECHO_C" >&6
4540 # Extract the first word of "grep ggrep" to use in msg output
4541 if test -z "$GREP"; then
4542 set dummy grep ggrep; ac_prog_name=$2
4543 if test "${ac_cv_path_GREP+set}" = set; then
4544 echo $ECHO_N "(cached) $ECHO_C" >&6
4546 ac_path_GREP_found=false
4547 # Loop through the user's path and
test for each of PROGNAME-LIST
4548 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4549 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4552 test -z "$as_dir" && as_dir
=.
4553 for ac_prog
in grep ggrep
; do
4554 for ac_exec_ext
in '' $ac_executable_extensions; do
4555 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4556 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4557 # Check for GNU ac_path_GREP and select it if it is found.
4558 # Check for GNU $ac_path_GREP
4559 case `"$ac_path_GREP" --version 2>&1` in
4561 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4564 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4567 cat "conftest.in" "conftest.in" >"conftest.tmp"
4568 mv "conftest.tmp" "conftest.in"
4569 cp "conftest.in" "conftest.nl"
4570 echo 'GREP' >> "conftest.nl"
4571 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4572 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4573 ac_count
=`expr $ac_count + 1`
4574 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4575 # Best one so far, save it but keep looking for a better one
4576 ac_cv_path_GREP
="$ac_path_GREP"
4577 ac_path_GREP_max
=$ac_count
4579 # 10*(2^10) chars as input seems more than enough
4580 test $ac_count -gt 10 && break
4582 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4586 $ac_path_GREP_found && break 3
4596 GREP
="$ac_cv_path_GREP"
4597 if test -z "$GREP"; then
4598 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4599 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4600 { (exit 1); exit 1; }; }
4604 ac_cv_path_GREP
=$GREP
4609 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4610 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4611 GREP
="$ac_cv_path_GREP"
4614 { echo "$as_me:$LINENO: checking for egrep" >&5
4615 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4616 if test "${ac_cv_path_EGREP+set}" = set; then
4617 echo $ECHO_N "(cached) $ECHO_C" >&6
4619 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4620 then ac_cv_path_EGREP
="$GREP -E"
4622 # Extract the first word of "egrep" to use in msg output
4623 if test -z "$EGREP"; then
4624 set dummy
egrep; ac_prog_name
=$2
4625 if test "${ac_cv_path_EGREP+set}" = set; then
4626 echo $ECHO_N "(cached) $ECHO_C" >&6
4628 ac_path_EGREP_found
=false
4629 # Loop through the user's path and test for each of PROGNAME-LIST
4630 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4631 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4634 test -z "$as_dir" && as_dir
=.
4635 for ac_prog
in egrep; do
4636 for ac_exec_ext
in '' $ac_executable_extensions; do
4637 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4638 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4639 # Check for GNU ac_path_EGREP and select it if it is found.
4640 # Check for GNU $ac_path_EGREP
4641 case `"$ac_path_EGREP" --version 2>&1` in
4643 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4646 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4649 cat "conftest.in" "conftest.in" >"conftest.tmp"
4650 mv "conftest.tmp" "conftest.in"
4651 cp "conftest.in" "conftest.nl"
4652 echo 'EGREP' >> "conftest.nl"
4653 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4654 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4655 ac_count
=`expr $ac_count + 1`
4656 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4657 # Best one so far, save it but keep looking for a better one
4658 ac_cv_path_EGREP
="$ac_path_EGREP"
4659 ac_path_EGREP_max
=$ac_count
4661 # 10*(2^10) chars as input seems more than enough
4662 test $ac_count -gt 10 && break
4664 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4668 $ac_path_EGREP_found && break 3
4678 EGREP
="$ac_cv_path_EGREP"
4679 if test -z "$EGREP"; then
4680 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4681 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4682 { (exit 1); exit 1; }; }
4686 ac_cv_path_EGREP
=$EGREP
4692 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4693 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4694 EGREP
="$ac_cv_path_EGREP"
4698 { echo "$as_me:$LINENO: checking for AIX" >&5
4699 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4700 cat >conftest.
$ac_ext <<_ACEOF
4703 cat confdefs.h
>>conftest.
$ac_ext
4704 cat >>conftest.
$ac_ext <<_ACEOF
4705 /* end confdefs.h. */
4711 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4712 $EGREP "yes" >/dev
/null
2>&1; then
4713 { echo "$as_me:$LINENO: result: yes" >&5
4714 echo "${ECHO_T}yes" >&6; }
4715 cat >>confdefs.h
<<\_ACEOF
4716 #define _ALL_SOURCE 1
4720 { echo "$as_me:$LINENO: result: no" >&5
4721 echo "${ECHO_T}no" >&6; }
4727 cat >>confdefs.h
<<\_ACEOF
4728 #define _GNU_SOURCE 1
4733 ### Use -Wno-pointer-sign if the compiler supports it
4734 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4735 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4736 SAVE_CFLAGS
="$CFLAGS"
4737 CFLAGS
="$CFLAGS -Wno-pointer-sign"
4738 cat >conftest.
$ac_ext <<_ACEOF
4741 cat confdefs.h
>>conftest.
$ac_ext
4742 cat >>conftest.
$ac_ext <<_ACEOF
4743 /* end confdefs.h. */
4753 rm -f conftest.
$ac_objext
4754 if { (ac_try
="$ac_compile"
4756 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4757 *) ac_try_echo=$ac_try;;
4759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4760 (eval "$ac_compile") 2>conftest.er1
4762 grep -v '^ *+' conftest.er1 >conftest.err
4764 cat conftest.err >&5
4765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766 (exit $ac_status); } && {
4767 test -z "$ac_c_werror_flag" ||
4768 test ! -s conftest.err
4769 } && test -s conftest.$ac_objext; then
4772 echo "$as_me: failed program was:" >&5
4773 sed 's/^/| /' conftest.$ac_ext >&5
4778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4779 if test $has_option = yes; then
4780 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4782 { echo "$as_me:$LINENO: result: $has_option" >&5
4783 echo "${ECHO_T}$has_option" >&6; }
4784 CFLAGS="$SAVE_CFLAGS"
4788 #### Some other nice autoconf tests.
4790 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4791 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4793 if test "$LN_S" = "ln -s"; then
4794 { echo "$as_me:$LINENO: result: yes" >&5
4795 echo "${ECHO_T}yes" >&6; }
4797 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4798 echo "${ECHO_T}no, using $LN_S" >&6; }
4802 ac_cpp='$CPP $CPPFLAGS'
4803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4806 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4807 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4808 # On Suns, sometimes $CPP names a directory.
4809 if test -n "$CPP" && test -d "$CPP"; then
4812 if test -z "$CPP"; then
4813 if test "${ac_cv_prog_CPP+set}" = set; then
4814 echo $ECHO_N "(cached) $ECHO_C" >&6
4816 # Double quotes because CPP needs to be expanded
4817 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4820 for ac_c_preproc_warn_flag in '' yes
4822 # Use a header file that comes with gcc, so configuring glibc
4823 # with a fresh cross-compiler works.
4824 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4825 # <limits.h> exists even on freestanding compilers.
4826 # On the NeXT, cc -E runs the code through the compiler's parser,
4827 # not just through cpp. "Syntax error" is here to catch this case.
4828 cat >conftest.$ac_ext <<_ACEOF
4831 cat confdefs.h >>conftest.$ac_ext
4832 cat >>conftest.$ac_ext <<_ACEOF
4833 /* end confdefs.h. */
4835 # include <limits.h>
4837 # include <assert.h>
4841 if { (ac_try="$ac_cpp conftest.$ac_ext"
4843 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4844 *) ac_try_echo
=$ac_try;;
4846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4847 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4849 grep -v '^ *+' conftest.er1
>conftest.err
4851 cat conftest.err
>&5
4852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4853 (exit $ac_status); } >/dev
/null
&& {
4854 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4855 test ! -s conftest.err
4859 echo "$as_me: failed program was:" >&5
4860 sed 's/^/| /' conftest.
$ac_ext >&5
4862 # Broken: fails on valid input.
4866 rm -f conftest.err conftest.
$ac_ext
4868 # OK, works on sane cases. Now check whether nonexistent headers
4869 # can be detected and how.
4870 cat >conftest.
$ac_ext <<_ACEOF
4873 cat confdefs.h
>>conftest.
$ac_ext
4874 cat >>conftest.
$ac_ext <<_ACEOF
4875 /* end confdefs.h. */
4876 #include <ac_nonexistent.h>
4878 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4880 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4881 *) ac_try_echo=$ac_try;;
4883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4884 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4886 grep -v '^ *+' conftest.er1 >conftest.err
4888 cat conftest.err >&5
4889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890 (exit $ac_status); } >/dev/null && {
4891 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4892 test ! -s conftest.err
4894 # Broken: success on invalid input.
4897 echo "$as_me: failed program was:" >&5
4898 sed 's/^/| /' conftest.$ac_ext >&5
4900 # Passes both tests.
4905 rm -f conftest.err conftest.$ac_ext
4908 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4909 rm -f conftest.err conftest.
$ac_ext
4910 if $ac_preproc_ok; then
4922 { echo "$as_me:$LINENO: result: $CPP" >&5
4923 echo "${ECHO_T}$CPP" >&6; }
4925 for ac_c_preproc_warn_flag
in '' yes
4927 # Use a header file that comes with gcc, so configuring glibc
4928 # with a fresh cross-compiler works.
4929 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4930 # <limits.h> exists even on freestanding compilers.
4931 # On the NeXT, cc -E runs the code through the compiler's parser,
4932 # not just through cpp. "Syntax error" is here to catch this case.
4933 cat >conftest.
$ac_ext <<_ACEOF
4936 cat confdefs.h
>>conftest.
$ac_ext
4937 cat >>conftest.
$ac_ext <<_ACEOF
4938 /* end confdefs.h. */
4940 # include <limits.h>
4942 # include <assert.h>
4946 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4948 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4949 *) ac_try_echo=$ac_try;;
4951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4952 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4954 grep -v '^ *+' conftest.er1 >conftest.err
4956 cat conftest.err >&5
4957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958 (exit $ac_status); } >/dev/null && {
4959 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4960 test ! -s conftest.err
4964 echo "$as_me: failed program was:" >&5
4965 sed 's/^/| /' conftest.$ac_ext >&5
4967 # Broken: fails on valid input.
4971 rm -f conftest.err conftest.$ac_ext
4973 # OK, works on sane cases. Now check whether nonexistent headers
4974 # can be detected and how.
4975 cat >conftest.$ac_ext <<_ACEOF
4978 cat confdefs.h >>conftest.$ac_ext
4979 cat >>conftest.$ac_ext <<_ACEOF
4980 /* end confdefs.h. */
4981 #include <ac_nonexistent.h>
4983 if { (ac_try="$ac_cpp conftest.$ac_ext"
4985 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4986 *) ac_try_echo
=$ac_try;;
4988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4989 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4991 grep -v '^ *+' conftest.er1
>conftest.err
4993 cat conftest.err
>&5
4994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995 (exit $ac_status); } >/dev
/null
&& {
4996 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4997 test ! -s conftest.err
4999 # Broken: success on invalid input.
5002 echo "$as_me: failed program was:" >&5
5003 sed 's/^/| /' conftest.
$ac_ext >&5
5005 # Passes both tests.
5010 rm -f conftest.err conftest.
$ac_ext
5013 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5014 rm -f conftest.err conftest.
$ac_ext
5015 if $ac_preproc_ok; then
5018 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5019 See \`config.log' for more details." >&5
5020 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5021 See \`config.log' for more details." >&2;}
5022 { (exit 1); exit 1; }; }
5026 ac_cpp
='$CPP $CPPFLAGS'
5027 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5028 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5029 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5031 # Find a good install program. We prefer a C program (faster),
5032 # so one script is as good as another. But avoid the broken or
5033 # incompatible versions:
5034 # SysV /etc/install, /usr/sbin/install
5035 # SunOS /usr/etc/install
5036 # IRIX /sbin/install
5038 # AmigaOS /C/install, which installs bootblocks on floppy discs
5039 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5040 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5041 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5042 # OS/2's system install, which has a completely different semantic
5043 # ./install, which can be erroneously created by make from ./install.sh.
5044 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5045 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5046 if test -z "$INSTALL"; then
5047 if test "${ac_cv_path_install+set}" = set; then
5048 echo $ECHO_N "(cached) $ECHO_C" >&6
5050 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5054 test -z "$as_dir" && as_dir
=.
5055 # Account for people who put trailing slashes in PATH elements.
5057 .
/ | .
// |
/cC
/* | \
5058 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
5059 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
5062 # OSF1 and SCO ODT 3.0 have their own names for install.
5063 # Don't use installbsd from OSF since it installs stuff as root
5065 for ac_prog
in ginstall scoinst
install; do
5066 for ac_exec_ext
in '' $ac_executable_extensions; do
5067 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5068 if test $ac_prog = install &&
5069 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5070 # AIX install. It has an incompatible calling convention.
5072 elif test $ac_prog = install &&
5073 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5074 # program-specific install script used by HP pwplus--don't use.
5077 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5090 if test "${ac_cv_path_install+set}" = set; then
5091 INSTALL
=$ac_cv_path_install
5093 # As a last resort, use the slow shell script. Don't cache a
5094 # value for INSTALL within a source directory, because that will
5095 # break other packages using the cache if that directory is
5096 # removed, or if the value is a relative name.
5097 INSTALL
=$ac_install_sh
5100 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5101 echo "${ECHO_T}$INSTALL" >&6; }
5103 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5104 # It thinks the first close brace ends the variable substitution.
5105 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5107 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5109 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5111 if test "x$RANLIB" = x
; then
5112 if test -n "$ac_tool_prefix"; then
5113 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5114 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5115 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5117 if test "${ac_cv_prog_RANLIB+set}" = set; then
5118 echo $ECHO_N "(cached) $ECHO_C" >&6
5120 if test -n "$RANLIB"; then
5121 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5123 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5127 test -z "$as_dir" && as_dir
=.
5128 for ac_exec_ext
in '' $ac_executable_extensions; do
5129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5130 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5140 RANLIB
=$ac_cv_prog_RANLIB
5141 if test -n "$RANLIB"; then
5142 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5143 echo "${ECHO_T}$RANLIB" >&6; }
5145 { echo "$as_me:$LINENO: result: no" >&5
5146 echo "${ECHO_T}no" >&6; }
5151 if test -z "$ac_cv_prog_RANLIB"; then
5152 ac_ct_RANLIB
=$RANLIB
5153 # Extract the first word of "ranlib", so it can be a program name with args.
5154 set dummy ranlib
; ac_word
=$2
5155 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5157 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5158 echo $ECHO_N "(cached) $ECHO_C" >&6
5160 if test -n "$ac_ct_RANLIB"; then
5161 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5163 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5167 test -z "$as_dir" && as_dir
=.
5168 for ac_exec_ext
in '' $ac_executable_extensions; do
5169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5170 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5180 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5181 if test -n "$ac_ct_RANLIB"; then
5182 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5183 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5185 { echo "$as_me:$LINENO: result: no" >&5
5186 echo "${ECHO_T}no" >&6; }
5189 if test "x$ac_ct_RANLIB" = x
; then
5192 case $cross_compiling:$ac_tool_warned in
5194 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5195 whose name does not start with the host triplet. If you think this
5196 configuration is useful to you, please write to autoconf@gnu.org." >&5
5197 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5198 whose name does not start with the host triplet. If you think this
5199 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5200 ac_tool_warned
=yes ;;
5202 RANLIB
=$ac_ct_RANLIB
5205 RANLIB
="$ac_cv_prog_RANLIB"
5209 # Extract the first word of "install-info", so it can be a program name with args.
5210 set dummy install-info
; ac_word
=$2
5211 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5213 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5214 echo $ECHO_N "(cached) $ECHO_C" >&6
5216 case $INSTALL_INFO in
5218 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5221 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5225 test -z "$as_dir" && as_dir
=.
5226 for ac_exec_ext
in '' $ac_executable_extensions; do
5227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5228 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5239 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5240 if test -n "$INSTALL_INFO"; then
5241 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5242 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5244 { echo "$as_me:$LINENO: result: no" >&5
5245 echo "${ECHO_T}no" >&6; }
5249 # Extract the first word of "install-info", so it can be a program name with args.
5250 set dummy install-info
; ac_word
=$2
5251 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5253 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5254 echo $ECHO_N "(cached) $ECHO_C" >&6
5256 case $INSTALL_INFO in
5258 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5261 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5262 for as_dir
in /usr
/sbin
5265 test -z "$as_dir" && as_dir
=.
5266 for ac_exec_ext
in '' $ac_executable_extensions; do
5267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5268 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5279 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5280 if test -n "$INSTALL_INFO"; then
5281 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5282 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5284 { echo "$as_me:$LINENO: result: no" >&5
5285 echo "${ECHO_T}no" >&6; }
5289 # Extract the first word of "install-info", so it can be a program name with args.
5290 set dummy install-info
; ac_word
=$2
5291 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5293 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5294 echo $ECHO_N "(cached) $ECHO_C" >&6
5296 case $INSTALL_INFO in
5298 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5301 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5305 test -z "$as_dir" && as_dir
=.
5306 for ac_exec_ext
in '' $ac_executable_extensions; do
5307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5308 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5316 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5320 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5321 if test -n "$INSTALL_INFO"; then
5322 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5323 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5325 { echo "$as_me:$LINENO: result: no" >&5
5326 echo "${ECHO_T}no" >&6; }
5330 # Extract the first word of "gzip", so it can be a program name with args.
5331 set dummy
gzip; ac_word
=$2
5332 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5334 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5335 echo $ECHO_N "(cached) $ECHO_C" >&6
5339 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5342 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5346 test -z "$as_dir" && as_dir
=.
5347 for ac_exec_ext
in '' $ac_executable_extensions; do
5348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5349 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5360 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5361 if test -n "$GZIP_PROG"; then
5362 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5363 echo "${ECHO_T}$GZIP_PROG" >&6; }
5365 { echo "$as_me:$LINENO: result: no" >&5
5366 echo "${ECHO_T}no" >&6; }
5372 ## Need makeinfo >= 4.6 (?) to build the manuals.
5373 # Extract the first word of "makeinfo", so it can be a program name with args.
5374 set dummy makeinfo
; ac_word
=$2
5375 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5377 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5378 echo $ECHO_N "(cached) $ECHO_C" >&6
5382 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
5385 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5389 test -z "$as_dir" && as_dir
=.
5390 for ac_exec_ext
in '' $ac_executable_extensions; do
5391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5392 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
5393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5400 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
5404 MAKEINFO
=$ac_cv_path_MAKEINFO
5405 if test -n "$MAKEINFO"; then
5406 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5407 echo "${ECHO_T}$MAKEINFO" >&6; }
5409 { echo "$as_me:$LINENO: result: no" >&5
5410 echo "${ECHO_T}no" >&6; }
5414 if test "$MAKEINFO" != "no" && \
5415 test x
"`$MAKEINFO --version 2> /dev/null | $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[6-9]|4\.[1-5][0-9]+)'`" = x
; then
5419 if test "$MAKEINFO" = "no"; then
5420 { { echo "$as_me:$LINENO: error: makeinfo >= 4.6 is required " >&5
5421 echo "$as_me: error: makeinfo >= 4.6 is required " >&2;}
5422 { (exit 1); exit 1; }; }
5427 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5429 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5432 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5434 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5438 late_LDFLAGS
=$LDFLAGS
5439 if test "$GCC" = yes; then
5440 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5442 LDFLAGS
="$LDFLAGS -znocombreloc"
5445 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5446 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5447 cat >conftest.
$ac_ext <<_ACEOF
5450 rm -f conftest.
$ac_objext conftest
$ac_exeext
5451 if { (ac_try
="$ac_link"
5453 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5454 *) ac_try_echo=$ac_try;;
5456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5457 (eval "$ac_link") 2>conftest.er1
5459 grep -v '^ *+' conftest.er1 >conftest.err
5461 cat conftest.err >&5
5462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5463 (exit $ac_status); } && {
5464 test -z "$ac_c_werror_flag" ||
5465 test ! -s conftest.err
5466 } && test -s conftest$ac_exeext &&
5467 $as_test_x conftest$ac_exeext; then
5468 { echo "$as_me:$LINENO: result: yes" >&5
5469 echo "${ECHO_T}yes" >&6; }
5471 echo "$as_me: failed program was:" >&5
5472 sed 's/^/| /' conftest.$ac_ext >&5
5474 LDFLAGS=$late_LDFLAGS
5475 { echo "$as_me:$LINENO: result: no" >&5
5476 echo "${ECHO_T}no" >&6; }
5479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5480 conftest$ac_exeext conftest.$ac_ext
5482 #### Extract some information from the operating system and machine files.
5484 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5485 - which libraries the lib-src programs will want, and
5486 - whether the GNU malloc routines are usable..." >&5
5487 echo "$as_me: checking the machine- and system-dependent files to find out
5488 - which libraries the lib-src programs will want, and
5489 - whether the GNU malloc routines are usable..." >&6;}
5491 ### First figure out CFLAGS (which we use for running the compiler here)
5492 ### and REAL_CFLAGS (which we use for real compilation).
5493 ### The two are the same except on a few systems, where they are made
5494 ### different to work around various lossages. For example,
5495 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5496 ### as implying static linking.
5498 ### If the CFLAGS env var is specified, we use that value
5499 ### instead of the default.
5501 ### It's not important that this name contain the PID; you can't run
5502 ### two configures in the same directory and have anything work
5504 tempcname="conftest.c"
5507 #include "'${srcdir}'/src/'${opsysfile}'"
5508 #include "'${srcdir}'/src/'${machfile}'"
5509 #ifndef LIBS_MACHINE
5510 #define LIBS_MACHINE
5515 #ifndef C_SWITCH_SYSTEM
5516 #define C_SWITCH_SYSTEM
5518 #ifndef C_SWITCH_MACHINE
5519 #define C_SWITCH_MACHINE
5521 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5522 configure___ c_switch_system=C_SWITCH_SYSTEM
5523 configure___ c_switch_machine=C_SWITCH_MACHINE
5526 #define LIB_X11_LIB -lX11
5529 #ifndef LIBX11_MACHINE
5530 #define LIBX11_MACHINE
5533 #ifndef LIBX11_SYSTEM
5534 #define LIBX11_SYSTEM
5536 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5539 configure___ unexec=UNEXEC
5541 configure___ unexec=unexec.o
5544 #ifdef SYSTEM_MALLOC
5545 configure___ system_malloc=yes
5547 configure___ system_malloc=no
5550 #ifdef USE_MMAP_FOR_BUFFERS
5551 configure___ use_mmap_for_buffers=yes
5553 configure___ use_mmap_for_buffers=no
5556 #ifndef C_DEBUG_SWITCH
5557 #define C_DEBUG_SWITCH -g
5560 #ifndef C_OPTIMIZE_SWITCH
5562 #define C_OPTIMIZE_SWITCH -O2
5564 #define C_OPTIMIZE_SWITCH -O
5568 #ifndef C_WARNINGS_SWITCH
5569 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5572 #ifndef LD_SWITCH_MACHINE
5573 #define LD_SWITCH_MACHINE
5576 #ifndef LD_SWITCH_SYSTEM
5577 #define LD_SWITCH_SYSTEM
5580 #ifndef LD_SWITCH_X_SITE_AUX
5581 #define LD_SWITCH_X_SITE_AUX
5584 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5585 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5587 #ifdef THIS_IS_CONFIGURE
5589 /* Get the CFLAGS for tests in configure. */
5591 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5593 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5596 #else /* not THIS_IS_CONFIGURE */
5598 /* Get the CFLAGS for real compilation. */
5600 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5602 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5605 #endif /* not THIS_IS_CONFIGURE */
5608 # The value of CPP is a quoted variable reference, so we need to do this
5609 # to get its actual value...
5610 CPP=`eval "echo $CPP"`
5611 eval `${CPP} -Isrc ${tempcname} \
5612 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5613 if test "x$SPECIFIED_CFLAGS" = x; then
5614 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5615 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5617 REAL_CFLAGS="$CFLAGS"
5621 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5623 ### Make sure subsequent tests use flags consistent with the build flags.
5625 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5626 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5628 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5633 # Check whether --enable-largefile was given.
5634 if test "${enable_largefile+set}" = set; then
5635 enableval=$enable_largefile;
5638 if test "$enable_largefile" != no; then
5640 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5641 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5642 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5643 echo $ECHO_N "(cached) $ECHO_C" >&6
5645 ac_cv_sys_largefile_CC=no
5646 if test "$GCC" != yes; then
5649 # IRIX 6.2 and later do not support large files by default,
5650 # so use the C compiler's -n32 option if that helps.
5651 cat >conftest.$ac_ext <<_ACEOF
5654 cat confdefs.h >>conftest.$ac_ext
5655 cat >>conftest.$ac_ext <<_ACEOF
5656 /* end confdefs.h. */
5657 #include <sys/types.h>
5658 /* Check that off_t can represent 2**63 - 1 correctly.
5659 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5660 since some C++ compilers masquerading as C compilers
5661 incorrectly reject 9223372036854775807. */
5662 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5663 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5664 && LARGE_OFF_T % 2147483647 == 1)
5674 rm -f conftest.$ac_objext
5675 if { (ac_try="$ac_compile"
5677 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5678 *) ac_try_echo
=$ac_try;;
5680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5681 (eval "$ac_compile") 2>conftest.er1
5683 grep -v '^ *+' conftest.er1
>conftest.err
5685 cat conftest.err
>&5
5686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687 (exit $ac_status); } && {
5688 test -z "$ac_c_werror_flag" ||
5689 test ! -s conftest.err
5690 } && test -s conftest.
$ac_objext; then
5693 echo "$as_me: failed program was:" >&5
5694 sed 's/^/| /' conftest.
$ac_ext >&5
5699 rm -f core conftest.err conftest.
$ac_objext
5701 rm -f conftest.
$ac_objext
5702 if { (ac_try
="$ac_compile"
5704 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5705 *) ac_try_echo=$ac_try;;
5707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5708 (eval "$ac_compile") 2>conftest.er1
5710 grep -v '^ *+' conftest.er1 >conftest.err
5712 cat conftest.err >&5
5713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714 (exit $ac_status); } && {
5715 test -z "$ac_c_werror_flag" ||
5716 test ! -s conftest.err
5717 } && test -s conftest.$ac_objext; then
5718 ac_cv_sys_largefile_CC=' -n32'; break
5720 echo "$as_me: failed program was:" >&5
5721 sed 's/^/| /' conftest.$ac_ext >&5
5726 rm -f core conftest.err conftest.$ac_objext
5730 rm -f conftest.$ac_ext
5733 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5734 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5735 if test "$ac_cv_sys_largefile_CC" != no; then
5736 CC=$CC$ac_cv_sys_largefile_CC
5739 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5740 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5741 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5742 echo $ECHO_N "(cached) $ECHO_C" >&6
5745 cat >conftest.$ac_ext <<_ACEOF
5748 cat confdefs.h >>conftest.$ac_ext
5749 cat >>conftest.$ac_ext <<_ACEOF
5750 /* end confdefs.h. */
5751 #include <sys/types.h>
5752 /* Check that off_t can represent 2**63 - 1 correctly.
5753 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5754 since some C++ compilers masquerading as C compilers
5755 incorrectly reject 9223372036854775807. */
5756 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5757 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5758 && LARGE_OFF_T % 2147483647 == 1)
5768 rm -f conftest.$ac_objext
5769 if { (ac_try="$ac_compile"
5771 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5772 *) ac_try_echo
=$ac_try;;
5774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5775 (eval "$ac_compile") 2>conftest.er1
5777 grep -v '^ *+' conftest.er1
>conftest.err
5779 cat conftest.err
>&5
5780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781 (exit $ac_status); } && {
5782 test -z "$ac_c_werror_flag" ||
5783 test ! -s conftest.err
5784 } && test -s conftest.
$ac_objext; then
5785 ac_cv_sys_file_offset_bits
=no
; break
5787 echo "$as_me: failed program was:" >&5
5788 sed 's/^/| /' conftest.
$ac_ext >&5
5793 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5794 cat >conftest.
$ac_ext <<_ACEOF
5797 cat confdefs.h
>>conftest.
$ac_ext
5798 cat >>conftest.
$ac_ext <<_ACEOF
5799 /* end confdefs.h. */
5800 #define _FILE_OFFSET_BITS 64
5801 #include <sys/types.h>
5802 /* Check that off_t can represent 2**63 - 1 correctly.
5803 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5804 since some C++ compilers masquerading as C compilers
5805 incorrectly reject 9223372036854775807. */
5806 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5807 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5808 && LARGE_OFF_T % 2147483647 == 1)
5818 rm -f conftest.
$ac_objext
5819 if { (ac_try
="$ac_compile"
5821 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5822 *) ac_try_echo=$ac_try;;
5824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5825 (eval "$ac_compile") 2>conftest.er1
5827 grep -v '^ *+' conftest.er1 >conftest.err
5829 cat conftest.err >&5
5830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5831 (exit $ac_status); } && {
5832 test -z "$ac_c_werror_flag" ||
5833 test ! -s conftest.err
5834 } && test -s conftest.$ac_objext; then
5835 ac_cv_sys_file_offset_bits=64; break
5837 echo "$as_me: failed program was:" >&5
5838 sed 's/^/| /' conftest.$ac_ext >&5
5843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5844 ac_cv_sys_file_offset_bits=unknown
5848 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5849 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5850 case $ac_cv_sys_file_offset_bits in #(
5853 cat >>confdefs.h <<_ACEOF
5854 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5859 if test $ac_cv_sys_file_offset_bits = unknown; then
5860 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5861 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5862 if test "${ac_cv_sys_large_files+set}" = set; then
5863 echo $ECHO_N "(cached) $ECHO_C" >&6
5866 cat >conftest.$ac_ext <<_ACEOF
5869 cat confdefs.h >>conftest.$ac_ext
5870 cat >>conftest.$ac_ext <<_ACEOF
5871 /* end confdefs.h. */
5872 #include <sys/types.h>
5873 /* Check that off_t can represent 2**63 - 1 correctly.
5874 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5875 since some C++ compilers masquerading as C compilers
5876 incorrectly reject 9223372036854775807. */
5877 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5878 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5879 && LARGE_OFF_T % 2147483647 == 1)
5889 rm -f conftest.$ac_objext
5890 if { (ac_try="$ac_compile"
5892 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5893 *) ac_try_echo
=$ac_try;;
5895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5896 (eval "$ac_compile") 2>conftest.er1
5898 grep -v '^ *+' conftest.er1
>conftest.err
5900 cat conftest.err
>&5
5901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5902 (exit $ac_status); } && {
5903 test -z "$ac_c_werror_flag" ||
5904 test ! -s conftest.err
5905 } && test -s conftest.
$ac_objext; then
5906 ac_cv_sys_large_files
=no
; break
5908 echo "$as_me: failed program was:" >&5
5909 sed 's/^/| /' conftest.
$ac_ext >&5
5914 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5915 cat >conftest.
$ac_ext <<_ACEOF
5918 cat confdefs.h
>>conftest.
$ac_ext
5919 cat >>conftest.
$ac_ext <<_ACEOF
5920 /* end confdefs.h. */
5921 #define _LARGE_FILES 1
5922 #include <sys/types.h>
5923 /* Check that off_t can represent 2**63 - 1 correctly.
5924 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5925 since some C++ compilers masquerading as C compilers
5926 incorrectly reject 9223372036854775807. */
5927 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5928 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5929 && LARGE_OFF_T % 2147483647 == 1)
5939 rm -f conftest.
$ac_objext
5940 if { (ac_try
="$ac_compile"
5942 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5943 *) ac_try_echo=$ac_try;;
5945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5946 (eval "$ac_compile") 2>conftest.er1
5948 grep -v '^ *+' conftest.er1 >conftest.err
5950 cat conftest.err >&5
5951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952 (exit $ac_status); } && {
5953 test -z "$ac_c_werror_flag" ||
5954 test ! -s conftest.err
5955 } && test -s conftest.$ac_objext; then
5956 ac_cv_sys_large_files=1; break
5958 echo "$as_me: failed program was:" >&5
5959 sed 's/^/| /' conftest.$ac_ext >&5
5964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5965 ac_cv_sys_large_files=unknown
5969 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5970 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5971 case $ac_cv_sys_large_files in #(
5974 cat >>confdefs.h <<_ACEOF
5975 #define _LARGE_FILES $ac_cv_sys_large_files
5985 ### The standard library on x86-64 GNU/Linux distributions can
5986 ### be located in either /usr/lib64 or /usr/lib.
5987 case "${canonical}" in
5988 x86_64-*-linux-gnu* )
5989 if test -d /usr/lib64; then
5991 cat >>confdefs.h <<\_ACEOF
5992 #define HAVE_X86_64_LIB64_DIR 1
6001 if test "${with_sound}" != "no"; then
6002 # Sound support for GNU/Linux and the free BSDs.
6003 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6004 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6005 if test "${ac_cv_header_stdc+set}" = set; then
6006 echo $ECHO_N "(cached) $ECHO_C" >&6
6008 cat >conftest.$ac_ext <<_ACEOF
6011 cat confdefs.h >>conftest.$ac_ext
6012 cat >>conftest.$ac_ext <<_ACEOF
6013 /* end confdefs.h. */
6027 rm -f conftest.$ac_objext
6028 if { (ac_try="$ac_compile"
6030 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6031 *) ac_try_echo
=$ac_try;;
6033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6034 (eval "$ac_compile") 2>conftest.er1
6036 grep -v '^ *+' conftest.er1
>conftest.err
6038 cat conftest.err
>&5
6039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040 (exit $ac_status); } && {
6041 test -z "$ac_c_werror_flag" ||
6042 test ! -s conftest.err
6043 } && test -s conftest.
$ac_objext; then
6044 ac_cv_header_stdc
=yes
6046 echo "$as_me: failed program was:" >&5
6047 sed 's/^/| /' conftest.
$ac_ext >&5
6049 ac_cv_header_stdc
=no
6052 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6054 if test $ac_cv_header_stdc = yes; then
6055 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6056 cat >conftest.
$ac_ext <<_ACEOF
6059 cat confdefs.h
>>conftest.
$ac_ext
6060 cat >>conftest.
$ac_ext <<_ACEOF
6061 /* end confdefs.h. */
6065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6066 $EGREP "memchr" >/dev
/null
2>&1; then
6069 ac_cv_header_stdc
=no
6075 if test $ac_cv_header_stdc = yes; then
6076 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6077 cat >conftest.
$ac_ext <<_ACEOF
6080 cat confdefs.h
>>conftest.
$ac_ext
6081 cat >>conftest.
$ac_ext <<_ACEOF
6082 /* end confdefs.h. */
6086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6087 $EGREP "free" >/dev
/null
2>&1; then
6090 ac_cv_header_stdc
=no
6096 if test $ac_cv_header_stdc = yes; then
6097 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6098 if test "$cross_compiling" = yes; then
6101 cat >conftest.
$ac_ext <<_ACEOF
6104 cat confdefs.h
>>conftest.
$ac_ext
6105 cat >>conftest.
$ac_ext <<_ACEOF
6106 /* end confdefs.h. */
6109 #if ((' ' & 0x0FF) == 0x020)
6110 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6111 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6113 # define ISLOWER(c) \
6114 (('a' <= (c) && (c) <= 'i') \
6115 || ('j' <= (c) && (c) <= 'r') \
6116 || ('s' <= (c) && (c) <= 'z'))
6117 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6120 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6125 for (i = 0; i < 256; i++)
6126 if (XOR (islower (i), ISLOWER (i))
6127 || toupper (i) != TOUPPER (i))
6132 rm -f conftest
$ac_exeext
6133 if { (ac_try
="$ac_link"
6135 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6136 *) ac_try_echo=$ac_try;;
6138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6139 (eval "$ac_link") 2>&5
6141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6143 { (case "(($ac_try" in
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_try") 2>&5
6150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151 (exit $ac_status); }; }; then
6154 echo "$as_me: program exited with status $ac_status" >&5
6155 echo "$as_me: failed program was:" >&5
6156 sed 's/^/| /' conftest.
$ac_ext >&5
6159 ac_cv_header_stdc
=no
6161 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6167 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6168 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6169 if test $ac_cv_header_stdc = yes; then
6171 cat >>confdefs.h
<<\_ACEOF
6172 #define STDC_HEADERS 1
6177 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6187 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6188 inttypes.h stdint.h unistd.h
6190 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6191 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6193 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6194 echo $ECHO_N "(cached) $ECHO_C" >&6
6196 cat >conftest.
$ac_ext <<_ACEOF
6199 cat confdefs.h
>>conftest.
$ac_ext
6200 cat >>conftest.
$ac_ext <<_ACEOF
6201 /* end confdefs.h. */
6202 $ac_includes_default
6204 #include <$ac_header>
6206 rm -f conftest.
$ac_objext
6207 if { (ac_try
="$ac_compile"
6209 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6210 *) ac_try_echo=$ac_try;;
6212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6213 (eval "$ac_compile") 2>conftest.er1
6215 grep -v '^ *+' conftest.er1 >conftest.err
6217 cat conftest.err >&5
6218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219 (exit $ac_status); } && {
6220 test -z "$ac_c_werror_flag" ||
6221 test ! -s conftest.err
6222 } && test -s conftest.$ac_objext; then
6223 eval "$as_ac_Header=yes"
6225 echo "$as_me: failed program was:" >&5
6226 sed 's/^/| /' conftest.$ac_ext >&5
6228 eval "$as_ac_Header=no"
6231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6233 ac_res=`eval echo '${'$as_ac_Header'}'`
6234 { echo "$as_me:$LINENO: result: $ac_res" >&5
6235 echo "${ECHO_T}$ac_res" >&6; }
6236 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6237 cat >>confdefs.h <<_ACEOF
6238 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6249 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6251 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6253 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6255 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6256 echo $ECHO_N "(cached) $ECHO_C" >&6
6258 ac_res=`eval echo '${'$as_ac_Header'}'`
6259 { echo "$as_me:$LINENO: result: $ac_res" >&5
6260 echo "${ECHO_T}$ac_res" >&6; }
6262 # Is the header compilable?
6263 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6264 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6265 cat >conftest.$ac_ext <<_ACEOF
6268 cat confdefs.h >>conftest.$ac_ext
6269 cat >>conftest.$ac_ext <<_ACEOF
6270 /* end confdefs.h. */
6271 $ac_includes_default
6272 #include <$ac_header>
6274 rm -f conftest.$ac_objext
6275 if { (ac_try="$ac_compile"
6277 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6278 *) ac_try_echo
=$ac_try;;
6280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6281 (eval "$ac_compile") 2>conftest.er1
6283 grep -v '^ *+' conftest.er1
>conftest.err
6285 cat conftest.err
>&5
6286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287 (exit $ac_status); } && {
6288 test -z "$ac_c_werror_flag" ||
6289 test ! -s conftest.err
6290 } && test -s conftest.
$ac_objext; then
6291 ac_header_compiler
=yes
6293 echo "$as_me: failed program was:" >&5
6294 sed 's/^/| /' conftest.
$ac_ext >&5
6296 ac_header_compiler
=no
6299 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6300 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6301 echo "${ECHO_T}$ac_header_compiler" >&6; }
6303 # Is the header present?
6304 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6305 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6306 cat >conftest.
$ac_ext <<_ACEOF
6309 cat confdefs.h
>>conftest.
$ac_ext
6310 cat >>conftest.
$ac_ext <<_ACEOF
6311 /* end confdefs.h. */
6312 #include <$ac_header>
6314 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6316 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6317 *) ac_try_echo=$ac_try;;
6319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6320 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6322 grep -v '^ *+' conftest.er1 >conftest.err
6324 cat conftest.err >&5
6325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326 (exit $ac_status); } >/dev/null && {
6327 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6328 test ! -s conftest.err
6330 ac_header_preproc=yes
6332 echo "$as_me: failed program was:" >&5
6333 sed 's/^/| /' conftest.$ac_ext >&5
6335 ac_header_preproc=no
6338 rm -f conftest.err conftest.$ac_ext
6339 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6340 echo "${ECHO_T}$ac_header_preproc" >&6; }
6342 # So? What about this header?
6343 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6345 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6346 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6347 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6348 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6349 ac_header_preproc=yes
6352 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6353 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6354 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6355 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6356 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6357 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6358 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6359 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6360 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6361 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6362 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6363 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6367 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6369 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6370 echo $ECHO_N "(cached) $ECHO_C" >&6
6372 eval "$as_ac_Header=\$ac_header_preproc"
6374 ac_res=`eval echo '${'$as_ac_Header'}'`
6375 { echo "$as_me:$LINENO: result: $ac_res" >&5
6376 echo "${ECHO_T}$ac_res" >&6; }
6379 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6380 cat >>confdefs.h <<_ACEOF
6381 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6388 # Emulation library used on NetBSD.
6389 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6390 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6391 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6392 echo $ECHO_N "(cached) $ECHO_C" >&6
6394 ac_check_lib_save_LIBS=$LIBS
6395 LIBS="-lossaudio $LIBS"
6396 cat >conftest.$ac_ext <<_ACEOF
6399 cat confdefs.h >>conftest.$ac_ext
6400 cat >>conftest.$ac_ext <<_ACEOF
6401 /* end confdefs.h. */
6403 /* Override any GCC internal prototype to avoid an error.
6404 Use char because int might match the return type of a GCC
6405 builtin and then its argument prototype would still apply. */
6413 return _oss_ioctl ();
6418 rm -f conftest.$ac_objext conftest$ac_exeext
6419 if { (ac_try="$ac_link"
6421 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6422 *) ac_try_echo
=$ac_try;;
6424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6425 (eval "$ac_link") 2>conftest.er1
6427 grep -v '^ *+' conftest.er1
>conftest.err
6429 cat conftest.err
>&5
6430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431 (exit $ac_status); } && {
6432 test -z "$ac_c_werror_flag" ||
6433 test ! -s conftest.err
6434 } && test -s conftest
$ac_exeext &&
6435 $as_test_x conftest
$ac_exeext; then
6436 ac_cv_lib_ossaudio__oss_ioctl
=yes
6438 echo "$as_me: failed program was:" >&5
6439 sed 's/^/| /' conftest.
$ac_ext >&5
6441 ac_cv_lib_ossaudio__oss_ioctl
=no
6444 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6445 conftest
$ac_exeext conftest.
$ac_ext
6446 LIBS
=$ac_check_lib_save_LIBS
6448 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6449 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6450 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6459 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6460 if test "X${with_pkg_config_prog}" != X
; then
6461 PKG_CONFIG
="${with_pkg_config_prog}"
6466 if test -z "$PKG_CONFIG"; then
6467 # Extract the first word of "pkg-config", so it can be a program name with args.
6468 set dummy pkg-config
; ac_word
=$2
6469 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6471 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6472 echo $ECHO_N "(cached) $ECHO_C" >&6
6476 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6479 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6483 test -z "$as_dir" && as_dir
=.
6484 for ac_exec_ext
in '' $ac_executable_extensions; do
6485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6486 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6494 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6498 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6499 if test -n "$PKG_CONFIG"; then
6500 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6501 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6503 { echo "$as_me:$LINENO: result: no" >&5
6504 echo "${ECHO_T}no" >&6; }
6510 if test "$PKG_CONFIG" = "no" ; then
6513 PKG_CONFIG_MIN_VERSION
=0.9.0
6514 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6515 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6516 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6518 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6519 { echo "$as_me:$LINENO: result: yes" >&5
6520 echo "${ECHO_T}yes" >&6; }
6523 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6524 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6525 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6526 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6527 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6529 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6530 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6531 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6532 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6533 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6535 { echo "$as_me:$LINENO: result: no" >&5
6536 echo "${ECHO_T}no" >&6; }
6539 ## If we have a custom action on failure, don't print errors, but
6540 ## do set a variable so people can do so.
6541 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6548 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6549 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6553 if test $succeeded = yes; then
6559 if test $HAVE_ALSA = yes; then
6560 SAVE_CFLAGS
="$CFLAGS"
6561 SAVE_LDFLAGS
="$LDFLAGS"
6562 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6563 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6564 cat >conftest.
$ac_ext <<_ACEOF
6567 cat confdefs.h
>>conftest.
$ac_ext
6568 cat >>conftest.
$ac_ext <<_ACEOF
6569 /* end confdefs.h. */
6570 #include <asoundlib.h>
6574 snd_lib_error_set_handler (0);
6579 rm -f conftest.
$ac_objext
6580 if { (ac_try
="$ac_compile"
6582 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6583 *) ac_try_echo=$ac_try;;
6585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6586 (eval "$ac_compile") 2>conftest.er1
6588 grep -v '^ *+' conftest.er1 >conftest.err
6590 cat conftest.err >&5
6591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6592 (exit $ac_status); } && {
6593 test -z "$ac_c_werror_flag" ||
6594 test ! -s conftest.err
6595 } && test -s conftest.$ac_objext; then
6596 emacs_alsa_normal=yes
6598 echo "$as_me: failed program was:" >&5
6599 sed 's/^/| /' conftest.$ac_ext >&5
6601 emacs_alsa_normal=no
6604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6605 if test "$emacs_alsa_normal" != yes; then
6606 cat >conftest.$ac_ext <<_ACEOF
6609 cat confdefs.h >>conftest.$ac_ext
6610 cat >>conftest.$ac_ext <<_ACEOF
6611 /* end confdefs.h. */
6612 #include <alsa/asoundlib.h>
6616 snd_lib_error_set_handler (0);
6621 rm -f conftest.$ac_objext
6622 if { (ac_try="$ac_compile"
6624 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6625 *) ac_try_echo
=$ac_try;;
6627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6628 (eval "$ac_compile") 2>conftest.er1
6630 grep -v '^ *+' conftest.er1
>conftest.err
6632 cat conftest.err
>&5
6633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634 (exit $ac_status); } && {
6635 test -z "$ac_c_werror_flag" ||
6636 test ! -s conftest.err
6637 } && test -s conftest.
$ac_objext; then
6638 emacs_alsa_subdir
=yes
6640 echo "$as_me: failed program was:" >&5
6641 sed 's/^/| /' conftest.
$ac_ext >&5
6643 emacs_alsa_subdir
=no
6646 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6647 if test "$emacs_alsa_subdir" != yes; then
6648 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6649 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6650 { (exit 1); exit 1; }; }
6652 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6655 CFLAGS
="$SAVE_CFLAGS"
6656 LDFLAGS
="$SAVE_LDFLAGS"
6657 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6658 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6660 cat >>confdefs.h
<<\_ACEOF
6693 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6694 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6695 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6696 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6699 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6700 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6701 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6702 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6703 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6704 echo $ECHO_N "(cached) $ECHO_C" >&6
6706 ac_res
=`eval echo '${'$as_ac_Header'}'`
6707 { echo "$as_me:$LINENO: result: $ac_res" >&5
6708 echo "${ECHO_T}$ac_res" >&6; }
6710 # Is the header compilable?
6711 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6712 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6713 cat >conftest.
$ac_ext <<_ACEOF
6716 cat confdefs.h
>>conftest.
$ac_ext
6717 cat >>conftest.
$ac_ext <<_ACEOF
6718 /* end confdefs.h. */
6719 $ac_includes_default
6720 #include <$ac_header>
6722 rm -f conftest.
$ac_objext
6723 if { (ac_try
="$ac_compile"
6725 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6726 *) ac_try_echo=$ac_try;;
6728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6729 (eval "$ac_compile") 2>conftest.er1
6731 grep -v '^ *+' conftest.er1 >conftest.err
6733 cat conftest.err >&5
6734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6735 (exit $ac_status); } && {
6736 test -z "$ac_c_werror_flag" ||
6737 test ! -s conftest.err
6738 } && test -s conftest.$ac_objext; then
6739 ac_header_compiler=yes
6741 echo "$as_me: failed program was:" >&5
6742 sed 's/^/| /' conftest.$ac_ext >&5
6744 ac_header_compiler=no
6747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6748 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6749 echo "${ECHO_T}$ac_header_compiler" >&6; }
6751 # Is the header present?
6752 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6753 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6754 cat >conftest.$ac_ext <<_ACEOF
6757 cat confdefs.h >>conftest.$ac_ext
6758 cat >>conftest.$ac_ext <<_ACEOF
6759 /* end confdefs.h. */
6760 #include <$ac_header>
6762 if { (ac_try="$ac_cpp conftest.$ac_ext"
6764 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6765 *) ac_try_echo
=$ac_try;;
6767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6768 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6770 grep -v '^ *+' conftest.er1
>conftest.err
6772 cat conftest.err
>&5
6773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6774 (exit $ac_status); } >/dev
/null
&& {
6775 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6776 test ! -s conftest.err
6778 ac_header_preproc
=yes
6780 echo "$as_me: failed program was:" >&5
6781 sed 's/^/| /' conftest.
$ac_ext >&5
6783 ac_header_preproc
=no
6786 rm -f conftest.err conftest.
$ac_ext
6787 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6788 echo "${ECHO_T}$ac_header_preproc" >&6; }
6790 # So? What about this header?
6791 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6793 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6794 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6795 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6796 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6797 ac_header_preproc
=yes
6800 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6801 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6802 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6803 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6804 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6805 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6806 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6807 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6808 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6809 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6810 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6811 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6815 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6817 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6818 echo $ECHO_N "(cached) $ECHO_C" >&6
6820 eval "$as_ac_Header=\$ac_header_preproc"
6822 ac_res
=`eval echo '${'$as_ac_Header'}'`
6823 { echo "$as_me:$LINENO: result: $ac_res" >&5
6824 echo "${ECHO_T}$ac_res" >&6; }
6827 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6828 cat >>confdefs.h
<<_ACEOF
6829 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6837 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6838 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6839 cat >conftest.
$ac_ext <<_ACEOF
6842 cat confdefs.h
>>conftest.
$ac_ext
6843 cat >>conftest.
$ac_ext <<_ACEOF
6844 /* end confdefs.h. */
6845 #include <sys/personality.h>
6849 personality (PER_LINUX32)
6854 rm -f conftest.
$ac_objext
6855 if { (ac_try
="$ac_compile"
6857 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6858 *) ac_try_echo=$ac_try;;
6860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6861 (eval "$ac_compile") 2>conftest.er1
6863 grep -v '^ *+' conftest.er1 >conftest.err
6865 cat conftest.err >&5
6866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6867 (exit $ac_status); } && {
6868 test -z "$ac_c_werror_flag" ||
6869 test ! -s conftest.err
6870 } && test -s conftest.$ac_objext; then
6871 emacs_cv_personality_linux32=yes
6873 echo "$as_me: failed program was:" >&5
6874 sed 's/^/| /' conftest.$ac_ext >&5
6876 emacs_cv_personality_linux32=no
6879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6880 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6881 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6883 if test $emacs_cv_personality_linux32 = yes; then
6885 cat >>confdefs.h <<\_ACEOF
6886 #define HAVE_PERSONALITY_LINUX32 1
6892 for ac_header in term.h
6894 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6895 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6896 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6897 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6898 echo $ECHO_N "(cached) $ECHO_C" >&6
6900 cat >conftest.$ac_ext <<_ACEOF
6903 cat confdefs.h >>conftest.$ac_ext
6904 cat >>conftest.$ac_ext <<_ACEOF
6905 /* end confdefs.h. */
6906 #include <$ac_header>
6908 if { (ac_try="$ac_cpp conftest.$ac_ext"
6910 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6911 *) ac_try_echo
=$ac_try;;
6913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6914 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6916 grep -v '^ *+' conftest.er1
>conftest.err
6918 cat conftest.err
>&5
6919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920 (exit $ac_status); } >/dev
/null
&& {
6921 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6922 test ! -s conftest.err
6924 eval "$as_ac_Header=yes"
6926 echo "$as_me: failed program was:" >&5
6927 sed 's/^/| /' conftest.
$ac_ext >&5
6929 eval "$as_ac_Header=no"
6932 rm -f conftest.err conftest.
$ac_ext
6934 ac_res
=`eval echo '${'$as_ac_Header'}'`
6935 { echo "$as_me:$LINENO: result: $ac_res" >&5
6936 echo "${ECHO_T}$ac_res" >&6; }
6937 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6938 cat >>confdefs.h
<<_ACEOF
6939 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6946 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6947 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6948 if test "${ac_cv_header_stdc+set}" = set; then
6949 echo $ECHO_N "(cached) $ECHO_C" >&6
6951 cat >conftest.
$ac_ext <<_ACEOF
6954 cat confdefs.h
>>conftest.
$ac_ext
6955 cat >>conftest.
$ac_ext <<_ACEOF
6956 /* end confdefs.h. */
6970 rm -f conftest.
$ac_objext
6971 if { (ac_try
="$ac_compile"
6973 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6974 *) ac_try_echo=$ac_try;;
6976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6977 (eval "$ac_compile") 2>conftest.er1
6979 grep -v '^ *+' conftest.er1 >conftest.err
6981 cat conftest.err >&5
6982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983 (exit $ac_status); } && {
6984 test -z "$ac_c_werror_flag" ||
6985 test ! -s conftest.err
6986 } && test -s conftest.$ac_objext; then
6987 ac_cv_header_stdc=yes
6989 echo "$as_me: failed program was:" >&5
6990 sed 's/^/| /' conftest.$ac_ext >&5
6992 ac_cv_header_stdc=no
6995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6997 if test $ac_cv_header_stdc = yes; then
6998 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6999 cat >conftest.$ac_ext <<_ACEOF
7002 cat confdefs.h >>conftest.$ac_ext
7003 cat >>conftest.$ac_ext <<_ACEOF
7004 /* end confdefs.h. */
7008 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7009 $EGREP "memchr" >/dev/null 2>&1; then
7012 ac_cv_header_stdc=no
7018 if test $ac_cv_header_stdc = yes; then
7019 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7020 cat >conftest.$ac_ext <<_ACEOF
7023 cat confdefs.h >>conftest.$ac_ext
7024 cat >>conftest.$ac_ext <<_ACEOF
7025 /* end confdefs.h. */
7029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7030 $EGREP "free" >/dev/null 2>&1; then
7033 ac_cv_header_stdc=no
7039 if test $ac_cv_header_stdc = yes; then
7040 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7041 if test "$cross_compiling" = yes; then
7044 cat >conftest.$ac_ext <<_ACEOF
7047 cat confdefs.h >>conftest.$ac_ext
7048 cat >>conftest.$ac_ext <<_ACEOF
7049 /* end confdefs.h. */
7052 #if ((' ' & 0x0FF) == 0x020)
7053 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7054 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7056 # define ISLOWER(c) \
7057 (('a' <= (c) && (c) <= 'i') \
7058 || ('j' <= (c) && (c) <= 'r') \
7059 || ('s' <= (c) && (c) <= 'z'))
7060 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7063 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7068 for (i = 0; i < 256; i++)
7069 if (XOR (islower (i), ISLOWER (i))
7070 || toupper (i) != TOUPPER (i))
7075 rm -f conftest$ac_exeext
7076 if { (ac_try="$ac_link"
7078 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7079 *) ac_try_echo
=$ac_try;;
7081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7082 (eval "$ac_link") 2>&5
7084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7085 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7086 { (case "(($ac_try" in
7087 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7088 *) ac_try_echo=$ac_try;;
7090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7091 (eval "$ac_try") 2>&5
7093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7094 (exit $ac_status); }; }; then
7097 echo "$as_me: program exited with status $ac_status" >&5
7098 echo "$as_me: failed program was:" >&5
7099 sed 's/^/| /' conftest.$ac_ext >&5
7102 ac_cv_header_stdc=no
7104 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7110 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7111 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7112 if test $ac_cv_header_stdc = yes; then
7114 cat >>confdefs.h <<\_ACEOF
7115 #define STDC_HEADERS 1
7120 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7121 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
7122 if test "${ac_cv_header_time+set}" = set; then
7123 echo $ECHO_N "(cached) $ECHO_C" >&6
7125 cat >conftest.$ac_ext <<_ACEOF
7128 cat confdefs.h >>conftest.$ac_ext
7129 cat >>conftest.$ac_ext <<_ACEOF
7130 /* end confdefs.h. */
7131 #include <sys/types.h>
7132 #include <sys/time.h>
7138 if ((struct tm *) 0)
7144 rm -f conftest.$ac_objext
7145 if { (ac_try="$ac_compile"
7147 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7148 *) ac_try_echo
=$ac_try;;
7150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7151 (eval "$ac_compile") 2>conftest.er1
7153 grep -v '^ *+' conftest.er1
>conftest.err
7155 cat conftest.err
>&5
7156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7157 (exit $ac_status); } && {
7158 test -z "$ac_c_werror_flag" ||
7159 test ! -s conftest.err
7160 } && test -s conftest.
$ac_objext; then
7161 ac_cv_header_time
=yes
7163 echo "$as_me: failed program was:" >&5
7164 sed 's/^/| /' conftest.
$ac_ext >&5
7166 ac_cv_header_time
=no
7169 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7171 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7172 echo "${ECHO_T}$ac_cv_header_time" >&6; }
7173 if test $ac_cv_header_time = yes; then
7175 cat >>confdefs.h
<<\_ACEOF
7176 #define TIME_WITH_SYS_TIME 1
7181 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7182 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
7183 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7184 echo $ECHO_N "(cached) $ECHO_C" >&6
7186 cat >conftest.
$ac_ext <<_ACEOF
7189 cat confdefs.h
>>conftest.
$ac_ext
7190 cat >>conftest.
$ac_ext <<_ACEOF
7191 /* end confdefs.h. */
7192 $ac_includes_default
7204 rm -f conftest.
$ac_objext
7205 if { (ac_try
="$ac_compile"
7207 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7208 *) ac_try_echo=$ac_try;;
7210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7211 (eval "$ac_compile") 2>conftest.er1
7213 grep -v '^ *+' conftest.er1 >conftest.err
7215 cat conftest.err >&5
7216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7217 (exit $ac_status); } && {
7218 test -z "$ac_c_werror_flag" ||
7219 test ! -s conftest.err
7220 } && test -s conftest.$ac_objext; then
7221 ac_cv_have_decl_sys_siglist=yes
7223 echo "$as_me: failed program was:" >&5
7224 sed 's/^/| /' conftest.$ac_ext >&5
7226 ac_cv_have_decl_sys_siglist=no
7229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7231 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7232 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7233 if test $ac_cv_have_decl_sys_siglist = yes; then
7235 cat >>confdefs.h <<_ACEOF
7236 #define HAVE_DECL_SYS_SIGLIST 1
7241 cat >>confdefs.h <<_ACEOF
7242 #define HAVE_DECL_SYS_SIGLIST 0
7249 if test $ac_cv_have_decl_sys_siglist != yes; then
7250 # For Tru64, at least:
7251 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7252 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7253 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7254 echo $ECHO_N "(cached) $ECHO_C" >&6
7256 cat >conftest.$ac_ext <<_ACEOF
7259 cat confdefs.h >>conftest.$ac_ext
7260 cat >>conftest.$ac_ext <<_ACEOF
7261 /* end confdefs.h. */
7262 $ac_includes_default
7266 #ifndef __sys_siglist
7267 (void) __sys_siglist;
7274 rm -f conftest.$ac_objext
7275 if { (ac_try="$ac_compile"
7277 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7278 *) ac_try_echo
=$ac_try;;
7280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7281 (eval "$ac_compile") 2>conftest.er1
7283 grep -v '^ *+' conftest.er1
>conftest.err
7285 cat conftest.err
>&5
7286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7287 (exit $ac_status); } && {
7288 test -z "$ac_c_werror_flag" ||
7289 test ! -s conftest.err
7290 } && test -s conftest.
$ac_objext; then
7291 ac_cv_have_decl___sys_siglist
=yes
7293 echo "$as_me: failed program was:" >&5
7294 sed 's/^/| /' conftest.
$ac_ext >&5
7296 ac_cv_have_decl___sys_siglist
=no
7299 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7301 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7302 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7303 if test $ac_cv_have_decl___sys_siglist = yes; then
7305 cat >>confdefs.h
<<_ACEOF
7306 #define HAVE_DECL___SYS_SIGLIST 1
7311 cat >>confdefs.h
<<_ACEOF
7312 #define HAVE_DECL___SYS_SIGLIST 0
7319 if test $ac_cv_have_decl___sys_siglist = yes; then
7321 cat >>confdefs.h
<<\_ACEOF
7322 #define sys_siglist __sys_siglist
7327 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7328 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7329 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7330 echo $ECHO_N "(cached) $ECHO_C" >&6
7332 cat >conftest.
$ac_ext <<_ACEOF
7335 cat confdefs.h
>>conftest.
$ac_ext
7336 cat >>conftest.
$ac_ext <<_ACEOF
7337 /* end confdefs.h. */
7338 #include <sys/types.h>
7339 #include <sys/wait.h>
7341 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7344 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7352 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7357 rm -f conftest.
$ac_objext
7358 if { (ac_try
="$ac_compile"
7360 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7361 *) ac_try_echo=$ac_try;;
7363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7364 (eval "$ac_compile") 2>conftest.er1
7366 grep -v '^ *+' conftest.er1 >conftest.err
7368 cat conftest.err >&5
7369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370 (exit $ac_status); } && {
7371 test -z "$ac_c_werror_flag" ||
7372 test ! -s conftest.err
7373 } && test -s conftest.$ac_objext; then
7374 ac_cv_header_sys_wait_h=yes
7376 echo "$as_me: failed program was:" >&5
7377 sed 's/^/| /' conftest.$ac_ext >&5
7379 ac_cv_header_sys_wait_h=no
7382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7384 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7385 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7386 if test $ac_cv_header_sys_wait_h = yes; then
7388 cat >>confdefs.h <<\_ACEOF
7389 #define HAVE_SYS_WAIT_H 1
7395 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7396 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7397 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7398 echo $ECHO_N "(cached) $ECHO_C" >&6
7400 cat >conftest.$ac_ext <<_ACEOF
7403 cat confdefs.h >>conftest.$ac_ext
7404 cat >>conftest.$ac_ext <<_ACEOF
7405 /* end confdefs.h. */
7406 #ifdef TIME_WITH_SYS_TIME
7407 #include <sys/time.h>
7410 #ifdef HAVE_SYS_TIME_H
7411 #include <sys/time.h>
7422 static struct utimbuf x; x.actime = x.modtime;
7427 rm -f conftest.$ac_objext
7428 if { (ac_try="$ac_compile"
7430 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7431 *) ac_try_echo
=$ac_try;;
7433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7434 (eval "$ac_compile") 2>conftest.er1
7436 grep -v '^ *+' conftest.er1
>conftest.err
7438 cat conftest.err
>&5
7439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7440 (exit $ac_status); } && {
7441 test -z "$ac_c_werror_flag" ||
7442 test ! -s conftest.err
7443 } && test -s conftest.
$ac_objext; then
7444 emacs_cv_struct_utimbuf
=yes
7446 echo "$as_me: failed program was:" >&5
7447 sed 's/^/| /' conftest.
$ac_ext >&5
7449 emacs_cv_struct_utimbuf
=no
7452 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7454 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7455 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7456 if test $emacs_cv_struct_utimbuf = yes; then
7458 cat >>confdefs.h
<<\_ACEOF
7459 #define HAVE_STRUCT_UTIMBUF 1
7464 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7465 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7466 if test "${ac_cv_type_signal+set}" = set; then
7467 echo $ECHO_N "(cached) $ECHO_C" >&6
7469 cat >conftest.
$ac_ext <<_ACEOF
7472 cat confdefs.h
>>conftest.
$ac_ext
7473 cat >>conftest.
$ac_ext <<_ACEOF
7474 /* end confdefs.h. */
7475 #include <sys/types.h>
7481 return *(signal (0, 0)) (0) == 1;
7486 rm -f conftest.
$ac_objext
7487 if { (ac_try
="$ac_compile"
7489 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7490 *) ac_try_echo=$ac_try;;
7492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7493 (eval "$ac_compile") 2>conftest.er1
7495 grep -v '^ *+' conftest.er1 >conftest.err
7497 cat conftest.err >&5
7498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7499 (exit $ac_status); } && {
7500 test -z "$ac_c_werror_flag" ||
7501 test ! -s conftest.err
7502 } && test -s conftest.$ac_objext; then
7503 ac_cv_type_signal=int
7505 echo "$as_me: failed program was:" >&5
7506 sed 's/^/| /' conftest.$ac_ext >&5
7508 ac_cv_type_signal=void
7511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7513 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7514 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7516 cat >>confdefs.h <<_ACEOF
7517 #define RETSIGTYPE $ac_cv_type_signal
7522 { echo "$as_me:$LINENO: checking for speed_t" >&5
7523 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7524 if test "${emacs_cv_speed_t+set}" = set; then
7525 echo $ECHO_N "(cached) $ECHO_C" >&6
7527 cat >conftest.$ac_ext <<_ACEOF
7530 cat confdefs.h >>conftest.$ac_ext
7531 cat >>conftest.$ac_ext <<_ACEOF
7532 /* end confdefs.h. */
7533 #include <termios.h>
7542 rm -f conftest.$ac_objext
7543 if { (ac_try="$ac_compile"
7545 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7546 *) ac_try_echo
=$ac_try;;
7548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7549 (eval "$ac_compile") 2>conftest.er1
7551 grep -v '^ *+' conftest.er1
>conftest.err
7553 cat conftest.err
>&5
7554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7555 (exit $ac_status); } && {
7556 test -z "$ac_c_werror_flag" ||
7557 test ! -s conftest.err
7558 } && test -s conftest.
$ac_objext; then
7559 emacs_cv_speed_t
=yes
7561 echo "$as_me: failed program was:" >&5
7562 sed 's/^/| /' conftest.
$ac_ext >&5
7567 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7569 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7570 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7571 if test $emacs_cv_speed_t = yes; then
7573 cat >>confdefs.h
<<\_ACEOF
7574 #define HAVE_SPEED_T 1
7579 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7580 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7581 if test "${emacs_cv_struct_timeval+set}" = set; then
7582 echo $ECHO_N "(cached) $ECHO_C" >&6
7584 cat >conftest.
$ac_ext <<_ACEOF
7587 cat confdefs.h
>>conftest.
$ac_ext
7588 cat >>conftest.
$ac_ext <<_ACEOF
7589 /* end confdefs.h. */
7590 #ifdef TIME_WITH_SYS_TIME
7591 #include <sys/time.h>
7594 #ifdef HAVE_SYS_TIME_H
7595 #include <sys/time.h>
7603 static struct timeval x; x.tv_sec = x.tv_usec;
7608 rm -f conftest.
$ac_objext
7609 if { (ac_try
="$ac_compile"
7611 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7612 *) ac_try_echo=$ac_try;;
7614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7615 (eval "$ac_compile") 2>conftest.er1
7617 grep -v '^ *+' conftest.er1 >conftest.err
7619 cat conftest.err >&5
7620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621 (exit $ac_status); } && {
7622 test -z "$ac_c_werror_flag" ||
7623 test ! -s conftest.err
7624 } && test -s conftest.$ac_objext; then
7625 emacs_cv_struct_timeval=yes
7627 echo "$as_me: failed program was:" >&5
7628 sed 's/^/| /' conftest.$ac_ext >&5
7630 emacs_cv_struct_timeval=no
7633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7635 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7636 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7637 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7638 if test $emacs_cv_struct_timeval = yes; then
7640 cat >>confdefs.h <<\_ACEOF
7641 #define HAVE_TIMEVAL 1
7646 { echo "$as_me:$LINENO: checking for struct exception" >&5
7647 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7648 if test "${emacs_cv_struct_exception+set}" = set; then
7649 echo $ECHO_N "(cached) $ECHO_C" >&6
7651 cat >conftest.$ac_ext <<_ACEOF
7654 cat confdefs.h >>conftest.$ac_ext
7655 cat >>conftest.$ac_ext <<_ACEOF
7656 /* end confdefs.h. */
7661 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7666 rm -f conftest.$ac_objext
7667 if { (ac_try="$ac_compile"
7669 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7670 *) ac_try_echo
=$ac_try;;
7672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7673 (eval "$ac_compile") 2>conftest.er1
7675 grep -v '^ *+' conftest.er1
>conftest.err
7677 cat conftest.err
>&5
7678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7679 (exit $ac_status); } && {
7680 test -z "$ac_c_werror_flag" ||
7681 test ! -s conftest.err
7682 } && test -s conftest.
$ac_objext; then
7683 emacs_cv_struct_exception
=yes
7685 echo "$as_me: failed program was:" >&5
7686 sed 's/^/| /' conftest.
$ac_ext >&5
7688 emacs_cv_struct_exception
=no
7691 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7693 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7694 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7695 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7696 if test $emacs_cv_struct_exception != yes; then
7698 cat >>confdefs.h
<<\_ACEOF
7699 #define NO_MATHERR 1
7705 for ac_header
in sys
/socket.h
7707 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7708 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7709 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7710 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7711 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7712 echo $ECHO_N "(cached) $ECHO_C" >&6
7714 ac_res
=`eval echo '${'$as_ac_Header'}'`
7715 { echo "$as_me:$LINENO: result: $ac_res" >&5
7716 echo "${ECHO_T}$ac_res" >&6; }
7718 # Is the header compilable?
7719 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7720 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7721 cat >conftest.
$ac_ext <<_ACEOF
7724 cat confdefs.h
>>conftest.
$ac_ext
7725 cat >>conftest.
$ac_ext <<_ACEOF
7726 /* end confdefs.h. */
7727 $ac_includes_default
7728 #include <$ac_header>
7730 rm -f conftest.
$ac_objext
7731 if { (ac_try
="$ac_compile"
7733 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7734 *) ac_try_echo=$ac_try;;
7736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7737 (eval "$ac_compile") 2>conftest.er1
7739 grep -v '^ *+' conftest.er1 >conftest.err
7741 cat conftest.err >&5
7742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743 (exit $ac_status); } && {
7744 test -z "$ac_c_werror_flag" ||
7745 test ! -s conftest.err
7746 } && test -s conftest.$ac_objext; then
7747 ac_header_compiler=yes
7749 echo "$as_me: failed program was:" >&5
7750 sed 's/^/| /' conftest.$ac_ext >&5
7752 ac_header_compiler=no
7755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7756 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7757 echo "${ECHO_T}$ac_header_compiler" >&6; }
7759 # Is the header present?
7760 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7761 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7762 cat >conftest.$ac_ext <<_ACEOF
7765 cat confdefs.h >>conftest.$ac_ext
7766 cat >>conftest.$ac_ext <<_ACEOF
7767 /* end confdefs.h. */
7768 #include <$ac_header>
7770 if { (ac_try="$ac_cpp conftest.$ac_ext"
7772 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7773 *) ac_try_echo
=$ac_try;;
7775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7776 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7778 grep -v '^ *+' conftest.er1
>conftest.err
7780 cat conftest.err
>&5
7781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7782 (exit $ac_status); } >/dev
/null
&& {
7783 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7784 test ! -s conftest.err
7786 ac_header_preproc
=yes
7788 echo "$as_me: failed program was:" >&5
7789 sed 's/^/| /' conftest.
$ac_ext >&5
7791 ac_header_preproc
=no
7794 rm -f conftest.err conftest.
$ac_ext
7795 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7796 echo "${ECHO_T}$ac_header_preproc" >&6; }
7798 # So? What about this header?
7799 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7801 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7802 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7803 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7804 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7805 ac_header_preproc
=yes
7808 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7809 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7810 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7811 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7812 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7813 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7814 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7815 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7816 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7817 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7818 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7819 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7823 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7824 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7825 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7826 echo $ECHO_N "(cached) $ECHO_C" >&6
7828 eval "$as_ac_Header=\$ac_header_preproc"
7830 ac_res
=`eval echo '${'$as_ac_Header'}'`
7831 { echo "$as_me:$LINENO: result: $ac_res" >&5
7832 echo "${ECHO_T}$ac_res" >&6; }
7835 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7836 cat >>confdefs.h
<<_ACEOF
7837 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7845 for ac_header
in net
/if.h
7847 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7848 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7849 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7850 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7851 echo $ECHO_N "(cached) $ECHO_C" >&6
7853 cat >conftest.
$ac_ext <<_ACEOF
7856 cat confdefs.h
>>conftest.
$ac_ext
7857 cat >>conftest.
$ac_ext <<_ACEOF
7858 /* end confdefs.h. */
7859 $ac_includes_default
7860 #if HAVE_SYS_SOCKET_H
7861 #include <sys/socket.h>
7864 #include <$ac_header>
7866 rm -f conftest.
$ac_objext
7867 if { (ac_try
="$ac_compile"
7869 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7870 *) ac_try_echo=$ac_try;;
7872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7873 (eval "$ac_compile") 2>conftest.er1
7875 grep -v '^ *+' conftest.er1 >conftest.err
7877 cat conftest.err >&5
7878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879 (exit $ac_status); } && {
7880 test -z "$ac_c_werror_flag" ||
7881 test ! -s conftest.err
7882 } && test -s conftest.$ac_objext; then
7883 eval "$as_ac_Header=yes"
7885 echo "$as_me: failed program was:" >&5
7886 sed 's/^/| /' conftest.$ac_ext >&5
7888 eval "$as_ac_Header=no"
7891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7893 ac_res=`eval echo '${'$as_ac_Header'}'`
7894 { echo "$as_me:$LINENO: result: $ac_res" >&5
7895 echo "${ECHO_T}$ac_res" >&6; }
7896 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7897 cat >>confdefs.h <<_ACEOF
7898 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7906 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7907 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7908 if test "${ac_cv_struct_tm+set}" = set; then
7909 echo $ECHO_N "(cached) $ECHO_C" >&6
7911 cat >conftest.$ac_ext <<_ACEOF
7914 cat confdefs.h >>conftest.$ac_ext
7915 cat >>conftest.$ac_ext <<_ACEOF
7916 /* end confdefs.h. */
7917 #include <sys/types.h>
7924 int *p = &tm.tm_sec;
7930 rm -f conftest.$ac_objext
7931 if { (ac_try="$ac_compile"
7933 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7934 *) ac_try_echo
=$ac_try;;
7936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7937 (eval "$ac_compile") 2>conftest.er1
7939 grep -v '^ *+' conftest.er1
>conftest.err
7941 cat conftest.err
>&5
7942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7943 (exit $ac_status); } && {
7944 test -z "$ac_c_werror_flag" ||
7945 test ! -s conftest.err
7946 } && test -s conftest.
$ac_objext; then
7947 ac_cv_struct_tm
=time.h
7949 echo "$as_me: failed program was:" >&5
7950 sed 's/^/| /' conftest.
$ac_ext >&5
7952 ac_cv_struct_tm
=sys
/time.h
7955 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7957 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7958 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7959 if test $ac_cv_struct_tm = sys
/time.h
; then
7961 cat >>confdefs.h
<<\_ACEOF
7962 #define TM_IN_SYS_TIME 1
7967 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7968 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7969 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7970 echo $ECHO_N "(cached) $ECHO_C" >&6
7972 cat >conftest.
$ac_ext <<_ACEOF
7975 cat confdefs.h
>>conftest.
$ac_ext
7976 cat >>conftest.
$ac_ext <<_ACEOF
7977 /* end confdefs.h. */
7978 #include <sys/types.h>
7979 #include <$ac_cv_struct_tm>
7985 static struct tm ac_aggr;
7986 if (ac_aggr.tm_zone)
7992 rm -f conftest.
$ac_objext
7993 if { (ac_try
="$ac_compile"
7995 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7996 *) ac_try_echo=$ac_try;;
7998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7999 (eval "$ac_compile") 2>conftest.er1
8001 grep -v '^ *+' conftest.er1 >conftest.err
8003 cat conftest.err >&5
8004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8005 (exit $ac_status); } && {
8006 test -z "$ac_c_werror_flag" ||
8007 test ! -s conftest.err
8008 } && test -s conftest.$ac_objext; then
8009 ac_cv_member_struct_tm_tm_zone=yes
8011 echo "$as_me: failed program was:" >&5
8012 sed 's/^/| /' conftest.$ac_ext >&5
8014 cat >conftest.$ac_ext <<_ACEOF
8017 cat confdefs.h >>conftest.$ac_ext
8018 cat >>conftest.$ac_ext <<_ACEOF
8019 /* end confdefs.h. */
8020 #include <sys/types.h>
8021 #include <$ac_cv_struct_tm>
8027 static struct tm ac_aggr;
8028 if (sizeof ac_aggr.tm_zone)
8034 rm -f conftest.$ac_objext
8035 if { (ac_try="$ac_compile"
8037 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8038 *) ac_try_echo
=$ac_try;;
8040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8041 (eval "$ac_compile") 2>conftest.er1
8043 grep -v '^ *+' conftest.er1
>conftest.err
8045 cat conftest.err
>&5
8046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047 (exit $ac_status); } && {
8048 test -z "$ac_c_werror_flag" ||
8049 test ! -s conftest.err
8050 } && test -s conftest.
$ac_objext; then
8051 ac_cv_member_struct_tm_tm_zone
=yes
8053 echo "$as_me: failed program was:" >&5
8054 sed 's/^/| /' conftest.
$ac_ext >&5
8056 ac_cv_member_struct_tm_tm_zone
=no
8059 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8062 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8064 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8065 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
8066 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8068 cat >>confdefs.h
<<_ACEOF
8069 #define HAVE_STRUCT_TM_TM_ZONE 1
8075 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8077 cat >>confdefs.h
<<\_ACEOF
8078 #define HAVE_TM_ZONE 1
8082 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8083 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
8084 if test "${ac_cv_have_decl_tzname+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. */
8106 rm -f conftest.
$ac_objext
8107 if { (ac_try
="$ac_compile"
8109 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8110 *) ac_try_echo=$ac_try;;
8112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8113 (eval "$ac_compile") 2>conftest.er1
8115 grep -v '^ *+' conftest.er1 >conftest.err
8117 cat conftest.err >&5
8118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119 (exit $ac_status); } && {
8120 test -z "$ac_c_werror_flag" ||
8121 test ! -s conftest.err
8122 } && test -s conftest.$ac_objext; then
8123 ac_cv_have_decl_tzname=yes
8125 echo "$as_me: failed program was:" >&5
8126 sed 's/^/| /' conftest.$ac_ext >&5
8128 ac_cv_have_decl_tzname=no
8131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8133 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8134 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
8135 if test $ac_cv_have_decl_tzname = yes; then
8137 cat >>confdefs.h <<_ACEOF
8138 #define HAVE_DECL_TZNAME 1
8143 cat >>confdefs.h <<_ACEOF
8144 #define HAVE_DECL_TZNAME 0
8151 { echo "$as_me:$LINENO: checking for tzname" >&5
8152 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
8153 if test "${ac_cv_var_tzname+set}" = set; then
8154 echo $ECHO_N "(cached) $ECHO_C" >&6
8156 cat >conftest.$ac_ext <<_ACEOF
8159 cat confdefs.h >>conftest.$ac_ext
8160 cat >>conftest.$ac_ext <<_ACEOF
8161 /* end confdefs.h. */
8163 #if !HAVE_DECL_TZNAME
8164 extern char *tzname[];
8170 return tzname[0][0];
8175 rm -f conftest.$ac_objext conftest$ac_exeext
8176 if { (ac_try="$ac_link"
8178 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8179 *) ac_try_echo
=$ac_try;;
8181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8182 (eval "$ac_link") 2>conftest.er1
8184 grep -v '^ *+' conftest.er1
>conftest.err
8186 cat conftest.err
>&5
8187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188 (exit $ac_status); } && {
8189 test -z "$ac_c_werror_flag" ||
8190 test ! -s conftest.err
8191 } && test -s conftest
$ac_exeext &&
8192 $as_test_x conftest
$ac_exeext; then
8193 ac_cv_var_tzname
=yes
8195 echo "$as_me: failed program was:" >&5
8196 sed 's/^/| /' conftest.
$ac_ext >&5
8201 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8202 conftest
$ac_exeext conftest.
$ac_ext
8204 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8205 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
8206 if test $ac_cv_var_tzname = yes; then
8208 cat >>confdefs.h
<<\_ACEOF
8209 #define HAVE_TZNAME 1
8215 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8216 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
8217 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8218 echo $ECHO_N "(cached) $ECHO_C" >&6
8220 cat >conftest.
$ac_ext <<_ACEOF
8223 cat confdefs.h
>>conftest.
$ac_ext
8224 cat >>conftest.
$ac_ext <<_ACEOF
8225 /* end confdefs.h. */
8231 static struct tm ac_aggr;
8232 if (ac_aggr.tm_gmtoff)
8238 rm -f conftest.
$ac_objext
8239 if { (ac_try
="$ac_compile"
8241 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8242 *) ac_try_echo=$ac_try;;
8244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8245 (eval "$ac_compile") 2>conftest.er1
8247 grep -v '^ *+' conftest.er1 >conftest.err
8249 cat conftest.err >&5
8250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251 (exit $ac_status); } && {
8252 test -z "$ac_c_werror_flag" ||
8253 test ! -s conftest.err
8254 } && test -s conftest.$ac_objext; then
8255 ac_cv_member_struct_tm_tm_gmtoff=yes
8257 echo "$as_me: failed program was:" >&5
8258 sed 's/^/| /' conftest.$ac_ext >&5
8260 cat >conftest.$ac_ext <<_ACEOF
8263 cat confdefs.h >>conftest.$ac_ext
8264 cat >>conftest.$ac_ext <<_ACEOF
8265 /* end confdefs.h. */
8271 static struct tm ac_aggr;
8272 if (sizeof ac_aggr.tm_gmtoff)
8278 rm -f conftest.$ac_objext
8279 if { (ac_try="$ac_compile"
8281 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8282 *) ac_try_echo
=$ac_try;;
8284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8285 (eval "$ac_compile") 2>conftest.er1
8287 grep -v '^ *+' conftest.er1
>conftest.err
8289 cat conftest.err
>&5
8290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291 (exit $ac_status); } && {
8292 test -z "$ac_c_werror_flag" ||
8293 test ! -s conftest.err
8294 } && test -s conftest.
$ac_objext; then
8295 ac_cv_member_struct_tm_tm_gmtoff
=yes
8297 echo "$as_me: failed program was:" >&5
8298 sed 's/^/| /' conftest.
$ac_ext >&5
8300 ac_cv_member_struct_tm_tm_gmtoff
=no
8303 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8306 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8308 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8309 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8310 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8312 cat >>confdefs.h
<<\_ACEOF
8313 #define HAVE_TM_GMTOFF 1
8318 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8319 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8320 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8321 echo $ECHO_N "(cached) $ECHO_C" >&6
8323 cat >conftest.
$ac_ext <<_ACEOF
8326 cat confdefs.h
>>conftest.
$ac_ext
8327 cat >>conftest.
$ac_ext <<_ACEOF
8328 /* end confdefs.h. */
8329 $ac_includes_default
8330 #if HAVE_SYS_SOCKET_H
8331 #include <sys/socket.h>
8340 static struct ifreq ac_aggr;
8341 if (ac_aggr.ifr_flags)
8347 rm -f conftest.
$ac_objext
8348 if { (ac_try
="$ac_compile"
8350 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8351 *) ac_try_echo=$ac_try;;
8353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8354 (eval "$ac_compile") 2>conftest.er1
8356 grep -v '^ *+' conftest.er1 >conftest.err
8358 cat conftest.err >&5
8359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8360 (exit $ac_status); } && {
8361 test -z "$ac_c_werror_flag" ||
8362 test ! -s conftest.err
8363 } && test -s conftest.$ac_objext; then
8364 ac_cv_member_struct_ifreq_ifr_flags=yes
8366 echo "$as_me: failed program was:" >&5
8367 sed 's/^/| /' conftest.$ac_ext >&5
8369 cat >conftest.$ac_ext <<_ACEOF
8372 cat confdefs.h >>conftest.$ac_ext
8373 cat >>conftest.$ac_ext <<_ACEOF
8374 /* end confdefs.h. */
8375 $ac_includes_default
8376 #if HAVE_SYS_SOCKET_H
8377 #include <sys/socket.h>
8386 static struct ifreq ac_aggr;
8387 if (sizeof ac_aggr.ifr_flags)
8393 rm -f conftest.$ac_objext
8394 if { (ac_try="$ac_compile"
8396 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8397 *) ac_try_echo
=$ac_try;;
8399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8400 (eval "$ac_compile") 2>conftest.er1
8402 grep -v '^ *+' conftest.er1
>conftest.err
8404 cat conftest.err
>&5
8405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406 (exit $ac_status); } && {
8407 test -z "$ac_c_werror_flag" ||
8408 test ! -s conftest.err
8409 } && test -s conftest.
$ac_objext; then
8410 ac_cv_member_struct_ifreq_ifr_flags
=yes
8412 echo "$as_me: failed program was:" >&5
8413 sed 's/^/| /' conftest.
$ac_ext >&5
8415 ac_cv_member_struct_ifreq_ifr_flags
=no
8418 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8421 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8423 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8424 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8425 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8427 cat >>confdefs.h
<<_ACEOF
8428 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8433 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8434 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8435 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8436 echo $ECHO_N "(cached) $ECHO_C" >&6
8438 cat >conftest.
$ac_ext <<_ACEOF
8441 cat confdefs.h
>>conftest.
$ac_ext
8442 cat >>conftest.
$ac_ext <<_ACEOF
8443 /* end confdefs.h. */
8444 $ac_includes_default
8445 #if HAVE_SYS_SOCKET_H
8446 #include <sys/socket.h>
8455 static struct ifreq ac_aggr;
8456 if (ac_aggr.ifr_hwaddr)
8462 rm -f conftest.
$ac_objext
8463 if { (ac_try
="$ac_compile"
8465 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8466 *) ac_try_echo=$ac_try;;
8468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8469 (eval "$ac_compile") 2>conftest.er1
8471 grep -v '^ *+' conftest.er1 >conftest.err
8473 cat conftest.err >&5
8474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475 (exit $ac_status); } && {
8476 test -z "$ac_c_werror_flag" ||
8477 test ! -s conftest.err
8478 } && test -s conftest.$ac_objext; then
8479 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8481 echo "$as_me: failed program was:" >&5
8482 sed 's/^/| /' conftest.$ac_ext >&5
8484 cat >conftest.$ac_ext <<_ACEOF
8487 cat confdefs.h >>conftest.$ac_ext
8488 cat >>conftest.$ac_ext <<_ACEOF
8489 /* end confdefs.h. */
8490 $ac_includes_default
8491 #if HAVE_SYS_SOCKET_H
8492 #include <sys/socket.h>
8501 static struct ifreq ac_aggr;
8502 if (sizeof ac_aggr.ifr_hwaddr)
8508 rm -f conftest.$ac_objext
8509 if { (ac_try="$ac_compile"
8511 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8512 *) ac_try_echo
=$ac_try;;
8514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8515 (eval "$ac_compile") 2>conftest.er1
8517 grep -v '^ *+' conftest.er1
>conftest.err
8519 cat conftest.err
>&5
8520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521 (exit $ac_status); } && {
8522 test -z "$ac_c_werror_flag" ||
8523 test ! -s conftest.err
8524 } && test -s conftest.
$ac_objext; then
8525 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8527 echo "$as_me: failed program was:" >&5
8528 sed 's/^/| /' conftest.
$ac_ext >&5
8530 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8533 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8536 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8538 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8539 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8540 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8542 cat >>confdefs.h
<<_ACEOF
8543 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8548 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8549 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8550 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8551 echo $ECHO_N "(cached) $ECHO_C" >&6
8553 cat >conftest.
$ac_ext <<_ACEOF
8556 cat confdefs.h
>>conftest.
$ac_ext
8557 cat >>conftest.
$ac_ext <<_ACEOF
8558 /* end confdefs.h. */
8559 $ac_includes_default
8560 #if HAVE_SYS_SOCKET_H
8561 #include <sys/socket.h>
8570 static struct ifreq ac_aggr;
8571 if (ac_aggr.ifr_netmask)
8577 rm -f conftest.
$ac_objext
8578 if { (ac_try
="$ac_compile"
8580 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8581 *) ac_try_echo=$ac_try;;
8583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8584 (eval "$ac_compile") 2>conftest.er1
8586 grep -v '^ *+' conftest.er1 >conftest.err
8588 cat conftest.err >&5
8589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590 (exit $ac_status); } && {
8591 test -z "$ac_c_werror_flag" ||
8592 test ! -s conftest.err
8593 } && test -s conftest.$ac_objext; then
8594 ac_cv_member_struct_ifreq_ifr_netmask=yes
8596 echo "$as_me: failed program was:" >&5
8597 sed 's/^/| /' conftest.$ac_ext >&5
8599 cat >conftest.$ac_ext <<_ACEOF
8602 cat confdefs.h >>conftest.$ac_ext
8603 cat >>conftest.$ac_ext <<_ACEOF
8604 /* end confdefs.h. */
8605 $ac_includes_default
8606 #if HAVE_SYS_SOCKET_H
8607 #include <sys/socket.h>
8616 static struct ifreq ac_aggr;
8617 if (sizeof ac_aggr.ifr_netmask)
8623 rm -f conftest.$ac_objext
8624 if { (ac_try="$ac_compile"
8626 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8627 *) ac_try_echo
=$ac_try;;
8629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8630 (eval "$ac_compile") 2>conftest.er1
8632 grep -v '^ *+' conftest.er1
>conftest.err
8634 cat conftest.err
>&5
8635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636 (exit $ac_status); } && {
8637 test -z "$ac_c_werror_flag" ||
8638 test ! -s conftest.err
8639 } && test -s conftest.
$ac_objext; then
8640 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8642 echo "$as_me: failed program was:" >&5
8643 sed 's/^/| /' conftest.
$ac_ext >&5
8645 ac_cv_member_struct_ifreq_ifr_netmask
=no
8648 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8651 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8653 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8654 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8655 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8657 cat >>confdefs.h
<<_ACEOF
8658 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8663 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8664 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8665 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8666 echo $ECHO_N "(cached) $ECHO_C" >&6
8668 cat >conftest.
$ac_ext <<_ACEOF
8671 cat confdefs.h
>>conftest.
$ac_ext
8672 cat >>conftest.
$ac_ext <<_ACEOF
8673 /* end confdefs.h. */
8674 $ac_includes_default
8675 #if HAVE_SYS_SOCKET_H
8676 #include <sys/socket.h>
8685 static struct ifreq ac_aggr;
8686 if (ac_aggr.ifr_broadaddr)
8692 rm -f conftest.
$ac_objext
8693 if { (ac_try
="$ac_compile"
8695 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8696 *) ac_try_echo=$ac_try;;
8698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8699 (eval "$ac_compile") 2>conftest.er1
8701 grep -v '^ *+' conftest.er1 >conftest.err
8703 cat conftest.err >&5
8704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705 (exit $ac_status); } && {
8706 test -z "$ac_c_werror_flag" ||
8707 test ! -s conftest.err
8708 } && test -s conftest.$ac_objext; then
8709 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8711 echo "$as_me: failed program was:" >&5
8712 sed 's/^/| /' conftest.$ac_ext >&5
8714 cat >conftest.$ac_ext <<_ACEOF
8717 cat confdefs.h >>conftest.$ac_ext
8718 cat >>conftest.$ac_ext <<_ACEOF
8719 /* end confdefs.h. */
8720 $ac_includes_default
8721 #if HAVE_SYS_SOCKET_H
8722 #include <sys/socket.h>
8731 static struct ifreq ac_aggr;
8732 if (sizeof ac_aggr.ifr_broadaddr)
8738 rm -f conftest.$ac_objext
8739 if { (ac_try="$ac_compile"
8741 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8742 *) ac_try_echo
=$ac_try;;
8744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8745 (eval "$ac_compile") 2>conftest.er1
8747 grep -v '^ *+' conftest.er1
>conftest.err
8749 cat conftest.err
>&5
8750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8751 (exit $ac_status); } && {
8752 test -z "$ac_c_werror_flag" ||
8753 test ! -s conftest.err
8754 } && test -s conftest.
$ac_objext; then
8755 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
8757 echo "$as_me: failed program was:" >&5
8758 sed 's/^/| /' conftest.
$ac_ext >&5
8760 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
8763 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8766 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8768 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8769 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8770 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8772 cat >>confdefs.h
<<_ACEOF
8773 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8778 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8779 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8780 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8781 echo $ECHO_N "(cached) $ECHO_C" >&6
8783 cat >conftest.
$ac_ext <<_ACEOF
8786 cat confdefs.h
>>conftest.
$ac_ext
8787 cat >>conftest.
$ac_ext <<_ACEOF
8788 /* end confdefs.h. */
8789 $ac_includes_default
8790 #if HAVE_SYS_SOCKET_H
8791 #include <sys/socket.h>
8800 static struct ifreq ac_aggr;
8801 if (ac_aggr.ifr_addr)
8807 rm -f conftest.
$ac_objext
8808 if { (ac_try
="$ac_compile"
8810 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8811 *) ac_try_echo=$ac_try;;
8813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8814 (eval "$ac_compile") 2>conftest.er1
8816 grep -v '^ *+' conftest.er1 >conftest.err
8818 cat conftest.err >&5
8819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8820 (exit $ac_status); } && {
8821 test -z "$ac_c_werror_flag" ||
8822 test ! -s conftest.err
8823 } && test -s conftest.$ac_objext; then
8824 ac_cv_member_struct_ifreq_ifr_addr=yes
8826 echo "$as_me: failed program was:" >&5
8827 sed 's/^/| /' conftest.$ac_ext >&5
8829 cat >conftest.$ac_ext <<_ACEOF
8832 cat confdefs.h >>conftest.$ac_ext
8833 cat >>conftest.$ac_ext <<_ACEOF
8834 /* end confdefs.h. */
8835 $ac_includes_default
8836 #if HAVE_SYS_SOCKET_H
8837 #include <sys/socket.h>
8846 static struct ifreq ac_aggr;
8847 if (sizeof ac_aggr.ifr_addr)
8853 rm -f conftest.$ac_objext
8854 if { (ac_try="$ac_compile"
8856 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8857 *) ac_try_echo
=$ac_try;;
8859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8860 (eval "$ac_compile") 2>conftest.er1
8862 grep -v '^ *+' conftest.er1
>conftest.err
8864 cat conftest.err
>&5
8865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8866 (exit $ac_status); } && {
8867 test -z "$ac_c_werror_flag" ||
8868 test ! -s conftest.err
8869 } && test -s conftest.
$ac_objext; then
8870 ac_cv_member_struct_ifreq_ifr_addr
=yes
8872 echo "$as_me: failed program was:" >&5
8873 sed 's/^/| /' conftest.
$ac_ext >&5
8875 ac_cv_member_struct_ifreq_ifr_addr
=no
8878 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8881 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8883 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8884 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8885 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8887 cat >>confdefs.h
<<_ACEOF
8888 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8896 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8897 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8898 if test "$ac_cv_prog_cc_c89" != no
; then
8899 { echo "$as_me:$LINENO: result: yes" >&5
8900 echo "${ECHO_T}yes" >&6; }
8902 cat >>confdefs.h
<<\_ACEOF
8903 #define PROTOTYPES 1
8907 cat >>confdefs.h
<<\_ACEOF
8908 #define __PROTOTYPES 1
8912 { echo "$as_me:$LINENO: result: no" >&5
8913 echo "${ECHO_T}no" >&6; }
8916 { echo "$as_me:$LINENO: checking for working volatile" >&5
8917 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8918 if test "${ac_cv_c_volatile+set}" = set; then
8919 echo $ECHO_N "(cached) $ECHO_C" >&6
8921 cat >conftest.
$ac_ext <<_ACEOF
8924 cat confdefs.h
>>conftest.
$ac_ext
8925 cat >>conftest.
$ac_ext <<_ACEOF
8926 /* end confdefs.h. */
8933 int * volatile y = (int *) 0;
8939 rm -f conftest.
$ac_objext
8940 if { (ac_try
="$ac_compile"
8942 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8943 *) ac_try_echo=$ac_try;;
8945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8946 (eval "$ac_compile") 2>conftest.er1
8948 grep -v '^ *+' conftest.er1 >conftest.err
8950 cat conftest.err >&5
8951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952 (exit $ac_status); } && {
8953 test -z "$ac_c_werror_flag" ||
8954 test ! -s conftest.err
8955 } && test -s conftest.$ac_objext; then
8956 ac_cv_c_volatile=yes
8958 echo "$as_me: failed program was:" >&5
8959 sed 's/^/| /' conftest.$ac_ext >&5
8964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8966 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8967 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8968 if test $ac_cv_c_volatile = no; then
8970 cat >>confdefs.h <<\_ACEOF
8976 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8977 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8978 if test "${ac_cv_c_const+set}" = set; then
8979 echo $ECHO_N "(cached) $ECHO_C" >&6
8981 cat >conftest.$ac_ext <<_ACEOF
8984 cat confdefs.h >>conftest.$ac_ext
8985 cat >>conftest.$ac_ext <<_ACEOF
8986 /* end confdefs.h. */
8991 /* FIXME: Include the comments suggested by Paul. */
8993 /* Ultrix mips cc rejects this. */
8994 typedef int charset[2];
8996 /* SunOS 4.1.1 cc rejects this. */
8997 char const *const *pcpcc;
8999 /* NEC SVR4.0.2 mips cc rejects this. */
9000 struct point {int x, y;};
9001 static struct point const zero = {0,0};
9002 /* AIX XL C 1.02.0.0 rejects this.
9003 It does not let you subtract one const X* pointer from another in
9004 an arm of an if-expression whose if-part is not a constant
9006 const char *g = "string";
9007 pcpcc = &g + (g ? g-g : 0);
9008 /* HPUX 7.0 cc rejects these. */
9010 ppc = (char**) pcpcc;
9011 pcpcc = (char const *const *) ppc;
9012 { /* SCO 3.2v4 cc rejects this. */
9014 char const *s = 0 ? (char *) 0 : (char const *) 0;
9019 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9021 const int *foo = &x[0];
9024 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9025 typedef const int *iptr;
9029 { /* AIX XL C 1.02.0.0 rejects this saying
9030 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9031 struct s { int j; const int *ap[3]; };
9032 struct s *b; b->j = 5;
9034 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9038 return !cs[0] && !zero.x;
9045 rm -f conftest.$ac_objext
9046 if { (ac_try="$ac_compile"
9048 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9049 *) ac_try_echo
=$ac_try;;
9051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9052 (eval "$ac_compile") 2>conftest.er1
9054 grep -v '^ *+' conftest.er1
>conftest.err
9056 cat conftest.err
>&5
9057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9058 (exit $ac_status); } && {
9059 test -z "$ac_c_werror_flag" ||
9060 test ! -s conftest.err
9061 } && test -s conftest.
$ac_objext; then
9064 echo "$as_me: failed program was:" >&5
9065 sed 's/^/| /' conftest.
$ac_ext >&5
9070 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9072 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9073 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9074 if test $ac_cv_c_const = no
; then
9076 cat >>confdefs.h
<<\_ACEOF
9082 { echo "$as_me:$LINENO: checking for void * support" >&5
9083 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
9084 if test "${emacs_cv_void_star+set}" = set; then
9085 echo $ECHO_N "(cached) $ECHO_C" >&6
9087 cat >conftest.
$ac_ext <<_ACEOF
9090 cat confdefs.h
>>conftest.
$ac_ext
9091 cat >>conftest.
$ac_ext <<_ACEOF
9092 /* end confdefs.h. */
9102 rm -f conftest.
$ac_objext
9103 if { (ac_try
="$ac_compile"
9105 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9106 *) ac_try_echo=$ac_try;;
9108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9109 (eval "$ac_compile") 2>conftest.er1
9111 grep -v '^ *+' conftest.er1 >conftest.err
9113 cat conftest.err >&5
9114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9115 (exit $ac_status); } && {
9116 test -z "$ac_c_werror_flag" ||
9117 test ! -s conftest.err
9118 } && test -s conftest.$ac_objext; then
9119 emacs_cv_void_star=yes
9121 echo "$as_me: failed program was:" >&5
9122 sed 's/^/| /' conftest.$ac_ext >&5
9124 emacs_cv_void_star=no
9127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9129 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9130 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
9131 if test $emacs_cv_void_star = yes; then
9132 cat >>confdefs.h <<\_ACEOF
9133 #define POINTER_TYPE void
9137 cat >>confdefs.h <<\_ACEOF
9138 #define POINTER_TYPE char
9147 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9148 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
9149 set x ${MAKE-make}; ac_make=`echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9150 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9151 echo $ECHO_N "(cached) $ECHO_C" >&6
9153 cat >conftest.make <<\_ACEOF
9156 @echo '@@@%%%=$(MAKE)=@@@%%%'
9158 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9159 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
9161 eval ac_cv_prog_make_${ac_make}_set=yes;;
9163 eval ac_cv_prog_make_${ac_make}_set=no;;
9167 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9168 { echo "$as_me:$LINENO: result: yes" >&5
9169 echo "${ECHO_T}yes" >&6; }
9172 { echo "$as_me:$LINENO: result: no" >&5
9173 echo "${ECHO_T}no" >&6; }
9174 SET_MAKE="MAKE=${MAKE-make}"
9178 { echo "$as_me:$LINENO: checking for long file names" >&5
9179 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
9180 if test "${ac_cv_sys_long_file_names+set}" = set; then
9181 echo $ECHO_N "(cached) $ECHO_C" >&6
9183 ac_cv_sys_long_file_names=yes
9184 # Test for long file names in all the places we know might matter:
9185 # . the current directory, where building will happen
9186 # $prefix/lib where we will be installing things
9187 # $exec_prefix/lib likewise
9188 # $TMPDIR if set, where it might want to write temporary files
9189 # /tmp where it might want to write temporary files
9192 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9193 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9194 # in the usual case where exec_prefix is '${prefix}'.
9196 . | /* | ?:[\\/]*) ;; #(
9199 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9200 ac_xdir=$ac_dir/cf$$
9201 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9202 ac_tf1=$ac_xdir/conftest9012345
9203 ac_tf2=$ac_xdir/conftest9012346
9204 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9205 ac_cv_sys_long_file_names=no
9206 rm -f -r "$ac_xdir" 2>/dev/null
9207 test $ac_cv_sys_long_file_names = no && break
9210 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9211 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9212 if test $ac_cv_sys_long_file_names = yes; then
9214 cat >>confdefs.h <<\_ACEOF
9215 #define HAVE_LONG_FILE_NAMES 1
9221 #### Choose a window system.
9223 { echo "$as_me:$LINENO: checking for X" >&5
9224 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9227 # Check whether --with-x was given.
9228 if test "${with_x+set}" = set; then
9232 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9233 if test "x$with_x" = xno; then
9234 # The user explicitly disabled X.
9237 case $x_includes,$x_libraries in #(
9238 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9239 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9240 { (exit 1); exit 1; }; };; #(
9241 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9242 echo $ECHO_N "(cached) $ECHO_C" >&6
9244 # One or both of the vars are not set, and there is no cached value.
9245 ac_x_includes=no ac_x_libraries=no
9246 rm -f -r conftest.dir
9247 if mkdir conftest.dir; then
9249 cat >Imakefile <<'_ACEOF'
9251 @echo incroot='${INCROOT}'
9253 @echo usrlibdir='${USRLIBDIR}'
9255 @echo libdir='${LIBDIR}'
9257 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9258 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9259 for ac_var in incroot usrlibdir libdir; do
9260 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
9262 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9263 for ac_extension in a so sl; do
9264 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9265 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9266 ac_im_usrlibdir=$ac_im_libdir; break
9269 # Screen out bogus values from the imake configuration. They are
9270 # bogus both because they are the default anyway, and because
9271 # using them would break gcc on systems where it needs fixed includes.
9272 case $ac_im_incroot in
9273 /usr/include) ac_x_includes= ;;
9274 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9276 case $ac_im_usrlibdir in
9278 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9282 rm -f -r conftest.dir
9285 # Standard set of common directories for X headers.
9286 # Check X11 before X11Rn because it is often a symlink to the current release.
9298 /usr/local/X11/include
9299 /usr/local/X11R6/include
9300 /usr/local/X11R5/include
9301 /usr/local/X11R4/include
9303 /usr/local/include/X11
9304 /usr/local/include/X11R6
9305 /usr/local/include/X11R5
9306 /usr/local/include/X11R4
9310 /usr/XFree86/include/X11
9314 /usr/unsupported/include
9316 /usr/local/x11r5/include
9317 /usr/lpp/Xamples/include
9319 /usr/openwin/include
9320 /usr/openwin/share/include'
9322 if test "$ac_x_includes" = no; then
9323 # Guess where to find include files, by looking for Xlib.h.
9324 # First, try using that file with no special directory specified.
9325 cat >conftest.$ac_ext <<_ACEOF
9328 cat confdefs.h >>conftest.$ac_ext
9329 cat >>conftest.$ac_ext <<_ACEOF
9330 /* end confdefs.h. */
9331 #include <X11/Xlib.h>
9333 if { (ac_try="$ac_cpp conftest.$ac_ext"
9335 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9336 *) ac_try_echo
=$ac_try;;
9338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9339 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9341 grep -v '^ *+' conftest.er1
>conftest.err
9343 cat conftest.err
>&5
9344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9345 (exit $ac_status); } >/dev
/null
&& {
9346 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9347 test ! -s conftest.err
9349 # We can compile using X headers with no special include directory.
9352 echo "$as_me: failed program was:" >&5
9353 sed 's/^/| /' conftest.
$ac_ext >&5
9355 for ac_dir
in $ac_x_header_dirs; do
9356 if test -r "$ac_dir/X11/Xlib.h"; then
9357 ac_x_includes
=$ac_dir
9363 rm -f conftest.err conftest.
$ac_ext
9364 fi # $ac_x_includes = no
9366 if test "$ac_x_libraries" = no
; then
9367 # Check for the libraries.
9368 # See if we find them without any special options.
9369 # Don't add to $LIBS permanently.
9372 cat >conftest.
$ac_ext <<_ACEOF
9375 cat confdefs.h
>>conftest.
$ac_ext
9376 cat >>conftest.
$ac_ext <<_ACEOF
9377 /* end confdefs.h. */
9378 #include <X11/Xlib.h>
9387 rm -f conftest.
$ac_objext conftest
$ac_exeext
9388 if { (ac_try
="$ac_link"
9390 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9391 *) ac_try_echo=$ac_try;;
9393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9394 (eval "$ac_link") 2>conftest.er1
9396 grep -v '^ *+' conftest.er1 >conftest.err
9398 cat conftest.err >&5
9399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400 (exit $ac_status); } && {
9401 test -z "$ac_c_werror_flag" ||
9402 test ! -s conftest.err
9403 } && test -s conftest$ac_exeext &&
9404 $as_test_x conftest$ac_exeext; then
9406 # We can link X programs with no special library path.
9409 echo "$as_me: failed program was:" >&5
9410 sed 's/^/| /' conftest.$ac_ext >&5
9413 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
9415 # Don't even attempt the hair of trying to link an X program!
9416 for ac_extension in a so sl; do
9417 if test -r "$ac_dir/libX11.$ac_extension"; then
9418 ac_x_libraries=$ac_dir
9425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9426 conftest$ac_exeext conftest.$ac_ext
9427 fi # $ac_x_libraries = no
9429 case $ac_x_includes,$ac_x_libraries in #(
9431 # Didn't find X, or a directory has "'" in its name.
9432 ac_cv_have_x="have_x=no";; #(
9434 # Record where we found X for the cache.
9435 ac_cv_have_x="have_x=yes\
9436 ac_x_includes='$ac_x_includes'\
9437 ac_x_libraries='$ac_x_libraries'"
9443 eval "$ac_cv_have_x"
9446 if test "$have_x" != yes; then
9447 { echo "$as_me:$LINENO: result: $have_x" >&5
9448 echo "${ECHO_T}$have_x" >&6; }
9451 # If each of the values was on the command line, it overrides each guess.
9452 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9453 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9454 # Update the cache value to reflect the command line values.
9455 ac_cv_have_x="have_x=yes\
9456 ac_x_includes='$x_includes'\
9457 ac_x_libraries='$x_libraries'"
9458 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9459 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9462 if test "$no_x" = yes; then
9468 if test "${x_libraries}" != NONE; then
9469 if test -n "${x_libraries}"; then
9470 LD_SWITCH_X_SITE=-L`echo ${x_libraries} |
sed -e "s/:/ -L/g"`
9471 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} |
sed -e "s/:/ -R/g"`
9473 x_default_search_path=""
9474 x_search_path=${x_libraries}
9475 if test -z "${x_search_path}"; then
9476 x_search_path=/usr/lib
9478 for x_library in `echo ${x_search_path}: | \
9479 sed -e "s/:/ /g" -e p
-e "s:/lib[^ /]* :/share :g"`; do
9481 ${x_library}/X11/%L/%T/%N%C%S:\
9482 ${x_library}/X11/%l/%T/%N%C%S:\
9483 ${x_library}/X11/%T/%N%C%S:\
9484 ${x_library}/X11/%L/%T/%N%S:\
9485 ${x_library}/X11/%l/%T/%N%S:\
9486 ${x_library}/X11/%T/%N%S"
9487 if test x"${x_default_search_path}" = x; then
9488 x_default_search_path=${x_search_path}
9490 x_default_search_path="${x_search_path}:${x_default_search_path}"
9494 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9495 C_SWITCH_X_SITE=-I`echo ${x_includes} |
sed -e "s/:/ -I/g"`
9498 if test x"${x_includes}" = x; then
9499 bitmapdir=/usr/include/X11/bitmaps
9501 # accumulate include directories that have X11 bitmap subdirectories
9503 for bmd in `echo ${x_includes} |
sed -e "s/:/ /g"`; do
9504 if test -d "${bmd}/X11/bitmaps"; then
9505 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9507 if test -d "${bmd}/bitmaps"; then
9508 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9511 if test ${bmd_acc} != "dummyval"; then
9512 bitmapdir=`echo ${bmd_acc} |
sed -e "s/^dummyval://"`
9517 if test "${with_carbon}" != no; then
9518 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9519 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9520 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9521 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9522 echo $ECHO_N "(cached) $ECHO_C" >&6
9524 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9525 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9527 # Is the header compilable?
9528 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9529 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9530 cat >conftest.$ac_ext <<_ACEOF
9533 cat confdefs.h >>conftest.$ac_ext
9534 cat >>conftest.$ac_ext <<_ACEOF
9535 /* end confdefs.h. */
9536 $ac_includes_default
9537 #include <Carbon/Carbon.h>
9539 rm -f conftest.$ac_objext
9540 if { (ac_try="$ac_compile"
9542 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9543 *) ac_try_echo
=$ac_try;;
9545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9546 (eval "$ac_compile") 2>conftest.er1
9548 grep -v '^ *+' conftest.er1
>conftest.err
9550 cat conftest.err
>&5
9551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9552 (exit $ac_status); } && {
9553 test -z "$ac_c_werror_flag" ||
9554 test ! -s conftest.err
9555 } && test -s conftest.
$ac_objext; then
9556 ac_header_compiler
=yes
9558 echo "$as_me: failed program was:" >&5
9559 sed 's/^/| /' conftest.
$ac_ext >&5
9561 ac_header_compiler
=no
9564 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9565 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9566 echo "${ECHO_T}$ac_header_compiler" >&6; }
9568 # Is the header present?
9569 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9570 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9571 cat >conftest.
$ac_ext <<_ACEOF
9574 cat confdefs.h
>>conftest.
$ac_ext
9575 cat >>conftest.
$ac_ext <<_ACEOF
9576 /* end confdefs.h. */
9577 #include <Carbon/Carbon.h>
9579 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9581 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9582 *) ac_try_echo=$ac_try;;
9584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9585 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9587 grep -v '^ *+' conftest.er1 >conftest.err
9589 cat conftest.err >&5
9590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591 (exit $ac_status); } >/dev/null && {
9592 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9593 test ! -s conftest.err
9595 ac_header_preproc=yes
9597 echo "$as_me: failed program was:" >&5
9598 sed 's/^/| /' conftest.$ac_ext >&5
9600 ac_header_preproc=no
9603 rm -f conftest.err conftest.$ac_ext
9604 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9605 echo "${ECHO_T}$ac_header_preproc" >&6; }
9607 # So? What about this header?
9608 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9610 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9611 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9612 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9613 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9614 ac_header_preproc=yes
9617 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9618 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9619 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9620 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9621 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9622 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9623 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9624 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9625 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9626 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9627 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9628 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9632 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9633 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9634 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9635 echo $ECHO_N "(cached) $ECHO_C" >&6
9637 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9639 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9640 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9643 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9649 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9650 if test "${with_carbon+set}" != set \
9651 && test "${carbon_appdir_x+set}" != set; then
9652 for var in with_x with_x_toolkit with_gtk with_xim \
9653 with_xpm with_jpeg with_tiff with_gif with_png; do
9654 if eval test \"\${$var+set}\" = set; then
9661 if test "${HAVE_CARBON}" = yes; then
9665 case "${window_system}" in
9669 case "${with_x_toolkit}" in
9670 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9671 motif ) USE_X_TOOLKIT=MOTIF ;;
9673 USE_X_TOOLKIT=none ;;
9674 no ) USE_X_TOOLKIT=none ;;
9676 if test x"$with_gtk" = xyes; then
9691 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9692 # Extract the first word of "X", so it can be a program name with args.
9693 set dummy X; ac_word=$2
9694 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9696 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9697 echo $ECHO_N "(cached) $ECHO_C" >&6
9699 if test -n "$HAVE_XSERVER"; then
9700 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9706 test -z "$as_dir" && as_dir=.
9707 for ac_exec_ext in '' $ac_executable_extensions; do
9708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9709 ac_cv_prog_HAVE_XSERVER="true"
9710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9717 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9720 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9721 if test -n "$HAVE_XSERVER"; then
9722 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9723 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9725 { echo "$as_me:$LINENO: result: no" >&5
9726 echo "${ECHO_T}no" >&6; }
9730 if test "$HAVE_XSERVER" = true ||
9731 test -n "$DISPLAY" ||
9732 test "`echo /usr
/lib
/libX11.
*`" != "/usr/lib/libX11.*"; then
9733 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9734 were found. You should install the relevant development files for X
9735 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9736 sure you have development files for image handling, i.e.
9737 tiff, gif, jpeg, png and xpm.
9738 If you are sure you want Emacs compiled without X window support, pass
9741 echo "$as_me: error: You seem to be running X, but no X development libraries
9742 were found. You should install the relevant development files for X
9743 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9744 sure you have development files for image handling, i.e.
9745 tiff, gif, jpeg, png and xpm.
9746 If you are sure you want Emacs compiled without X window support, pass
9748 to configure." >&2;}
9749 { (exit 1); exit 1; }; }
9753 ### If we're using X11, we should use the X menu package.
9756 yes ) HAVE_MENUS=yes ;;
9759 if test "${opsys}" = "hpux9"; then
9760 case "${x_libraries}" in
9762 opsysfile="s/hpux9-x11r4.h"
9767 if test "${opsys}" = "hpux9shr"; then
9768 case "${x_libraries}" in
9770 opsysfile="s/hpux9shxr4.h"
9775 ### Compute the unexec source name from the object name.
9776 UNEXEC_SRC="`echo ${unexec} |
sed 's/\.o/.c/'`"
9778 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9779 # Assume not, until told otherwise.
9782 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9783 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9784 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9785 echo $ECHO_N "(cached) $ECHO_C" >&6
9787 cat >conftest.$ac_ext <<_ACEOF
9790 cat confdefs.h >>conftest.$ac_ext
9791 cat >>conftest.$ac_ext <<_ACEOF
9792 /* end confdefs.h. */
9793 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9794 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9795 #define malloc_get_state innocuous_malloc_get_state
9797 /* System header to define __stub macros and hopefully few prototypes,
9798 which can conflict with char malloc_get_state (); below.
9799 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9800 <limits.h> exists even on freestanding compilers. */
9803 # include <limits.h>
9805 # include <assert.h>
9808 #undef malloc_get_state
9810 /* Override any GCC internal prototype to avoid an error.
9811 Use char because int might match the return type of a GCC
9812 builtin and then its argument prototype would still apply. */
9816 char malloc_get_state ();
9817 /* The GNU C library defines this for functions which it implements
9818 to always fail with ENOSYS. Some functions are actually named
9819 something starting with __ and the normal name is an alias. */
9820 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9827 return malloc_get_state ();
9832 rm -f conftest.$ac_objext conftest$ac_exeext
9833 if { (ac_try="$ac_link"
9835 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9836 *) ac_try_echo
=$ac_try;;
9838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9839 (eval "$ac_link") 2>conftest.er1
9841 grep -v '^ *+' conftest.er1
>conftest.err
9843 cat conftest.err
>&5
9844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845 (exit $ac_status); } && {
9846 test -z "$ac_c_werror_flag" ||
9847 test ! -s conftest.err
9848 } && test -s conftest
$ac_exeext &&
9849 $as_test_x conftest
$ac_exeext; then
9850 ac_cv_func_malloc_get_state
=yes
9852 echo "$as_me: failed program was:" >&5
9853 sed 's/^/| /' conftest.
$ac_ext >&5
9855 ac_cv_func_malloc_get_state
=no
9858 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9859 conftest
$ac_exeext conftest.
$ac_ext
9861 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9862 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9863 if test $ac_cv_func_malloc_get_state = yes; then
9869 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9870 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9871 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9872 echo $ECHO_N "(cached) $ECHO_C" >&6
9874 cat >conftest.
$ac_ext <<_ACEOF
9877 cat confdefs.h
>>conftest.
$ac_ext
9878 cat >>conftest.
$ac_ext <<_ACEOF
9879 /* end confdefs.h. */
9880 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9881 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9882 #define malloc_set_state innocuous_malloc_set_state
9884 /* System header to define __stub macros and hopefully few prototypes,
9885 which can conflict with char malloc_set_state (); below.
9886 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9887 <limits.h> exists even on freestanding compilers. */
9890 # include <limits.h>
9892 # include <assert.h>
9895 #undef malloc_set_state
9897 /* Override any GCC internal prototype to avoid an error.
9898 Use char because int might match the return type of a GCC
9899 builtin and then its argument prototype would still apply. */
9903 char malloc_set_state ();
9904 /* The GNU C library defines this for functions which it implements
9905 to always fail with ENOSYS. Some functions are actually named
9906 something starting with __ and the normal name is an alias. */
9907 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9914 return malloc_set_state ();
9919 rm -f conftest.
$ac_objext conftest
$ac_exeext
9920 if { (ac_try
="$ac_link"
9922 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9923 *) ac_try_echo=$ac_try;;
9925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9926 (eval "$ac_link") 2>conftest.er1
9928 grep -v '^ *+' conftest.er1 >conftest.err
9930 cat conftest.err >&5
9931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9932 (exit $ac_status); } && {
9933 test -z "$ac_c_werror_flag" ||
9934 test ! -s conftest.err
9935 } && test -s conftest$ac_exeext &&
9936 $as_test_x conftest$ac_exeext; then
9937 ac_cv_func_malloc_set_state=yes
9939 echo "$as_me: failed program was:" >&5
9940 sed 's/^/| /' conftest.$ac_ext >&5
9942 ac_cv_func_malloc_set_state=no
9945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9946 conftest$ac_exeext conftest.$ac_ext
9948 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9949 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9950 if test $ac_cv_func_malloc_set_state = yes; then
9956 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9957 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9958 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9959 echo $ECHO_N "(cached) $ECHO_C" >&6
9961 cat >conftest.$ac_ext <<_ACEOF
9964 cat confdefs.h >>conftest.$ac_ext
9965 cat >>conftest.$ac_ext <<_ACEOF
9966 /* end confdefs.h. */
9967 extern void (* __after_morecore_hook)();
9971 __after_morecore_hook = 0
9976 rm -f conftest.$ac_objext conftest$ac_exeext
9977 if { (ac_try="$ac_link"
9979 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9980 *) ac_try_echo
=$ac_try;;
9982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9983 (eval "$ac_link") 2>conftest.er1
9985 grep -v '^ *+' conftest.er1
>conftest.err
9987 cat conftest.err
>&5
9988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9989 (exit $ac_status); } && {
9990 test -z "$ac_c_werror_flag" ||
9991 test ! -s conftest.err
9992 } && test -s conftest
$ac_exeext &&
9993 $as_test_x conftest
$ac_exeext; then
9994 emacs_cv_var___after_morecore_hook
=yes
9996 echo "$as_me: failed program was:" >&5
9997 sed 's/^/| /' conftest.
$ac_ext >&5
9999 emacs_cv_var___after_morecore_hook
=no
10002 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10003 conftest
$ac_exeext conftest.
$ac_ext
10005 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
10006 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
10007 if test $emacs_cv_var___after_morecore_hook = no
; then
10010 if test "${system_malloc}" = "yes"; then
10012 GNU_MALLOC_reason
="
10013 (The GNU allocators don't work with this system configuration.)"
10015 if test "$doug_lea_malloc" = "yes" ; then
10016 if test "$GNU_MALLOC" = yes ; then
10017 GNU_MALLOC_reason
="
10018 (Using Doug Lea's new malloc from the GNU C Library.)"
10021 cat >>confdefs.h
<<\_ACEOF
10022 #define DOUG_LEA_MALLOC 1
10027 if test x
"${REL_ALLOC}" = x
; then
10028 REL_ALLOC
=${GNU_MALLOC}
10034 for ac_header
in stdlib.h unistd.h
10036 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10037 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10038 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10039 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10040 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10041 echo $ECHO_N "(cached) $ECHO_C" >&6
10043 ac_res
=`eval echo '${'$as_ac_Header'}'`
10044 { echo "$as_me:$LINENO: result: $ac_res" >&5
10045 echo "${ECHO_T}$ac_res" >&6; }
10047 # Is the header compilable?
10048 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10049 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10050 cat >conftest.
$ac_ext <<_ACEOF
10053 cat confdefs.h
>>conftest.
$ac_ext
10054 cat >>conftest.
$ac_ext <<_ACEOF
10055 /* end confdefs.h. */
10056 $ac_includes_default
10057 #include <$ac_header>
10059 rm -f conftest.
$ac_objext
10060 if { (ac_try
="$ac_compile"
10061 case "(($ac_try" in
10062 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10063 *) ac_try_echo=$ac_try;;
10065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10066 (eval "$ac_compile") 2>conftest.er1
10068 grep -v '^ *+' conftest.er1 >conftest.err
10070 cat conftest.err >&5
10071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072 (exit $ac_status); } && {
10073 test -z "$ac_c_werror_flag" ||
10074 test ! -s conftest.err
10075 } && test -s conftest.$ac_objext; then
10076 ac_header_compiler=yes
10078 echo "$as_me: failed program was:" >&5
10079 sed 's/^/| /' conftest.$ac_ext >&5
10081 ac_header_compiler=no
10084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10085 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10086 echo "${ECHO_T}$ac_header_compiler" >&6; }
10088 # Is the header present?
10089 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10090 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10091 cat >conftest.$ac_ext <<_ACEOF
10094 cat confdefs.h >>conftest.$ac_ext
10095 cat >>conftest.$ac_ext <<_ACEOF
10096 /* end confdefs.h. */
10097 #include <$ac_header>
10099 if { (ac_try="$ac_cpp conftest.$ac_ext"
10100 case "(($ac_try" in
10101 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10102 *) ac_try_echo
=$ac_try;;
10104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10105 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10107 grep -v '^ *+' conftest.er1
>conftest.err
10109 cat conftest.err
>&5
10110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111 (exit $ac_status); } >/dev
/null
&& {
10112 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10113 test ! -s conftest.err
10115 ac_header_preproc
=yes
10117 echo "$as_me: failed program was:" >&5
10118 sed 's/^/| /' conftest.
$ac_ext >&5
10120 ac_header_preproc
=no
10123 rm -f conftest.err conftest.
$ac_ext
10124 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10125 echo "${ECHO_T}$ac_header_preproc" >&6; }
10127 # So? What about this header?
10128 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10130 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10131 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10132 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10133 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10134 ac_header_preproc
=yes
10137 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10138 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10139 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10140 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10141 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10142 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10143 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10144 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10145 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10146 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10147 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10148 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10152 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10153 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10154 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10155 echo $ECHO_N "(cached) $ECHO_C" >&6
10157 eval "$as_ac_Header=\$ac_header_preproc"
10159 ac_res
=`eval echo '${'$as_ac_Header'}'`
10160 { echo "$as_me:$LINENO: result: $ac_res" >&5
10161 echo "${ECHO_T}$ac_res" >&6; }
10164 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10165 cat >>confdefs.h
<<_ACEOF
10166 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10174 for ac_func
in getpagesize
10176 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10177 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10178 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10179 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10180 echo $ECHO_N "(cached) $ECHO_C" >&6
10182 cat >conftest.
$ac_ext <<_ACEOF
10185 cat confdefs.h
>>conftest.
$ac_ext
10186 cat >>conftest.
$ac_ext <<_ACEOF
10187 /* end confdefs.h. */
10188 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10189 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10190 #define $ac_func innocuous_$ac_func
10192 /* System header to define __stub macros and hopefully few prototypes,
10193 which can conflict with char $ac_func (); below.
10194 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10195 <limits.h> exists even on freestanding compilers. */
10198 # include <limits.h>
10200 # include <assert.h>
10205 /* Override any GCC internal prototype to avoid an error.
10206 Use char because int might match the return type of a GCC
10207 builtin and then its argument prototype would still apply. */
10212 /* The GNU C library defines this for functions which it implements
10213 to always fail with ENOSYS. Some functions are actually named
10214 something starting with __ and the normal name is an alias. */
10215 #if defined __stub_$ac_func || defined __stub___$ac_func
10222 return $ac_func ();
10227 rm -f conftest.
$ac_objext conftest
$ac_exeext
10228 if { (ac_try
="$ac_link"
10229 case "(($ac_try" in
10230 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10231 *) ac_try_echo=$ac_try;;
10233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10234 (eval "$ac_link") 2>conftest.er1
10236 grep -v '^ *+' conftest.er1 >conftest.err
10238 cat conftest.err >&5
10239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240 (exit $ac_status); } && {
10241 test -z "$ac_c_werror_flag" ||
10242 test ! -s conftest.err
10243 } && test -s conftest$ac_exeext &&
10244 $as_test_x conftest$ac_exeext; then
10245 eval "$as_ac_var=yes"
10247 echo "$as_me: failed program was:" >&5
10248 sed 's/^/| /' conftest.$ac_ext >&5
10250 eval "$as_ac_var=no"
10253 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10254 conftest$ac_exeext conftest.$ac_ext
10256 ac_res=`eval echo '${'$as_ac_var'}'`
10257 { echo "$as_me:$LINENO: result: $ac_res" >&5
10258 echo "${ECHO_T}$ac_res" >&6; }
10259 if test `eval echo '${'$as_ac_var'}'` = yes; then
10260 cat >>confdefs.h <<_ACEOF
10261 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10267 { echo "$as_me:$LINENO: checking for working mmap" >&5
10268 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10269 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10270 echo $ECHO_N "(cached) $ECHO_C" >&6
10272 if test "$cross_compiling" = yes; then
10273 ac_cv_func_mmap_fixed_mapped=no
10275 cat >conftest.$ac_ext <<_ACEOF
10278 cat confdefs.h >>conftest.$ac_ext
10279 cat >>conftest.$ac_ext <<_ACEOF
10280 /* end confdefs.h. */
10281 $ac_includes_default
10282 /* malloc might have been renamed as rpl_malloc. */
10285 /* Thanks to Mike Haertel and Jim Avera for this test.
10286 Here is a matrix of mmap possibilities:
10287 mmap private not fixed
10288 mmap private fixed at somewhere currently unmapped
10289 mmap private fixed at somewhere already mapped
10290 mmap shared not fixed
10291 mmap shared fixed at somewhere currently unmapped
10292 mmap shared fixed at somewhere already mapped
10293 For private mappings, we should verify that changes cannot be read()
10294 back from the file, nor mmap's back from the file at a different
10295 address. (There have been systems where private was not correctly
10296 implemented like the infamous i386 svr4.0, and systems where the
10297 VM page cache was not coherent with the file system buffer cache
10298 like early versions of FreeBSD and possibly contemporary NetBSD.)
10299 For shared mappings, we should conversely verify that changes get
10300 propagated back to all the places they're supposed to be.
10302 Grep wants private fixed already mapped.
10303 The main things grep needs to know about mmap are:
10304 * does it exist and is it safe to write into the mmap'd area
10305 * how to use it (BSD variants) */
10308 #include <sys/mman.h>
10310 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10314 /* This mess was copied from the GNU getpagesize.h. */
10315 #ifndef HAVE_GETPAGESIZE
10316 /* Assume that all systems that can run configure have sys/param.h. */
10317 # ifndef HAVE_SYS_PARAM_H
10318 # define HAVE_SYS_PARAM_H 1
10321 # ifdef _SC_PAGESIZE
10322 # define getpagesize() sysconf(_SC_PAGESIZE)
10323 # else /* no _SC_PAGESIZE */
10324 # ifdef HAVE_SYS_PARAM_H
10325 # include <sys/param.h>
10326 # ifdef EXEC_PAGESIZE
10327 # define getpagesize() EXEC_PAGESIZE
10328 # else /* no EXEC_PAGESIZE */
10330 # define getpagesize() NBPG * CLSIZE
10333 # endif /* no CLSIZE */
10334 # else /* no NBPG */
10336 # define getpagesize() NBPC
10337 # else /* no NBPC */
10339 # define getpagesize() PAGESIZE
10340 # endif /* PAGESIZE */
10341 # endif /* no NBPC */
10342 # endif /* no NBPG */
10343 # endif /* no EXEC_PAGESIZE */
10344 # else /* no HAVE_SYS_PARAM_H */
10345 # define getpagesize() 8192 /* punt totally */
10346 # endif /* no HAVE_SYS_PARAM_H */
10347 # endif /* no _SC_PAGESIZE */
10349 #endif /* no HAVE_GETPAGESIZE */
10354 char *data, *data2, *data3;
10358 pagesize = getpagesize ();
10360 /* First, make a file with some known garbage in it. */
10361 data = (char *) malloc (pagesize);
10364 for (i = 0; i < pagesize; ++i)
10365 *(data + i) = rand ();
10367 fd = creat ("conftest.mmap", 0600);
10370 if (write (fd, data, pagesize) != pagesize)
10374 /* Next, try to mmap the file at a fixed address which already has
10375 something else allocated at it. If we can, also make sure that
10376 we see the same garbage. */
10377 fd = open ("conftest.mmap", O_RDWR);
10380 data2 = (char *) malloc (2 * pagesize);
10383 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10384 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10385 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10387 for (i = 0; i < pagesize; ++i)
10388 if (*(data + i) != *(data2 + i))
10391 /* Finally, make sure that changes to the mapped area do not
10392 percolate back to the file as seen by read(). (This is a bug on
10393 some variants of i386 svr4.0.) */
10394 for (i = 0; i < pagesize; ++i)
10395 *(data2 + i) = *(data2 + i) + 1;
10396 data3 = (char *) malloc (pagesize);
10399 if (read (fd, data3, pagesize) != pagesize)
10401 for (i = 0; i < pagesize; ++i)
10402 if (*(data + i) != *(data3 + i))
10408 rm -f conftest$ac_exeext
10409 if { (ac_try="$ac_link"
10410 case "(($ac_try" in
10411 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10412 *) ac_try_echo
=$ac_try;;
10414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10415 (eval "$ac_link") 2>&5
10417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10418 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10419 { (case "(($ac_try" in
10420 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10421 *) ac_try_echo=$ac_try;;
10423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10424 (eval "$ac_try") 2>&5
10426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10427 (exit $ac_status); }; }; then
10428 ac_cv_func_mmap_fixed_mapped=yes
10430 echo "$as_me: program exited with status $ac_status" >&5
10431 echo "$as_me: failed program was:" >&5
10432 sed 's/^/| /' conftest.$ac_ext >&5
10434 ( exit $ac_status )
10435 ac_cv_func_mmap_fixed_mapped=no
10437 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10442 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10443 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10444 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10446 cat >>confdefs.h <<\_ACEOF
10447 #define HAVE_MMAP 1
10451 rm -f conftest.mmap
10453 if test $use_mmap_for_buffers = yes; then
10457 LIBS="$libsrc_libs $LIBS"
10460 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10461 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10462 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10463 echo $ECHO_N "(cached) $ECHO_C" >&6
10465 ac_check_lib_save_LIBS=$LIBS
10466 LIBS="-ldnet $LIBS"
10467 cat >conftest.$ac_ext <<_ACEOF
10470 cat confdefs.h >>conftest.$ac_ext
10471 cat >>conftest.$ac_ext <<_ACEOF
10472 /* end confdefs.h. */
10474 /* Override any GCC internal prototype to avoid an error.
10475 Use char because int might match the return type of a GCC
10476 builtin and then its argument prototype would still apply. */
10484 return dnet_ntoa ();
10489 rm -f conftest.$ac_objext conftest$ac_exeext
10490 if { (ac_try="$ac_link"
10491 case "(($ac_try" in
10492 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10493 *) ac_try_echo
=$ac_try;;
10495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10496 (eval "$ac_link") 2>conftest.er1
10498 grep -v '^ *+' conftest.er1
>conftest.err
10500 cat conftest.err
>&5
10501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10502 (exit $ac_status); } && {
10503 test -z "$ac_c_werror_flag" ||
10504 test ! -s conftest.err
10505 } && test -s conftest
$ac_exeext &&
10506 $as_test_x conftest
$ac_exeext; then
10507 ac_cv_lib_dnet_dnet_ntoa
=yes
10509 echo "$as_me: failed program was:" >&5
10510 sed 's/^/| /' conftest.
$ac_ext >&5
10512 ac_cv_lib_dnet_dnet_ntoa
=no
10515 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10516 conftest
$ac_exeext conftest.
$ac_ext
10517 LIBS
=$ac_check_lib_save_LIBS
10519 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10520 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10521 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10522 cat >>confdefs.h
<<_ACEOF
10523 #define HAVE_LIBDNET 1
10526 LIBS
="-ldnet $LIBS"
10531 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10532 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10533 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10534 echo $ECHO_N "(cached) $ECHO_C" >&6
10536 ac_check_lib_save_LIBS
=$LIBS
10537 LIBS
="-lXbsd $LIBS"
10538 cat >conftest.
$ac_ext <<_ACEOF
10541 cat confdefs.h
>>conftest.
$ac_ext
10542 cat >>conftest.
$ac_ext <<_ACEOF
10543 /* end confdefs.h. */
10554 rm -f conftest.
$ac_objext conftest
$ac_exeext
10555 if { (ac_try
="$ac_link"
10556 case "(($ac_try" in
10557 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10558 *) ac_try_echo=$ac_try;;
10560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10561 (eval "$ac_link") 2>conftest.er1
10563 grep -v '^ *+' conftest.er1 >conftest.err
10565 cat conftest.err >&5
10566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567 (exit $ac_status); } && {
10568 test -z "$ac_c_werror_flag" ||
10569 test ! -s conftest.err
10570 } && test -s conftest$ac_exeext &&
10571 $as_test_x conftest$ac_exeext; then
10572 ac_cv_lib_Xbsd_main=yes
10574 echo "$as_me: failed program was:" >&5
10575 sed 's/^/| /' conftest.$ac_ext >&5
10577 ac_cv_lib_Xbsd_main=no
10580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10581 conftest$ac_exeext conftest.$ac_ext
10582 LIBS=$ac_check_lib_save_LIBS
10584 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10585 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10586 if test $ac_cv_lib_Xbsd_main = yes; then
10587 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10592 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10593 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10594 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10595 echo $ECHO_N "(cached) $ECHO_C" >&6
10597 ac_check_lib_save_LIBS=$LIBS
10598 LIBS="-lpthreads $LIBS"
10599 cat >conftest.$ac_ext <<_ACEOF
10602 cat confdefs.h >>conftest.$ac_ext
10603 cat >>conftest.$ac_ext <<_ACEOF
10604 /* end confdefs.h. */
10606 /* Override any GCC internal prototype to avoid an error.
10607 Use char because int might match the return type of a GCC
10608 builtin and then its argument prototype would still apply. */
10616 return cma_open ();
10621 rm -f conftest.$ac_objext conftest$ac_exeext
10622 if { (ac_try="$ac_link"
10623 case "(($ac_try" in
10624 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10625 *) ac_try_echo
=$ac_try;;
10627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10628 (eval "$ac_link") 2>conftest.er1
10630 grep -v '^ *+' conftest.er1
>conftest.err
10632 cat conftest.err
>&5
10633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10634 (exit $ac_status); } && {
10635 test -z "$ac_c_werror_flag" ||
10636 test ! -s conftest.err
10637 } && test -s conftest
$ac_exeext &&
10638 $as_test_x conftest
$ac_exeext; then
10639 ac_cv_lib_pthreads_cma_open
=yes
10641 echo "$as_me: failed program was:" >&5
10642 sed 's/^/| /' conftest.
$ac_ext >&5
10644 ac_cv_lib_pthreads_cma_open
=no
10647 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10648 conftest
$ac_exeext conftest.
$ac_ext
10649 LIBS
=$ac_check_lib_save_LIBS
10651 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10652 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10653 if test $ac_cv_lib_pthreads_cma_open = yes; then
10654 cat >>confdefs.h
<<_ACEOF
10655 #define HAVE_LIBPTHREADS 1
10658 LIBS
="-lpthreads $LIBS"
10663 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10664 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10665 if test -d /usr
/X386
/include
; then
10667 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10671 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10672 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10677 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10678 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10679 if test "${gdb_cv_bigtoc+set}" = set; then
10680 echo $ECHO_N "(cached) $ECHO_C" >&6
10684 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10685 *) gdb_cv_bigtoc
=-bbigtoc ;;
10688 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10689 cat >conftest.
$ac_ext <<_ACEOF
10692 cat confdefs.h
>>conftest.
$ac_ext
10693 cat >>conftest.
$ac_ext <<_ACEOF
10694 /* end confdefs.h. */
10704 rm -f conftest.
$ac_objext conftest
$ac_exeext
10705 if { (ac_try
="$ac_link"
10706 case "(($ac_try" in
10707 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10708 *) ac_try_echo=$ac_try;;
10710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10711 (eval "$ac_link") 2>conftest.er1
10713 grep -v '^ *+' conftest.er1 >conftest.err
10715 cat conftest.err >&5
10716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717 (exit $ac_status); } && {
10718 test -z "$ac_c_werror_flag" ||
10719 test ! -s conftest.err
10720 } && test -s conftest$ac_exeext &&
10721 $as_test_x conftest$ac_exeext; then
10724 echo "$as_me: failed program was:" >&5
10725 sed 's/^/| /' conftest.$ac_ext >&5
10730 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10731 conftest$ac_exeext conftest.$ac_ext
10734 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10735 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10739 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10740 # used for the tests that follow. We set them back to REAL_CFLAGS and
10741 # REAL_CPPFLAGS later on.
10743 REAL_CPPFLAGS="$CPPFLAGS"
10745 if test "${HAVE_X11}" = "yes"; then
10746 DEFS="$C_SWITCH_X_SITE $DEFS"
10747 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10749 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10750 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10752 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10753 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10754 # but it's more convenient here to set LD_RUN_PATH
10755 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10756 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10757 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10761 if test "${opsys}" = "gnu-linux"; then
10762 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10763 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10764 cat >conftest.$ac_ext <<_ACEOF
10767 cat confdefs.h >>conftest.$ac_ext
10768 cat >>conftest.$ac_ext <<_ACEOF
10769 /* end confdefs.h. */
10774 XOpenDisplay ("foo");
10779 rm -f conftest.$ac_objext conftest$ac_exeext
10780 if { (ac_try="$ac_link"
10781 case "(($ac_try" in
10782 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10783 *) ac_try_echo
=$ac_try;;
10785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10786 (eval "$ac_link") 2>conftest.er1
10788 grep -v '^ *+' conftest.er1
>conftest.err
10790 cat conftest.err
>&5
10791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792 (exit $ac_status); } && {
10793 test -z "$ac_c_werror_flag" ||
10794 test ! -s conftest.err
10795 } && test -s conftest
$ac_exeext &&
10796 $as_test_x conftest
$ac_exeext; then
10797 xlinux_first_failure
=no
10799 echo "$as_me: failed program was:" >&5
10800 sed 's/^/| /' conftest.
$ac_ext >&5
10802 xlinux_first_failure
=yes
10805 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10806 conftest
$ac_exeext conftest.
$ac_ext
10807 if test "${xlinux_first_failure}" = "yes"; then
10808 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10809 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10810 OLD_CPPFLAGS
="$CPPFLAGS"
10812 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10813 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10814 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10815 LIBS
="$LIBS -b i486-linuxaout"
10816 cat >conftest.
$ac_ext <<_ACEOF
10819 cat confdefs.h
>>conftest.
$ac_ext
10820 cat >>conftest.
$ac_ext <<_ACEOF
10821 /* end confdefs.h. */
10826 XOpenDisplay ("foo");
10831 rm -f conftest.
$ac_objext conftest
$ac_exeext
10832 if { (ac_try
="$ac_link"
10833 case "(($ac_try" in
10834 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10835 *) ac_try_echo=$ac_try;;
10837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10838 (eval "$ac_link") 2>conftest.er1
10840 grep -v '^ *+' conftest.er1 >conftest.err
10842 cat conftest.err >&5
10843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10844 (exit $ac_status); } && {
10845 test -z "$ac_c_werror_flag" ||
10846 test ! -s conftest.err
10847 } && test -s conftest$ac_exeext &&
10848 $as_test_x conftest$ac_exeext; then
10849 xlinux_second_failure=no
10851 echo "$as_me: failed program was:" >&5
10852 sed 's/^/| /' conftest.$ac_ext >&5
10854 xlinux_second_failure=yes
10857 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10858 conftest$ac_exeext conftest.$ac_ext
10859 if test "${xlinux_second_failure}" = "yes"; then
10860 # If we get the same failure with -b, there is no use adding -b.
10861 # So take it out. This plays safe.
10862 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10863 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10864 CPPFLAGS="$OLD_CPPFLAGS"
10866 { echo "$as_me:$LINENO: result: no" >&5
10867 echo "${ECHO_T}no" >&6; }
10869 { echo "$as_me:$LINENO: result: yes" >&5
10870 echo "${ECHO_T}yes" >&6; }
10873 { echo "$as_me:$LINENO: result: no" >&5
10874 echo "${ECHO_T}no" >&6; }
10878 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10879 # header files included from there.
10880 { echo "$as_me:$LINENO: checking for Xkb" >&5
10881 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10882 cat >conftest.$ac_ext <<_ACEOF
10885 cat confdefs.h >>conftest.$ac_ext
10886 cat >>conftest.$ac_ext <<_ACEOF
10887 /* end confdefs.h. */
10888 #include <X11/Xlib.h>
10889 #include <X11/XKBlib.h>
10893 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10898 rm -f conftest.$ac_objext conftest$ac_exeext
10899 if { (ac_try="$ac_link"
10900 case "(($ac_try" in
10901 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10902 *) ac_try_echo
=$ac_try;;
10904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10905 (eval "$ac_link") 2>conftest.er1
10907 grep -v '^ *+' conftest.er1
>conftest.err
10909 cat conftest.err
>&5
10910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10911 (exit $ac_status); } && {
10912 test -z "$ac_c_werror_flag" ||
10913 test ! -s conftest.err
10914 } && test -s conftest
$ac_exeext &&
10915 $as_test_x conftest
$ac_exeext; then
10918 echo "$as_me: failed program was:" >&5
10919 sed 's/^/| /' conftest.
$ac_ext >&5
10924 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10925 conftest
$ac_exeext conftest.
$ac_ext
10926 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10927 echo "${ECHO_T}$emacs_xkb" >&6; }
10928 if test $emacs_xkb = yes; then
10930 cat >>confdefs.h
<<\_ACEOF
10931 #define HAVE_XKBGETKEYBOARD 1
10940 for ac_func
in XrmSetDatabase XScreenResourceString \
10941 XScreenNumberOfScreen XSetWMProtocols
10943 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10944 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10945 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10946 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10947 echo $ECHO_N "(cached) $ECHO_C" >&6
10949 cat >conftest.
$ac_ext <<_ACEOF
10952 cat confdefs.h
>>conftest.
$ac_ext
10953 cat >>conftest.
$ac_ext <<_ACEOF
10954 /* end confdefs.h. */
10955 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10956 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10957 #define $ac_func innocuous_$ac_func
10959 /* System header to define __stub macros and hopefully few prototypes,
10960 which can conflict with char $ac_func (); below.
10961 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10962 <limits.h> exists even on freestanding compilers. */
10965 # include <limits.h>
10967 # include <assert.h>
10972 /* Override any GCC internal prototype to avoid an error.
10973 Use char because int might match the return type of a GCC
10974 builtin and then its argument prototype would still apply. */
10979 /* The GNU C library defines this for functions which it implements
10980 to always fail with ENOSYS. Some functions are actually named
10981 something starting with __ and the normal name is an alias. */
10982 #if defined __stub_$ac_func || defined __stub___$ac_func
10989 return $ac_func ();
10994 rm -f conftest.
$ac_objext conftest
$ac_exeext
10995 if { (ac_try
="$ac_link"
10996 case "(($ac_try" in
10997 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10998 *) ac_try_echo=$ac_try;;
11000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11001 (eval "$ac_link") 2>conftest.er1
11003 grep -v '^ *+' conftest.er1 >conftest.err
11005 cat conftest.err >&5
11006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007 (exit $ac_status); } && {
11008 test -z "$ac_c_werror_flag" ||
11009 test ! -s conftest.err
11010 } && test -s conftest$ac_exeext &&
11011 $as_test_x conftest$ac_exeext; then
11012 eval "$as_ac_var=yes"
11014 echo "$as_me: failed program was:" >&5
11015 sed 's/^/| /' conftest.$ac_ext >&5
11017 eval "$as_ac_var=no"
11020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11021 conftest$ac_exeext conftest.$ac_ext
11023 ac_res=`eval echo '${'$as_ac_var'}'`
11024 { echo "$as_me:$LINENO: result: $ac_res" >&5
11025 echo "${ECHO_T}$ac_res" >&6; }
11026 if test `eval echo '${'$as_ac_var'}'` = yes; then
11027 cat >>confdefs.h <<_ACEOF
11028 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11036 if test "${window_system}" = "x11"; then
11037 { echo "$as_me:$LINENO: checking X11 version 6" >&5
11038 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
11039 if test "${emacs_cv_x11_version_6+set}" = set; then
11040 echo $ECHO_N "(cached) $ECHO_C" >&6
11042 cat >conftest.$ac_ext <<_ACEOF
11045 cat confdefs.h >>conftest.$ac_ext
11046 cat >>conftest.$ac_ext <<_ACEOF
11047 /* end confdefs.h. */
11048 #include <X11/Xlib.h>
11052 #if XlibSpecificationRelease < 6
11060 rm -f conftest.$ac_objext conftest$ac_exeext
11061 if { (ac_try="$ac_link"
11062 case "(($ac_try" in
11063 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11064 *) ac_try_echo
=$ac_try;;
11066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11067 (eval "$ac_link") 2>conftest.er1
11069 grep -v '^ *+' conftest.er1
>conftest.err
11071 cat conftest.err
>&5
11072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11073 (exit $ac_status); } && {
11074 test -z "$ac_c_werror_flag" ||
11075 test ! -s conftest.err
11076 } && test -s conftest
$ac_exeext &&
11077 $as_test_x conftest
$ac_exeext; then
11078 emacs_cv_x11_version_6
=yes
11080 echo "$as_me: failed program was:" >&5
11081 sed 's/^/| /' conftest.
$ac_ext >&5
11083 emacs_cv_x11_version_6
=no
11086 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11087 conftest
$ac_exeext conftest.
$ac_ext
11090 if test $emacs_cv_x11_version_6 = yes; then
11091 { echo "$as_me:$LINENO: result: 6 or newer" >&5
11092 echo "${ECHO_T}6 or newer" >&6; }
11094 cat >>confdefs.h
<<\_ACEOF
11095 #define HAVE_X11R6 1
11099 { echo "$as_me:$LINENO: result: before 6" >&5
11100 echo "${ECHO_T}before 6" >&6; }
11105 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11107 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_CARBON}" = "yes"; then
11108 if test "${with_rsvg}" != "no"; then
11109 if test "X${with_pkg_config_prog}" != X
; then
11110 PKG_CONFIG
="${with_pkg_config_prog}"
11113 RSVG_REQUIRED
=2.0.0
11114 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
11119 if test -z "$PKG_CONFIG"; then
11120 # Extract the first word of "pkg-config", so it can be a program name with args.
11121 set dummy pkg-config
; ac_word
=$2
11122 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11124 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11125 echo $ECHO_N "(cached) $ECHO_C" >&6
11127 case $PKG_CONFIG in
11129 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11132 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11133 for as_dir
in $PATH
11136 test -z "$as_dir" && as_dir
=.
11137 for ac_exec_ext
in '' $ac_executable_extensions; do
11138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11139 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11147 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11151 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11152 if test -n "$PKG_CONFIG"; then
11153 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11154 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11156 { echo "$as_me:$LINENO: result: no" >&5
11157 echo "${ECHO_T}no" >&6; }
11163 if test "$PKG_CONFIG" = "no" ; then
11166 PKG_CONFIG_MIN_VERSION
=0.9.0
11167 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11168 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
11169 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
11171 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11172 { echo "$as_me:$LINENO: result: yes" >&5
11173 echo "${ECHO_T}yes" >&6; }
11176 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
11177 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
11178 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11179 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
11180 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
11182 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
11183 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
11184 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11185 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
11186 echo "${ECHO_T}$RSVG_LIBS" >&6; }
11188 { echo "$as_me:$LINENO: result: no" >&5
11189 echo "${ECHO_T}no" >&6; }
11192 ## If we have a custom action on failure, don't print errors, but
11193 ## do set a variable so people can do so.
11194 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11201 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11202 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11206 if test $succeeded = yes; then
11215 if test ".${RSVG_CFLAGS}" != "."; then
11218 cat >>confdefs.h
<<\_ACEOF
11219 #define HAVE_RSVG 1
11222 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
11223 LIBS
="$RSVG_LIBS $LIBS"
11230 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
11233 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "gtk" || \
11234 test "$USE_X_TOOLKIT" = "maybe"; then
11235 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
11236 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
11237 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
11238 { (exit 1); exit 1; }; };
11242 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11244 if test "X${with_pkg_config_prog}" != X
; then
11245 PKG_CONFIG
="${with_pkg_config_prog}"
11250 if test -z "$PKG_CONFIG"; then
11251 # Extract the first word of "pkg-config", so it can be a program name with args.
11252 set dummy pkg-config
; ac_word
=$2
11253 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11255 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11256 echo $ECHO_N "(cached) $ECHO_C" >&6
11258 case $PKG_CONFIG in
11260 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11263 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11264 for as_dir
in $PATH
11267 test -z "$as_dir" && as_dir
=.
11268 for ac_exec_ext
in '' $ac_executable_extensions; do
11269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11270 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11278 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11282 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11283 if test -n "$PKG_CONFIG"; then
11284 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11285 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11287 { echo "$as_me:$LINENO: result: no" >&5
11288 echo "${ECHO_T}no" >&6; }
11294 if test "$PKG_CONFIG" = "no" ; then
11297 PKG_CONFIG_MIN_VERSION
=0.9.0
11298 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11299 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11300 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
11302 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11303 { echo "$as_me:$LINENO: result: yes" >&5
11304 echo "${ECHO_T}yes" >&6; }
11307 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11308 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
11309 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11310 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11311 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11313 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11314 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11315 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11316 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11317 echo "${ECHO_T}$GTK_LIBS" >&6; }
11319 { echo "$as_me:$LINENO: result: no" >&5
11320 echo "${ECHO_T}no" >&6; }
11323 ## If we have a custom action on failure, don't print errors, but
11324 ## do set a variable so people can do so.
11325 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11332 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11333 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11337 if test $succeeded = yes; then
11343 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11344 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11345 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11346 { (exit 1); exit 1; }; }
11351 if test x
"$pkg_check_gtk" = xyes
; then
11355 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
11356 CFLAGS
="$CFLAGS $GTK_CFLAGS"
11357 LIBS
="$GTK_LIBS $LIBS"
11360 for ac_func
in gtk_main
11362 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11363 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11364 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11365 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11366 echo $ECHO_N "(cached) $ECHO_C" >&6
11368 cat >conftest.
$ac_ext <<_ACEOF
11371 cat confdefs.h
>>conftest.
$ac_ext
11372 cat >>conftest.
$ac_ext <<_ACEOF
11373 /* end confdefs.h. */
11374 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11375 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11376 #define $ac_func innocuous_$ac_func
11378 /* System header to define __stub macros and hopefully few prototypes,
11379 which can conflict with char $ac_func (); below.
11380 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11381 <limits.h> exists even on freestanding compilers. */
11384 # include <limits.h>
11386 # include <assert.h>
11391 /* Override any GCC internal prototype to avoid an error.
11392 Use char because int might match the return type of a GCC
11393 builtin and then its argument prototype would still apply. */
11398 /* The GNU C library defines this for functions which it implements
11399 to always fail with ENOSYS. Some functions are actually named
11400 something starting with __ and the normal name is an alias. */
11401 #if defined __stub_$ac_func || defined __stub___$ac_func
11408 return $ac_func ();
11413 rm -f conftest.
$ac_objext conftest
$ac_exeext
11414 if { (ac_try
="$ac_link"
11415 case "(($ac_try" in
11416 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11417 *) ac_try_echo=$ac_try;;
11419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11420 (eval "$ac_link") 2>conftest.er1
11422 grep -v '^ *+' conftest.er1 >conftest.err
11424 cat conftest.err >&5
11425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11426 (exit $ac_status); } && {
11427 test -z "$ac_c_werror_flag" ||
11428 test ! -s conftest.err
11429 } && test -s conftest$ac_exeext &&
11430 $as_test_x conftest$ac_exeext; then
11431 eval "$as_ac_var=yes"
11433 echo "$as_me: failed program was:" >&5
11434 sed 's/^/| /' conftest.$ac_ext >&5
11436 eval "$as_ac_var=no"
11439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11440 conftest$ac_exeext conftest.$ac_ext
11442 ac_res=`eval echo '${'$as_ac_var'}'`
11443 { echo "$as_me:$LINENO: result: $ac_res" >&5
11444 echo "${ECHO_T}$ac_res" >&6; }
11445 if test `eval echo '${'$as_ac_var'}'` = yes; then
11446 cat >>confdefs.h <<_ACEOF
11447 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11453 if test "${GTK_COMPILES}" != "yes"; then
11454 if test "$USE_X_TOOLKIT" != "maybe"; then
11455 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11456 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11457 { (exit 1); exit 1; }; };
11462 cat >>confdefs.h <<\_ACEOF
11472 if test "${HAVE_GTK}" = "yes"; then
11474 if test "$with_toolkit_scroll_bars" != no; then
11475 with_toolkit_scroll_bars=yes
11478 HAVE_GTK_MULTIDISPLAY=no
11480 for ac_func in gdk_display_open
11482 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11483 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11484 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11485 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11486 echo $ECHO_N "(cached) $ECHO_C" >&6
11488 cat >conftest.$ac_ext <<_ACEOF
11491 cat confdefs.h >>conftest.$ac_ext
11492 cat >>conftest.$ac_ext <<_ACEOF
11493 /* end confdefs.h. */
11494 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11495 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11496 #define $ac_func innocuous_$ac_func
11498 /* System header to define __stub macros and hopefully few prototypes,
11499 which can conflict with char $ac_func (); below.
11500 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11501 <limits.h> exists even on freestanding compilers. */
11504 # include <limits.h>
11506 # include <assert.h>
11511 /* Override any GCC internal prototype to avoid an error.
11512 Use char because int might match the return type of a GCC
11513 builtin and then its argument prototype would still apply. */
11518 /* The GNU C library defines this for functions which it implements
11519 to always fail with ENOSYS. Some functions are actually named
11520 something starting with __ and the normal name is an alias. */
11521 #if defined __stub_$ac_func || defined __stub___$ac_func
11528 return $ac_func ();
11533 rm -f conftest.$ac_objext conftest$ac_exeext
11534 if { (ac_try="$ac_link"
11535 case "(($ac_try" in
11536 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11537 *) ac_try_echo
=$ac_try;;
11539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11540 (eval "$ac_link") 2>conftest.er1
11542 grep -v '^ *+' conftest.er1
>conftest.err
11544 cat conftest.err
>&5
11545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546 (exit $ac_status); } && {
11547 test -z "$ac_c_werror_flag" ||
11548 test ! -s conftest.err
11549 } && test -s conftest
$ac_exeext &&
11550 $as_test_x conftest
$ac_exeext; then
11551 eval "$as_ac_var=yes"
11553 echo "$as_me: failed program was:" >&5
11554 sed 's/^/| /' conftest.
$ac_ext >&5
11556 eval "$as_ac_var=no"
11559 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11560 conftest
$ac_exeext conftest.
$ac_ext
11562 ac_res
=`eval echo '${'$as_ac_var'}'`
11563 { echo "$as_me:$LINENO: result: $ac_res" >&5
11564 echo "${ECHO_T}$ac_res" >&6; }
11565 if test `eval echo '${'$as_ac_var'}'` = yes; then
11566 cat >>confdefs.h
<<_ACEOF
11567 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11569 HAVE_GTK_MULTIDISPLAY
=yes
11573 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11575 cat >>confdefs.h
<<\_ACEOF
11576 #define HAVE_GTK_MULTIDISPLAY 1
11581 HAVE_GTK_FILE_SELECTION
=no
11583 for ac_func
in gtk_file_selection_new
11585 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11586 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11587 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11588 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11589 echo $ECHO_N "(cached) $ECHO_C" >&6
11591 cat >conftest.
$ac_ext <<_ACEOF
11594 cat confdefs.h
>>conftest.
$ac_ext
11595 cat >>conftest.
$ac_ext <<_ACEOF
11596 /* end confdefs.h. */
11597 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11598 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11599 #define $ac_func innocuous_$ac_func
11601 /* System header to define __stub macros and hopefully few prototypes,
11602 which can conflict with char $ac_func (); below.
11603 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11604 <limits.h> exists even on freestanding compilers. */
11607 # include <limits.h>
11609 # include <assert.h>
11614 /* Override any GCC internal prototype to avoid an error.
11615 Use char because int might match the return type of a GCC
11616 builtin and then its argument prototype would still apply. */
11621 /* The GNU C library defines this for functions which it implements
11622 to always fail with ENOSYS. Some functions are actually named
11623 something starting with __ and the normal name is an alias. */
11624 #if defined __stub_$ac_func || defined __stub___$ac_func
11631 return $ac_func ();
11636 rm -f conftest.
$ac_objext conftest
$ac_exeext
11637 if { (ac_try
="$ac_link"
11638 case "(($ac_try" in
11639 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11640 *) ac_try_echo=$ac_try;;
11642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11643 (eval "$ac_link") 2>conftest.er1
11645 grep -v '^ *+' conftest.er1 >conftest.err
11647 cat conftest.err >&5
11648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649 (exit $ac_status); } && {
11650 test -z "$ac_c_werror_flag" ||
11651 test ! -s conftest.err
11652 } && test -s conftest$ac_exeext &&
11653 $as_test_x conftest$ac_exeext; then
11654 eval "$as_ac_var=yes"
11656 echo "$as_me: failed program was:" >&5
11657 sed 's/^/| /' conftest.$ac_ext >&5
11659 eval "$as_ac_var=no"
11662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11663 conftest$ac_exeext conftest.$ac_ext
11665 ac_res=`eval echo '${'$as_ac_var'}'`
11666 { echo "$as_me:$LINENO: result: $ac_res" >&5
11667 echo "${ECHO_T}$ac_res" >&6; }
11668 if test `eval echo '${'$as_ac_var'}'` = yes; then
11669 cat >>confdefs.h <<_ACEOF
11670 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11672 HAVE_GTK_FILE_SELECTION=yes
11677 HAVE_GTK_FILE_CHOOSER=no
11679 for ac_func in gtk_file_chooser_dialog_new
11681 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11682 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11683 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11684 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11685 echo $ECHO_N "(cached) $ECHO_C" >&6
11687 cat >conftest.$ac_ext <<_ACEOF
11690 cat confdefs.h >>conftest.$ac_ext
11691 cat >>conftest.$ac_ext <<_ACEOF
11692 /* end confdefs.h. */
11693 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11694 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11695 #define $ac_func innocuous_$ac_func
11697 /* System header to define __stub macros and hopefully few prototypes,
11698 which can conflict with char $ac_func (); below.
11699 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11700 <limits.h> exists even on freestanding compilers. */
11703 # include <limits.h>
11705 # include <assert.h>
11710 /* Override any GCC internal prototype to avoid an error.
11711 Use char because int might match the return type of a GCC
11712 builtin and then its argument prototype would still apply. */
11717 /* The GNU C library defines this for functions which it implements
11718 to always fail with ENOSYS. Some functions are actually named
11719 something starting with __ and the normal name is an alias. */
11720 #if defined __stub_$ac_func || defined __stub___$ac_func
11727 return $ac_func ();
11732 rm -f conftest.$ac_objext conftest$ac_exeext
11733 if { (ac_try="$ac_link"
11734 case "(($ac_try" in
11735 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11736 *) ac_try_echo
=$ac_try;;
11738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11739 (eval "$ac_link") 2>conftest.er1
11741 grep -v '^ *+' conftest.er1
>conftest.err
11743 cat conftest.err
>&5
11744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11745 (exit $ac_status); } && {
11746 test -z "$ac_c_werror_flag" ||
11747 test ! -s conftest.err
11748 } && test -s conftest
$ac_exeext &&
11749 $as_test_x conftest
$ac_exeext; then
11750 eval "$as_ac_var=yes"
11752 echo "$as_me: failed program was:" >&5
11753 sed 's/^/| /' conftest.
$ac_ext >&5
11755 eval "$as_ac_var=no"
11758 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11759 conftest
$ac_exeext conftest.
$ac_ext
11761 ac_res
=`eval echo '${'$as_ac_var'}'`
11762 { echo "$as_me:$LINENO: result: $ac_res" >&5
11763 echo "${ECHO_T}$ac_res" >&6; }
11764 if test `eval echo '${'$as_ac_var'}'` = yes; then
11765 cat >>confdefs.h
<<_ACEOF
11766 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11768 HAVE_GTK_FILE_CHOOSER
=yes
11773 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11774 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11776 cat >>confdefs.h
<<\_ACEOF
11777 #define HAVE_GTK_FILE_BOTH 1
11782 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11783 HAVE_GTK_AND_PTHREAD
=no
11785 for ac_header
in pthread.h
11787 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11788 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11789 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11790 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11791 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11792 echo $ECHO_N "(cached) $ECHO_C" >&6
11794 ac_res
=`eval echo '${'$as_ac_Header'}'`
11795 { echo "$as_me:$LINENO: result: $ac_res" >&5
11796 echo "${ECHO_T}$ac_res" >&6; }
11798 # Is the header compilable?
11799 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11800 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11801 cat >conftest.
$ac_ext <<_ACEOF
11804 cat confdefs.h
>>conftest.
$ac_ext
11805 cat >>conftest.
$ac_ext <<_ACEOF
11806 /* end confdefs.h. */
11807 $ac_includes_default
11808 #include <$ac_header>
11810 rm -f conftest.
$ac_objext
11811 if { (ac_try
="$ac_compile"
11812 case "(($ac_try" in
11813 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11814 *) ac_try_echo=$ac_try;;
11816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11817 (eval "$ac_compile") 2>conftest.er1
11819 grep -v '^ *+' conftest.er1 >conftest.err
11821 cat conftest.err >&5
11822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11823 (exit $ac_status); } && {
11824 test -z "$ac_c_werror_flag" ||
11825 test ! -s conftest.err
11826 } && test -s conftest.$ac_objext; then
11827 ac_header_compiler=yes
11829 echo "$as_me: failed program was:" >&5
11830 sed 's/^/| /' conftest.$ac_ext >&5
11832 ac_header_compiler=no
11835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11836 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11837 echo "${ECHO_T}$ac_header_compiler" >&6; }
11839 # Is the header present?
11840 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11841 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11842 cat >conftest.$ac_ext <<_ACEOF
11845 cat confdefs.h >>conftest.$ac_ext
11846 cat >>conftest.$ac_ext <<_ACEOF
11847 /* end confdefs.h. */
11848 #include <$ac_header>
11850 if { (ac_try="$ac_cpp conftest.$ac_ext"
11851 case "(($ac_try" in
11852 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11853 *) ac_try_echo
=$ac_try;;
11855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11856 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11858 grep -v '^ *+' conftest.er1
>conftest.err
11860 cat conftest.err
>&5
11861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11862 (exit $ac_status); } >/dev
/null
&& {
11863 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11864 test ! -s conftest.err
11866 ac_header_preproc
=yes
11868 echo "$as_me: failed program was:" >&5
11869 sed 's/^/| /' conftest.
$ac_ext >&5
11871 ac_header_preproc
=no
11874 rm -f conftest.err conftest.
$ac_ext
11875 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11876 echo "${ECHO_T}$ac_header_preproc" >&6; }
11878 # So? What about this header?
11879 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11881 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11882 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11883 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11884 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11885 ac_header_preproc
=yes
11888 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11889 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11890 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11891 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11892 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11893 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11894 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11895 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11896 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11897 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11898 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11899 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11903 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11904 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11905 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11906 echo $ECHO_N "(cached) $ECHO_C" >&6
11908 eval "$as_ac_Header=\$ac_header_preproc"
11910 ac_res
=`eval echo '${'$as_ac_Header'}'`
11911 { echo "$as_me:$LINENO: result: $ac_res" >&5
11912 echo "${ECHO_T}$ac_res" >&6; }
11915 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11916 cat >>confdefs.h
<<_ACEOF
11917 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11924 if test "$ac_cv_header_pthread_h"; then
11925 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11926 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11927 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11928 echo $ECHO_N "(cached) $ECHO_C" >&6
11930 ac_check_lib_save_LIBS
=$LIBS
11931 LIBS
="-lpthread $LIBS"
11932 cat >conftest.
$ac_ext <<_ACEOF
11935 cat confdefs.h
>>conftest.
$ac_ext
11936 cat >>conftest.
$ac_ext <<_ACEOF
11937 /* end confdefs.h. */
11939 /* Override any GCC internal prototype to avoid an error.
11940 Use char because int might match the return type of a GCC
11941 builtin and then its argument prototype would still apply. */
11945 char pthread_self ();
11949 return pthread_self ();
11954 rm -f conftest.
$ac_objext conftest
$ac_exeext
11955 if { (ac_try
="$ac_link"
11956 case "(($ac_try" in
11957 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11958 *) ac_try_echo=$ac_try;;
11960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11961 (eval "$ac_link") 2>conftest.er1
11963 grep -v '^ *+' conftest.er1 >conftest.err
11965 cat conftest.err >&5
11966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967 (exit $ac_status); } && {
11968 test -z "$ac_c_werror_flag" ||
11969 test ! -s conftest.err
11970 } && test -s conftest$ac_exeext &&
11971 $as_test_x conftest$ac_exeext; then
11972 ac_cv_lib_pthread_pthread_self=yes
11974 echo "$as_me: failed program was:" >&5
11975 sed 's/^/| /' conftest.$ac_ext >&5
11977 ac_cv_lib_pthread_pthread_self=no
11980 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11981 conftest$ac_exeext conftest.$ac_ext
11982 LIBS=$ac_check_lib_save_LIBS
11984 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11985 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11986 if test $ac_cv_lib_pthread_pthread_self = yes; then
11987 HAVE_GTK_AND_PTHREAD=yes
11991 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11992 case "${canonical}" in
11994 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
11997 cat >>confdefs.h <<\_ACEOF
11998 #define HAVE_GTK_AND_PTHREAD 1
12006 if test "${with_dbus}" = "yes"; then
12010 if test -z "$PKG_CONFIG"; then
12011 # Extract the first word of "pkg-config", so it can be a program name with args.
12012 set dummy pkg-config; ac_word=$2
12013 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12015 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12016 echo $ECHO_N "(cached) $ECHO_C" >&6
12018 case $PKG_CONFIG in
12020 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12024 for as_dir in $PATH
12027 test -z "$as_dir" && as_dir=.
12028 for ac_exec_ext in '' $ac_executable_extensions; do
12029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12030 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12038 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12042 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12043 if test -n "$PKG_CONFIG"; then
12044 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12045 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12047 { echo "$as_me:$LINENO: result: no" >&5
12048 echo "${ECHO_T}no" >&6; }
12054 if test "$PKG_CONFIG" = "no" ; then
12057 PKG_CONFIG_MIN_VERSION=0.9.0
12058 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12059 { echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
12060 echo $ECHO_N "checking for dbus-1 >= 1.0... $ECHO_C" >&6; }
12062 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
12063 { echo "$as_me:$LINENO: result: yes" >&5
12064 echo "${ECHO_T}yes" >&6; }
12067 { echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
12068 echo $ECHO_N "checking DBUS_CFLAGS... $ECHO_C" >&6; }
12069 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
12070 { echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
12071 echo "${ECHO_T}$DBUS_CFLAGS" >&6; }
12073 { echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
12074 echo $ECHO_N "checking DBUS_LIBS... $ECHO_C" >&6; }
12075 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
12076 { echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
12077 echo "${ECHO_T}$DBUS_LIBS" >&6; }
12079 { echo "$as_me:$LINENO: result: no" >&5
12080 echo "${ECHO_T}no" >&6; }
12083 ## If we have a custom action on failure, don't print errors, but
12084 ## do set a variable so people can do so.
12085 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
12092 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12093 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12097 if test $succeeded = yes; then
12103 if test "$HAVE_DBUS" = yes; then
12105 cat >>confdefs.h <<\_ACEOF
12106 #define HAVE_DBUS 1
12112 ### Link with -lXft if available to work around a bug.
12114 if test "${HAVE_GTK}" = "yes"; then
12115 if test "X${with_pkg_config_prog}" != X; then
12116 PKG_CONFIG="${with_pkg_config_prog}"
12122 if test -z "$PKG_CONFIG"; then
12123 # Extract the first word of "pkg-config", so it can be a program name with args.
12124 set dummy pkg-config; ac_word=$2
12125 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12127 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12128 echo $ECHO_N "(cached) $ECHO_C" >&6
12130 case $PKG_CONFIG in
12132 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12136 for as_dir in $PATH
12139 test -z "$as_dir" && as_dir=.
12140 for ac_exec_ext in '' $ac_executable_extensions; do
12141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12142 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12150 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12154 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12155 if test -n "$PKG_CONFIG"; then
12156 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12157 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12159 { echo "$as_me:$LINENO: result: no" >&5
12160 echo "${ECHO_T}no" >&6; }
12166 if test "$PKG_CONFIG" = "no" ; then
12169 PKG_CONFIG_MIN_VERSION=0.9.0
12170 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12171 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12172 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12174 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12175 { echo "$as_me:$LINENO: result: yes" >&5
12176 echo "${ECHO_T}yes" >&6; }
12179 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12180 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12181 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|
sed -e 's,///*,/,g'`
12182 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12183 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12185 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12186 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12187 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|
sed -e 's,///*,/,g'`
12188 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12189 echo "${ECHO_T}$XFT_LIBS" >&6; }
12191 { echo "$as_me:$LINENO: result: no" >&5
12192 echo "${ECHO_T}no" >&6; }
12195 ## If we have a custom action on failure, don't print errors, but
12196 ## do set a variable so people can do so.
12197 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12204 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12205 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12209 if test $succeeded = yes; then
12215 if test "$HAVE_XFT" != no; then
12216 OLD_CFLAGS="$CPPFLAGS"
12217 OLD_CPPFLAGS="$CFLAGS"
12219 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12220 CFLAGS="$CFLAGS $XFT_CFLAGS"
12221 LIBS="$XFT_LIBS $LIBS"
12222 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12223 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12224 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12225 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12226 echo $ECHO_N "(cached) $ECHO_C" >&6
12228 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12229 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12231 # Is the header compilable?
12232 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12233 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12234 cat >conftest.$ac_ext <<_ACEOF
12237 cat confdefs.h >>conftest.$ac_ext
12238 cat >>conftest.$ac_ext <<_ACEOF
12239 /* end confdefs.h. */
12240 $ac_includes_default
12241 #include <X11/Xft/Xft.h>
12243 rm -f conftest.$ac_objext
12244 if { (ac_try="$ac_compile"
12245 case "(($ac_try" in
12246 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12247 *) ac_try_echo
=$ac_try;;
12249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12250 (eval "$ac_compile") 2>conftest.er1
12252 grep -v '^ *+' conftest.er1
>conftest.err
12254 cat conftest.err
>&5
12255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256 (exit $ac_status); } && {
12257 test -z "$ac_c_werror_flag" ||
12258 test ! -s conftest.err
12259 } && test -s conftest.
$ac_objext; then
12260 ac_header_compiler
=yes
12262 echo "$as_me: failed program was:" >&5
12263 sed 's/^/| /' conftest.
$ac_ext >&5
12265 ac_header_compiler
=no
12268 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12269 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12270 echo "${ECHO_T}$ac_header_compiler" >&6; }
12272 # Is the header present?
12273 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12274 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12275 cat >conftest.
$ac_ext <<_ACEOF
12278 cat confdefs.h
>>conftest.
$ac_ext
12279 cat >>conftest.
$ac_ext <<_ACEOF
12280 /* end confdefs.h. */
12281 #include <X11/Xft/Xft.h>
12283 if { (ac_try
="$ac_cpp conftest.$ac_ext"
12284 case "(($ac_try" in
12285 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12286 *) ac_try_echo=$ac_try;;
12288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12289 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12291 grep -v '^ *+' conftest.er1 >conftest.err
12293 cat conftest.err >&5
12294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295 (exit $ac_status); } >/dev/null && {
12296 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12297 test ! -s conftest.err
12299 ac_header_preproc=yes
12301 echo "$as_me: failed program was:" >&5
12302 sed 's/^/| /' conftest.$ac_ext >&5
12304 ac_header_preproc=no
12307 rm -f conftest.err conftest.$ac_ext
12308 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12309 echo "${ECHO_T}$ac_header_preproc" >&6; }
12311 # So? What about this header?
12312 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12314 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12315 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12316 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12317 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12318 ac_header_preproc=yes
12321 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12322 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12323 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12324 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12325 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12326 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12327 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12328 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12329 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12330 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12331 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12332 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12336 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12337 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12338 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12339 echo $ECHO_N "(cached) $ECHO_C" >&6
12341 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
12343 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12344 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12347 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12348 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12349 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12350 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12351 echo $ECHO_N "(cached) $ECHO_C" >&6
12353 ac_check_lib_save_LIBS=$LIBS
12354 LIBS="-lXft $XFT_LIBS $LIBS"
12355 cat >conftest.$ac_ext <<_ACEOF
12358 cat confdefs.h >>conftest.$ac_ext
12359 cat >>conftest.$ac_ext <<_ACEOF
12360 /* end confdefs.h. */
12362 /* Override any GCC internal prototype to avoid an error.
12363 Use char because int might match the return type of a GCC
12364 builtin and then its argument prototype would still apply. */
12368 char XftFontOpen ();
12372 return XftFontOpen ();
12377 rm -f conftest.$ac_objext conftest$ac_exeext
12378 if { (ac_try="$ac_link"
12379 case "(($ac_try" in
12380 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12381 *) ac_try_echo
=$ac_try;;
12383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12384 (eval "$ac_link") 2>conftest.er1
12386 grep -v '^ *+' conftest.er1
>conftest.err
12388 cat conftest.err
>&5
12389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12390 (exit $ac_status); } && {
12391 test -z "$ac_c_werror_flag" ||
12392 test ! -s conftest.err
12393 } && test -s conftest
$ac_exeext &&
12394 $as_test_x conftest
$ac_exeext; then
12395 ac_cv_lib_Xft_XftFontOpen
=yes
12397 echo "$as_me: failed program was:" >&5
12398 sed 's/^/| /' conftest.
$ac_ext >&5
12400 ac_cv_lib_Xft_XftFontOpen
=no
12403 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12404 conftest
$ac_exeext conftest.
$ac_ext
12405 LIBS
=$ac_check_lib_save_LIBS
12407 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12408 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12409 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12417 if test "${HAVE_XFT}" = "yes"; then
12419 cat >>confdefs.h
<<\_ACEOF
12424 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
12426 CFLAGS
="$OLD_CPPFLAGS"
12427 CFLAGS
="$OLD_CFLAGS"
12434 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
12435 if test "$with_xaw3d" != no
; then
12436 { echo "$as_me:$LINENO: checking for xaw3d" >&5
12437 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
12438 if test "${emacs_cv_xaw3d+set}" = set; then
12439 echo $ECHO_N "(cached) $ECHO_C" >&6
12441 cat >conftest.
$ac_ext <<_ACEOF
12444 cat confdefs.h
>>conftest.
$ac_ext
12445 cat >>conftest.
$ac_ext <<_ACEOF
12446 /* end confdefs.h. */
12448 #include <X11/Intrinsic.h>
12449 #include <X11/Xaw3d/Simple.h>
12458 rm -f conftest.
$ac_objext conftest
$ac_exeext
12459 if { (ac_try
="$ac_link"
12460 case "(($ac_try" in
12461 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12462 *) ac_try_echo=$ac_try;;
12464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12465 (eval "$ac_link") 2>conftest.er1
12467 grep -v '^ *+' conftest.er1 >conftest.err
12469 cat conftest.err >&5
12470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12471 (exit $ac_status); } && {
12472 test -z "$ac_c_werror_flag" ||
12473 test ! -s conftest.err
12474 } && test -s conftest$ac_exeext &&
12475 $as_test_x conftest$ac_exeext; then
12478 echo "$as_me: failed program was:" >&5
12479 sed 's/^/| /' conftest.$ac_ext >&5
12484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12485 conftest$ac_exeext conftest.$ac_ext
12491 if test $emacs_cv_xaw3d = yes; then
12492 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12493 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12494 USE_X_TOOLKIT=LUCID
12497 cat >>confdefs.h <<\_ACEOF
12498 #define HAVE_XAW3D 1
12502 { echo "$as_me:$LINENO: result: no" >&5
12503 echo "${ECHO_T}no" >&6; }
12504 { echo "$as_me:$LINENO: checking for libXaw" >&5
12505 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
12506 if test "${emacs_cv_xaw+set}" = set; then
12507 echo $ECHO_N "(cached) $ECHO_C" >&6
12509 cat >conftest.$ac_ext <<_ACEOF
12512 cat confdefs.h >>conftest.$ac_ext
12513 cat >>conftest.$ac_ext <<_ACEOF
12514 /* end confdefs.h. */
12516 #include <X11/Intrinsic.h>
12517 #include <X11/Xaw/Simple.h>
12526 rm -f conftest.$ac_objext conftest$ac_exeext
12527 if { (ac_try="$ac_link"
12528 case "(($ac_try" in
12529 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12530 *) ac_try_echo
=$ac_try;;
12532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12533 (eval "$ac_link") 2>conftest.er1
12535 grep -v '^ *+' conftest.er1
>conftest.err
12537 cat conftest.err
>&5
12538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539 (exit $ac_status); } && {
12540 test -z "$ac_c_werror_flag" ||
12541 test ! -s conftest.err
12542 } && test -s conftest
$ac_exeext &&
12543 $as_test_x conftest
$ac_exeext; then
12546 echo "$as_me: failed program was:" >&5
12547 sed 's/^/| /' conftest.
$ac_ext >&5
12552 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12553 conftest
$ac_exeext conftest.
$ac_ext
12556 if test $emacs_cv_xaw = yes; then
12557 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12558 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12559 USE_X_TOOLKIT
=LUCID
12560 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
12561 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12562 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12563 { (exit 1); exit 1; }; }
12565 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
12566 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
12572 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
12574 if test "${USE_X_TOOLKIT}" != "none"; then
12575 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12576 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
12577 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12578 echo $ECHO_N "(cached) $ECHO_C" >&6
12580 cat >conftest.
$ac_ext <<_ACEOF
12583 cat confdefs.h
>>conftest.
$ac_ext
12584 cat >>conftest.
$ac_ext <<_ACEOF
12585 /* end confdefs.h. */
12586 #include <X11/Intrinsic.h>
12590 #if XtSpecificationRelease < 6
12598 rm -f conftest.
$ac_objext conftest
$ac_exeext
12599 if { (ac_try
="$ac_link"
12600 case "(($ac_try" in
12601 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12602 *) ac_try_echo=$ac_try;;
12604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12605 (eval "$ac_link") 2>conftest.er1
12607 grep -v '^ *+' conftest.er1 >conftest.err
12609 cat conftest.err >&5
12610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12611 (exit $ac_status); } && {
12612 test -z "$ac_c_werror_flag" ||
12613 test ! -s conftest.err
12614 } && test -s conftest$ac_exeext &&
12615 $as_test_x conftest$ac_exeext; then
12616 emacs_cv_x11_toolkit_version_6=yes
12618 echo "$as_me: failed program was:" >&5
12619 sed 's/^/| /' conftest.$ac_ext >&5
12621 emacs_cv_x11_toolkit_version_6=no
12624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12625 conftest$ac_exeext conftest.$ac_ext
12628 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12629 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12630 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12631 echo "${ECHO_T}6 or newer" >&6; }
12633 cat >>confdefs.h <<\_ACEOF
12634 #define HAVE_X11XTR6 1
12638 { echo "$as_me:$LINENO: result: before 6" >&5
12639 echo "${ECHO_T}before 6" >&6; }
12643 if test x$HAVE_X11XTR6 = xyes; then
12644 LIBS="-lXt -lSM -lICE $LIBS"
12649 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12650 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12651 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12652 echo $ECHO_N "(cached) $ECHO_C" >&6
12654 ac_check_lib_save_LIBS=$LIBS
12656 cat >conftest.$ac_ext <<_ACEOF
12659 cat confdefs.h >>conftest.$ac_ext
12660 cat >>conftest.$ac_ext <<_ACEOF
12661 /* end confdefs.h. */
12663 /* Override any GCC internal prototype to avoid an error.
12664 Use char because int might match the return type of a GCC
12665 builtin and then its argument prototype would still apply. */
12669 char XmuConvertStandardSelection ();
12673 return XmuConvertStandardSelection ();
12678 rm -f conftest.$ac_objext conftest$ac_exeext
12679 if { (ac_try="$ac_link"
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_link") 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_exeext &&
12695 $as_test_x conftest
$ac_exeext; then
12696 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
12698 echo "$as_me: failed program was:" >&5
12699 sed 's/^/| /' conftest.
$ac_ext >&5
12701 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
12704 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12705 conftest
$ac_exeext conftest.
$ac_ext
12706 LIBS
=$ac_check_lib_save_LIBS
12708 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12709 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12710 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12711 cat >>confdefs.h
<<_ACEOF
12712 #define HAVE_LIBXMU 1
12719 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
12722 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12723 if test "${HAVE_X11}" = "yes"; then
12724 if test "${USE_X_TOOLKIT}" != "none"; then
12726 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12727 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12728 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12729 echo $ECHO_N "(cached) $ECHO_C" >&6
12731 ac_check_lib_save_LIBS
=$LIBS
12732 LIBS
="-lXext $LIBS"
12733 cat >conftest.
$ac_ext <<_ACEOF
12736 cat confdefs.h
>>conftest.
$ac_ext
12737 cat >>conftest.
$ac_ext <<_ACEOF
12738 /* end confdefs.h. */
12740 /* Override any GCC internal prototype to avoid an error.
12741 Use char because int might match the return type of a GCC
12742 builtin and then its argument prototype would still apply. */
12746 char XShapeQueryExtension ();
12750 return XShapeQueryExtension ();
12755 rm -f conftest.
$ac_objext conftest
$ac_exeext
12756 if { (ac_try
="$ac_link"
12757 case "(($ac_try" in
12758 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12759 *) ac_try_echo=$ac_try;;
12761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12762 (eval "$ac_link") 2>conftest.er1
12764 grep -v '^ *+' conftest.er1 >conftest.err
12766 cat conftest.err >&5
12767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12768 (exit $ac_status); } && {
12769 test -z "$ac_c_werror_flag" ||
12770 test ! -s conftest.err
12771 } && test -s conftest$ac_exeext &&
12772 $as_test_x conftest$ac_exeext; then
12773 ac_cv_lib_Xext_XShapeQueryExtension=yes
12775 echo "$as_me: failed program was:" >&5
12776 sed 's/^/| /' conftest.$ac_ext >&5
12778 ac_cv_lib_Xext_XShapeQueryExtension=no
12781 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12782 conftest$ac_exeext conftest.$ac_ext
12783 LIBS=$ac_check_lib_save_LIBS
12785 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12786 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12787 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12788 cat >>confdefs.h <<_ACEOF
12789 #define HAVE_LIBXEXT 1
12792 LIBS="-lXext $LIBS"
12799 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12800 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12801 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12802 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12803 echo $ECHO_N "(cached) $ECHO_C" >&6
12805 cat >conftest.$ac_ext <<_ACEOF
12808 cat confdefs.h >>conftest.$ac_ext
12809 cat >>conftest.$ac_ext <<_ACEOF
12810 /* end confdefs.h. */
12815 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12818 Motif version prior to 2.1.
12824 rm -f conftest.$ac_objext
12825 if { (ac_try="$ac_compile"
12826 case "(($ac_try" in
12827 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12828 *) ac_try_echo
=$ac_try;;
12830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12831 (eval "$ac_compile") 2>conftest.er1
12833 grep -v '^ *+' conftest.er1
>conftest.err
12835 cat conftest.err
>&5
12836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12837 (exit $ac_status); } && {
12838 test -z "$ac_c_werror_flag" ||
12839 test ! -s conftest.err
12840 } && test -s conftest.
$ac_objext; then
12841 emacs_cv_motif_version_2_1
=yes
12843 echo "$as_me: failed program was:" >&5
12844 sed 's/^/| /' conftest.
$ac_ext >&5
12846 emacs_cv_motif_version_2_1
=no
12849 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12851 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12852 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12853 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
12854 if test $emacs_cv_motif_version_2_1 = yes; then
12857 cat >>confdefs.h
<<\_ACEOF
12858 #define HAVE_MOTIF_2_1 1
12861 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12862 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12863 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12864 echo $ECHO_N "(cached) $ECHO_C" >&6
12866 ac_check_lib_save_LIBS
=$LIBS
12868 cat >conftest.
$ac_ext <<_ACEOF
12871 cat confdefs.h
>>conftest.
$ac_ext
12872 cat >>conftest.
$ac_ext <<_ACEOF
12873 /* end confdefs.h. */
12875 /* Override any GCC internal prototype to avoid an error.
12876 Use char because int might match the return type of a GCC
12877 builtin and then its argument prototype would still apply. */
12881 char XpCreateContext ();
12885 return XpCreateContext ();
12890 rm -f conftest.
$ac_objext conftest
$ac_exeext
12891 if { (ac_try
="$ac_link"
12892 case "(($ac_try" in
12893 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12894 *) ac_try_echo=$ac_try;;
12896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12897 (eval "$ac_link") 2>conftest.er1
12899 grep -v '^ *+' conftest.er1 >conftest.err
12901 cat conftest.err >&5
12902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903 (exit $ac_status); } && {
12904 test -z "$ac_c_werror_flag" ||
12905 test ! -s conftest.err
12906 } && test -s conftest$ac_exeext &&
12907 $as_test_x conftest$ac_exeext; then
12908 ac_cv_lib_Xp_XpCreateContext=yes
12910 echo "$as_me: failed program was:" >&5
12911 sed 's/^/| /' conftest.$ac_ext >&5
12913 ac_cv_lib_Xp_XpCreateContext=no
12916 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12917 conftest$ac_exeext conftest.$ac_ext
12918 LIBS=$ac_check_lib_save_LIBS
12920 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12921 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12922 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12926 if test ${HAVE_LIBXP} = yes; then
12928 cat >>confdefs.h <<\_ACEOF
12929 #define HAVE_LIBXP 1
12934 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12935 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12936 if test "${emacs_cv_lesstif+set}" = set; then
12937 echo $ECHO_N "(cached) $ECHO_C" >&6
12939 # We put this in CFLAGS temporarily to precede other -I options
12940 # that might be in CFLAGS temporarily.
12941 # We put this in CPPFLAGS where it precedes the other -I options.
12942 OLD_CPPFLAGS=$CPPFLAGS
12944 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12945 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12946 cat >conftest.$ac_ext <<_ACEOF
12949 cat confdefs.h >>conftest.$ac_ext
12950 cat >>conftest.$ac_ext <<_ACEOF
12951 /* end confdefs.h. */
12952 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12961 rm -f conftest.$ac_objext
12962 if { (ac_try="$ac_compile"
12963 case "(($ac_try" in
12964 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12965 *) ac_try_echo
=$ac_try;;
12967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12968 (eval "$ac_compile") 2>conftest.er1
12970 grep -v '^ *+' conftest.er1
>conftest.err
12972 cat conftest.err
>&5
12973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12974 (exit $ac_status); } && {
12975 test -z "$ac_c_werror_flag" ||
12976 test ! -s conftest.err
12977 } && test -s conftest.
$ac_objext; then
12978 emacs_cv_lesstif
=yes
12980 echo "$as_me: failed program was:" >&5
12981 sed 's/^/| /' conftest.
$ac_ext >&5
12983 emacs_cv_lesstif
=no
12986 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12988 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12989 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12990 if test $emacs_cv_lesstif = yes; then
12991 # Make sure this -I option remains in CPPFLAGS after it is set
12992 # back to REAL_CPPFLAGS.
12993 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12994 # have those other -I options anyway. Ultimately, having this
12995 # directory ultimately in CPPFLAGS will be enough.
12996 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12997 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
13000 CPPFLAGS
=$OLD_CPPFLAGS
13007 USE_TOOLKIT_SCROLL_BARS
=no
13008 if test "${with_toolkit_scroll_bars}" != "no"; then
13009 if test "${USE_X_TOOLKIT}" != "none"; then
13010 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13011 cat >>confdefs.h
<<\_ACEOF
13012 #define USE_TOOLKIT_SCROLL_BARS 1
13016 USE_TOOLKIT_SCROLL_BARS
=yes
13017 elif test "${HAVE_XAW3D}" = "yes"; then
13018 cat >>confdefs.h
<<\_ACEOF
13019 #define USE_TOOLKIT_SCROLL_BARS 1
13022 USE_TOOLKIT_SCROLL_BARS
=yes
13024 elif test "${HAVE_GTK}" = "yes"; then
13025 cat >>confdefs.h
<<\_ACEOF
13026 #define USE_TOOLKIT_SCROLL_BARS 1
13029 USE_TOOLKIT_SCROLL_BARS
=yes
13030 elif test "${HAVE_CARBON}" = "yes"; then
13031 cat >>confdefs.h
<<\_ACEOF
13032 #define USE_TOOLKIT_SCROLL_BARS 1
13035 USE_TOOLKIT_SCROLL_BARS
=yes
13039 cat >conftest.
$ac_ext <<_ACEOF
13042 cat confdefs.h
>>conftest.
$ac_ext
13043 cat >>conftest.
$ac_ext <<_ACEOF
13044 /* end confdefs.h. */
13046 #include <X11/Xlib.h>
13047 #include <X11/Xresource.h>
13056 rm -f conftest.
$ac_objext
13057 if { (ac_try
="$ac_compile"
13058 case "(($ac_try" in
13059 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13060 *) ac_try_echo=$ac_try;;
13062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13063 (eval "$ac_compile") 2>conftest.er1
13065 grep -v '^ *+' conftest.er1 >conftest.err
13067 cat conftest.err >&5
13068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069 (exit $ac_status); } && {
13070 test -z "$ac_c_werror_flag" ||
13071 test ! -s conftest.err
13072 } && test -s conftest.$ac_objext; then
13075 cat >>confdefs.h <<\_ACEOF
13080 echo "$as_me: failed program was:" >&5
13081 sed 's/^/| /' conftest.$ac_ext >&5
13086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13089 if test "${with_xim}" != "no"; then
13091 cat >>confdefs.h <<\_ACEOF
13098 if test "${HAVE_XIM}" != "no"; then
13099 late_CFLAGS=$CFLAGS
13100 if test "$GCC" = yes; then
13101 CFLAGS="$CFLAGS --pedantic-errors"
13103 cat >conftest.$ac_ext <<_ACEOF
13106 cat confdefs.h >>conftest.$ac_ext
13107 cat >>conftest.$ac_ext <<_ACEOF
13108 /* end confdefs.h. */
13110 #include <X11/Xlib.h>
13111 #include <X11/Xresource.h>
13120 XPointer *client_data;
13122 /* If we're not using GCC, it's probably not XFree86, and this is
13123 probably right, but we can't use something like --pedantic-errors. */
13124 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
13125 char*, XIMProc, XPointer*);
13127 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
13133 rm -f conftest.$ac_objext
13134 if { (ac_try="$ac_compile"
13135 case "(($ac_try" in
13136 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13137 *) ac_try_echo
=$ac_try;;
13139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13140 (eval "$ac_compile") 2>conftest.er1
13142 grep -v '^ *+' conftest.er1
>conftest.err
13144 cat conftest.err
>&5
13145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146 (exit $ac_status); } && {
13147 test -z "$ac_c_werror_flag" ||
13148 test ! -s conftest.err
13149 } && test -s conftest.
$ac_objext; then
13150 emacs_cv_arg6_star
=yes
13152 echo "$as_me: failed program was:" >&5
13153 sed 's/^/| /' conftest.
$ac_ext >&5
13158 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13160 if test "$emacs_cv_arg6_star" = yes; then
13161 cat >>confdefs.h
<<\_ACEOF
13162 #define XRegisterIMInstantiateCallback_arg6 XPointer*
13166 cat >>confdefs.h
<<\_ACEOF
13167 #define XRegisterIMInstantiateCallback_arg6 XPointer
13171 CFLAGS
=$late_CFLAGS
13174 ### Use -lXpm if available, unless `--with-xpm=no'.
13176 if test "${HAVE_X11}" = "yes"; then
13177 if test "${with_xpm}" != "no"; then
13178 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13179 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13180 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13181 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13182 echo $ECHO_N "(cached) $ECHO_C" >&6
13184 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13185 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13187 # Is the header compilable?
13188 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13189 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13190 cat >conftest.
$ac_ext <<_ACEOF
13193 cat confdefs.h
>>conftest.
$ac_ext
13194 cat >>conftest.
$ac_ext <<_ACEOF
13195 /* end confdefs.h. */
13196 $ac_includes_default
13197 #include <X11/xpm.h>
13199 rm -f conftest.
$ac_objext
13200 if { (ac_try
="$ac_compile"
13201 case "(($ac_try" in
13202 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13203 *) ac_try_echo=$ac_try;;
13205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13206 (eval "$ac_compile") 2>conftest.er1
13208 grep -v '^ *+' conftest.er1 >conftest.err
13210 cat conftest.err >&5
13211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13212 (exit $ac_status); } && {
13213 test -z "$ac_c_werror_flag" ||
13214 test ! -s conftest.err
13215 } && test -s conftest.$ac_objext; then
13216 ac_header_compiler=yes
13218 echo "$as_me: failed program was:" >&5
13219 sed 's/^/| /' conftest.$ac_ext >&5
13221 ac_header_compiler=no
13224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13225 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13226 echo "${ECHO_T}$ac_header_compiler" >&6; }
13228 # Is the header present?
13229 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13230 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13231 cat >conftest.$ac_ext <<_ACEOF
13234 cat confdefs.h >>conftest.$ac_ext
13235 cat >>conftest.$ac_ext <<_ACEOF
13236 /* end confdefs.h. */
13237 #include <X11/xpm.h>
13239 if { (ac_try="$ac_cpp conftest.$ac_ext"
13240 case "(($ac_try" in
13241 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13242 *) ac_try_echo
=$ac_try;;
13244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13245 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13247 grep -v '^ *+' conftest.er1
>conftest.err
13249 cat conftest.err
>&5
13250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13251 (exit $ac_status); } >/dev
/null
&& {
13252 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13253 test ! -s conftest.err
13255 ac_header_preproc
=yes
13257 echo "$as_me: failed program was:" >&5
13258 sed 's/^/| /' conftest.
$ac_ext >&5
13260 ac_header_preproc
=no
13263 rm -f conftest.err conftest.
$ac_ext
13264 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13265 echo "${ECHO_T}$ac_header_preproc" >&6; }
13267 # So? What about this header?
13268 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13270 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13271 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13272 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13273 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13274 ac_header_preproc
=yes
13277 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13278 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13279 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13280 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13281 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13282 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13283 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13284 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13285 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13286 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13287 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13288 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13292 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13293 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13294 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13295 echo $ECHO_N "(cached) $ECHO_C" >&6
13297 ac_cv_header_X11_xpm_h
=$ac_header_preproc
13299 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13300 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13303 if test $ac_cv_header_X11_xpm_h = yes; then
13304 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13305 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13306 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13307 echo $ECHO_N "(cached) $ECHO_C" >&6
13309 ac_check_lib_save_LIBS
=$LIBS
13310 LIBS
="-lXpm -lX11 $LIBS"
13311 cat >conftest.
$ac_ext <<_ACEOF
13314 cat confdefs.h
>>conftest.
$ac_ext
13315 cat >>conftest.
$ac_ext <<_ACEOF
13316 /* end confdefs.h. */
13318 /* Override any GCC internal prototype to avoid an error.
13319 Use char because int might match the return type of a GCC
13320 builtin and then its argument prototype would still apply. */
13324 char XpmReadFileToPixmap ();
13328 return XpmReadFileToPixmap ();
13333 rm -f conftest.
$ac_objext conftest
$ac_exeext
13334 if { (ac_try
="$ac_link"
13335 case "(($ac_try" in
13336 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13337 *) ac_try_echo=$ac_try;;
13339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13340 (eval "$ac_link") 2>conftest.er1
13342 grep -v '^ *+' conftest.er1 >conftest.err
13344 cat conftest.err >&5
13345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13346 (exit $ac_status); } && {
13347 test -z "$ac_c_werror_flag" ||
13348 test ! -s conftest.err
13349 } && test -s conftest$ac_exeext &&
13350 $as_test_x conftest$ac_exeext; then
13351 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13353 echo "$as_me: failed program was:" >&5
13354 sed 's/^/| /' conftest.$ac_ext >&5
13356 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13360 conftest$ac_exeext conftest.$ac_ext
13361 LIBS=$ac_check_lib_save_LIBS
13363 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13364 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13365 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13372 if test "${HAVE_XPM}" = "yes"; then
13373 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13374 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13375 cat >conftest.$ac_ext <<_ACEOF
13378 cat confdefs.h >>conftest.$ac_ext
13379 cat >>conftest.$ac_ext <<_ACEOF
13380 /* end confdefs.h. */
13381 #include "X11/xpm.h"
13382 #ifndef XpmReturnAllocPixels
13383 no_return_alloc_pixels
13387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13388 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13396 if test "${HAVE_XPM}" = "yes"; then
13397 { echo "$as_me:$LINENO: result: yes" >&5
13398 echo "${ECHO_T}yes" >&6; }
13400 { echo "$as_me:$LINENO: result: no" >&5
13401 echo "${ECHO_T}no" >&6; }
13406 if test "${HAVE_XPM}" = "yes"; then
13408 cat >>confdefs.h <<\_ACEOF
13415 ### Use -ljpeg if available, unless `--with-jpeg=no
'.
13417 if test "${HAVE_X11}" = "yes"; then
13418 if test "${with_jpeg}" != "no"; then
13419 if test "${ac_cv_header_jerror_h+set}" = set; then
13420 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13421 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13422 if test "${ac_cv_header_jerror_h+set}" = set; then
13423 echo $ECHO_N "(cached) $ECHO_C" >&6
13425 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13426 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13428 # Is the header compilable?
13429 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13430 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13431 cat >conftest.$ac_ext <<_ACEOF
13434 cat confdefs.h >>conftest.$ac_ext
13435 cat >>conftest.$ac_ext <<_ACEOF
13436 /* end confdefs.h. */
13437 $ac_includes_default
13438 #include <jerror.h>
13440 rm -f conftest.$ac_objext
13441 if { (ac_try="$ac_compile"
13442 case "(($ac_try" in
13443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13444 *) ac_try_echo=$ac_try;;
13446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13447 (eval "$ac_compile") 2>conftest.er1
13449 grep -v '^
*+' conftest.er1 >conftest.err
13451 cat conftest.err >&5
13452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453 (exit $ac_status); } && {
13454 test -z "$ac_c_werror_flag" ||
13455 test ! -s conftest.err
13456 } && test -s conftest.$ac_objext; then
13457 ac_header_compiler=yes
13459 echo "$as_me: failed program was:" >&5
13460 sed 's
/^
/|
/' conftest.$ac_ext >&5
13462 ac_header_compiler=no
13465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13466 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13467 echo "${ECHO_T}$ac_header_compiler" >&6; }
13469 # Is the header present?
13470 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13471 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13472 cat >conftest.$ac_ext <<_ACEOF
13475 cat confdefs.h >>conftest.$ac_ext
13476 cat >>conftest.$ac_ext <<_ACEOF
13477 /* end confdefs.h. */
13478 #include <jerror.h>
13480 if { (ac_try="$ac_cpp conftest.$ac_ext"
13481 case "(($ac_try" in
13482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13483 *) ac_try_echo=$ac_try;;
13485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13486 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13488 grep -v '^
*+' conftest.er1 >conftest.err
13490 cat conftest.err >&5
13491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13492 (exit $ac_status); } >/dev/null && {
13493 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13494 test ! -s conftest.err
13496 ac_header_preproc=yes
13498 echo "$as_me: failed program was:" >&5
13499 sed 's
/^
/|
/' conftest.$ac_ext >&5
13501 ac_header_preproc=no
13504 rm -f conftest.err conftest.$ac_ext
13505 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13506 echo "${ECHO_T}$ac_header_preproc" >&6; }
13508 # So? What about this header?
13509 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13511 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13512 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13513 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result
" >&5
13514 echo "$as_me: WARNING
: jerror.h
: proceeding with the compiler
's result" >&2;}
13515 ac_header_preproc=yes
13518 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13519 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13520 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13521 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13522 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13523 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13524 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13525 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13526 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result
" >&5
13527 echo "$as_me: WARNING
: jerror.h
: proceeding with the preprocessor
's result" >&2;}
13528 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13529 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13533 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13534 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13535 if test "${ac_cv_header_jerror_h+set}" = set; then
13536 echo $ECHO_N "(cached) $ECHO_C" >&6
13538 ac_cv_header_jerror_h=$ac_header_preproc
13540 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13541 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13544 if test $ac_cv_header_jerror_h = yes; then
13545 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13546 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13547 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13548 echo $ECHO_N "(cached) $ECHO_C" >&6
13550 ac_check_lib_save_LIBS=$LIBS
13551 LIBS="-ljpeg $LIBS"
13552 cat >conftest.$ac_ext <<_ACEOF
13555 cat confdefs.h >>conftest.$ac_ext
13556 cat >>conftest.$ac_ext <<_ACEOF
13557 /* end confdefs.h. */
13559 /* Override any GCC internal prototype to avoid an error.
13560 Use char because int might match the return type of a GCC
13561 builtin and then its argument prototype would still apply. */
13565 char jpeg_destroy_compress ();
13569 return jpeg_destroy_compress ();
13574 rm -f conftest.$ac_objext conftest$ac_exeext
13575 if { (ac_try="$ac_link"
13576 case "(($ac_try" in
13577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13578 *) ac_try_echo=$ac_try;;
13580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13581 (eval "$ac_link") 2>conftest.er1
13583 grep -v '^
*+' conftest.er1 >conftest.err
13585 cat conftest.err >&5
13586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13587 (exit $ac_status); } && {
13588 test -z "$ac_c_werror_flag" ||
13589 test ! -s conftest.err
13590 } && test -s conftest$ac_exeext &&
13591 $as_test_x conftest$ac_exeext; then
13592 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13594 echo "$as_me: failed program was:" >&5
13595 sed 's
/^
/|
/' conftest.$ac_ext >&5
13597 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13601 conftest$ac_exeext conftest.$ac_ext
13602 LIBS=$ac_check_lib_save_LIBS
13604 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13605 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13606 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13616 if test "${HAVE_JPEG}" = "yes"; then
13617 cat >>confdefs.h <<\_ACEOF
13618 #define HAVE_JPEG 1
13621 cat >conftest.$ac_ext <<_ACEOF
13624 cat confdefs.h >>conftest.$ac_ext
13625 cat >>conftest.$ac_ext <<_ACEOF
13626 /* end confdefs.h. */
13627 #include <jpeglib.h>
13628 version=JPEG_LIB_VERSION
13631 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13632 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13633 cat >>confdefs.h <<\_ACEOF
13634 #define HAVE_JPEG 1
13638 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13639 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13647 ### Use -lpng if available, unless `--with-png=no'.
13649 if test "${HAVE_X11}" = "yes"; then
13650 if test "${with_png}" != "no"; then
13651 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13652 # in /usr/include/libpng.
13655 for ac_header
in png.h libpng
/png.h
13657 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13658 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13659 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13660 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13661 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13662 echo $ECHO_N "(cached) $ECHO_C" >&6
13664 ac_res
=`eval echo '${'$as_ac_Header'}'`
13665 { echo "$as_me:$LINENO: result: $ac_res" >&5
13666 echo "${ECHO_T}$ac_res" >&6; }
13668 # Is the header compilable?
13669 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13670 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13671 cat >conftest.
$ac_ext <<_ACEOF
13674 cat confdefs.h
>>conftest.
$ac_ext
13675 cat >>conftest.
$ac_ext <<_ACEOF
13676 /* end confdefs.h. */
13677 $ac_includes_default
13678 #include <$ac_header>
13680 rm -f conftest.
$ac_objext
13681 if { (ac_try
="$ac_compile"
13682 case "(($ac_try" in
13683 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13684 *) ac_try_echo=$ac_try;;
13686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13687 (eval "$ac_compile") 2>conftest.er1
13689 grep -v '^ *+' conftest.er1 >conftest.err
13691 cat conftest.err >&5
13692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13693 (exit $ac_status); } && {
13694 test -z "$ac_c_werror_flag" ||
13695 test ! -s conftest.err
13696 } && test -s conftest.$ac_objext; then
13697 ac_header_compiler=yes
13699 echo "$as_me: failed program was:" >&5
13700 sed 's/^/| /' conftest.$ac_ext >&5
13702 ac_header_compiler=no
13705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13706 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13707 echo "${ECHO_T}$ac_header_compiler" >&6; }
13709 # Is the header present?
13710 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13711 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13712 cat >conftest.$ac_ext <<_ACEOF
13715 cat confdefs.h >>conftest.$ac_ext
13716 cat >>conftest.$ac_ext <<_ACEOF
13717 /* end confdefs.h. */
13718 #include <$ac_header>
13720 if { (ac_try="$ac_cpp conftest.$ac_ext"
13721 case "(($ac_try" in
13722 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13723 *) ac_try_echo
=$ac_try;;
13725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13726 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13728 grep -v '^ *+' conftest.er1
>conftest.err
13730 cat conftest.err
>&5
13731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13732 (exit $ac_status); } >/dev
/null
&& {
13733 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13734 test ! -s conftest.err
13736 ac_header_preproc
=yes
13738 echo "$as_me: failed program was:" >&5
13739 sed 's/^/| /' conftest.
$ac_ext >&5
13741 ac_header_preproc
=no
13744 rm -f conftest.err conftest.
$ac_ext
13745 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13746 echo "${ECHO_T}$ac_header_preproc" >&6; }
13748 # So? What about this header?
13749 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13751 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13752 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13753 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13754 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13755 ac_header_preproc
=yes
13758 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13759 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13760 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13761 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13762 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13763 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13764 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13765 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13766 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13767 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13768 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13769 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13773 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13774 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13775 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13776 echo $ECHO_N "(cached) $ECHO_C" >&6
13778 eval "$as_ac_Header=\$ac_header_preproc"
13780 ac_res
=`eval echo '${'$as_ac_Header'}'`
13781 { echo "$as_me:$LINENO: result: $ac_res" >&5
13782 echo "${ECHO_T}$ac_res" >&6; }
13785 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13786 cat >>confdefs.h
<<_ACEOF
13787 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13794 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
13795 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13796 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13797 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13798 echo $ECHO_N "(cached) $ECHO_C" >&6
13800 ac_check_lib_save_LIBS
=$LIBS
13801 LIBS
="-lpng -lz -lm $LIBS"
13802 cat >conftest.
$ac_ext <<_ACEOF
13805 cat confdefs.h
>>conftest.
$ac_ext
13806 cat >>conftest.
$ac_ext <<_ACEOF
13807 /* end confdefs.h. */
13809 /* Override any GCC internal prototype to avoid an error.
13810 Use char because int might match the return type of a GCC
13811 builtin and then its argument prototype would still apply. */
13815 char png_get_channels ();
13819 return png_get_channels ();
13824 rm -f conftest.
$ac_objext conftest
$ac_exeext
13825 if { (ac_try
="$ac_link"
13826 case "(($ac_try" in
13827 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13828 *) ac_try_echo=$ac_try;;
13830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13831 (eval "$ac_link") 2>conftest.er1
13833 grep -v '^ *+' conftest.er1 >conftest.err
13835 cat conftest.err >&5
13836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13837 (exit $ac_status); } && {
13838 test -z "$ac_c_werror_flag" ||
13839 test ! -s conftest.err
13840 } && test -s conftest$ac_exeext &&
13841 $as_test_x conftest$ac_exeext; then
13842 ac_cv_lib_png_png_get_channels=yes
13844 echo "$as_me: failed program was:" >&5
13845 sed 's/^/| /' conftest.$ac_ext >&5
13847 ac_cv_lib_png_png_get_channels=no
13850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13851 conftest$ac_exeext conftest.$ac_ext
13852 LIBS=$ac_check_lib_save_LIBS
13854 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13855 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13856 if test $ac_cv_lib_png_png_get_channels = yes; then
13863 if test "${HAVE_PNG}" = "yes"; then
13865 cat >>confdefs.h <<\_ACEOF
13872 ### Use -ltiff if available, unless `--with-tiff=no
'.
13874 if test "${HAVE_X11}" = "yes"; then
13875 if test "${with_tiff}" != "no"; then
13876 if test "${ac_cv_header_tiffio_h+set}" = set; then
13877 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13878 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13879 if test "${ac_cv_header_tiffio_h+set}" = set; then
13880 echo $ECHO_N "(cached) $ECHO_C" >&6
13882 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13883 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13885 # Is the header compilable?
13886 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13887 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13888 cat >conftest.$ac_ext <<_ACEOF
13891 cat confdefs.h >>conftest.$ac_ext
13892 cat >>conftest.$ac_ext <<_ACEOF
13893 /* end confdefs.h. */
13894 $ac_includes_default
13895 #include <tiffio.h>
13897 rm -f conftest.$ac_objext
13898 if { (ac_try="$ac_compile"
13899 case "(($ac_try" in
13900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13901 *) ac_try_echo=$ac_try;;
13903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13904 (eval "$ac_compile") 2>conftest.er1
13906 grep -v '^
*+' conftest.er1 >conftest.err
13908 cat conftest.err >&5
13909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13910 (exit $ac_status); } && {
13911 test -z "$ac_c_werror_flag" ||
13912 test ! -s conftest.err
13913 } && test -s conftest.$ac_objext; then
13914 ac_header_compiler=yes
13916 echo "$as_me: failed program was:" >&5
13917 sed 's
/^
/|
/' conftest.$ac_ext >&5
13919 ac_header_compiler=no
13922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13923 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13924 echo "${ECHO_T}$ac_header_compiler" >&6; }
13926 # Is the header present?
13927 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13928 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13929 cat >conftest.$ac_ext <<_ACEOF
13932 cat confdefs.h >>conftest.$ac_ext
13933 cat >>conftest.$ac_ext <<_ACEOF
13934 /* end confdefs.h. */
13935 #include <tiffio.h>
13937 if { (ac_try="$ac_cpp conftest.$ac_ext"
13938 case "(($ac_try" in
13939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13940 *) ac_try_echo=$ac_try;;
13942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13943 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13945 grep -v '^
*+' conftest.er1 >conftest.err
13947 cat conftest.err >&5
13948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13949 (exit $ac_status); } >/dev/null && {
13950 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13951 test ! -s conftest.err
13953 ac_header_preproc=yes
13955 echo "$as_me: failed program was:" >&5
13956 sed 's
/^
/|
/' conftest.$ac_ext >&5
13958 ac_header_preproc=no
13961 rm -f conftest.err conftest.$ac_ext
13962 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13963 echo "${ECHO_T}$ac_header_preproc" >&6; }
13965 # So? What about this header?
13966 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13968 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13969 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13970 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result
" >&5
13971 echo "$as_me: WARNING
: tiffio.h
: proceeding with the compiler
's result" >&2;}
13972 ac_header_preproc=yes
13975 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13976 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13977 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13978 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13979 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13980 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13981 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13982 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13983 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result
" >&5
13984 echo "$as_me: WARNING
: tiffio.h
: proceeding with the preprocessor
's result" >&2;}
13985 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13986 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13990 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13991 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13992 if test "${ac_cv_header_tiffio_h+set}" = set; then
13993 echo $ECHO_N "(cached) $ECHO_C" >&6
13995 ac_cv_header_tiffio_h=$ac_header_preproc
13997 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13998 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14001 if test $ac_cv_header_tiffio_h = yes; then
14003 # At least one tiff package requires the jpeg library.
14004 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14005 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
14006 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
14007 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14008 echo $ECHO_N "(cached) $ECHO_C" >&6
14010 ac_check_lib_save_LIBS=$LIBS
14011 LIBS="-ltiff $tifflibs $LIBS"
14012 cat >conftest.$ac_ext <<_ACEOF
14015 cat confdefs.h >>conftest.$ac_ext
14016 cat >>conftest.$ac_ext <<_ACEOF
14017 /* end confdefs.h. */
14019 /* Override any GCC internal prototype to avoid an error.
14020 Use char because int might match the return type of a GCC
14021 builtin and then its argument prototype would still apply. */
14025 char TIFFGetVersion ();
14029 return TIFFGetVersion ();
14034 rm -f conftest.$ac_objext conftest$ac_exeext
14035 if { (ac_try="$ac_link"
14036 case "(($ac_try" in
14037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14038 *) ac_try_echo=$ac_try;;
14040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14041 (eval "$ac_link") 2>conftest.er1
14043 grep -v '^
*+' conftest.er1 >conftest.err
14045 cat conftest.err >&5
14046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14047 (exit $ac_status); } && {
14048 test -z "$ac_c_werror_flag" ||
14049 test ! -s conftest.err
14050 } && test -s conftest$ac_exeext &&
14051 $as_test_x conftest$ac_exeext; then
14052 ac_cv_lib_tiff_TIFFGetVersion=yes
14054 echo "$as_me: failed program was:" >&5
14055 sed 's
/^
/|
/' conftest.$ac_ext >&5
14057 ac_cv_lib_tiff_TIFFGetVersion=no
14060 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14061 conftest$ac_exeext conftest.$ac_ext
14062 LIBS=$ac_check_lib_save_LIBS
14064 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14065 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14066 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14075 if test "${HAVE_TIFF}" = "yes"; then
14077 cat >>confdefs.h <<\_ACEOF
14078 #define HAVE_TIFF 1
14084 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14086 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14087 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14088 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14089 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14090 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14091 echo $ECHO_N "(cached) $ECHO_C" >&6
14093 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14094 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14096 # Is the header compilable?
14097 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14098 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14099 cat >conftest.
$ac_ext <<_ACEOF
14102 cat confdefs.h
>>conftest.
$ac_ext
14103 cat >>conftest.
$ac_ext <<_ACEOF
14104 /* end confdefs.h. */
14105 $ac_includes_default
14106 #include <gif_lib.h>
14108 rm -f conftest.
$ac_objext
14109 if { (ac_try
="$ac_compile"
14110 case "(($ac_try" in
14111 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14112 *) ac_try_echo=$ac_try;;
14114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14115 (eval "$ac_compile") 2>conftest.er1
14117 grep -v '^ *+' conftest.er1 >conftest.err
14119 cat conftest.err >&5
14120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14121 (exit $ac_status); } && {
14122 test -z "$ac_c_werror_flag" ||
14123 test ! -s conftest.err
14124 } && test -s conftest.$ac_objext; then
14125 ac_header_compiler=yes
14127 echo "$as_me: failed program was:" >&5
14128 sed 's/^/| /' conftest.$ac_ext >&5
14130 ac_header_compiler=no
14133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14134 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14135 echo "${ECHO_T}$ac_header_compiler" >&6; }
14137 # Is the header present?
14138 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14139 echo $ECHO_N "checking gif_lib.h presence... $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 #include <gif_lib.h>
14148 if { (ac_try="$ac_cpp conftest.$ac_ext"
14149 case "(($ac_try" in
14150 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14151 *) ac_try_echo
=$ac_try;;
14153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14154 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14156 grep -v '^ *+' conftest.er1
>conftest.err
14158 cat conftest.err
>&5
14159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14160 (exit $ac_status); } >/dev
/null
&& {
14161 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14162 test ! -s conftest.err
14164 ac_header_preproc
=yes
14166 echo "$as_me: failed program was:" >&5
14167 sed 's/^/| /' conftest.
$ac_ext >&5
14169 ac_header_preproc
=no
14172 rm -f conftest.err conftest.
$ac_ext
14173 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14174 echo "${ECHO_T}$ac_header_preproc" >&6; }
14176 # So? What about this header?
14177 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14179 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14180 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14181 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14182 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14183 ac_header_preproc
=yes
14186 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14187 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14188 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14189 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14190 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14191 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14192 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14193 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14194 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14195 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14196 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14197 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14201 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14202 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14203 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14204 echo $ECHO_N "(cached) $ECHO_C" >&6
14206 ac_cv_header_gif_lib_h
=$ac_header_preproc
14208 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14209 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14212 if test $ac_cv_header_gif_lib_h = yes; then
14213 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14214 # Earlier versions can crash Emacs.
14215 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14216 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
14217 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14218 echo $ECHO_N "(cached) $ECHO_C" >&6
14220 ac_check_lib_save_LIBS
=$LIBS
14222 cat >conftest.
$ac_ext <<_ACEOF
14225 cat confdefs.h
>>conftest.
$ac_ext
14226 cat >>conftest.
$ac_ext <<_ACEOF
14227 /* end confdefs.h. */
14229 /* Override any GCC internal prototype to avoid an error.
14230 Use char because int might match the return type of a GCC
14231 builtin and then its argument prototype would still apply. */
14235 char EGifPutExtensionLast ();
14239 return EGifPutExtensionLast ();
14244 rm -f conftest.
$ac_objext conftest
$ac_exeext
14245 if { (ac_try
="$ac_link"
14246 case "(($ac_try" in
14247 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14248 *) ac_try_echo=$ac_try;;
14250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14251 (eval "$ac_link") 2>conftest.er1
14253 grep -v '^ *+' conftest.er1 >conftest.err
14255 cat conftest.err >&5
14256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257 (exit $ac_status); } && {
14258 test -z "$ac_c_werror_flag" ||
14259 test ! -s conftest.err
14260 } && test -s conftest$ac_exeext &&
14261 $as_test_x conftest$ac_exeext; then
14262 ac_cv_lib_gif_EGifPutExtensionLast=yes
14264 echo "$as_me: failed program was:" >&5
14265 sed 's/^/| /' conftest.$ac_ext >&5
14267 ac_cv_lib_gif_EGifPutExtensionLast=no
14270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14271 conftest$ac_exeext conftest.$ac_ext
14272 LIBS=$ac_check_lib_save_LIBS
14274 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14275 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14276 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14286 if test "$HAVE_GIF" = yes; then
14287 ac_gif_lib_name="-lgif"
14290 # If gif_lib.h but no libgif, try libungif.
14291 if test x"$try_libungif" = xyes; then
14292 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14293 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14294 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14295 echo $ECHO_N "(cached) $ECHO_C" >&6
14297 ac_check_lib_save_LIBS=$LIBS
14298 LIBS="-lungif $LIBS"
14299 cat >conftest.$ac_ext <<_ACEOF
14302 cat confdefs.h >>conftest.$ac_ext
14303 cat >>conftest.$ac_ext <<_ACEOF
14304 /* end confdefs.h. */
14306 /* Override any GCC internal prototype to avoid an error.
14307 Use char because int might match the return type of a GCC
14308 builtin and then its argument prototype would still apply. */
14312 char EGifPutExtensionLast ();
14316 return EGifPutExtensionLast ();
14321 rm -f conftest.$ac_objext conftest$ac_exeext
14322 if { (ac_try="$ac_link"
14323 case "(($ac_try" in
14324 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14325 *) ac_try_echo
=$ac_try;;
14327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14328 (eval "$ac_link") 2>conftest.er1
14330 grep -v '^ *+' conftest.er1
>conftest.err
14332 cat conftest.err
>&5
14333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334 (exit $ac_status); } && {
14335 test -z "$ac_c_werror_flag" ||
14336 test ! -s conftest.err
14337 } && test -s conftest
$ac_exeext &&
14338 $as_test_x conftest
$ac_exeext; then
14339 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
14341 echo "$as_me: failed program was:" >&5
14342 sed 's/^/| /' conftest.
$ac_ext >&5
14344 ac_cv_lib_ungif_EGifPutExtensionLast
=no
14347 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14348 conftest
$ac_exeext conftest.
$ac_ext
14349 LIBS
=$ac_check_lib_save_LIBS
14351 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14352 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14353 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14358 if test "$HAVE_GIF" = yes; then
14360 cat >>confdefs.h
<<\_ACEOF
14361 #define LIBGIF -lungif
14364 ac_gif_lib_name
="-lungif"
14368 if test "${HAVE_GIF}" = "yes"; then
14370 cat >>confdefs.h
<<\_ACEOF
14377 if test "${HAVE_X11}" = "yes"; then
14380 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14381 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
14382 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14383 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
14384 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14385 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
14386 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14387 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
14388 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14389 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
14391 if test "X${MISSING}" != X
; then
14392 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
14394 Maybe some development libraries/packages are missing?
14395 If you don't want to link with them give
14397 as options to configure" >&5
14398 echo "$as_me: error: The following required libraries were not found:
14400 Maybe some development libraries/packages are missing?
14401 If you don't want to link with them give
14403 as options to configure" >&2;}
14404 { (exit 1); exit 1; }; }
14408 ### Use -lgpm if available, unless `--with-gpm=no'.
14410 if test "${with_gpm}" != "no"; then
14411 if test "${ac_cv_header_gpm_h+set}" = set; then
14412 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14413 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14414 if test "${ac_cv_header_gpm_h+set}" = set; then
14415 echo $ECHO_N "(cached) $ECHO_C" >&6
14417 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14418 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14420 # Is the header compilable?
14421 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14422 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14423 cat >conftest.
$ac_ext <<_ACEOF
14426 cat confdefs.h
>>conftest.
$ac_ext
14427 cat >>conftest.
$ac_ext <<_ACEOF
14428 /* end confdefs.h. */
14429 $ac_includes_default
14432 rm -f conftest.
$ac_objext
14433 if { (ac_try
="$ac_compile"
14434 case "(($ac_try" in
14435 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14436 *) ac_try_echo=$ac_try;;
14438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14439 (eval "$ac_compile") 2>conftest.er1
14441 grep -v '^ *+' conftest.er1 >conftest.err
14443 cat conftest.err >&5
14444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14445 (exit $ac_status); } && {
14446 test -z "$ac_c_werror_flag" ||
14447 test ! -s conftest.err
14448 } && test -s conftest.$ac_objext; then
14449 ac_header_compiler=yes
14451 echo "$as_me: failed program was:" >&5
14452 sed 's/^/| /' conftest.$ac_ext >&5
14454 ac_header_compiler=no
14457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14458 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14459 echo "${ECHO_T}$ac_header_compiler" >&6; }
14461 # Is the header present?
14462 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14463 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14464 cat >conftest.$ac_ext <<_ACEOF
14467 cat confdefs.h >>conftest.$ac_ext
14468 cat >>conftest.$ac_ext <<_ACEOF
14469 /* end confdefs.h. */
14472 if { (ac_try="$ac_cpp conftest.$ac_ext"
14473 case "(($ac_try" in
14474 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14475 *) ac_try_echo
=$ac_try;;
14477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14478 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14480 grep -v '^ *+' conftest.er1
>conftest.err
14482 cat conftest.err
>&5
14483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14484 (exit $ac_status); } >/dev
/null
&& {
14485 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14486 test ! -s conftest.err
14488 ac_header_preproc
=yes
14490 echo "$as_me: failed program was:" >&5
14491 sed 's/^/| /' conftest.
$ac_ext >&5
14493 ac_header_preproc
=no
14496 rm -f conftest.err conftest.
$ac_ext
14497 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14498 echo "${ECHO_T}$ac_header_preproc" >&6; }
14500 # So? What about this header?
14501 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14503 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14504 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14505 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14506 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14507 ac_header_preproc
=yes
14510 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14511 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14512 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14513 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14514 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14515 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14516 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14517 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14518 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14519 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14520 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14521 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14525 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14526 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14527 if test "${ac_cv_header_gpm_h+set}" = set; then
14528 echo $ECHO_N "(cached) $ECHO_C" >&6
14530 ac_cv_header_gpm_h
=$ac_header_preproc
14532 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14533 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14536 if test $ac_cv_header_gpm_h = yes; then
14537 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14538 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14539 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14540 echo $ECHO_N "(cached) $ECHO_C" >&6
14542 ac_check_lib_save_LIBS
=$LIBS
14544 cat >conftest.
$ac_ext <<_ACEOF
14547 cat confdefs.h
>>conftest.
$ac_ext
14548 cat >>conftest.
$ac_ext <<_ACEOF
14549 /* end confdefs.h. */
14551 /* Override any GCC internal prototype to avoid an error.
14552 Use char because int might match the return type of a GCC
14553 builtin and then its argument prototype would still apply. */
14561 return Gpm_Open ();
14566 rm -f conftest.
$ac_objext conftest
$ac_exeext
14567 if { (ac_try
="$ac_link"
14568 case "(($ac_try" in
14569 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14570 *) ac_try_echo=$ac_try;;
14572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14573 (eval "$ac_link") 2>conftest.er1
14575 grep -v '^ *+' conftest.er1 >conftest.err
14577 cat conftest.err >&5
14578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14579 (exit $ac_status); } && {
14580 test -z "$ac_c_werror_flag" ||
14581 test ! -s conftest.err
14582 } && test -s conftest$ac_exeext &&
14583 $as_test_x conftest$ac_exeext; then
14584 ac_cv_lib_gpm_Gpm_Open=yes
14586 echo "$as_me: failed program was:" >&5
14587 sed 's/^/| /' conftest.$ac_ext >&5
14589 ac_cv_lib_gpm_Gpm_Open=no
14592 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14593 conftest$ac_exeext conftest.$ac_ext
14594 LIBS=$ac_check_lib_save_LIBS
14596 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14597 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14598 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14607 if test "${HAVE_GPM}" = "yes"; then
14609 cat >>confdefs.h <<\_ACEOF
14615 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14616 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14617 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14618 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14619 echo $ECHO_N "(cached) $ECHO_C" >&6
14621 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14622 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14624 # Is the header compilable?
14625 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14626 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14627 cat >conftest.$ac_ext <<_ACEOF
14630 cat confdefs.h >>conftest.$ac_ext
14631 cat >>conftest.$ac_ext <<_ACEOF
14632 /* end confdefs.h. */
14633 $ac_includes_default
14634 #include <malloc/malloc.h>
14636 rm -f conftest.$ac_objext
14637 if { (ac_try="$ac_compile"
14638 case "(($ac_try" in
14639 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14640 *) ac_try_echo
=$ac_try;;
14642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14643 (eval "$ac_compile") 2>conftest.er1
14645 grep -v '^ *+' conftest.er1
>conftest.err
14647 cat conftest.err
>&5
14648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14649 (exit $ac_status); } && {
14650 test -z "$ac_c_werror_flag" ||
14651 test ! -s conftest.err
14652 } && test -s conftest.
$ac_objext; then
14653 ac_header_compiler
=yes
14655 echo "$as_me: failed program was:" >&5
14656 sed 's/^/| /' conftest.
$ac_ext >&5
14658 ac_header_compiler
=no
14661 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14662 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14663 echo "${ECHO_T}$ac_header_compiler" >&6; }
14665 # Is the header present?
14666 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14667 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14668 cat >conftest.
$ac_ext <<_ACEOF
14671 cat confdefs.h
>>conftest.
$ac_ext
14672 cat >>conftest.
$ac_ext <<_ACEOF
14673 /* end confdefs.h. */
14674 #include <malloc/malloc.h>
14676 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14677 case "(($ac_try" in
14678 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14679 *) ac_try_echo=$ac_try;;
14681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14682 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14684 grep -v '^ *+' conftest.er1 >conftest.err
14686 cat conftest.err >&5
14687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14688 (exit $ac_status); } >/dev/null && {
14689 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14690 test ! -s conftest.err
14692 ac_header_preproc=yes
14694 echo "$as_me: failed program was:" >&5
14695 sed 's/^/| /' conftest.$ac_ext >&5
14697 ac_header_preproc=no
14700 rm -f conftest.err conftest.$ac_ext
14701 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14702 echo "${ECHO_T}$ac_header_preproc" >&6; }
14704 # So? What about this header?
14705 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14707 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14708 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14709 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14710 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14711 ac_header_preproc=yes
14714 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14715 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14716 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14717 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14718 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14719 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14720 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14721 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14722 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14723 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14724 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14725 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14729 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14730 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14731 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14732 echo $ECHO_N "(cached) $ECHO_C" >&6
14734 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14736 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14737 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14740 if test $ac_cv_header_malloc_malloc_h = yes; then
14742 cat >>confdefs.h <<\_ACEOF
14743 #define HAVE_MALLOC_MALLOC_H 1
14750 ### Use Mac OS X Carbon API to implement GUI.
14751 if test "${HAVE_CARBON}" = "yes"; then
14753 cat >>confdefs.h <<\_ACEOF
14754 #define HAVE_CARBON 1
14757 ## Specify the install directory
14759 if test "${carbon_appdir_x}" != ""; then
14760 case ${carbon_appdir_x} in
14761 y | ye | yes) carbon_appdir=/Applications ;;
14762 * ) carbon_appdir=${carbon_appdir_x} ;;
14765 # We also have mouse menus.
14769 ### Use session management (-lSM -lICE) if available
14771 if test "${HAVE_X11}" = "yes"; then
14772 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14773 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14774 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14775 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14776 echo $ECHO_N "(cached) $ECHO_C" >&6
14778 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14779 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14781 # Is the header compilable?
14782 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14783 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14784 cat >conftest.$ac_ext <<_ACEOF
14787 cat confdefs.h >>conftest.$ac_ext
14788 cat >>conftest.$ac_ext <<_ACEOF
14789 /* end confdefs.h. */
14790 $ac_includes_default
14791 #include <X11/SM/SMlib.h>
14793 rm -f conftest.$ac_objext
14794 if { (ac_try="$ac_compile"
14795 case "(($ac_try" in
14796 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14797 *) ac_try_echo
=$ac_try;;
14799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14800 (eval "$ac_compile") 2>conftest.er1
14802 grep -v '^ *+' conftest.er1
>conftest.err
14804 cat conftest.err
>&5
14805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806 (exit $ac_status); } && {
14807 test -z "$ac_c_werror_flag" ||
14808 test ! -s conftest.err
14809 } && test -s conftest.
$ac_objext; then
14810 ac_header_compiler
=yes
14812 echo "$as_me: failed program was:" >&5
14813 sed 's/^/| /' conftest.
$ac_ext >&5
14815 ac_header_compiler
=no
14818 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14819 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14820 echo "${ECHO_T}$ac_header_compiler" >&6; }
14822 # Is the header present?
14823 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14824 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14825 cat >conftest.
$ac_ext <<_ACEOF
14828 cat confdefs.h
>>conftest.
$ac_ext
14829 cat >>conftest.
$ac_ext <<_ACEOF
14830 /* end confdefs.h. */
14831 #include <X11/SM/SMlib.h>
14833 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14834 case "(($ac_try" in
14835 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14836 *) ac_try_echo=$ac_try;;
14838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14839 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14841 grep -v '^ *+' conftest.er1 >conftest.err
14843 cat conftest.err >&5
14844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845 (exit $ac_status); } >/dev/null && {
14846 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14847 test ! -s conftest.err
14849 ac_header_preproc=yes
14851 echo "$as_me: failed program was:" >&5
14852 sed 's/^/| /' conftest.$ac_ext >&5
14854 ac_header_preproc=no
14857 rm -f conftest.err conftest.$ac_ext
14858 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14859 echo "${ECHO_T}$ac_header_preproc" >&6; }
14861 # So? What about this header?
14862 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14864 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14865 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14866 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14867 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14868 ac_header_preproc=yes
14871 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14872 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14873 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14874 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14875 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14876 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14877 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14878 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14879 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14880 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14881 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14882 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14886 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14887 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14888 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14889 echo $ECHO_N "(cached) $ECHO_C" >&6
14891 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14893 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14894 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14897 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14898 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14899 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14900 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14901 echo $ECHO_N "(cached) $ECHO_C" >&6
14903 ac_check_lib_save_LIBS=$LIBS
14904 LIBS="-lSM -lICE $LIBS"
14905 cat >conftest.$ac_ext <<_ACEOF
14908 cat confdefs.h >>conftest.$ac_ext
14909 cat >>conftest.$ac_ext <<_ACEOF
14910 /* end confdefs.h. */
14912 /* Override any GCC internal prototype to avoid an error.
14913 Use char because int might match the return type of a GCC
14914 builtin and then its argument prototype would still apply. */
14918 char SmcOpenConnection ();
14922 return SmcOpenConnection ();
14927 rm -f conftest.$ac_objext conftest$ac_exeext
14928 if { (ac_try="$ac_link"
14929 case "(($ac_try" in
14930 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14931 *) ac_try_echo
=$ac_try;;
14933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14934 (eval "$ac_link") 2>conftest.er1
14936 grep -v '^ *+' conftest.er1
>conftest.err
14938 cat conftest.err
>&5
14939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14940 (exit $ac_status); } && {
14941 test -z "$ac_c_werror_flag" ||
14942 test ! -s conftest.err
14943 } && test -s conftest
$ac_exeext &&
14944 $as_test_x conftest
$ac_exeext; then
14945 ac_cv_lib_SM_SmcOpenConnection
=yes
14947 echo "$as_me: failed program was:" >&5
14948 sed 's/^/| /' conftest.
$ac_ext >&5
14950 ac_cv_lib_SM_SmcOpenConnection
=no
14953 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14954 conftest
$ac_exeext conftest.
$ac_ext
14955 LIBS
=$ac_check_lib_save_LIBS
14957 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14958 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14959 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14967 if test "${HAVE_X_SM}" = "yes"; then
14969 cat >>confdefs.h
<<\_ACEOF
14970 #define HAVE_X_SM 1
14975 *) LIBS
="-lSM -lICE $LIBS" ;;
14980 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14981 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14982 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14983 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14984 echo $ECHO_N "(cached) $ECHO_C" >&6
14986 cat >conftest.
$ac_ext <<_ACEOF
14989 cat confdefs.h
>>conftest.
$ac_ext
14990 cat >>conftest.
$ac_ext <<_ACEOF
14991 /* end confdefs.h. */
15001 rm -f conftest.
$ac_objext conftest
$ac_exeext
15002 if { (ac_try
="$ac_link"
15003 case "(($ac_try" in
15004 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15005 *) ac_try_echo=$ac_try;;
15007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15008 (eval "$ac_link") 2>conftest.er1
15010 grep -v '^ *+' conftest.er1 >conftest.err
15012 cat conftest.err >&5
15013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15014 (exit $ac_status); } && {
15015 test -z "$ac_c_werror_flag" ||
15016 test ! -s conftest.err
15017 } && test -s conftest$ac_exeext &&
15018 $as_test_x conftest$ac_exeext; then
15019 emacs_cv_netdb_declares_h_errno=yes
15021 echo "$as_me: failed program was:" >&5
15022 sed 's/^/| /' conftest.$ac_ext >&5
15024 emacs_cv_netdb_declares_h_errno=no
15027 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15028 conftest$ac_exeext conftest.$ac_ext
15030 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15031 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
15032 if test $emacs_cv_netdb_declares_h_errno = yes; then
15034 cat >>confdefs.h <<\_ACEOF
15035 #define HAVE_H_ERRNO 1
15040 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15041 # for constant arguments. Useless!
15042 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
15043 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
15044 if test "${ac_cv_working_alloca_h+set}" = set; then
15045 echo $ECHO_N "(cached) $ECHO_C" >&6
15047 cat >conftest.$ac_ext <<_ACEOF
15050 cat confdefs.h >>conftest.$ac_ext
15051 cat >>conftest.$ac_ext <<_ACEOF
15052 /* end confdefs.h. */
15053 #include <alloca.h>
15057 char *p = (char *) alloca (2 * sizeof (int));
15063 rm -f conftest.$ac_objext conftest$ac_exeext
15064 if { (ac_try="$ac_link"
15065 case "(($ac_try" in
15066 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15067 *) ac_try_echo
=$ac_try;;
15069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15070 (eval "$ac_link") 2>conftest.er1
15072 grep -v '^ *+' conftest.er1
>conftest.err
15074 cat conftest.err
>&5
15075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15076 (exit $ac_status); } && {
15077 test -z "$ac_c_werror_flag" ||
15078 test ! -s conftest.err
15079 } && test -s conftest
$ac_exeext &&
15080 $as_test_x conftest
$ac_exeext; then
15081 ac_cv_working_alloca_h
=yes
15083 echo "$as_me: failed program was:" >&5
15084 sed 's/^/| /' conftest.
$ac_ext >&5
15086 ac_cv_working_alloca_h
=no
15089 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15090 conftest
$ac_exeext conftest.
$ac_ext
15092 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15093 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15094 if test $ac_cv_working_alloca_h = yes; then
15096 cat >>confdefs.h
<<\_ACEOF
15097 #define HAVE_ALLOCA_H 1
15102 { echo "$as_me:$LINENO: checking for alloca" >&5
15103 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15104 if test "${ac_cv_func_alloca_works+set}" = set; then
15105 echo $ECHO_N "(cached) $ECHO_C" >&6
15107 cat >conftest.
$ac_ext <<_ACEOF
15110 cat confdefs.h
>>conftest.
$ac_ext
15111 cat >>conftest.
$ac_ext <<_ACEOF
15112 /* end confdefs.h. */
15114 # define alloca __builtin_alloca
15117 # include <malloc.h>
15118 # define alloca _alloca
15120 # ifdef HAVE_ALLOCA_H
15121 # include <alloca.h>
15126 # ifndef alloca /* predefined by HP cc +Olibcalls */
15137 char *p = (char *) alloca (1);
15143 rm -f conftest.
$ac_objext conftest
$ac_exeext
15144 if { (ac_try
="$ac_link"
15145 case "(($ac_try" in
15146 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15147 *) ac_try_echo=$ac_try;;
15149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15150 (eval "$ac_link") 2>conftest.er1
15152 grep -v '^ *+' conftest.er1 >conftest.err
15154 cat conftest.err >&5
15155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15156 (exit $ac_status); } && {
15157 test -z "$ac_c_werror_flag" ||
15158 test ! -s conftest.err
15159 } && test -s conftest$ac_exeext &&
15160 $as_test_x conftest$ac_exeext; then
15161 ac_cv_func_alloca_works=yes
15163 echo "$as_me: failed program was:" >&5
15164 sed 's/^/| /' conftest.$ac_ext >&5
15166 ac_cv_func_alloca_works=no
15169 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15170 conftest$ac_exeext conftest.$ac_ext
15172 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15173 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15175 if test $ac_cv_func_alloca_works = yes; then
15177 cat >>confdefs.h <<\_ACEOF
15178 #define HAVE_ALLOCA 1
15182 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15183 # that cause trouble. Some versions do not even contain alloca or
15184 # contain a buggy version. If you still want to use their alloca,
15185 # use ar to extract alloca.o from them instead of compiling alloca.c.
15187 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15189 cat >>confdefs.h <<\_ACEOF
15194 { echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
15195 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks...
$ECHO_C" >&6; }
15196 if test "${ac_cv_os_cray+set}" = set; then
15197 echo $ECHO_N "(cached
) $ECHO_C" >&6
15199 cat >conftest.$ac_ext <<_ACEOF
15202 cat confdefs.h >>conftest.$ac_ext
15203 cat >>conftest.$ac_ext <<_ACEOF
15204 /* end confdefs.h. */
15205 #if defined CRAY && ! defined CRAY2
15212 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
15213 $EGREP "webecray
" >/dev/null 2>&1; then
15221 { echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
15222 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15223 if test $ac_cv_os_cray = yes; then
15224 for ac_func in _getb67 GETB67 getb67; do
15225 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15226 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15227 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15228 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15229 echo $ECHO_N "(cached
) $ECHO_C" >&6
15231 cat >conftest.$ac_ext <<_ACEOF
15234 cat confdefs.h >>conftest.$ac_ext
15235 cat >>conftest.$ac_ext <<_ACEOF
15236 /* end confdefs.h. */
15237 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15238 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15239 #define $ac_func innocuous_$ac_func
15241 /* System header to define __stub macros and hopefully few prototypes,
15242 which can conflict with char $ac_func (); below.
15243 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15244 <limits.h> exists even on freestanding compilers. */
15247 # include <limits.h>
15249 # include <assert.h>
15254 /* Override any GCC internal prototype to avoid an error.
15255 Use char because int might match the return type of a GCC
15256 builtin and then its argument prototype would still apply. */
15261 /* The GNU C library defines this for functions which it implements
15262 to always fail with ENOSYS. Some functions are actually named
15263 something starting with __ and the normal name is an alias. */
15264 #if defined __stub_$ac_func || defined __stub___$ac_func
15271 return $ac_func ();
15276 rm -f conftest.$ac_objext conftest$ac_exeext
15277 if { (ac_try="$ac_link"
15278 case "(($ac_try" in
15279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15280 *) ac_try_echo=$ac_try;;
15282 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15283 (eval "$ac_link") 2>conftest.er1
15285 grep -v '^ *+' conftest.er1 >conftest.err
15287 cat conftest.err >&5
15288 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15289 (exit $ac_status); } && {
15290 test -z "$ac_c_werror_flag" ||
15291 test ! -s conftest.err
15292 } && test -s conftest$ac_exeext &&
15293 $as_test_x conftest$ac_exeext; then
15294 eval "$as_ac_var=yes"
15296 echo "$as_me: failed program was
:" >&5
15297 sed 's/^/| /' conftest.$ac_ext >&5
15299 eval "$as_ac_var=no
"
15302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15303 conftest$ac_exeext conftest.$ac_ext
15305 ac_res=`eval echo '${'$as_ac_var'}'`
15306 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15307 echo "${ECHO_T}$ac_res" >&6; }
15308 if test `eval echo '${'$as_ac_var'}'` = yes; then
15310 cat >>confdefs.h <<_ACEOF
15311 #define CRAY_STACKSEG_END $ac_func
15320 { echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
15321 echo $ECHO_N "checking stack direction
for C alloca...
$ECHO_C" >&6; }
15322 if test "${ac_cv_c_stack_direction+set}" = set; then
15323 echo $ECHO_N "(cached
) $ECHO_C" >&6
15325 if test "$cross_compiling" = yes; then
15326 ac_cv_c_stack_direction=0
15328 cat >conftest.$ac_ext <<_ACEOF
15331 cat confdefs.h >>conftest.$ac_ext
15332 cat >>conftest.$ac_ext <<_ACEOF
15333 /* end confdefs.h. */
15334 $ac_includes_default
15336 find_stack_direction ()
15338 static char *addr = 0;
15343 return find_stack_direction ();
15346 return (&dummy > addr) ? 1 : -1;
15352 return find_stack_direction () < 0;
15355 rm -f conftest$ac_exeext
15356 if { (ac_try="$ac_link"
15357 case "(($ac_try" in
15358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15359 *) ac_try_echo=$ac_try;;
15361 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15362 (eval "$ac_link") 2>&5
15364 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15365 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15366 { (case "(($ac_try" in
15367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15368 *) ac_try_echo=$ac_try;;
15370 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15371 (eval "$ac_try") 2>&5
15373 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15374 (exit $ac_status); }; }; then
15375 ac_cv_c_stack_direction=1
15377 echo "$as_me: program exited with status
$ac_status" >&5
15378 echo "$as_me: failed program was
:" >&5
15379 sed 's/^/| /' conftest.$ac_ext >&5
15381 ( exit $ac_status )
15382 ac_cv_c_stack_direction=-1
15384 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15389 { echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
15390 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15392 cat >>confdefs.h <<_ACEOF
15393 #define STACK_DIRECTION $ac_cv_c_stack_direction
15400 if test x"$ac_cv_func_alloca_works" != xyes; then
15401 { { echo "$as_me:$LINENO: error
: a system implementation of alloca is required
" >&5
15402 echo "$as_me: error
: a system implementation of alloca is required
" >&2;}
15403 { (exit 1); exit 1; }; }
15406 # fmod, logb, and frexp are found in -lm on most systems.
15407 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15409 { echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
15410 echo $ECHO_N "checking
for sqrt
in -lm...
$ECHO_C" >&6; }
15411 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15412 echo $ECHO_N "(cached
) $ECHO_C" >&6
15414 ac_check_lib_save_LIBS=$LIBS
15416 cat >conftest.$ac_ext <<_ACEOF
15419 cat confdefs.h >>conftest.$ac_ext
15420 cat >>conftest.$ac_ext <<_ACEOF
15421 /* end confdefs.h. */
15423 /* Override any GCC internal prototype to avoid an error.
15424 Use char because int might match the return type of a GCC
15425 builtin and then its argument prototype would still apply. */
15438 rm -f conftest.$ac_objext conftest$ac_exeext
15439 if { (ac_try="$ac_link"
15440 case "(($ac_try" in
15441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15442 *) ac_try_echo=$ac_try;;
15444 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15445 (eval "$ac_link") 2>conftest.er1
15447 grep -v '^ *+' conftest.er1 >conftest.err
15449 cat conftest.err >&5
15450 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15451 (exit $ac_status); } && {
15452 test -z "$ac_c_werror_flag" ||
15453 test ! -s conftest.err
15454 } && test -s conftest$ac_exeext &&
15455 $as_test_x conftest$ac_exeext; then
15456 ac_cv_lib_m_sqrt=yes
15458 echo "$as_me: failed program was
:" >&5
15459 sed 's/^/| /' conftest.$ac_ext >&5
15461 ac_cv_lib_m_sqrt=no
15464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15465 conftest$ac_exeext conftest.$ac_ext
15466 LIBS=$ac_check_lib_save_LIBS
15468 { echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
15469 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15470 if test $ac_cv_lib_m_sqrt = yes; then
15471 cat >>confdefs.h <<_ACEOF
15472 #define HAVE_LIBM 1
15480 # Check for mail-locking functions in a "mail" library. Probably this should
15481 # have the same check as for liblockfile below.
15483 { echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
15484 echo $ECHO_N "checking
for maillock
in -lmail...
$ECHO_C" >&6; }
15485 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15486 echo $ECHO_N "(cached
) $ECHO_C" >&6
15488 ac_check_lib_save_LIBS=$LIBS
15489 LIBS="-lmail $LIBS"
15490 cat >conftest.$ac_ext <<_ACEOF
15493 cat confdefs.h >>conftest.$ac_ext
15494 cat >>conftest.$ac_ext <<_ACEOF
15495 /* end confdefs.h. */
15497 /* Override any GCC internal prototype to avoid an error.
15498 Use char because int might match the return type of a GCC
15499 builtin and then its argument prototype would still apply. */
15507 return maillock ();
15512 rm -f conftest.$ac_objext conftest$ac_exeext
15513 if { (ac_try="$ac_link"
15514 case "(($ac_try" in
15515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15516 *) ac_try_echo=$ac_try;;
15518 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15519 (eval "$ac_link") 2>conftest.er1
15521 grep -v '^ *+' conftest.er1 >conftest.err
15523 cat conftest.err >&5
15524 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15525 (exit $ac_status); } && {
15526 test -z "$ac_c_werror_flag" ||
15527 test ! -s conftest.err
15528 } && test -s conftest$ac_exeext &&
15529 $as_test_x conftest$ac_exeext; then
15530 ac_cv_lib_mail_maillock=yes
15532 echo "$as_me: failed program was
:" >&5
15533 sed 's/^/| /' conftest.$ac_ext >&5
15535 ac_cv_lib_mail_maillock=no
15538 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15539 conftest$ac_exeext conftest.$ac_ext
15540 LIBS=$ac_check_lib_save_LIBS
15542 { echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
15543 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15544 if test $ac_cv_lib_mail_maillock = yes; then
15545 cat >>confdefs.h <<_ACEOF
15546 #define HAVE_LIBMAIL 1
15549 LIBS="-lmail $LIBS"
15554 { echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
15555 echo $ECHO_N "checking
for maillock
in -llockfile...
$ECHO_C" >&6; }
15556 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15557 echo $ECHO_N "(cached
) $ECHO_C" >&6
15559 ac_check_lib_save_LIBS=$LIBS
15560 LIBS="-llockfile $LIBS"
15561 cat >conftest.$ac_ext <<_ACEOF
15564 cat confdefs.h >>conftest.$ac_ext
15565 cat >>conftest.$ac_ext <<_ACEOF
15566 /* end confdefs.h. */
15568 /* Override any GCC internal prototype to avoid an error.
15569 Use char because int might match the return type of a GCC
15570 builtin and then its argument prototype would still apply. */
15578 return maillock ();
15583 rm -f conftest.$ac_objext conftest$ac_exeext
15584 if { (ac_try="$ac_link"
15585 case "(($ac_try" in
15586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15587 *) ac_try_echo=$ac_try;;
15589 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15590 (eval "$ac_link") 2>conftest.er1
15592 grep -v '^ *+' conftest.er1 >conftest.err
15594 cat conftest.err >&5
15595 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15596 (exit $ac_status); } && {
15597 test -z "$ac_c_werror_flag" ||
15598 test ! -s conftest.err
15599 } && test -s conftest$ac_exeext &&
15600 $as_test_x conftest$ac_exeext; then
15601 ac_cv_lib_lockfile_maillock=yes
15603 echo "$as_me: failed program was
:" >&5
15604 sed 's/^/| /' conftest.$ac_ext >&5
15606 ac_cv_lib_lockfile_maillock=no
15609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15610 conftest$ac_exeext conftest.$ac_ext
15611 LIBS=$ac_check_lib_save_LIBS
15613 { echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
15614 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15615 if test $ac_cv_lib_lockfile_maillock = yes; then
15616 cat >>confdefs.h <<_ACEOF
15617 #define HAVE_LIBLOCKFILE 1
15620 LIBS="-llockfile $LIBS"
15624 # If we have the shared liblockfile, assume we must use it for mail
15625 # locking (e.g. Debian). If we couldn't link against liblockfile
15626 # (no liblockfile.a installed), ensure that we don't need to.
15627 if test "$ac_cv_lib_lockfile_maillock" = no; then
15628 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
15629 set dummy liblockfile.so; ac_word=$2
15630 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
15631 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
15632 if test "${ac_cv_prog_liblockfile+set}" = set; then
15633 echo $ECHO_N "(cached
) $ECHO_C" >&6
15635 if test -n "$liblockfile"; then
15636 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15639 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
15640 for as_dir in $as_dummy
15643 test -z "$as_dir" && as_dir=.
15644 for ac_exec_ext in '' $ac_executable_extensions; do
15645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15646 ac_cv_prog_liblockfile="yes"
15647 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15654 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
15657 liblockfile=$ac_cv_prog_liblockfile
15658 if test -n "$liblockfile"; then
15659 { echo "$as_me:$LINENO: result
: $liblockfile" >&5
15660 echo "${ECHO_T}$liblockfile" >&6; }
15662 { echo "$as_me:$LINENO: result
: no
" >&5
15663 echo "${ECHO_T}no
" >&6; }
15667 if test $ac_cv_prog_liblockfile = yes; then
15668 { { echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
15669 This probably means that movemail could lose mail.
15670 There may be a \`development' package to
install containing liblockfile.
" >&5
15671 echo "$as_me: error
: Shared liblockfile found but can
't link against it.
15672 This probably means that movemail could lose mail.
15673 There may be a \`development' package to
install containing liblockfile.
" >&2;}
15674 { (exit 1); exit 1; }; }
15679 for ac_func in touchlock
15681 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15682 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15683 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15684 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15685 echo $ECHO_N "(cached
) $ECHO_C" >&6
15687 cat >conftest.$ac_ext <<_ACEOF
15690 cat confdefs.h >>conftest.$ac_ext
15691 cat >>conftest.$ac_ext <<_ACEOF
15692 /* end confdefs.h. */
15693 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15694 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15695 #define $ac_func innocuous_$ac_func
15697 /* System header to define __stub macros and hopefully few prototypes,
15698 which can conflict with char $ac_func (); below.
15699 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15700 <limits.h> exists even on freestanding compilers. */
15703 # include <limits.h>
15705 # include <assert.h>
15710 /* Override any GCC internal prototype to avoid an error.
15711 Use char because int might match the return type of a GCC
15712 builtin and then its argument prototype would still apply. */
15717 /* The GNU C library defines this for functions which it implements
15718 to always fail with ENOSYS. Some functions are actually named
15719 something starting with __ and the normal name is an alias. */
15720 #if defined __stub_$ac_func || defined __stub___$ac_func
15727 return $ac_func ();
15732 rm -f conftest.$ac_objext conftest$ac_exeext
15733 if { (ac_try="$ac_link"
15734 case "(($ac_try" in
15735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15736 *) ac_try_echo=$ac_try;;
15738 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15739 (eval "$ac_link") 2>conftest.er1
15741 grep -v '^ *+' conftest.er1 >conftest.err
15743 cat conftest.err >&5
15744 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15745 (exit $ac_status); } && {
15746 test -z "$ac_c_werror_flag" ||
15747 test ! -s conftest.err
15748 } && test -s conftest$ac_exeext &&
15749 $as_test_x conftest$ac_exeext; then
15750 eval "$as_ac_var=yes"
15752 echo "$as_me: failed program was
:" >&5
15753 sed 's/^/| /' conftest.$ac_ext >&5
15755 eval "$as_ac_var=no
"
15758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15759 conftest$ac_exeext conftest.$ac_ext
15761 ac_res=`eval echo '${'$as_ac_var'}'`
15762 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15763 echo "${ECHO_T}$ac_res" >&6; }
15764 if test `eval echo '${'$as_ac_var'}'` = yes; then
15765 cat >>confdefs.h <<_ACEOF
15766 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15773 for ac_header in maillock.h
15775 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15776 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15777 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15778 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15779 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15780 echo $ECHO_N "(cached
) $ECHO_C" >&6
15782 ac_res=`eval echo '${'$as_ac_Header'}'`
15783 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15784 echo "${ECHO_T}$ac_res" >&6; }
15786 # Is the header compilable?
15787 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15788 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15789 cat >conftest.$ac_ext <<_ACEOF
15792 cat confdefs.h >>conftest.$ac_ext
15793 cat >>conftest.$ac_ext <<_ACEOF
15794 /* end confdefs.h. */
15795 $ac_includes_default
15796 #include <$ac_header>
15798 rm -f conftest.$ac_objext
15799 if { (ac_try="$ac_compile"
15800 case "(($ac_try" in
15801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15802 *) ac_try_echo=$ac_try;;
15804 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15805 (eval "$ac_compile") 2>conftest.er1
15807 grep -v '^ *+' conftest.er1 >conftest.err
15809 cat conftest.err >&5
15810 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15811 (exit $ac_status); } && {
15812 test -z "$ac_c_werror_flag" ||
15813 test ! -s conftest.err
15814 } && test -s conftest.$ac_objext; then
15815 ac_header_compiler=yes
15817 echo "$as_me: failed program was
:" >&5
15818 sed 's/^/| /' conftest.$ac_ext >&5
15820 ac_header_compiler=no
15823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15824 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15825 echo "${ECHO_T}$ac_header_compiler" >&6; }
15827 # Is the header present?
15828 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15829 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15830 cat >conftest.$ac_ext <<_ACEOF
15833 cat confdefs.h >>conftest.$ac_ext
15834 cat >>conftest.$ac_ext <<_ACEOF
15835 /* end confdefs.h. */
15836 #include <$ac_header>
15838 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15839 case "(($ac_try" in
15840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15841 *) ac_try_echo=$ac_try;;
15843 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15844 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15846 grep -v '^ *+' conftest.er1 >conftest.err
15848 cat conftest.err >&5
15849 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15850 (exit $ac_status); } >/dev/null && {
15851 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15852 test ! -s conftest.err
15854 ac_header_preproc=yes
15856 echo "$as_me: failed program was
:" >&5
15857 sed 's/^/| /' conftest.$ac_ext >&5
15859 ac_header_preproc=no
15862 rm -f conftest.err conftest.$ac_ext
15863 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15864 echo "${ECHO_T}$ac_header_preproc" >&6; }
15866 # So? What about this header?
15867 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15869 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15870 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15871 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15872 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15873 ac_header_preproc=yes
15876 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15877 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15878 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15879 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15880 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15881 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15882 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15883 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15884 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15885 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15886 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15887 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15891 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15892 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15893 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15894 echo $ECHO_N "(cached
) $ECHO_C" >&6
15896 eval "$as_ac_Header=\
$ac_header_preproc"
15898 ac_res=`eval echo '${'$as_ac_Header'}'`
15899 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15900 echo "${ECHO_T}$ac_res" >&6; }
15903 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15904 cat >>confdefs.h <<_ACEOF
15905 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15981 for ac_func in gethostname getdomainname dup2 \
15982 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15983 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
15984 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15985 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15986 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15987 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15988 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15989 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15991 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15992 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15993 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15994 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15995 echo $ECHO_N "(cached
) $ECHO_C" >&6
15997 cat >conftest.$ac_ext <<_ACEOF
16000 cat confdefs.h >>conftest.$ac_ext
16001 cat >>conftest.$ac_ext <<_ACEOF
16002 /* end confdefs.h. */
16003 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16004 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16005 #define $ac_func innocuous_$ac_func
16007 /* System header to define __stub macros and hopefully few prototypes,
16008 which can conflict with char $ac_func (); below.
16009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16010 <limits.h> exists even on freestanding compilers. */
16013 # include <limits.h>
16015 # include <assert.h>
16020 /* Override any GCC internal prototype to avoid an error.
16021 Use char because int might match the return type of a GCC
16022 builtin and then its argument prototype would still apply. */
16027 /* The GNU C library defines this for functions which it implements
16028 to always fail with ENOSYS. Some functions are actually named
16029 something starting with __ and the normal name is an alias. */
16030 #if defined __stub_$ac_func || defined __stub___$ac_func
16037 return $ac_func ();
16042 rm -f conftest.$ac_objext conftest$ac_exeext
16043 if { (ac_try="$ac_link"
16044 case "(($ac_try" in
16045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16046 *) ac_try_echo=$ac_try;;
16048 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16049 (eval "$ac_link") 2>conftest.er1
16051 grep -v '^ *+' conftest.er1 >conftest.err
16053 cat conftest.err >&5
16054 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16055 (exit $ac_status); } && {
16056 test -z "$ac_c_werror_flag" ||
16057 test ! -s conftest.err
16058 } && test -s conftest$ac_exeext &&
16059 $as_test_x conftest$ac_exeext; then
16060 eval "$as_ac_var=yes"
16062 echo "$as_me: failed program was
:" >&5
16063 sed 's/^/| /' conftest.$ac_ext >&5
16065 eval "$as_ac_var=no
"
16068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16069 conftest$ac_exeext conftest.$ac_ext
16071 ac_res=`eval echo '${'$as_ac_var'}'`
16072 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16073 echo "${ECHO_T}$ac_res" >&6; }
16074 if test `eval echo '${'$as_ac_var'}'` = yes; then
16075 cat >>confdefs.h <<_ACEOF
16076 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16084 for ac_header in sys/un.h
16086 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16087 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16088 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16089 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16090 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16091 echo $ECHO_N "(cached
) $ECHO_C" >&6
16093 ac_res=`eval echo '${'$as_ac_Header'}'`
16094 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16095 echo "${ECHO_T}$ac_res" >&6; }
16097 # Is the header compilable?
16098 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16099 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16100 cat >conftest.$ac_ext <<_ACEOF
16103 cat confdefs.h >>conftest.$ac_ext
16104 cat >>conftest.$ac_ext <<_ACEOF
16105 /* end confdefs.h. */
16106 $ac_includes_default
16107 #include <$ac_header>
16109 rm -f conftest.$ac_objext
16110 if { (ac_try="$ac_compile"
16111 case "(($ac_try" in
16112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16113 *) ac_try_echo=$ac_try;;
16115 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16116 (eval "$ac_compile") 2>conftest.er1
16118 grep -v '^ *+' conftest.er1 >conftest.err
16120 cat conftest.err >&5
16121 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16122 (exit $ac_status); } && {
16123 test -z "$ac_c_werror_flag" ||
16124 test ! -s conftest.err
16125 } && test -s conftest.$ac_objext; then
16126 ac_header_compiler=yes
16128 echo "$as_me: failed program was
:" >&5
16129 sed 's/^/| /' conftest.$ac_ext >&5
16131 ac_header_compiler=no
16134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16135 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16136 echo "${ECHO_T}$ac_header_compiler" >&6; }
16138 # Is the header present?
16139 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16140 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16141 cat >conftest.$ac_ext <<_ACEOF
16144 cat confdefs.h >>conftest.$ac_ext
16145 cat >>conftest.$ac_ext <<_ACEOF
16146 /* end confdefs.h. */
16147 #include <$ac_header>
16149 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16150 case "(($ac_try" in
16151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16152 *) ac_try_echo=$ac_try;;
16154 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16155 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16157 grep -v '^ *+' conftest.er1 >conftest.err
16159 cat conftest.err >&5
16160 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16161 (exit $ac_status); } >/dev/null && {
16162 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16163 test ! -s conftest.err
16165 ac_header_preproc=yes
16167 echo "$as_me: failed program was
:" >&5
16168 sed 's/^/| /' conftest.$ac_ext >&5
16170 ac_header_preproc=no
16173 rm -f conftest.err conftest.$ac_ext
16174 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16175 echo "${ECHO_T}$ac_header_preproc" >&6; }
16177 # So? What about this header?
16178 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16180 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16181 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16182 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16183 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16184 ac_header_preproc=yes
16187 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16188 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16189 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16190 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16191 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16192 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16193 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16194 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16195 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16196 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16197 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16198 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16202 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16203 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16204 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16205 echo $ECHO_N "(cached
) $ECHO_C" >&6
16207 eval "$as_ac_Header=\
$ac_header_preproc"
16209 ac_res=`eval echo '${'$as_ac_Header'}'`
16210 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16211 echo "${ECHO_T}$ac_res" >&6; }
16214 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16215 cat >>confdefs.h <<_ACEOF
16216 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16228 for ac_header in $ac_header_list
16230 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16231 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16232 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16233 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16234 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16235 echo $ECHO_N "(cached
) $ECHO_C" >&6
16237 ac_res=`eval echo '${'$as_ac_Header'}'`
16238 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16239 echo "${ECHO_T}$ac_res" >&6; }
16241 # Is the header compilable?
16242 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16243 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16244 cat >conftest.$ac_ext <<_ACEOF
16247 cat confdefs.h >>conftest.$ac_ext
16248 cat >>conftest.$ac_ext <<_ACEOF
16249 /* end confdefs.h. */
16250 $ac_includes_default
16251 #include <$ac_header>
16253 rm -f conftest.$ac_objext
16254 if { (ac_try="$ac_compile"
16255 case "(($ac_try" in
16256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16257 *) ac_try_echo=$ac_try;;
16259 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16260 (eval "$ac_compile") 2>conftest.er1
16262 grep -v '^ *+' conftest.er1 >conftest.err
16264 cat conftest.err >&5
16265 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16266 (exit $ac_status); } && {
16267 test -z "$ac_c_werror_flag" ||
16268 test ! -s conftest.err
16269 } && test -s conftest.$ac_objext; then
16270 ac_header_compiler=yes
16272 echo "$as_me: failed program was
:" >&5
16273 sed 's/^/| /' conftest.$ac_ext >&5
16275 ac_header_compiler=no
16278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16279 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16280 echo "${ECHO_T}$ac_header_compiler" >&6; }
16282 # Is the header present?
16283 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16284 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16285 cat >conftest.$ac_ext <<_ACEOF
16288 cat confdefs.h >>conftest.$ac_ext
16289 cat >>conftest.$ac_ext <<_ACEOF
16290 /* end confdefs.h. */
16291 #include <$ac_header>
16293 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16294 case "(($ac_try" in
16295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16296 *) ac_try_echo=$ac_try;;
16298 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16299 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16301 grep -v '^ *+' conftest.er1 >conftest.err
16303 cat conftest.err >&5
16304 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16305 (exit $ac_status); } >/dev/null && {
16306 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16307 test ! -s conftest.err
16309 ac_header_preproc=yes
16311 echo "$as_me: failed program was
:" >&5
16312 sed 's/^/| /' conftest.$ac_ext >&5
16314 ac_header_preproc=no
16317 rm -f conftest.err conftest.$ac_ext
16318 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16319 echo "${ECHO_T}$ac_header_preproc" >&6; }
16321 # So? What about this header?
16322 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16324 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16325 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16326 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16327 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16328 ac_header_preproc=yes
16331 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16332 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16333 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16334 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16335 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16336 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16337 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16338 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16339 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16340 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16341 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16342 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16346 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16347 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16348 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16349 echo $ECHO_N "(cached
) $ECHO_C" >&6
16351 eval "$as_ac_Header=\
$ac_header_preproc"
16353 ac_res=`eval echo '${'$as_ac_Header'}'`
16354 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16355 echo "${ECHO_T}$ac_res" >&6; }
16358 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16359 cat >>confdefs.h <<_ACEOF
16360 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16375 for ac_func in $ac_func_list
16377 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16378 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16379 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16380 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16381 echo $ECHO_N "(cached
) $ECHO_C" >&6
16383 cat >conftest.$ac_ext <<_ACEOF
16386 cat confdefs.h >>conftest.$ac_ext
16387 cat >>conftest.$ac_ext <<_ACEOF
16388 /* end confdefs.h. */
16389 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16390 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16391 #define $ac_func innocuous_$ac_func
16393 /* System header to define __stub macros and hopefully few prototypes,
16394 which can conflict with char $ac_func (); below.
16395 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16396 <limits.h> exists even on freestanding compilers. */
16399 # include <limits.h>
16401 # include <assert.h>
16406 /* Override any GCC internal prototype to avoid an error.
16407 Use char because int might match the return type of a GCC
16408 builtin and then its argument prototype would still apply. */
16413 /* The GNU C library defines this for functions which it implements
16414 to always fail with ENOSYS. Some functions are actually named
16415 something starting with __ and the normal name is an alias. */
16416 #if defined __stub_$ac_func || defined __stub___$ac_func
16423 return $ac_func ();
16428 rm -f conftest.$ac_objext conftest$ac_exeext
16429 if { (ac_try="$ac_link"
16430 case "(($ac_try" in
16431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16432 *) ac_try_echo=$ac_try;;
16434 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16435 (eval "$ac_link") 2>conftest.er1
16437 grep -v '^ *+' conftest.er1 >conftest.err
16439 cat conftest.err >&5
16440 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16441 (exit $ac_status); } && {
16442 test -z "$ac_c_werror_flag" ||
16443 test ! -s conftest.err
16444 } && test -s conftest$ac_exeext &&
16445 $as_test_x conftest$ac_exeext; then
16446 eval "$as_ac_var=yes"
16448 echo "$as_me: failed program was
:" >&5
16449 sed 's/^/| /' conftest.$ac_ext >&5
16451 eval "$as_ac_var=no
"
16454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16455 conftest$ac_exeext conftest.$ac_ext
16457 ac_res=`eval echo '${'$as_ac_var'}'`
16458 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16459 echo "${ECHO_T}$ac_res" >&6; }
16460 if test `eval echo '${'$as_ac_var'}'` = yes; then
16461 cat >>confdefs.h <<_ACEOF
16462 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16484 { echo "$as_me:$LINENO: checking
for working mktime
" >&5
16485 echo $ECHO_N "checking
for working mktime...
$ECHO_C" >&6; }
16486 if test "${ac_cv_func_working_mktime+set}" = set; then
16487 echo $ECHO_N "(cached
) $ECHO_C" >&6
16489 if test "$cross_compiling" = yes; then
16490 ac_cv_func_working_mktime=no
16492 cat >conftest.$ac_ext <<_ACEOF
16495 cat confdefs.h >>conftest.$ac_ext
16496 cat >>conftest.$ac_ext <<_ACEOF
16497 /* end confdefs.h. */
16498 /* Test program from Paul Eggert and Tony Leneis. */
16499 #ifdef TIME_WITH_SYS_TIME
16500 # include <sys/time.h>
16503 # ifdef HAVE_SYS_TIME_H
16504 # include <sys/time.h>
16510 #include <stdlib.h>
16512 #ifdef HAVE_UNISTD_H
16513 # include <unistd.h>
16517 # define alarm(X) /* empty */
16520 /* Work around redefinition to rpl_putenv by other config tests. */
16523 static time_t time_t_max;
16524 static time_t time_t_min;
16526 /* Values we'll use to set the TZ environment variable. */
16527 static char *tz_strings[] = {
16528 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
16529 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
16531 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16533 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16534 Based on a problem report from Andreas Jaeger. */
16536 spring_forward_gap ()
16538 /* glibc (up to about 1998-10-07) failed this test. */
16541 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16542 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16543 on systems that don't support the Olson extension, or don't have the
16544 full zoneinfo tables installed. */
16545 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16554 return mktime (&tm) != (time_t) -1;
16562 return ! (lt = localtime (&now)) || mktime (lt) == now;
16569 return (mktime_test1 (now)
16570 && mktime_test1 ((time_t) (time_t_max - now))
16571 && mktime_test1 ((time_t) (time_t_min + now)));
16577 /* Based on code from Ariel Faigon. */
16587 return tm.tm_mon == 2 && tm.tm_mday == 31;
16596 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16597 now = mktime (&tm);
16598 if (now != (time_t) -1)
16600 struct tm *lt = localtime (&now);
16602 && lt->tm_year == tm.tm_year
16603 && lt->tm_mon == tm.tm_mon
16604 && lt->tm_mday == tm.tm_mday
16605 && lt->tm_hour == tm.tm_hour
16606 && lt->tm_min == tm.tm_min
16607 && lt->tm_sec == tm.tm_sec
16608 && lt->tm_yday == tm.tm_yday
16609 && lt->tm_wday == tm.tm_wday
16610 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16611 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16620 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16621 ignoring leap seconds. */
16622 unsigned long int answer = 2527315200UL;
16626 tm.tm_year = 2050 - 1900;
16629 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16632 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16633 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16634 on systems that don't support the Olson extension, or don't have the
16635 full zoneinfo tables installed. */
16636 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16640 /* Check that the result is either a failure, or close enough
16641 to the correct answer that we can assume the discrepancy is
16642 due to leap seconds. */
16643 return (t == (time_t) -1
16644 || (0 < t && answer - 120 <= t && t <= answer + 120));
16653 /* This test makes some buggy mktime implementations loop.
16654 Give up after 60 seconds; a mktime slower than that
16655 isn't worth using anyway. */
16658 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16661 if ((time_t) -1 < 0)
16662 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16664 delta = time_t_max / 997; /* a suitable prime number */
16665 for (i = 0; i < N_STRINGS; i++)
16668 putenv (tz_strings[i]);
16670 for (t = 0; t <= time_t_max - delta; t += delta)
16671 if (! mktime_test (t))
16673 if (! (mktime_test ((time_t) 1)
16674 && mktime_test ((time_t) (60 * 60))
16675 && mktime_test ((time_t) (60 * 60 * 24))))
16678 for (j = 1; 0 < j; j *= 2)
16679 if (! bigtime_test (j))
16681 if (! bigtime_test (j - 1))
16684 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16687 rm -f conftest$ac_exeext
16688 if { (ac_try="$ac_link"
16689 case "(($ac_try" in
16690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16691 *) ac_try_echo=$ac_try;;
16693 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16694 (eval "$ac_link") 2>&5
16696 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16697 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16698 { (case "(($ac_try" in
16699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16700 *) ac_try_echo=$ac_try;;
16702 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16703 (eval "$ac_try") 2>&5
16705 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16706 (exit $ac_status); }; }; then
16707 ac_cv_func_working_mktime=yes
16709 echo "$as_me: program exited with status
$ac_status" >&5
16710 echo "$as_me: failed program was
:" >&5
16711 sed 's/^/| /' conftest.$ac_ext >&5
16713 ( exit $ac_status )
16714 ac_cv_func_working_mktime=no
16716 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16721 { echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
16722 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16723 if test $ac_cv_func_working_mktime = no; then
16724 case " $LIBOBJS " in
16725 *" mktime.
$ac_objext "* ) ;;
16726 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
16732 if test "$ac_cv_func_working_mktime" = no; then
16734 cat >>confdefs.h <<\_ACEOF
16735 #define BROKEN_MKTIME 1
16740 ac_have_func=no # yes means we've found a way to get the load average.
16742 # Make sure getloadavg.c is where it belongs, at configure-time.
16743 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
16744 { { echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
16745 echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
16746 { (exit 1); exit 1; }; }
16750 # Check for getloadavg, but be sure not to touch the cache variable.
16751 ({ echo "$as_me:$LINENO: checking
for getloadavg
" >&5
16752 echo $ECHO_N "checking
for getloadavg...
$ECHO_C" >&6; }
16753 if test "${ac_cv_func_getloadavg+set}" = set; then
16754 echo $ECHO_N "(cached
) $ECHO_C" >&6
16756 cat >conftest.$ac_ext <<_ACEOF
16759 cat confdefs.h >>conftest.$ac_ext
16760 cat >>conftest.$ac_ext <<_ACEOF
16761 /* end confdefs.h. */
16762 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16763 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16764 #define getloadavg innocuous_getloadavg
16766 /* System header to define __stub macros and hopefully few prototypes,
16767 which can conflict with char getloadavg (); below.
16768 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16769 <limits.h> exists even on freestanding compilers. */
16772 # include <limits.h>
16774 # include <assert.h>
16779 /* Override any GCC internal prototype to avoid an error.
16780 Use char because int might match the return type of a GCC
16781 builtin and then its argument prototype would still apply. */
16785 char getloadavg ();
16786 /* The GNU C library defines this for functions which it implements
16787 to always fail with ENOSYS. Some functions are actually named
16788 something starting with __ and the normal name is an alias. */
16789 #if defined __stub_getloadavg || defined __stub___getloadavg
16796 return getloadavg ();
16801 rm -f conftest.$ac_objext conftest$ac_exeext
16802 if { (ac_try="$ac_link"
16803 case "(($ac_try" in
16804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16805 *) ac_try_echo=$ac_try;;
16807 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16808 (eval "$ac_link") 2>conftest.er1
16810 grep -v '^ *+' conftest.er1 >conftest.err
16812 cat conftest.err >&5
16813 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16814 (exit $ac_status); } && {
16815 test -z "$ac_c_werror_flag" ||
16816 test ! -s conftest.err
16817 } && test -s conftest$ac_exeext &&
16818 $as_test_x conftest$ac_exeext; then
16819 ac_cv_func_getloadavg=yes
16821 echo "$as_me: failed program was
:" >&5
16822 sed 's/^/| /' conftest.$ac_ext >&5
16824 ac_cv_func_getloadavg=no
16827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16828 conftest$ac_exeext conftest.$ac_ext
16830 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
16831 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16832 if test $ac_cv_func_getloadavg = yes; then
16837 ) && ac_have_func=yes
16839 # On HPUX9, an unprivileged user can get load averages through this function.
16841 for ac_func in pstat_getdynamic
16843 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16844 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16845 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16846 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16847 echo $ECHO_N "(cached
) $ECHO_C" >&6
16849 cat >conftest.$ac_ext <<_ACEOF
16852 cat confdefs.h >>conftest.$ac_ext
16853 cat >>conftest.$ac_ext <<_ACEOF
16854 /* end confdefs.h. */
16855 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16856 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16857 #define $ac_func innocuous_$ac_func
16859 /* System header to define __stub macros and hopefully few prototypes,
16860 which can conflict with char $ac_func (); below.
16861 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16862 <limits.h> exists even on freestanding compilers. */
16865 # include <limits.h>
16867 # include <assert.h>
16872 /* Override any GCC internal prototype to avoid an error.
16873 Use char because int might match the return type of a GCC
16874 builtin and then its argument prototype would still apply. */
16879 /* The GNU C library defines this for functions which it implements
16880 to always fail with ENOSYS. Some functions are actually named
16881 something starting with __ and the normal name is an alias. */
16882 #if defined __stub_$ac_func || defined __stub___$ac_func
16889 return $ac_func ();
16894 rm -f conftest.$ac_objext conftest$ac_exeext
16895 if { (ac_try="$ac_link"
16896 case "(($ac_try" in
16897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16898 *) ac_try_echo=$ac_try;;
16900 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16901 (eval "$ac_link") 2>conftest.er1
16903 grep -v '^ *+' conftest.er1 >conftest.err
16905 cat conftest.err >&5
16906 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16907 (exit $ac_status); } && {
16908 test -z "$ac_c_werror_flag" ||
16909 test ! -s conftest.err
16910 } && test -s conftest$ac_exeext &&
16911 $as_test_x conftest$ac_exeext; then
16912 eval "$as_ac_var=yes"
16914 echo "$as_me: failed program was
:" >&5
16915 sed 's/^/| /' conftest.$ac_ext >&5
16917 eval "$as_ac_var=no
"
16920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16921 conftest$ac_exeext conftest.$ac_ext
16923 ac_res=`eval echo '${'$as_ac_var'}'`
16924 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16925 echo "${ECHO_T}$ac_res" >&6; }
16926 if test `eval echo '${'$as_ac_var'}'` = yes; then
16927 cat >>confdefs.h <<_ACEOF
16928 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16935 # Solaris has libkstat which does not require root.
16937 { echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
16938 echo $ECHO_N "checking
for kstat_open
in -lkstat...
$ECHO_C" >&6; }
16939 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16940 echo $ECHO_N "(cached
) $ECHO_C" >&6
16942 ac_check_lib_save_LIBS=$LIBS
16943 LIBS="-lkstat $LIBS"
16944 cat >conftest.$ac_ext <<_ACEOF
16947 cat confdefs.h >>conftest.$ac_ext
16948 cat >>conftest.$ac_ext <<_ACEOF
16949 /* end confdefs.h. */
16951 /* Override any GCC internal prototype to avoid an error.
16952 Use char because int might match the return type of a GCC
16953 builtin and then its argument prototype would still apply. */
16957 char kstat_open ();
16961 return kstat_open ();
16966 rm -f conftest.$ac_objext conftest$ac_exeext
16967 if { (ac_try="$ac_link"
16968 case "(($ac_try" in
16969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16970 *) ac_try_echo=$ac_try;;
16972 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16973 (eval "$ac_link") 2>conftest.er1
16975 grep -v '^ *+' conftest.er1 >conftest.err
16977 cat conftest.err >&5
16978 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16979 (exit $ac_status); } && {
16980 test -z "$ac_c_werror_flag" ||
16981 test ! -s conftest.err
16982 } && test -s conftest$ac_exeext &&
16983 $as_test_x conftest$ac_exeext; then
16984 ac_cv_lib_kstat_kstat_open=yes
16986 echo "$as_me: failed program was
:" >&5
16987 sed 's/^/| /' conftest.$ac_ext >&5
16989 ac_cv_lib_kstat_kstat_open=no
16992 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16993 conftest$ac_exeext conftest.$ac_ext
16994 LIBS=$ac_check_lib_save_LIBS
16996 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
16997 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16998 if test $ac_cv_lib_kstat_kstat_open = yes; then
16999 cat >>confdefs.h <<_ACEOF
17000 #define HAVE_LIBKSTAT 1
17003 LIBS="-lkstat $LIBS"
17007 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
17009 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17010 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17011 # to get the right answer into the cache.
17012 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17013 if test $ac_have_func = no; then
17014 { echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
17015 echo $ECHO_N "checking
for elf_begin
in -lelf...
$ECHO_C" >&6; }
17016 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17017 echo $ECHO_N "(cached
) $ECHO_C" >&6
17019 ac_check_lib_save_LIBS=$LIBS
17021 cat >conftest.$ac_ext <<_ACEOF
17024 cat confdefs.h >>conftest.$ac_ext
17025 cat >>conftest.$ac_ext <<_ACEOF
17026 /* end confdefs.h. */
17028 /* Override any GCC internal prototype to avoid an error.
17029 Use char because int might match the return type of a GCC
17030 builtin and then its argument prototype would still apply. */
17038 return elf_begin ();
17043 rm -f conftest.$ac_objext conftest$ac_exeext
17044 if { (ac_try="$ac_link"
17045 case "(($ac_try" in
17046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17047 *) ac_try_echo=$ac_try;;
17049 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17050 (eval "$ac_link") 2>conftest.er1
17052 grep -v '^ *+' conftest.er1 >conftest.err
17054 cat conftest.err >&5
17055 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17056 (exit $ac_status); } && {
17057 test -z "$ac_c_werror_flag" ||
17058 test ! -s conftest.err
17059 } && test -s conftest$ac_exeext &&
17060 $as_test_x conftest$ac_exeext; then
17061 ac_cv_lib_elf_elf_begin=yes
17063 echo "$as_me: failed program was
:" >&5
17064 sed 's/^/| /' conftest.$ac_ext >&5
17066 ac_cv_lib_elf_elf_begin=no
17069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17070 conftest$ac_exeext conftest.$ac_ext
17071 LIBS=$ac_check_lib_save_LIBS
17073 { echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
17074 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17075 if test $ac_cv_lib_elf_elf_begin = yes; then
17080 if test $ac_have_func = no; then
17081 { echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
17082 echo $ECHO_N "checking
for kvm_open
in -lkvm...
$ECHO_C" >&6; }
17083 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17084 echo $ECHO_N "(cached
) $ECHO_C" >&6
17086 ac_check_lib_save_LIBS=$LIBS
17088 cat >conftest.$ac_ext <<_ACEOF
17091 cat confdefs.h >>conftest.$ac_ext
17092 cat >>conftest.$ac_ext <<_ACEOF
17093 /* end confdefs.h. */
17095 /* Override any GCC internal prototype to avoid an error.
17096 Use char because int might match the return type of a GCC
17097 builtin and then its argument prototype would still apply. */
17105 return kvm_open ();
17110 rm -f conftest.$ac_objext conftest$ac_exeext
17111 if { (ac_try="$ac_link"
17112 case "(($ac_try" in
17113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17114 *) ac_try_echo=$ac_try;;
17116 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17117 (eval "$ac_link") 2>conftest.er1
17119 grep -v '^ *+' conftest.er1 >conftest.err
17121 cat conftest.err >&5
17122 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17123 (exit $ac_status); } && {
17124 test -z "$ac_c_werror_flag" ||
17125 test ! -s conftest.err
17126 } && test -s conftest$ac_exeext &&
17127 $as_test_x conftest$ac_exeext; then
17128 ac_cv_lib_kvm_kvm_open=yes
17130 echo "$as_me: failed program was
:" >&5
17131 sed 's/^/| /' conftest.$ac_ext >&5
17133 ac_cv_lib_kvm_kvm_open=no
17136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17137 conftest$ac_exeext conftest.$ac_ext
17138 LIBS=$ac_check_lib_save_LIBS
17140 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
17141 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17142 if test $ac_cv_lib_kvm_kvm_open = yes; then
17146 # Check for the 4.4BSD definition of getloadavg.
17147 { echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
17148 echo $ECHO_N "checking
for getloadavg
in -lutil...
$ECHO_C" >&6; }
17149 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17150 echo $ECHO_N "(cached
) $ECHO_C" >&6
17152 ac_check_lib_save_LIBS=$LIBS
17153 LIBS="-lutil $LIBS"
17154 cat >conftest.$ac_ext <<_ACEOF
17157 cat confdefs.h >>conftest.$ac_ext
17158 cat >>conftest.$ac_ext <<_ACEOF
17159 /* end confdefs.h. */
17161 /* Override any GCC internal prototype to avoid an error.
17162 Use char because int might match the return type of a GCC
17163 builtin and then its argument prototype would still apply. */
17167 char getloadavg ();
17171 return getloadavg ();
17176 rm -f conftest.$ac_objext conftest$ac_exeext
17177 if { (ac_try="$ac_link"
17178 case "(($ac_try" in
17179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17180 *) ac_try_echo=$ac_try;;
17182 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17183 (eval "$ac_link") 2>conftest.er1
17185 grep -v '^ *+' conftest.er1 >conftest.err
17187 cat conftest.err >&5
17188 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17189 (exit $ac_status); } && {
17190 test -z "$ac_c_werror_flag" ||
17191 test ! -s conftest.err
17192 } && test -s conftest$ac_exeext &&
17193 $as_test_x conftest$ac_exeext; then
17194 ac_cv_lib_util_getloadavg=yes
17196 echo "$as_me: failed program was
:" >&5
17197 sed 's/^/| /' conftest.$ac_ext >&5
17199 ac_cv_lib_util_getloadavg=no
17202 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17203 conftest$ac_exeext conftest.$ac_ext
17204 LIBS=$ac_check_lib_save_LIBS
17206 { echo "$as_me:$LINENO: result
: $ac_cv_lib_util_getloadavg" >&5
17207 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17208 if test $ac_cv_lib_util_getloadavg = yes; then
17209 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17214 if test $ac_have_func = no; then
17215 # There is a commonly available library for RS/6000 AIX.
17216 # Since it is not a standard part of AIX, it might be installed locally.
17217 ac_getloadavg_LIBS=$LIBS
17218 LIBS="-L/usr
/local
/lib
$LIBS"
17219 { echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
17220 echo $ECHO_N "checking
for getloadavg
in -lgetloadavg...
$ECHO_C" >&6; }
17221 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17222 echo $ECHO_N "(cached
) $ECHO_C" >&6
17224 ac_check_lib_save_LIBS=$LIBS
17225 LIBS="-lgetloadavg $LIBS"
17226 cat >conftest.$ac_ext <<_ACEOF
17229 cat confdefs.h >>conftest.$ac_ext
17230 cat >>conftest.$ac_ext <<_ACEOF
17231 /* end confdefs.h. */
17233 /* Override any GCC internal prototype to avoid an error.
17234 Use char because int might match the return type of a GCC
17235 builtin and then its argument prototype would still apply. */
17239 char getloadavg ();
17243 return getloadavg ();
17248 rm -f conftest.$ac_objext conftest$ac_exeext
17249 if { (ac_try="$ac_link"
17250 case "(($ac_try" in
17251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17252 *) ac_try_echo=$ac_try;;
17254 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17255 (eval "$ac_link") 2>conftest.er1
17257 grep -v '^ *+' conftest.er1 >conftest.err
17259 cat conftest.err >&5
17260 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17261 (exit $ac_status); } && {
17262 test -z "$ac_c_werror_flag" ||
17263 test ! -s conftest.err
17264 } && test -s conftest$ac_exeext &&
17265 $as_test_x conftest$ac_exeext; then
17266 ac_cv_lib_getloadavg_getloadavg=yes
17268 echo "$as_me: failed program was
:" >&5
17269 sed 's/^/| /' conftest.$ac_ext >&5
17271 ac_cv_lib_getloadavg_getloadavg=no
17274 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17275 conftest$ac_exeext conftest.$ac_ext
17276 LIBS=$ac_check_lib_save_LIBS
17278 { echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
17279 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17280 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17281 LIBS="-lgetloadavg $LIBS"
17283 LIBS=$ac_getloadavg_LIBS
17288 # Make sure it is really in the library, if we think we found it,
17289 # otherwise set up the replacement function.
17291 for ac_func in getloadavg
17293 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17294 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17295 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17296 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17297 echo $ECHO_N "(cached
) $ECHO_C" >&6
17299 cat >conftest.$ac_ext <<_ACEOF
17302 cat confdefs.h >>conftest.$ac_ext
17303 cat >>conftest.$ac_ext <<_ACEOF
17304 /* end confdefs.h. */
17305 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17306 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17307 #define $ac_func innocuous_$ac_func
17309 /* System header to define __stub macros and hopefully few prototypes,
17310 which can conflict with char $ac_func (); below.
17311 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17312 <limits.h> exists even on freestanding compilers. */
17315 # include <limits.h>
17317 # include <assert.h>
17322 /* Override any GCC internal prototype to avoid an error.
17323 Use char because int might match the return type of a GCC
17324 builtin and then its argument prototype would still apply. */
17329 /* The GNU C library defines this for functions which it implements
17330 to always fail with ENOSYS. Some functions are actually named
17331 something starting with __ and the normal name is an alias. */
17332 #if defined __stub_$ac_func || defined __stub___$ac_func
17339 return $ac_func ();
17344 rm -f conftest.$ac_objext conftest$ac_exeext
17345 if { (ac_try="$ac_link"
17346 case "(($ac_try" in
17347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17348 *) ac_try_echo=$ac_try;;
17350 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17351 (eval "$ac_link") 2>conftest.er1
17353 grep -v '^ *+' conftest.er1 >conftest.err
17355 cat conftest.err >&5
17356 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17357 (exit $ac_status); } && {
17358 test -z "$ac_c_werror_flag" ||
17359 test ! -s conftest.err
17360 } && test -s conftest$ac_exeext &&
17361 $as_test_x conftest$ac_exeext; then
17362 eval "$as_ac_var=yes"
17364 echo "$as_me: failed program was
:" >&5
17365 sed 's/^/| /' conftest.$ac_ext >&5
17367 eval "$as_ac_var=no
"
17370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17371 conftest$ac_exeext conftest.$ac_ext
17373 ac_res=`eval echo '${'$as_ac_var'}'`
17374 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17375 echo "${ECHO_T}$ac_res" >&6; }
17376 if test `eval echo '${'$as_ac_var'}'` = yes; then
17377 cat >>confdefs.h <<_ACEOF
17378 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17382 case " $LIBOBJS " in
17383 *" getloadavg.
$ac_objext "* ) ;;
17384 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
17389 cat >>confdefs.h <<\_ACEOF
17390 #define C_GETLOADAVG 1
17393 # Figure out what our getloadavg.c needs.
17395 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17396 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17397 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17398 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17399 echo $ECHO_N "(cached
) $ECHO_C" >&6
17401 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17402 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17404 # Is the header compilable?
17405 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
17406 echo $ECHO_N "checking sys
/dg_sys_info.h usability...
$ECHO_C" >&6; }
17407 cat >conftest.$ac_ext <<_ACEOF
17410 cat confdefs.h >>conftest.$ac_ext
17411 cat >>conftest.$ac_ext <<_ACEOF
17412 /* end confdefs.h. */
17413 $ac_includes_default
17414 #include <sys/dg_sys_info.h>
17416 rm -f conftest.$ac_objext
17417 if { (ac_try="$ac_compile"
17418 case "(($ac_try" in
17419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17420 *) ac_try_echo=$ac_try;;
17422 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17423 (eval "$ac_compile") 2>conftest.er1
17425 grep -v '^ *+' conftest.er1 >conftest.err
17427 cat conftest.err >&5
17428 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17429 (exit $ac_status); } && {
17430 test -z "$ac_c_werror_flag" ||
17431 test ! -s conftest.err
17432 } && test -s conftest.$ac_objext; then
17433 ac_header_compiler=yes
17435 echo "$as_me: failed program was
:" >&5
17436 sed 's/^/| /' conftest.$ac_ext >&5
17438 ac_header_compiler=no
17441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17442 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17443 echo "${ECHO_T}$ac_header_compiler" >&6; }
17445 # Is the header present?
17446 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
17447 echo $ECHO_N "checking sys
/dg_sys_info.h presence...
$ECHO_C" >&6; }
17448 cat >conftest.$ac_ext <<_ACEOF
17451 cat confdefs.h >>conftest.$ac_ext
17452 cat >>conftest.$ac_ext <<_ACEOF
17453 /* end confdefs.h. */
17454 #include <sys/dg_sys_info.h>
17456 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17457 case "(($ac_try" in
17458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17459 *) ac_try_echo=$ac_try;;
17461 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17462 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17464 grep -v '^ *+' conftest.er1 >conftest.err
17466 cat conftest.err >&5
17467 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17468 (exit $ac_status); } >/dev/null && {
17469 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17470 test ! -s conftest.err
17472 ac_header_preproc=yes
17474 echo "$as_me: failed program was
:" >&5
17475 sed 's/^/| /' conftest.$ac_ext >&5
17477 ac_header_preproc=no
17480 rm -f conftest.err conftest.$ac_ext
17481 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17482 echo "${ECHO_T}$ac_header_preproc" >&6; }
17484 # So? What about this header?
17485 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17487 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17488 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17489 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
17490 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
17491 ac_header_preproc=yes
17494 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
17495 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
17496 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
17497 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
17498 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
17499 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
17500 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17501 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17502 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
17503 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
17504 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
17505 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
17509 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17510 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17511 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17512 echo $ECHO_N "(cached
) $ECHO_C" >&6
17514 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17516 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17517 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17520 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17523 cat >>confdefs.h <<\_ACEOF
17528 { echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
17529 echo $ECHO_N "checking
for dg_sys_info
in -ldgc...
$ECHO_C" >&6; }
17530 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17531 echo $ECHO_N "(cached
) $ECHO_C" >&6
17533 ac_check_lib_save_LIBS=$LIBS
17535 cat >conftest.$ac_ext <<_ACEOF
17538 cat confdefs.h >>conftest.$ac_ext
17539 cat >>conftest.$ac_ext <<_ACEOF
17540 /* end confdefs.h. */
17542 /* Override any GCC internal prototype to avoid an error.
17543 Use char because int might match the return type of a GCC
17544 builtin and then its argument prototype would still apply. */
17548 char dg_sys_info ();
17552 return dg_sys_info ();
17557 rm -f conftest.$ac_objext conftest$ac_exeext
17558 if { (ac_try="$ac_link"
17559 case "(($ac_try" in
17560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17561 *) ac_try_echo=$ac_try;;
17563 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17564 (eval "$ac_link") 2>conftest.er1
17566 grep -v '^ *+' conftest.er1 >conftest.err
17568 cat conftest.err >&5
17569 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17570 (exit $ac_status); } && {
17571 test -z "$ac_c_werror_flag" ||
17572 test ! -s conftest.err
17573 } && test -s conftest$ac_exeext &&
17574 $as_test_x conftest$ac_exeext; then
17575 ac_cv_lib_dgc_dg_sys_info=yes
17577 echo "$as_me: failed program was
:" >&5
17578 sed 's/^/| /' conftest.$ac_ext >&5
17580 ac_cv_lib_dgc_dg_sys_info=no
17583 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17584 conftest$ac_exeext conftest.$ac_ext
17585 LIBS=$ac_check_lib_save_LIBS
17587 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
17588 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17589 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17590 cat >>confdefs.h <<_ACEOF
17591 #define HAVE_LIBDGC 1
17602 if test "${ac_cv_header_locale_h+set}" = set; then
17603 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17604 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17605 if test "${ac_cv_header_locale_h+set}" = set; then
17606 echo $ECHO_N "(cached
) $ECHO_C" >&6
17608 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17609 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17611 # Is the header compilable?
17612 { echo "$as_me:$LINENO: checking locale.h usability
" >&5
17613 echo $ECHO_N "checking locale.h usability...
$ECHO_C" >&6; }
17614 cat >conftest.$ac_ext <<_ACEOF
17617 cat confdefs.h >>conftest.$ac_ext
17618 cat >>conftest.$ac_ext <<_ACEOF
17619 /* end confdefs.h. */
17620 $ac_includes_default
17621 #include <locale.h>
17623 rm -f conftest.$ac_objext
17624 if { (ac_try="$ac_compile"
17625 case "(($ac_try" in
17626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17627 *) ac_try_echo=$ac_try;;
17629 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17630 (eval "$ac_compile") 2>conftest.er1
17632 grep -v '^ *+' conftest.er1 >conftest.err
17634 cat conftest.err >&5
17635 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17636 (exit $ac_status); } && {
17637 test -z "$ac_c_werror_flag" ||
17638 test ! -s conftest.err
17639 } && test -s conftest.$ac_objext; then
17640 ac_header_compiler=yes
17642 echo "$as_me: failed program was
:" >&5
17643 sed 's/^/| /' conftest.$ac_ext >&5
17645 ac_header_compiler=no
17648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17649 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17650 echo "${ECHO_T}$ac_header_compiler" >&6; }
17652 # Is the header present?
17653 { echo "$as_me:$LINENO: checking locale.h presence
" >&5
17654 echo $ECHO_N "checking locale.h presence...
$ECHO_C" >&6; }
17655 cat >conftest.$ac_ext <<_ACEOF
17658 cat confdefs.h >>conftest.$ac_ext
17659 cat >>conftest.$ac_ext <<_ACEOF
17660 /* end confdefs.h. */
17661 #include <locale.h>
17663 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17664 case "(($ac_try" in
17665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17666 *) ac_try_echo=$ac_try;;
17668 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17669 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17671 grep -v '^ *+' conftest.er1 >conftest.err
17673 cat conftest.err >&5
17674 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17675 (exit $ac_status); } >/dev/null && {
17676 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17677 test ! -s conftest.err
17679 ac_header_preproc=yes
17681 echo "$as_me: failed program was
:" >&5
17682 sed 's/^/| /' conftest.$ac_ext >&5
17684 ac_header_preproc=no
17687 rm -f conftest.err conftest.$ac_ext
17688 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17689 echo "${ECHO_T}$ac_header_preproc" >&6; }
17691 # So? What about this header?
17692 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17694 { echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17695 echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17696 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
17697 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
17698 ac_header_preproc=yes
17701 { echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
17702 echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
17703 { echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
17704 echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
17705 { echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
17706 echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
17707 { echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17708 echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17709 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
17710 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
17711 { echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
17712 echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
17716 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17717 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17718 if test "${ac_cv_header_locale_h+set}" = set; then
17719 echo $ECHO_N "(cached
) $ECHO_C" >&6
17721 ac_cv_header_locale_h=$ac_header_preproc
17723 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17724 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17730 for ac_func in setlocale
17732 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17733 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17734 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17735 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17736 echo $ECHO_N "(cached
) $ECHO_C" >&6
17738 cat >conftest.$ac_ext <<_ACEOF
17741 cat confdefs.h >>conftest.$ac_ext
17742 cat >>conftest.$ac_ext <<_ACEOF
17743 /* end confdefs.h. */
17744 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17745 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17746 #define $ac_func innocuous_$ac_func
17748 /* System header to define __stub macros and hopefully few prototypes,
17749 which can conflict with char $ac_func (); below.
17750 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17751 <limits.h> exists even on freestanding compilers. */
17754 # include <limits.h>
17756 # include <assert.h>
17761 /* Override any GCC internal prototype to avoid an error.
17762 Use char because int might match the return type of a GCC
17763 builtin and then its argument prototype would still apply. */
17768 /* The GNU C library defines this for functions which it implements
17769 to always fail with ENOSYS. Some functions are actually named
17770 something starting with __ and the normal name is an alias. */
17771 #if defined __stub_$ac_func || defined __stub___$ac_func
17778 return $ac_func ();
17783 rm -f conftest.$ac_objext conftest$ac_exeext
17784 if { (ac_try="$ac_link"
17785 case "(($ac_try" in
17786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17787 *) ac_try_echo=$ac_try;;
17789 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17790 (eval "$ac_link") 2>conftest.er1
17792 grep -v '^ *+' conftest.er1 >conftest.err
17794 cat conftest.err >&5
17795 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17796 (exit $ac_status); } && {
17797 test -z "$ac_c_werror_flag" ||
17798 test ! -s conftest.err
17799 } && test -s conftest$ac_exeext &&
17800 $as_test_x conftest$ac_exeext; then
17801 eval "$as_ac_var=yes"
17803 echo "$as_me: failed program was
:" >&5
17804 sed 's/^/| /' conftest.$ac_ext >&5
17806 eval "$as_ac_var=no
"
17809 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17810 conftest$ac_exeext conftest.$ac_ext
17812 ac_res=`eval echo '${'$as_ac_var'}'`
17813 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17814 echo "${ECHO_T}$ac_res" >&6; }
17815 if test `eval echo '${'$as_ac_var'}'` = yes; then
17816 cat >>confdefs.h <<_ACEOF
17817 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17824 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17825 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17826 # Irix 4.0.5F has the header but not the library.
17827 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17830 cat >>confdefs.h <<\_ACEOF
17836 if test $ac_have_func = no; then
17837 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17838 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17839 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17840 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17841 echo $ECHO_N "(cached
) $ECHO_C" >&6
17843 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17844 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17846 # Is the header compilable?
17847 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
17848 echo $ECHO_N "checking inq_stats
/cpustats.h usability...
$ECHO_C" >&6; }
17849 cat >conftest.$ac_ext <<_ACEOF
17852 cat confdefs.h >>conftest.$ac_ext
17853 cat >>conftest.$ac_ext <<_ACEOF
17854 /* end confdefs.h. */
17855 $ac_includes_default
17856 #include <inq_stats/cpustats.h>
17858 rm -f conftest.$ac_objext
17859 if { (ac_try="$ac_compile"
17860 case "(($ac_try" in
17861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17862 *) ac_try_echo=$ac_try;;
17864 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17865 (eval "$ac_compile") 2>conftest.er1
17867 grep -v '^ *+' conftest.er1 >conftest.err
17869 cat conftest.err >&5
17870 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17871 (exit $ac_status); } && {
17872 test -z "$ac_c_werror_flag" ||
17873 test ! -s conftest.err
17874 } && test -s conftest.$ac_objext; then
17875 ac_header_compiler=yes
17877 echo "$as_me: failed program was
:" >&5
17878 sed 's/^/| /' conftest.$ac_ext >&5
17880 ac_header_compiler=no
17883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17884 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17885 echo "${ECHO_T}$ac_header_compiler" >&6; }
17887 # Is the header present?
17888 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
17889 echo $ECHO_N "checking inq_stats
/cpustats.h presence...
$ECHO_C" >&6; }
17890 cat >conftest.$ac_ext <<_ACEOF
17893 cat confdefs.h >>conftest.$ac_ext
17894 cat >>conftest.$ac_ext <<_ACEOF
17895 /* end confdefs.h. */
17896 #include <inq_stats/cpustats.h>
17898 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17899 case "(($ac_try" in
17900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17901 *) ac_try_echo=$ac_try;;
17903 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17904 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17906 grep -v '^ *+' conftest.er1 >conftest.err
17908 cat conftest.err >&5
17909 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17910 (exit $ac_status); } >/dev/null && {
17911 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17912 test ! -s conftest.err
17914 ac_header_preproc=yes
17916 echo "$as_me: failed program was
:" >&5
17917 sed 's/^/| /' conftest.$ac_ext >&5
17919 ac_header_preproc=no
17922 rm -f conftest.err conftest.$ac_ext
17923 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17924 echo "${ECHO_T}$ac_header_preproc" >&6; }
17926 # So? What about this header?
17927 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17929 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17930 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17931 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
17932 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
17933 ac_header_preproc=yes
17936 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
17937 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
17938 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
17939 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
17940 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
17941 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
17942 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17943 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17944 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
17945 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
17946 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
17947 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
17951 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17952 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17953 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17954 echo $ECHO_N "(cached
) $ECHO_C" >&6
17956 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17958 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17959 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17962 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17965 cat >>confdefs.h <<\_ACEOF
17970 cat >>confdefs.h <<\_ACEOF
17979 if test $ac_have_func = no; then
17980 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17981 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
17982 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
17983 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17984 echo $ECHO_N "(cached
) $ECHO_C" >&6
17986 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
17987 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17989 # Is the header compilable?
17990 { echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
17991 echo $ECHO_N "checking sys
/cpustats.h usability...
$ECHO_C" >&6; }
17992 cat >conftest.$ac_ext <<_ACEOF
17995 cat confdefs.h >>conftest.$ac_ext
17996 cat >>conftest.$ac_ext <<_ACEOF
17997 /* end confdefs.h. */
17998 $ac_includes_default
17999 #include <sys/cpustats.h>
18001 rm -f conftest.$ac_objext
18002 if { (ac_try="$ac_compile"
18003 case "(($ac_try" in
18004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18005 *) ac_try_echo=$ac_try;;
18007 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18008 (eval "$ac_compile") 2>conftest.er1
18010 grep -v '^ *+' conftest.er1 >conftest.err
18012 cat conftest.err >&5
18013 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18014 (exit $ac_status); } && {
18015 test -z "$ac_c_werror_flag" ||
18016 test ! -s conftest.err
18017 } && test -s conftest.$ac_objext; then
18018 ac_header_compiler=yes
18020 echo "$as_me: failed program was
:" >&5
18021 sed 's/^/| /' conftest.$ac_ext >&5
18023 ac_header_compiler=no
18026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18027 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18028 echo "${ECHO_T}$ac_header_compiler" >&6; }
18030 # Is the header present?
18031 { echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
18032 echo $ECHO_N "checking sys
/cpustats.h presence...
$ECHO_C" >&6; }
18033 cat >conftest.$ac_ext <<_ACEOF
18036 cat confdefs.h >>conftest.$ac_ext
18037 cat >>conftest.$ac_ext <<_ACEOF
18038 /* end confdefs.h. */
18039 #include <sys/cpustats.h>
18041 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18042 case "(($ac_try" in
18043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18044 *) ac_try_echo=$ac_try;;
18046 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18047 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18049 grep -v '^ *+' conftest.er1 >conftest.err
18051 cat conftest.err >&5
18052 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18053 (exit $ac_status); } >/dev/null && {
18054 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18055 test ! -s conftest.err
18057 ac_header_preproc=yes
18059 echo "$as_me: failed program was
:" >&5
18060 sed 's/^/| /' conftest.$ac_ext >&5
18062 ac_header_preproc=no
18065 rm -f conftest.err conftest.$ac_ext
18066 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18067 echo "${ECHO_T}$ac_header_preproc" >&6; }
18069 # So? What about this header?
18070 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18072 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
18073 echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18074 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
18075 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
18076 ac_header_preproc=yes
18079 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
18080 echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
18081 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
18082 echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
18083 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
18084 echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
18085 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
18086 echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
18087 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
18088 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
18089 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
18090 echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
18094 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
18095 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
18096 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18097 echo $ECHO_N "(cached
) $ECHO_C" >&6
18099 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18101 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
18102 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18105 if test $ac_cv_header_sys_cpustats_h = yes; then
18106 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18115 if test $ac_have_func = no; then
18117 for ac_header in mach/mach.h
18119 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18120 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18121 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18122 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18123 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18124 echo $ECHO_N "(cached
) $ECHO_C" >&6
18126 ac_res=`eval echo '${'$as_ac_Header'}'`
18127 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18128 echo "${ECHO_T}$ac_res" >&6; }
18130 # Is the header compilable?
18131 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18132 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18133 cat >conftest.$ac_ext <<_ACEOF
18136 cat confdefs.h >>conftest.$ac_ext
18137 cat >>conftest.$ac_ext <<_ACEOF
18138 /* end confdefs.h. */
18139 $ac_includes_default
18140 #include <$ac_header>
18142 rm -f conftest.$ac_objext
18143 if { (ac_try="$ac_compile"
18144 case "(($ac_try" in
18145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18146 *) ac_try_echo=$ac_try;;
18148 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18149 (eval "$ac_compile") 2>conftest.er1
18151 grep -v '^ *+' conftest.er1 >conftest.err
18153 cat conftest.err >&5
18154 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18155 (exit $ac_status); } && {
18156 test -z "$ac_c_werror_flag" ||
18157 test ! -s conftest.err
18158 } && test -s conftest.$ac_objext; then
18159 ac_header_compiler=yes
18161 echo "$as_me: failed program was
:" >&5
18162 sed 's/^/| /' conftest.$ac_ext >&5
18164 ac_header_compiler=no
18167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18168 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18169 echo "${ECHO_T}$ac_header_compiler" >&6; }
18171 # Is the header present?
18172 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18173 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18174 cat >conftest.$ac_ext <<_ACEOF
18177 cat confdefs.h >>conftest.$ac_ext
18178 cat >>conftest.$ac_ext <<_ACEOF
18179 /* end confdefs.h. */
18180 #include <$ac_header>
18182 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18183 case "(($ac_try" in
18184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18185 *) ac_try_echo=$ac_try;;
18187 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18188 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18190 grep -v '^ *+' conftest.er1 >conftest.err
18192 cat conftest.err >&5
18193 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18194 (exit $ac_status); } >/dev/null && {
18195 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18196 test ! -s conftest.err
18198 ac_header_preproc=yes
18200 echo "$as_me: failed program was
:" >&5
18201 sed 's/^/| /' conftest.$ac_ext >&5
18203 ac_header_preproc=no
18206 rm -f conftest.err conftest.$ac_ext
18207 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18208 echo "${ECHO_T}$ac_header_preproc" >&6; }
18210 # So? What about this header?
18211 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18213 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18214 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18215 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18216 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18217 ac_header_preproc=yes
18220 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18221 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18222 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18223 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18224 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18225 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18226 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18227 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18228 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18229 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18230 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18231 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18235 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18236 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18237 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18238 echo $ECHO_N "(cached
) $ECHO_C" >&6
18240 eval "$as_ac_Header=\
$ac_header_preproc"
18242 ac_res=`eval echo '${'$as_ac_Header'}'`
18243 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18244 echo "${ECHO_T}$ac_res" >&6; }
18247 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18248 cat >>confdefs.h <<_ACEOF
18249 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18259 for ac_header in nlist.h
18261 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18262 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18263 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18264 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18265 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18266 echo $ECHO_N "(cached
) $ECHO_C" >&6
18268 ac_res=`eval echo '${'$as_ac_Header'}'`
18269 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18270 echo "${ECHO_T}$ac_res" >&6; }
18272 # Is the header compilable?
18273 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18274 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18275 cat >conftest.$ac_ext <<_ACEOF
18278 cat confdefs.h >>conftest.$ac_ext
18279 cat >>conftest.$ac_ext <<_ACEOF
18280 /* end confdefs.h. */
18281 $ac_includes_default
18282 #include <$ac_header>
18284 rm -f conftest.$ac_objext
18285 if { (ac_try="$ac_compile"
18286 case "(($ac_try" in
18287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18288 *) ac_try_echo=$ac_try;;
18290 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18291 (eval "$ac_compile") 2>conftest.er1
18293 grep -v '^ *+' conftest.er1 >conftest.err
18295 cat conftest.err >&5
18296 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18297 (exit $ac_status); } && {
18298 test -z "$ac_c_werror_flag" ||
18299 test ! -s conftest.err
18300 } && test -s conftest.$ac_objext; then
18301 ac_header_compiler=yes
18303 echo "$as_me: failed program was
:" >&5
18304 sed 's/^/| /' conftest.$ac_ext >&5
18306 ac_header_compiler=no
18309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18310 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18311 echo "${ECHO_T}$ac_header_compiler" >&6; }
18313 # Is the header present?
18314 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18315 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18316 cat >conftest.$ac_ext <<_ACEOF
18319 cat confdefs.h >>conftest.$ac_ext
18320 cat >>conftest.$ac_ext <<_ACEOF
18321 /* end confdefs.h. */
18322 #include <$ac_header>
18324 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18325 case "(($ac_try" in
18326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18327 *) ac_try_echo=$ac_try;;
18329 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18330 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18332 grep -v '^ *+' conftest.er1 >conftest.err
18334 cat conftest.err >&5
18335 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18336 (exit $ac_status); } >/dev/null && {
18337 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18338 test ! -s conftest.err
18340 ac_header_preproc=yes
18342 echo "$as_me: failed program was
:" >&5
18343 sed 's/^/| /' conftest.$ac_ext >&5
18345 ac_header_preproc=no
18348 rm -f conftest.err conftest.$ac_ext
18349 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18350 echo "${ECHO_T}$ac_header_preproc" >&6; }
18352 # So? What about this header?
18353 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18355 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18356 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18357 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18358 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18359 ac_header_preproc=yes
18362 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18363 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18364 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18365 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18366 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18367 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18368 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18369 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18370 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18371 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18372 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18373 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18377 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18378 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18379 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18380 echo $ECHO_N "(cached
) $ECHO_C" >&6
18382 eval "$as_ac_Header=\
$ac_header_preproc"
18384 ac_res=`eval echo '${'$as_ac_Header'}'`
18385 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18386 echo "${ECHO_T}$ac_res" >&6; }
18389 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18390 cat >>confdefs.h <<_ACEOF
18391 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18393 { echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
18394 echo $ECHO_N "checking
for struct nlist.n_un.n_name...
$ECHO_C" >&6; }
18395 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18396 echo $ECHO_N "(cached
) $ECHO_C" >&6
18398 cat >conftest.$ac_ext <<_ACEOF
18401 cat confdefs.h >>conftest.$ac_ext
18402 cat >>conftest.$ac_ext <<_ACEOF
18403 /* end confdefs.h. */
18409 static struct nlist ac_aggr;
18410 if (ac_aggr.n_un.n_name)
18416 rm -f conftest.$ac_objext
18417 if { (ac_try="$ac_compile"
18418 case "(($ac_try" in
18419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18420 *) ac_try_echo=$ac_try;;
18422 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18423 (eval "$ac_compile") 2>conftest.er1
18425 grep -v '^ *+' conftest.er1 >conftest.err
18427 cat conftest.err >&5
18428 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18429 (exit $ac_status); } && {
18430 test -z "$ac_c_werror_flag" ||
18431 test ! -s conftest.err
18432 } && test -s conftest.$ac_objext; then
18433 ac_cv_member_struct_nlist_n_un_n_name=yes
18435 echo "$as_me: failed program was
:" >&5
18436 sed 's/^/| /' conftest.$ac_ext >&5
18438 cat >conftest.$ac_ext <<_ACEOF
18441 cat confdefs.h >>conftest.$ac_ext
18442 cat >>conftest.$ac_ext <<_ACEOF
18443 /* end confdefs.h. */
18449 static struct nlist ac_aggr;
18450 if (sizeof ac_aggr.n_un.n_name)
18456 rm -f conftest.$ac_objext
18457 if { (ac_try="$ac_compile"
18458 case "(($ac_try" in
18459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18460 *) ac_try_echo=$ac_try;;
18462 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18463 (eval "$ac_compile") 2>conftest.er1
18465 grep -v '^ *+' conftest.er1 >conftest.err
18467 cat conftest.err >&5
18468 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18469 (exit $ac_status); } && {
18470 test -z "$ac_c_werror_flag" ||
18471 test ! -s conftest.err
18472 } && test -s conftest.$ac_objext; then
18473 ac_cv_member_struct_nlist_n_un_n_name=yes
18475 echo "$as_me: failed program was
:" >&5
18476 sed 's/^/| /' conftest.$ac_ext >&5
18478 ac_cv_member_struct_nlist_n_un_n_name=no
18481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18486 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18487 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18488 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18490 cat >>confdefs.h <<_ACEOF
18491 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18495 cat >>confdefs.h <<\_ACEOF
18496 #define NLIST_NAME_UNION 1
18510 # Some definitions of getloadavg require that the program be installed setgid.
18511 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
18512 echo $ECHO_N "checking whether getloadavg requires setgid...
$ECHO_C" >&6; }
18513 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18514 echo $ECHO_N "(cached
) $ECHO_C" >&6
18516 cat >conftest.$ac_ext <<_ACEOF
18519 cat confdefs.h >>conftest.$ac_ext
18520 cat >>conftest.$ac_ext <<_ACEOF
18521 /* end confdefs.h. */
18522 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
18523 #ifdef LDAV_PRIVILEGED
18524 Yowza Am I SETGID yet
18527 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
18528 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
18529 ac_cv_func_getloadavg_setgid=yes
18531 ac_cv_func_getloadavg_setgid=no
18536 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
18537 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18538 if test $ac_cv_func_getloadavg_setgid = yes; then
18541 cat >>confdefs.h <<\_ACEOF
18542 #define GETLOADAVG_PRIVILEGED 1
18549 if test $ac_cv_func_getloadavg_setgid = yes; then
18550 { echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
18551 echo $ECHO_N "checking group of
/dev
/kmem...
$ECHO_C" >&6; }
18552 if test "${ac_cv_group_kmem+set}" = set; then
18553 echo $ECHO_N "(cached
) $ECHO_C" >&6
18555 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18556 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18557 # If we got an error (system does not support symlinks), try without -L.
18558 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18559 ac_cv_group_kmem=`echo $ac_ls_output \
18560 | sed -ne 's/[ ][ ]*/ /g;
18561 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18565 { echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
18566 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18567 KMEM_GROUP=$ac_cv_group_kmem
18569 if test "x
$ac_save_LIBS" = x; then
18570 GETLOADAVG_LIBS=$LIBS
18572 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s
!$ac_save_LIBS!!"`
18578 { echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
18579 echo $ECHO_N "checking
for _LARGEFILE_SOURCE value needed
for large files...
$ECHO_C" >&6; }
18580 if test "${ac_cv_sys_largefile_source+set}" = set; then
18581 echo $ECHO_N "(cached
) $ECHO_C" >&6
18584 cat >conftest.$ac_ext <<_ACEOF
18587 cat confdefs.h >>conftest.$ac_ext
18588 cat >>conftest.$ac_ext <<_ACEOF
18589 /* end confdefs.h. */
18594 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18599 rm -f conftest.$ac_objext conftest$ac_exeext
18600 if { (ac_try="$ac_link"
18601 case "(($ac_try" in
18602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18603 *) ac_try_echo=$ac_try;;
18605 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18606 (eval "$ac_link") 2>conftest.er1
18608 grep -v '^ *+' conftest.er1 >conftest.err
18610 cat conftest.err >&5
18611 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18612 (exit $ac_status); } && {
18613 test -z "$ac_c_werror_flag" ||
18614 test ! -s conftest.err
18615 } && test -s conftest$ac_exeext &&
18616 $as_test_x conftest$ac_exeext; then
18617 ac_cv_sys_largefile_source=no; break
18619 echo "$as_me: failed program was
:" >&5
18620 sed 's/^/| /' conftest.$ac_ext >&5
18625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18626 conftest$ac_exeext conftest.$ac_ext
18627 cat >conftest.$ac_ext <<_ACEOF
18630 cat confdefs.h >>conftest.$ac_ext
18631 cat >>conftest.$ac_ext <<_ACEOF
18632 /* end confdefs.h. */
18633 #define _LARGEFILE_SOURCE 1
18638 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18643 rm -f conftest.$ac_objext conftest$ac_exeext
18644 if { (ac_try="$ac_link"
18645 case "(($ac_try" in
18646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18647 *) ac_try_echo=$ac_try;;
18649 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18650 (eval "$ac_link") 2>conftest.er1
18652 grep -v '^ *+' conftest.er1 >conftest.err
18654 cat conftest.err >&5
18655 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18656 (exit $ac_status); } && {
18657 test -z "$ac_c_werror_flag" ||
18658 test ! -s conftest.err
18659 } && test -s conftest$ac_exeext &&
18660 $as_test_x conftest$ac_exeext; then
18661 ac_cv_sys_largefile_source=1; break
18663 echo "$as_me: failed program was
:" >&5
18664 sed 's/^/| /' conftest.$ac_ext >&5
18669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18670 conftest$ac_exeext conftest.$ac_ext
18671 ac_cv_sys_largefile_source=unknown
18675 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
18676 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18677 case $ac_cv_sys_largefile_source in #(
18680 cat >>confdefs.h <<_ACEOF
18681 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18687 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18688 # in glibc 2.1.3, but that breaks too many other things.
18689 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18690 if test $ac_cv_sys_largefile_source != unknown; then
18692 cat >>confdefs.h <<\_ACEOF
18693 #define HAVE_FSEEKO 1
18699 # Configure getopt.
18700 # getopt.m4 serial 10
18702 # The getopt module assume you want GNU getopt, with getopt_long etc,
18703 # rather than vanilla POSIX getopt. This means your your code should
18704 # always include <getopt.h> for the getopt prototypes.
18716 # Prerequisites of lib/getopt*.
18723 for ac_header in getopt.h
18725 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18726 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18727 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18728 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18729 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18730 echo $ECHO_N "(cached
) $ECHO_C" >&6
18732 ac_res=`eval echo '${'$as_ac_Header'}'`
18733 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18734 echo "${ECHO_T}$ac_res" >&6; }
18736 # Is the header compilable?
18737 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18738 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18739 cat >conftest.$ac_ext <<_ACEOF
18742 cat confdefs.h >>conftest.$ac_ext
18743 cat >>conftest.$ac_ext <<_ACEOF
18744 /* end confdefs.h. */
18745 $ac_includes_default
18746 #include <$ac_header>
18748 rm -f conftest.$ac_objext
18749 if { (ac_try="$ac_compile"
18750 case "(($ac_try" in
18751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18752 *) ac_try_echo=$ac_try;;
18754 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18755 (eval "$ac_compile") 2>conftest.er1
18757 grep -v '^ *+' conftest.er1 >conftest.err
18759 cat conftest.err >&5
18760 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18761 (exit $ac_status); } && {
18762 test -z "$ac_c_werror_flag" ||
18763 test ! -s conftest.err
18764 } && test -s conftest.$ac_objext; then
18765 ac_header_compiler=yes
18767 echo "$as_me: failed program was
:" >&5
18768 sed 's/^/| /' conftest.$ac_ext >&5
18770 ac_header_compiler=no
18773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18774 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18775 echo "${ECHO_T}$ac_header_compiler" >&6; }
18777 # Is the header present?
18778 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18779 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18780 cat >conftest.$ac_ext <<_ACEOF
18783 cat confdefs.h >>conftest.$ac_ext
18784 cat >>conftest.$ac_ext <<_ACEOF
18785 /* end confdefs.h. */
18786 #include <$ac_header>
18788 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18789 case "(($ac_try" in
18790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18791 *) ac_try_echo=$ac_try;;
18793 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18794 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18796 grep -v '^ *+' conftest.er1 >conftest.err
18798 cat conftest.err >&5
18799 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18800 (exit $ac_status); } >/dev/null && {
18801 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18802 test ! -s conftest.err
18804 ac_header_preproc=yes
18806 echo "$as_me: failed program was
:" >&5
18807 sed 's/^/| /' conftest.$ac_ext >&5
18809 ac_header_preproc=no
18812 rm -f conftest.err conftest.$ac_ext
18813 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18814 echo "${ECHO_T}$ac_header_preproc" >&6; }
18816 # So? What about this header?
18817 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18819 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18820 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18821 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18822 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18823 ac_header_preproc=yes
18826 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18827 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18828 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18829 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18830 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18831 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18832 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18833 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18834 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18835 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18836 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18837 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18841 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18842 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18843 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18844 echo $ECHO_N "(cached
) $ECHO_C" >&6
18846 eval "$as_ac_Header=\
$ac_header_preproc"
18848 ac_res=`eval echo '${'$as_ac_Header'}'`
18849 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18850 echo "${ECHO_T}$ac_res" >&6; }
18853 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18854 cat >>confdefs.h <<_ACEOF
18855 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18864 if test -z "$GETOPT_H"; then
18866 for ac_func in getopt_long_only
18868 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18869 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18870 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18871 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18872 echo $ECHO_N "(cached
) $ECHO_C" >&6
18874 cat >conftest.$ac_ext <<_ACEOF
18877 cat confdefs.h >>conftest.$ac_ext
18878 cat >>conftest.$ac_ext <<_ACEOF
18879 /* end confdefs.h. */
18880 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18881 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18882 #define $ac_func innocuous_$ac_func
18884 /* System header to define __stub macros and hopefully few prototypes,
18885 which can conflict with char $ac_func (); below.
18886 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18887 <limits.h> exists even on freestanding compilers. */
18890 # include <limits.h>
18892 # include <assert.h>
18897 /* Override any GCC internal prototype to avoid an error.
18898 Use char because int might match the return type of a GCC
18899 builtin and then its argument prototype would still apply. */
18904 /* The GNU C library defines this for functions which it implements
18905 to always fail with ENOSYS. Some functions are actually named
18906 something starting with __ and the normal name is an alias. */
18907 #if defined __stub_$ac_func || defined __stub___$ac_func
18914 return $ac_func ();
18919 rm -f conftest.$ac_objext conftest$ac_exeext
18920 if { (ac_try="$ac_link"
18921 case "(($ac_try" in
18922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18923 *) ac_try_echo=$ac_try;;
18925 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18926 (eval "$ac_link") 2>conftest.er1
18928 grep -v '^ *+' conftest.er1 >conftest.err
18930 cat conftest.err >&5
18931 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18932 (exit $ac_status); } && {
18933 test -z "$ac_c_werror_flag" ||
18934 test ! -s conftest.err
18935 } && test -s conftest$ac_exeext &&
18936 $as_test_x conftest$ac_exeext; then
18937 eval "$as_ac_var=yes"
18939 echo "$as_me: failed program was
:" >&5
18940 sed 's/^/| /' conftest.$ac_ext >&5
18942 eval "$as_ac_var=no
"
18945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18946 conftest$ac_exeext conftest.$ac_ext
18948 ac_res=`eval echo '${'$as_ac_var'}'`
18949 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18950 echo "${ECHO_T}$ac_res" >&6; }
18951 if test `eval echo '${'$as_ac_var'}'` = yes; then
18952 cat >>confdefs.h <<_ACEOF
18953 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18963 if test -z "$GETOPT_H"; then
18964 { echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
18965 echo $ECHO_N "checking whether optreset is declared...
$ECHO_C" >&6; }
18966 if test "${ac_cv_have_decl_optreset+set}" = set; then
18967 echo $ECHO_N "(cached
) $ECHO_C" >&6
18969 cat >conftest.$ac_ext <<_ACEOF
18972 cat confdefs.h >>conftest.$ac_ext
18973 cat >>conftest.$ac_ext <<_ACEOF
18974 /* end confdefs.h. */
18975 #include <getopt.h>
18988 rm -f conftest.$ac_objext
18989 if { (ac_try="$ac_compile"
18990 case "(($ac_try" in
18991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18992 *) ac_try_echo=$ac_try;;
18994 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18995 (eval "$ac_compile") 2>conftest.er1
18997 grep -v '^ *+' conftest.er1 >conftest.err
18999 cat conftest.err >&5
19000 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19001 (exit $ac_status); } && {
19002 test -z "$ac_c_werror_flag" ||
19003 test ! -s conftest.err
19004 } && test -s conftest.$ac_objext; then
19005 ac_cv_have_decl_optreset=yes
19007 echo "$as_me: failed program was
:" >&5
19008 sed 's/^/| /' conftest.$ac_ext >&5
19010 ac_cv_have_decl_optreset=no
19013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19015 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
19016 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
19017 if test $ac_cv_have_decl_optreset = yes; then
19023 if test -z "$GETOPT_H"; then
19024 { echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
19025 echo $ECHO_N "checking
for working GNU getopt
function...
$ECHO_C" >&6; }
19026 if test "${gl_cv_func_gnu_getopt+set}" = set; then
19027 echo $ECHO_N "(cached
) $ECHO_C" >&6
19029 if test "$cross_compiling" = yes; then
19030 { echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
19031 echo $ECHO_N "checking whether getopt_clip is declared...
$ECHO_C" >&6; }
19032 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
19033 echo $ECHO_N "(cached
) $ECHO_C" >&6
19035 cat >conftest.$ac_ext <<_ACEOF
19038 cat confdefs.h >>conftest.$ac_ext
19039 cat >>conftest.$ac_ext <<_ACEOF
19040 /* end confdefs.h. */
19041 #include <getopt.h>
19046 #ifndef getopt_clip
19047 (void) getopt_clip;
19054 rm -f conftest.$ac_objext
19055 if { (ac_try="$ac_compile"
19056 case "(($ac_try" in
19057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19058 *) ac_try_echo=$ac_try;;
19060 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19061 (eval "$ac_compile") 2>conftest.er1
19063 grep -v '^ *+' conftest.er1 >conftest.err
19065 cat conftest.err >&5
19066 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19067 (exit $ac_status); } && {
19068 test -z "$ac_c_werror_flag" ||
19069 test ! -s conftest.err
19070 } && test -s conftest.$ac_objext; then
19071 ac_cv_have_decl_getopt_clip=yes
19073 echo "$as_me: failed program was
:" >&5
19074 sed 's/^/| /' conftest.$ac_ext >&5
19076 ac_cv_have_decl_getopt_clip=no
19079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19081 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
19082 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19083 if test $ac_cv_have_decl_getopt_clip = yes; then
19084 gl_cv_func_gnu_getopt=no
19086 gl_cv_func_gnu_getopt=yes
19090 cat >conftest.$ac_ext <<_ACEOF
19093 cat confdefs.h >>conftest.$ac_ext
19094 cat >>conftest.$ac_ext <<_ACEOF
19095 /* end confdefs.h. */
19096 #include <getopt.h>
19102 myargv[0] = "conftest
";
19105 return getopt (2, myargv, "+a
") != '?';
19111 rm -f conftest$ac_exeext
19112 if { (ac_try="$ac_link"
19113 case "(($ac_try" in
19114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19115 *) ac_try_echo=$ac_try;;
19117 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19118 (eval "$ac_link") 2>&5
19120 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19121 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
19129 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19130 (exit $ac_status); }; }; then
19131 gl_cv_func_gnu_getopt=yes
19133 echo "$as_me: program exited with status
$ac_status" >&5
19134 echo "$as_me: failed program was
:" >&5
19135 sed 's/^/| /' conftest.$ac_ext >&5
19137 ( exit $ac_status )
19138 gl_cv_func_gnu_getopt=no
19140 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19145 { echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
19146 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19147 if test "$gl_cv_func_gnu_getopt" = "no
"; then
19154 if test -n "$GETOPT_H"; then
19159 cat >>confdefs.h <<\_ACEOF
19160 #define __GETOPT_PREFIX rpl_
19166 GETOPTOBJS='getopt.o getopt1.o'
19173 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
19174 echo $ECHO_N "checking whether getpgrp requires zero arguments...
$ECHO_C" >&6; }
19175 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19176 echo $ECHO_N "(cached
) $ECHO_C" >&6
19178 # Use it with a single arg.
19179 cat >conftest.$ac_ext <<_ACEOF
19182 cat confdefs.h >>conftest.$ac_ext
19183 cat >>conftest.$ac_ext <<_ACEOF
19184 /* end confdefs.h. */
19185 $ac_includes_default
19194 rm -f conftest.$ac_objext
19195 if { (ac_try="$ac_compile"
19196 case "(($ac_try" in
19197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19198 *) ac_try_echo=$ac_try;;
19200 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19201 (eval "$ac_compile") 2>conftest.er1
19203 grep -v '^ *+' conftest.er1 >conftest.err
19205 cat conftest.err >&5
19206 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19207 (exit $ac_status); } && {
19208 test -z "$ac_c_werror_flag" ||
19209 test ! -s conftest.err
19210 } && test -s conftest.$ac_objext; then
19211 ac_cv_func_getpgrp_void=no
19213 echo "$as_me: failed program was
:" >&5
19214 sed 's/^/| /' conftest.$ac_ext >&5
19216 ac_cv_func_getpgrp_void=yes
19219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19222 { echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
19223 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19224 if test $ac_cv_func_getpgrp_void = yes; then
19226 cat >>confdefs.h <<\_ACEOF
19227 #define GETPGRP_VOID 1
19234 for ac_func in strftime
19236 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19237 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19238 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19239 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19240 echo $ECHO_N "(cached
) $ECHO_C" >&6
19242 cat >conftest.$ac_ext <<_ACEOF
19245 cat confdefs.h >>conftest.$ac_ext
19246 cat >>conftest.$ac_ext <<_ACEOF
19247 /* end confdefs.h. */
19248 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19249 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19250 #define $ac_func innocuous_$ac_func
19252 /* System header to define __stub macros and hopefully few prototypes,
19253 which can conflict with char $ac_func (); below.
19254 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19255 <limits.h> exists even on freestanding compilers. */
19258 # include <limits.h>
19260 # include <assert.h>
19265 /* Override any GCC internal prototype to avoid an error.
19266 Use char because int might match the return type of a GCC
19267 builtin and then its argument prototype would still apply. */
19272 /* The GNU C library defines this for functions which it implements
19273 to always fail with ENOSYS. Some functions are actually named
19274 something starting with __ and the normal name is an alias. */
19275 #if defined __stub_$ac_func || defined __stub___$ac_func
19282 return $ac_func ();
19287 rm -f conftest.$ac_objext conftest$ac_exeext
19288 if { (ac_try="$ac_link"
19289 case "(($ac_try" in
19290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19291 *) ac_try_echo=$ac_try;;
19293 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19294 (eval "$ac_link") 2>conftest.er1
19296 grep -v '^ *+' conftest.er1 >conftest.err
19298 cat conftest.err >&5
19299 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19300 (exit $ac_status); } && {
19301 test -z "$ac_c_werror_flag" ||
19302 test ! -s conftest.err
19303 } && test -s conftest$ac_exeext &&
19304 $as_test_x conftest$ac_exeext; then
19305 eval "$as_ac_var=yes"
19307 echo "$as_me: failed program was
:" >&5
19308 sed 's/^/| /' conftest.$ac_ext >&5
19310 eval "$as_ac_var=no
"
19313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19314 conftest$ac_exeext conftest.$ac_ext
19316 ac_res=`eval echo '${'$as_ac_var'}'`
19317 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19318 echo "${ECHO_T}$ac_res" >&6; }
19319 if test `eval echo '${'$as_ac_var'}'` = yes; then
19320 cat >>confdefs.h <<_ACEOF
19321 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19325 # strftime is in -lintl on SCO UNIX.
19326 { echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
19327 echo $ECHO_N "checking
for strftime
in -lintl...
$ECHO_C" >&6; }
19328 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19329 echo $ECHO_N "(cached
) $ECHO_C" >&6
19331 ac_check_lib_save_LIBS=$LIBS
19332 LIBS="-lintl $LIBS"
19333 cat >conftest.$ac_ext <<_ACEOF
19336 cat confdefs.h >>conftest.$ac_ext
19337 cat >>conftest.$ac_ext <<_ACEOF
19338 /* end confdefs.h. */
19340 /* Override any GCC internal prototype to avoid an error.
19341 Use char because int might match the return type of a GCC
19342 builtin and then its argument prototype would still apply. */
19350 return strftime ();
19355 rm -f conftest.$ac_objext conftest$ac_exeext
19356 if { (ac_try="$ac_link"
19357 case "(($ac_try" in
19358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19359 *) ac_try_echo=$ac_try;;
19361 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19362 (eval "$ac_link") 2>conftest.er1
19364 grep -v '^ *+' conftest.er1 >conftest.err
19366 cat conftest.err >&5
19367 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19368 (exit $ac_status); } && {
19369 test -z "$ac_c_werror_flag" ||
19370 test ! -s conftest.err
19371 } && test -s conftest$ac_exeext &&
19372 $as_test_x conftest$ac_exeext; then
19373 ac_cv_lib_intl_strftime=yes
19375 echo "$as_me: failed program was
:" >&5
19376 sed 's/^/| /' conftest.$ac_ext >&5
19378 ac_cv_lib_intl_strftime=no
19381 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19382 conftest$ac_exeext conftest.$ac_ext
19383 LIBS=$ac_check_lib_save_LIBS
19385 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
19386 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19387 if test $ac_cv_lib_intl_strftime = yes; then
19388 cat >>confdefs.h <<\_ACEOF
19389 #define HAVE_STRFTIME 1
19392 LIBS="-lintl $LIBS"
19401 for ac_func in grantpt
19403 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19404 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19405 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19406 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19407 echo $ECHO_N "(cached
) $ECHO_C" >&6
19409 cat >conftest.$ac_ext <<_ACEOF
19412 cat confdefs.h >>conftest.$ac_ext
19413 cat >>conftest.$ac_ext <<_ACEOF
19414 /* end confdefs.h. */
19415 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19416 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19417 #define $ac_func innocuous_$ac_func
19419 /* System header to define __stub macros and hopefully few prototypes,
19420 which can conflict with char $ac_func (); below.
19421 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19422 <limits.h> exists even on freestanding compilers. */
19425 # include <limits.h>
19427 # include <assert.h>
19432 /* Override any GCC internal prototype to avoid an error.
19433 Use char because int might match the return type of a GCC
19434 builtin and then its argument prototype would still apply. */
19439 /* The GNU C library defines this for functions which it implements
19440 to always fail with ENOSYS. Some functions are actually named
19441 something starting with __ and the normal name is an alias. */
19442 #if defined __stub_$ac_func || defined __stub___$ac_func
19449 return $ac_func ();
19454 rm -f conftest.$ac_objext conftest$ac_exeext
19455 if { (ac_try="$ac_link"
19456 case "(($ac_try" in
19457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19458 *) ac_try_echo=$ac_try;;
19460 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19461 (eval "$ac_link") 2>conftest.er1
19463 grep -v '^ *+' conftest.er1 >conftest.err
19465 cat conftest.err >&5
19466 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19467 (exit $ac_status); } && {
19468 test -z "$ac_c_werror_flag" ||
19469 test ! -s conftest.err
19470 } && test -s conftest$ac_exeext &&
19471 $as_test_x conftest$ac_exeext; then
19472 eval "$as_ac_var=yes"
19474 echo "$as_me: failed program was
:" >&5
19475 sed 's/^/| /' conftest.$ac_ext >&5
19477 eval "$as_ac_var=no
"
19480 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19481 conftest$ac_exeext conftest.$ac_ext
19483 ac_res=`eval echo '${'$as_ac_var'}'`
19484 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19485 echo "${ECHO_T}$ac_res" >&6; }
19486 if test `eval echo '${'$as_ac_var'}'` = yes; then
19487 cat >>confdefs.h <<_ACEOF
19488 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19495 # PTY-related GNU extensions.
19497 for ac_func in getpt
19499 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19500 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19501 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19502 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19503 echo $ECHO_N "(cached
) $ECHO_C" >&6
19505 cat >conftest.$ac_ext <<_ACEOF
19508 cat confdefs.h >>conftest.$ac_ext
19509 cat >>conftest.$ac_ext <<_ACEOF
19510 /* end confdefs.h. */
19511 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19512 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19513 #define $ac_func innocuous_$ac_func
19515 /* System header to define __stub macros and hopefully few prototypes,
19516 which can conflict with char $ac_func (); below.
19517 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19518 <limits.h> exists even on freestanding compilers. */
19521 # include <limits.h>
19523 # include <assert.h>
19528 /* Override any GCC internal prototype to avoid an error.
19529 Use char because int might match the return type of a GCC
19530 builtin and then its argument prototype would still apply. */
19535 /* The GNU C library defines this for functions which it implements
19536 to always fail with ENOSYS. Some functions are actually named
19537 something starting with __ and the normal name is an alias. */
19538 #if defined __stub_$ac_func || defined __stub___$ac_func
19545 return $ac_func ();
19550 rm -f conftest.$ac_objext conftest$ac_exeext
19551 if { (ac_try="$ac_link"
19552 case "(($ac_try" in
19553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19554 *) ac_try_echo=$ac_try;;
19556 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19557 (eval "$ac_link") 2>conftest.er1
19559 grep -v '^ *+' conftest.er1 >conftest.err
19561 cat conftest.err >&5
19562 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19563 (exit $ac_status); } && {
19564 test -z "$ac_c_werror_flag" ||
19565 test ! -s conftest.err
19566 } && test -s conftest$ac_exeext &&
19567 $as_test_x conftest$ac_exeext; then
19568 eval "$as_ac_var=yes"
19570 echo "$as_me: failed program was
:" >&5
19571 sed 's/^/| /' conftest.$ac_ext >&5
19573 eval "$as_ac_var=no
"
19576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19577 conftest$ac_exeext conftest.$ac_ext
19579 ac_res=`eval echo '${'$as_ac_var'}'`
19580 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19581 echo "${ECHO_T}$ac_res" >&6; }
19582 if test `eval echo '${'$as_ac_var'}'` = yes; then
19583 cat >>confdefs.h <<_ACEOF
19584 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19591 # Check this now, so that we will NOT find the above functions in ncurses.
19592 # That is because we have not set up to link ncurses in lib-src.
19593 # It's better to believe a function is not available
19594 # than to expect to find it in ncurses.
19596 { echo "$as_me:$LINENO: checking
for tparm
in -lncurses" >&5
19597 echo $ECHO_N "checking
for tparm
in -lncurses...
$ECHO_C" >&6; }
19598 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19599 echo $ECHO_N "(cached
) $ECHO_C" >&6
19601 ac_check_lib_save_LIBS=$LIBS
19602 LIBS="-lncurses $LIBS"
19603 cat >conftest.$ac_ext <<_ACEOF
19606 cat confdefs.h >>conftest.$ac_ext
19607 cat >>conftest.$ac_ext <<_ACEOF
19608 /* end confdefs.h. */
19610 /* Override any GCC internal prototype to avoid an error.
19611 Use char because int might match the return type of a GCC
19612 builtin and then its argument prototype would still apply. */
19625 rm -f conftest.$ac_objext conftest$ac_exeext
19626 if { (ac_try="$ac_link"
19627 case "(($ac_try" in
19628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19629 *) ac_try_echo=$ac_try;;
19631 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19632 (eval "$ac_link") 2>conftest.er1
19634 grep -v '^ *+' conftest.er1 >conftest.err
19636 cat conftest.err >&5
19637 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19638 (exit $ac_status); } && {
19639 test -z "$ac_c_werror_flag" ||
19640 test ! -s conftest.err
19641 } && test -s conftest$ac_exeext &&
19642 $as_test_x conftest$ac_exeext; then
19643 ac_cv_lib_ncurses_tparm=yes
19645 echo "$as_me: failed program was
:" >&5
19646 sed 's/^/| /' conftest.$ac_ext >&5
19648 ac_cv_lib_ncurses_tparm=no
19651 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19652 conftest$ac_exeext conftest.$ac_ext
19653 LIBS=$ac_check_lib_save_LIBS
19655 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ncurses_tparm" >&5
19656 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19657 if test $ac_cv_lib_ncurses_tparm = yes; then
19658 cat >>confdefs.h <<_ACEOF
19659 #define HAVE_LIBNCURSES 1
19662 LIBS="-lncurses $LIBS"
19667 # Do we have res_init, for detecting changes in /etc/resolv.conf?
19670 cat >conftest.$ac_ext <<_ACEOF
19673 cat confdefs.h >>conftest.$ac_ext
19674 cat >>conftest.$ac_ext <<_ACEOF
19675 /* end confdefs.h. */
19676 #include <netinet/in.h>
19677 #include <arpa/nameser.h>
19678 #include <resolv.h>
19687 rm -f conftest.$ac_objext conftest$ac_exeext
19688 if { (ac_try="$ac_link"
19689 case "(($ac_try" in
19690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19691 *) ac_try_echo=$ac_try;;
19693 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19694 (eval "$ac_link") 2>conftest.er1
19696 grep -v '^ *+' conftest.er1 >conftest.err
19698 cat conftest.err >&5
19699 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19700 (exit $ac_status); } && {
19701 test -z "$ac_c_werror_flag" ||
19702 test ! -s conftest.err
19703 } && test -s conftest$ac_exeext &&
19704 $as_test_x conftest$ac_exeext; then
19707 echo "$as_me: failed program was
:" >&5
19708 sed 's/^/| /' conftest.$ac_ext >&5
19713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19714 conftest$ac_exeext conftest.$ac_ext
19715 if test "$have_res_init" = no; then
19717 LIBS="$LIBS -lresolv"
19718 { echo "$as_me:$LINENO: checking
for res_init with
-lresolv" >&5
19719 echo $ECHO_N "checking
for res_init with
-lresolv...
$ECHO_C" >&6; }
19720 cat >conftest.$ac_ext <<_ACEOF
19723 cat confdefs.h >>conftest.$ac_ext
19724 cat >>conftest.$ac_ext <<_ACEOF
19725 /* end confdefs.h. */
19726 #include <netinet/in.h>
19727 #include <arpa/nameser.h>
19728 #include <resolv.h>
19737 rm -f conftest.$ac_objext conftest$ac_exeext
19738 if { (ac_try="$ac_link"
19739 case "(($ac_try" in
19740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19741 *) ac_try_echo=$ac_try;;
19743 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19744 (eval "$ac_link") 2>conftest.er1
19746 grep -v '^ *+' conftest.er1 >conftest.err
19748 cat conftest.err >&5
19749 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19750 (exit $ac_status); } && {
19751 test -z "$ac_c_werror_flag" ||
19752 test ! -s conftest.err
19753 } && test -s conftest$ac_exeext &&
19754 $as_test_x conftest$ac_exeext; then
19757 echo "$as_me: failed program was
:" >&5
19758 sed 's/^/| /' conftest.$ac_ext >&5
19763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19764 conftest$ac_exeext conftest.$ac_ext
19765 { echo "$as_me:$LINENO: result
: $have_res_init" >&5
19766 echo "${ECHO_T}$have_res_init" >&6; }
19767 if test "$have_res_init" = yes ; then
19773 if test "$have_res_init" = yes; then
19775 cat >>confdefs.h <<\_ACEOF
19776 #define HAVE_RES_INIT 1
19781 # Do we need the Hesiod library to provide the support routines?
19782 if test "$with_hesiod" = yes ; then
19783 # Don't set $LIBS here -- see comments above.
19784 { echo "$as_me:$LINENO: checking
for res_send
" >&5
19785 echo $ECHO_N "checking
for res_send...
$ECHO_C" >&6; }
19786 if test "${ac_cv_func_res_send+set}" = set; then
19787 echo $ECHO_N "(cached
) $ECHO_C" >&6
19789 cat >conftest.$ac_ext <<_ACEOF
19792 cat confdefs.h >>conftest.$ac_ext
19793 cat >>conftest.$ac_ext <<_ACEOF
19794 /* end confdefs.h. */
19795 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19796 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19797 #define res_send innocuous_res_send
19799 /* System header to define __stub macros and hopefully few prototypes,
19800 which can conflict with char res_send (); below.
19801 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19802 <limits.h> exists even on freestanding compilers. */
19805 # include <limits.h>
19807 # include <assert.h>
19812 /* Override any GCC internal prototype to avoid an error.
19813 Use char because int might match the return type of a GCC
19814 builtin and then its argument prototype would still apply. */
19819 /* The GNU C library defines this for functions which it implements
19820 to always fail with ENOSYS. Some functions are actually named
19821 something starting with __ and the normal name is an alias. */
19822 #if defined __stub_res_send || defined __stub___res_send
19829 return res_send ();
19834 rm -f conftest.$ac_objext conftest$ac_exeext
19835 if { (ac_try="$ac_link"
19836 case "(($ac_try" in
19837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19838 *) ac_try_echo=$ac_try;;
19840 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19841 (eval "$ac_link") 2>conftest.er1
19843 grep -v '^ *+' conftest.er1 >conftest.err
19845 cat conftest.err >&5
19846 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19847 (exit $ac_status); } && {
19848 test -z "$ac_c_werror_flag" ||
19849 test ! -s conftest.err
19850 } && test -s conftest$ac_exeext &&
19851 $as_test_x conftest$ac_exeext; then
19852 ac_cv_func_res_send=yes
19854 echo "$as_me: failed program was
:" >&5
19855 sed 's/^/| /' conftest.$ac_ext >&5
19857 ac_cv_func_res_send=no
19860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19861 conftest$ac_exeext conftest.$ac_ext
19863 { echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
19864 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19865 if test $ac_cv_func_res_send = yes; then
19868 { echo "$as_me:$LINENO: checking
for __res_send
" >&5
19869 echo $ECHO_N "checking
for __res_send...
$ECHO_C" >&6; }
19870 if test "${ac_cv_func___res_send+set}" = set; then
19871 echo $ECHO_N "(cached
) $ECHO_C" >&6
19873 cat >conftest.$ac_ext <<_ACEOF
19876 cat confdefs.h >>conftest.$ac_ext
19877 cat >>conftest.$ac_ext <<_ACEOF
19878 /* end confdefs.h. */
19879 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19880 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19881 #define __res_send innocuous___res_send
19883 /* System header to define __stub macros and hopefully few prototypes,
19884 which can conflict with char __res_send (); below.
19885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19886 <limits.h> exists even on freestanding compilers. */
19889 # include <limits.h>
19891 # include <assert.h>
19896 /* Override any GCC internal prototype to avoid an error.
19897 Use char because int might match the return type of a GCC
19898 builtin and then its argument prototype would still apply. */
19902 char __res_send ();
19903 /* The GNU C library defines this for functions which it implements
19904 to always fail with ENOSYS. Some functions are actually named
19905 something starting with __ and the normal name is an alias. */
19906 #if defined __stub___res_send || defined __stub_____res_send
19913 return __res_send ();
19918 rm -f conftest.$ac_objext conftest$ac_exeext
19919 if { (ac_try="$ac_link"
19920 case "(($ac_try" in
19921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19922 *) ac_try_echo=$ac_try;;
19924 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19925 (eval "$ac_link") 2>conftest.er1
19927 grep -v '^ *+' conftest.er1 >conftest.err
19929 cat conftest.err >&5
19930 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19931 (exit $ac_status); } && {
19932 test -z "$ac_c_werror_flag" ||
19933 test ! -s conftest.err
19934 } && test -s conftest$ac_exeext &&
19935 $as_test_x conftest$ac_exeext; then
19936 ac_cv_func___res_send=yes
19938 echo "$as_me: failed program was
:" >&5
19939 sed 's/^/| /' conftest.$ac_ext >&5
19941 ac_cv_func___res_send=no
19944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19945 conftest$ac_exeext conftest.$ac_ext
19947 { echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
19948 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19949 if test $ac_cv_func___res_send = yes; then
19952 { echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
19953 echo $ECHO_N "checking
for res_send
in -lresolv...
$ECHO_C" >&6; }
19954 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19955 echo $ECHO_N "(cached
) $ECHO_C" >&6
19957 ac_check_lib_save_LIBS=$LIBS
19958 LIBS="-lresolv $LIBS"
19959 cat >conftest.$ac_ext <<_ACEOF
19962 cat confdefs.h >>conftest.$ac_ext
19963 cat >>conftest.$ac_ext <<_ACEOF
19964 /* end confdefs.h. */
19966 /* Override any GCC internal prototype to avoid an error.
19967 Use char because int might match the return type of a GCC
19968 builtin and then its argument prototype would still apply. */
19976 return res_send ();
19981 rm -f conftest.$ac_objext conftest$ac_exeext
19982 if { (ac_try="$ac_link"
19983 case "(($ac_try" in
19984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19985 *) ac_try_echo=$ac_try;;
19987 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19988 (eval "$ac_link") 2>conftest.er1
19990 grep -v '^ *+' conftest.er1 >conftest.err
19992 cat conftest.err >&5
19993 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19994 (exit $ac_status); } && {
19995 test -z "$ac_c_werror_flag" ||
19996 test ! -s conftest.err
19997 } && test -s conftest$ac_exeext &&
19998 $as_test_x conftest$ac_exeext; then
19999 ac_cv_lib_resolv_res_send=yes
20001 echo "$as_me: failed program was
:" >&5
20002 sed 's/^/| /' conftest.$ac_ext >&5
20004 ac_cv_lib_resolv_res_send=no
20007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20008 conftest$ac_exeext conftest.$ac_ext
20009 LIBS=$ac_check_lib_save_LIBS
20011 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
20012 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
20013 if test $ac_cv_lib_resolv_res_send = yes; then
20016 { echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
20017 echo $ECHO_N "checking
for __res_send
in -lresolv...
$ECHO_C" >&6; }
20018 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
20019 echo $ECHO_N "(cached
) $ECHO_C" >&6
20021 ac_check_lib_save_LIBS=$LIBS
20022 LIBS="-lresolv $LIBS"
20023 cat >conftest.$ac_ext <<_ACEOF
20026 cat confdefs.h >>conftest.$ac_ext
20027 cat >>conftest.$ac_ext <<_ACEOF
20028 /* end confdefs.h. */
20030 /* Override any GCC internal prototype to avoid an error.
20031 Use char because int might match the return type of a GCC
20032 builtin and then its argument prototype would still apply. */
20036 char __res_send ();
20040 return __res_send ();
20045 rm -f conftest.$ac_objext conftest$ac_exeext
20046 if { (ac_try="$ac_link"
20047 case "(($ac_try" in
20048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20049 *) ac_try_echo=$ac_try;;
20051 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20052 (eval "$ac_link") 2>conftest.er1
20054 grep -v '^ *+' conftest.er1 >conftest.err
20056 cat conftest.err >&5
20057 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20058 (exit $ac_status); } && {
20059 test -z "$ac_c_werror_flag" ||
20060 test ! -s conftest.err
20061 } && test -s conftest$ac_exeext &&
20062 $as_test_x conftest$ac_exeext; then
20063 ac_cv_lib_resolv___res_send=yes
20065 echo "$as_me: failed program was
:" >&5
20066 sed 's/^/| /' conftest.$ac_ext >&5
20068 ac_cv_lib_resolv___res_send=no
20071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20072 conftest$ac_exeext conftest.$ac_ext
20073 LIBS=$ac_check_lib_save_LIBS
20075 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
20076 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
20077 if test $ac_cv_lib_resolv___res_send = yes; then
20087 if test "$resolv" = yes ; then
20092 { echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
20093 echo $ECHO_N "checking
for hes_getmailhost...
$ECHO_C" >&6; }
20094 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
20095 echo $ECHO_N "(cached
) $ECHO_C" >&6
20097 cat >conftest.$ac_ext <<_ACEOF
20100 cat confdefs.h >>conftest.$ac_ext
20101 cat >>conftest.$ac_ext <<_ACEOF
20102 /* end confdefs.h. */
20103 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
20104 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20105 #define hes_getmailhost innocuous_hes_getmailhost
20107 /* System header to define __stub macros and hopefully few prototypes,
20108 which can conflict with char hes_getmailhost (); below.
20109 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20110 <limits.h> exists even on freestanding compilers. */
20113 # include <limits.h>
20115 # include <assert.h>
20118 #undef hes_getmailhost
20120 /* Override any GCC internal prototype to avoid an error.
20121 Use char because int might match the return type of a GCC
20122 builtin and then its argument prototype would still apply. */
20126 char hes_getmailhost ();
20127 /* The GNU C library defines this for functions which it implements
20128 to always fail with ENOSYS. Some functions are actually named
20129 something starting with __ and the normal name is an alias. */
20130 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
20137 return hes_getmailhost ();
20142 rm -f conftest.$ac_objext conftest$ac_exeext
20143 if { (ac_try="$ac_link"
20144 case "(($ac_try" in
20145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20146 *) ac_try_echo=$ac_try;;
20148 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20149 (eval "$ac_link") 2>conftest.er1
20151 grep -v '^ *+' conftest.er1 >conftest.err
20153 cat conftest.err >&5
20154 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20155 (exit $ac_status); } && {
20156 test -z "$ac_c_werror_flag" ||
20157 test ! -s conftest.err
20158 } && test -s conftest$ac_exeext &&
20159 $as_test_x conftest$ac_exeext; then
20160 ac_cv_func_hes_getmailhost=yes
20162 echo "$as_me: failed program was
:" >&5
20163 sed 's/^/| /' conftest.$ac_ext >&5
20165 ac_cv_func_hes_getmailhost=no
20168 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20169 conftest$ac_exeext conftest.$ac_ext
20171 { echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
20172 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20173 if test $ac_cv_func_hes_getmailhost = yes; then
20176 { echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
20177 echo $ECHO_N "checking
for hes_getmailhost
in -lhesiod...
$ECHO_C" >&6; }
20178 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20179 echo $ECHO_N "(cached
) $ECHO_C" >&6
20181 ac_check_lib_save_LIBS=$LIBS
20182 LIBS="-lhesiod $RESOLVLIB $LIBS"
20183 cat >conftest.$ac_ext <<_ACEOF
20186 cat confdefs.h >>conftest.$ac_ext
20187 cat >>conftest.$ac_ext <<_ACEOF
20188 /* end confdefs.h. */
20190 /* Override any GCC internal prototype to avoid an error.
20191 Use char because int might match the return type of a GCC
20192 builtin and then its argument prototype would still apply. */
20196 char hes_getmailhost ();
20200 return hes_getmailhost ();
20205 rm -f conftest.$ac_objext conftest$ac_exeext
20206 if { (ac_try="$ac_link"
20207 case "(($ac_try" in
20208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20209 *) ac_try_echo=$ac_try;;
20211 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20212 (eval "$ac_link") 2>conftest.er1
20214 grep -v '^ *+' conftest.er1 >conftest.err
20216 cat conftest.err >&5
20217 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20218 (exit $ac_status); } && {
20219 test -z "$ac_c_werror_flag" ||
20220 test ! -s conftest.err
20221 } && test -s conftest$ac_exeext &&
20222 $as_test_x conftest$ac_exeext; then
20223 ac_cv_lib_hesiod_hes_getmailhost=yes
20225 echo "$as_me: failed program was
:" >&5
20226 sed 's/^/| /' conftest.$ac_ext >&5
20228 ac_cv_lib_hesiod_hes_getmailhost=no
20231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20232 conftest$ac_exeext conftest.$ac_ext
20233 LIBS=$ac_check_lib_save_LIBS
20235 { echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20236 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20237 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20239 cat >>confdefs.h <<\_ACEOF
20240 #define HAVE_LIBHESIOD 1
20251 # Do we need libresolv (due to res_init or Hesiod)?
20252 if test "$resolv" = yes ; then
20254 cat >>confdefs.h <<\_ACEOF
20255 #define HAVE_LIBRESOLV 1
20260 # These tell us which Kerberos-related libraries to use.
20261 if test "${with_kerberos+set}" = set; then
20263 { echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
20264 echo $ECHO_N "checking
for com_err
in -lcom_err...
$ECHO_C" >&6; }
20265 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20266 echo $ECHO_N "(cached
) $ECHO_C" >&6
20268 ac_check_lib_save_LIBS=$LIBS
20269 LIBS="-lcom_err $LIBS"
20270 cat >conftest.$ac_ext <<_ACEOF
20273 cat confdefs.h >>conftest.$ac_ext
20274 cat >>conftest.$ac_ext <<_ACEOF
20275 /* end confdefs.h. */
20277 /* Override any GCC internal prototype to avoid an error.
20278 Use char because int might match the return type of a GCC
20279 builtin and then its argument prototype would still apply. */
20292 rm -f conftest.$ac_objext conftest$ac_exeext
20293 if { (ac_try="$ac_link"
20294 case "(($ac_try" in
20295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20296 *) ac_try_echo=$ac_try;;
20298 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20299 (eval "$ac_link") 2>conftest.er1
20301 grep -v '^ *+' conftest.er1 >conftest.err
20303 cat conftest.err >&5
20304 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20305 (exit $ac_status); } && {
20306 test -z "$ac_c_werror_flag" ||
20307 test ! -s conftest.err
20308 } && test -s conftest$ac_exeext &&
20309 $as_test_x conftest$ac_exeext; then
20310 ac_cv_lib_com_err_com_err=yes
20312 echo "$as_me: failed program was
:" >&5
20313 sed 's/^/| /' conftest.$ac_ext >&5
20315 ac_cv_lib_com_err_com_err=no
20318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20319 conftest$ac_exeext conftest.$ac_ext
20320 LIBS=$ac_check_lib_save_LIBS
20322 { echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
20323 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20324 if test $ac_cv_lib_com_err_com_err = yes; then
20325 cat >>confdefs.h <<_ACEOF
20326 #define HAVE_LIBCOM_ERR 1
20329 LIBS="-lcom_err $LIBS"
20334 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
20335 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lk5crypto...
$ECHO_C" >&6; }
20336 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20337 echo $ECHO_N "(cached
) $ECHO_C" >&6
20339 ac_check_lib_save_LIBS=$LIBS
20340 LIBS="-lk5crypto $LIBS"
20341 cat >conftest.$ac_ext <<_ACEOF
20344 cat confdefs.h >>conftest.$ac_ext
20345 cat >>conftest.$ac_ext <<_ACEOF
20346 /* end confdefs.h. */
20348 /* Override any GCC internal prototype to avoid an error.
20349 Use char because int might match the return type of a GCC
20350 builtin and then its argument prototype would still apply. */
20354 char mit_des_cbc_encrypt ();
20358 return mit_des_cbc_encrypt ();
20363 rm -f conftest.$ac_objext conftest$ac_exeext
20364 if { (ac_try="$ac_link"
20365 case "(($ac_try" in
20366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20367 *) ac_try_echo=$ac_try;;
20369 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20370 (eval "$ac_link") 2>conftest.er1
20372 grep -v '^ *+' conftest.er1 >conftest.err
20374 cat conftest.err >&5
20375 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20376 (exit $ac_status); } && {
20377 test -z "$ac_c_werror_flag" ||
20378 test ! -s conftest.err
20379 } && test -s conftest$ac_exeext &&
20380 $as_test_x conftest$ac_exeext; then
20381 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20383 echo "$as_me: failed program was
:" >&5
20384 sed 's/^/| /' conftest.$ac_ext >&5
20386 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20389 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20390 conftest$ac_exeext conftest.$ac_ext
20391 LIBS=$ac_check_lib_save_LIBS
20393 { echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20394 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20395 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20396 cat >>confdefs.h <<_ACEOF
20397 #define HAVE_LIBK5CRYPTO 1
20400 LIBS="-lk5crypto $LIBS"
20405 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
20406 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lcrypto...
$ECHO_C" >&6; }
20407 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20408 echo $ECHO_N "(cached
) $ECHO_C" >&6
20410 ac_check_lib_save_LIBS=$LIBS
20411 LIBS="-lcrypto $LIBS"
20412 cat >conftest.$ac_ext <<_ACEOF
20415 cat confdefs.h >>conftest.$ac_ext
20416 cat >>conftest.$ac_ext <<_ACEOF
20417 /* end confdefs.h. */
20419 /* Override any GCC internal prototype to avoid an error.
20420 Use char because int might match the return type of a GCC
20421 builtin and then its argument prototype would still apply. */
20425 char mit_des_cbc_encrypt ();
20429 return mit_des_cbc_encrypt ();
20434 rm -f conftest.$ac_objext conftest$ac_exeext
20435 if { (ac_try="$ac_link"
20436 case "(($ac_try" in
20437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20438 *) ac_try_echo=$ac_try;;
20440 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20441 (eval "$ac_link") 2>conftest.er1
20443 grep -v '^ *+' conftest.er1 >conftest.err
20445 cat conftest.err >&5
20446 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20447 (exit $ac_status); } && {
20448 test -z "$ac_c_werror_flag" ||
20449 test ! -s conftest.err
20450 } && test -s conftest$ac_exeext &&
20451 $as_test_x conftest$ac_exeext; then
20452 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20454 echo "$as_me: failed program was
:" >&5
20455 sed 's/^/| /' conftest.$ac_ext >&5
20457 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20461 conftest$ac_exeext conftest.$ac_ext
20462 LIBS=$ac_check_lib_save_LIBS
20464 { echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20465 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20466 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20467 cat >>confdefs.h <<_ACEOF
20468 #define HAVE_LIBCRYPTO 1
20471 LIBS="-lcrypto $LIBS"
20476 { echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
20477 echo $ECHO_N "checking
for krb5_init_context
in -lkrb5...
$ECHO_C" >&6; }
20478 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20479 echo $ECHO_N "(cached
) $ECHO_C" >&6
20481 ac_check_lib_save_LIBS=$LIBS
20482 LIBS="-lkrb5 $LIBS"
20483 cat >conftest.$ac_ext <<_ACEOF
20486 cat confdefs.h >>conftest.$ac_ext
20487 cat >>conftest.$ac_ext <<_ACEOF
20488 /* end confdefs.h. */
20490 /* Override any GCC internal prototype to avoid an error.
20491 Use char because int might match the return type of a GCC
20492 builtin and then its argument prototype would still apply. */
20496 char krb5_init_context ();
20500 return krb5_init_context ();
20505 rm -f conftest.$ac_objext conftest$ac_exeext
20506 if { (ac_try="$ac_link"
20507 case "(($ac_try" in
20508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20509 *) ac_try_echo=$ac_try;;
20511 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20512 (eval "$ac_link") 2>conftest.er1
20514 grep -v '^ *+' conftest.er1 >conftest.err
20516 cat conftest.err >&5
20517 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20518 (exit $ac_status); } && {
20519 test -z "$ac_c_werror_flag" ||
20520 test ! -s conftest.err
20521 } && test -s conftest$ac_exeext &&
20522 $as_test_x conftest$ac_exeext; then
20523 ac_cv_lib_krb5_krb5_init_context=yes
20525 echo "$as_me: failed program was
:" >&5
20526 sed 's/^/| /' conftest.$ac_ext >&5
20528 ac_cv_lib_krb5_krb5_init_context=no
20531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20532 conftest$ac_exeext conftest.$ac_ext
20533 LIBS=$ac_check_lib_save_LIBS
20535 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
20536 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20537 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20538 cat >>confdefs.h <<_ACEOF
20539 #define HAVE_LIBKRB5 1
20542 LIBS="-lkrb5 $LIBS"
20546 if test "${with_kerberos5+set}" != set; then
20548 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
20549 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes425...
$ECHO_C" >&6; }
20550 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20551 echo $ECHO_N "(cached
) $ECHO_C" >&6
20553 ac_check_lib_save_LIBS=$LIBS
20554 LIBS="-ldes425 $LIBS"
20555 cat >conftest.$ac_ext <<_ACEOF
20558 cat confdefs.h >>conftest.$ac_ext
20559 cat >>conftest.$ac_ext <<_ACEOF
20560 /* end confdefs.h. */
20562 /* Override any GCC internal prototype to avoid an error.
20563 Use char because int might match the return type of a GCC
20564 builtin and then its argument prototype would still apply. */
20568 char des_cbc_encrypt ();
20572 return des_cbc_encrypt ();
20577 rm -f conftest.$ac_objext conftest$ac_exeext
20578 if { (ac_try="$ac_link"
20579 case "(($ac_try" in
20580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20581 *) ac_try_echo=$ac_try;;
20583 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20584 (eval "$ac_link") 2>conftest.er1
20586 grep -v '^ *+' conftest.er1 >conftest.err
20588 cat conftest.err >&5
20589 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20590 (exit $ac_status); } && {
20591 test -z "$ac_c_werror_flag" ||
20592 test ! -s conftest.err
20593 } && test -s conftest$ac_exeext &&
20594 $as_test_x conftest$ac_exeext; then
20595 ac_cv_lib_des425_des_cbc_encrypt=yes
20597 echo "$as_me: failed program was
:" >&5
20598 sed 's/^/| /' conftest.$ac_ext >&5
20600 ac_cv_lib_des425_des_cbc_encrypt=no
20603 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20604 conftest$ac_exeext conftest.$ac_ext
20605 LIBS=$ac_check_lib_save_LIBS
20607 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20608 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20609 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20610 cat >>confdefs.h <<_ACEOF
20611 #define HAVE_LIBDES425 1
20614 LIBS="-ldes425 $LIBS"
20618 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
20619 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes...
$ECHO_C" >&6; }
20620 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20621 echo $ECHO_N "(cached
) $ECHO_C" >&6
20623 ac_check_lib_save_LIBS=$LIBS
20625 cat >conftest.$ac_ext <<_ACEOF
20628 cat confdefs.h >>conftest.$ac_ext
20629 cat >>conftest.$ac_ext <<_ACEOF
20630 /* end confdefs.h. */
20632 /* Override any GCC internal prototype to avoid an error.
20633 Use char because int might match the return type of a GCC
20634 builtin and then its argument prototype would still apply. */
20638 char des_cbc_encrypt ();
20642 return des_cbc_encrypt ();
20647 rm -f conftest.$ac_objext conftest$ac_exeext
20648 if { (ac_try="$ac_link"
20649 case "(($ac_try" in
20650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20651 *) ac_try_echo=$ac_try;;
20653 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20654 (eval "$ac_link") 2>conftest.er1
20656 grep -v '^ *+' conftest.er1 >conftest.err
20658 cat conftest.err >&5
20659 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20660 (exit $ac_status); } && {
20661 test -z "$ac_c_werror_flag" ||
20662 test ! -s conftest.err
20663 } && test -s conftest$ac_exeext &&
20664 $as_test_x conftest$ac_exeext; then
20665 ac_cv_lib_des_des_cbc_encrypt=yes
20667 echo "$as_me: failed program was
:" >&5
20668 sed 's/^/| /' conftest.$ac_ext >&5
20670 ac_cv_lib_des_des_cbc_encrypt=no
20673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20674 conftest$ac_exeext conftest.$ac_ext
20675 LIBS=$ac_check_lib_save_LIBS
20677 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
20678 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20679 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20680 cat >>confdefs.h <<_ACEOF
20681 #define HAVE_LIBDES 1
20691 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
20692 echo $ECHO_N "checking
for krb_get_cred
in -lkrb4...
$ECHO_C" >&6; }
20693 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20694 echo $ECHO_N "(cached
) $ECHO_C" >&6
20696 ac_check_lib_save_LIBS=$LIBS
20697 LIBS="-lkrb4 $LIBS"
20698 cat >conftest.$ac_ext <<_ACEOF
20701 cat confdefs.h >>conftest.$ac_ext
20702 cat >>conftest.$ac_ext <<_ACEOF
20703 /* end confdefs.h. */
20705 /* Override any GCC internal prototype to avoid an error.
20706 Use char because int might match the return type of a GCC
20707 builtin and then its argument prototype would still apply. */
20711 char krb_get_cred ();
20715 return krb_get_cred ();
20720 rm -f conftest.$ac_objext conftest$ac_exeext
20721 if { (ac_try="$ac_link"
20722 case "(($ac_try" in
20723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20724 *) ac_try_echo=$ac_try;;
20726 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20727 (eval "$ac_link") 2>conftest.er1
20729 grep -v '^ *+' conftest.er1 >conftest.err
20731 cat conftest.err >&5
20732 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20733 (exit $ac_status); } && {
20734 test -z "$ac_c_werror_flag" ||
20735 test ! -s conftest.err
20736 } && test -s conftest$ac_exeext &&
20737 $as_test_x conftest$ac_exeext; then
20738 ac_cv_lib_krb4_krb_get_cred=yes
20740 echo "$as_me: failed program was
:" >&5
20741 sed 's/^/| /' conftest.$ac_ext >&5
20743 ac_cv_lib_krb4_krb_get_cred=no
20746 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20747 conftest$ac_exeext conftest.$ac_ext
20748 LIBS=$ac_check_lib_save_LIBS
20750 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
20751 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20752 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20753 cat >>confdefs.h <<_ACEOF
20754 #define HAVE_LIBKRB4 1
20757 LIBS="-lkrb4 $LIBS"
20761 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
20762 echo $ECHO_N "checking
for krb_get_cred
in -lkrb...
$ECHO_C" >&6; }
20763 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20764 echo $ECHO_N "(cached
) $ECHO_C" >&6
20766 ac_check_lib_save_LIBS=$LIBS
20768 cat >conftest.$ac_ext <<_ACEOF
20771 cat confdefs.h >>conftest.$ac_ext
20772 cat >>conftest.$ac_ext <<_ACEOF
20773 /* end confdefs.h. */
20775 /* Override any GCC internal prototype to avoid an error.
20776 Use char because int might match the return type of a GCC
20777 builtin and then its argument prototype would still apply. */
20781 char krb_get_cred ();
20785 return krb_get_cred ();
20790 rm -f conftest.$ac_objext conftest$ac_exeext
20791 if { (ac_try="$ac_link"
20792 case "(($ac_try" in
20793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20794 *) ac_try_echo=$ac_try;;
20796 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20797 (eval "$ac_link") 2>conftest.er1
20799 grep -v '^ *+' conftest.er1 >conftest.err
20801 cat conftest.err >&5
20802 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20803 (exit $ac_status); } && {
20804 test -z "$ac_c_werror_flag" ||
20805 test ! -s conftest.err
20806 } && test -s conftest$ac_exeext &&
20807 $as_test_x conftest$ac_exeext; then
20808 ac_cv_lib_krb_krb_get_cred=yes
20810 echo "$as_me: failed program was
:" >&5
20811 sed 's/^/| /' conftest.$ac_ext >&5
20813 ac_cv_lib_krb_krb_get_cred=no
20816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20817 conftest$ac_exeext conftest.$ac_ext
20818 LIBS=$ac_check_lib_save_LIBS
20820 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
20821 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20822 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20823 cat >>confdefs.h <<_ACEOF
20824 #define HAVE_LIBKRB 1
20835 if test "${with_kerberos5+set}" = set; then
20837 for ac_header in krb5.h
20839 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20840 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20841 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20842 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20843 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20844 echo $ECHO_N "(cached
) $ECHO_C" >&6
20846 ac_res=`eval echo '${'$as_ac_Header'}'`
20847 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20848 echo "${ECHO_T}$ac_res" >&6; }
20850 # Is the header compilable?
20851 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20852 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20853 cat >conftest.$ac_ext <<_ACEOF
20856 cat confdefs.h >>conftest.$ac_ext
20857 cat >>conftest.$ac_ext <<_ACEOF
20858 /* end confdefs.h. */
20859 $ac_includes_default
20860 #include <$ac_header>
20862 rm -f conftest.$ac_objext
20863 if { (ac_try="$ac_compile"
20864 case "(($ac_try" in
20865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20866 *) ac_try_echo=$ac_try;;
20868 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20869 (eval "$ac_compile") 2>conftest.er1
20871 grep -v '^ *+' conftest.er1 >conftest.err
20873 cat conftest.err >&5
20874 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20875 (exit $ac_status); } && {
20876 test -z "$ac_c_werror_flag" ||
20877 test ! -s conftest.err
20878 } && test -s conftest.$ac_objext; then
20879 ac_header_compiler=yes
20881 echo "$as_me: failed program was
:" >&5
20882 sed 's/^/| /' conftest.$ac_ext >&5
20884 ac_header_compiler=no
20887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20888 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20889 echo "${ECHO_T}$ac_header_compiler" >&6; }
20891 # Is the header present?
20892 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20893 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20894 cat >conftest.$ac_ext <<_ACEOF
20897 cat confdefs.h >>conftest.$ac_ext
20898 cat >>conftest.$ac_ext <<_ACEOF
20899 /* end confdefs.h. */
20900 #include <$ac_header>
20902 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20903 case "(($ac_try" in
20904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20905 *) ac_try_echo=$ac_try;;
20907 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20908 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20910 grep -v '^ *+' conftest.er1 >conftest.err
20912 cat conftest.err >&5
20913 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20914 (exit $ac_status); } >/dev/null && {
20915 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20916 test ! -s conftest.err
20918 ac_header_preproc=yes
20920 echo "$as_me: failed program was
:" >&5
20921 sed 's/^/| /' conftest.$ac_ext >&5
20923 ac_header_preproc=no
20926 rm -f conftest.err conftest.$ac_ext
20927 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20928 echo "${ECHO_T}$ac_header_preproc" >&6; }
20930 # So? What about this header?
20931 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20933 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20934 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20935 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20936 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20937 ac_header_preproc=yes
20940 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20941 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20942 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20943 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20944 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20945 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20946 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20947 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20948 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20949 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20950 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20951 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20955 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20956 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20957 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20958 echo $ECHO_N "(cached
) $ECHO_C" >&6
20960 eval "$as_ac_Header=\
$ac_header_preproc"
20962 ac_res=`eval echo '${'$as_ac_Header'}'`
20963 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20964 echo "${ECHO_T}$ac_res" >&6; }
20967 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20968 cat >>confdefs.h <<_ACEOF
20969 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20978 for ac_header in des.h
20980 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20981 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20982 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20983 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20984 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20985 echo $ECHO_N "(cached
) $ECHO_C" >&6
20987 ac_res=`eval echo '${'$as_ac_Header'}'`
20988 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20989 echo "${ECHO_T}$ac_res" >&6; }
20991 # Is the header compilable?
20992 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20993 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20994 cat >conftest.$ac_ext <<_ACEOF
20997 cat confdefs.h >>conftest.$ac_ext
20998 cat >>conftest.$ac_ext <<_ACEOF
20999 /* end confdefs.h. */
21000 $ac_includes_default
21001 #include <$ac_header>
21003 rm -f conftest.$ac_objext
21004 if { (ac_try="$ac_compile"
21005 case "(($ac_try" in
21006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21007 *) ac_try_echo=$ac_try;;
21009 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21010 (eval "$ac_compile") 2>conftest.er1
21012 grep -v '^ *+' conftest.er1 >conftest.err
21014 cat conftest.err >&5
21015 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21016 (exit $ac_status); } && {
21017 test -z "$ac_c_werror_flag" ||
21018 test ! -s conftest.err
21019 } && test -s conftest.$ac_objext; then
21020 ac_header_compiler=yes
21022 echo "$as_me: failed program was
:" >&5
21023 sed 's/^/| /' conftest.$ac_ext >&5
21025 ac_header_compiler=no
21028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21029 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21030 echo "${ECHO_T}$ac_header_compiler" >&6; }
21032 # Is the header present?
21033 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21034 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21035 cat >conftest.$ac_ext <<_ACEOF
21038 cat confdefs.h >>conftest.$ac_ext
21039 cat >>conftest.$ac_ext <<_ACEOF
21040 /* end confdefs.h. */
21041 #include <$ac_header>
21043 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21044 case "(($ac_try" in
21045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21046 *) ac_try_echo=$ac_try;;
21048 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21049 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21051 grep -v '^ *+' conftest.er1 >conftest.err
21053 cat conftest.err >&5
21054 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21055 (exit $ac_status); } >/dev/null && {
21056 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21057 test ! -s conftest.err
21059 ac_header_preproc=yes
21061 echo "$as_me: failed program was
:" >&5
21062 sed 's/^/| /' conftest.$ac_ext >&5
21064 ac_header_preproc=no
21067 rm -f conftest.err conftest.$ac_ext
21068 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21069 echo "${ECHO_T}$ac_header_preproc" >&6; }
21071 # So? What about this header?
21072 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21074 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21075 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21076 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21077 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21078 ac_header_preproc=yes
21081 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21082 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21083 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21084 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21085 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21086 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21087 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21088 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21089 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21090 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21091 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21092 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21096 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21097 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21098 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21099 echo $ECHO_N "(cached
) $ECHO_C" >&6
21101 eval "$as_ac_Header=\
$ac_header_preproc"
21103 ac_res=`eval echo '${'$as_ac_Header'}'`
21104 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21105 echo "${ECHO_T}$ac_res" >&6; }
21108 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21109 cat >>confdefs.h <<_ACEOF
21110 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21115 for ac_header in kerberosIV/des.h
21117 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21118 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21119 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21120 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21121 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21122 echo $ECHO_N "(cached
) $ECHO_C" >&6
21124 ac_res=`eval echo '${'$as_ac_Header'}'`
21125 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21126 echo "${ECHO_T}$ac_res" >&6; }
21128 # Is the header compilable?
21129 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21130 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21131 cat >conftest.$ac_ext <<_ACEOF
21134 cat confdefs.h >>conftest.$ac_ext
21135 cat >>conftest.$ac_ext <<_ACEOF
21136 /* end confdefs.h. */
21137 $ac_includes_default
21138 #include <$ac_header>
21140 rm -f conftest.$ac_objext
21141 if { (ac_try="$ac_compile"
21142 case "(($ac_try" in
21143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21144 *) ac_try_echo=$ac_try;;
21146 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21147 (eval "$ac_compile") 2>conftest.er1
21149 grep -v '^ *+' conftest.er1 >conftest.err
21151 cat conftest.err >&5
21152 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21153 (exit $ac_status); } && {
21154 test -z "$ac_c_werror_flag" ||
21155 test ! -s conftest.err
21156 } && test -s conftest.$ac_objext; then
21157 ac_header_compiler=yes
21159 echo "$as_me: failed program was
:" >&5
21160 sed 's/^/| /' conftest.$ac_ext >&5
21162 ac_header_compiler=no
21165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21166 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21167 echo "${ECHO_T}$ac_header_compiler" >&6; }
21169 # Is the header present?
21170 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21171 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21172 cat >conftest.$ac_ext <<_ACEOF
21175 cat confdefs.h >>conftest.$ac_ext
21176 cat >>conftest.$ac_ext <<_ACEOF
21177 /* end confdefs.h. */
21178 #include <$ac_header>
21180 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21181 case "(($ac_try" in
21182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21183 *) ac_try_echo=$ac_try;;
21185 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21186 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21188 grep -v '^ *+' conftest.er1 >conftest.err
21190 cat conftest.err >&5
21191 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21192 (exit $ac_status); } >/dev/null && {
21193 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21194 test ! -s conftest.err
21196 ac_header_preproc=yes
21198 echo "$as_me: failed program was
:" >&5
21199 sed 's/^/| /' conftest.$ac_ext >&5
21201 ac_header_preproc=no
21204 rm -f conftest.err conftest.$ac_ext
21205 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21206 echo "${ECHO_T}$ac_header_preproc" >&6; }
21208 # So? What about this header?
21209 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21211 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21212 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21213 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21214 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21215 ac_header_preproc=yes
21218 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21219 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21220 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21221 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21222 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21223 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21224 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21225 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21226 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21227 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21228 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21229 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21233 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21234 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21235 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21236 echo $ECHO_N "(cached
) $ECHO_C" >&6
21238 eval "$as_ac_Header=\
$ac_header_preproc"
21240 ac_res=`eval echo '${'$as_ac_Header'}'`
21241 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21242 echo "${ECHO_T}$ac_res" >&6; }
21245 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21246 cat >>confdefs.h <<_ACEOF
21247 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21252 for ac_header in kerberos/des.h
21254 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21255 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21256 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21257 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21258 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21259 echo $ECHO_N "(cached
) $ECHO_C" >&6
21261 ac_res=`eval echo '${'$as_ac_Header'}'`
21262 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21263 echo "${ECHO_T}$ac_res" >&6; }
21265 # Is the header compilable?
21266 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21267 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21268 cat >conftest.$ac_ext <<_ACEOF
21271 cat confdefs.h >>conftest.$ac_ext
21272 cat >>conftest.$ac_ext <<_ACEOF
21273 /* end confdefs.h. */
21274 $ac_includes_default
21275 #include <$ac_header>
21277 rm -f conftest.$ac_objext
21278 if { (ac_try="$ac_compile"
21279 case "(($ac_try" in
21280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21281 *) ac_try_echo=$ac_try;;
21283 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21284 (eval "$ac_compile") 2>conftest.er1
21286 grep -v '^ *+' conftest.er1 >conftest.err
21288 cat conftest.err >&5
21289 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21290 (exit $ac_status); } && {
21291 test -z "$ac_c_werror_flag" ||
21292 test ! -s conftest.err
21293 } && test -s conftest.$ac_objext; then
21294 ac_header_compiler=yes
21296 echo "$as_me: failed program was
:" >&5
21297 sed 's/^/| /' conftest.$ac_ext >&5
21299 ac_header_compiler=no
21302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21303 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21304 echo "${ECHO_T}$ac_header_compiler" >&6; }
21306 # Is the header present?
21307 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21308 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21309 cat >conftest.$ac_ext <<_ACEOF
21312 cat confdefs.h >>conftest.$ac_ext
21313 cat >>conftest.$ac_ext <<_ACEOF
21314 /* end confdefs.h. */
21315 #include <$ac_header>
21317 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21318 case "(($ac_try" in
21319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21320 *) ac_try_echo=$ac_try;;
21322 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21323 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21325 grep -v '^ *+' conftest.er1 >conftest.err
21327 cat conftest.err >&5
21328 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21329 (exit $ac_status); } >/dev/null && {
21330 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21331 test ! -s conftest.err
21333 ac_header_preproc=yes
21335 echo "$as_me: failed program was
:" >&5
21336 sed 's/^/| /' conftest.$ac_ext >&5
21338 ac_header_preproc=no
21341 rm -f conftest.err conftest.$ac_ext
21342 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21343 echo "${ECHO_T}$ac_header_preproc" >&6; }
21345 # So? What about this header?
21346 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21348 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21349 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21350 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21351 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21352 ac_header_preproc=yes
21355 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21356 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21357 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21358 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21359 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21360 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21361 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21362 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21363 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21364 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21365 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21366 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21370 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21371 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21372 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21373 echo $ECHO_N "(cached
) $ECHO_C" >&6
21375 eval "$as_ac_Header=\
$ac_header_preproc"
21377 ac_res=`eval echo '${'$as_ac_Header'}'`
21378 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21379 echo "${ECHO_T}$ac_res" >&6; }
21382 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21383 cat >>confdefs.h <<_ACEOF
21384 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21400 for ac_header in krb.h
21402 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21403 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21404 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21405 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21406 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21407 echo $ECHO_N "(cached
) $ECHO_C" >&6
21409 ac_res=`eval echo '${'$as_ac_Header'}'`
21410 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21411 echo "${ECHO_T}$ac_res" >&6; }
21413 # Is the header compilable?
21414 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21415 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21416 cat >conftest.$ac_ext <<_ACEOF
21419 cat confdefs.h >>conftest.$ac_ext
21420 cat >>conftest.$ac_ext <<_ACEOF
21421 /* end confdefs.h. */
21422 $ac_includes_default
21423 #include <$ac_header>
21425 rm -f conftest.$ac_objext
21426 if { (ac_try="$ac_compile"
21427 case "(($ac_try" in
21428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21429 *) ac_try_echo=$ac_try;;
21431 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21432 (eval "$ac_compile") 2>conftest.er1
21434 grep -v '^ *+' conftest.er1 >conftest.err
21436 cat conftest.err >&5
21437 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21438 (exit $ac_status); } && {
21439 test -z "$ac_c_werror_flag" ||
21440 test ! -s conftest.err
21441 } && test -s conftest.$ac_objext; then
21442 ac_header_compiler=yes
21444 echo "$as_me: failed program was
:" >&5
21445 sed 's/^/| /' conftest.$ac_ext >&5
21447 ac_header_compiler=no
21450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21451 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21452 echo "${ECHO_T}$ac_header_compiler" >&6; }
21454 # Is the header present?
21455 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21456 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21457 cat >conftest.$ac_ext <<_ACEOF
21460 cat confdefs.h >>conftest.$ac_ext
21461 cat >>conftest.$ac_ext <<_ACEOF
21462 /* end confdefs.h. */
21463 #include <$ac_header>
21465 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21466 case "(($ac_try" in
21467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21468 *) ac_try_echo=$ac_try;;
21470 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21471 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21473 grep -v '^ *+' conftest.er1 >conftest.err
21475 cat conftest.err >&5
21476 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21477 (exit $ac_status); } >/dev/null && {
21478 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21479 test ! -s conftest.err
21481 ac_header_preproc=yes
21483 echo "$as_me: failed program was
:" >&5
21484 sed 's/^/| /' conftest.$ac_ext >&5
21486 ac_header_preproc=no
21489 rm -f conftest.err conftest.$ac_ext
21490 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21491 echo "${ECHO_T}$ac_header_preproc" >&6; }
21493 # So? What about this header?
21494 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21496 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21497 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21498 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21499 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21500 ac_header_preproc=yes
21503 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21504 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21505 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21506 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21507 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21508 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21509 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21510 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21511 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21512 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21513 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21514 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21518 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21519 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21520 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21521 echo $ECHO_N "(cached
) $ECHO_C" >&6
21523 eval "$as_ac_Header=\
$ac_header_preproc"
21525 ac_res=`eval echo '${'$as_ac_Header'}'`
21526 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21527 echo "${ECHO_T}$ac_res" >&6; }
21530 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21531 cat >>confdefs.h <<_ACEOF
21532 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21537 for ac_header in kerberosIV/krb.h
21539 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21540 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21541 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21542 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21543 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21544 echo $ECHO_N "(cached
) $ECHO_C" >&6
21546 ac_res=`eval echo '${'$as_ac_Header'}'`
21547 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21548 echo "${ECHO_T}$ac_res" >&6; }
21550 # Is the header compilable?
21551 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21552 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21553 cat >conftest.$ac_ext <<_ACEOF
21556 cat confdefs.h >>conftest.$ac_ext
21557 cat >>conftest.$ac_ext <<_ACEOF
21558 /* end confdefs.h. */
21559 $ac_includes_default
21560 #include <$ac_header>
21562 rm -f conftest.$ac_objext
21563 if { (ac_try="$ac_compile"
21564 case "(($ac_try" in
21565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21566 *) ac_try_echo=$ac_try;;
21568 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21569 (eval "$ac_compile") 2>conftest.er1
21571 grep -v '^ *+' conftest.er1 >conftest.err
21573 cat conftest.err >&5
21574 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21575 (exit $ac_status); } && {
21576 test -z "$ac_c_werror_flag" ||
21577 test ! -s conftest.err
21578 } && test -s conftest.$ac_objext; then
21579 ac_header_compiler=yes
21581 echo "$as_me: failed program was
:" >&5
21582 sed 's/^/| /' conftest.$ac_ext >&5
21584 ac_header_compiler=no
21587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21588 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21589 echo "${ECHO_T}$ac_header_compiler" >&6; }
21591 # Is the header present?
21592 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21593 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21594 cat >conftest.$ac_ext <<_ACEOF
21597 cat confdefs.h >>conftest.$ac_ext
21598 cat >>conftest.$ac_ext <<_ACEOF
21599 /* end confdefs.h. */
21600 #include <$ac_header>
21602 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21603 case "(($ac_try" in
21604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21605 *) ac_try_echo=$ac_try;;
21607 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21608 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21610 grep -v '^ *+' conftest.er1 >conftest.err
21612 cat conftest.err >&5
21613 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21614 (exit $ac_status); } >/dev/null && {
21615 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21616 test ! -s conftest.err
21618 ac_header_preproc=yes
21620 echo "$as_me: failed program was
:" >&5
21621 sed 's/^/| /' conftest.$ac_ext >&5
21623 ac_header_preproc=no
21626 rm -f conftest.err conftest.$ac_ext
21627 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21628 echo "${ECHO_T}$ac_header_preproc" >&6; }
21630 # So? What about this header?
21631 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21633 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21634 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21635 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21636 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21637 ac_header_preproc=yes
21640 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21641 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21642 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21643 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21644 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21645 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21646 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21647 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21648 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21649 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21650 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21651 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21655 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21656 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21657 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21658 echo $ECHO_N "(cached
) $ECHO_C" >&6
21660 eval "$as_ac_Header=\
$ac_header_preproc"
21662 ac_res=`eval echo '${'$as_ac_Header'}'`
21663 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21664 echo "${ECHO_T}$ac_res" >&6; }
21667 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21668 cat >>confdefs.h <<_ACEOF
21669 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21674 for ac_header in kerberos/krb.h
21676 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21677 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21678 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21679 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21680 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21681 echo $ECHO_N "(cached
) $ECHO_C" >&6
21683 ac_res=`eval echo '${'$as_ac_Header'}'`
21684 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21685 echo "${ECHO_T}$ac_res" >&6; }
21687 # Is the header compilable?
21688 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21689 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21690 cat >conftest.$ac_ext <<_ACEOF
21693 cat confdefs.h >>conftest.$ac_ext
21694 cat >>conftest.$ac_ext <<_ACEOF
21695 /* end confdefs.h. */
21696 $ac_includes_default
21697 #include <$ac_header>
21699 rm -f conftest.$ac_objext
21700 if { (ac_try="$ac_compile"
21701 case "(($ac_try" in
21702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21703 *) ac_try_echo=$ac_try;;
21705 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21706 (eval "$ac_compile") 2>conftest.er1
21708 grep -v '^ *+' conftest.er1 >conftest.err
21710 cat conftest.err >&5
21711 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21712 (exit $ac_status); } && {
21713 test -z "$ac_c_werror_flag" ||
21714 test ! -s conftest.err
21715 } && test -s conftest.$ac_objext; then
21716 ac_header_compiler=yes
21718 echo "$as_me: failed program was
:" >&5
21719 sed 's/^/| /' conftest.$ac_ext >&5
21721 ac_header_compiler=no
21724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21725 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21726 echo "${ECHO_T}$ac_header_compiler" >&6; }
21728 # Is the header present?
21729 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21730 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21731 cat >conftest.$ac_ext <<_ACEOF
21734 cat confdefs.h >>conftest.$ac_ext
21735 cat >>conftest.$ac_ext <<_ACEOF
21736 /* end confdefs.h. */
21737 #include <$ac_header>
21739 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21740 case "(($ac_try" in
21741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21742 *) ac_try_echo=$ac_try;;
21744 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21745 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21747 grep -v '^ *+' conftest.er1 >conftest.err
21749 cat conftest.err >&5
21750 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21751 (exit $ac_status); } >/dev/null && {
21752 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21753 test ! -s conftest.err
21755 ac_header_preproc=yes
21757 echo "$as_me: failed program was
:" >&5
21758 sed 's/^/| /' conftest.$ac_ext >&5
21760 ac_header_preproc=no
21763 rm -f conftest.err conftest.$ac_ext
21764 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21765 echo "${ECHO_T}$ac_header_preproc" >&6; }
21767 # So? What about this header?
21768 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21770 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21771 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21772 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21773 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21774 ac_header_preproc=yes
21777 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21778 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21779 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21780 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21781 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21782 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21783 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21784 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21785 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21786 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21787 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21788 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21792 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21793 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21794 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21795 echo $ECHO_N "(cached
) $ECHO_C" >&6
21797 eval "$as_ac_Header=\
$ac_header_preproc"
21799 ac_res=`eval echo '${'$as_ac_Header'}'`
21800 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21801 echo "${ECHO_T}$ac_res" >&6; }
21804 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21805 cat >>confdefs.h <<_ACEOF
21806 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21823 for ac_header in com_err.h
21825 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21826 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21827 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21828 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21829 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21830 echo $ECHO_N "(cached
) $ECHO_C" >&6
21832 ac_res=`eval echo '${'$as_ac_Header'}'`
21833 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21834 echo "${ECHO_T}$ac_res" >&6; }
21836 # Is the header compilable?
21837 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21838 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21839 cat >conftest.$ac_ext <<_ACEOF
21842 cat confdefs.h >>conftest.$ac_ext
21843 cat >>conftest.$ac_ext <<_ACEOF
21844 /* end confdefs.h. */
21845 $ac_includes_default
21846 #include <$ac_header>
21848 rm -f conftest.$ac_objext
21849 if { (ac_try="$ac_compile"
21850 case "(($ac_try" in
21851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21852 *) ac_try_echo=$ac_try;;
21854 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21855 (eval "$ac_compile") 2>conftest.er1
21857 grep -v '^ *+' conftest.er1 >conftest.err
21859 cat conftest.err >&5
21860 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21861 (exit $ac_status); } && {
21862 test -z "$ac_c_werror_flag" ||
21863 test ! -s conftest.err
21864 } && test -s conftest.$ac_objext; then
21865 ac_header_compiler=yes
21867 echo "$as_me: failed program was
:" >&5
21868 sed 's/^/| /' conftest.$ac_ext >&5
21870 ac_header_compiler=no
21873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21874 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21875 echo "${ECHO_T}$ac_header_compiler" >&6; }
21877 # Is the header present?
21878 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21879 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21880 cat >conftest.$ac_ext <<_ACEOF
21883 cat confdefs.h >>conftest.$ac_ext
21884 cat >>conftest.$ac_ext <<_ACEOF
21885 /* end confdefs.h. */
21886 #include <$ac_header>
21888 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21889 case "(($ac_try" in
21890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21891 *) ac_try_echo=$ac_try;;
21893 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21894 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21896 grep -v '^ *+' conftest.er1 >conftest.err
21898 cat conftest.err >&5
21899 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21900 (exit $ac_status); } >/dev/null && {
21901 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21902 test ! -s conftest.err
21904 ac_header_preproc=yes
21906 echo "$as_me: failed program was
:" >&5
21907 sed 's/^/| /' conftest.$ac_ext >&5
21909 ac_header_preproc=no
21912 rm -f conftest.err conftest.$ac_ext
21913 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21914 echo "${ECHO_T}$ac_header_preproc" >&6; }
21916 # So? What about this header?
21917 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21919 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21920 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21921 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21922 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21923 ac_header_preproc=yes
21926 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21927 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21928 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21929 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21930 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21931 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21932 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21933 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21934 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21935 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21936 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21937 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21941 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21942 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21943 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21944 echo $ECHO_N "(cached
) $ECHO_C" >&6
21946 eval "$as_ac_Header=\
$ac_header_preproc"
21948 ac_res=`eval echo '${'$as_ac_Header'}'`
21949 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21950 echo "${ECHO_T}$ac_res" >&6; }
21953 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21954 cat >>confdefs.h <<_ACEOF
21955 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21964 # Solaris requires -lintl if you want strerror (which calls dgettext)
21965 # to return localized messages.
21967 { echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
21968 echo $ECHO_N "checking
for dgettext
in -lintl...
$ECHO_C" >&6; }
21969 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21970 echo $ECHO_N "(cached
) $ECHO_C" >&6
21972 ac_check_lib_save_LIBS=$LIBS
21973 LIBS="-lintl $LIBS"
21974 cat >conftest.$ac_ext <<_ACEOF
21977 cat confdefs.h >>conftest.$ac_ext
21978 cat >>conftest.$ac_ext <<_ACEOF
21979 /* end confdefs.h. */
21981 /* Override any GCC internal prototype to avoid an error.
21982 Use char because int might match the return type of a GCC
21983 builtin and then its argument prototype would still apply. */
21991 return dgettext ();
21996 rm -f conftest.$ac_objext conftest$ac_exeext
21997 if { (ac_try="$ac_link"
21998 case "(($ac_try" in
21999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22000 *) ac_try_echo=$ac_try;;
22002 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22003 (eval "$ac_link") 2>conftest.er1
22005 grep -v '^ *+' conftest.er1 >conftest.err
22007 cat conftest.err >&5
22008 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22009 (exit $ac_status); } && {
22010 test -z "$ac_c_werror_flag" ||
22011 test ! -s conftest.err
22012 } && test -s conftest$ac_exeext &&
22013 $as_test_x conftest$ac_exeext; then
22014 ac_cv_lib_intl_dgettext=yes
22016 echo "$as_me: failed program was
:" >&5
22017 sed 's/^/| /' conftest.$ac_ext >&5
22019 ac_cv_lib_intl_dgettext=no
22022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22023 conftest$ac_exeext conftest.$ac_ext
22024 LIBS=$ac_check_lib_save_LIBS
22026 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
22027 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
22028 if test $ac_cv_lib_intl_dgettext = yes; then
22029 cat >>confdefs.h <<_ACEOF
22030 #define HAVE_LIBINTL 1
22033 LIBS="-lintl $LIBS"
22038 { echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
22039 echo $ECHO_N "checking whether localtime caches TZ...
$ECHO_C" >&6; }
22040 if test "${emacs_cv_localtime_cache+set}" = set; then
22041 echo $ECHO_N "(cached
) $ECHO_C" >&6
22043 if test x$ac_cv_func_tzset = xyes; then
22044 if test "$cross_compiling" = yes; then
22045 # If we have tzset, assume the worst when cross-compiling.
22046 emacs_cv_localtime_cache=yes
22048 cat >conftest.$ac_ext <<_ACEOF
22051 cat confdefs.h >>conftest.$ac_ext
22052 cat >>conftest.$ac_ext <<_ACEOF
22053 /* end confdefs.h. */
22055 extern char **environ;
22059 for (to = from = environ; (*to = *from); from++)
22060 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
22063 char TZ_GMT0[] = "TZ
=GMT0
";
22064 char TZ_PST8[] = "TZ
=PST8
";
22067 time_t now = time ((time_t *) 0);
22068 int hour_GMT0, hour_unset;
22069 if (putenv (TZ_GMT0) != 0)
22071 hour_GMT0 = localtime (&now)->tm_hour;
22073 hour_unset = localtime (&now)->tm_hour;
22074 if (putenv (TZ_PST8) != 0)
22076 if (localtime (&now)->tm_hour == hour_GMT0)
22079 if (localtime (&now)->tm_hour != hour_unset)
22084 rm -f conftest$ac_exeext
22085 if { (ac_try="$ac_link"
22086 case "(($ac_try" in
22087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22088 *) ac_try_echo=$ac_try;;
22090 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22091 (eval "$ac_link") 2>&5
22093 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22094 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22095 { (case "(($ac_try" in
22096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22097 *) ac_try_echo=$ac_try;;
22099 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22100 (eval "$ac_try") 2>&5
22102 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22103 (exit $ac_status); }; }; then
22104 emacs_cv_localtime_cache=no
22106 echo "$as_me: program exited with status
$ac_status" >&5
22107 echo "$as_me: failed program was
:" >&5
22108 sed 's/^/| /' conftest.$ac_ext >&5
22110 ( exit $ac_status )
22111 emacs_cv_localtime_cache=yes
22113 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22118 # If we lack tzset, report that localtime does not cache TZ,
22119 # since we can't invalidate the cache if we don't have tzset.
22120 emacs_cv_localtime_cache=no
22123 { echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
22124 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
22125 if test $emacs_cv_localtime_cache = yes; then
22127 cat >>confdefs.h <<\_ACEOF
22128 #define LOCALTIME_CACHE 1
22133 if test "x
$HAVE_TIMEVAL" = xyes; then
22135 for ac_func in gettimeofday
22137 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
22138 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
22139 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
22140 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
22141 echo $ECHO_N "(cached
) $ECHO_C" >&6
22143 cat >conftest.$ac_ext <<_ACEOF
22146 cat confdefs.h >>conftest.$ac_ext
22147 cat >>conftest.$ac_ext <<_ACEOF
22148 /* end confdefs.h. */
22149 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22150 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22151 #define $ac_func innocuous_$ac_func
22153 /* System header to define __stub macros and hopefully few prototypes,
22154 which can conflict with char $ac_func (); below.
22155 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22156 <limits.h> exists even on freestanding compilers. */
22159 # include <limits.h>
22161 # include <assert.h>
22166 /* Override any GCC internal prototype to avoid an error.
22167 Use char because int might match the return type of a GCC
22168 builtin and then its argument prototype would still apply. */
22173 /* The GNU C library defines this for functions which it implements
22174 to always fail with ENOSYS. Some functions are actually named
22175 something starting with __ and the normal name is an alias. */
22176 #if defined __stub_$ac_func || defined __stub___$ac_func
22183 return $ac_func ();
22188 rm -f conftest.$ac_objext conftest$ac_exeext
22189 if { (ac_try="$ac_link"
22190 case "(($ac_try" in
22191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22192 *) ac_try_echo=$ac_try;;
22194 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22195 (eval "$ac_link") 2>conftest.er1
22197 grep -v '^ *+' conftest.er1 >conftest.err
22199 cat conftest.err >&5
22200 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22201 (exit $ac_status); } && {
22202 test -z "$ac_c_werror_flag" ||
22203 test ! -s conftest.err
22204 } && test -s conftest$ac_exeext &&
22205 $as_test_x conftest$ac_exeext; then
22206 eval "$as_ac_var=yes"
22208 echo "$as_me: failed program was
:" >&5
22209 sed 's/^/| /' conftest.$ac_ext >&5
22211 eval "$as_ac_var=no
"
22214 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22215 conftest$ac_exeext conftest.$ac_ext
22217 ac_res=`eval echo '${'$as_ac_var'}'`
22218 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22219 echo "${ECHO_T}$ac_res" >&6; }
22220 if test `eval echo '${'$as_ac_var'}'` = yes; then
22221 cat >>confdefs.h <<_ACEOF
22222 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
22228 if test $ac_cv_func_gettimeofday = yes; then
22229 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
22230 echo $ECHO_N "checking whether gettimeofday can accept two arguments...
$ECHO_C" >&6; }
22231 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22232 echo $ECHO_N "(cached
) $ECHO_C" >&6
22234 cat >conftest.$ac_ext <<_ACEOF
22237 cat confdefs.h >>conftest.$ac_ext
22238 cat >>conftest.$ac_ext <<_ACEOF
22239 /* end confdefs.h. */
22241 #ifdef TIME_WITH_SYS_TIME
22242 #include <sys/time.h>
22245 #ifdef HAVE_SYS_TIME_H
22246 #include <sys/time.h>
22254 struct timeval time;
22255 gettimeofday (&time, 0);
22260 rm -f conftest.$ac_objext
22261 if { (ac_try="$ac_compile"
22262 case "(($ac_try" in
22263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22264 *) ac_try_echo=$ac_try;;
22266 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22267 (eval "$ac_compile") 2>conftest.er1
22269 grep -v '^ *+' conftest.er1 >conftest.err
22271 cat conftest.err >&5
22272 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22273 (exit $ac_status); } && {
22274 test -z "$ac_c_werror_flag" ||
22275 test ! -s conftest.err
22276 } && test -s conftest.$ac_objext; then
22277 emacs_cv_gettimeofday_two_arguments=yes
22279 echo "$as_me: failed program was
:" >&5
22280 sed 's/^/| /' conftest.$ac_ext >&5
22282 emacs_cv_gettimeofday_two_arguments=no
22285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22287 { echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
22288 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22289 if test $emacs_cv_gettimeofday_two_arguments = no; then
22291 cat >>confdefs.h <<\_ACEOF
22292 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22300 { echo "$as_me:$LINENO: checking
for socket
" >&5
22301 echo $ECHO_N "checking
for socket...
$ECHO_C" >&6; }
22302 if test "${ac_cv_func_socket+set}" = set; then
22303 echo $ECHO_N "(cached
) $ECHO_C" >&6
22305 cat >conftest.$ac_ext <<_ACEOF
22308 cat confdefs.h >>conftest.$ac_ext
22309 cat >>conftest.$ac_ext <<_ACEOF
22310 /* end confdefs.h. */
22311 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22312 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22313 #define socket innocuous_socket
22315 /* System header to define __stub macros and hopefully few prototypes,
22316 which can conflict with char socket (); below.
22317 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22318 <limits.h> exists even on freestanding compilers. */
22321 # include <limits.h>
22323 # include <assert.h>
22328 /* Override any GCC internal prototype to avoid an error.
22329 Use char because int might match the return type of a GCC
22330 builtin and then its argument prototype would still apply. */
22335 /* The GNU C library defines this for functions which it implements
22336 to always fail with ENOSYS. Some functions are actually named
22337 something starting with __ and the normal name is an alias. */
22338 #if defined __stub_socket || defined __stub___socket
22350 rm -f conftest.$ac_objext conftest$ac_exeext
22351 if { (ac_try="$ac_link"
22352 case "(($ac_try" in
22353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22354 *) ac_try_echo=$ac_try;;
22356 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22357 (eval "$ac_link") 2>conftest.er1
22359 grep -v '^ *+' conftest.er1 >conftest.err
22361 cat conftest.err >&5
22362 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22363 (exit $ac_status); } && {
22364 test -z "$ac_c_werror_flag" ||
22365 test ! -s conftest.err
22366 } && test -s conftest$ac_exeext &&
22367 $as_test_x conftest$ac_exeext; then
22368 ac_cv_func_socket=yes
22370 echo "$as_me: failed program was
:" >&5
22371 sed 's/^/| /' conftest.$ac_ext >&5
22373 ac_cv_func_socket=no
22376 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22377 conftest$ac_exeext conftest.$ac_ext
22379 { echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
22380 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22381 if test $ac_cv_func_socket = yes; then
22387 if test $ok_so_far = yes; then
22388 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22389 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
22390 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
22391 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22392 echo $ECHO_N "(cached
) $ECHO_C" >&6
22394 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
22395 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22397 # Is the header compilable?
22398 { echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
22399 echo $ECHO_N "checking netinet
/in.h usability...
$ECHO_C" >&6; }
22400 cat >conftest.$ac_ext <<_ACEOF
22403 cat confdefs.h >>conftest.$ac_ext
22404 cat >>conftest.$ac_ext <<_ACEOF
22405 /* end confdefs.h. */
22406 $ac_includes_default
22407 #include <netinet/in.h>
22409 rm -f conftest.$ac_objext
22410 if { (ac_try="$ac_compile"
22411 case "(($ac_try" in
22412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22413 *) ac_try_echo=$ac_try;;
22415 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22416 (eval "$ac_compile") 2>conftest.er1
22418 grep -v '^ *+' conftest.er1 >conftest.err
22420 cat conftest.err >&5
22421 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22422 (exit $ac_status); } && {
22423 test -z "$ac_c_werror_flag" ||
22424 test ! -s conftest.err
22425 } && test -s conftest.$ac_objext; then
22426 ac_header_compiler=yes
22428 echo "$as_me: failed program was
:" >&5
22429 sed 's/^/| /' conftest.$ac_ext >&5
22431 ac_header_compiler=no
22434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22435 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22436 echo "${ECHO_T}$ac_header_compiler" >&6; }
22438 # Is the header present?
22439 { echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
22440 echo $ECHO_N "checking netinet
/in.h presence...
$ECHO_C" >&6; }
22441 cat >conftest.$ac_ext <<_ACEOF
22444 cat confdefs.h >>conftest.$ac_ext
22445 cat >>conftest.$ac_ext <<_ACEOF
22446 /* end confdefs.h. */
22447 #include <netinet/in.h>
22449 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22450 case "(($ac_try" in
22451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22452 *) ac_try_echo=$ac_try;;
22454 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22455 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22457 grep -v '^ *+' conftest.er1 >conftest.err
22459 cat conftest.err >&5
22460 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22461 (exit $ac_status); } >/dev/null && {
22462 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22463 test ! -s conftest.err
22465 ac_header_preproc=yes
22467 echo "$as_me: failed program was
:" >&5
22468 sed 's/^/| /' conftest.$ac_ext >&5
22470 ac_header_preproc=no
22473 rm -f conftest.err conftest.$ac_ext
22474 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22475 echo "${ECHO_T}$ac_header_preproc" >&6; }
22477 # So? What about this header?
22478 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22480 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22481 echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22482 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
22483 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
22484 ac_header_preproc=yes
22487 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
22488 echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
22489 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
22490 echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
22491 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
22492 echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
22493 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22494 echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22495 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
22496 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
22497 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
22498 echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
22502 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
22503 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
22504 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22505 echo $ECHO_N "(cached
) $ECHO_C" >&6
22507 ac_cv_header_netinet_in_h=$ac_header_preproc
22509 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
22510 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22513 if test $ac_cv_header_netinet_in_h = yes; then
22521 if test $ok_so_far = yes; then
22522 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22523 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22524 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22525 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22526 echo $ECHO_N "(cached
) $ECHO_C" >&6
22528 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22529 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22531 # Is the header compilable?
22532 { echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
22533 echo $ECHO_N "checking arpa
/inet.h usability...
$ECHO_C" >&6; }
22534 cat >conftest.$ac_ext <<_ACEOF
22537 cat confdefs.h >>conftest.$ac_ext
22538 cat >>conftest.$ac_ext <<_ACEOF
22539 /* end confdefs.h. */
22540 $ac_includes_default
22541 #include <arpa/inet.h>
22543 rm -f conftest.$ac_objext
22544 if { (ac_try="$ac_compile"
22545 case "(($ac_try" in
22546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22547 *) ac_try_echo=$ac_try;;
22549 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22550 (eval "$ac_compile") 2>conftest.er1
22552 grep -v '^ *+' conftest.er1 >conftest.err
22554 cat conftest.err >&5
22555 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22556 (exit $ac_status); } && {
22557 test -z "$ac_c_werror_flag" ||
22558 test ! -s conftest.err
22559 } && test -s conftest.$ac_objext; then
22560 ac_header_compiler=yes
22562 echo "$as_me: failed program was
:" >&5
22563 sed 's/^/| /' conftest.$ac_ext >&5
22565 ac_header_compiler=no
22568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22569 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22570 echo "${ECHO_T}$ac_header_compiler" >&6; }
22572 # Is the header present?
22573 { echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
22574 echo $ECHO_N "checking arpa
/inet.h presence...
$ECHO_C" >&6; }
22575 cat >conftest.$ac_ext <<_ACEOF
22578 cat confdefs.h >>conftest.$ac_ext
22579 cat >>conftest.$ac_ext <<_ACEOF
22580 /* end confdefs.h. */
22581 #include <arpa/inet.h>
22583 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22584 case "(($ac_try" in
22585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22586 *) ac_try_echo=$ac_try;;
22588 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22589 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22591 grep -v '^ *+' conftest.er1 >conftest.err
22593 cat conftest.err >&5
22594 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22595 (exit $ac_status); } >/dev/null && {
22596 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22597 test ! -s conftest.err
22599 ac_header_preproc=yes
22601 echo "$as_me: failed program was
:" >&5
22602 sed 's/^/| /' conftest.$ac_ext >&5
22604 ac_header_preproc=no
22607 rm -f conftest.err conftest.$ac_ext
22608 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22609 echo "${ECHO_T}$ac_header_preproc" >&6; }
22611 # So? What about this header?
22612 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22614 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22615 echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22616 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
22617 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
22618 ac_header_preproc=yes
22621 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
22622 echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
22623 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
22624 echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
22625 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
22626 echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
22627 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22628 echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22629 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
22630 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
22631 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
22632 echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
22636 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22637 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22638 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22639 echo $ECHO_N "(cached
) $ECHO_C" >&6
22641 ac_cv_header_arpa_inet_h=$ac_header_preproc
22643 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22644 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22647 if test $ac_cv_header_arpa_inet_h = yes; then
22655 if test $ok_so_far = yes; then
22657 cat >>confdefs.h <<\_ACEOF
22658 #define HAVE_INET_SOCKETS 1
22664 for ac_header in sys/ioctl.h
22666 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22667 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22668 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22669 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22670 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22671 echo $ECHO_N "(cached
) $ECHO_C" >&6
22673 ac_res=`eval echo '${'$as_ac_Header'}'`
22674 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22675 echo "${ECHO_T}$ac_res" >&6; }
22677 # Is the header compilable?
22678 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22679 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22680 cat >conftest.$ac_ext <<_ACEOF
22683 cat confdefs.h >>conftest.$ac_ext
22684 cat >>conftest.$ac_ext <<_ACEOF
22685 /* end confdefs.h. */
22686 $ac_includes_default
22687 #include <$ac_header>
22689 rm -f conftest.$ac_objext
22690 if { (ac_try="$ac_compile"
22691 case "(($ac_try" in
22692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22693 *) ac_try_echo=$ac_try;;
22695 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22696 (eval "$ac_compile") 2>conftest.er1
22698 grep -v '^ *+' conftest.er1 >conftest.err
22700 cat conftest.err >&5
22701 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22702 (exit $ac_status); } && {
22703 test -z "$ac_c_werror_flag" ||
22704 test ! -s conftest.err
22705 } && test -s conftest.$ac_objext; then
22706 ac_header_compiler=yes
22708 echo "$as_me: failed program was
:" >&5
22709 sed 's/^/| /' conftest.$ac_ext >&5
22711 ac_header_compiler=no
22714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22715 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22716 echo "${ECHO_T}$ac_header_compiler" >&6; }
22718 # Is the header present?
22719 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22720 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22721 cat >conftest.$ac_ext <<_ACEOF
22724 cat confdefs.h >>conftest.$ac_ext
22725 cat >>conftest.$ac_ext <<_ACEOF
22726 /* end confdefs.h. */
22727 #include <$ac_header>
22729 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22730 case "(($ac_try" in
22731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22732 *) ac_try_echo=$ac_try;;
22734 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22735 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22737 grep -v '^ *+' conftest.er1 >conftest.err
22739 cat conftest.err >&5
22740 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22741 (exit $ac_status); } >/dev/null && {
22742 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22743 test ! -s conftest.err
22745 ac_header_preproc=yes
22747 echo "$as_me: failed program was
:" >&5
22748 sed 's/^/| /' conftest.$ac_ext >&5
22750 ac_header_preproc=no
22753 rm -f conftest.err conftest.$ac_ext
22754 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22755 echo "${ECHO_T}$ac_header_preproc" >&6; }
22757 # So? What about this header?
22758 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22760 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22761 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22762 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22763 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22764 ac_header_preproc=yes
22767 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22768 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22769 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22770 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22771 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22772 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22773 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22774 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22775 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22776 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22777 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22778 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22782 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22783 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22784 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22785 echo $ECHO_N "(cached
) $ECHO_C" >&6
22787 eval "$as_ac_Header=\
$ac_header_preproc"
22789 ac_res=`eval echo '${'$as_ac_Header'}'`
22790 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22791 echo "${ECHO_T}$ac_res" >&6; }
22794 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22795 cat >>confdefs.h <<_ACEOF
22796 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22804 if test -f /usr/lpp/X11/bin/smt.exp; then
22806 cat >>confdefs.h <<\_ACEOF
22807 #define HAVE_AIX_SMT_EXP 1
22812 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
22813 echo $ECHO_N "checking whether system supports dynamic ptys...
$ECHO_C" >&6; }
22814 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22815 { echo "$as_me:$LINENO: result
: yes" >&5
22816 echo "${ECHO_T}yes" >&6; }
22818 cat >>confdefs.h <<\_ACEOF
22819 #define HAVE_DEV_PTMX 1
22823 { echo "$as_me:$LINENO: result
: no
" >&5
22824 echo "${ECHO_T}no
" >&6; }
22827 { echo "$as_me:$LINENO: checking
for pid_t
" >&5
22828 echo $ECHO_N "checking
for pid_t...
$ECHO_C" >&6; }
22829 if test "${ac_cv_type_pid_t+set}" = set; then
22830 echo $ECHO_N "(cached
) $ECHO_C" >&6
22832 cat >conftest.$ac_ext <<_ACEOF
22835 cat confdefs.h >>conftest.$ac_ext
22836 cat >>conftest.$ac_ext <<_ACEOF
22837 /* end confdefs.h. */
22838 $ac_includes_default
22839 typedef pid_t ac__type_new_;
22843 if ((ac__type_new_ *) 0)
22845 if (sizeof (ac__type_new_))
22851 rm -f conftest.$ac_objext
22852 if { (ac_try="$ac_compile"
22853 case "(($ac_try" in
22854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22855 *) ac_try_echo=$ac_try;;
22857 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22858 (eval "$ac_compile") 2>conftest.er1
22860 grep -v '^ *+' conftest.er1 >conftest.err
22862 cat conftest.err >&5
22863 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22864 (exit $ac_status); } && {
22865 test -z "$ac_c_werror_flag" ||
22866 test ! -s conftest.err
22867 } && test -s conftest.$ac_objext; then
22868 ac_cv_type_pid_t=yes
22870 echo "$as_me: failed program was
:" >&5
22871 sed 's/^/| /' conftest.$ac_ext >&5
22873 ac_cv_type_pid_t=no
22876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22878 { echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
22879 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22880 if test $ac_cv_type_pid_t = yes; then
22884 cat >>confdefs.h <<_ACEOF
22891 for ac_header in vfork.h
22893 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22894 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22895 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22896 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22897 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22898 echo $ECHO_N "(cached
) $ECHO_C" >&6
22900 ac_res=`eval echo '${'$as_ac_Header'}'`
22901 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22902 echo "${ECHO_T}$ac_res" >&6; }
22904 # Is the header compilable?
22905 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22906 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22907 cat >conftest.$ac_ext <<_ACEOF
22910 cat confdefs.h >>conftest.$ac_ext
22911 cat >>conftest.$ac_ext <<_ACEOF
22912 /* end confdefs.h. */
22913 $ac_includes_default
22914 #include <$ac_header>
22916 rm -f conftest.$ac_objext
22917 if { (ac_try="$ac_compile"
22918 case "(($ac_try" in
22919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22920 *) ac_try_echo=$ac_try;;
22922 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22923 (eval "$ac_compile") 2>conftest.er1
22925 grep -v '^ *+' conftest.er1 >conftest.err
22927 cat conftest.err >&5
22928 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22929 (exit $ac_status); } && {
22930 test -z "$ac_c_werror_flag" ||
22931 test ! -s conftest.err
22932 } && test -s conftest.$ac_objext; then
22933 ac_header_compiler=yes
22935 echo "$as_me: failed program was
:" >&5
22936 sed 's/^/| /' conftest.$ac_ext >&5
22938 ac_header_compiler=no
22941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22942 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22943 echo "${ECHO_T}$ac_header_compiler" >&6; }
22945 # Is the header present?
22946 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22947 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22948 cat >conftest.$ac_ext <<_ACEOF
22951 cat confdefs.h >>conftest.$ac_ext
22952 cat >>conftest.$ac_ext <<_ACEOF
22953 /* end confdefs.h. */
22954 #include <$ac_header>
22956 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22957 case "(($ac_try" in
22958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22959 *) ac_try_echo=$ac_try;;
22961 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22962 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22964 grep -v '^ *+' conftest.er1 >conftest.err
22966 cat conftest.err >&5
22967 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22968 (exit $ac_status); } >/dev/null && {
22969 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22970 test ! -s conftest.err
22972 ac_header_preproc=yes
22974 echo "$as_me: failed program was
:" >&5
22975 sed 's/^/| /' conftest.$ac_ext >&5
22977 ac_header_preproc=no
22980 rm -f conftest.err conftest.$ac_ext
22981 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22982 echo "${ECHO_T}$ac_header_preproc" >&6; }
22984 # So? What about this header?
22985 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22987 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22988 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22989 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22990 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22991 ac_header_preproc=yes
22994 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22995 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22996 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22997 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22998 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22999 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23000 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23001 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23002 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23003 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23004 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23005 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23009 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
23010 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
23011 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23012 echo $ECHO_N "(cached
) $ECHO_C" >&6
23014 eval "$as_ac_Header=\
$ac_header_preproc"
23016 ac_res=`eval echo '${'$as_ac_Header'}'`
23017 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23018 echo "${ECHO_T}$ac_res" >&6; }
23021 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23022 cat >>confdefs.h <<_ACEOF
23023 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23032 for ac_func in fork vfork
23034 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
23035 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
23036 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
23037 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
23038 echo $ECHO_N "(cached
) $ECHO_C" >&6
23040 cat >conftest.$ac_ext <<_ACEOF
23043 cat confdefs.h >>conftest.$ac_ext
23044 cat >>conftest.$ac_ext <<_ACEOF
23045 /* end confdefs.h. */
23046 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23047 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23048 #define $ac_func innocuous_$ac_func
23050 /* System header to define __stub macros and hopefully few prototypes,
23051 which can conflict with char $ac_func (); below.
23052 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23053 <limits.h> exists even on freestanding compilers. */
23056 # include <limits.h>
23058 # include <assert.h>
23063 /* Override any GCC internal prototype to avoid an error.
23064 Use char because int might match the return type of a GCC
23065 builtin and then its argument prototype would still apply. */
23070 /* The GNU C library defines this for functions which it implements
23071 to always fail with ENOSYS. Some functions are actually named
23072 something starting with __ and the normal name is an alias. */
23073 #if defined __stub_$ac_func || defined __stub___$ac_func
23080 return $ac_func ();
23085 rm -f conftest.$ac_objext conftest$ac_exeext
23086 if { (ac_try="$ac_link"
23087 case "(($ac_try" in
23088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23089 *) ac_try_echo=$ac_try;;
23091 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23092 (eval "$ac_link") 2>conftest.er1
23094 grep -v '^ *+' conftest.er1 >conftest.err
23096 cat conftest.err >&5
23097 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23098 (exit $ac_status); } && {
23099 test -z "$ac_c_werror_flag" ||
23100 test ! -s conftest.err
23101 } && test -s conftest$ac_exeext &&
23102 $as_test_x conftest$ac_exeext; then
23103 eval "$as_ac_var=yes"
23105 echo "$as_me: failed program was
:" >&5
23106 sed 's/^/| /' conftest.$ac_ext >&5
23108 eval "$as_ac_var=no
"
23111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23112 conftest$ac_exeext conftest.$ac_ext
23114 ac_res=`eval echo '${'$as_ac_var'}'`
23115 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23116 echo "${ECHO_T}$ac_res" >&6; }
23117 if test `eval echo '${'$as_ac_var'}'` = yes; then
23118 cat >>confdefs.h <<_ACEOF
23119 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
23125 if test "x
$ac_cv_func_fork" = xyes; then
23126 { echo "$as_me:$LINENO: checking
for working fork
" >&5
23127 echo $ECHO_N "checking
for working fork...
$ECHO_C" >&6; }
23128 if test "${ac_cv_func_fork_works+set}" = set; then
23129 echo $ECHO_N "(cached
) $ECHO_C" >&6
23131 if test "$cross_compiling" = yes; then
23132 ac_cv_func_fork_works=cross
23134 cat >conftest.$ac_ext <<_ACEOF
23137 cat confdefs.h >>conftest.$ac_ext
23138 cat >>conftest.$ac_ext <<_ACEOF
23139 /* end confdefs.h. */
23140 $ac_includes_default
23145 /* By Ruediger Kuhlmann. */
23146 return fork () < 0;
23152 rm -f conftest$ac_exeext
23153 if { (ac_try="$ac_link"
23154 case "(($ac_try" in
23155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23156 *) ac_try_echo=$ac_try;;
23158 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23159 (eval "$ac_link") 2>&5
23161 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23162 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23163 { (case "(($ac_try" in
23164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23165 *) ac_try_echo=$ac_try;;
23167 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23168 (eval "$ac_try") 2>&5
23170 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23171 (exit $ac_status); }; }; then
23172 ac_cv_func_fork_works=yes
23174 echo "$as_me: program exited with status
$ac_status" >&5
23175 echo "$as_me: failed program was
:" >&5
23176 sed 's/^/| /' conftest.$ac_ext >&5
23178 ( exit $ac_status )
23179 ac_cv_func_fork_works=no
23181 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23186 { echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
23187 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23190 ac_cv_func_fork_works=$ac_cv_func_fork
23192 if test "x
$ac_cv_func_fork_works" = xcross; then
23194 *-*-amigaos* | *-*-msdosdjgpp*)
23195 # Override, as these systems have only a dummy fork() stub
23196 ac_cv_func_fork_works=no
23199 ac_cv_func_fork_works=yes
23202 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
23203 echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
23205 ac_cv_func_vfork_works=$ac_cv_func_vfork
23206 if test "x
$ac_cv_func_vfork" = xyes; then
23207 { echo "$as_me:$LINENO: checking
for working vfork
" >&5
23208 echo $ECHO_N "checking
for working vfork...
$ECHO_C" >&6; }
23209 if test "${ac_cv_func_vfork_works+set}" = set; then
23210 echo $ECHO_N "(cached
) $ECHO_C" >&6
23212 if test "$cross_compiling" = yes; then
23213 ac_cv_func_vfork_works=cross
23215 cat >conftest.$ac_ext <<_ACEOF
23218 cat confdefs.h >>conftest.$ac_ext
23219 cat >>conftest.$ac_ext <<_ACEOF
23220 /* end confdefs.h. */
23221 /* Thanks to Paul Eggert for this test. */
23222 $ac_includes_default
23223 #include <sys/wait.h>
23224 #ifdef HAVE_VFORK_H
23225 # include <vfork.h>
23227 /* On some sparc systems, changes by the child to local and incoming
23228 argument registers are propagated back to the parent. The compiler
23229 is told about this with #include <vfork.h>, but some compilers
23230 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23231 static variable whose address is put into a register that is
23232 clobbered by the vfork. */
23235 sparc_address_test (int arg)
23237 sparc_address_test (arg) int arg;
23240 static pid_t child;
23258 pid_t parent = getpid ();
23261 sparc_address_test (0);
23266 /* Here is another test for sparc vfork register problems. This
23267 test uses lots of local variables, at least as many local
23268 variables as main has allocated so far including compiler
23269 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23270 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23271 reuse the register of parent for one of the local variables,
23272 since it will think that parent can't possibly be used any more
23273 in this routine. Assigning to the local variable will thus
23274 munge parent in the parent process. */
23276 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23277 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23278 /* Convince the compiler that p..p7 are live; otherwise, it might
23279 use the same hardware register for all 8 local variables. */
23280 if (p != p1 || p != p2 || p != p3 || p != p4
23281 || p != p5 || p != p6 || p != p7)
23284 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23285 from child file descriptors. If the child closes a descriptor
23286 before it execs or exits, this munges the parent's descriptor
23287 as well. Test for this by closing stdout in the child. */
23288 _exit(close(fileno(stdout)) != 0);
23293 while (wait(&status) != child)
23296 /* Was there some problem with vforking? */
23299 /* Did the child fail? (This shouldn't happen.) */
23302 /* Did the vfork/compiler bug occur? */
23303 || parent != getpid()
23305 /* Did the file descriptor bug occur? */
23306 || fstat(fileno(stdout), &st) != 0
23311 rm -f conftest$ac_exeext
23312 if { (ac_try="$ac_link"
23313 case "(($ac_try" in
23314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23315 *) ac_try_echo=$ac_try;;
23317 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23318 (eval "$ac_link") 2>&5
23320 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23321 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23322 { (case "(($ac_try" in
23323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23324 *) ac_try_echo=$ac_try;;
23326 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23327 (eval "$ac_try") 2>&5
23329 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23330 (exit $ac_status); }; }; then
23331 ac_cv_func_vfork_works=yes
23333 echo "$as_me: program exited with status
$ac_status" >&5
23334 echo "$as_me: failed program was
:" >&5
23335 sed 's/^/| /' conftest.$ac_ext >&5
23337 ( exit $ac_status )
23338 ac_cv_func_vfork_works=no
23340 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23345 { echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
23346 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23349 if test "x
$ac_cv_func_fork_works" = xcross; then
23350 ac_cv_func_vfork_works=$ac_cv_func_vfork
23351 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
23352 echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
23355 if test "x
$ac_cv_func_vfork_works" = xyes; then
23357 cat >>confdefs.h <<\_ACEOF
23358 #define HAVE_WORKING_VFORK 1
23363 cat >>confdefs.h <<\_ACEOF
23368 if test "x
$ac_cv_func_fork_works" = xyes; then
23370 cat >>confdefs.h <<\_ACEOF
23371 #define HAVE_WORKING_FORK 1
23377 { echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
23378 echo $ECHO_N "checking
for nl_langinfo and CODESET...
$ECHO_C" >&6; }
23379 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23380 echo $ECHO_N "(cached
) $ECHO_C" >&6
23382 cat >conftest.$ac_ext <<_ACEOF
23385 cat confdefs.h >>conftest.$ac_ext
23386 cat >>conftest.$ac_ext <<_ACEOF
23387 /* end confdefs.h. */
23388 #include <langinfo.h>
23392 char* cs = nl_langinfo(CODESET);
23397 rm -f conftest.$ac_objext conftest$ac_exeext
23398 if { (ac_try="$ac_link"
23399 case "(($ac_try" in
23400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23401 *) ac_try_echo=$ac_try;;
23403 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23404 (eval "$ac_link") 2>conftest.er1
23406 grep -v '^ *+' conftest.er1 >conftest.err
23408 cat conftest.err >&5
23409 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23410 (exit $ac_status); } && {
23411 test -z "$ac_c_werror_flag" ||
23412 test ! -s conftest.err
23413 } && test -s conftest$ac_exeext &&
23414 $as_test_x conftest$ac_exeext; then
23415 emacs_cv_langinfo_codeset=yes
23417 echo "$as_me: failed program was
:" >&5
23418 sed 's/^/| /' conftest.$ac_ext >&5
23420 emacs_cv_langinfo_codeset=no
23423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23424 conftest$ac_exeext conftest.$ac_ext
23427 { echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
23428 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23429 if test $emacs_cv_langinfo_codeset = yes; then
23431 cat >>confdefs.h <<\_ACEOF
23432 #define HAVE_LANGINFO_CODESET 1
23437 { echo "$as_me:$LINENO: checking
for size_t
" >&5
23438 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
23439 if test "${ac_cv_type_size_t+set}" = set; then
23440 echo $ECHO_N "(cached
) $ECHO_C" >&6
23442 cat >conftest.$ac_ext <<_ACEOF
23445 cat confdefs.h >>conftest.$ac_ext
23446 cat >>conftest.$ac_ext <<_ACEOF
23447 /* end confdefs.h. */
23448 $ac_includes_default
23449 typedef size_t ac__type_new_;
23453 if ((ac__type_new_ *) 0)
23455 if (sizeof (ac__type_new_))
23461 rm -f conftest.$ac_objext
23462 if { (ac_try="$ac_compile"
23463 case "(($ac_try" in
23464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23465 *) ac_try_echo=$ac_try;;
23467 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23468 (eval "$ac_compile") 2>conftest.er1
23470 grep -v '^ *+' conftest.er1 >conftest.err
23472 cat conftest.err >&5
23473 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23474 (exit $ac_status); } && {
23475 test -z "$ac_c_werror_flag" ||
23476 test ! -s conftest.err
23477 } && test -s conftest.$ac_objext; then
23478 ac_cv_type_size_t=yes
23480 echo "$as_me: failed program was
:" >&5
23481 sed 's/^/| /' conftest.$ac_ext >&5
23483 ac_cv_type_size_t=no
23486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23488 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
23489 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23490 if test $ac_cv_type_size_t = yes; then
23492 cat >>confdefs.h <<_ACEOF
23493 #define HAVE_SIZE_T 1
23500 { echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
23501 echo $ECHO_N "checking
for mbstate_t...
$ECHO_C" >&6; }
23502 if test "${ac_cv_type_mbstate_t+set}" = set; then
23503 echo $ECHO_N "(cached
) $ECHO_C" >&6
23505 cat >conftest.$ac_ext <<_ACEOF
23508 cat confdefs.h >>conftest.$ac_ext
23509 cat >>conftest.$ac_ext <<_ACEOF
23510 /* end confdefs.h. */
23511 $ac_includes_default
23512 # include <wchar.h>
23516 mbstate_t x; return sizeof x;
23521 rm -f conftest.$ac_objext
23522 if { (ac_try="$ac_compile"
23523 case "(($ac_try" in
23524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23525 *) ac_try_echo=$ac_try;;
23527 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23528 (eval "$ac_compile") 2>conftest.er1
23530 grep -v '^ *+' conftest.er1 >conftest.err
23532 cat conftest.err >&5
23533 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23534 (exit $ac_status); } && {
23535 test -z "$ac_c_werror_flag" ||
23536 test ! -s conftest.err
23537 } && test -s conftest.$ac_objext; then
23538 ac_cv_type_mbstate_t=yes
23540 echo "$as_me: failed program was
:" >&5
23541 sed 's/^/| /' conftest.$ac_ext >&5
23543 ac_cv_type_mbstate_t=no
23546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23548 { echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
23549 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23550 if test $ac_cv_type_mbstate_t = yes; then
23552 cat >>confdefs.h <<\_ACEOF
23553 #define HAVE_MBSTATE_T 1
23558 cat >>confdefs.h <<\_ACEOF
23559 #define mbstate_t int
23564 { echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
23565 echo $ECHO_N "checking
for C restrict keyword...
$ECHO_C" >&6; }
23566 if test "${emacs_cv_c_restrict+set}" = set; then
23567 echo $ECHO_N "(cached
) $ECHO_C" >&6
23569 cat >conftest.$ac_ext <<_ACEOF
23572 cat confdefs.h >>conftest.$ac_ext
23573 cat >>conftest.$ac_ext <<_ACEOF
23574 /* end confdefs.h. */
23575 void fred (int *restrict x);
23584 rm -f conftest.$ac_objext
23585 if { (ac_try="$ac_compile"
23586 case "(($ac_try" in
23587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23588 *) ac_try_echo=$ac_try;;
23590 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23591 (eval "$ac_compile") 2>conftest.er1
23593 grep -v '^ *+' conftest.er1 >conftest.err
23595 cat conftest.err >&5
23596 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23597 (exit $ac_status); } && {
23598 test -z "$ac_c_werror_flag" ||
23599 test ! -s conftest.err
23600 } && test -s conftest.$ac_objext; then
23601 emacs_cv_c_restrict=yes
23603 echo "$as_me: failed program was
:" >&5
23604 sed 's/^/| /' conftest.$ac_ext >&5
23606 cat >conftest.$ac_ext <<_ACEOF
23609 cat confdefs.h >>conftest.$ac_ext
23610 cat >>conftest.$ac_ext <<_ACEOF
23611 /* end confdefs.h. */
23612 void fred (int *__restrict x);
23621 rm -f conftest.$ac_objext
23622 if { (ac_try="$ac_compile"
23623 case "(($ac_try" in
23624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23625 *) ac_try_echo=$ac_try;;
23627 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23628 (eval "$ac_compile") 2>conftest.er1
23630 grep -v '^ *+' conftest.er1 >conftest.err
23632 cat conftest.err >&5
23633 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23634 (exit $ac_status); } && {
23635 test -z "$ac_c_werror_flag" ||
23636 test ! -s conftest.err
23637 } && test -s conftest.$ac_objext; then
23638 emacs_cv_c_restrict=__restrict
23640 echo "$as_me: failed program was
:" >&5
23641 sed 's/^/| /' conftest.$ac_ext >&5
23643 emacs_cv_c_restrict=no
23646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23651 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
23652 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23653 case "$emacs_cv_c_restrict" in
23654 yes) emacs_restrict=restrict;;
23655 no) emacs_restrict="";;
23656 *) emacs_restrict="$emacs_cv_c_restrict";;
23658 if test "$emacs_restrict" != __restrict; then
23660 cat >>confdefs.h <<_ACEOF
23661 #define __restrict $emacs_restrict
23666 { echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
23667 echo $ECHO_N "checking
for C restricted array declarations...
$ECHO_C" >&6; }
23668 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23669 echo $ECHO_N "(cached
) $ECHO_C" >&6
23671 cat >conftest.$ac_ext <<_ACEOF
23674 cat confdefs.h >>conftest.$ac_ext
23675 cat >>conftest.$ac_ext <<_ACEOF
23676 /* end confdefs.h. */
23677 void fred (int x[__restrict]);
23686 rm -f conftest.$ac_objext
23687 if { (ac_try="$ac_compile"
23688 case "(($ac_try" in
23689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23690 *) ac_try_echo=$ac_try;;
23692 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23693 (eval "$ac_compile") 2>conftest.er1
23695 grep -v '^ *+' conftest.er1 >conftest.err
23697 cat conftest.err >&5
23698 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23699 (exit $ac_status); } && {
23700 test -z "$ac_c_werror_flag" ||
23701 test ! -s conftest.err
23702 } && test -s conftest.$ac_objext; then
23703 emacs_cv_c_restrict_arr=yes
23705 echo "$as_me: failed program was
:" >&5
23706 sed 's/^/| /' conftest.$ac_ext >&5
23708 emacs_cv_c_restrict_arr=no
23711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23713 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
23714 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23715 if test "$emacs_cv_c_restrict_arr" = yes; then
23717 cat >>confdefs.h <<\_ACEOF
23718 #define __restrict_arr __restrict
23725 # Set up the CFLAGS for real compilation, so we can substitute it.
23726 CFLAGS="$REAL_CFLAGS"
23727 CPPFLAGS="$REAL_CPPFLAGS"
23729 #### Find out which version of Emacs this is.
23730 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23731 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
23732 if test x"${version}" = x; then
23733 { { echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&5
23734 echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&2;}
23735 { (exit 1); exit 1; }; }
23738 ### Specify what sort of things we'll be editing into Makefile and config.h.
23739 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23775 cat >>confdefs.h <<_ACEOF
23776 #define EMACS_CONFIGURATION "${canonical}"
23780 cat >>confdefs.h <<_ACEOF
23781 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23785 cat >>confdefs.h <<_ACEOF
23786 #define config_machfile "${machfile}"
23790 cat >>confdefs.h <<_ACEOF
23791 #define config_opsysfile "${opsysfile}"
23795 cat >>confdefs.h <<_ACEOF
23796 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23800 cat >>confdefs.h <<_ACEOF
23801 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23805 cat >>confdefs.h <<_ACEOF
23806 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23810 cat >>confdefs.h <<_ACEOF
23811 #define UNEXEC_SRC ${UNEXEC_SRC}
23815 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23817 cat >>confdefs.h <<\_ACEOF
23818 #define HAVE_X_WINDOWS 1
23822 if test "${USE_X_TOOLKIT}" != "none
" ; then
23824 cat >>confdefs.h <<\_ACEOF
23825 #define USE_X_TOOLKIT 1
23829 if test "${HAVE_X11}" = "yes" ; then
23831 cat >>confdefs.h <<\_ACEOF
23836 if test "${HAVE_XFREE386}" = "yes" ; then
23838 cat >>confdefs.h <<\_ACEOF
23839 #define HAVE_XFREE386 1
23843 if test "${HAVE_MENUS}" = "yes" ; then
23845 cat >>confdefs.h <<\_ACEOF
23846 #define HAVE_MENUS 1
23850 if test "${GNU_MALLOC}" = "yes" ; then
23852 cat >>confdefs.h <<\_ACEOF
23853 #define GNU_MALLOC 1
23857 if test "${REL_ALLOC}" = "yes" ; then
23859 cat >>confdefs.h <<\_ACEOF
23860 #define REL_ALLOC 1
23870 #### Report on what we decided to do.
23871 #### Report GTK as a toolkit, even if it doesn't use Xt.
23872 #### It makes printing result more understandable as using GTK sets
23873 #### toolkit_scroll_bars to yes by default.
23874 if test "${HAVE_GTK}" = "yes"; then
23879 Configured
for \
`${canonical}'.
23881 Where should the build process find the source code? ${srcdir}
23882 What operating system and machine description files should Emacs use?
23883 \`${opsysfile}' and \`${machfile}'
23884 What compiler should emacs be built with?
${CC} ${CFLAGS}
23885 Should Emacs use the GNU version of malloc?
${GNU_MALLOC}${GNU_MALLOC_reason}
23886 Should Emacs use a relocating allocator
for buffers?
${REL_ALLOC}
23887 Should Emacs use mmap
(2) for buffer allocation?
$use_mmap_for_buffers
23888 What window system should Emacs use?
${window_system}
23889 What toolkit should Emacs use?
${USE_X_TOOLKIT}"
23891 if test -n "${x_includes}"; then
23892 echo " Where
do we
find X Windows header files?
${x_includes}"
23894 echo " Where
do we
find X Windows header files? Standard
dirs"
23896 if test -n "${x_libraries}"; then
23897 echo " Where
do we
find X Windows libraries?
${x_libraries}"
23899 echo " Where
do we
find X Windows libraries? Standard
dirs"
23902 echo " Does Emacs use
-lXaw3d?
${HAVE_XAW3D}"
23903 echo " Does Emacs use
-lXpm?
${HAVE_XPM}"
23904 echo " Does Emacs use
-ljpeg?
${HAVE_JPEG}"
23905 echo " Does Emacs use
-ltiff?
${HAVE_TIFF}"
23906 echo " Does Emacs use a gif library?
${HAVE_GIF} $ac_gif_lib_name"
23907 echo " Does Emacs use
-lpng?
${HAVE_PNG}"
23908 echo " Does Emacs use
-lrsvg-2?
${HAVE_RSVG}"
23909 echo " Does Emacs use
-lgpm?
${HAVE_GPM}"
23910 echo " Does Emacs use X toolkit scroll bars?
${USE_TOOLKIT_SCROLL_BARS}"
23913 if test $USE_XASSERTS = yes; then
23914 echo " Compiling with asserts turned on.
"
23915 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23919 if test "$USE_X_TOOLKIT" = GTK; then
23920 case "$canonical" in
23922 echo "There are known problems with Emacs and Gtk
+ on cygwin
, so you
23923 will probably get a crash on startup. If this happens
, please use another
23924 toolkit
for Emacs. See etc
/PROBLEMS
for more information.
"
23930 if test "$HAVE_CARBON" = "yes"; then
23932 echo "Warning
: The Mac Carbon port is currently unsupported and has
23933 known problems. It is not recommended
for use by non-developers.
23934 Read the emacs-devel archives
for more information.
"
23938 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux
"; then
23939 echo "D-Bus integration has been tested
for GNU
/Linux only.
"
23944 # Remove any trailing slashes in these variables.
23945 test "${prefix}" != NONE &&
23946 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23947 test "${exec_prefix}" != NONE &&
23948 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23950 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23951 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23952 ## from Makefile.c can correctly provide the arg `-traditional' to the
23955 cat >conftest.$ac_ext <<_ACEOF
23958 cat confdefs.h >>conftest.$ac_ext
23959 cat >>conftest.$ac_ext <<_ACEOF
23960 /* end confdefs.h. */
23963 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
23964 $EGREP "yes..
yes" >/dev/null 2>&1; then
23965 CPP_NEED_TRADITIONAL=no
23967 CPP_NEED_TRADITIONAL=yes
23972 ac_config_files="$ac_config_files Makefile lib-src
/Makefile.c
:lib-src
/Makefile.
in oldXMenu
/Makefile
doc
/emacs
/Makefile
doc
/misc
/Makefile
doc
/lispintro
/Makefile
doc
/lispref
/Makefile src
/Makefile.c
:src
/Makefile.
in lwlib
/Makefile lisp
/Makefile leim
/Makefile
"
23974 ac_config_commands="$ac_config_commands default
"
23976 cat >confcache <<\_ACEOF
23977 # This file is a shell script that caches the results of configure
23978 # tests run on this system so they can be shared between configure
23979 # scripts and configure runs, see configure's option --config-cache.
23980 # It is not useful on other systems. If it contains results you don't
23981 # want to keep, you may remove or edit it.
23983 # config.status only pays attention to the cache file if you give it
23984 # the --recheck option to rerun configure.
23986 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23987 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23988 # following values.
23992 # The following way of writing the cache mishandles newlines in values,
23993 # but we know of no workaround that is simple, portable, and efficient.
23994 # So, we kill variables containing newlines.
23995 # Ultrix sh set writes to stderr and can't be redirected directly,
23996 # and sets the high bit in the cache file unless we assign to the vars.
23998 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23999 eval ac_val=\$$ac_var
24003 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
24004 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
24007 _ | IFS | as_nl) ;; #(
24008 *) $as_unset $ac_var ;;
24014 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24015 *${as_nl}ac_space=\ *)
24016 # `set' does not quote correctly, so add quotes (double-quote
24017 # substitution turns \\\\ into \\, and sed turns \\ into \).
24020 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
24023 # `set' quotes correctly as required by POSIX, so do not add quotes.
24024 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
24033 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24035 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24037 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24038 if test -w "$cache_file"; then
24039 test "x
$cache_file" != "x
/dev
/null
" &&
24040 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
24041 echo "$as_me: updating cache
$cache_file" >&6;}
24042 cat confcache >$cache_file
24044 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
24045 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
24050 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
24051 # Let make expand exec_prefix.
24052 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
24054 DEFS=-DHAVE_CONFIG_H
24058 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
24059 # 1. Remove the extension, and $U if already installed.
24060 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24061 ac_i=`echo "$ac_i" | sed "$ac_script"`
24062 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24063 # will be set to the directory where LIBOBJS objects are built.
24064 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
24065 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
24067 LIBOBJS=$ac_libobjs
24069 LTLIBOBJS=$ac_ltlibobjs
24073 : ${CONFIG_STATUS=./config.status}
24074 ac_clean_files_save=$ac_clean_files
24075 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24076 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
24077 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
24078 cat >$CONFIG_STATUS <<_ACEOF
24080 # Generated by $as_me.
24081 # Run this file to recreate the current configuration.
24082 # Compiler output produced by configure, useful for debugging
24083 # configure, is in config.log if it exists.
24086 ac_cs_recheck=false
24088 SHELL=\${CONFIG_SHELL-$SHELL}
24091 cat >>$CONFIG_STATUS <<\_ACEOF
24092 ## --------------------- ##
24093 ## M4sh Initialization. ##
24094 ## --------------------- ##
24096 # Be more Bourne compatible
24097 DUALCASE=1; export DUALCASE # for MKS sh
24098 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24101 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24102 # is contrary to our usage. Disable this feature.
24103 alias -g '${1+"$@"}'='"$@
"'
24104 setopt NO_GLOB_SUBST
24106 case `(set -o) 2>/dev/null` in
24107 *posix*) set -o posix ;;
24116 # Avoid depending upon Character Ranges.
24117 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24118 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24119 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24120 as_cr_digits='0123456789'
24121 as_cr_alnum=$as_cr_Letters$as_cr_digits
24123 # The user is always right.
24124 if test "${PATH_SEPARATOR+set}" != set; then
24125 echo "#! /bin/sh" >conf$$.sh
24126 echo "exit 0" >>conf$$.sh
24128 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
24136 # Support unset when possible.
24137 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
24145 # We need space, tab and new line, in precisely that order. Quoting is
24146 # there to prevent editors from complaining about space-tab.
24147 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24148 # splitting by setting IFS to empty value.)
24153 # Find who we are. Look in the path if we contain no directory separator.
24155 *[\\/]* ) as_myself
=$0 ;;
24156 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24157 for as_dir
in $PATH
24160 test -z "$as_dir" && as_dir
=.
24161 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
24167 # We did not find ourselves, most probably we were run as `sh COMMAND'
24168 # in which case we are not to be found in the path.
24169 if test "x$as_myself" = x
; then
24172 if test ! -f "$as_myself"; then
24173 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24174 { (exit 1); exit 1; }
24177 # Work around bugs in pre-3.0 UWIN ksh.
24178 for as_var
in ENV MAIL MAILPATH
24179 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24187 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24188 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24189 LC_TELEPHONE LC_TIME
24191 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24192 eval $as_var=C
; export $as_var
24194 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24198 # Required to use basename.
24199 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24200 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24206 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24207 as_basename
=basename
24213 # Name of the executable.
24214 as_me
=`$as_basename -- "$0" ||
24215 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24216 X"$0" : 'X\(//\)$' \| \
24217 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24219 sed '/^.*\/\([^/][^/]*\)\/*$/{
24238 as_lineno_1
=$LINENO
24239 as_lineno_2
=$LINENO
24240 test "x$as_lineno_1" != "x$as_lineno_2" &&
24241 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
24243 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24244 # uniformly replaced by the line number. The first 'sed' inserts a
24245 # line-number line after each line using $LINENO; the second 'sed'
24246 # does the real work. The second script uses 'N' to pair each
24247 # line-number line with the line containing $LINENO, and appends
24248 # trailing '-' during substitution so that $LINENO is not a special
24249 # case at line end.
24250 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24251 # scripts with optimization help from Paolo Bonzini. Blame Lee
24252 # E. McMahon (1931-1989) for sed's syntax. :-)
24264 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24267 ' >$as_me.lineno
&&
24268 chmod +x
"$as_me.lineno" ||
24269 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24270 { (exit 1); exit 1; }; }
24272 # Don't try to exec as it changes $[0], causing all sort of problems
24273 # (the dirname of $[0] is not the place where we might find the
24274 # original and so on. Autoconf is especially sensitive to this).
24275 .
"./$as_me.lineno"
24276 # Exit status is that of the last command.
24281 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
24287 ECHO_C
= ECHO_N
= ECHO_T
=
24288 case `echo -n x` in
24290 case `echo 'x\c'` in
24291 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
24298 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24299 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24305 rm -f conf$$ conf$$.exe conf$$.
file
24306 if test -d conf$$.dir
; then
24307 rm -f conf$$.dir
/conf$$.
file
24313 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
24315 # ... but there are two gotchas:
24316 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24317 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24318 # In both cases, we have to default to `cp -p'.
24319 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
24321 elif ln conf$$.
file conf$$
2>/dev
/null
; then
24326 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
24327 rmdir conf$$.dir
2>/dev
/null
24329 if mkdir
-p .
2>/dev
/null
; then
24332 test -d .
/-p && rmdir .
/-p
24336 if test -x / >/dev
/null
2>&1; then
24337 as_test_x
='test -x'
24339 if ls -dL / >/dev
/null
2>&1; then
24346 if test -d "$1"; then
24352 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24353 ???[sx]*):;;*)false;;esac;fi
24357 as_executable_p
=$as_test_x
24359 # Sed expression to map a string onto a valid CPP name.
24360 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24362 # Sed expression to map a string onto a valid variable name.
24363 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24368 # Save the log message, to keep $[0] and so on meaningful, and to
24369 # report actual input values of CONFIG_FILES etc. instead of their
24370 # values after options handling.
24372 This file was extended by $as_me, which was
24373 generated by GNU Autoconf 2.61. Invocation command line was
24375 CONFIG_FILES = $CONFIG_FILES
24376 CONFIG_HEADERS = $CONFIG_HEADERS
24377 CONFIG_LINKS = $CONFIG_LINKS
24378 CONFIG_COMMANDS = $CONFIG_COMMANDS
24381 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24386 cat >>$CONFIG_STATUS <<_ACEOF
24387 # Files that config.status was made for.
24388 config_files="$ac_config_files"
24389 config_headers="$ac_config_headers"
24390 config_commands="$ac_config_commands"
24394 cat >>$CONFIG_STATUS <<\_ACEOF
24396 \`$as_me' instantiates files from templates according to the
24397 current configuration.
24399 Usage: $0 [OPTIONS] [FILE]...
24401 -h, --help print this help, then exit
24402 -V, --version print version number and configuration settings, then exit
24403 -q, --quiet do not print progress messages
24404 -d, --debug don't remove temporary files
24405 --recheck update $as_me by reconfiguring in the same conditions
24406 --file=FILE[:TEMPLATE]
24407 instantiate the configuration file FILE
24408 --header=FILE[:TEMPLATE]
24409 instantiate the configuration header FILE
24411 Configuration files:
24414 Configuration headers:
24417 Configuration commands:
24420 Report bugs to <bug-autoconf@gnu.org>."
24423 cat >>$CONFIG_STATUS <<_ACEOF
24426 configured by $0, generated by GNU Autoconf 2.61,
24427 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24429 Copyright (C) 2006 Free Software Foundation, Inc.
24430 This config.status script is free software; the Free Software Foundation
24431 gives unlimited permission to copy, distribute and modify it."
24438 cat >>$CONFIG_STATUS <<\_ACEOF
24439 # If no file are specified by the user, then we need to provide default
24440 # value. By we need to know if files were specified by the user.
24446 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
24447 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
24458 # Handling of the options.
24459 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
24461 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
24462 echo "$ac_cs_version"; exit ;;
24463 --debug |
--debu |
--deb |
--de |
--d |
-d )
24465 --file |
--fil |
--fi |
--f )
24467 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
24468 ac_need_defaults
=false
;;
24469 --header |
--heade |
--head |
--hea )
24471 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
24472 ac_need_defaults
=false
;;
24474 # Conflict between --help and --header
24475 { echo "$as_me: error: ambiguous option: $1
24476 Try \`$0 --help' for more information." >&2
24477 { (exit 1); exit 1; }; };;
24478 --help |
--hel |
-h )
24479 echo "$ac_cs_usage"; exit ;;
24480 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
24481 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
24484 # This is an error.
24485 -*) { echo "$as_me: error: unrecognized option: $1
24486 Try \`$0 --help' for more information." >&2
24487 { (exit 1); exit 1; }; } ;;
24489 *) ac_config_targets
="$ac_config_targets $1"
24490 ac_need_defaults
=false
;;
24496 ac_configure_extra_args
=
24498 if $ac_cs_silent; then
24500 ac_configure_extra_args
="$ac_configure_extra_args --silent"
24504 cat >>$CONFIG_STATUS <<_ACEOF
24505 if \$ac_cs_recheck; then
24506 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24507 CONFIG_SHELL=$SHELL
24508 export CONFIG_SHELL
24509 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24513 cat >>$CONFIG_STATUS <<\_ACEOF
24517 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24518 ## Running $as_me. ##
24524 cat >>$CONFIG_STATUS <<_ACEOF
24528 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
24532 cat >>$CONFIG_STATUS <<\_ACEOF
24534 # Handling of arguments.
24535 for ac_config_target
in $ac_config_targets
24537 case $ac_config_target in
24538 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24539 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
24540 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24541 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
24542 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
24543 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
24544 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
24545 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
24546 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24547 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
24548 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
24549 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
24550 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
24552 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24553 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24554 { (exit 1); exit 1; }; };;
24559 # If the user did not use the arguments to specify the items to instantiate,
24560 # then the envvar interface is used. Set only those that are not.
24561 # We use the long form for the default assignment because of an extremely
24562 # bizarre bug on SunOS 4.1.3.
24563 if $ac_need_defaults; then
24564 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
24565 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
24566 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
24569 # Have a temporary directory for convenience. Make it in the build tree
24570 # simply because there is no reason against having it here, and in addition,
24571 # creating and moving files from /tmp can sometimes cause problems.
24572 # Hook for its removal unless debugging.
24573 # Note that there is a small window in which the directory will not be cleaned:
24574 # after its creation but before its name has been assigned to `$tmp'.
24578 trap 'exit_status=$?
24579 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24581 trap '{ (exit 1); exit 1; }' 1 2 13 15
24583 # Create a (secure) tmp directory for tmp files.
24586 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24587 test -n "$tmp" && test -d "$tmp"
24590 tmp
=.
/conf$$
-$RANDOM
24591 (umask 077 && mkdir
"$tmp")
24594 echo "$me: cannot create a temporary directory in ." >&2
24595 { (exit 1); exit 1; }
24599 # Set up the sed scripts for CONFIG_FILES section.
24602 # No need to generate the scripts if there are no CONFIG_FILES.
24603 # This happens for instance when ./config.status config.h
24604 if test -n "$CONFIG_FILES"; then
24611 for ac_last_try
in false false false false false
:; do
24612 cat >conf$
$subs.
sed <<_ACEOF
24613 SHELL!$SHELL$ac_delim
24614 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24615 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24616 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24617 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24618 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24619 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24620 exec_prefix!$exec_prefix$ac_delim
24621 prefix!$prefix$ac_delim
24622 program_transform_name!$program_transform_name$ac_delim
24623 bindir!$bindir$ac_delim
24624 sbindir!$sbindir$ac_delim
24625 libexecdir!$libexecdir$ac_delim
24626 datarootdir!$datarootdir$ac_delim
24627 datadir!$datadir$ac_delim
24628 sysconfdir!$sysconfdir$ac_delim
24629 sharedstatedir!$sharedstatedir$ac_delim
24630 localstatedir!$localstatedir$ac_delim
24631 includedir!$includedir$ac_delim
24632 oldincludedir!$oldincludedir$ac_delim
24633 docdir!$docdir$ac_delim
24634 infodir!$infodir$ac_delim
24635 htmldir!$htmldir$ac_delim
24636 dvidir!$dvidir$ac_delim
24637 pdfdir!$pdfdir$ac_delim
24638 psdir!$psdir$ac_delim
24639 libdir!$libdir$ac_delim
24640 localedir!$localedir$ac_delim
24641 mandir!$mandir$ac_delim
24642 DEFS!$DEFS$ac_delim
24643 ECHO_C!$ECHO_C$ac_delim
24644 ECHO_N!$ECHO_N$ac_delim
24645 ECHO_T!$ECHO_T$ac_delim
24646 LIBS!$LIBS$ac_delim
24647 build_alias!$build_alias$ac_delim
24648 host_alias!$host_alias$ac_delim
24649 target_alias!$target_alias$ac_delim
24650 MAINT!$MAINT$ac_delim
24651 build!$build$ac_delim
24652 build_cpu!$build_cpu$ac_delim
24653 build_vendor!$build_vendor$ac_delim
24654 build_os!$build_os$ac_delim
24655 host!$host$ac_delim
24656 host_cpu!$host_cpu$ac_delim
24657 host_vendor!$host_vendor$ac_delim
24658 host_os!$host_os$ac_delim
24660 CFLAGS!$CFLAGS$ac_delim
24661 LDFLAGS!$LDFLAGS$ac_delim
24662 CPPFLAGS!$CPPFLAGS$ac_delim
24663 ac_ct_CC!$ac_ct_CC$ac_delim
24664 EXEEXT!$EXEEXT$ac_delim
24665 OBJEXT!$OBJEXT$ac_delim
24667 GREP!$GREP$ac_delim
24668 EGREP!$EGREP$ac_delim
24669 LN_S!$LN_S$ac_delim
24670 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24671 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24672 INSTALL_DATA!$INSTALL_DATA$ac_delim
24673 RANLIB!$RANLIB$ac_delim
24674 INSTALL_INFO!$INSTALL_INFO$ac_delim
24675 GZIP_PROG!$GZIP_PROG$ac_delim
24676 MAKEINFO!$MAKEINFO$ac_delim
24677 LIBSOUND!$LIBSOUND$ac_delim
24678 PKG_CONFIG!$PKG_CONFIG$ac_delim
24679 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24680 ALSA_LIBS!$ALSA_LIBS$ac_delim
24681 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24682 SET_MAKE!$SET_MAKE$ac_delim
24683 XMKMF!$XMKMF$ac_delim
24684 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
24685 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
24686 RSVG_LIBS!$RSVG_LIBS$ac_delim
24687 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24688 GTK_LIBS!$GTK_LIBS$ac_delim
24689 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
24690 DBUS_LIBS!$DBUS_LIBS$ac_delim
24691 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24692 XFT_LIBS!$XFT_LIBS$ac_delim
24693 ALLOCA!$ALLOCA$ac_delim
24694 liblockfile!$liblockfile$ac_delim
24695 LIBOBJS!$LIBOBJS$ac_delim
24696 NEED_SETGID!$NEED_SETGID$ac_delim
24697 KMEM_GROUP!$KMEM_GROUP$ac_delim
24698 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24699 GETOPT_H!$GETOPT_H$ac_delim
24700 GETOPTOBJS!$GETOPTOBJS$ac_delim
24701 version!$version$ac_delim
24702 configuration!$configuration$ac_delim
24703 canonical!$canonical$ac_delim
24704 srcdir!$srcdir$ac_delim
24705 lispdir!$lispdir$ac_delim
24706 locallisppath!$locallisppath$ac_delim
24707 lisppath!$lisppath$ac_delim
24708 x_default_search_path!$x_default_search_path$ac_delim
24709 etcdir!$etcdir$ac_delim
24712 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24714 elif $ac_last_try; then
24715 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24716 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24717 { (exit 1); exit 1; }; }
24719 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24723 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24724 if test -n "$ac_eof"; then
24725 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24726 ac_eof
=`expr $ac_eof + 1`
24729 cat >>$CONFIG_STATUS <<_ACEOF
24730 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24731 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24734 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24735 s/^/s,@/; s/!/@,|#_!!_#|/
24738 s/'"$ac_delim"'$/,g/; t
24740 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24741 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24742 rm -f conf$
$subs.
sed
24743 cat >>$CONFIG_STATUS <<_ACEOF
24749 for ac_last_try
in false false false false false
:; do
24750 cat >conf$
$subs.
sed <<_ACEOF
24751 archlibdir!$archlibdir$ac_delim
24752 bitmapdir!$bitmapdir$ac_delim
24753 gamedir!$gamedir$ac_delim
24754 gameuser!$gameuser$ac_delim
24755 c_switch_system!$c_switch_system$ac_delim
24756 c_switch_machine!$c_switch_machine$ac_delim
24757 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
24758 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
24759 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
24760 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
24761 machfile!$machfile$ac_delim
24762 opsysfile!$opsysfile$ac_delim
24763 carbon_appdir!$carbon_appdir$ac_delim
24764 LTLIBOBJS!$LTLIBOBJS$ac_delim
24767 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 14; then
24769 elif $ac_last_try; then
24770 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24771 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24772 { (exit 1); exit 1; }; }
24774 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24778 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24779 if test -n "$ac_eof"; then
24780 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24781 ac_eof
=`expr $ac_eof + 1`
24784 cat >>$CONFIG_STATUS <<_ACEOF
24785 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24786 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24789 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24790 s/^/s,@/; s/!/@,|#_!!_#|/
24793 s/'"$ac_delim"'$/,g/; t
24795 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24796 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24797 rm -f conf$
$subs.
sed
24798 cat >>$CONFIG_STATUS <<_ACEOF
24805 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24806 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24807 # trailing colons and then remove the whole line if VPATH becomes empty
24808 # (actually we leave an empty line to preserve line numbers).
24809 if test "x$srcdir" = x.
; then
24810 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
24811 s/:*\$(srcdir):*/:/
24812 s/:*\${srcdir}:*/:/
24814 s/^\([^=]*=[ ]*\):*/\1/
24820 cat >>$CONFIG_STATUS <<\_ACEOF
24821 fi # test -n "$CONFIG_FILES"
24824 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
24827 :[FHLC
]) ac_mode
=$ac_tag; continue;;
24829 case $ac_mode$ac_tag in
24831 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24832 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24833 { (exit 1); exit 1; }; };;
24834 :[FH
]-) ac_tag
=-:-;;
24835 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
24852 -) ac_f
="$tmp/stdin";;
24853 *) # Look for the file first in the build tree, then in the source tree
24854 # (if the path is not absolute). The absolute path cannot be DOS-style,
24855 # because $ac_f cannot contain `:'.
24859 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
24861 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24862 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24863 { (exit 1); exit 1; }; };;
24865 ac_file_inputs
="$ac_file_inputs $ac_f"
24868 # Let's still pretend it is `configure' which instantiates (i.e., don't
24869 # use $as_me), people would be surprised to read:
24870 # /* config.h. Generated by config.status. */
24871 configure_input
="Generated from "`IFS=:
24872 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24873 if test x
"$ac_file" != x-
; then
24874 configure_input
="$ac_file. $configure_input"
24875 { echo "$as_me:$LINENO: creating $ac_file" >&5
24876 echo "$as_me: creating $ac_file" >&6;}
24880 *:-:* |
*:-) cat >"$tmp/stdin";;
24885 ac_dir
=`$as_dirname -- "$ac_file" ||
24886 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24887 X"$ac_file" : 'X\(//\)[^/]' \| \
24888 X"$ac_file" : 'X\(//\)$' \| \
24889 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24891 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24895 /^X\(\/\/\)[^/].*/{
24910 -*) as_dir
=.
/$as_dir;;
24912 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
24916 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24917 *) as_qdir
=$as_dir;;
24919 as_dirs
="'$as_qdir' $as_dirs"
24920 as_dir
=`$as_dirname -- "$as_dir" ||
24921 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24922 X"$as_dir" : 'X\(//\)[^/]' \| \
24923 X"$as_dir" : 'X\(//\)$' \| \
24924 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24926 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24930 /^X\(\/\/\)[^/].*/{
24943 test -d "$as_dir" && break
24945 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
24946 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24947 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24948 { (exit 1); exit 1; }; }; }
24952 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24954 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24955 # A ".." for each directory in $ac_dir_suffix.
24956 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24957 case $ac_top_builddir_sub in
24958 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24959 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
24962 ac_abs_top_builddir
=$ac_pwd
24963 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
24964 # for backward compatibility:
24965 ac_top_builddir
=$ac_top_build_prefix
24968 .
) # We are building in place.
24970 ac_top_srcdir
=$ac_top_builddir_sub
24971 ac_abs_top_srcdir
=$ac_pwd ;;
24972 [\\/]* | ?
:[\\/]* ) # Absolute name.
24973 ac_srcdir
=$srcdir$ac_dir_suffix;
24974 ac_top_srcdir
=$srcdir
24975 ac_abs_top_srcdir
=$srcdir ;;
24976 *) # Relative name.
24977 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
24978 ac_top_srcdir
=$ac_top_build_prefix$srcdir
24979 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
24981 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
24991 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
24992 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
24996 cat >>$CONFIG_STATUS <<\_ACEOF
24997 # If the template does not know about datarootdir, expand it.
24998 # FIXME: This hack should be removed a few years after 2.60.
24999 ac_datarootdir_hack
=; ac_datarootdir_seen
=
25001 case `sed -n '/datarootdir/ {
25010 ' $ac_file_inputs` in
25011 *datarootdir
*) ac_datarootdir_seen
=yes;;
25012 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
25013 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25014 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25016 cat >>$CONFIG_STATUS <<_ACEOF
25017 ac_datarootdir_hack='
25018 s&@datadir@&$datadir&g
25019 s&@docdir@&$docdir&g
25020 s&@infodir@&$infodir&g
25021 s&@localedir@&$localedir&g
25022 s&@mandir@&$mandir&g
25023 s&\\\${datarootdir}&$datarootdir&g' ;;
25027 # Neutralize VPATH when `$srcdir' = `.'.
25028 # Shell code in configure.ac might set extrasub.
25029 # FIXME: do we really want to maintain this feature?
25030 cat >>$CONFIG_STATUS <<_ACEOF
25034 cat >>$CONFIG_STATUS <<\_ACEOF
25036 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
25037 s
&@configure_input@
&$configure_input&;t t
25038 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
25039 s
&@srcdir@
&$ac_srcdir&;t t
25040 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
25041 s
&@top_srcdir@
&$ac_top_srcdir&;t t
25042 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
25043 s
&@builddir@
&$ac_builddir&;t t
25044 s
&@abs_builddir@
&$ac_abs_builddir&;t t
25045 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
25046 s
&@INSTALL@
&$ac_INSTALL&;t t
25047 $ac_datarootdir_hack
25048 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
25050 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25051 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
25052 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
25053 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
25054 which seems to be undefined. Please make sure it is defined." >&5
25055 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
25056 which seems to be undefined. Please make sure it is defined." >&2;}
25060 -) cat "$tmp/out"; rm -f "$tmp/out";;
25061 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25070 # Transform confdefs.h into a sed script `conftest.defines', that
25071 # substitutes the proper values into config.h.in to produce config.h.
25072 rm -f conftest.defines conftest.
tail
25073 # First, append a space to every undef/define line, to ease matching.
25074 echo 's/$/ /' >conftest.defines
25075 # Then, protect against being on the right side of a sed subst, or in
25076 # an unquoted here document, in config.status. If some macros were
25077 # called several times there might be several #defines for the same
25078 # symbol, which is useless. But do not sort them, since the last
25079 # AC_DEFINE must be honored.
25080 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
25081 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25082 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25083 # PARAMS is the parameter list in the macro definition--in most cases, it's
25084 # just an empty string.
25085 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25086 ac_dB
='\\)[ (].*,\\1define\\2'
25094 s/^[ ]*#[ ]*define[ ][ ]*//
25099 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25100 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25101 ' >>conftest.defines
25103 # Remove the space that was appended to ease matching.
25104 # Then replace #undef with comments. This is necessary, for
25105 # example, in the case of _POSIX_SOURCE, which is predefined and required
25106 # on some systems where configure will not decide to define it.
25107 # (The regexp can be short, since the line contains either #define or #undef.)
25109 s,^[ #]*u.*,/* & */,' >>conftest.defines
25111 # Break up conftest.defines:
25112 ac_max_sed_lines
=50
25114 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25115 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25116 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25118 ac_in
='$ac_file_inputs'
25119 ac_out
='"$tmp/out1"'
25120 ac_nxt
='"$tmp/out2"'
25124 # Write a here document:
25125 cat >>$CONFIG_STATUS <<_ACEOF
25126 # First, check the format of the line:
25127 cat >"\$tmp/defines.sed" <<\\CEOF
25128 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25129 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25133 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
25135 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25136 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
25137 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
25138 grep . conftest.
tail >/dev
/null ||
break
25139 rm -f conftest.defines
25140 mv conftest.
tail conftest.defines
25142 rm -f conftest.defines conftest.
tail
25144 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25145 cat >>$CONFIG_STATUS <<\_ACEOF
25146 if test x
"$ac_file" != x-
; then
25147 echo "/* $configure_input */" >"$tmp/config.h"
25148 cat "$ac_result" >>"$tmp/config.h"
25149 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
25150 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25151 echo "$as_me: $ac_file is unchanged" >&6;}
25154 mv "$tmp/config.h" $ac_file
25157 echo "/* $configure_input */"
25163 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25164 echo "$as_me: executing $ac_file commands" >&6;}
25169 case $ac_file$ac_mode in
25172 ### Make the necessary directories, if they don't exist.
25173 for dir
in etc lisp
; do
25174 test -d ${dir} || mkdir
${dir}
25177 # Build src/Makefile from ${srcdir}/src/Makefile.c
25178 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25179 # This must be done after src/config.h is built, since we rely on that file.
25181 # Now get this: Some word that is part of the ${srcdir} directory name
25182 # or the ${configuration} value might, just might, happen to be an
25183 # identifier like `sun4' or `i386' or something, and be predefined by
25184 # the C preprocessor to some helpful value like 1, or maybe the empty
25185 # string. Needless to say consequent macro substitutions are less
25186 # than conducive to the makefile finding the correct directory.
25187 undefs
="`echo $top_srcdir $configuration $canonical |
25188 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
25189 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
25192 echo creating src
/epaths.h
25193 ${MAKE-make} epaths-force
25195 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25196 # `..' to `. .' unless invoked with -traditional
25198 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
25199 CPPFLAGS
="$CPPFLAGS -traditional"
25202 echo creating lib-src
/Makefile
25204 rm -f junk.c junk1.c junk2.c
25205 sed -e '/start of cpp stuff/q' \
25206 < Makefile.c
> junk1.c
25207 sed -e '1,/start of cpp stuff/d'\
25208 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25209 < Makefile.c
> junk.c
25210 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
25211 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25212 cat junk1.c junk2.c
> Makefile.new
25213 rm -f junk.c junk1.c junk2.c
25214 chmod 444 Makefile.new
25215 mv -f Makefile.new Makefile
25218 echo creating src
/Makefile
25220 rm -f junk.c junk1.c junk2.c
25221 sed -e '/start of cpp stuff/q' \
25222 < Makefile.c
> junk1.c
25223 sed -e '1,/start of cpp stuff/d'\
25224 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25225 < Makefile.c
> junk.c
25226 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
25227 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25228 cat junk1.c junk2.c
> Makefile.new
25229 rm -f junk.c junk1.c junk2.c
25230 chmod 444 Makefile.new
25231 mv -f Makefile.new Makefile
25234 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
25235 echo creating src
/.gdbinit
25236 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
25239 # This is how we know whether to re-run configure in certain cases.
25240 touch src
/config.stamp
25248 { (exit 0); exit 0; }
25250 chmod +x
$CONFIG_STATUS
25251 ac_clean_files
=$ac_clean_files_save
25254 # configure is writing to config.log, and then calls config.status.
25255 # config.status does its own redirection, appending to config.log.
25256 # Unfortunately, on DOS this fails, as config.log is still kept open
25257 # by configure, so config.status won't be able to write to it; its
25258 # output is simply discarded. So we exec the FD to /dev/null,
25259 # effectively closing config.log, so it can be properly (re)opened and
25260 # appended to by config.status. When coming back to configure, we
25261 # need to make the FD available again.
25262 if test "$no_create" != yes; then
25264 ac_config_status_args
=
25265 test "$silent" = yes &&
25266 ac_config_status_args
="$ac_config_status_args --quiet"
25268 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
25270 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25271 # would make configure fail if this is the last instruction.
25272 $ac_cs_success ||
{ (exit 1); exit 1; }