2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for emacs 23.0.50.
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.
574 PACKAGE_TARNAME
='emacs'
575 PACKAGE_VERSION
='23.0.50'
576 PACKAGE_STRING
='emacs 23.0.50'
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
722 x_default_search_path
739 ac_precious_vars
='build_alias
751 # Initialize some variables set by options.
753 ac_init_version
=false
754 # The variables have the same names as the options, with
755 # dashes changed to underlines.
763 program_transform_name
=s
,x
,x
,
771 # Installation directory options.
772 # These are left unexpanded so users can "make install exec_prefix=/foo"
773 # and all the variables that are supposed to be based on exec_prefix
774 # by default will actually change.
775 # Use braces instead of parens because sh, perl, etc. also accept them.
776 # (The list follows the same order as the GNU Coding Standards.)
777 bindir
='${exec_prefix}/bin'
778 sbindir
='${exec_prefix}/sbin'
779 libexecdir
='${exec_prefix}/libexec'
780 datarootdir
='${prefix}/share'
781 datadir
='${datarootdir}'
782 sysconfdir
='${prefix}/etc'
783 sharedstatedir
='${prefix}/com'
784 localstatedir
='${prefix}/var'
785 includedir
='${prefix}/include'
786 oldincludedir
='/usr/include'
787 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
788 infodir
='${datarootdir}/info'
793 libdir
='${exec_prefix}/lib'
794 localedir
='${datarootdir}/locale'
795 mandir
='${datarootdir}/man'
801 # If the previous option needs an argument, assign it.
802 if test -n "$ac_prev"; then
803 eval $ac_prev=\
$ac_option
809 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
813 # Accept the important Cygnus configure options, so we can diagnose typos.
815 case $ac_dashdash$ac_option in
819 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
821 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
824 -build |
--build |
--buil |
--bui |
--bu)
825 ac_prev
=build_alias
;;
826 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
827 build_alias
=$ac_optarg ;;
829 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
830 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
831 ac_prev
=cache_file
;;
832 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
833 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
834 cache_file
=$ac_optarg ;;
837 cache_file
=config.cache
;;
839 -datadir |
--datadir |
--datadi |
--datad)
841 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
842 datadir
=$ac_optarg ;;
844 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
845 |
--dataroo |
--dataro |
--datar)
846 ac_prev
=datarootdir
;;
847 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
848 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
849 datarootdir
=$ac_optarg ;;
851 -disable-* |
--disable-*)
852 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
853 # Reject names that are not valid shell variable names.
854 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
855 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
856 { (exit 1); exit 1; }; }
857 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
858 eval enable_
$ac_feature=no
;;
860 -docdir |
--docdir |
--docdi |
--doc |
--do)
862 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
865 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
867 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
870 -enable-* |
--enable-*)
871 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
872 # Reject names that are not valid shell variable names.
873 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
874 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
875 { (exit 1); exit 1; }; }
876 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
877 eval enable_
$ac_feature=\
$ac_optarg ;;
879 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
880 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
881 |
--exec |
--exe |
--ex)
882 ac_prev
=exec_prefix
;;
883 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
884 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
885 |
--exec=* |
--exe=* |
--ex=*)
886 exec_prefix
=$ac_optarg ;;
888 -gas |
--gas |
--ga |
--g)
889 # Obsolete; use --with-gas.
892 -help |
--help |
--hel |
--he |
-h)
894 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
895 ac_init_help
=recursive
;;
896 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
897 ac_init_help
=short
;;
899 -host |
--host |
--hos |
--ho)
900 ac_prev
=host_alias
;;
901 -host=* |
--host=* |
--hos=* |
--ho=*)
902 host_alias
=$ac_optarg ;;
904 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
906 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
908 htmldir
=$ac_optarg ;;
910 -includedir |
--includedir |
--includedi |
--included |
--include \
911 |
--includ |
--inclu |
--incl |
--inc)
912 ac_prev
=includedir
;;
913 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
914 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
915 includedir
=$ac_optarg ;;
917 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
919 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
920 infodir
=$ac_optarg ;;
922 -libdir |
--libdir |
--libdi |
--libd)
924 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
927 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
928 |
--libexe |
--libex |
--libe)
929 ac_prev
=libexecdir
;;
930 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
931 |
--libexe=* |
--libex=* |
--libe=*)
932 libexecdir
=$ac_optarg ;;
934 -localedir |
--localedir |
--localedi |
--localed |
--locale)
936 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
937 localedir
=$ac_optarg ;;
939 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
940 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
941 ac_prev
=localstatedir
;;
942 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
943 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
944 localstatedir
=$ac_optarg ;;
946 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
948 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
952 # Obsolete; use --without-fp.
955 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
956 |
--no-cr |
--no-c |
-n)
959 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
960 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
963 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
964 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
965 |
--oldin |
--oldi |
--old |
--ol |
--o)
966 ac_prev
=oldincludedir
;;
967 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
968 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
969 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
970 oldincludedir
=$ac_optarg ;;
972 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
974 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
977 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
978 |
--program-pre |
--program-pr |
--program-p)
979 ac_prev
=program_prefix
;;
980 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
981 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
982 program_prefix
=$ac_optarg ;;
984 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
985 |
--program-suf |
--program-su |
--program-s)
986 ac_prev
=program_suffix
;;
987 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
988 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
989 program_suffix
=$ac_optarg ;;
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 ac_prev
=program_transform_name
;;
999 -program-transform-name=* |
--program-transform-name=* \
1000 |
--program-transform-nam=* |
--program-transform-na=* \
1001 |
--program-transform-n=* |
--program-transform-=* \
1002 |
--program-transform=* |
--program-transfor=* \
1003 |
--program-transfo=* |
--program-transf=* \
1004 |
--program-trans=* |
--program-tran=* \
1005 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1006 program_transform_name
=$ac_optarg ;;
1008 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1010 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1011 pdfdir
=$ac_optarg ;;
1013 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1015 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1018 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1019 |
-silent |
--silent |
--silen |
--sile |
--sil)
1022 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1024 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1026 sbindir
=$ac_optarg ;;
1028 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1029 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1030 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1032 ac_prev
=sharedstatedir
;;
1033 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1034 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1035 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1037 sharedstatedir
=$ac_optarg ;;
1039 -site |
--site |
--sit)
1041 -site=* |
--site=* |
--sit=*)
1044 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1046 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1047 srcdir
=$ac_optarg ;;
1049 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1050 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1051 ac_prev
=sysconfdir
;;
1052 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1053 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1054 sysconfdir
=$ac_optarg ;;
1056 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1057 ac_prev
=target_alias
;;
1058 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1059 target_alias
=$ac_optarg ;;
1061 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1064 -version |
--version |
--versio |
--versi |
--vers |
-V)
1065 ac_init_version
=: ;;
1068 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1069 # Reject names that are not valid shell variable names.
1070 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1071 { echo "$as_me: error: invalid package name: $ac_package" >&2
1072 { (exit 1); exit 1; }; }
1073 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1074 eval with_
$ac_package=\
$ac_optarg ;;
1076 -without-* |
--without-*)
1077 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1078 # Reject names that are not valid shell variable names.
1079 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1080 { echo "$as_me: error: invalid package name: $ac_package" >&2
1081 { (exit 1); exit 1; }; }
1082 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1083 eval with_
$ac_package=no
;;
1086 # Obsolete; use --with-x.
1089 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1090 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1091 ac_prev
=x_includes
;;
1092 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1093 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1094 x_includes
=$ac_optarg ;;
1096 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1097 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1098 ac_prev
=x_libraries
;;
1099 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1100 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1101 x_libraries
=$ac_optarg ;;
1103 -*) { echo "$as_me: error: unrecognized option: $ac_option
1104 Try \`$0 --help' for more information." >&2
1105 { (exit 1); exit 1; }; }
1109 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1110 # Reject names that are not valid shell variable names.
1111 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1112 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1113 { (exit 1); exit 1; }; }
1114 eval $ac_envvar=\
$ac_optarg
1115 export $ac_envvar ;;
1118 # FIXME: should be removed in autoconf 3.0.
1119 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1120 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1121 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1122 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1128 if test -n "$ac_prev"; then
1129 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1130 { echo "$as_me: error: missing argument to $ac_option" >&2
1131 { (exit 1); exit 1; }; }
1134 # Be sure to have absolute directory names.
1135 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1136 datadir sysconfdir sharedstatedir localstatedir includedir \
1137 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1138 libdir localedir mandir
1140 eval ac_val
=\$
$ac_var
1142 [\\/$
]* | ?
:[\\/]* ) continue;;
1143 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1145 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1146 { (exit 1); exit 1; }; }
1149 # There might be people who depend on the old broken behavior: `$host'
1150 # used to hold the argument of --host etc.
1151 # FIXME: To remove some day.
1154 target
=$target_alias
1156 # FIXME: To remove some day.
1157 if test "x$host_alias" != x
; then
1158 if test "x$build_alias" = x
; then
1159 cross_compiling
=maybe
1160 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1161 If a cross compiler is detected then cross compile mode will be used." >&2
1162 elif test "x$build_alias" != "x$host_alias"; then
1168 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1170 test "$silent" = yes && exec 6>/dev
/null
1173 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1174 ac_ls_di
=`ls -di .` &&
1175 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1176 { echo "$as_me: error: Working directory cannot be determined" >&2
1177 { (exit 1); exit 1; }; }
1178 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1179 { echo "$as_me: error: pwd does not report name of working directory" >&2
1180 { (exit 1); exit 1; }; }
1183 # Find the source files, if location was not specified.
1184 if test -z "$srcdir"; then
1185 ac_srcdir_defaulted
=yes
1186 # Try the directory containing this script, then the parent directory.
1187 ac_confdir
=`$as_dirname -- "$0" ||
1188 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1189 X"$0" : 'X\(//\)[^/]' \| \
1190 X"$0" : 'X\(//\)$' \| \
1191 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1211 if test ! -r "$srcdir/$ac_unique_file"; then
1215 ac_srcdir_defaulted
=no
1217 if test ! -r "$srcdir/$ac_unique_file"; then
1218 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1219 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1220 { (exit 1); exit 1; }; }
1222 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1224 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1225 { (exit 1); exit 1; }; }
1227 # When building in place, set srcdir=.
1228 if test "$ac_abs_confdir" = "$ac_pwd"; then
1231 # Remove unnecessary trailing slashes from srcdir.
1232 # Double slashes in file names in object file debugging info
1233 # mess up M-x gdb in Emacs.
1235 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1237 for ac_var
in $ac_precious_vars; do
1238 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1239 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1240 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1241 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1245 # Report the --help message.
1247 if test "$ac_init_help" = "long"; then
1248 # Omit some internal or obsolete options to make the list less imposing.
1249 # This message is too long to be a string in the A/UX 3.1 sh.
1251 \`configure' configures emacs 23.0.50 to adapt to many kinds of systems.
1253 Usage: $0 [OPTION]... [VAR=VALUE]...
1255 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1256 VAR=VALUE. See below for descriptions of some of the useful variables.
1258 Defaults for the options are specified in brackets.
1261 -h, --help display this help and exit
1262 --help=short display options specific to this package
1263 --help=recursive display the short help of all the included packages
1264 -V, --version display version information and exit
1265 -q, --quiet, --silent do not print \`checking...' messages
1266 --cache-file=FILE cache test results in FILE [disabled]
1267 -C, --config-cache alias for \`--cache-file=config.cache'
1268 -n, --no-create do not create output files
1269 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1271 Installation directories:
1272 --prefix=PREFIX install architecture-independent files in PREFIX
1273 [$ac_default_prefix]
1274 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1277 By default, \`make install' will install all the files in
1278 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1279 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1280 for instance \`--prefix=\$HOME'.
1282 For better control, use the options below.
1284 Fine tuning of the installation directories:
1285 --bindir=DIR user executables [EPREFIX/bin]
1286 --sbindir=DIR system admin executables [EPREFIX/sbin]
1287 --libexecdir=DIR program executables [EPREFIX/libexec]
1288 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1289 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1290 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1291 --libdir=DIR object code libraries [EPREFIX/lib]
1292 --includedir=DIR C header files [PREFIX/include]
1293 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1294 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1295 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1296 --infodir=DIR info documentation [DATAROOTDIR/info]
1297 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1298 --mandir=DIR man documentation [DATAROOTDIR/man]
1299 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1300 --htmldir=DIR html documentation [DOCDIR]
1301 --dvidir=DIR dvi documentation [DOCDIR]
1302 --pdfdir=DIR pdf documentation [DOCDIR]
1303 --psdir=DIR ps documentation [DOCDIR]
1309 --program-prefix=PREFIX prepend PREFIX to installed program names
1310 --program-suffix=SUFFIX append SUFFIX to installed program names
1311 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1314 --x-includes=DIR X include files are
in DIR
1315 --x-libraries=DIR X library files are
in DIR
1318 --build=BUILD configure
for building on BUILD
[guessed
]
1319 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1323 if test -n "$ac_init_help"; then
1324 case $ac_init_help in
1325 short | recursive
) echo "Configuration of emacs 23.0.50:";;
1330 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1331 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1332 --enable-carbon-app[=DIR
]
1333 specify
install directory
for Emacs.app on Mac OS X
1335 --enable-font-backend compile code of font-backend support
1336 --enable-asserts compile code with asserts enabled
1337 --enable-maintainer-mode
1338 enable make rules and dependencies not useful
(and
1339 sometimes confusing
) to the casual installer
1340 --enable-locallisppath=PATH
1341 directories Emacs should search
for lisp files
1342 specific to this site
1343 --disable-largefile omit support
for large files
1346 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1347 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1348 --without-gcc don
't use GCC to compile Emacs if GCC is found
1349 --without-pop don't support POP
mail retrieval with movemail
1350 --with-kerberos support Kerberos-authenticated POP
1351 --with-kerberos5 support Kerberos version
5 authenticated POP
1352 --with-hesiod support Hesiod to get the POP server
host
1353 --without-sound don
't compile with sound support
1354 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes, lucid, athena,
1356 --with-xpm use -lXpm for displaying XPM images
1357 --with-jpeg use -ljpeg for displaying JPEG images
1358 --with-tiff use -ltiff for displaying TIFF images
1359 --with-gif use -lgif (or -lungif) for displaying GIF images
1360 --with-png use -lpng for displaying PNG images
1361 --with-freetype use -lfreetype for local fonts support
1362 --with-xft use -lXft for anti aliased fonts
1363 --with-gpm use -lgpm for mouse support on a GNU/Linux console
1364 --with-rsvg use -lrsvg-2 for displaying SVG images
1365 --with-gtk use GTK (same as --with-x-toolkit=gtk)
1366 --with-pkg-config-prog Path to pkg-config for finding GTK and librsvg
1367 --without-toolkit-scroll-bars
1368 don't use Motif or Xaw3d scroll bars
1369 --without-xaw3d don
't use Xaw3d
1370 --without-xim don't use X11 XIM
1371 --without-carbon don
't use Carbon GUI on Mac OS X
1372 --with-dbus use D-Bus
1373 --without-libotf don't use libotf
for OpenType font support
1374 --without-m17n-flt don
't use m17n-flt for text shaping
1375 --with-x use the X Window System
1377 Some influential environment variables:
1378 CC C compiler command
1379 CFLAGS C compiler flags
1380 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1381 nonstandard directory <lib dir>
1382 LIBS libraries to pass to the linker, e.g. -l<library>
1383 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1384 you have headers in a nonstandard directory <include dir>
1386 XMKMF Path to xmkmf, Makefile generator for X Window System
1388 Use these variables to override the choices made by `configure' or to
help
1389 it to
find libraries and programs with nonstandard names
/locations.
1395 if test "$ac_init_help" = "recursive"; then
1396 # If there are subdirs, report their specific --help.
1397 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1398 test -d "$ac_dir" ||
continue
1402 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1404 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1405 # A ".." for each directory in $ac_dir_suffix.
1406 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1407 case $ac_top_builddir_sub in
1408 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1409 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1412 ac_abs_top_builddir
=$ac_pwd
1413 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1414 # for backward compatibility:
1415 ac_top_builddir
=$ac_top_build_prefix
1418 .
) # We are building in place.
1420 ac_top_srcdir
=$ac_top_builddir_sub
1421 ac_abs_top_srcdir
=$ac_pwd ;;
1422 [\\/]* | ?
:[\\/]* ) # Absolute name.
1423 ac_srcdir
=$srcdir$ac_dir_suffix;
1424 ac_top_srcdir
=$srcdir
1425 ac_abs_top_srcdir
=$srcdir ;;
1427 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1428 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1429 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1431 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1433 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1434 # Check for guested configure.
1435 if test -f "$ac_srcdir/configure.gnu"; then
1437 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1438 elif test -f "$ac_srcdir/configure"; then
1440 $SHELL "$ac_srcdir/configure" --help=recursive
1442 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1444 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1448 test -n "$ac_init_help" && exit $ac_status
1449 if $ac_init_version; then
1451 emacs configure
23.0.50
1452 generated by GNU Autoconf
2.61
1454 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1455 2002, 2003, 2004, 2005, 2006 Free Software Foundation
, Inc.
1456 This configure
script is free software
; the Free Software Foundation
1457 gives unlimited permission to copy
, distribute and modify it.
1461 cat >config.log
<<_ACEOF
1462 This file contains any messages produced by compilers while
1463 running configure, to aid debugging if configure makes a mistake.
1465 It was created by emacs $as_me 23.0.50, which was
1466 generated by GNU Autoconf 2.61. Invocation command line was
1478 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1479 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1480 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1481 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1482 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1484 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1485 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1487 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1488 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1489 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1490 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1491 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1492 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1493 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1497 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1501 test -z "$as_dir" && as_dir
=.
1502 echo "PATH: $as_dir"
1518 # Keep a trace of the command line.
1519 # Strip out --no-create and --no-recursion so they do not pile up.
1520 # Strip out --silent because we don't want to record it for future runs.
1521 # Also quote any args containing shell meta-characters.
1522 # Make two passes to allow for proper duplicate-argument suppression.
1526 ac_must_keep_next
=false
1532 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1533 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1534 |
-silent |
--silent |
--silen |
--sile |
--sil)
1537 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1540 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1542 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1543 if test $ac_must_keep_next = true
; then
1544 ac_must_keep_next
=false
# Got value, back to normal.
1547 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1548 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1549 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1550 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1551 case "$ac_configure_args0 " in
1552 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1555 -* ) ac_must_keep_next
=true
;;
1558 ac_configure_args
="$ac_configure_args '$ac_arg'"
1563 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1564 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1566 # When interrupted or exit'd, cleanup temporary files, and complete
1567 # config.log. We remove comments because anyway the quotes in there
1568 # would cause problems or look ugly.
1569 # WARNING: Use '\'' to represent an apostrophe within the trap.
1570 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1571 trap 'exit_status=$?
1572 # Save into config.log some information that might help in debugging.
1577 ## ---------------- ##
1578 ## Cache variables. ##
1579 ## ---------------- ##
1582 # The following way of writing the cache mishandles newlines in values,
1584 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1585 eval ac_val=\$$ac_var
1589 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1590 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1593 _ | IFS | as_nl) ;; #(
1594 *) $as_unset $ac_var ;;
1599 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1600 *${as_nl}ac_space=\ *)
1602 "s/'\''/'\''\\\\'\'''\''/g;
1603 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1606 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1614 ## ----------------- ##
1615 ## Output variables. ##
1616 ## ----------------- ##
1619 for ac_var in $ac_subst_vars
1621 eval ac_val=\$$ac_var
1623 *\'\''*) ac_val
=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1625 echo "$ac_var='\''$ac_val'\''"
1629 if test -n "$ac_subst_files"; then
1631 ## ------------------- ##
1632 ## File substitutions. ##
1633 ## ------------------- ##
1636 for ac_var
in $ac_subst_files
1638 eval ac_val
=\$
$ac_var
1640 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1642 echo "$ac_var='\''$ac_val'\''"
1647 if test -s confdefs.h; then
1657 test "$ac_signal" != 0 &&
1658 echo "$as_me: caught signal $ac_signal"
1659 echo "$as_me: exit $exit_status"
1661 rm -f core *.core core.conftest.* &&
1662 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1665 for ac_signal
in 1 2 13 15; do
1666 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1670 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1671 rm -f -r conftest
* confdefs.h
1673 # Predefined preprocessor variables.
1675 cat >>confdefs.h
<<_ACEOF
1676 #define PACKAGE_NAME "$PACKAGE_NAME"
1680 cat >>confdefs.h
<<_ACEOF
1681 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1685 cat >>confdefs.h
<<_ACEOF
1686 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1690 cat >>confdefs.h
<<_ACEOF
1691 #define PACKAGE_STRING "$PACKAGE_STRING"
1695 cat >>confdefs.h
<<_ACEOF
1696 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1700 # Let the site file select an alternate cache file if it wants to.
1701 # Prefer explicitly selected file to automatically selected ones.
1702 if test -n "$CONFIG_SITE"; then
1703 set x
"$CONFIG_SITE"
1704 elif test "x$prefix" != xNONE
; then
1705 set x
"$prefix/share/config.site" "$prefix/etc/config.site"
1707 set x
"$ac_default_prefix/share/config.site" \
1708 "$ac_default_prefix/etc/config.site"
1713 if test -r "$ac_site_file"; then
1714 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1715 echo "$as_me: loading site script $ac_site_file" >&6;}
1716 sed 's/^/| /' "$ac_site_file" >&5
1721 if test -r "$cache_file"; then
1722 # Some versions of bash will fail to source /dev/null (special
1723 # files actually), so we avoid doing that.
1724 if test -f "$cache_file"; then
1725 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1726 echo "$as_me: loading cache $cache_file" >&6;}
1728 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
1729 *) .
"./$cache_file";;
1733 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1734 echo "$as_me: creating cache $cache_file" >&6;}
1738 ac_header_list
="$ac_header_list sys/time.h"
1739 ac_header_list
="$ac_header_list unistd.h"
1740 ac_func_list
="$ac_func_list alarm"
1741 # Check that the precious variables saved in the cache have kept the same
1743 ac_cache_corrupted
=false
1744 for ac_var
in $ac_precious_vars; do
1745 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1746 eval ac_new_set
=\
$ac_env_${ac_var}_set
1747 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
1748 eval ac_new_val
=\
$ac_env_${ac_var}_value
1749 case $ac_old_set,$ac_new_set in
1751 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1752 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1753 ac_cache_corrupted
=: ;;
1755 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1756 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1757 ac_cache_corrupted
=: ;;
1760 if test "x$ac_old_val" != "x$ac_new_val"; then
1761 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1762 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1763 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1764 echo "$as_me: former value: $ac_old_val" >&2;}
1765 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1766 echo "$as_me: current value: $ac_new_val" >&2;}
1767 ac_cache_corrupted
=:
1770 # Pass precious variables to config.status.
1771 if test "$ac_new_set" = set; then
1773 *\'*) ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1774 *) ac_arg
=$ac_var=$ac_new_val ;;
1776 case " $ac_configure_args " in
1777 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1778 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1782 if $ac_cache_corrupted; then
1783 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1784 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1785 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1786 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1787 { (exit 1); exit 1; }; }
1815 ac_cpp
='$CPP $CPPFLAGS'
1816 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1817 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1818 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1821 ac_config_headers
="$ac_config_headers src/config.h:src/config.in"
1825 test "$program_prefix" != NONE
&&
1826 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
1827 # Use a double $ so make ignores it.
1828 test "$program_suffix" != NONE
&&
1829 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
1830 # Double any \ or $. echo might interpret backslashes.
1831 # By default was `s,x,x', remove it if useless.
1832 cat <<\_ACEOF
>conftest.
sed
1833 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1835 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1839 lispdir
='${datadir}/emacs/${version}/lisp'
1840 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
1841 '${datadir}/emacs/site-lisp'
1842 lisppath
='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1843 etcdir
='${datadir}/emacs/${version}/etc'
1844 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
1845 docdir
='${datadir}/emacs/${version}/etc'
1846 gamedir
='${localstatedir}/games/emacs'
1852 # Check whether --with-gcc was given.
1853 if test "${with_gcc+set}" = set; then
1859 # Check whether --with-pop was given.
1860 if test "${with_pop+set}" = set; then
1861 withval
=$with_pop; if test "$withval" = yes; then
1862 cat >>confdefs.h
<<\_ACEOF
1863 #define MAIL_USE_POP 1
1869 cat >>confdefs.h
<<\_ACEOF
1870 #define MAIL_USE_POP 1
1878 # Check whether --with-kerberos was given.
1879 if test "${with_kerberos+set}" = set; then
1880 withval
=$with_kerberos; if test "$withval" = yes; then
1881 cat >>confdefs.h
<<\_ACEOF
1891 # Check whether --with-kerberos5 was given.
1892 if test "${with_kerberos5+set}" = set; then
1893 withval
=$with_kerberos5; if test "${with_kerberos5+set}" = set; then
1894 if test "${with_kerberos+set}" != set; then
1896 cat >>confdefs.h
<<\_ACEOF
1902 cat >>confdefs.h
<<\_ACEOF
1911 # Check whether --with-hesiod was given.
1912 if test "${with_hesiod+set}" = set; then
1913 withval
=$with_hesiod; if test "$withval" = yes; then
1915 cat >>confdefs.h
<<\_ACEOF
1924 # Check whether --with-sound was given.
1925 if test "${with_sound+set}" = set; then
1926 withval
=$with_sound;
1931 # Check whether --with-x-toolkit was given.
1932 if test "${with_x_toolkit+set}" = set; then
1933 withval
=$with_x_toolkit; case "${withval}" in
1934 y | ye |
yes ) val
=gtk
;;
1936 l | lu | luc | luci | lucid
) val
=lucid
;;
1937 a |
at | ath | athe | athen | athena
) val
=athena
;;
1938 m | mo | mot | moti | motif
) val
=motif
;;
1939 g | gt | gtk
) val
=gtk
;;
1941 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
1942 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1943 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
1944 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
1945 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1946 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
1947 { (exit 1); exit 1; }; }
1956 # Check whether --with-xpm was given.
1957 if test "${with_xpm+set}" = set; then
1962 # Check whether --with-jpeg was given.
1963 if test "${with_jpeg+set}" = set; then
1968 # Check whether --with-tiff was given.
1969 if test "${with_tiff+set}" = set; then
1974 # Check whether --with-gif was given.
1975 if test "${with_gif+set}" = set; then
1980 # Check whether --with-png was given.
1981 if test "${with_png+set}" = set; then
1986 # Check whether --with-freetype was given.
1987 if test "${with_freetype+set}" = set; then
1988 withval
=$with_freetype;
1992 # Check whether --with-xft was given.
1993 if test "${with_xft+set}" = set; then
1998 # Check whether --with-gpm was given.
1999 if test "${with_gpm+set}" = set; then
2004 # Check whether --with-rsvg was given.
2005 if test "${with_rsvg+set}" = set; then
2010 # Check whether --with-gtk was given.
2011 if test "${with_gtk+set}" = set; then
2016 # Check whether --with-pkg-config-prog was given.
2017 if test "${with_pkg_config_prog+set}" = set; then
2018 withval
=$with_pkg_config_prog;
2022 # Check whether --with-toolkit-scroll-bars was given.
2023 if test "${with_toolkit_scroll_bars+set}" = set; then
2024 withval
=$with_toolkit_scroll_bars;
2028 # Check whether --with-xaw3d was given.
2029 if test "${with_xaw3d+set}" = set; then
2030 withval
=$with_xaw3d;
2034 # Check whether --with-xim was given.
2035 if test "${with_xim+set}" = set; then
2040 # Check whether --with-carbon was given.
2041 if test "${with_carbon+set}" = set; then
2042 withval
=$with_carbon;
2046 # Check whether --with-dbus was given.
2047 if test "${with_dbus+set}" = set; then
2052 # Check whether --with-libotf was given.
2053 if test "${with_libotf+set}" = set; then
2054 withval
=$with_libotf;
2058 # Check whether --with-m17n-flt was given.
2059 if test "${with_m17n_flt+set}" = set; then
2060 withval
=$with_m17n_flt;
2064 # Check whether --enable-carbon-app was given.
2065 if test "${enable_carbon_app+set}" = set; then
2066 enableval
=$enable_carbon_app; carbon_appdir_x
=${enableval}
2070 # Check whether --enable-font-backend was given.
2071 if test "${enable_font_backend+set}" = set; then
2072 enableval
=$enable_font_backend; USE_FONT_BACKEND
=$enableval
2078 # Check whether --enable-asserts was given.
2079 if test "${enable_asserts+set}" = set; then
2080 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
2086 # Check whether --enable-maintainer-mode was given.
2087 if test "${enable_maintainer_mode+set}" = set; then
2088 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2090 USE_MAINTAINER_MODE
=no
2093 if test $USE_MAINTAINER_MODE = yes; then
2100 # Check whether --enable-locallisppath was given.
2101 if test "${enable_locallisppath+set}" = set; then
2102 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
2104 elif test "${enableval}" != "yes"; then
2105 locallisppath
=${enableval}
2110 #### Make srcdir absolute, if it isn't already. It's important to
2111 #### avoid running the path through pwd unnecessarily, since pwd can
2112 #### give you automounter prefixes, which can go away. We do all this
2113 #### so Emacs can find its files when run uninstalled.
2114 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2119 ## We may be able to use the $PWD environment variable to make this
2120 ## absolute. But sometimes PWD is inaccurate.
2121 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2122 ## but that tested only for a well-formed and valid PWD,
2123 ## it did not object when PWD was well-formed and valid but just wrong.
2124 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2128 srcdir
="`(cd ${srcdir}; pwd)`"
2131 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2134 #### Check if the source directory already has a configured system in it.
2135 if test `pwd` != `(cd ${srcdir} && pwd)` \
2136 && test -f "${srcdir}/src/config.h" ; then
2137 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2138 as a build directory right now; it has been configured in its own
2139 right. To configure in another directory as well, you MUST
2140 use GNU make. If you do not have GNU make, then you must
2141 now do \`make distclean' in ${srcdir},
2142 and then run $0 again." >&5
2143 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2144 as a build directory right now; it has been configured in its own
2145 right. To configure in another directory as well, you MUST
2146 use GNU make. If you do not have GNU make, then you must
2147 now do \`make distclean' in ${srcdir},
2148 and then run $0 again." >&2;}
2151 #### Given the configuration name, set machfile and opsysfile to the
2152 #### names of the m/*.h and s/*.h files we should use.
2154 ### Canonicalize the configuration name.
2157 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2158 if test -f "$ac_dir/install-sh"; then
2160 ac_install_sh
="$ac_aux_dir/install-sh -c"
2162 elif test -f "$ac_dir/install.sh"; then
2164 ac_install_sh
="$ac_aux_dir/install.sh -c"
2166 elif test -f "$ac_dir/shtool"; then
2168 ac_install_sh
="$ac_aux_dir/shtool install -c"
2172 if test -z "$ac_aux_dir"; then
2173 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2174 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2175 { (exit 1); exit 1; }; }
2178 # These three variables are undocumented and unsupported,
2179 # and are intended to be withdrawn in a future Autoconf release.
2180 # They can cause serious problems if a builder's source tree is in a directory
2181 # whose full name contains unusual characters.
2182 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2183 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2184 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2187 # Make sure we can run config.sub.
2188 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2189 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2190 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2191 { (exit 1); exit 1; }; }
2193 { echo "$as_me:$LINENO: checking build system type" >&5
2194 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2195 if test "${ac_cv_build+set}" = set; then
2196 echo $ECHO_N "(cached) $ECHO_C" >&6
2198 ac_build_alias
=$build_alias
2199 test "x$ac_build_alias" = x
&&
2200 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2201 test "x$ac_build_alias" = x
&&
2202 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2203 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2204 { (exit 1); exit 1; }; }
2205 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2206 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2207 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2208 { (exit 1); exit 1; }; }
2211 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2212 echo "${ECHO_T}$ac_cv_build" >&6; }
2213 case $ac_cv_build in
2215 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2216 echo "$as_me: error: invalid value of canonical build" >&2;}
2217 { (exit 1); exit 1; }; };;
2220 ac_save_IFS
=$IFS; IFS
='-'
2226 # Remember, the first character of IFS is used to create $*,
2227 # except with old shells:
2230 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2233 { echo "$as_me:$LINENO: checking host system type" >&5
2234 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2235 if test "${ac_cv_host+set}" = set; then
2236 echo $ECHO_N "(cached) $ECHO_C" >&6
2238 if test "x$host_alias" = x
; then
2239 ac_cv_host
=$ac_cv_build
2241 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2242 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2243 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2244 { (exit 1); exit 1; }; }
2248 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2249 echo "${ECHO_T}$ac_cv_host" >&6; }
2252 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2253 echo "$as_me: error: invalid value of canonical host" >&2;}
2254 { (exit 1); exit 1; }; };;
2257 ac_save_IFS
=$IFS; IFS
='-'
2263 # Remember, the first character of IFS is used to create $*,
2264 # except with old shells:
2267 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2271 configuration
=${host_alias-${build_alias-$host}}
2275 ### If you add support for a new configuration, add code to this
2276 ### switch statement to recognize your configuration name and select
2277 ### the appropriate operating system and machine description files.
2279 ### You would hope that you could choose an m/*.h file pretty much
2280 ### based on the machine portion of the configuration name, and an s-
2281 ### file based on the operating system portion. However, it turns out
2282 ### that each m/*.h file is pretty manufacturer-specific - for
2283 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
2284 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
2285 ### machines. So we basically have to have a special case for each
2286 ### configuration name.
2288 ### As far as handling version numbers on operating systems is
2289 ### concerned, make sure things will fail in a fixable way. If
2290 ### /etc/MACHINES doesn't say anything about version numbers, be
2291 ### prepared to handle anything reasonably. If version numbers
2292 ### matter, be sure /etc/MACHINES says something about it.
2294 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2295 ### "System V Release 4"; he writes, "The old convention encouraged
2296 ### confusion between `system' and `release' levels'."
2298 machine
='' opsys
='' unported
=no
2299 case "${canonical}" in
2304 case "${canonical}" in
2305 alpha
*-*-freebsd*) machine
=alpha
;;
2306 ia64-
*-freebsd*) machine
=ia64
;;
2307 sparc64-
*-freebsd*) machine
=sparc
;;
2308 powerpc-
*-freebsd*) machine
=macppc
;;
2309 i
[3456]86-*-freebsd*) machine
=intel386
;;
2310 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2314 ## FreeBSD kernel + glibc based userland
2317 case "${canonical}" in
2318 alpha
*-*-kfreebsd*) machine
=alpha
;;
2319 ia64-
*-kfreebsd*) machine
=ia64
;;
2320 sparc64-
*-kfreebsd*) machine
=sparc
;;
2321 powerpc-
*-kfreebsd*) machine
=macppc
;;
2322 i
[3456]86-*-kfreebsd*) machine
=intel386
;;
2323 amd64-
*-kfreebsd*|x86_64-
*-kfreebsd*) machine
=amdx86-64
;;
2330 if test -f /usr
/lib
/crti.o
; then
2332 cat >>confdefs.h
<<\_ACEOF
2338 case "${canonical}" in
2339 alpha
*-*-netbsd*) machine
=alpha
;;
2340 i
[3456]86-*-netbsd*) machine
=intel386
;;
2342 # This is somewhat bogus.
2343 machine
=hp9000s300
;;
2344 mips-
*-netbsd*) machine
=pmax
;;
2345 mipsel-
*-netbsd*) machine
=pmax
;;
2346 mipseb-
*-netbsd*) machine
=pmax
;;
2347 ns32k-
*-netbsd*) machine
=ns32000
;;
2348 powerpc-
*-netbsd*) machine
=macppc
;;
2349 sparc
*-*-netbsd*) machine
=sparc
;;
2350 vax-
*-netbsd*) machine
=vax
;;
2351 arm-
*-netbsd*) machine
=arm
;;
2352 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2353 hppa-
*-netbsd*) machine
=hp800
;;
2354 shle-
*-netbsd*) machine
=sh3el
;;
2361 case "${canonical}" in
2362 alpha
*-*-openbsd*) machine
=alpha
;;
2363 arm-
*-openbsd*) machine
=arm
;;
2364 hppa-
*-openbsd*) machine
=hp9000s300
;;
2365 i386-
*-openbsd*) machine
=intel386
;;
2366 m68k-
*-openbsd*) machine
=hp9000s300
;;
2367 m88k-
*-openbsd*) machine
=aviion
;;
2368 mips64-
*-openbsd*) machine
=mips64
;;
2369 powerpc-
*-openbsd*) machine
=macppc
;;
2370 sh-
*-openbsd*) machine
=sh3el
;;
2371 sparc
*-*-openbsd*) machine
=sparc
;;
2372 vax-
*-openbsd*) machine
=vax
;;
2373 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2380 case "${canonical}" in
2381 i
[3456]86-*-lynxos*) machine
=intel386
;;
2382 powerpc-
*-lynxos*) machine
=powerpc
;;
2387 arm-acorn-riscix1.1
* )
2388 machine
=acorn opsys
=riscix1-1
2390 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
2391 ## This name is riscix12 instead of riscix1.2
2392 ## to avoid a file name conflict on MSDOS.
2393 machine
=acorn opsys
=riscix12
2399 case "${canonical}" in
2400 i
[345]86-*-bsdi*) machine
=intel386
;;
2401 sparc-
*-bsdi*) machine
=sparc
;;
2402 powerpc-
*-bsdi*) machine
=macppc
;;
2404 case "${canonical}" in
2405 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
2406 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
2407 *-*-bsdi2* ) opsys
=bsdos2-1
;;
2408 *-*-bsdi3* ) opsys
=bsdos3
;;
2409 *-*-bsdi[45]* ) opsys
=bsdos4
;;
2414 ## Strictly speaking, we need the version of the alliant operating
2415 ## system to choose the right machine file, but currently the
2416 ## configuration name doesn't tell us enough to choose the right
2417 ## one; we need to give alliants their own operating system name to
2418 ## do this right. When someone cares, they can help us.
2420 machine
=alliant4 opsys
=bsd4-2
2423 machine
=alliant-2800 opsys
=bsd4-3
2426 ## Alpha (DEC) machines.
2428 machine
=alpha opsys
=osf1
2429 # This is needed to find X11R6.1 libraries for certain tests.
2430 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2431 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2432 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2433 # due to non-traditional preprocessing with the current compiler
2434 # defaults. OSF 4 can also have that compiler version, and there
2435 # seems always to have been a usable /usr/bin/cpp.
2436 NON_GNU_CPP
=/usr
/bin
/cpp
2437 case "${canonical}" in
2438 alpha
*-dec-osf[5-9]*)
2443 alpha
*-*-linux-gnu* )
2444 machine
=alpha opsys
=gnu-linux
2448 machine
=arm opsys
=gnu-linux
2453 machine
=altos opsys
=usg5-2
2458 machine
=amdahl opsys
=usg5-2-2
2461 ## Apollo, Domain/OS
2463 machine
=apollo opsys
=bsd4-3
2466 ## Apple Darwin / Mac OS X
2468 case "${canonical}" in
2469 i
[3456]86-* ) machine
=intel386
;;
2470 powerpc-
* ) machine
=powermac
;;
2474 # Define CPP as follows to make autoconf work correctly.
2475 CPP
="${CC-cc} -E -no-cpp-precomp"
2476 # Use fink packages if available.
2477 if test -d /sw
/include
&& test -d /sw
/lib
; then
2478 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2479 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2480 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2484 ## AT&T 3b2, 3b5, 3b15, 3b20
2486 machine
=att3b opsys
=usg5-2-2
2489 ## AT&T 3b1 - The Mighty Unix PC!
2491 machine
=7300 opsys
=usg5-2-2
2496 machine
=ibmrs6000 opsys
=aix3-2
2501 machine
=dpx2 opsys
=usg5-3
2506 machine
=sps7 opsys
=usg5-2
2509 ## CCI 5/32, 6/32 -- see "Tahoe".
2512 ## I don't know what configuration name to use for this; config.sub
2513 ## doesn't seem to know anything about it. Hey, Celerity users, get
2514 ## in touch with us!
2515 celerity-celerity-bsd
* )
2516 machine
=celerity opsys
=bsd4-2
2520 ## What operating systems does this chip run that Emacs has been
2524 ## We'll use the catch-all code at the bottom to guess the
2525 ## operating system.
2529 mips-compaq-nonstopux
* )
2530 machine
=nonstopux opsys
=nonstopux
2534 *-convex-bsd* |
*-convex-convexos* )
2535 machine
=convex opsys
=bsd4-3
2536 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2537 NON_GNU_CPP
="cc -E -P"
2541 i
[3456]86-cubix-sysv* )
2542 machine
=intel386 opsys
=usg5-3
2546 cydra
*-cydrome-sysv* )
2547 machine
=cydra5 opsys
=usg5-3
2550 ## Data General AViiON Machines
2551 ## DG changed naming conventions with the release of 5.4.4.10, they
2552 ## dropped the initial 5.4 but left the intervening R. Because of the
2553 ## R this shouldn't conflict with older versions of the OS (which I
2554 ## think were named like dgux4.*). In addition, DG new AViiONs series
2555 ## uses either Motorola M88k or Intel Pentium CPUs.
2556 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
2557 machine
=aviion opsys
=dgux4
2559 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
2560 ## This name is dgux5-4-3 instead of dgux5-4r3
2561 ## to avoid a file name conflict on MSDOS.
2562 machine
=aviion opsys
=dgux5-4-3
2564 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
2565 machine
=aviion opsys
=dgux5-4r2
2568 machine
=aviion opsys
=dgux
2571 ## Data General AViiON Intel (x86) Machines
2572 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2573 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2574 i
[345]86-dg-dguxR4* )
2575 machine
=aviion-intel opsys
=dgux4
2579 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
2580 machine
=pmax opsys
=bsd4-2
2582 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
2583 machine
=pmax opsys
=bsd4-3
2586 machine
=pmax opsys
=ultrix4-3
2589 machine
=pmax opsys
=osf1
2591 mips-dec-mach_bsd4.3
* )
2592 machine
=pmax opsys
=mach-bsd4-3
2595 ## Motorola Delta machines
2596 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
2597 machine
=delta opsys
=usg5-3
2598 if test -z "`type gnucc | grep 'not found'`"
2600 if test -s /etc
/167config
2601 then CC
="gnucc -m68040"
2602 else CC
="gnucc -m68881"
2605 if test -z "`type gcc | grep 'not found'`"
2611 m88k-motorola-sysv4
* )
2612 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2613 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2614 # I hope there are not other 4.0 versions for this machine
2615 # which really need usg5-4 instead.
2616 machine
=delta88k opsys
=usg5-4-2
2618 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
2619 machine
=delta88k opsys
=usg5-3
2624 machine
=dual opsys
=usg5-2
2626 m68
*-dual-uniplus* )
2627 machine
=dual opsys
=unipl5-2
2632 machine
=elxsi opsys
=usg5-2
2637 machine
=ns16000 opsys
=umax
2640 ## The GEC 63 - apparently, this port isn't really finished yet.
2641 # I'm sure we finished off the last of the machines, though. -- fx
2643 ## Gould Power Node and NP1
2645 machine
=gould opsys
=bsd4-2
2648 machine
=gould opsys
=bsd4-3
2651 machine
=gould-np1 opsys
=bsd4-3
2654 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2655 ## as far as Emacs is concerned).
2657 # Build needs to be different on 7.0 and later releases
2658 case "`uname -r`" in
2659 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
2660 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
2662 NON_GNU_CPP
="/lib/cpp"
2664 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2666 machine
=nh3000 opsys
=cxux
2668 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2669 powerpc-harris-powerunix
)
2670 machine
=nh6000 opsys
=powerunix
2671 NON_GNU_CPP
="cc -Xo -E -P"
2673 ## SR2001/SR2201 running HI-UX/MPP
2674 hppa1.1
-hitachi-hiuxmpp* )
2675 machine
=sr2k opsys
=hiuxmpp
2677 hppa1.1
-hitachi-hiuxwe2* )
2678 machine
=sr2k opsys
=hiuxwe2
2681 xps
*-honeywell-sysv* )
2682 machine
=xps100 opsys
=usg5-2
2685 ## HP 9000 series 200 or 300
2687 machine
=hp9000s300 opsys
=bsd4-3
2689 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2691 case "`uname -r`" in
2692 ## Someone's system reports A.B8.05 for this.
2693 ## I wonder what other possibilities there are.
2694 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2695 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2696 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2697 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2698 *) machine
=hp9000s300 opsys
=hpux
;;
2702 ## HP 9000 series 700 and 800, running HP/UX
2704 machine
=hp800 opsys
=hpux
2707 machine
=hp800 opsys
=hpux8
2709 hppa
*-hp-hpux9shr* )
2710 machine
=hp800 opsys
=hpux9shr
2713 machine
=hp800 opsys
=hpux9
2715 hppa
*-hp-hpux10.2
* )
2716 machine
=hp800 opsys
=hpux10-20
2719 machine
=hp800 opsys
=hpux10
2721 hppa
*-hp-hpux1[1-9]* )
2722 machine
=hp800 opsys
=hpux11
2723 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2726 hppa
*-*-linux-gnu* )
2727 machine
=hp800 opsys
=gnu-linux
2730 ## HP 9000 series 700 and 800, running HP/UX
2732 ## Cross-compilation? Nah!
2733 case "`uname -r`" in
2734 ## Someone's system reports A.B8.05 for this.
2735 ## I wonder what other possibilities there are.
2736 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2737 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2738 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2739 *) machine
=hp800 opsys
=hpux10
;;
2743 machine
=hp800 opsys
=nextstep
2748 machine
=orion opsys
=bsd4-2
2750 clipper-orion-bsd
* )
2751 machine
=orion105 opsys
=bsd4-2
2755 i
[3456]86-ibm-aix1.1
* )
2756 machine
=ibmps2-aix opsys
=usg5-2-2
2758 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2759 machine
=ibmps2-aix opsys
=usg5-3
2762 machine
=ibm370aix opsys
=usg5-3
2765 machine
=ibms390 opsys
=gnu-linux
2767 s390x-
*-linux-gnu* )
2768 machine
=ibms390x opsys
=gnu-linux
2770 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2771 machine
=ibmrs6000 opsys
=aix3-1
2773 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2774 machine
=ibmrs6000 opsys
=aix3-2-5
2776 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2777 machine
=ibmrs6000 opsys
=aix4-1
2779 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2780 machine
=ibmrs6000 opsys
=aix4-2
2782 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
2783 machine
=ibmrs6000 opsys
=aix4-2
2785 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2786 machine
=ibmrs6000 opsys
=aix4-2
2788 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2789 machine
=ibmrs6000 opsys
=aix4
2791 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2792 machine
=ibmrs6000 opsys
=aix4-1
2794 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2795 machine
=ibmrs6000 opsys
=aix3-2
2798 machine
=ibmrt opsys
=bsd4-3
2801 machine
=ibmrt opsys
=bsd4-2
2804 machine
=ibmrt opsys
=bsd4-3
2807 machine
=ibmrt opsys
=bsd4-2
2810 machine
=ibmrt opsys
=bsd4-3
2813 machine
=ibmrt opsys
=bsd4-3
2816 machine
=ibmrt-aix opsys
=usg5-2-2
2819 ## Integrated Solutions `Optimum V'
2821 machine
=isi-ov opsys
=bsd4-2
2824 machine
=isi-ov opsys
=bsd4-3
2827 ## Intel 386 machines where we do care about the manufacturer
2828 i
[3456]86-intsys-sysv* )
2829 machine
=is386 opsys
=usg5-2-2
2833 i
[3456]86-prime-sysv* )
2834 machine
=i386 opsys
=usg5-3
2837 ## Sequent Symmetry running Dynix
2838 i
[3456]86-sequent-bsd* )
2839 machine
=symmetry opsys
=bsd4-3
2842 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2843 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2844 machine
=sequent-ptx opsys
=ptx4
2845 NON_GNU_CPP
=/lib
/cpp
2848 ## Sequent Symmetry running DYNIX/ptx
2849 ## Use the old cpp rather than the newer ANSI one.
2850 i
[3456]86-sequent-ptx* )
2851 machine
=sequent-ptx opsys
=ptx
2852 NON_GNU_CPP
="/lib/cpp"
2855 ## ncr machine running svr4.3.
2856 i
[3456]86-ncr-sysv4.3
)
2857 machine
=ncr386 opsys
=usg5-4-3
2860 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2861 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2862 i
[3456]86-ncr-sysv* )
2863 machine
=ncr386 opsys
=usg5-4-2
2866 ## Intel Paragon OSF/1
2868 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2873 machine
=i860 opsys
=usg5-4
2874 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2875 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2878 ## Macintosh PowerPC
2879 powerpc
*-*-linux-gnu* )
2880 machine
=macppc opsys
=gnu-linux
2883 ## Masscomp machines
2884 m68
*-masscomp-rtu* )
2885 machine
=masscomp opsys
=rtu
2888 ## Megatest machines
2889 m68
*-megatest-bsd* )
2890 machine
=mega68 opsys
=bsd4-2
2893 ## Workstations sold by MIPS
2894 ## This is not necessarily all workstations using the MIPS processor -
2895 ## Irises are produced by SGI, and DECstations by DEC.
2897 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2898 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2899 ## it gives for choosing between the alternatives seems to be "Use
2900 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2901 ## the BSD world." I'll assume that these are instructions for
2902 ## handling two odd situations, and that every other situation
2903 ## should use mips.h and usg5-2-2, they being listed first.
2906 ## Fall through to the general code at the bottom to decide on the OS.
2908 mips-mips-riscos4
* )
2909 machine
=mips4 opsys
=bsd4-3
2910 NON_GNU_CC
="cc -systype bsd43"
2911 NON_GNU_CPP
="cc -systype bsd43 -E"
2913 mips-mips-riscos5
* )
2914 machine
=mips4 opsys
=riscos5
2915 NON_GNU_CC
="cc -systype bsd43"
2916 NON_GNU_CPP
="cc -systype bsd43 -E"
2919 machine
=mips opsys
=bsd4-3
2922 machine
=mips opsys
=usg5-2-2
2926 m68
*-next-* | m68k-
*-nextstep* )
2927 machine
=m68k opsys
=nextstep
2930 ## The complete machine from National Semiconductor
2932 machine
=ns32000 opsys
=usg5-2
2936 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2937 machine
=tower32 opsys
=usg5-2-2
2939 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2940 machine
=tower32v3 opsys
=usg5-3
2945 machine
=ews4800 opsys
=ux4800
2948 ## Nixdorf Targon 31
2949 m68
*-nixdorf-sysv* )
2950 machine
=targon31 opsys
=usg5-2-2
2955 machine
=nu opsys
=usg5-2
2960 machine
=plexus opsys
=usg5-2
2964 ## I don't really have any idea what sort of processor the Pyramid has,
2965 ## so I'm assuming it is its own architecture.
2966 pyramid-pyramid-bsd
* )
2967 machine
=pyramid opsys
=bsd4-2
2971 ns32k-sequent-bsd4.2
* )
2972 machine
=sequent opsys
=bsd4-2
2974 ns32k-sequent-bsd4.3
* )
2975 machine
=sequent opsys
=bsd4-3
2979 mips-siemens-sysv
* | mips-sni-sysv
*)
2980 machine
=mips-siemens opsys
=usg5-4
2981 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2982 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2985 ## Silicon Graphics machines
2986 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2988 machine
=irist opsys
=iris3-5
2990 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2991 machine
=irist opsys
=iris3-6
2995 machine
=iris4d opsys
=irix3-3
2998 machine
=iris4d opsys
=irix4-0
3001 machine
=iris4d opsys
=irix6-5
3002 # Without defining _LANGUAGE_C, things get masked out in the headers
3003 # so that, for instance, grepping for `free' in stdlib.h fails and
3004 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
3005 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
3006 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
3009 machine
=iris4d opsys
=irix6-0
3010 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
3011 # but presumably it does no harm.
3012 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
3013 # -32 probably isn't necessary in later v.6s -- anyone know which?
3014 NON_GCC_TEST_OPTIONS
=-32
3016 mips-sgi-irix5.
[01]* )
3017 machine
=iris4d opsys
=irix5-0
3019 mips-sgi-irix5
* | mips-sgi-irix
* )
3020 machine
=iris4d opsys
=irix5-2
3025 machine
=news opsys
=bsd4-2
3028 machine
=news opsys
=bsd4-3
3030 m68
*-sony-newsos3* | m68
*-sony-news3*)
3031 machine
=news opsys
=bsd4-3
3033 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
3034 machine
=news-risc opsys
=bsd4-3
3036 mips-sony-newsos6
* )
3037 machine
=news-r6 opsys
=newsos6
3040 machine
=news-risc opsys
=newsos5
3045 machine
=stride opsys
=usg5-2
3049 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
3050 machine
=sparc opsys
=gnu-linux
3053 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
3054 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
3055 | rs6000-
*-solaris2*)
3056 case "${canonical}" in
3057 m68
*-sunos1* ) machine
=sun1
;;
3058 m68
*-sunos2* ) machine
=sun2
;;
3059 m68
* ) machine
=sun3
;;
3060 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
3061 i
[3456]86-*-* ) machine
=intel386
;;
3062 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
3063 powerpcle
* ) machine
=powerpcle
;;
3064 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
3065 sparc
* ) machine
=sparc
;;
3068 case "${canonical}" in
3069 ## The Sun386 didn't get past 4.0.
3070 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
3071 *-sunos4.0
* ) opsys
=sunos4-0
;;
3072 *-sunos4.1.
[3-9]*noshare
)
3073 ## This name is sunos413 instead of sunos4-1-3
3074 ## to avoid a file name conflict on MSDOS.
3076 NON_GNU_CPP
=/usr
/lib
/cpp
3077 NON_GCC_TEST_OPTIONS
=-Bstatic
3078 GCC_TEST_OPTIONS
=-static
3080 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
3082 NON_GNU_CPP
=/usr
/lib
/cpp
3084 *-sunos4* |
*-sunos )
3086 NON_GCC_TEST_OPTIONS
=-Bstatic
3087 GCC_TEST_OPTIONS
=-static
3089 *-sunos5.3
* |
*-solaris2.3
* )
3091 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3093 *-sunos5.4
* |
*-solaris2.4
* )
3095 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3098 *-sunos5.5
* |
*-solaris2.5
* )
3100 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3103 *-sunos5.6
* |
*-solaris2.6
* )
3105 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3108 *-sunos5* |
*-solaris* )
3110 emacs_check_sunpro_c
=yes
3111 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3115 ## Watch out for a compiler that we know will not work.
3116 case "${canonical}" in
3117 *-solaris* |
*-sunos5* )
3118 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
3119 ## /usr/ucb/cc doesn't work;
3120 ## we should find some other compiler that does work.
3128 machine
=sparc opsys
=nextstep
3132 m68
*-tadpole-sysv* )
3133 machine
=tad68k opsys
=usg5-3
3137 tahoe-tahoe-bsd4.2
* )
3138 machine
=tahoe opsys
=bsd4-2
3140 tahoe-tahoe-bsd4.3
* )
3141 machine
=tahoe opsys
=bsd4-3
3144 ## Tandem Integrity S2
3146 machine
=tandem-s2 opsys
=usg5-3
3150 m88k-tektronix-sysv3
* )
3151 machine
=tekxd88 opsys
=usg5-3
3154 ## Tektronix 16000 box (6130?)
3155 ns16k-tektronix-bsd
* )
3156 machine
=ns16000 opsys
=bsd4-2
3159 ## src/m/tek4300.h hints that this is a m68k machine.
3160 m68
*-tektronix-bsd* )
3161 machine
=tek4300 opsys
=bsd4-3
3165 ## We seem to have lost the machine-description file titan.h!
3167 machine
=titan opsys
=usg5-3
3170 ## Ustation E30 (SS5E)
3171 m68
*-unisys-uniplus* )
3172 machine
=ustation opsystem
=unipl5-2
3178 case "${canonical}" in
3179 *-bsd4.1
* ) opsys
=bsd4-1
;;
3180 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
3181 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
3182 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
3183 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
3184 *-vms* ) opsys
=vms
;;
3190 ns16k-whitechapel-
* )
3192 ## We don't know what sort of OS runs on these; we'll let the
3193 ## operating system guessing code below try.
3198 machine
=wicat opsys
=usg5-2
3203 machine
=ia64 opsys
=gnu-linux
3206 ## Intel 386 machines where we don't care about the manufacturer
3209 case "${canonical}" in
3210 *-cygwin ) opsys
=cygwin
;;
3211 *-darwin* ) opsys
=darwin
3212 CPP
="${CC-cc} -E -no-cpp-precomp"
3214 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
3215 *-isc2.2
* ) opsys
=isc2-2
;;
3216 *-isc4.0
* ) opsys
=isc4-0
;;
3217 *-isc4.
* ) opsys
=isc4-1
3218 GCC_TEST_OPTIONS
=-posix
3219 NON_GCC_TEST_OPTIONS
=-Xp
3221 *-isc* ) opsys
=isc3-0
;;
3222 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
3223 *-esix* ) opsys
=esix
;;
3224 *-xenix* ) opsys
=xenix
;;
3225 *-linux-gnu* ) opsys
=gnu-linux
;;
3226 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
3227 *-sco3.2v5
* ) opsys
=sco5
3228 NON_GNU_CPP
=/lib
/cpp
3229 # Prevent -belf from being passed to $CPP.
3230 # /lib/cpp does not accept it.
3231 OVERRIDE_CPPFLAGS
=" "
3233 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3234 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3235 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3236 *-386bsd* ) opsys
=386bsd
;;
3237 *-nextstep* ) opsys
=nextstep
;;
3238 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3242 ## m68k Linux-based GNU system
3244 machine
=m68k opsys
=gnu-linux
3247 ## Mips Linux-based GNU system
3248 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
3249 machine
=mips opsys
=gnu-linux
3253 sparc-fujitsu-sysv4
* )
3254 machine
=sparc opsys
=uxpds
3255 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3260 f301-fujitsu-uxpv4.1
)
3261 machine
=f301 opsys
=uxpv
3264 ## AMD x86-64 Linux-based GNU system
3265 x86_64-
*-linux-gnu* )
3266 machine
=amdx86-64 opsys
=gnu-linux
3269 ## Tensilica Xtensa Linux-based GNU system
3270 xtensa-
*-linux-gnu* )
3271 machine
=xtensa opsys
=gnu-linux
3279 ### If the code above didn't choose an operating system, just choose
3280 ### an operating system based on the configuration name. You really
3281 ### only want to use this when you have no idea what the right
3282 ### operating system is; if you know what operating systems a machine
3283 ### runs, it's cleaner to make it explicit in the case statement
3285 if test x
"${opsys}" = x
; then
3286 case "${canonical}" in
3287 *-gnu* ) opsys
=gnu
;;
3288 *-bsd4.
[01] ) opsys
=bsd4-1
;;
3289 *-bsd4.2
) opsys
=bsd4-2
;;
3290 *-bsd4.3
) opsys
=bsd4-3
;;
3291 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
3292 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
3293 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
3294 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
3295 *-sysv4.2uw
* ) opsys
=unixware
;;
3296 *-sysv5uw* ) opsys
=unixware
;;
3297 *-sysv5OpenUNIX* ) opsys
=unixware
;;
3298 *-sysv4.1
* |
*-sysvr4.1
* )
3299 NON_GNU_CPP
=/usr
/lib
/cpp
3301 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
3302 if [ x
$NON_GNU_CPP = x
]; then
3303 if [ -f /usr
/ccs
/lib
/cpp
]; then
3304 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3306 NON_GNU_CPP
=/lib
/cpp
3310 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
3319 if test $unported = yes; then
3320 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3321 Check \`etc/MACHINES' for recognized configuration names." >&5
3322 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3323 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3324 { (exit 1); exit 1; }; }
3327 machfile
="m/${machine}.h"
3328 opsysfile
="s/${opsys}.h"
3331 #### Choose a compiler.
3332 test -n "$CC" && cc_specified
=yes
3334 # Save the value of CFLAGS that the user specified.
3335 SPECIFIED_CFLAGS
="$CFLAGS"
3338 "yes" ) CC
="gcc" GCC
=yes ;;
3339 "no" ) : ${CC=cc} ;;
3343 ac_cpp
='$CPP $CPPFLAGS'
3344 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3345 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3346 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3347 if test -n "$ac_tool_prefix"; then
3348 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3349 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3350 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3352 if test "${ac_cv_prog_CC+set}" = set; then
3353 echo $ECHO_N "(cached) $ECHO_C" >&6
3355 if test -n "$CC"; then
3356 ac_cv_prog_CC
="$CC" # Let the user override the test.
3358 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3362 test -z "$as_dir" && as_dir
=.
3363 for ac_exec_ext
in '' $ac_executable_extensions; do
3364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3365 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3376 if test -n "$CC"; then
3377 { echo "$as_me:$LINENO: result: $CC" >&5
3378 echo "${ECHO_T}$CC" >&6; }
3380 { echo "$as_me:$LINENO: result: no" >&5
3381 echo "${ECHO_T}no" >&6; }
3386 if test -z "$ac_cv_prog_CC"; then
3388 # Extract the first word of "gcc", so it can be a program name with args.
3389 set dummy gcc
; ac_word
=$2
3390 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3392 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3393 echo $ECHO_N "(cached) $ECHO_C" >&6
3395 if test -n "$ac_ct_CC"; then
3396 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3398 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3402 test -z "$as_dir" && as_dir
=.
3403 for ac_exec_ext
in '' $ac_executable_extensions; do
3404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3405 ac_cv_prog_ac_ct_CC
="gcc"
3406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3415 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3416 if test -n "$ac_ct_CC"; then
3417 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3418 echo "${ECHO_T}$ac_ct_CC" >&6; }
3420 { echo "$as_me:$LINENO: result: no" >&5
3421 echo "${ECHO_T}no" >&6; }
3424 if test "x$ac_ct_CC" = x
; then
3427 case $cross_compiling:$ac_tool_warned in
3429 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3430 whose name does not start with the host triplet. If you think this
3431 configuration is useful to you, please write to autoconf@gnu.org." >&5
3432 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3433 whose name does not start with the host triplet. If you think this
3434 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3435 ac_tool_warned
=yes ;;
3443 if test -z "$CC"; then
3444 if test -n "$ac_tool_prefix"; then
3445 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3446 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3447 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3449 if test "${ac_cv_prog_CC+set}" = set; then
3450 echo $ECHO_N "(cached) $ECHO_C" >&6
3452 if test -n "$CC"; then
3453 ac_cv_prog_CC
="$CC" # Let the user override the test.
3455 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3459 test -z "$as_dir" && as_dir
=.
3460 for ac_exec_ext
in '' $ac_executable_extensions; do
3461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3462 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3473 if test -n "$CC"; then
3474 { echo "$as_me:$LINENO: result: $CC" >&5
3475 echo "${ECHO_T}$CC" >&6; }
3477 { echo "$as_me:$LINENO: result: no" >&5
3478 echo "${ECHO_T}no" >&6; }
3484 if test -z "$CC"; then
3485 # Extract the first word of "cc", so it can be a program name with args.
3486 set dummy cc
; ac_word
=$2
3487 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3489 if test "${ac_cv_prog_CC+set}" = set; then
3490 echo $ECHO_N "(cached) $ECHO_C" >&6
3492 if test -n "$CC"; then
3493 ac_cv_prog_CC
="$CC" # Let the user override the test.
3496 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3500 test -z "$as_dir" && as_dir
=.
3501 for ac_exec_ext
in '' $ac_executable_extensions; do
3502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3503 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3504 ac_prog_rejected
=yes
3508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3515 if test $ac_prog_rejected = yes; then
3516 # We found a bogon in the path, so make sure we never use it.
3517 set dummy
$ac_cv_prog_CC
3519 if test $# != 0; then
3520 # We chose a different compiler from the bogus one.
3521 # However, it has the same basename, so the bogon will be chosen
3522 # first if we set CC to just the basename; use the full file name.
3524 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3530 if test -n "$CC"; then
3531 { echo "$as_me:$LINENO: result: $CC" >&5
3532 echo "${ECHO_T}$CC" >&6; }
3534 { echo "$as_me:$LINENO: result: no" >&5
3535 echo "${ECHO_T}no" >&6; }
3540 if test -z "$CC"; then
3541 if test -n "$ac_tool_prefix"; then
3542 for ac_prog
in cl.exe
3544 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3545 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3546 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3548 if test "${ac_cv_prog_CC+set}" = set; then
3549 echo $ECHO_N "(cached) $ECHO_C" >&6
3551 if test -n "$CC"; then
3552 ac_cv_prog_CC
="$CC" # Let the user override the test.
3554 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3558 test -z "$as_dir" && as_dir
=.
3559 for ac_exec_ext
in '' $ac_executable_extensions; do
3560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3561 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3572 if test -n "$CC"; then
3573 { echo "$as_me:$LINENO: result: $CC" >&5
3574 echo "${ECHO_T}$CC" >&6; }
3576 { echo "$as_me:$LINENO: result: no" >&5
3577 echo "${ECHO_T}no" >&6; }
3581 test -n "$CC" && break
3584 if test -z "$CC"; then
3586 for ac_prog
in cl.exe
3588 # Extract the first word of "$ac_prog", so it can be a program name with args.
3589 set dummy
$ac_prog; ac_word
=$2
3590 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3592 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3593 echo $ECHO_N "(cached) $ECHO_C" >&6
3595 if test -n "$ac_ct_CC"; then
3596 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3598 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3602 test -z "$as_dir" && as_dir
=.
3603 for ac_exec_ext
in '' $ac_executable_extensions; do
3604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3605 ac_cv_prog_ac_ct_CC
="$ac_prog"
3606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3615 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3616 if test -n "$ac_ct_CC"; then
3617 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3618 echo "${ECHO_T}$ac_ct_CC" >&6; }
3620 { echo "$as_me:$LINENO: result: no" >&5
3621 echo "${ECHO_T}no" >&6; }
3625 test -n "$ac_ct_CC" && break
3628 if test "x$ac_ct_CC" = x
; then
3631 case $cross_compiling:$ac_tool_warned in
3633 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3634 whose name does not start with the host triplet. If you think this
3635 configuration is useful to you, please write to autoconf@gnu.org." >&5
3636 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3637 whose name does not start with the host triplet. If you think this
3638 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3639 ac_tool_warned
=yes ;;
3648 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3649 See \`config.log' for more details." >&5
3650 echo "$as_me: error: no acceptable C compiler found in \$PATH
3651 See \`config.log' for more details." >&2;}
3652 { (exit 1); exit 1; }; }
3654 # Provide some information about the compiler.
3655 echo "$as_me:$LINENO: checking for C compiler version" >&5
3656 ac_compiler
=`set X $ac_compile; echo $2`
3657 { (ac_try
="$ac_compiler --version >&5"
3659 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3660 *) ac_try_echo=$ac_try;;
3662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3663 (eval "$ac_compiler --version >&5") 2>&5
3665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666 (exit $ac_status); }
3667 { (ac_try="$ac_compiler -v >&5"
3669 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3670 *) ac_try_echo
=$ac_try;;
3672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3673 (eval "$ac_compiler -v >&5") 2>&5
3675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676 (exit $ac_status); }
3677 { (ac_try
="$ac_compiler -V >&5"
3679 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3680 *) ac_try_echo=$ac_try;;
3682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3683 (eval "$ac_compiler -V >&5") 2>&5
3685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3686 (exit $ac_status); }
3688 cat >conftest.$ac_ext <<_ACEOF
3691 cat confdefs.h >>conftest.$ac_ext
3692 cat >>conftest.$ac_ext <<_ACEOF
3693 /* end confdefs.h. */
3703 ac_clean_files_save=$ac_clean_files
3704 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3705 # Try to create an executable without -o first, disregard a.out.
3706 # It will help us diagnose broken compilers, and finding out an intuition
3708 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3709 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3710 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3712 # List of possible output files, starting from the most likely.
3713 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
3714 # only as a last resort. b.out is created by i960 compilers.
3715 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
3717 # The IRIX 6 linker writes into existing files which may not be
3718 # executable, retaining their permissions. Remove them first so a
3719 # subsequent execution test works.
3721 for ac_file in $ac_files
3724 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3725 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3730 if { (ac_try="$ac_link_default"
3732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3733 *) ac_try_echo=$ac_try;;
3735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3736 (eval "$ac_link_default") 2>&5
3738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739 (exit $ac_status); }; then
3740 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3741 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3742 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3743 # so that the user can short-circuit this test for compilers unknown to
3745 for ac_file
in $ac_files ''
3747 test -f "$ac_file" ||
continue
3749 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
3752 # We found the default executable, but exeext='' is most
3756 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3758 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3760 # We set ac_cv_exeext here because the later test for it is not
3761 # safe: cross compilers may not add the suffix if given an `-o'
3762 # argument, so we may need to know it at that point already.
3763 # Even if this section looks crufty: it has the advantage of
3770 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3776 { echo "$as_me:$LINENO: result: $ac_file" >&5
3777 echo "${ECHO_T}$ac_file" >&6; }
3778 if test -z "$ac_file"; then
3779 echo "$as_me: failed program was:" >&5
3780 sed 's/^/| /' conftest.
$ac_ext >&5
3782 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3783 See \`config.log' for more details." >&5
3784 echo "$as_me: error: C compiler cannot create executables
3785 See \`config.log' for more details." >&2;}
3786 { (exit 77); exit 77; }; }
3789 ac_exeext
=$ac_cv_exeext
3791 # Check that the compiler produces executables we can run. If not, either
3792 # the compiler is broken, or we cross compile.
3793 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3794 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3795 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3796 # If not cross compiling, check that we can run a simple program.
3797 if test "$cross_compiling" != yes; then
3798 if { ac_try
='./$ac_file'
3799 { (case "(($ac_try" in
3800 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3801 *) ac_try_echo=$ac_try;;
3803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3804 (eval "$ac_try") 2>&5
3806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807 (exit $ac_status); }; }; then
3810 if test "$cross_compiling" = maybe; then
3813 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3814 If you meant to cross compile, use \`--host'.
3815 See \`config.log' for more details.
" >&5
3816 echo "$as_me: error
: cannot run C compiled programs.
3817 If you meant to cross compile
, use \
`--host'.
3818 See \`config.log
' for more details." >&2;}
3819 { (exit 1); exit 1; }; }
3823 { echo "$as_me:$LINENO: result: yes" >&5
3824 echo "${ECHO_T}yes" >&6; }
3826 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3827 ac_clean_files=$ac_clean_files_save
3828 # Check that the compiler produces executables we can run. If not, either
3829 # the compiler is broken, or we cross compile.
3830 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3831 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3832 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3833 echo "${ECHO_T}$cross_compiling" >&6; }
3835 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3836 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3837 if { (ac_try="$ac_link"
3839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3840 *) ac_try_echo=$ac_try;;
3842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3843 (eval "$ac_link") 2>&5
3845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846 (exit $ac_status); }; then
3847 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3848 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3849 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3851 for ac_file
in conftest.exe conftest conftest.
*; do
3852 test -f "$ac_file" ||
continue
3854 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
3855 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3861 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3862 See \`config.log' for more details." >&5
3863 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3864 See \`config.log' for more details." >&2;}
3865 { (exit 1); exit 1; }; }
3868 rm -f conftest
$ac_cv_exeext
3869 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3870 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3872 rm -f conftest.
$ac_ext
3873 EXEEXT
=$ac_cv_exeext
3875 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3876 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3877 if test "${ac_cv_objext+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. */
3895 rm -f conftest.o conftest.obj
3896 if { (ac_try
="$ac_compile"
3898 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3899 *) ac_try_echo=$ac_try;;
3901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3902 (eval "$ac_compile") 2>&5
3904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3905 (exit $ac_status); }; then
3906 for ac_file in conftest.o conftest.obj conftest.*; do
3907 test -f "$ac_file" || continue;
3909 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3910 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3915 echo "$as_me: failed program was:" >&5
3916 sed 's/^/| /' conftest.$ac_ext >&5
3918 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3919 See \`config.log
' for more details." >&5
3920 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3921 See \`config.log' for more details.
" >&2;}
3922 { (exit 1); exit 1; }; }
3925 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3927 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3928 echo "${ECHO_T}$ac_cv_objext" >&6; }
3929 OBJEXT=$ac_cv_objext
3931 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3932 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3933 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3934 echo $ECHO_N "(cached
) $ECHO_C" >&6
3936 cat >conftest.$ac_ext <<_ACEOF
3939 cat confdefs.h >>conftest.$ac_ext
3940 cat >>conftest.$ac_ext <<_ACEOF
3941 /* end confdefs.h. */
3954 rm -f conftest.$ac_objext
3955 if { (ac_try="$ac_compile"
3957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3958 *) ac_try_echo=$ac_try;;
3960 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3961 (eval "$ac_compile") 2>conftest.er1
3963 grep -v '^ *+' conftest.er1 >conftest.err
3965 cat conftest.err >&5
3966 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3967 (exit $ac_status); } && {
3968 test -z "$ac_c_werror_flag" ||
3969 test ! -s conftest.err
3970 } && test -s conftest.$ac_objext; then
3973 echo "$as_me: failed program was
:" >&5
3974 sed 's/^/| /' conftest.$ac_ext >&5
3979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3980 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3983 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3984 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3985 GCC=`test $ac_compiler_gnu = yes && echo yes`
3986 ac_test_CFLAGS=${CFLAGS+set}
3987 ac_save_CFLAGS=$CFLAGS
3988 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3989 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3990 if test "${ac_cv_prog_cc_g+set}" = set; then
3991 echo $ECHO_N "(cached
) $ECHO_C" >&6
3993 ac_save_c_werror_flag=$ac_c_werror_flag
3994 ac_c_werror_flag=yes
3997 cat >conftest.$ac_ext <<_ACEOF
4000 cat confdefs.h >>conftest.$ac_ext
4001 cat >>conftest.$ac_ext <<_ACEOF
4002 /* end confdefs.h. */
4012 rm -f conftest.$ac_objext
4013 if { (ac_try="$ac_compile"
4015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4016 *) ac_try_echo=$ac_try;;
4018 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4019 (eval "$ac_compile") 2>conftest.er1
4021 grep -v '^ *+' conftest.er1 >conftest.err
4023 cat conftest.err >&5
4024 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4025 (exit $ac_status); } && {
4026 test -z "$ac_c_werror_flag" ||
4027 test ! -s conftest.err
4028 } && test -s conftest.$ac_objext; then
4031 echo "$as_me: failed program was
:" >&5
4032 sed 's/^/| /' conftest.$ac_ext >&5
4035 cat >conftest.$ac_ext <<_ACEOF
4038 cat confdefs.h >>conftest.$ac_ext
4039 cat >>conftest.$ac_ext <<_ACEOF
4040 /* end confdefs.h. */
4050 rm -f conftest.$ac_objext
4051 if { (ac_try="$ac_compile"
4053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4054 *) ac_try_echo=$ac_try;;
4056 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4057 (eval "$ac_compile") 2>conftest.er1
4059 grep -v '^ *+' conftest.er1 >conftest.err
4061 cat conftest.err >&5
4062 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4063 (exit $ac_status); } && {
4064 test -z "$ac_c_werror_flag" ||
4065 test ! -s conftest.err
4066 } && test -s conftest.$ac_objext; then
4069 echo "$as_me: failed program was
:" >&5
4070 sed 's/^/| /' conftest.$ac_ext >&5
4072 ac_c_werror_flag=$ac_save_c_werror_flag
4074 cat >conftest.$ac_ext <<_ACEOF
4077 cat confdefs.h >>conftest.$ac_ext
4078 cat >>conftest.$ac_ext <<_ACEOF
4079 /* end confdefs.h. */
4089 rm -f conftest.$ac_objext
4090 if { (ac_try="$ac_compile"
4092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4093 *) ac_try_echo=$ac_try;;
4095 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4096 (eval "$ac_compile") 2>conftest.er1
4098 grep -v '^ *+' conftest.er1 >conftest.err
4100 cat conftest.err >&5
4101 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4102 (exit $ac_status); } && {
4103 test -z "$ac_c_werror_flag" ||
4104 test ! -s conftest.err
4105 } && test -s conftest.$ac_objext; then
4108 echo "$as_me: failed program was
:" >&5
4109 sed 's/^/| /' conftest.$ac_ext >&5
4114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4121 ac_c_werror_flag=$ac_save_c_werror_flag
4123 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
4124 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4125 if test "$ac_test_CFLAGS" = set; then
4126 CFLAGS=$ac_save_CFLAGS
4127 elif test $ac_cv_prog_cc_g = yes; then
4128 if test "$GCC" = yes; then
4134 if test "$GCC" = yes; then
4140 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
4141 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
4142 if test "${ac_cv_prog_cc_c89+set}" = set; then
4143 echo $ECHO_N "(cached
) $ECHO_C" >&6
4145 ac_cv_prog_cc_c89=no
4147 cat >conftest.$ac_ext <<_ACEOF
4150 cat confdefs.h >>conftest.$ac_ext
4151 cat >>conftest.$ac_ext <<_ACEOF
4152 /* end confdefs.h. */
4155 #include <sys/types.h>
4156 #include <sys/stat.h>
4157 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4158 struct buf { int x; };
4159 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4160 static char *e (p, i)
4166 static char *f (char * (*g) (char **, int), char **p, ...)
4171 s = g (p, va_arg (v,int));
4176 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4177 function prototypes and stuff, but not '\xHH' hex character constants.
4178 These don't provoke an error unfortunately, instead are silently treated
4179 as 'x'. The following induces an error, until -std is added to get
4180 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4181 array size at least. It's necessary to write '\x00'==0 to get something
4182 that's true only with -std. */
4183 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4185 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4186 inside strings and character constants. */
4188 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4190 int test (int i, double x);
4191 struct s1 {int (*f) (int a);};
4192 struct s2 {int (*f) (double a);};
4193 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4199 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4204 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4205 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4207 CC="$ac_save_CC $ac_arg"
4208 rm -f conftest.$ac_objext
4209 if { (ac_try="$ac_compile"
4211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4212 *) ac_try_echo=$ac_try;;
4214 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4215 (eval "$ac_compile") 2>conftest.er1
4217 grep -v '^ *+' conftest.er1 >conftest.err
4219 cat conftest.err >&5
4220 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4221 (exit $ac_status); } && {
4222 test -z "$ac_c_werror_flag" ||
4223 test ! -s conftest.err
4224 } && test -s conftest.$ac_objext; then
4225 ac_cv_prog_cc_c89=$ac_arg
4227 echo "$as_me: failed program was
:" >&5
4228 sed 's/^/| /' conftest.$ac_ext >&5
4233 rm -f core conftest.err conftest.$ac_objext
4234 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
4236 rm -f conftest.$ac_ext
4241 case "x
$ac_cv_prog_cc_c89" in
4243 { echo "$as_me:$LINENO: result
: none needed
" >&5
4244 echo "${ECHO_T}none needed
" >&6; } ;;
4246 { echo "$as_me:$LINENO: result
: unsupported
" >&5
4247 echo "${ECHO_T}unsupported
" >&6; } ;;
4249 CC="$CC $ac_cv_prog_cc_c89"
4250 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
4251 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4256 ac_cpp='$CPP $CPPFLAGS'
4257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4262 # On Suns, sometimes $CPP names a directory.
4263 if test -n "$CPP" && test -d "$CPP"; then
4267 ## If not using gcc, and on Solaris, and no CPP specified, see if
4268 ## using a Sun compiler, which needs -Xs to prevent whitespace.
4269 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
4270 test x"$CPP" = x; then
4271 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler
" >&5
4272 echo $ECHO_N "checking whether we are using a Sun C compiler...
$ECHO_C" >&6; }
4274 if test "${emacs_cv_sunpro_c+set}" = set; then
4275 echo $ECHO_N "(cached
) $ECHO_C" >&6
4277 cat >conftest.$ac_ext <<_ACEOF
4280 cat confdefs.h >>conftest.$ac_ext
4281 cat >>conftest.$ac_ext <<_ACEOF
4282 /* end confdefs.h. */
4295 rm -f conftest.$ac_objext conftest$ac_exeext
4296 if { (ac_try="$ac_link"
4298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4299 *) ac_try_echo=$ac_try;;
4301 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4302 (eval "$ac_link") 2>conftest.er1
4304 grep -v '^ *+' conftest.er1 >conftest.err
4306 cat conftest.err >&5
4307 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4308 (exit $ac_status); } && {
4309 test -z "$ac_c_werror_flag" ||
4310 test ! -s conftest.err
4311 } && test -s conftest$ac_exeext &&
4312 $as_test_x conftest$ac_exeext; then
4313 emacs_cv_sunpro_c=yes
4315 echo "$as_me: failed program was
:" >&5
4316 sed 's/^/| /' conftest.$ac_ext >&5
4318 emacs_cv_sunpro_c=no
4321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4322 conftest$ac_exeext conftest.$ac_ext
4325 { echo "$as_me:$LINENO: result
: $emacs_cv_sunpro_c" >&5
4326 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
4328 if test x"$emacs_cv_sunpro_c" = xyes; then
4329 NON_GNU_CPP="$CC -E -Xs"
4333 #### Some systems specify a CPP to use unless we are using GCC.
4334 #### Now that we know whether we are using GCC, we can decide whether
4335 #### to use that one.
4336 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
4341 #### Some systems specify a CC to use unless we are using GCC.
4342 #### Now that we know whether we are using GCC, we can decide whether
4343 #### to use that one.
4344 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
4345 test x$cc_specified != xyes
4350 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
4352 CC="$CC $GCC_TEST_OPTIONS"
4355 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
4357 CC="$CC $NON_GCC_TEST_OPTIONS"
4361 ac_cpp='$CPP $CPPFLAGS'
4362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4365 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
4366 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
4367 # On Suns, sometimes $CPP names a directory.
4368 if test -n "$CPP" && test -d "$CPP"; then
4371 if test -z "$CPP"; then
4372 if test "${ac_cv_prog_CPP+set}" = set; then
4373 echo $ECHO_N "(cached
) $ECHO_C" >&6
4375 # Double quotes because CPP needs to be expanded
4376 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
4379 for ac_c_preproc_warn_flag in '' yes
4381 # Use a header file that comes with gcc, so configuring glibc
4382 # with a fresh cross-compiler works.
4383 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4384 # <limits.h> exists even on freestanding compilers.
4385 # On the NeXT, cc -E runs the code through the compiler's parser,
4386 # not just through cpp. "Syntax error
" is here to catch this case.
4387 cat >conftest.$ac_ext <<_ACEOF
4390 cat confdefs.h >>conftest.$ac_ext
4391 cat >>conftest.$ac_ext <<_ACEOF
4392 /* end confdefs.h. */
4394 # include <limits.h>
4396 # include <assert.h>
4400 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4403 *) ac_try_echo=$ac_try;;
4405 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4406 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4408 grep -v '^ *+' conftest.er1 >conftest.err
4410 cat conftest.err >&5
4411 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4412 (exit $ac_status); } >/dev/null && {
4413 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4414 test ! -s conftest.err
4418 echo "$as_me: failed program was
:" >&5
4419 sed 's/^/| /' conftest.$ac_ext >&5
4421 # Broken: fails on valid input.
4425 rm -f conftest.err conftest.$ac_ext
4427 # OK, works on sane cases. Now check whether nonexistent headers
4428 # can be detected and how.
4429 cat >conftest.$ac_ext <<_ACEOF
4432 cat confdefs.h >>conftest.$ac_ext
4433 cat >>conftest.$ac_ext <<_ACEOF
4434 /* end confdefs.h. */
4435 #include <ac_nonexistent.h>
4437 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4440 *) ac_try_echo=$ac_try;;
4442 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4443 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4445 grep -v '^ *+' conftest.er1 >conftest.err
4447 cat conftest.err >&5
4448 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4449 (exit $ac_status); } >/dev/null && {
4450 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4451 test ! -s conftest.err
4453 # Broken: success on invalid input.
4456 echo "$as_me: failed program was
:" >&5
4457 sed 's/^/| /' conftest.$ac_ext >&5
4459 # Passes both tests.
4464 rm -f conftest.err conftest.$ac_ext
4467 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4468 rm -f conftest.err conftest.$ac_ext
4469 if $ac_preproc_ok; then
4481 { echo "$as_me:$LINENO: result
: $CPP" >&5
4482 echo "${ECHO_T}$CPP" >&6; }
4484 for ac_c_preproc_warn_flag in '' yes
4486 # Use a header file that comes with gcc, so configuring glibc
4487 # with a fresh cross-compiler works.
4488 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4489 # <limits.h> exists even on freestanding compilers.
4490 # On the NeXT, cc -E runs the code through the compiler's parser,
4491 # not just through cpp. "Syntax error
" is here to catch this case.
4492 cat >conftest.$ac_ext <<_ACEOF
4495 cat confdefs.h >>conftest.$ac_ext
4496 cat >>conftest.$ac_ext <<_ACEOF
4497 /* end confdefs.h. */
4499 # include <limits.h>
4501 # include <assert.h>
4505 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4508 *) ac_try_echo=$ac_try;;
4510 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4511 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4513 grep -v '^ *+' conftest.er1 >conftest.err
4515 cat conftest.err >&5
4516 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4517 (exit $ac_status); } >/dev/null && {
4518 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4519 test ! -s conftest.err
4523 echo "$as_me: failed program was
:" >&5
4524 sed 's/^/| /' conftest.$ac_ext >&5
4526 # Broken: fails on valid input.
4530 rm -f conftest.err conftest.$ac_ext
4532 # OK, works on sane cases. Now check whether nonexistent headers
4533 # can be detected and how.
4534 cat >conftest.$ac_ext <<_ACEOF
4537 cat confdefs.h >>conftest.$ac_ext
4538 cat >>conftest.$ac_ext <<_ACEOF
4539 /* end confdefs.h. */
4540 #include <ac_nonexistent.h>
4542 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4545 *) ac_try_echo=$ac_try;;
4547 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4548 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4550 grep -v '^ *+' conftest.er1 >conftest.err
4552 cat conftest.err >&5
4553 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4554 (exit $ac_status); } >/dev/null && {
4555 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4556 test ! -s conftest.err
4558 # Broken: success on invalid input.
4561 echo "$as_me: failed program was
:" >&5
4562 sed 's/^/| /' conftest.$ac_ext >&5
4564 # Passes both tests.
4569 rm -f conftest.err conftest.$ac_ext
4572 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4573 rm -f conftest.err conftest.$ac_ext
4574 if $ac_preproc_ok; then
4577 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4578 See \
`config.log' for more details." >&5
4579 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4580 See \`config.log
' for more details." >&2;}
4581 { (exit 1); exit 1; }; }
4585 ac_cpp='$CPP $CPPFLAGS'
4586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4587 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4591 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4592 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4593 if test "${ac_cv_path_GREP+set}" = set; then
4594 echo $ECHO_N "(cached) $ECHO_C" >&6
4596 # Extract the first word of "grep ggrep" to use in msg output
4597 if test -z "$GREP"; then
4598 set dummy grep ggrep; ac_prog_name=$2
4599 if test "${ac_cv_path_GREP+set}" = set; then
4600 echo $ECHO_N "(cached) $ECHO_C" >&6
4602 ac_path_GREP_found=false
4603 # Loop through the user's path and
test for each of PROGNAME-LIST
4604 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4605 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4608 test -z "$as_dir" && as_dir
=.
4609 for ac_prog
in grep ggrep
; do
4610 for ac_exec_ext
in '' $ac_executable_extensions; do
4611 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4612 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4613 # Check for GNU ac_path_GREP and select it if it is found.
4614 # Check for GNU $ac_path_GREP
4615 case `"$ac_path_GREP" --version 2>&1` in
4617 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4620 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4623 cat "conftest.in" "conftest.in" >"conftest.tmp"
4624 mv "conftest.tmp" "conftest.in"
4625 cp "conftest.in" "conftest.nl"
4626 echo 'GREP' >> "conftest.nl"
4627 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4628 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4629 ac_count
=`expr $ac_count + 1`
4630 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4631 # Best one so far, save it but keep looking for a better one
4632 ac_cv_path_GREP
="$ac_path_GREP"
4633 ac_path_GREP_max
=$ac_count
4635 # 10*(2^10) chars as input seems more than enough
4636 test $ac_count -gt 10 && break
4638 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4642 $ac_path_GREP_found && break 3
4652 GREP
="$ac_cv_path_GREP"
4653 if test -z "$GREP"; then
4654 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4655 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4656 { (exit 1); exit 1; }; }
4660 ac_cv_path_GREP
=$GREP
4665 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4666 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4667 GREP
="$ac_cv_path_GREP"
4670 { echo "$as_me:$LINENO: checking for egrep" >&5
4671 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4672 if test "${ac_cv_path_EGREP+set}" = set; then
4673 echo $ECHO_N "(cached) $ECHO_C" >&6
4675 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4676 then ac_cv_path_EGREP
="$GREP -E"
4678 # Extract the first word of "egrep" to use in msg output
4679 if test -z "$EGREP"; then
4680 set dummy
egrep; ac_prog_name
=$2
4681 if test "${ac_cv_path_EGREP+set}" = set; then
4682 echo $ECHO_N "(cached) $ECHO_C" >&6
4684 ac_path_EGREP_found
=false
4685 # Loop through the user's path and test for each of PROGNAME-LIST
4686 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4687 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4690 test -z "$as_dir" && as_dir
=.
4691 for ac_prog
in egrep; do
4692 for ac_exec_ext
in '' $ac_executable_extensions; do
4693 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4694 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4695 # Check for GNU ac_path_EGREP and select it if it is found.
4696 # Check for GNU $ac_path_EGREP
4697 case `"$ac_path_EGREP" --version 2>&1` in
4699 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4702 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4705 cat "conftest.in" "conftest.in" >"conftest.tmp"
4706 mv "conftest.tmp" "conftest.in"
4707 cp "conftest.in" "conftest.nl"
4708 echo 'EGREP' >> "conftest.nl"
4709 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4710 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4711 ac_count
=`expr $ac_count + 1`
4712 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4713 # Best one so far, save it but keep looking for a better one
4714 ac_cv_path_EGREP
="$ac_path_EGREP"
4715 ac_path_EGREP_max
=$ac_count
4717 # 10*(2^10) chars as input seems more than enough
4718 test $ac_count -gt 10 && break
4720 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4724 $ac_path_EGREP_found && break 3
4734 EGREP
="$ac_cv_path_EGREP"
4735 if test -z "$EGREP"; then
4736 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4737 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4738 { (exit 1); exit 1; }; }
4742 ac_cv_path_EGREP
=$EGREP
4748 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4749 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4750 EGREP
="$ac_cv_path_EGREP"
4754 { echo "$as_me:$LINENO: checking for AIX" >&5
4755 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4756 cat >conftest.
$ac_ext <<_ACEOF
4759 cat confdefs.h
>>conftest.
$ac_ext
4760 cat >>conftest.
$ac_ext <<_ACEOF
4761 /* end confdefs.h. */
4767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4768 $EGREP "yes" >/dev
/null
2>&1; then
4769 { echo "$as_me:$LINENO: result: yes" >&5
4770 echo "${ECHO_T}yes" >&6; }
4771 cat >>confdefs.h
<<\_ACEOF
4772 #define _ALL_SOURCE 1
4776 { echo "$as_me:$LINENO: result: no" >&5
4777 echo "${ECHO_T}no" >&6; }
4783 cat >>confdefs.h
<<\_ACEOF
4784 #define _GNU_SOURCE 1
4789 ### Use -Wno-pointer-sign if the compiler supports it
4790 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4791 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4792 SAVE_CFLAGS
="$CFLAGS"
4793 CFLAGS
="$CFLAGS -Wno-pointer-sign"
4794 cat >conftest.
$ac_ext <<_ACEOF
4797 cat confdefs.h
>>conftest.
$ac_ext
4798 cat >>conftest.
$ac_ext <<_ACEOF
4799 /* end confdefs.h. */
4809 rm -f conftest.
$ac_objext
4810 if { (ac_try
="$ac_compile"
4812 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4813 *) ac_try_echo=$ac_try;;
4815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4816 (eval "$ac_compile") 2>conftest.er1
4818 grep -v '^ *+' conftest.er1 >conftest.err
4820 cat conftest.err >&5
4821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822 (exit $ac_status); } && {
4823 test -z "$ac_c_werror_flag" ||
4824 test ! -s conftest.err
4825 } && test -s conftest.$ac_objext; then
4828 echo "$as_me: failed program was:" >&5
4829 sed 's/^/| /' conftest.$ac_ext >&5
4834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4835 if test $has_option = yes; then
4836 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4838 { echo "$as_me:$LINENO: result: $has_option" >&5
4839 echo "${ECHO_T}$has_option" >&6; }
4840 CFLAGS="$SAVE_CFLAGS"
4844 #### Some other nice autoconf tests.
4846 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4847 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4849 if test "$LN_S" = "ln -s"; then
4850 { echo "$as_me:$LINENO: result: yes" >&5
4851 echo "${ECHO_T}yes" >&6; }
4853 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4854 echo "${ECHO_T}no, using $LN_S" >&6; }
4858 ac_cpp='$CPP $CPPFLAGS'
4859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4862 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4863 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4864 # On Suns, sometimes $CPP names a directory.
4865 if test -n "$CPP" && test -d "$CPP"; then
4868 if test -z "$CPP"; then
4869 if test "${ac_cv_prog_CPP+set}" = set; then
4870 echo $ECHO_N "(cached) $ECHO_C" >&6
4872 # Double quotes because CPP needs to be expanded
4873 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4876 for ac_c_preproc_warn_flag in '' yes
4878 # Use a header file that comes with gcc, so configuring glibc
4879 # with a fresh cross-compiler works.
4880 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4881 # <limits.h> exists even on freestanding compilers.
4882 # On the NeXT, cc -E runs the code through the compiler's parser,
4883 # not just through cpp. "Syntax error" is here to catch this case.
4884 cat >conftest.$ac_ext <<_ACEOF
4887 cat confdefs.h >>conftest.$ac_ext
4888 cat >>conftest.$ac_ext <<_ACEOF
4889 /* end confdefs.h. */
4891 # include <limits.h>
4893 # include <assert.h>
4897 if { (ac_try="$ac_cpp conftest.$ac_ext"
4899 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4900 *) ac_try_echo
=$ac_try;;
4902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4903 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4905 grep -v '^ *+' conftest.er1
>conftest.err
4907 cat conftest.err
>&5
4908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909 (exit $ac_status); } >/dev
/null
&& {
4910 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4911 test ! -s conftest.err
4915 echo "$as_me: failed program was:" >&5
4916 sed 's/^/| /' conftest.
$ac_ext >&5
4918 # Broken: fails on valid input.
4922 rm -f conftest.err conftest.
$ac_ext
4924 # OK, works on sane cases. Now check whether nonexistent headers
4925 # can be detected and how.
4926 cat >conftest.
$ac_ext <<_ACEOF
4929 cat confdefs.h
>>conftest.
$ac_ext
4930 cat >>conftest.
$ac_ext <<_ACEOF
4931 /* end confdefs.h. */
4932 #include <ac_nonexistent.h>
4934 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4936 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4937 *) ac_try_echo=$ac_try;;
4939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4940 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4942 grep -v '^ *+' conftest.er1 >conftest.err
4944 cat conftest.err >&5
4945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946 (exit $ac_status); } >/dev/null && {
4947 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4948 test ! -s conftest.err
4950 # Broken: success on invalid input.
4953 echo "$as_me: failed program was:" >&5
4954 sed 's/^/| /' conftest.$ac_ext >&5
4956 # Passes both tests.
4961 rm -f conftest.err conftest.$ac_ext
4964 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4965 rm -f conftest.err conftest.
$ac_ext
4966 if $ac_preproc_ok; then
4978 { echo "$as_me:$LINENO: result: $CPP" >&5
4979 echo "${ECHO_T}$CPP" >&6; }
4981 for ac_c_preproc_warn_flag
in '' yes
4983 # Use a header file that comes with gcc, so configuring glibc
4984 # with a fresh cross-compiler works.
4985 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4986 # <limits.h> exists even on freestanding compilers.
4987 # On the NeXT, cc -E runs the code through the compiler's parser,
4988 # not just through cpp. "Syntax error" is here to catch this case.
4989 cat >conftest.
$ac_ext <<_ACEOF
4992 cat confdefs.h
>>conftest.
$ac_ext
4993 cat >>conftest.
$ac_ext <<_ACEOF
4994 /* end confdefs.h. */
4996 # include <limits.h>
4998 # include <assert.h>
5002 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5004 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5005 *) ac_try_echo=$ac_try;;
5007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5008 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5010 grep -v '^ *+' conftest.er1 >conftest.err
5012 cat conftest.err >&5
5013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014 (exit $ac_status); } >/dev/null && {
5015 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5016 test ! -s conftest.err
5020 echo "$as_me: failed program was:" >&5
5021 sed 's/^/| /' conftest.$ac_ext >&5
5023 # Broken: fails on valid input.
5027 rm -f conftest.err conftest.$ac_ext
5029 # OK, works on sane cases. Now check whether nonexistent headers
5030 # can be detected and how.
5031 cat >conftest.$ac_ext <<_ACEOF
5034 cat confdefs.h >>conftest.$ac_ext
5035 cat >>conftest.$ac_ext <<_ACEOF
5036 /* end confdefs.h. */
5037 #include <ac_nonexistent.h>
5039 if { (ac_try="$ac_cpp conftest.$ac_ext"
5041 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5042 *) ac_try_echo
=$ac_try;;
5044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5045 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5047 grep -v '^ *+' conftest.er1
>conftest.err
5049 cat conftest.err
>&5
5050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5051 (exit $ac_status); } >/dev
/null
&& {
5052 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5053 test ! -s conftest.err
5055 # Broken: success on invalid input.
5058 echo "$as_me: failed program was:" >&5
5059 sed 's/^/| /' conftest.
$ac_ext >&5
5061 # Passes both tests.
5066 rm -f conftest.err conftest.
$ac_ext
5069 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5070 rm -f conftest.err conftest.
$ac_ext
5071 if $ac_preproc_ok; then
5074 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5075 See \`config.log' for more details." >&5
5076 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5077 See \`config.log' for more details." >&2;}
5078 { (exit 1); exit 1; }; }
5082 ac_cpp
='$CPP $CPPFLAGS'
5083 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5084 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5085 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5087 # Find a good install program. We prefer a C program (faster),
5088 # so one script is as good as another. But avoid the broken or
5089 # incompatible versions:
5090 # SysV /etc/install, /usr/sbin/install
5091 # SunOS /usr/etc/install
5092 # IRIX /sbin/install
5094 # AmigaOS /C/install, which installs bootblocks on floppy discs
5095 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5096 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5097 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5098 # OS/2's system install, which has a completely different semantic
5099 # ./install, which can be erroneously created by make from ./install.sh.
5100 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5101 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5102 if test -z "$INSTALL"; then
5103 if test "${ac_cv_path_install+set}" = set; then
5104 echo $ECHO_N "(cached) $ECHO_C" >&6
5106 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5110 test -z "$as_dir" && as_dir
=.
5111 # Account for people who put trailing slashes in PATH elements.
5113 .
/ | .
// |
/cC
/* | \
5114 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
5115 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
5118 # OSF1 and SCO ODT 3.0 have their own names for install.
5119 # Don't use installbsd from OSF since it installs stuff as root
5121 for ac_prog
in ginstall scoinst
install; do
5122 for ac_exec_ext
in '' $ac_executable_extensions; do
5123 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5124 if test $ac_prog = install &&
5125 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5126 # AIX install. It has an incompatible calling convention.
5128 elif test $ac_prog = install &&
5129 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5130 # program-specific install script used by HP pwplus--don't use.
5133 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5146 if test "${ac_cv_path_install+set}" = set; then
5147 INSTALL
=$ac_cv_path_install
5149 # As a last resort, use the slow shell script. Don't cache a
5150 # value for INSTALL within a source directory, because that will
5151 # break other packages using the cache if that directory is
5152 # removed, or if the value is a relative name.
5153 INSTALL
=$ac_install_sh
5156 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5157 echo "${ECHO_T}$INSTALL" >&6; }
5159 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5160 # It thinks the first close brace ends the variable substitution.
5161 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5163 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5165 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5167 if test "x$RANLIB" = x
; then
5168 if test -n "$ac_tool_prefix"; then
5169 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5170 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5171 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5173 if test "${ac_cv_prog_RANLIB+set}" = set; then
5174 echo $ECHO_N "(cached) $ECHO_C" >&6
5176 if test -n "$RANLIB"; then
5177 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5179 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5183 test -z "$as_dir" && as_dir
=.
5184 for ac_exec_ext
in '' $ac_executable_extensions; do
5185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5186 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5196 RANLIB
=$ac_cv_prog_RANLIB
5197 if test -n "$RANLIB"; then
5198 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5199 echo "${ECHO_T}$RANLIB" >&6; }
5201 { echo "$as_me:$LINENO: result: no" >&5
5202 echo "${ECHO_T}no" >&6; }
5207 if test -z "$ac_cv_prog_RANLIB"; then
5208 ac_ct_RANLIB
=$RANLIB
5209 # Extract the first word of "ranlib", so it can be a program name with args.
5210 set dummy ranlib
; 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_prog_ac_ct_RANLIB+set}" = set; then
5214 echo $ECHO_N "(cached) $ECHO_C" >&6
5216 if test -n "$ac_ct_RANLIB"; then
5217 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5219 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5223 test -z "$as_dir" && as_dir
=.
5224 for ac_exec_ext
in '' $ac_executable_extensions; do
5225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5226 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5236 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5237 if test -n "$ac_ct_RANLIB"; then
5238 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5239 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5241 { echo "$as_me:$LINENO: result: no" >&5
5242 echo "${ECHO_T}no" >&6; }
5245 if test "x$ac_ct_RANLIB" = x
; then
5248 case $cross_compiling:$ac_tool_warned in
5250 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5251 whose name does not start with the host triplet. If you think this
5252 configuration is useful to you, please write to autoconf@gnu.org." >&5
5253 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5254 whose name does not start with the host triplet. If you think this
5255 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5256 ac_tool_warned
=yes ;;
5258 RANLIB
=$ac_ct_RANLIB
5261 RANLIB
="$ac_cv_prog_RANLIB"
5265 # Extract the first word of "install-info", so it can be a program name with args.
5266 set dummy install-info
; ac_word
=$2
5267 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5269 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5270 echo $ECHO_N "(cached) $ECHO_C" >&6
5272 case $INSTALL_INFO in
5274 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5277 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5281 test -z "$as_dir" && as_dir
=.
5282 for ac_exec_ext
in '' $ac_executable_extensions; do
5283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5284 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5295 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5296 if test -n "$INSTALL_INFO"; then
5297 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5298 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5300 { echo "$as_me:$LINENO: result: no" >&5
5301 echo "${ECHO_T}no" >&6; }
5305 # Extract the first word of "install-info", so it can be a program name with args.
5306 set dummy install-info
; ac_word
=$2
5307 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5309 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5310 echo $ECHO_N "(cached) $ECHO_C" >&6
5312 case $INSTALL_INFO in
5314 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5317 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5318 for as_dir
in /usr
/sbin
5321 test -z "$as_dir" && as_dir
=.
5322 for ac_exec_ext
in '' $ac_executable_extensions; do
5323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5324 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5335 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5336 if test -n "$INSTALL_INFO"; then
5337 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5338 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5340 { echo "$as_me:$LINENO: result: no" >&5
5341 echo "${ECHO_T}no" >&6; }
5345 # Extract the first word of "install-info", so it can be a program name with args.
5346 set dummy install-info
; ac_word
=$2
5347 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5349 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5350 echo $ECHO_N "(cached) $ECHO_C" >&6
5352 case $INSTALL_INFO in
5354 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5357 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5361 test -z "$as_dir" && as_dir
=.
5362 for ac_exec_ext
in '' $ac_executable_extensions; do
5363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5364 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5372 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5376 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5377 if test -n "$INSTALL_INFO"; then
5378 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5379 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5381 { echo "$as_me:$LINENO: result: no" >&5
5382 echo "${ECHO_T}no" >&6; }
5386 # Extract the first word of "gzip", so it can be a program name with args.
5387 set dummy
gzip; ac_word
=$2
5388 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5390 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5391 echo $ECHO_N "(cached) $ECHO_C" >&6
5395 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5398 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5402 test -z "$as_dir" && as_dir
=.
5403 for ac_exec_ext
in '' $ac_executable_extensions; do
5404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5405 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5416 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5417 if test -n "$GZIP_PROG"; then
5418 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5419 echo "${ECHO_T}$GZIP_PROG" >&6; }
5421 { echo "$as_me:$LINENO: result: no" >&5
5422 echo "${ECHO_T}no" >&6; }
5428 ## Need makeinfo >= 4.6 (?) to build the manuals.
5429 # Extract the first word of "makeinfo", so it can be a program name with args.
5430 set dummy makeinfo
; ac_word
=$2
5431 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5433 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5434 echo $ECHO_N "(cached) $ECHO_C" >&6
5438 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
5441 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5445 test -z "$as_dir" && as_dir
=.
5446 for ac_exec_ext
in '' $ac_executable_extensions; do
5447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5448 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
5449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5456 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
5460 MAKEINFO
=$ac_cv_path_MAKEINFO
5461 if test -n "$MAKEINFO"; then
5462 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5463 echo "${ECHO_T}$MAKEINFO" >&6; }
5465 { echo "$as_me:$LINENO: result: no" >&5
5466 echo "${ECHO_T}no" >&6; }
5470 if test "$MAKEINFO" != "no" && \
5471 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
5475 if test "$MAKEINFO" = "no"; then
5476 { { echo "$as_me:$LINENO: error: makeinfo >= 4.6 is required " >&5
5477 echo "$as_me: error: makeinfo >= 4.6 is required " >&2;}
5478 { (exit 1); exit 1; }; }
5483 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5485 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5488 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5490 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5494 late_LDFLAGS
=$LDFLAGS
5495 if test "$GCC" = yes; then
5496 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5498 LDFLAGS
="$LDFLAGS -znocombreloc"
5501 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5502 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5503 cat >conftest.
$ac_ext <<_ACEOF
5506 rm -f conftest.
$ac_objext conftest
$ac_exeext
5507 if { (ac_try
="$ac_link"
5509 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5510 *) ac_try_echo=$ac_try;;
5512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5513 (eval "$ac_link") 2>conftest.er1
5515 grep -v '^ *+' conftest.er1 >conftest.err
5517 cat conftest.err >&5
5518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5519 (exit $ac_status); } && {
5520 test -z "$ac_c_werror_flag" ||
5521 test ! -s conftest.err
5522 } && test -s conftest$ac_exeext &&
5523 $as_test_x conftest$ac_exeext; then
5524 { echo "$as_me:$LINENO: result: yes" >&5
5525 echo "${ECHO_T}yes" >&6; }
5527 echo "$as_me: failed program was:" >&5
5528 sed 's/^/| /' conftest.$ac_ext >&5
5530 LDFLAGS=$late_LDFLAGS
5531 { echo "$as_me:$LINENO: result: no" >&5
5532 echo "${ECHO_T}no" >&6; }
5535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5536 conftest$ac_exeext conftest.$ac_ext
5538 #### Extract some information from the operating system and machine files.
5540 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5541 - which libraries the lib-src programs will want, and
5542 - whether the GNU malloc routines are usable..." >&5
5543 echo "$as_me: checking the machine- and system-dependent files to find out
5544 - which libraries the lib-src programs will want, and
5545 - whether the GNU malloc routines are usable..." >&6;}
5547 ### First figure out CFLAGS (which we use for running the compiler here)
5548 ### and REAL_CFLAGS (which we use for real compilation).
5549 ### The two are the same except on a few systems, where they are made
5550 ### different to work around various lossages. For example,
5551 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5552 ### as implying static linking.
5554 ### If the CFLAGS env var is specified, we use that value
5555 ### instead of the default.
5557 ### It's not important that this name contain the PID; you can't run
5558 ### two configures in the same directory and have anything work
5560 tempcname="conftest.c"
5563 #include "'${srcdir}'/src/'${opsysfile}'"
5564 #include "'${srcdir}'/src/'${machfile}'"
5565 #ifndef LIBS_MACHINE
5566 #define LIBS_MACHINE
5571 #ifndef C_SWITCH_SYSTEM
5572 #define C_SWITCH_SYSTEM
5574 #ifndef C_SWITCH_MACHINE
5575 #define C_SWITCH_MACHINE
5577 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5578 configure___ c_switch_system=C_SWITCH_SYSTEM
5579 configure___ c_switch_machine=C_SWITCH_MACHINE
5582 #define LIB_X11_LIB -lX11
5585 #ifndef LIBX11_MACHINE
5586 #define LIBX11_MACHINE
5589 #ifndef LIBX11_SYSTEM
5590 #define LIBX11_SYSTEM
5592 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5595 configure___ unexec=UNEXEC
5597 configure___ unexec=unexec.o
5600 #ifdef SYSTEM_MALLOC
5601 configure___ system_malloc=yes
5603 configure___ system_malloc=no
5606 #ifdef USE_MMAP_FOR_BUFFERS
5607 configure___ use_mmap_for_buffers=yes
5609 configure___ use_mmap_for_buffers=no
5612 #ifndef C_DEBUG_SWITCH
5613 #define C_DEBUG_SWITCH -g
5616 #ifndef C_OPTIMIZE_SWITCH
5618 #define C_OPTIMIZE_SWITCH -O2
5620 #define C_OPTIMIZE_SWITCH -O
5624 #ifndef C_WARNINGS_SWITCH
5625 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5628 #ifndef LD_SWITCH_MACHINE
5629 #define LD_SWITCH_MACHINE
5632 #ifndef LD_SWITCH_SYSTEM
5633 #define LD_SWITCH_SYSTEM
5636 #ifndef LD_SWITCH_X_SITE_AUX
5637 #define LD_SWITCH_X_SITE_AUX
5640 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5641 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5643 #ifdef THIS_IS_CONFIGURE
5645 /* Get the CFLAGS for tests in configure. */
5647 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5649 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5652 #else /* not THIS_IS_CONFIGURE */
5654 /* Get the CFLAGS for real compilation. */
5656 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5658 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5661 #endif /* not THIS_IS_CONFIGURE */
5664 # The value of CPP is a quoted variable reference, so we need to do this
5665 # to get its actual value...
5666 CPP=`eval "echo $CPP"`
5667 eval `${CPP} -Isrc ${tempcname} \
5668 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5669 if test "x$SPECIFIED_CFLAGS" = x; then
5670 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5671 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5673 REAL_CFLAGS="$CFLAGS"
5677 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5679 ### Make sure subsequent tests use flags consistent with the build flags.
5681 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5682 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5684 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5689 # Check whether --enable-largefile was given.
5690 if test "${enable_largefile+set}" = set; then
5691 enableval=$enable_largefile;
5694 if test "$enable_largefile" != no; then
5696 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5697 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5698 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5699 echo $ECHO_N "(cached) $ECHO_C" >&6
5701 ac_cv_sys_largefile_CC=no
5702 if test "$GCC" != yes; then
5705 # IRIX 6.2 and later do not support large files by default,
5706 # so use the C compiler's -n32 option if that helps.
5707 cat >conftest.$ac_ext <<_ACEOF
5710 cat confdefs.h >>conftest.$ac_ext
5711 cat >>conftest.$ac_ext <<_ACEOF
5712 /* end confdefs.h. */
5713 #include <sys/types.h>
5714 /* Check that off_t can represent 2**63 - 1 correctly.
5715 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5716 since some C++ compilers masquerading as C compilers
5717 incorrectly reject 9223372036854775807. */
5718 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5719 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5720 && LARGE_OFF_T % 2147483647 == 1)
5730 rm -f conftest.$ac_objext
5731 if { (ac_try="$ac_compile"
5733 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5734 *) ac_try_echo
=$ac_try;;
5736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5737 (eval "$ac_compile") 2>conftest.er1
5739 grep -v '^ *+' conftest.er1
>conftest.err
5741 cat conftest.err
>&5
5742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743 (exit $ac_status); } && {
5744 test -z "$ac_c_werror_flag" ||
5745 test ! -s conftest.err
5746 } && test -s conftest.
$ac_objext; then
5749 echo "$as_me: failed program was:" >&5
5750 sed 's/^/| /' conftest.
$ac_ext >&5
5755 rm -f core conftest.err conftest.
$ac_objext
5757 rm -f conftest.
$ac_objext
5758 if { (ac_try
="$ac_compile"
5760 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5761 *) ac_try_echo=$ac_try;;
5763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5764 (eval "$ac_compile") 2>conftest.er1
5766 grep -v '^ *+' conftest.er1 >conftest.err
5768 cat conftest.err >&5
5769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770 (exit $ac_status); } && {
5771 test -z "$ac_c_werror_flag" ||
5772 test ! -s conftest.err
5773 } && test -s conftest.$ac_objext; then
5774 ac_cv_sys_largefile_CC=' -n32'; break
5776 echo "$as_me: failed program was:" >&5
5777 sed 's/^/| /' conftest.$ac_ext >&5
5782 rm -f core conftest.err conftest.$ac_objext
5786 rm -f conftest.$ac_ext
5789 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5790 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5791 if test "$ac_cv_sys_largefile_CC" != no; then
5792 CC=$CC$ac_cv_sys_largefile_CC
5795 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5796 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5797 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5798 echo $ECHO_N "(cached) $ECHO_C" >&6
5801 cat >conftest.$ac_ext <<_ACEOF
5804 cat confdefs.h >>conftest.$ac_ext
5805 cat >>conftest.$ac_ext <<_ACEOF
5806 /* end confdefs.h. */
5807 #include <sys/types.h>
5808 /* Check that off_t can represent 2**63 - 1 correctly.
5809 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5810 since some C++ compilers masquerading as C compilers
5811 incorrectly reject 9223372036854775807. */
5812 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5813 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5814 && LARGE_OFF_T % 2147483647 == 1)
5824 rm -f conftest.$ac_objext
5825 if { (ac_try="$ac_compile"
5827 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5828 *) ac_try_echo
=$ac_try;;
5830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5831 (eval "$ac_compile") 2>conftest.er1
5833 grep -v '^ *+' conftest.er1
>conftest.err
5835 cat conftest.err
>&5
5836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837 (exit $ac_status); } && {
5838 test -z "$ac_c_werror_flag" ||
5839 test ! -s conftest.err
5840 } && test -s conftest.
$ac_objext; then
5841 ac_cv_sys_file_offset_bits
=no
; break
5843 echo "$as_me: failed program was:" >&5
5844 sed 's/^/| /' conftest.
$ac_ext >&5
5849 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5850 cat >conftest.
$ac_ext <<_ACEOF
5853 cat confdefs.h
>>conftest.
$ac_ext
5854 cat >>conftest.
$ac_ext <<_ACEOF
5855 /* end confdefs.h. */
5856 #define _FILE_OFFSET_BITS 64
5857 #include <sys/types.h>
5858 /* Check that off_t can represent 2**63 - 1 correctly.
5859 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5860 since some C++ compilers masquerading as C compilers
5861 incorrectly reject 9223372036854775807. */
5862 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5863 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5864 && LARGE_OFF_T % 2147483647 == 1)
5874 rm -f conftest.
$ac_objext
5875 if { (ac_try
="$ac_compile"
5877 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5878 *) ac_try_echo=$ac_try;;
5880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5881 (eval "$ac_compile") 2>conftest.er1
5883 grep -v '^ *+' conftest.er1 >conftest.err
5885 cat conftest.err >&5
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); } && {
5888 test -z "$ac_c_werror_flag" ||
5889 test ! -s conftest.err
5890 } && test -s conftest.$ac_objext; then
5891 ac_cv_sys_file_offset_bits=64; break
5893 echo "$as_me: failed program was:" >&5
5894 sed 's/^/| /' conftest.$ac_ext >&5
5899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5900 ac_cv_sys_file_offset_bits=unknown
5904 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5905 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5906 case $ac_cv_sys_file_offset_bits in #(
5909 cat >>confdefs.h <<_ACEOF
5910 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5915 if test $ac_cv_sys_file_offset_bits = unknown; then
5916 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5917 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5918 if test "${ac_cv_sys_large_files+set}" = set; then
5919 echo $ECHO_N "(cached) $ECHO_C" >&6
5922 cat >conftest.$ac_ext <<_ACEOF
5925 cat confdefs.h >>conftest.$ac_ext
5926 cat >>conftest.$ac_ext <<_ACEOF
5927 /* end confdefs.h. */
5928 #include <sys/types.h>
5929 /* Check that off_t can represent 2**63 - 1 correctly.
5930 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5931 since some C++ compilers masquerading as C compilers
5932 incorrectly reject 9223372036854775807. */
5933 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5934 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5935 && LARGE_OFF_T % 2147483647 == 1)
5945 rm -f conftest.$ac_objext
5946 if { (ac_try="$ac_compile"
5948 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5949 *) ac_try_echo
=$ac_try;;
5951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5952 (eval "$ac_compile") 2>conftest.er1
5954 grep -v '^ *+' conftest.er1
>conftest.err
5956 cat conftest.err
>&5
5957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958 (exit $ac_status); } && {
5959 test -z "$ac_c_werror_flag" ||
5960 test ! -s conftest.err
5961 } && test -s conftest.
$ac_objext; then
5962 ac_cv_sys_large_files
=no
; break
5964 echo "$as_me: failed program was:" >&5
5965 sed 's/^/| /' conftest.
$ac_ext >&5
5970 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5971 cat >conftest.
$ac_ext <<_ACEOF
5974 cat confdefs.h
>>conftest.
$ac_ext
5975 cat >>conftest.
$ac_ext <<_ACEOF
5976 /* end confdefs.h. */
5977 #define _LARGE_FILES 1
5978 #include <sys/types.h>
5979 /* Check that off_t can represent 2**63 - 1 correctly.
5980 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5981 since some C++ compilers masquerading as C compilers
5982 incorrectly reject 9223372036854775807. */
5983 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5984 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5985 && LARGE_OFF_T % 2147483647 == 1)
5995 rm -f conftest.
$ac_objext
5996 if { (ac_try
="$ac_compile"
5998 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5999 *) ac_try_echo=$ac_try;;
6001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6002 (eval "$ac_compile") 2>conftest.er1
6004 grep -v '^ *+' conftest.er1 >conftest.err
6006 cat conftest.err >&5
6007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008 (exit $ac_status); } && {
6009 test -z "$ac_c_werror_flag" ||
6010 test ! -s conftest.err
6011 } && test -s conftest.$ac_objext; then
6012 ac_cv_sys_large_files=1; break
6014 echo "$as_me: failed program was:" >&5
6015 sed 's/^/| /' conftest.$ac_ext >&5
6020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6021 ac_cv_sys_large_files=unknown
6025 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6026 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
6027 case $ac_cv_sys_large_files in #(
6030 cat >>confdefs.h <<_ACEOF
6031 #define _LARGE_FILES $ac_cv_sys_large_files
6041 ### The standard library on x86-64 GNU/Linux distributions can
6042 ### be located in either /usr/lib64 or /usr/lib.
6043 case "${canonical}" in
6044 x86_64-*-linux-gnu* )
6045 if test -d /usr/lib64; then
6047 cat >>confdefs.h <<\_ACEOF
6048 #define HAVE_X86_64_LIB64_DIR 1
6057 if test "${with_sound}" != "no"; then
6058 # Sound support for GNU/Linux and the free BSDs.
6059 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6060 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6061 if test "${ac_cv_header_stdc+set}" = set; then
6062 echo $ECHO_N "(cached) $ECHO_C" >&6
6064 cat >conftest.$ac_ext <<_ACEOF
6067 cat confdefs.h >>conftest.$ac_ext
6068 cat >>conftest.$ac_ext <<_ACEOF
6069 /* end confdefs.h. */
6083 rm -f conftest.$ac_objext
6084 if { (ac_try="$ac_compile"
6086 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6087 *) ac_try_echo
=$ac_try;;
6089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6090 (eval "$ac_compile") 2>conftest.er1
6092 grep -v '^ *+' conftest.er1
>conftest.err
6094 cat conftest.err
>&5
6095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096 (exit $ac_status); } && {
6097 test -z "$ac_c_werror_flag" ||
6098 test ! -s conftest.err
6099 } && test -s conftest.
$ac_objext; then
6100 ac_cv_header_stdc
=yes
6102 echo "$as_me: failed program was:" >&5
6103 sed 's/^/| /' conftest.
$ac_ext >&5
6105 ac_cv_header_stdc
=no
6108 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6110 if test $ac_cv_header_stdc = yes; then
6111 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6112 cat >conftest.
$ac_ext <<_ACEOF
6115 cat confdefs.h
>>conftest.
$ac_ext
6116 cat >>conftest.
$ac_ext <<_ACEOF
6117 /* end confdefs.h. */
6121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6122 $EGREP "memchr" >/dev
/null
2>&1; then
6125 ac_cv_header_stdc
=no
6131 if test $ac_cv_header_stdc = yes; then
6132 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6133 cat >conftest.
$ac_ext <<_ACEOF
6136 cat confdefs.h
>>conftest.
$ac_ext
6137 cat >>conftest.
$ac_ext <<_ACEOF
6138 /* end confdefs.h. */
6142 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6143 $EGREP "free" >/dev
/null
2>&1; then
6146 ac_cv_header_stdc
=no
6152 if test $ac_cv_header_stdc = yes; then
6153 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6154 if test "$cross_compiling" = yes; then
6157 cat >conftest.
$ac_ext <<_ACEOF
6160 cat confdefs.h
>>conftest.
$ac_ext
6161 cat >>conftest.
$ac_ext <<_ACEOF
6162 /* end confdefs.h. */
6165 #if ((' ' & 0x0FF) == 0x020)
6166 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6167 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6169 # define ISLOWER(c) \
6170 (('a' <= (c) && (c) <= 'i') \
6171 || ('j' <= (c) && (c) <= 'r') \
6172 || ('s' <= (c) && (c) <= 'z'))
6173 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6176 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6181 for (i = 0; i < 256; i++)
6182 if (XOR (islower (i), ISLOWER (i))
6183 || toupper (i) != TOUPPER (i))
6188 rm -f conftest
$ac_exeext
6189 if { (ac_try
="$ac_link"
6191 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6192 *) ac_try_echo=$ac_try;;
6194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6195 (eval "$ac_link") 2>&5
6197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6199 { (case "(($ac_try" in
6200 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6201 *) ac_try_echo
=$ac_try;;
6203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6204 (eval "$ac_try") 2>&5
6206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207 (exit $ac_status); }; }; then
6210 echo "$as_me: program exited with status $ac_status" >&5
6211 echo "$as_me: failed program was:" >&5
6212 sed 's/^/| /' conftest.
$ac_ext >&5
6215 ac_cv_header_stdc
=no
6217 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6223 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6224 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6225 if test $ac_cv_header_stdc = yes; then
6227 cat >>confdefs.h
<<\_ACEOF
6228 #define STDC_HEADERS 1
6233 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6243 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6244 inttypes.h stdint.h unistd.h
6246 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6247 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6248 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6249 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6250 echo $ECHO_N "(cached) $ECHO_C" >&6
6252 cat >conftest.
$ac_ext <<_ACEOF
6255 cat confdefs.h
>>conftest.
$ac_ext
6256 cat >>conftest.
$ac_ext <<_ACEOF
6257 /* end confdefs.h. */
6258 $ac_includes_default
6260 #include <$ac_header>
6262 rm -f conftest.
$ac_objext
6263 if { (ac_try
="$ac_compile"
6265 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6266 *) ac_try_echo=$ac_try;;
6268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6269 (eval "$ac_compile") 2>conftest.er1
6271 grep -v '^ *+' conftest.er1 >conftest.err
6273 cat conftest.err >&5
6274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275 (exit $ac_status); } && {
6276 test -z "$ac_c_werror_flag" ||
6277 test ! -s conftest.err
6278 } && test -s conftest.$ac_objext; then
6279 eval "$as_ac_Header=yes"
6281 echo "$as_me: failed program was:" >&5
6282 sed 's/^/| /' conftest.$ac_ext >&5
6284 eval "$as_ac_Header=no"
6287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6289 ac_res=`eval echo '${'$as_ac_Header'}'`
6290 { echo "$as_me:$LINENO: result: $ac_res" >&5
6291 echo "${ECHO_T}$ac_res" >&6; }
6292 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6293 cat >>confdefs.h <<_ACEOF
6294 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6305 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6307 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6308 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6309 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6311 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6312 echo $ECHO_N "(cached) $ECHO_C" >&6
6314 ac_res=`eval echo '${'$as_ac_Header'}'`
6315 { echo "$as_me:$LINENO: result: $ac_res" >&5
6316 echo "${ECHO_T}$ac_res" >&6; }
6318 # Is the header compilable?
6319 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6320 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6321 cat >conftest.$ac_ext <<_ACEOF
6324 cat confdefs.h >>conftest.$ac_ext
6325 cat >>conftest.$ac_ext <<_ACEOF
6326 /* end confdefs.h. */
6327 $ac_includes_default
6328 #include <$ac_header>
6330 rm -f conftest.$ac_objext
6331 if { (ac_try="$ac_compile"
6333 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6334 *) ac_try_echo
=$ac_try;;
6336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6337 (eval "$ac_compile") 2>conftest.er1
6339 grep -v '^ *+' conftest.er1
>conftest.err
6341 cat conftest.err
>&5
6342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343 (exit $ac_status); } && {
6344 test -z "$ac_c_werror_flag" ||
6345 test ! -s conftest.err
6346 } && test -s conftest.
$ac_objext; then
6347 ac_header_compiler
=yes
6349 echo "$as_me: failed program was:" >&5
6350 sed 's/^/| /' conftest.
$ac_ext >&5
6352 ac_header_compiler
=no
6355 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6356 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6357 echo "${ECHO_T}$ac_header_compiler" >&6; }
6359 # Is the header present?
6360 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6361 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6362 cat >conftest.
$ac_ext <<_ACEOF
6365 cat confdefs.h
>>conftest.
$ac_ext
6366 cat >>conftest.
$ac_ext <<_ACEOF
6367 /* end confdefs.h. */
6368 #include <$ac_header>
6370 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6372 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6373 *) ac_try_echo=$ac_try;;
6375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6376 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6378 grep -v '^ *+' conftest.er1 >conftest.err
6380 cat conftest.err >&5
6381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6382 (exit $ac_status); } >/dev/null && {
6383 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6384 test ! -s conftest.err
6386 ac_header_preproc=yes
6388 echo "$as_me: failed program was:" >&5
6389 sed 's/^/| /' conftest.$ac_ext >&5
6391 ac_header_preproc=no
6394 rm -f conftest.err conftest.$ac_ext
6395 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6396 echo "${ECHO_T}$ac_header_preproc" >&6; }
6398 # So? What about this header?
6399 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6401 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6402 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6403 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6404 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6405 ac_header_preproc=yes
6408 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6409 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6410 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6411 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6412 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6413 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6414 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6415 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6416 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6417 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6418 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6419 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6423 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6425 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6426 echo $ECHO_N "(cached) $ECHO_C" >&6
6428 eval "$as_ac_Header=\$ac_header_preproc"
6430 ac_res=`eval echo '${'$as_ac_Header'}'`
6431 { echo "$as_me:$LINENO: result: $ac_res" >&5
6432 echo "${ECHO_T}$ac_res" >&6; }
6435 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6436 cat >>confdefs.h <<_ACEOF
6437 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6444 # Emulation library used on NetBSD.
6445 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6446 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6447 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6448 echo $ECHO_N "(cached) $ECHO_C" >&6
6450 ac_check_lib_save_LIBS=$LIBS
6451 LIBS="-lossaudio $LIBS"
6452 cat >conftest.$ac_ext <<_ACEOF
6455 cat confdefs.h >>conftest.$ac_ext
6456 cat >>conftest.$ac_ext <<_ACEOF
6457 /* end confdefs.h. */
6459 /* Override any GCC internal prototype to avoid an error.
6460 Use char because int might match the return type of a GCC
6461 builtin and then its argument prototype would still apply. */
6469 return _oss_ioctl ();
6474 rm -f conftest.$ac_objext conftest$ac_exeext
6475 if { (ac_try="$ac_link"
6477 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6478 *) ac_try_echo
=$ac_try;;
6480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6481 (eval "$ac_link") 2>conftest.er1
6483 grep -v '^ *+' conftest.er1
>conftest.err
6485 cat conftest.err
>&5
6486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487 (exit $ac_status); } && {
6488 test -z "$ac_c_werror_flag" ||
6489 test ! -s conftest.err
6490 } && test -s conftest
$ac_exeext &&
6491 $as_test_x conftest
$ac_exeext; then
6492 ac_cv_lib_ossaudio__oss_ioctl
=yes
6494 echo "$as_me: failed program was:" >&5
6495 sed 's/^/| /' conftest.
$ac_ext >&5
6497 ac_cv_lib_ossaudio__oss_ioctl
=no
6500 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6501 conftest
$ac_exeext conftest.
$ac_ext
6502 LIBS
=$ac_check_lib_save_LIBS
6504 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6505 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6506 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6515 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6516 if test "X${with_pkg_config_prog}" != X
; then
6517 PKG_CONFIG
="${with_pkg_config_prog}"
6522 if test -z "$PKG_CONFIG"; then
6523 # Extract the first word of "pkg-config", so it can be a program name with args.
6524 set dummy pkg-config
; ac_word
=$2
6525 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6527 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6528 echo $ECHO_N "(cached) $ECHO_C" >&6
6532 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6535 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6539 test -z "$as_dir" && as_dir
=.
6540 for ac_exec_ext
in '' $ac_executable_extensions; do
6541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6542 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6550 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6554 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6555 if test -n "$PKG_CONFIG"; then
6556 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6557 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6559 { echo "$as_me:$LINENO: result: no" >&5
6560 echo "${ECHO_T}no" >&6; }
6566 if test "$PKG_CONFIG" = "no" ; then
6569 PKG_CONFIG_MIN_VERSION
=0.9.0
6570 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6571 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6572 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6574 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6575 { echo "$as_me:$LINENO: result: yes" >&5
6576 echo "${ECHO_T}yes" >&6; }
6579 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6580 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6581 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6582 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6583 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6585 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6586 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6587 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6588 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6589 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6591 { echo "$as_me:$LINENO: result: no" >&5
6592 echo "${ECHO_T}no" >&6; }
6595 ## If we have a custom action on failure, don't print errors, but
6596 ## do set a variable so people can do so.
6597 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6604 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6605 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6609 if test $succeeded = yes; then
6615 if test $HAVE_ALSA = yes; then
6616 SAVE_CFLAGS
="$CFLAGS"
6617 SAVE_LDFLAGS
="$LDFLAGS"
6618 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6619 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6620 cat >conftest.
$ac_ext <<_ACEOF
6623 cat confdefs.h
>>conftest.
$ac_ext
6624 cat >>conftest.
$ac_ext <<_ACEOF
6625 /* end confdefs.h. */
6626 #include <asoundlib.h>
6630 snd_lib_error_set_handler (0);
6635 rm -f conftest.
$ac_objext
6636 if { (ac_try
="$ac_compile"
6638 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6639 *) ac_try_echo=$ac_try;;
6641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6642 (eval "$ac_compile") 2>conftest.er1
6644 grep -v '^ *+' conftest.er1 >conftest.err
6646 cat conftest.err >&5
6647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648 (exit $ac_status); } && {
6649 test -z "$ac_c_werror_flag" ||
6650 test ! -s conftest.err
6651 } && test -s conftest.$ac_objext; then
6652 emacs_alsa_normal=yes
6654 echo "$as_me: failed program was:" >&5
6655 sed 's/^/| /' conftest.$ac_ext >&5
6657 emacs_alsa_normal=no
6660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6661 if test "$emacs_alsa_normal" != yes; then
6662 cat >conftest.$ac_ext <<_ACEOF
6665 cat confdefs.h >>conftest.$ac_ext
6666 cat >>conftest.$ac_ext <<_ACEOF
6667 /* end confdefs.h. */
6668 #include <alsa/asoundlib.h>
6672 snd_lib_error_set_handler (0);
6677 rm -f conftest.$ac_objext
6678 if { (ac_try="$ac_compile"
6680 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6681 *) ac_try_echo
=$ac_try;;
6683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6684 (eval "$ac_compile") 2>conftest.er1
6686 grep -v '^ *+' conftest.er1
>conftest.err
6688 cat conftest.err
>&5
6689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6690 (exit $ac_status); } && {
6691 test -z "$ac_c_werror_flag" ||
6692 test ! -s conftest.err
6693 } && test -s conftest.
$ac_objext; then
6694 emacs_alsa_subdir
=yes
6696 echo "$as_me: failed program was:" >&5
6697 sed 's/^/| /' conftest.
$ac_ext >&5
6699 emacs_alsa_subdir
=no
6702 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6703 if test "$emacs_alsa_subdir" != yes; then
6704 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6705 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6706 { (exit 1); exit 1; }; }
6708 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6711 CFLAGS
="$SAVE_CFLAGS"
6712 LDFLAGS
="$SAVE_LDFLAGS"
6713 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6714 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6716 cat >>confdefs.h
<<\_ACEOF
6749 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6750 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6751 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6752 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6755 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6756 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6757 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6759 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6760 echo $ECHO_N "(cached) $ECHO_C" >&6
6762 ac_res
=`eval echo '${'$as_ac_Header'}'`
6763 { echo "$as_me:$LINENO: result: $ac_res" >&5
6764 echo "${ECHO_T}$ac_res" >&6; }
6766 # Is the header compilable?
6767 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6768 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6769 cat >conftest.
$ac_ext <<_ACEOF
6772 cat confdefs.h
>>conftest.
$ac_ext
6773 cat >>conftest.
$ac_ext <<_ACEOF
6774 /* end confdefs.h. */
6775 $ac_includes_default
6776 #include <$ac_header>
6778 rm -f conftest.
$ac_objext
6779 if { (ac_try
="$ac_compile"
6781 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6782 *) ac_try_echo=$ac_try;;
6784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6785 (eval "$ac_compile") 2>conftest.er1
6787 grep -v '^ *+' conftest.er1 >conftest.err
6789 cat conftest.err >&5
6790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6791 (exit $ac_status); } && {
6792 test -z "$ac_c_werror_flag" ||
6793 test ! -s conftest.err
6794 } && test -s conftest.$ac_objext; then
6795 ac_header_compiler=yes
6797 echo "$as_me: failed program was:" >&5
6798 sed 's/^/| /' conftest.$ac_ext >&5
6800 ac_header_compiler=no
6803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6804 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6805 echo "${ECHO_T}$ac_header_compiler" >&6; }
6807 # Is the header present?
6808 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6809 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6810 cat >conftest.$ac_ext <<_ACEOF
6813 cat confdefs.h >>conftest.$ac_ext
6814 cat >>conftest.$ac_ext <<_ACEOF
6815 /* end confdefs.h. */
6816 #include <$ac_header>
6818 if { (ac_try="$ac_cpp conftest.$ac_ext"
6820 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6821 *) ac_try_echo
=$ac_try;;
6823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6824 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6826 grep -v '^ *+' conftest.er1
>conftest.err
6828 cat conftest.err
>&5
6829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830 (exit $ac_status); } >/dev
/null
&& {
6831 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6832 test ! -s conftest.err
6834 ac_header_preproc
=yes
6836 echo "$as_me: failed program was:" >&5
6837 sed 's/^/| /' conftest.
$ac_ext >&5
6839 ac_header_preproc
=no
6842 rm -f conftest.err conftest.
$ac_ext
6843 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6844 echo "${ECHO_T}$ac_header_preproc" >&6; }
6846 # So? What about this header?
6847 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6849 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6850 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6851 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6852 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6853 ac_header_preproc
=yes
6856 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6857 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6858 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6859 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6860 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6861 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6862 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6863 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6864 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6865 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6866 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6867 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6871 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6872 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6873 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6874 echo $ECHO_N "(cached) $ECHO_C" >&6
6876 eval "$as_ac_Header=\$ac_header_preproc"
6878 ac_res
=`eval echo '${'$as_ac_Header'}'`
6879 { echo "$as_me:$LINENO: result: $ac_res" >&5
6880 echo "${ECHO_T}$ac_res" >&6; }
6883 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6884 cat >>confdefs.h
<<_ACEOF
6885 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6893 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6894 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6895 cat >conftest.
$ac_ext <<_ACEOF
6898 cat confdefs.h
>>conftest.
$ac_ext
6899 cat >>conftest.
$ac_ext <<_ACEOF
6900 /* end confdefs.h. */
6901 #include <sys/personality.h>
6905 personality (PER_LINUX32)
6910 rm -f conftest.
$ac_objext
6911 if { (ac_try
="$ac_compile"
6913 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6914 *) ac_try_echo=$ac_try;;
6916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6917 (eval "$ac_compile") 2>conftest.er1
6919 grep -v '^ *+' conftest.er1 >conftest.err
6921 cat conftest.err >&5
6922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6923 (exit $ac_status); } && {
6924 test -z "$ac_c_werror_flag" ||
6925 test ! -s conftest.err
6926 } && test -s conftest.$ac_objext; then
6927 emacs_cv_personality_linux32=yes
6929 echo "$as_me: failed program was:" >&5
6930 sed 's/^/| /' conftest.$ac_ext >&5
6932 emacs_cv_personality_linux32=no
6935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6936 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6937 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6939 if test $emacs_cv_personality_linux32 = yes; then
6941 cat >>confdefs.h <<\_ACEOF
6942 #define HAVE_PERSONALITY_LINUX32 1
6948 for ac_header in term.h
6950 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6951 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6952 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6953 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6954 echo $ECHO_N "(cached) $ECHO_C" >&6
6956 cat >conftest.$ac_ext <<_ACEOF
6959 cat confdefs.h >>conftest.$ac_ext
6960 cat >>conftest.$ac_ext <<_ACEOF
6961 /* end confdefs.h. */
6962 #include <$ac_header>
6964 if { (ac_try="$ac_cpp conftest.$ac_ext"
6966 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6967 *) ac_try_echo
=$ac_try;;
6969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6970 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6972 grep -v '^ *+' conftest.er1
>conftest.err
6974 cat conftest.err
>&5
6975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6976 (exit $ac_status); } >/dev
/null
&& {
6977 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6978 test ! -s conftest.err
6980 eval "$as_ac_Header=yes"
6982 echo "$as_me: failed program was:" >&5
6983 sed 's/^/| /' conftest.
$ac_ext >&5
6985 eval "$as_ac_Header=no"
6988 rm -f conftest.err conftest.
$ac_ext
6990 ac_res
=`eval echo '${'$as_ac_Header'}'`
6991 { echo "$as_me:$LINENO: result: $ac_res" >&5
6992 echo "${ECHO_T}$ac_res" >&6; }
6993 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6994 cat >>confdefs.h
<<_ACEOF
6995 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7002 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7003 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7004 if test "${ac_cv_header_stdc+set}" = set; then
7005 echo $ECHO_N "(cached) $ECHO_C" >&6
7007 cat >conftest.
$ac_ext <<_ACEOF
7010 cat confdefs.h
>>conftest.
$ac_ext
7011 cat >>conftest.
$ac_ext <<_ACEOF
7012 /* end confdefs.h. */
7026 rm -f conftest.
$ac_objext
7027 if { (ac_try
="$ac_compile"
7029 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7030 *) ac_try_echo=$ac_try;;
7032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7033 (eval "$ac_compile") 2>conftest.er1
7035 grep -v '^ *+' conftest.er1 >conftest.err
7037 cat conftest.err >&5
7038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7039 (exit $ac_status); } && {
7040 test -z "$ac_c_werror_flag" ||
7041 test ! -s conftest.err
7042 } && test -s conftest.$ac_objext; then
7043 ac_cv_header_stdc=yes
7045 echo "$as_me: failed program was:" >&5
7046 sed 's/^/| /' conftest.$ac_ext >&5
7048 ac_cv_header_stdc=no
7051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7053 if test $ac_cv_header_stdc = yes; then
7054 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7055 cat >conftest.$ac_ext <<_ACEOF
7058 cat confdefs.h >>conftest.$ac_ext
7059 cat >>conftest.$ac_ext <<_ACEOF
7060 /* end confdefs.h. */
7064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7065 $EGREP "memchr" >/dev/null 2>&1; then
7068 ac_cv_header_stdc=no
7074 if test $ac_cv_header_stdc = yes; then
7075 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7076 cat >conftest.$ac_ext <<_ACEOF
7079 cat confdefs.h >>conftest.$ac_ext
7080 cat >>conftest.$ac_ext <<_ACEOF
7081 /* end confdefs.h. */
7085 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7086 $EGREP "free" >/dev/null 2>&1; then
7089 ac_cv_header_stdc=no
7095 if test $ac_cv_header_stdc = yes; then
7096 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7097 if test "$cross_compiling" = yes; then
7100 cat >conftest.$ac_ext <<_ACEOF
7103 cat confdefs.h >>conftest.$ac_ext
7104 cat >>conftest.$ac_ext <<_ACEOF
7105 /* end confdefs.h. */
7108 #if ((' ' & 0x0FF) == 0x020)
7109 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7110 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7112 # define ISLOWER(c) \
7113 (('a' <= (c) && (c) <= 'i') \
7114 || ('j' <= (c) && (c) <= 'r') \
7115 || ('s' <= (c) && (c) <= 'z'))
7116 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7119 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7124 for (i = 0; i < 256; i++)
7125 if (XOR (islower (i), ISLOWER (i))
7126 || toupper (i) != TOUPPER (i))
7131 rm -f conftest$ac_exeext
7132 if { (ac_try="$ac_link"
7134 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7135 *) ac_try_echo
=$ac_try;;
7137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7138 (eval "$ac_link") 2>&5
7140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7141 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7142 { (case "(($ac_try" in
7143 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7144 *) ac_try_echo=$ac_try;;
7146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7147 (eval "$ac_try") 2>&5
7149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7150 (exit $ac_status); }; }; then
7153 echo "$as_me: program exited with status $ac_status" >&5
7154 echo "$as_me: failed program was:" >&5
7155 sed 's/^/| /' conftest.$ac_ext >&5
7158 ac_cv_header_stdc=no
7160 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7166 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7167 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7168 if test $ac_cv_header_stdc = yes; then
7170 cat >>confdefs.h <<\_ACEOF
7171 #define STDC_HEADERS 1
7176 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7177 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
7178 if test "${ac_cv_header_time+set}" = set; then
7179 echo $ECHO_N "(cached) $ECHO_C" >&6
7181 cat >conftest.$ac_ext <<_ACEOF
7184 cat confdefs.h >>conftest.$ac_ext
7185 cat >>conftest.$ac_ext <<_ACEOF
7186 /* end confdefs.h. */
7187 #include <sys/types.h>
7188 #include <sys/time.h>
7194 if ((struct tm *) 0)
7200 rm -f conftest.$ac_objext
7201 if { (ac_try="$ac_compile"
7203 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7204 *) ac_try_echo
=$ac_try;;
7206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7207 (eval "$ac_compile") 2>conftest.er1
7209 grep -v '^ *+' conftest.er1
>conftest.err
7211 cat conftest.err
>&5
7212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7213 (exit $ac_status); } && {
7214 test -z "$ac_c_werror_flag" ||
7215 test ! -s conftest.err
7216 } && test -s conftest.
$ac_objext; then
7217 ac_cv_header_time
=yes
7219 echo "$as_me: failed program was:" >&5
7220 sed 's/^/| /' conftest.
$ac_ext >&5
7222 ac_cv_header_time
=no
7225 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7227 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7228 echo "${ECHO_T}$ac_cv_header_time" >&6; }
7229 if test $ac_cv_header_time = yes; then
7231 cat >>confdefs.h
<<\_ACEOF
7232 #define TIME_WITH_SYS_TIME 1
7237 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7238 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
7239 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7240 echo $ECHO_N "(cached) $ECHO_C" >&6
7242 cat >conftest.
$ac_ext <<_ACEOF
7245 cat confdefs.h
>>conftest.
$ac_ext
7246 cat >>conftest.
$ac_ext <<_ACEOF
7247 /* end confdefs.h. */
7248 $ac_includes_default
7260 rm -f conftest.
$ac_objext
7261 if { (ac_try
="$ac_compile"
7263 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7264 *) ac_try_echo=$ac_try;;
7266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7267 (eval "$ac_compile") 2>conftest.er1
7269 grep -v '^ *+' conftest.er1 >conftest.err
7271 cat conftest.err >&5
7272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7273 (exit $ac_status); } && {
7274 test -z "$ac_c_werror_flag" ||
7275 test ! -s conftest.err
7276 } && test -s conftest.$ac_objext; then
7277 ac_cv_have_decl_sys_siglist=yes
7279 echo "$as_me: failed program was:" >&5
7280 sed 's/^/| /' conftest.$ac_ext >&5
7282 ac_cv_have_decl_sys_siglist=no
7285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7287 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7288 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7289 if test $ac_cv_have_decl_sys_siglist = yes; then
7291 cat >>confdefs.h <<_ACEOF
7292 #define HAVE_DECL_SYS_SIGLIST 1
7297 cat >>confdefs.h <<_ACEOF
7298 #define HAVE_DECL_SYS_SIGLIST 0
7305 if test $ac_cv_have_decl_sys_siglist != yes; then
7306 # For Tru64, at least:
7307 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7308 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7309 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7310 echo $ECHO_N "(cached) $ECHO_C" >&6
7312 cat >conftest.$ac_ext <<_ACEOF
7315 cat confdefs.h >>conftest.$ac_ext
7316 cat >>conftest.$ac_ext <<_ACEOF
7317 /* end confdefs.h. */
7318 $ac_includes_default
7322 #ifndef __sys_siglist
7323 (void) __sys_siglist;
7330 rm -f conftest.$ac_objext
7331 if { (ac_try="$ac_compile"
7333 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7334 *) ac_try_echo
=$ac_try;;
7336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7337 (eval "$ac_compile") 2>conftest.er1
7339 grep -v '^ *+' conftest.er1
>conftest.err
7341 cat conftest.err
>&5
7342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7343 (exit $ac_status); } && {
7344 test -z "$ac_c_werror_flag" ||
7345 test ! -s conftest.err
7346 } && test -s conftest.
$ac_objext; then
7347 ac_cv_have_decl___sys_siglist
=yes
7349 echo "$as_me: failed program was:" >&5
7350 sed 's/^/| /' conftest.
$ac_ext >&5
7352 ac_cv_have_decl___sys_siglist
=no
7355 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7357 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7358 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7359 if test $ac_cv_have_decl___sys_siglist = yes; then
7361 cat >>confdefs.h
<<_ACEOF
7362 #define HAVE_DECL___SYS_SIGLIST 1
7367 cat >>confdefs.h
<<_ACEOF
7368 #define HAVE_DECL___SYS_SIGLIST 0
7375 if test $ac_cv_have_decl___sys_siglist = yes; then
7377 cat >>confdefs.h
<<\_ACEOF
7378 #define sys_siglist __sys_siglist
7383 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7384 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7385 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7386 echo $ECHO_N "(cached) $ECHO_C" >&6
7388 cat >conftest.
$ac_ext <<_ACEOF
7391 cat confdefs.h
>>conftest.
$ac_ext
7392 cat >>conftest.
$ac_ext <<_ACEOF
7393 /* end confdefs.h. */
7394 #include <sys/types.h>
7395 #include <sys/wait.h>
7397 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7400 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7408 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7413 rm -f conftest.
$ac_objext
7414 if { (ac_try
="$ac_compile"
7416 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7417 *) ac_try_echo=$ac_try;;
7419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7420 (eval "$ac_compile") 2>conftest.er1
7422 grep -v '^ *+' conftest.er1 >conftest.err
7424 cat conftest.err >&5
7425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7426 (exit $ac_status); } && {
7427 test -z "$ac_c_werror_flag" ||
7428 test ! -s conftest.err
7429 } && test -s conftest.$ac_objext; then
7430 ac_cv_header_sys_wait_h=yes
7432 echo "$as_me: failed program was:" >&5
7433 sed 's/^/| /' conftest.$ac_ext >&5
7435 ac_cv_header_sys_wait_h=no
7438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7440 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7441 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7442 if test $ac_cv_header_sys_wait_h = yes; then
7444 cat >>confdefs.h <<\_ACEOF
7445 #define HAVE_SYS_WAIT_H 1
7451 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7452 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7453 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7454 echo $ECHO_N "(cached) $ECHO_C" >&6
7456 cat >conftest.$ac_ext <<_ACEOF
7459 cat confdefs.h >>conftest.$ac_ext
7460 cat >>conftest.$ac_ext <<_ACEOF
7461 /* end confdefs.h. */
7462 #ifdef TIME_WITH_SYS_TIME
7463 #include <sys/time.h>
7466 #ifdef HAVE_SYS_TIME_H
7467 #include <sys/time.h>
7478 static struct utimbuf x; x.actime = x.modtime;
7483 rm -f conftest.$ac_objext
7484 if { (ac_try="$ac_compile"
7486 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7487 *) ac_try_echo
=$ac_try;;
7489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7490 (eval "$ac_compile") 2>conftest.er1
7492 grep -v '^ *+' conftest.er1
>conftest.err
7494 cat conftest.err
>&5
7495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7496 (exit $ac_status); } && {
7497 test -z "$ac_c_werror_flag" ||
7498 test ! -s conftest.err
7499 } && test -s conftest.
$ac_objext; then
7500 emacs_cv_struct_utimbuf
=yes
7502 echo "$as_me: failed program was:" >&5
7503 sed 's/^/| /' conftest.
$ac_ext >&5
7505 emacs_cv_struct_utimbuf
=no
7508 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7510 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7511 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7512 if test $emacs_cv_struct_utimbuf = yes; then
7514 cat >>confdefs.h
<<\_ACEOF
7515 #define HAVE_STRUCT_UTIMBUF 1
7520 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7521 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7522 if test "${ac_cv_type_signal+set}" = set; then
7523 echo $ECHO_N "(cached) $ECHO_C" >&6
7525 cat >conftest.
$ac_ext <<_ACEOF
7528 cat confdefs.h
>>conftest.
$ac_ext
7529 cat >>conftest.
$ac_ext <<_ACEOF
7530 /* end confdefs.h. */
7531 #include <sys/types.h>
7537 return *(signal (0, 0)) (0) == 1;
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 ac_cv_type_signal=int
7561 echo "$as_me: failed program was:" >&5
7562 sed 's/^/| /' conftest.$ac_ext >&5
7564 ac_cv_type_signal=void
7567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7569 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7570 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7572 cat >>confdefs.h <<_ACEOF
7573 #define RETSIGTYPE $ac_cv_type_signal
7578 { echo "$as_me:$LINENO: checking for speed_t" >&5
7579 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7580 if test "${emacs_cv_speed_t+set}" = set; then
7581 echo $ECHO_N "(cached) $ECHO_C" >&6
7583 cat >conftest.$ac_ext <<_ACEOF
7586 cat confdefs.h >>conftest.$ac_ext
7587 cat >>conftest.$ac_ext <<_ACEOF
7588 /* end confdefs.h. */
7589 #include <termios.h>
7598 rm -f conftest.$ac_objext
7599 if { (ac_try="$ac_compile"
7601 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7602 *) ac_try_echo
=$ac_try;;
7604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7605 (eval "$ac_compile") 2>conftest.er1
7607 grep -v '^ *+' conftest.er1
>conftest.err
7609 cat conftest.err
>&5
7610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7611 (exit $ac_status); } && {
7612 test -z "$ac_c_werror_flag" ||
7613 test ! -s conftest.err
7614 } && test -s conftest.
$ac_objext; then
7615 emacs_cv_speed_t
=yes
7617 echo "$as_me: failed program was:" >&5
7618 sed 's/^/| /' conftest.
$ac_ext >&5
7623 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7625 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7626 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7627 if test $emacs_cv_speed_t = yes; then
7629 cat >>confdefs.h
<<\_ACEOF
7630 #define HAVE_SPEED_T 1
7635 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7636 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7637 if test "${emacs_cv_struct_timeval+set}" = set; then
7638 echo $ECHO_N "(cached) $ECHO_C" >&6
7640 cat >conftest.
$ac_ext <<_ACEOF
7643 cat confdefs.h
>>conftest.
$ac_ext
7644 cat >>conftest.
$ac_ext <<_ACEOF
7645 /* end confdefs.h. */
7646 #ifdef TIME_WITH_SYS_TIME
7647 #include <sys/time.h>
7650 #ifdef HAVE_SYS_TIME_H
7651 #include <sys/time.h>
7659 static struct timeval x; x.tv_sec = x.tv_usec;
7664 rm -f conftest.
$ac_objext
7665 if { (ac_try
="$ac_compile"
7667 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7668 *) ac_try_echo=$ac_try;;
7670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7671 (eval "$ac_compile") 2>conftest.er1
7673 grep -v '^ *+' conftest.er1 >conftest.err
7675 cat conftest.err >&5
7676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7677 (exit $ac_status); } && {
7678 test -z "$ac_c_werror_flag" ||
7679 test ! -s conftest.err
7680 } && test -s conftest.$ac_objext; then
7681 emacs_cv_struct_timeval=yes
7683 echo "$as_me: failed program was:" >&5
7684 sed 's/^/| /' conftest.$ac_ext >&5
7686 emacs_cv_struct_timeval=no
7689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7691 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7692 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7693 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7694 if test $emacs_cv_struct_timeval = yes; then
7696 cat >>confdefs.h <<\_ACEOF
7697 #define HAVE_TIMEVAL 1
7702 { echo "$as_me:$LINENO: checking for struct exception" >&5
7703 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7704 if test "${emacs_cv_struct_exception+set}" = set; then
7705 echo $ECHO_N "(cached) $ECHO_C" >&6
7707 cat >conftest.$ac_ext <<_ACEOF
7710 cat confdefs.h >>conftest.$ac_ext
7711 cat >>conftest.$ac_ext <<_ACEOF
7712 /* end confdefs.h. */
7717 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7722 rm -f conftest.$ac_objext
7723 if { (ac_try="$ac_compile"
7725 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7726 *) ac_try_echo
=$ac_try;;
7728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7729 (eval "$ac_compile") 2>conftest.er1
7731 grep -v '^ *+' conftest.er1
>conftest.err
7733 cat conftest.err
>&5
7734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7735 (exit $ac_status); } && {
7736 test -z "$ac_c_werror_flag" ||
7737 test ! -s conftest.err
7738 } && test -s conftest.
$ac_objext; then
7739 emacs_cv_struct_exception
=yes
7741 echo "$as_me: failed program was:" >&5
7742 sed 's/^/| /' conftest.
$ac_ext >&5
7744 emacs_cv_struct_exception
=no
7747 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7749 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7750 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7751 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7752 if test $emacs_cv_struct_exception != yes; then
7754 cat >>confdefs.h
<<\_ACEOF
7755 #define NO_MATHERR 1
7761 for ac_header
in sys
/socket.h
7763 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7764 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7765 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7767 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7768 echo $ECHO_N "(cached) $ECHO_C" >&6
7770 ac_res
=`eval echo '${'$as_ac_Header'}'`
7771 { echo "$as_me:$LINENO: result: $ac_res" >&5
7772 echo "${ECHO_T}$ac_res" >&6; }
7774 # Is the header compilable?
7775 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7776 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7777 cat >conftest.
$ac_ext <<_ACEOF
7780 cat confdefs.h
>>conftest.
$ac_ext
7781 cat >>conftest.
$ac_ext <<_ACEOF
7782 /* end confdefs.h. */
7783 $ac_includes_default
7784 #include <$ac_header>
7786 rm -f conftest.
$ac_objext
7787 if { (ac_try
="$ac_compile"
7789 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7790 *) ac_try_echo=$ac_try;;
7792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7793 (eval "$ac_compile") 2>conftest.er1
7795 grep -v '^ *+' conftest.er1 >conftest.err
7797 cat conftest.err >&5
7798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7799 (exit $ac_status); } && {
7800 test -z "$ac_c_werror_flag" ||
7801 test ! -s conftest.err
7802 } && test -s conftest.$ac_objext; then
7803 ac_header_compiler=yes
7805 echo "$as_me: failed program was:" >&5
7806 sed 's/^/| /' conftest.$ac_ext >&5
7808 ac_header_compiler=no
7811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7812 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7813 echo "${ECHO_T}$ac_header_compiler" >&6; }
7815 # Is the header present?
7816 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7817 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7818 cat >conftest.$ac_ext <<_ACEOF
7821 cat confdefs.h >>conftest.$ac_ext
7822 cat >>conftest.$ac_ext <<_ACEOF
7823 /* end confdefs.h. */
7824 #include <$ac_header>
7826 if { (ac_try="$ac_cpp conftest.$ac_ext"
7828 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7829 *) ac_try_echo
=$ac_try;;
7831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7832 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7834 grep -v '^ *+' conftest.er1
>conftest.err
7836 cat conftest.err
>&5
7837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838 (exit $ac_status); } >/dev
/null
&& {
7839 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7840 test ! -s conftest.err
7842 ac_header_preproc
=yes
7844 echo "$as_me: failed program was:" >&5
7845 sed 's/^/| /' conftest.
$ac_ext >&5
7847 ac_header_preproc
=no
7850 rm -f conftest.err conftest.
$ac_ext
7851 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7852 echo "${ECHO_T}$ac_header_preproc" >&6; }
7854 # So? What about this header?
7855 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7857 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7858 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7859 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7860 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7861 ac_header_preproc
=yes
7864 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7865 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7866 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7867 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7868 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7869 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7870 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7871 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7872 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7873 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7874 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7875 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7879 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7880 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7881 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7882 echo $ECHO_N "(cached) $ECHO_C" >&6
7884 eval "$as_ac_Header=\$ac_header_preproc"
7886 ac_res
=`eval echo '${'$as_ac_Header'}'`
7887 { echo "$as_me:$LINENO: result: $ac_res" >&5
7888 echo "${ECHO_T}$ac_res" >&6; }
7891 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7892 cat >>confdefs.h
<<_ACEOF
7893 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7901 for ac_header
in net
/if.h
7903 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7904 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7906 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7907 echo $ECHO_N "(cached) $ECHO_C" >&6
7909 cat >conftest.
$ac_ext <<_ACEOF
7912 cat confdefs.h
>>conftest.
$ac_ext
7913 cat >>conftest.
$ac_ext <<_ACEOF
7914 /* end confdefs.h. */
7915 $ac_includes_default
7916 #if HAVE_SYS_SOCKET_H
7917 #include <sys/socket.h>
7920 #include <$ac_header>
7922 rm -f conftest.
$ac_objext
7923 if { (ac_try
="$ac_compile"
7925 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7926 *) ac_try_echo=$ac_try;;
7928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7929 (eval "$ac_compile") 2>conftest.er1
7931 grep -v '^ *+' conftest.er1 >conftest.err
7933 cat conftest.err >&5
7934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7935 (exit $ac_status); } && {
7936 test -z "$ac_c_werror_flag" ||
7937 test ! -s conftest.err
7938 } && test -s conftest.$ac_objext; then
7939 eval "$as_ac_Header=yes"
7941 echo "$as_me: failed program was:" >&5
7942 sed 's/^/| /' conftest.$ac_ext >&5
7944 eval "$as_ac_Header=no"
7947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7949 ac_res=`eval echo '${'$as_ac_Header'}'`
7950 { echo "$as_me:$LINENO: result: $ac_res" >&5
7951 echo "${ECHO_T}$ac_res" >&6; }
7952 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7953 cat >>confdefs.h <<_ACEOF
7954 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7962 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7963 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7964 if test "${ac_cv_struct_tm+set}" = set; then
7965 echo $ECHO_N "(cached) $ECHO_C" >&6
7967 cat >conftest.$ac_ext <<_ACEOF
7970 cat confdefs.h >>conftest.$ac_ext
7971 cat >>conftest.$ac_ext <<_ACEOF
7972 /* end confdefs.h. */
7973 #include <sys/types.h>
7980 int *p = &tm.tm_sec;
7986 rm -f conftest.$ac_objext
7987 if { (ac_try="$ac_compile"
7989 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7990 *) ac_try_echo
=$ac_try;;
7992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7993 (eval "$ac_compile") 2>conftest.er1
7995 grep -v '^ *+' conftest.er1
>conftest.err
7997 cat conftest.err
>&5
7998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7999 (exit $ac_status); } && {
8000 test -z "$ac_c_werror_flag" ||
8001 test ! -s conftest.err
8002 } && test -s conftest.
$ac_objext; then
8003 ac_cv_struct_tm
=time.h
8005 echo "$as_me: failed program was:" >&5
8006 sed 's/^/| /' conftest.
$ac_ext >&5
8008 ac_cv_struct_tm
=sys
/time.h
8011 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8013 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8014 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
8015 if test $ac_cv_struct_tm = sys
/time.h
; then
8017 cat >>confdefs.h
<<\_ACEOF
8018 #define TM_IN_SYS_TIME 1
8023 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
8024 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
8025 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
8026 echo $ECHO_N "(cached) $ECHO_C" >&6
8028 cat >conftest.
$ac_ext <<_ACEOF
8031 cat confdefs.h
>>conftest.
$ac_ext
8032 cat >>conftest.
$ac_ext <<_ACEOF
8033 /* end confdefs.h. */
8034 #include <sys/types.h>
8035 #include <$ac_cv_struct_tm>
8041 static struct tm ac_aggr;
8042 if (ac_aggr.tm_zone)
8048 rm -f conftest.
$ac_objext
8049 if { (ac_try
="$ac_compile"
8051 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8052 *) ac_try_echo=$ac_try;;
8054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8055 (eval "$ac_compile") 2>conftest.er1
8057 grep -v '^ *+' conftest.er1 >conftest.err
8059 cat conftest.err >&5
8060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061 (exit $ac_status); } && {
8062 test -z "$ac_c_werror_flag" ||
8063 test ! -s conftest.err
8064 } && test -s conftest.$ac_objext; then
8065 ac_cv_member_struct_tm_tm_zone=yes
8067 echo "$as_me: failed program was:" >&5
8068 sed 's/^/| /' conftest.$ac_ext >&5
8070 cat >conftest.$ac_ext <<_ACEOF
8073 cat confdefs.h >>conftest.$ac_ext
8074 cat >>conftest.$ac_ext <<_ACEOF
8075 /* end confdefs.h. */
8076 #include <sys/types.h>
8077 #include <$ac_cv_struct_tm>
8083 static struct tm ac_aggr;
8084 if (sizeof ac_aggr.tm_zone)
8090 rm -f conftest.$ac_objext
8091 if { (ac_try="$ac_compile"
8093 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8094 *) ac_try_echo
=$ac_try;;
8096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8097 (eval "$ac_compile") 2>conftest.er1
8099 grep -v '^ *+' conftest.er1
>conftest.err
8101 cat conftest.err
>&5
8102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103 (exit $ac_status); } && {
8104 test -z "$ac_c_werror_flag" ||
8105 test ! -s conftest.err
8106 } && test -s conftest.
$ac_objext; then
8107 ac_cv_member_struct_tm_tm_zone
=yes
8109 echo "$as_me: failed program was:" >&5
8110 sed 's/^/| /' conftest.
$ac_ext >&5
8112 ac_cv_member_struct_tm_tm_zone
=no
8115 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8118 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8120 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8121 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
8122 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8124 cat >>confdefs.h
<<_ACEOF
8125 #define HAVE_STRUCT_TM_TM_ZONE 1
8131 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8133 cat >>confdefs.h
<<\_ACEOF
8134 #define HAVE_TM_ZONE 1
8138 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8139 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
8140 if test "${ac_cv_have_decl_tzname+set}" = set; then
8141 echo $ECHO_N "(cached) $ECHO_C" >&6
8143 cat >conftest.
$ac_ext <<_ACEOF
8146 cat confdefs.h
>>conftest.
$ac_ext
8147 cat >>conftest.
$ac_ext <<_ACEOF
8148 /* end confdefs.h. */
8162 rm -f conftest.
$ac_objext
8163 if { (ac_try
="$ac_compile"
8165 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8166 *) ac_try_echo=$ac_try;;
8168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8169 (eval "$ac_compile") 2>conftest.er1
8171 grep -v '^ *+' conftest.er1 >conftest.err
8173 cat conftest.err >&5
8174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175 (exit $ac_status); } && {
8176 test -z "$ac_c_werror_flag" ||
8177 test ! -s conftest.err
8178 } && test -s conftest.$ac_objext; then
8179 ac_cv_have_decl_tzname=yes
8181 echo "$as_me: failed program was:" >&5
8182 sed 's/^/| /' conftest.$ac_ext >&5
8184 ac_cv_have_decl_tzname=no
8187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8189 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8190 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
8191 if test $ac_cv_have_decl_tzname = yes; then
8193 cat >>confdefs.h <<_ACEOF
8194 #define HAVE_DECL_TZNAME 1
8199 cat >>confdefs.h <<_ACEOF
8200 #define HAVE_DECL_TZNAME 0
8207 { echo "$as_me:$LINENO: checking for tzname" >&5
8208 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
8209 if test "${ac_cv_var_tzname+set}" = set; then
8210 echo $ECHO_N "(cached) $ECHO_C" >&6
8212 cat >conftest.$ac_ext <<_ACEOF
8215 cat confdefs.h >>conftest.$ac_ext
8216 cat >>conftest.$ac_ext <<_ACEOF
8217 /* end confdefs.h. */
8219 #if !HAVE_DECL_TZNAME
8220 extern char *tzname[];
8226 return tzname[0][0];
8231 rm -f conftest.$ac_objext conftest$ac_exeext
8232 if { (ac_try="$ac_link"
8234 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8235 *) ac_try_echo
=$ac_try;;
8237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8238 (eval "$ac_link") 2>conftest.er1
8240 grep -v '^ *+' conftest.er1
>conftest.err
8242 cat conftest.err
>&5
8243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244 (exit $ac_status); } && {
8245 test -z "$ac_c_werror_flag" ||
8246 test ! -s conftest.err
8247 } && test -s conftest
$ac_exeext &&
8248 $as_test_x conftest
$ac_exeext; then
8249 ac_cv_var_tzname
=yes
8251 echo "$as_me: failed program was:" >&5
8252 sed 's/^/| /' conftest.
$ac_ext >&5
8257 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8258 conftest
$ac_exeext conftest.
$ac_ext
8260 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8261 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
8262 if test $ac_cv_var_tzname = yes; then
8264 cat >>confdefs.h
<<\_ACEOF
8265 #define HAVE_TZNAME 1
8271 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8272 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
8273 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8274 echo $ECHO_N "(cached) $ECHO_C" >&6
8276 cat >conftest.
$ac_ext <<_ACEOF
8279 cat confdefs.h
>>conftest.
$ac_ext
8280 cat >>conftest.
$ac_ext <<_ACEOF
8281 /* end confdefs.h. */
8287 static struct tm ac_aggr;
8288 if (ac_aggr.tm_gmtoff)
8294 rm -f conftest.
$ac_objext
8295 if { (ac_try
="$ac_compile"
8297 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8298 *) ac_try_echo=$ac_try;;
8300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8301 (eval "$ac_compile") 2>conftest.er1
8303 grep -v '^ *+' conftest.er1 >conftest.err
8305 cat conftest.err >&5
8306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307 (exit $ac_status); } && {
8308 test -z "$ac_c_werror_flag" ||
8309 test ! -s conftest.err
8310 } && test -s conftest.$ac_objext; then
8311 ac_cv_member_struct_tm_tm_gmtoff=yes
8313 echo "$as_me: failed program was:" >&5
8314 sed 's/^/| /' conftest.$ac_ext >&5
8316 cat >conftest.$ac_ext <<_ACEOF
8319 cat confdefs.h >>conftest.$ac_ext
8320 cat >>conftest.$ac_ext <<_ACEOF
8321 /* end confdefs.h. */
8327 static struct tm ac_aggr;
8328 if (sizeof ac_aggr.tm_gmtoff)
8334 rm -f conftest.$ac_objext
8335 if { (ac_try="$ac_compile"
8337 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8338 *) ac_try_echo
=$ac_try;;
8340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8341 (eval "$ac_compile") 2>conftest.er1
8343 grep -v '^ *+' conftest.er1
>conftest.err
8345 cat conftest.err
>&5
8346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347 (exit $ac_status); } && {
8348 test -z "$ac_c_werror_flag" ||
8349 test ! -s conftest.err
8350 } && test -s conftest.
$ac_objext; then
8351 ac_cv_member_struct_tm_tm_gmtoff
=yes
8353 echo "$as_me: failed program was:" >&5
8354 sed 's/^/| /' conftest.
$ac_ext >&5
8356 ac_cv_member_struct_tm_tm_gmtoff
=no
8359 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8362 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8364 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8365 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8366 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8368 cat >>confdefs.h
<<\_ACEOF
8369 #define HAVE_TM_GMTOFF 1
8374 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8375 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8376 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8377 echo $ECHO_N "(cached) $ECHO_C" >&6
8379 cat >conftest.
$ac_ext <<_ACEOF
8382 cat confdefs.h
>>conftest.
$ac_ext
8383 cat >>conftest.
$ac_ext <<_ACEOF
8384 /* end confdefs.h. */
8385 $ac_includes_default
8386 #if HAVE_SYS_SOCKET_H
8387 #include <sys/socket.h>
8396 static struct ifreq ac_aggr;
8397 if (ac_aggr.ifr_flags)
8403 rm -f conftest.
$ac_objext
8404 if { (ac_try
="$ac_compile"
8406 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8407 *) ac_try_echo=$ac_try;;
8409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8410 (eval "$ac_compile") 2>conftest.er1
8412 grep -v '^ *+' conftest.er1 >conftest.err
8414 cat conftest.err >&5
8415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416 (exit $ac_status); } && {
8417 test -z "$ac_c_werror_flag" ||
8418 test ! -s conftest.err
8419 } && test -s conftest.$ac_objext; then
8420 ac_cv_member_struct_ifreq_ifr_flags=yes
8422 echo "$as_me: failed program was:" >&5
8423 sed 's/^/| /' conftest.$ac_ext >&5
8425 cat >conftest.$ac_ext <<_ACEOF
8428 cat confdefs.h >>conftest.$ac_ext
8429 cat >>conftest.$ac_ext <<_ACEOF
8430 /* end confdefs.h. */
8431 $ac_includes_default
8432 #if HAVE_SYS_SOCKET_H
8433 #include <sys/socket.h>
8442 static struct ifreq ac_aggr;
8443 if (sizeof ac_aggr.ifr_flags)
8449 rm -f conftest.$ac_objext
8450 if { (ac_try="$ac_compile"
8452 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8453 *) ac_try_echo
=$ac_try;;
8455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8456 (eval "$ac_compile") 2>conftest.er1
8458 grep -v '^ *+' conftest.er1
>conftest.err
8460 cat conftest.err
>&5
8461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462 (exit $ac_status); } && {
8463 test -z "$ac_c_werror_flag" ||
8464 test ! -s conftest.err
8465 } && test -s conftest.
$ac_objext; then
8466 ac_cv_member_struct_ifreq_ifr_flags
=yes
8468 echo "$as_me: failed program was:" >&5
8469 sed 's/^/| /' conftest.
$ac_ext >&5
8471 ac_cv_member_struct_ifreq_ifr_flags
=no
8474 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8477 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8479 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8480 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8481 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8483 cat >>confdefs.h
<<_ACEOF
8484 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8489 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8490 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8491 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8492 echo $ECHO_N "(cached) $ECHO_C" >&6
8494 cat >conftest.
$ac_ext <<_ACEOF
8497 cat confdefs.h
>>conftest.
$ac_ext
8498 cat >>conftest.
$ac_ext <<_ACEOF
8499 /* end confdefs.h. */
8500 $ac_includes_default
8501 #if HAVE_SYS_SOCKET_H
8502 #include <sys/socket.h>
8511 static struct ifreq ac_aggr;
8512 if (ac_aggr.ifr_hwaddr)
8518 rm -f conftest.
$ac_objext
8519 if { (ac_try
="$ac_compile"
8521 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8522 *) ac_try_echo=$ac_try;;
8524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8525 (eval "$ac_compile") 2>conftest.er1
8527 grep -v '^ *+' conftest.er1 >conftest.err
8529 cat conftest.err >&5
8530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531 (exit $ac_status); } && {
8532 test -z "$ac_c_werror_flag" ||
8533 test ! -s conftest.err
8534 } && test -s conftest.$ac_objext; then
8535 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8537 echo "$as_me: failed program was:" >&5
8538 sed 's/^/| /' conftest.$ac_ext >&5
8540 cat >conftest.$ac_ext <<_ACEOF
8543 cat confdefs.h >>conftest.$ac_ext
8544 cat >>conftest.$ac_ext <<_ACEOF
8545 /* end confdefs.h. */
8546 $ac_includes_default
8547 #if HAVE_SYS_SOCKET_H
8548 #include <sys/socket.h>
8557 static struct ifreq ac_aggr;
8558 if (sizeof ac_aggr.ifr_hwaddr)
8564 rm -f conftest.$ac_objext
8565 if { (ac_try="$ac_compile"
8567 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8568 *) ac_try_echo
=$ac_try;;
8570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8571 (eval "$ac_compile") 2>conftest.er1
8573 grep -v '^ *+' conftest.er1
>conftest.err
8575 cat conftest.err
>&5
8576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577 (exit $ac_status); } && {
8578 test -z "$ac_c_werror_flag" ||
8579 test ! -s conftest.err
8580 } && test -s conftest.
$ac_objext; then
8581 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8583 echo "$as_me: failed program was:" >&5
8584 sed 's/^/| /' conftest.
$ac_ext >&5
8586 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8589 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8592 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8594 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8595 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8596 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8598 cat >>confdefs.h
<<_ACEOF
8599 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8604 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8605 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8606 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8607 echo $ECHO_N "(cached) $ECHO_C" >&6
8609 cat >conftest.
$ac_ext <<_ACEOF
8612 cat confdefs.h
>>conftest.
$ac_ext
8613 cat >>conftest.
$ac_ext <<_ACEOF
8614 /* end confdefs.h. */
8615 $ac_includes_default
8616 #if HAVE_SYS_SOCKET_H
8617 #include <sys/socket.h>
8626 static struct ifreq ac_aggr;
8627 if (ac_aggr.ifr_netmask)
8633 rm -f conftest.
$ac_objext
8634 if { (ac_try
="$ac_compile"
8636 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8637 *) ac_try_echo=$ac_try;;
8639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8640 (eval "$ac_compile") 2>conftest.er1
8642 grep -v '^ *+' conftest.er1 >conftest.err
8644 cat conftest.err >&5
8645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8646 (exit $ac_status); } && {
8647 test -z "$ac_c_werror_flag" ||
8648 test ! -s conftest.err
8649 } && test -s conftest.$ac_objext; then
8650 ac_cv_member_struct_ifreq_ifr_netmask=yes
8652 echo "$as_me: failed program was:" >&5
8653 sed 's/^/| /' conftest.$ac_ext >&5
8655 cat >conftest.$ac_ext <<_ACEOF
8658 cat confdefs.h >>conftest.$ac_ext
8659 cat >>conftest.$ac_ext <<_ACEOF
8660 /* end confdefs.h. */
8661 $ac_includes_default
8662 #if HAVE_SYS_SOCKET_H
8663 #include <sys/socket.h>
8672 static struct ifreq ac_aggr;
8673 if (sizeof ac_aggr.ifr_netmask)
8679 rm -f conftest.$ac_objext
8680 if { (ac_try="$ac_compile"
8682 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8683 *) ac_try_echo
=$ac_try;;
8685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8686 (eval "$ac_compile") 2>conftest.er1
8688 grep -v '^ *+' conftest.er1
>conftest.err
8690 cat conftest.err
>&5
8691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692 (exit $ac_status); } && {
8693 test -z "$ac_c_werror_flag" ||
8694 test ! -s conftest.err
8695 } && test -s conftest.
$ac_objext; then
8696 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8698 echo "$as_me: failed program was:" >&5
8699 sed 's/^/| /' conftest.
$ac_ext >&5
8701 ac_cv_member_struct_ifreq_ifr_netmask
=no
8704 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8707 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8709 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8710 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8711 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8713 cat >>confdefs.h
<<_ACEOF
8714 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8719 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8720 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8721 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8722 echo $ECHO_N "(cached) $ECHO_C" >&6
8724 cat >conftest.
$ac_ext <<_ACEOF
8727 cat confdefs.h
>>conftest.
$ac_ext
8728 cat >>conftest.
$ac_ext <<_ACEOF
8729 /* end confdefs.h. */
8730 $ac_includes_default
8731 #if HAVE_SYS_SOCKET_H
8732 #include <sys/socket.h>
8741 static struct ifreq ac_aggr;
8742 if (ac_aggr.ifr_broadaddr)
8748 rm -f conftest.
$ac_objext
8749 if { (ac_try
="$ac_compile"
8751 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8752 *) ac_try_echo=$ac_try;;
8754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8755 (eval "$ac_compile") 2>conftest.er1
8757 grep -v '^ *+' conftest.er1 >conftest.err
8759 cat conftest.err >&5
8760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8761 (exit $ac_status); } && {
8762 test -z "$ac_c_werror_flag" ||
8763 test ! -s conftest.err
8764 } && test -s conftest.$ac_objext; then
8765 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8767 echo "$as_me: failed program was:" >&5
8768 sed 's/^/| /' conftest.$ac_ext >&5
8770 cat >conftest.$ac_ext <<_ACEOF
8773 cat confdefs.h >>conftest.$ac_ext
8774 cat >>conftest.$ac_ext <<_ACEOF
8775 /* end confdefs.h. */
8776 $ac_includes_default
8777 #if HAVE_SYS_SOCKET_H
8778 #include <sys/socket.h>
8787 static struct ifreq ac_aggr;
8788 if (sizeof ac_aggr.ifr_broadaddr)
8794 rm -f conftest.$ac_objext
8795 if { (ac_try="$ac_compile"
8797 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8798 *) ac_try_echo
=$ac_try;;
8800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8801 (eval "$ac_compile") 2>conftest.er1
8803 grep -v '^ *+' conftest.er1
>conftest.err
8805 cat conftest.err
>&5
8806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807 (exit $ac_status); } && {
8808 test -z "$ac_c_werror_flag" ||
8809 test ! -s conftest.err
8810 } && test -s conftest.
$ac_objext; then
8811 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
8813 echo "$as_me: failed program was:" >&5
8814 sed 's/^/| /' conftest.
$ac_ext >&5
8816 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
8819 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8822 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8824 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8825 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8826 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8828 cat >>confdefs.h
<<_ACEOF
8829 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8834 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8835 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8836 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8837 echo $ECHO_N "(cached) $ECHO_C" >&6
8839 cat >conftest.
$ac_ext <<_ACEOF
8842 cat confdefs.h
>>conftest.
$ac_ext
8843 cat >>conftest.
$ac_ext <<_ACEOF
8844 /* end confdefs.h. */
8845 $ac_includes_default
8846 #if HAVE_SYS_SOCKET_H
8847 #include <sys/socket.h>
8856 static struct ifreq ac_aggr;
8857 if (ac_aggr.ifr_addr)
8863 rm -f conftest.
$ac_objext
8864 if { (ac_try
="$ac_compile"
8866 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8867 *) ac_try_echo=$ac_try;;
8869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8870 (eval "$ac_compile") 2>conftest.er1
8872 grep -v '^ *+' conftest.er1 >conftest.err
8874 cat conftest.err >&5
8875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8876 (exit $ac_status); } && {
8877 test -z "$ac_c_werror_flag" ||
8878 test ! -s conftest.err
8879 } && test -s conftest.$ac_objext; then
8880 ac_cv_member_struct_ifreq_ifr_addr=yes
8882 echo "$as_me: failed program was:" >&5
8883 sed 's/^/| /' conftest.$ac_ext >&5
8885 cat >conftest.$ac_ext <<_ACEOF
8888 cat confdefs.h >>conftest.$ac_ext
8889 cat >>conftest.$ac_ext <<_ACEOF
8890 /* end confdefs.h. */
8891 $ac_includes_default
8892 #if HAVE_SYS_SOCKET_H
8893 #include <sys/socket.h>
8902 static struct ifreq ac_aggr;
8903 if (sizeof ac_aggr.ifr_addr)
8909 rm -f conftest.$ac_objext
8910 if { (ac_try="$ac_compile"
8912 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8913 *) ac_try_echo
=$ac_try;;
8915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8916 (eval "$ac_compile") 2>conftest.er1
8918 grep -v '^ *+' conftest.er1
>conftest.err
8920 cat conftest.err
>&5
8921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922 (exit $ac_status); } && {
8923 test -z "$ac_c_werror_flag" ||
8924 test ! -s conftest.err
8925 } && test -s conftest.
$ac_objext; then
8926 ac_cv_member_struct_ifreq_ifr_addr
=yes
8928 echo "$as_me: failed program was:" >&5
8929 sed 's/^/| /' conftest.
$ac_ext >&5
8931 ac_cv_member_struct_ifreq_ifr_addr
=no
8934 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8937 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8939 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8940 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8941 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8943 cat >>confdefs.h
<<_ACEOF
8944 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8952 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8953 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8954 if test "$ac_cv_prog_cc_c89" != no
; then
8955 { echo "$as_me:$LINENO: result: yes" >&5
8956 echo "${ECHO_T}yes" >&6; }
8958 cat >>confdefs.h
<<\_ACEOF
8959 #define PROTOTYPES 1
8963 cat >>confdefs.h
<<\_ACEOF
8964 #define __PROTOTYPES 1
8968 { echo "$as_me:$LINENO: result: no" >&5
8969 echo "${ECHO_T}no" >&6; }
8972 { echo "$as_me:$LINENO: checking for working volatile" >&5
8973 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8974 if test "${ac_cv_c_volatile+set}" = set; then
8975 echo $ECHO_N "(cached) $ECHO_C" >&6
8977 cat >conftest.
$ac_ext <<_ACEOF
8980 cat confdefs.h
>>conftest.
$ac_ext
8981 cat >>conftest.
$ac_ext <<_ACEOF
8982 /* end confdefs.h. */
8989 int * volatile y = (int *) 0;
8995 rm -f conftest.
$ac_objext
8996 if { (ac_try
="$ac_compile"
8998 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8999 *) ac_try_echo=$ac_try;;
9001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9002 (eval "$ac_compile") 2>conftest.er1
9004 grep -v '^ *+' conftest.er1 >conftest.err
9006 cat conftest.err >&5
9007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008 (exit $ac_status); } && {
9009 test -z "$ac_c_werror_flag" ||
9010 test ! -s conftest.err
9011 } && test -s conftest.$ac_objext; then
9012 ac_cv_c_volatile=yes
9014 echo "$as_me: failed program was:" >&5
9015 sed 's/^/| /' conftest.$ac_ext >&5
9020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9022 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9023 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
9024 if test $ac_cv_c_volatile = no; then
9026 cat >>confdefs.h <<\_ACEOF
9032 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9033 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9034 if test "${ac_cv_c_const+set}" = set; then
9035 echo $ECHO_N "(cached) $ECHO_C" >&6
9037 cat >conftest.$ac_ext <<_ACEOF
9040 cat confdefs.h >>conftest.$ac_ext
9041 cat >>conftest.$ac_ext <<_ACEOF
9042 /* end confdefs.h. */
9047 /* FIXME: Include the comments suggested by Paul. */
9049 /* Ultrix mips cc rejects this. */
9050 typedef int charset[2];
9052 /* SunOS 4.1.1 cc rejects this. */
9053 char const *const *pcpcc;
9055 /* NEC SVR4.0.2 mips cc rejects this. */
9056 struct point {int x, y;};
9057 static struct point const zero = {0,0};
9058 /* AIX XL C 1.02.0.0 rejects this.
9059 It does not let you subtract one const X* pointer from another in
9060 an arm of an if-expression whose if-part is not a constant
9062 const char *g = "string";
9063 pcpcc = &g + (g ? g-g : 0);
9064 /* HPUX 7.0 cc rejects these. */
9066 ppc = (char**) pcpcc;
9067 pcpcc = (char const *const *) ppc;
9068 { /* SCO 3.2v4 cc rejects this. */
9070 char const *s = 0 ? (char *) 0 : (char const *) 0;
9075 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9077 const int *foo = &x[0];
9080 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9081 typedef const int *iptr;
9085 { /* AIX XL C 1.02.0.0 rejects this saying
9086 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9087 struct s { int j; const int *ap[3]; };
9088 struct s *b; b->j = 5;
9090 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9094 return !cs[0] && !zero.x;
9101 rm -f conftest.$ac_objext
9102 if { (ac_try="$ac_compile"
9104 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9105 *) ac_try_echo
=$ac_try;;
9107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9108 (eval "$ac_compile") 2>conftest.er1
9110 grep -v '^ *+' conftest.er1
>conftest.err
9112 cat conftest.err
>&5
9113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9114 (exit $ac_status); } && {
9115 test -z "$ac_c_werror_flag" ||
9116 test ! -s conftest.err
9117 } && test -s conftest.
$ac_objext; then
9120 echo "$as_me: failed program was:" >&5
9121 sed 's/^/| /' conftest.
$ac_ext >&5
9126 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9128 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9129 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9130 if test $ac_cv_c_const = no
; then
9132 cat >>confdefs.h
<<\_ACEOF
9138 { echo "$as_me:$LINENO: checking for void * support" >&5
9139 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
9140 if test "${emacs_cv_void_star+set}" = set; then
9141 echo $ECHO_N "(cached) $ECHO_C" >&6
9143 cat >conftest.
$ac_ext <<_ACEOF
9146 cat confdefs.h
>>conftest.
$ac_ext
9147 cat >>conftest.
$ac_ext <<_ACEOF
9148 /* end confdefs.h. */
9158 rm -f conftest.
$ac_objext
9159 if { (ac_try
="$ac_compile"
9161 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9162 *) ac_try_echo=$ac_try;;
9164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9165 (eval "$ac_compile") 2>conftest.er1
9167 grep -v '^ *+' conftest.er1 >conftest.err
9169 cat conftest.err >&5
9170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9171 (exit $ac_status); } && {
9172 test -z "$ac_c_werror_flag" ||
9173 test ! -s conftest.err
9174 } && test -s conftest.$ac_objext; then
9175 emacs_cv_void_star=yes
9177 echo "$as_me: failed program was:" >&5
9178 sed 's/^/| /' conftest.$ac_ext >&5
9180 emacs_cv_void_star=no
9183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9185 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9186 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
9187 if test $emacs_cv_void_star = yes; then
9188 cat >>confdefs.h <<\_ACEOF
9189 #define POINTER_TYPE void
9193 cat >>confdefs.h <<\_ACEOF
9194 #define POINTER_TYPE char
9203 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9204 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
9205 set x ${MAKE-make}; ac_make=`echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9206 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9207 echo $ECHO_N "(cached) $ECHO_C" >&6
9209 cat >conftest.make <<\_ACEOF
9212 @echo '@@@%%%=$(MAKE)=@@@%%%'
9214 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9215 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
9217 eval ac_cv_prog_make_${ac_make}_set=yes;;
9219 eval ac_cv_prog_make_${ac_make}_set=no;;
9223 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9224 { echo "$as_me:$LINENO: result: yes" >&5
9225 echo "${ECHO_T}yes" >&6; }
9228 { echo "$as_me:$LINENO: result: no" >&5
9229 echo "${ECHO_T}no" >&6; }
9230 SET_MAKE="MAKE=${MAKE-make}"
9234 { echo "$as_me:$LINENO: checking for long file names" >&5
9235 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
9236 if test "${ac_cv_sys_long_file_names+set}" = set; then
9237 echo $ECHO_N "(cached) $ECHO_C" >&6
9239 ac_cv_sys_long_file_names=yes
9240 # Test for long file names in all the places we know might matter:
9241 # . the current directory, where building will happen
9242 # $prefix/lib where we will be installing things
9243 # $exec_prefix/lib likewise
9244 # $TMPDIR if set, where it might want to write temporary files
9245 # /tmp where it might want to write temporary files
9248 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9249 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9250 # in the usual case where exec_prefix is '${prefix}'.
9252 . | /* | ?:[\\/]*) ;; #(
9255 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9256 ac_xdir=$ac_dir/cf$$
9257 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9258 ac_tf1=$ac_xdir/conftest9012345
9259 ac_tf2=$ac_xdir/conftest9012346
9260 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9261 ac_cv_sys_long_file_names=no
9262 rm -f -r "$ac_xdir" 2>/dev/null
9263 test $ac_cv_sys_long_file_names = no && break
9266 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9267 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9268 if test $ac_cv_sys_long_file_names = yes; then
9270 cat >>confdefs.h <<\_ACEOF
9271 #define HAVE_LONG_FILE_NAMES 1
9277 #### Choose a window system.
9279 { echo "$as_me:$LINENO: checking for X" >&5
9280 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9283 # Check whether --with-x was given.
9284 if test "${with_x+set}" = set; then
9288 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9289 if test "x$with_x" = xno; then
9290 # The user explicitly disabled X.
9293 case $x_includes,$x_libraries in #(
9294 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9295 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9296 { (exit 1); exit 1; }; };; #(
9297 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9298 echo $ECHO_N "(cached) $ECHO_C" >&6
9300 # One or both of the vars are not set, and there is no cached value.
9301 ac_x_includes=no ac_x_libraries=no
9302 rm -f -r conftest.dir
9303 if mkdir conftest.dir; then
9305 cat >Imakefile <<'_ACEOF'
9307 @echo incroot='${INCROOT}'
9309 @echo usrlibdir='${USRLIBDIR}'
9311 @echo libdir='${LIBDIR}'
9313 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9314 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9315 for ac_var in incroot usrlibdir libdir; do
9316 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
9318 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9319 for ac_extension in a so sl; do
9320 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9321 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9322 ac_im_usrlibdir=$ac_im_libdir; break
9325 # Screen out bogus values from the imake configuration. They are
9326 # bogus both because they are the default anyway, and because
9327 # using them would break gcc on systems where it needs fixed includes.
9328 case $ac_im_incroot in
9329 /usr/include) ac_x_includes= ;;
9330 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9332 case $ac_im_usrlibdir in
9334 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9338 rm -f -r conftest.dir
9341 # Standard set of common directories for X headers.
9342 # Check X11 before X11Rn because it is often a symlink to the current release.
9354 /usr/local/X11/include
9355 /usr/local/X11R6/include
9356 /usr/local/X11R5/include
9357 /usr/local/X11R4/include
9359 /usr/local/include/X11
9360 /usr/local/include/X11R6
9361 /usr/local/include/X11R5
9362 /usr/local/include/X11R4
9366 /usr/XFree86/include/X11
9370 /usr/unsupported/include
9372 /usr/local/x11r5/include
9373 /usr/lpp/Xamples/include
9375 /usr/openwin/include
9376 /usr/openwin/share/include'
9378 if test "$ac_x_includes" = no; then
9379 # Guess where to find include files, by looking for Xlib.h.
9380 # First, try using that file with no special directory specified.
9381 cat >conftest.$ac_ext <<_ACEOF
9384 cat confdefs.h >>conftest.$ac_ext
9385 cat >>conftest.$ac_ext <<_ACEOF
9386 /* end confdefs.h. */
9387 #include <X11/Xlib.h>
9389 if { (ac_try="$ac_cpp conftest.$ac_ext"
9391 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9392 *) ac_try_echo
=$ac_try;;
9394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9395 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9397 grep -v '^ *+' conftest.er1
>conftest.err
9399 cat conftest.err
>&5
9400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401 (exit $ac_status); } >/dev
/null
&& {
9402 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9403 test ! -s conftest.err
9405 # We can compile using X headers with no special include directory.
9408 echo "$as_me: failed program was:" >&5
9409 sed 's/^/| /' conftest.
$ac_ext >&5
9411 for ac_dir
in $ac_x_header_dirs; do
9412 if test -r "$ac_dir/X11/Xlib.h"; then
9413 ac_x_includes
=$ac_dir
9419 rm -f conftest.err conftest.
$ac_ext
9420 fi # $ac_x_includes = no
9422 if test "$ac_x_libraries" = no
; then
9423 # Check for the libraries.
9424 # See if we find them without any special options.
9425 # Don't add to $LIBS permanently.
9428 cat >conftest.
$ac_ext <<_ACEOF
9431 cat confdefs.h
>>conftest.
$ac_ext
9432 cat >>conftest.
$ac_ext <<_ACEOF
9433 /* end confdefs.h. */
9434 #include <X11/Xlib.h>
9443 rm -f conftest.
$ac_objext conftest
$ac_exeext
9444 if { (ac_try
="$ac_link"
9446 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9447 *) ac_try_echo=$ac_try;;
9449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9450 (eval "$ac_link") 2>conftest.er1
9452 grep -v '^ *+' conftest.er1 >conftest.err
9454 cat conftest.err >&5
9455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9456 (exit $ac_status); } && {
9457 test -z "$ac_c_werror_flag" ||
9458 test ! -s conftest.err
9459 } && test -s conftest$ac_exeext &&
9460 $as_test_x conftest$ac_exeext; then
9462 # We can link X programs with no special library path.
9465 echo "$as_me: failed program was:" >&5
9466 sed 's/^/| /' conftest.$ac_ext >&5
9469 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
9471 # Don't even attempt the hair of trying to link an X program!
9472 for ac_extension in a so sl; do
9473 if test -r "$ac_dir/libX11.$ac_extension"; then
9474 ac_x_libraries=$ac_dir
9481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9482 conftest$ac_exeext conftest.$ac_ext
9483 fi # $ac_x_libraries = no
9485 case $ac_x_includes,$ac_x_libraries in #(
9487 # Didn't find X, or a directory has "'" in its name.
9488 ac_cv_have_x="have_x=no";; #(
9490 # Record where we found X for the cache.
9491 ac_cv_have_x="have_x=yes\
9492 ac_x_includes='$ac_x_includes'\
9493 ac_x_libraries='$ac_x_libraries'"
9499 eval "$ac_cv_have_x"
9502 if test "$have_x" != yes; then
9503 { echo "$as_me:$LINENO: result: $have_x" >&5
9504 echo "${ECHO_T}$have_x" >&6; }
9507 # If each of the values was on the command line, it overrides each guess.
9508 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9509 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9510 # Update the cache value to reflect the command line values.
9511 ac_cv_have_x="have_x=yes\
9512 ac_x_includes='$x_includes'\
9513 ac_x_libraries='$x_libraries'"
9514 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9515 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9518 if test "$no_x" = yes; then
9524 if test "${x_libraries}" != NONE; then
9525 if test -n "${x_libraries}"; then
9526 LD_SWITCH_X_SITE=-L`echo ${x_libraries} |
sed -e "s/:/ -L/g"`
9527 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} |
sed -e "s/:/ -R/g"`
9529 x_default_search_path=""
9530 x_search_path=${x_libraries}
9531 if test -z "${x_search_path}"; then
9532 x_search_path=/usr/lib
9534 for x_library in `echo ${x_search_path}: | \
9535 sed -e "s/:/ /g" -e p
-e "s:/lib[^ /]* :/share :g"`; do
9537 ${x_library}/X11/%L/%T/%N%C%S:\
9538 ${x_library}/X11/%l/%T/%N%C%S:\
9539 ${x_library}/X11/%T/%N%C%S:\
9540 ${x_library}/X11/%L/%T/%N%S:\
9541 ${x_library}/X11/%l/%T/%N%S:\
9542 ${x_library}/X11/%T/%N%S"
9543 if test x"${x_default_search_path}" = x; then
9544 x_default_search_path=${x_search_path}
9546 x_default_search_path="${x_search_path}:${x_default_search_path}"
9550 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9551 C_SWITCH_X_SITE=-I`echo ${x_includes} |
sed -e "s/:/ -I/g"`
9554 if test x"${x_includes}" = x; then
9555 bitmapdir=/usr/include/X11/bitmaps
9557 # accumulate include directories that have X11 bitmap subdirectories
9559 for bmd in `echo ${x_includes} |
sed -e "s/:/ /g"`; do
9560 if test -d "${bmd}/X11/bitmaps"; then
9561 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9563 if test -d "${bmd}/bitmaps"; then
9564 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9567 if test ${bmd_acc} != "dummyval"; then
9568 bitmapdir=`echo ${bmd_acc} |
sed -e "s/^dummyval://"`
9573 if test "${with_carbon}" != no; then
9574 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9575 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9576 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9577 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9578 echo $ECHO_N "(cached) $ECHO_C" >&6
9580 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9581 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9583 # Is the header compilable?
9584 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9585 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9586 cat >conftest.$ac_ext <<_ACEOF
9589 cat confdefs.h >>conftest.$ac_ext
9590 cat >>conftest.$ac_ext <<_ACEOF
9591 /* end confdefs.h. */
9592 $ac_includes_default
9593 #include <Carbon/Carbon.h>
9595 rm -f conftest.$ac_objext
9596 if { (ac_try="$ac_compile"
9598 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9599 *) ac_try_echo
=$ac_try;;
9601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9602 (eval "$ac_compile") 2>conftest.er1
9604 grep -v '^ *+' conftest.er1
>conftest.err
9606 cat conftest.err
>&5
9607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608 (exit $ac_status); } && {
9609 test -z "$ac_c_werror_flag" ||
9610 test ! -s conftest.err
9611 } && test -s conftest.
$ac_objext; then
9612 ac_header_compiler
=yes
9614 echo "$as_me: failed program was:" >&5
9615 sed 's/^/| /' conftest.
$ac_ext >&5
9617 ac_header_compiler
=no
9620 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9621 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9622 echo "${ECHO_T}$ac_header_compiler" >&6; }
9624 # Is the header present?
9625 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9626 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9627 cat >conftest.
$ac_ext <<_ACEOF
9630 cat confdefs.h
>>conftest.
$ac_ext
9631 cat >>conftest.
$ac_ext <<_ACEOF
9632 /* end confdefs.h. */
9633 #include <Carbon/Carbon.h>
9635 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9637 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9638 *) ac_try_echo=$ac_try;;
9640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9641 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9643 grep -v '^ *+' conftest.er1 >conftest.err
9645 cat conftest.err >&5
9646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9647 (exit $ac_status); } >/dev/null && {
9648 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9649 test ! -s conftest.err
9651 ac_header_preproc=yes
9653 echo "$as_me: failed program was:" >&5
9654 sed 's/^/| /' conftest.$ac_ext >&5
9656 ac_header_preproc=no
9659 rm -f conftest.err conftest.$ac_ext
9660 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9661 echo "${ECHO_T}$ac_header_preproc" >&6; }
9663 # So? What about this header?
9664 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9666 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9667 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9668 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9669 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9670 ac_header_preproc=yes
9673 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9674 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9675 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9676 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9677 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9678 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9679 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9680 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9681 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9682 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9683 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9684 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9688 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9689 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9690 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9691 echo $ECHO_N "(cached) $ECHO_C" >&6
9693 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9695 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9696 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9699 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9705 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9706 if test "${with_carbon+set}" != set \
9707 && test "${carbon_appdir_x+set}" != set; then
9708 for var in with_x with_x_toolkit with_gtk with_xim \
9709 with_xpm with_jpeg with_tiff with_gif with_png; do
9710 if eval test \"\${$var+set}\" = set; then
9717 if test "${HAVE_CARBON}" = yes; then
9721 case "${window_system}" in
9725 case "${with_x_toolkit}" in
9726 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9727 motif ) USE_X_TOOLKIT=MOTIF ;;
9729 USE_X_TOOLKIT=none ;;
9730 no ) USE_X_TOOLKIT=none ;;
9732 if test x"$with_gtk" = xyes; then
9747 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9748 # Extract the first word of "X", so it can be a program name with args.
9749 set dummy X; ac_word=$2
9750 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9752 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9753 echo $ECHO_N "(cached) $ECHO_C" >&6
9755 if test -n "$HAVE_XSERVER"; then
9756 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9762 test -z "$as_dir" && as_dir=.
9763 for ac_exec_ext in '' $ac_executable_extensions; do
9764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9765 ac_cv_prog_HAVE_XSERVER="true"
9766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9773 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9776 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9777 if test -n "$HAVE_XSERVER"; then
9778 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9779 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9781 { echo "$as_me:$LINENO: result: no" >&5
9782 echo "${ECHO_T}no" >&6; }
9786 if test "$HAVE_XSERVER" = true ||
9787 test -n "$DISPLAY" ||
9788 test "`echo /usr
/lib
/libX11.
*`" != "/usr/lib/libX11.*"; then
9789 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9790 were found. You should install the relevant development files for X
9791 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9792 sure you have development files for image handling, i.e.
9793 tiff, gif, jpeg, png and xpm.
9794 If you are sure you want Emacs compiled without X window support, pass
9797 echo "$as_me: error: You seem to be running X, but no X development libraries
9798 were found. You should install the relevant development files for X
9799 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9800 sure you have development files for image handling, i.e.
9801 tiff, gif, jpeg, png and xpm.
9802 If you are sure you want Emacs compiled without X window support, pass
9804 to configure." >&2;}
9805 { (exit 1); exit 1; }; }
9809 ### If we're using X11, we should use the X menu package.
9812 yes ) HAVE_MENUS=yes ;;
9815 if test "${opsys}" = "hpux9"; then
9816 case "${x_libraries}" in
9818 opsysfile="s/hpux9-x11r4.h"
9823 if test "${opsys}" = "hpux9shr"; then
9824 case "${x_libraries}" in
9826 opsysfile="s/hpux9shxr4.h"
9831 ### Compute the unexec source name from the object name.
9832 UNEXEC_SRC="`echo ${unexec} |
sed 's/\.o/.c/'`"
9834 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9835 # Assume not, until told otherwise.
9838 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9839 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9840 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9841 echo $ECHO_N "(cached) $ECHO_C" >&6
9843 cat >conftest.$ac_ext <<_ACEOF
9846 cat confdefs.h >>conftest.$ac_ext
9847 cat >>conftest.$ac_ext <<_ACEOF
9848 /* end confdefs.h. */
9849 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9850 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9851 #define malloc_get_state innocuous_malloc_get_state
9853 /* System header to define __stub macros and hopefully few prototypes,
9854 which can conflict with char malloc_get_state (); below.
9855 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9856 <limits.h> exists even on freestanding compilers. */
9859 # include <limits.h>
9861 # include <assert.h>
9864 #undef malloc_get_state
9866 /* Override any GCC internal prototype to avoid an error.
9867 Use char because int might match the return type of a GCC
9868 builtin and then its argument prototype would still apply. */
9872 char malloc_get_state ();
9873 /* The GNU C library defines this for functions which it implements
9874 to always fail with ENOSYS. Some functions are actually named
9875 something starting with __ and the normal name is an alias. */
9876 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9883 return malloc_get_state ();
9888 rm -f conftest.$ac_objext conftest$ac_exeext
9889 if { (ac_try="$ac_link"
9891 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9892 *) ac_try_echo
=$ac_try;;
9894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9895 (eval "$ac_link") 2>conftest.er1
9897 grep -v '^ *+' conftest.er1
>conftest.err
9899 cat conftest.err
>&5
9900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901 (exit $ac_status); } && {
9902 test -z "$ac_c_werror_flag" ||
9903 test ! -s conftest.err
9904 } && test -s conftest
$ac_exeext &&
9905 $as_test_x conftest
$ac_exeext; then
9906 ac_cv_func_malloc_get_state
=yes
9908 echo "$as_me: failed program was:" >&5
9909 sed 's/^/| /' conftest.
$ac_ext >&5
9911 ac_cv_func_malloc_get_state
=no
9914 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9915 conftest
$ac_exeext conftest.
$ac_ext
9917 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9918 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9919 if test $ac_cv_func_malloc_get_state = yes; then
9925 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9926 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9927 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9928 echo $ECHO_N "(cached) $ECHO_C" >&6
9930 cat >conftest.
$ac_ext <<_ACEOF
9933 cat confdefs.h
>>conftest.
$ac_ext
9934 cat >>conftest.
$ac_ext <<_ACEOF
9935 /* end confdefs.h. */
9936 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9937 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9938 #define malloc_set_state innocuous_malloc_set_state
9940 /* System header to define __stub macros and hopefully few prototypes,
9941 which can conflict with char malloc_set_state (); below.
9942 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9943 <limits.h> exists even on freestanding compilers. */
9946 # include <limits.h>
9948 # include <assert.h>
9951 #undef malloc_set_state
9953 /* Override any GCC internal prototype to avoid an error.
9954 Use char because int might match the return type of a GCC
9955 builtin and then its argument prototype would still apply. */
9959 char malloc_set_state ();
9960 /* The GNU C library defines this for functions which it implements
9961 to always fail with ENOSYS. Some functions are actually named
9962 something starting with __ and the normal name is an alias. */
9963 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9970 return malloc_set_state ();
9975 rm -f conftest.
$ac_objext conftest
$ac_exeext
9976 if { (ac_try
="$ac_link"
9978 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9979 *) ac_try_echo=$ac_try;;
9981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9982 (eval "$ac_link") 2>conftest.er1
9984 grep -v '^ *+' conftest.er1 >conftest.err
9986 cat conftest.err >&5
9987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988 (exit $ac_status); } && {
9989 test -z "$ac_c_werror_flag" ||
9990 test ! -s conftest.err
9991 } && test -s conftest$ac_exeext &&
9992 $as_test_x conftest$ac_exeext; then
9993 ac_cv_func_malloc_set_state=yes
9995 echo "$as_me: failed program was:" >&5
9996 sed 's/^/| /' conftest.$ac_ext >&5
9998 ac_cv_func_malloc_set_state=no
10001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10002 conftest$ac_exeext conftest.$ac_ext
10004 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
10005 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
10006 if test $ac_cv_func_malloc_set_state = yes; then
10012 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
10013 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
10014 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
10015 echo $ECHO_N "(cached) $ECHO_C" >&6
10017 cat >conftest.$ac_ext <<_ACEOF
10020 cat confdefs.h >>conftest.$ac_ext
10021 cat >>conftest.$ac_ext <<_ACEOF
10022 /* end confdefs.h. */
10023 extern void (* __after_morecore_hook)();
10027 __after_morecore_hook = 0
10032 rm -f conftest.$ac_objext conftest$ac_exeext
10033 if { (ac_try="$ac_link"
10034 case "(($ac_try" in
10035 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10036 *) ac_try_echo
=$ac_try;;
10038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10039 (eval "$ac_link") 2>conftest.er1
10041 grep -v '^ *+' conftest.er1
>conftest.err
10043 cat conftest.err
>&5
10044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045 (exit $ac_status); } && {
10046 test -z "$ac_c_werror_flag" ||
10047 test ! -s conftest.err
10048 } && test -s conftest
$ac_exeext &&
10049 $as_test_x conftest
$ac_exeext; then
10050 emacs_cv_var___after_morecore_hook
=yes
10052 echo "$as_me: failed program was:" >&5
10053 sed 's/^/| /' conftest.
$ac_ext >&5
10055 emacs_cv_var___after_morecore_hook
=no
10058 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10059 conftest
$ac_exeext conftest.
$ac_ext
10061 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
10062 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
10063 if test $emacs_cv_var___after_morecore_hook = no
; then
10066 if test "${system_malloc}" = "yes"; then
10068 GNU_MALLOC_reason
="
10069 (The GNU allocators don't work with this system configuration.)"
10071 if test "$doug_lea_malloc" = "yes" ; then
10072 if test "$GNU_MALLOC" = yes ; then
10073 GNU_MALLOC_reason
="
10074 (Using Doug Lea's new malloc from the GNU C Library.)"
10077 cat >>confdefs.h
<<\_ACEOF
10078 #define DOUG_LEA_MALLOC 1
10083 if test x
"${REL_ALLOC}" = x
; then
10084 REL_ALLOC
=${GNU_MALLOC}
10090 for ac_header
in stdlib.h unistd.h
10092 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10093 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10094 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10095 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10096 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10097 echo $ECHO_N "(cached) $ECHO_C" >&6
10099 ac_res
=`eval echo '${'$as_ac_Header'}'`
10100 { echo "$as_me:$LINENO: result: $ac_res" >&5
10101 echo "${ECHO_T}$ac_res" >&6; }
10103 # Is the header compilable?
10104 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10105 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10106 cat >conftest.
$ac_ext <<_ACEOF
10109 cat confdefs.h
>>conftest.
$ac_ext
10110 cat >>conftest.
$ac_ext <<_ACEOF
10111 /* end confdefs.h. */
10112 $ac_includes_default
10113 #include <$ac_header>
10115 rm -f conftest.
$ac_objext
10116 if { (ac_try
="$ac_compile"
10117 case "(($ac_try" in
10118 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10119 *) ac_try_echo=$ac_try;;
10121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10122 (eval "$ac_compile") 2>conftest.er1
10124 grep -v '^ *+' conftest.er1 >conftest.err
10126 cat conftest.err >&5
10127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128 (exit $ac_status); } && {
10129 test -z "$ac_c_werror_flag" ||
10130 test ! -s conftest.err
10131 } && test -s conftest.$ac_objext; then
10132 ac_header_compiler=yes
10134 echo "$as_me: failed program was:" >&5
10135 sed 's/^/| /' conftest.$ac_ext >&5
10137 ac_header_compiler=no
10140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10141 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10142 echo "${ECHO_T}$ac_header_compiler" >&6; }
10144 # Is the header present?
10145 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10146 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10147 cat >conftest.$ac_ext <<_ACEOF
10150 cat confdefs.h >>conftest.$ac_ext
10151 cat >>conftest.$ac_ext <<_ACEOF
10152 /* end confdefs.h. */
10153 #include <$ac_header>
10155 if { (ac_try="$ac_cpp conftest.$ac_ext"
10156 case "(($ac_try" in
10157 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10158 *) ac_try_echo
=$ac_try;;
10160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10161 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10163 grep -v '^ *+' conftest.er1
>conftest.err
10165 cat conftest.err
>&5
10166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10167 (exit $ac_status); } >/dev
/null
&& {
10168 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10169 test ! -s conftest.err
10171 ac_header_preproc
=yes
10173 echo "$as_me: failed program was:" >&5
10174 sed 's/^/| /' conftest.
$ac_ext >&5
10176 ac_header_preproc
=no
10179 rm -f conftest.err conftest.
$ac_ext
10180 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10181 echo "${ECHO_T}$ac_header_preproc" >&6; }
10183 # So? What about this header?
10184 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10186 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10187 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10188 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10189 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10190 ac_header_preproc
=yes
10193 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10194 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10195 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10196 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10197 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10198 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10199 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10200 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10201 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10202 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10203 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10204 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10208 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10209 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10210 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10211 echo $ECHO_N "(cached) $ECHO_C" >&6
10213 eval "$as_ac_Header=\$ac_header_preproc"
10215 ac_res
=`eval echo '${'$as_ac_Header'}'`
10216 { echo "$as_me:$LINENO: result: $ac_res" >&5
10217 echo "${ECHO_T}$ac_res" >&6; }
10220 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10221 cat >>confdefs.h
<<_ACEOF
10222 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10230 for ac_func
in getpagesize
10232 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10233 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10234 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10235 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10236 echo $ECHO_N "(cached) $ECHO_C" >&6
10238 cat >conftest.
$ac_ext <<_ACEOF
10241 cat confdefs.h
>>conftest.
$ac_ext
10242 cat >>conftest.
$ac_ext <<_ACEOF
10243 /* end confdefs.h. */
10244 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10245 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10246 #define $ac_func innocuous_$ac_func
10248 /* System header to define __stub macros and hopefully few prototypes,
10249 which can conflict with char $ac_func (); below.
10250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10251 <limits.h> exists even on freestanding compilers. */
10254 # include <limits.h>
10256 # include <assert.h>
10261 /* Override any GCC internal prototype to avoid an error.
10262 Use char because int might match the return type of a GCC
10263 builtin and then its argument prototype would still apply. */
10268 /* The GNU C library defines this for functions which it implements
10269 to always fail with ENOSYS. Some functions are actually named
10270 something starting with __ and the normal name is an alias. */
10271 #if defined __stub_$ac_func || defined __stub___$ac_func
10278 return $ac_func ();
10283 rm -f conftest.
$ac_objext conftest
$ac_exeext
10284 if { (ac_try
="$ac_link"
10285 case "(($ac_try" in
10286 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10287 *) ac_try_echo=$ac_try;;
10289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10290 (eval "$ac_link") 2>conftest.er1
10292 grep -v '^ *+' conftest.er1 >conftest.err
10294 cat conftest.err >&5
10295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296 (exit $ac_status); } && {
10297 test -z "$ac_c_werror_flag" ||
10298 test ! -s conftest.err
10299 } && test -s conftest$ac_exeext &&
10300 $as_test_x conftest$ac_exeext; then
10301 eval "$as_ac_var=yes"
10303 echo "$as_me: failed program was:" >&5
10304 sed 's/^/| /' conftest.$ac_ext >&5
10306 eval "$as_ac_var=no"
10309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10310 conftest$ac_exeext conftest.$ac_ext
10312 ac_res=`eval echo '${'$as_ac_var'}'`
10313 { echo "$as_me:$LINENO: result: $ac_res" >&5
10314 echo "${ECHO_T}$ac_res" >&6; }
10315 if test `eval echo '${'$as_ac_var'}'` = yes; then
10316 cat >>confdefs.h <<_ACEOF
10317 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10323 { echo "$as_me:$LINENO: checking for working mmap" >&5
10324 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10325 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10326 echo $ECHO_N "(cached) $ECHO_C" >&6
10328 if test "$cross_compiling" = yes; then
10329 ac_cv_func_mmap_fixed_mapped=no
10331 cat >conftest.$ac_ext <<_ACEOF
10334 cat confdefs.h >>conftest.$ac_ext
10335 cat >>conftest.$ac_ext <<_ACEOF
10336 /* end confdefs.h. */
10337 $ac_includes_default
10338 /* malloc might have been renamed as rpl_malloc. */
10341 /* Thanks to Mike Haertel and Jim Avera for this test.
10342 Here is a matrix of mmap possibilities:
10343 mmap private not fixed
10344 mmap private fixed at somewhere currently unmapped
10345 mmap private fixed at somewhere already mapped
10346 mmap shared not fixed
10347 mmap shared fixed at somewhere currently unmapped
10348 mmap shared fixed at somewhere already mapped
10349 For private mappings, we should verify that changes cannot be read()
10350 back from the file, nor mmap's back from the file at a different
10351 address. (There have been systems where private was not correctly
10352 implemented like the infamous i386 svr4.0, and systems where the
10353 VM page cache was not coherent with the file system buffer cache
10354 like early versions of FreeBSD and possibly contemporary NetBSD.)
10355 For shared mappings, we should conversely verify that changes get
10356 propagated back to all the places they're supposed to be.
10358 Grep wants private fixed already mapped.
10359 The main things grep needs to know about mmap are:
10360 * does it exist and is it safe to write into the mmap'd area
10361 * how to use it (BSD variants) */
10364 #include <sys/mman.h>
10366 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10370 /* This mess was copied from the GNU getpagesize.h. */
10371 #ifndef HAVE_GETPAGESIZE
10372 /* Assume that all systems that can run configure have sys/param.h. */
10373 # ifndef HAVE_SYS_PARAM_H
10374 # define HAVE_SYS_PARAM_H 1
10377 # ifdef _SC_PAGESIZE
10378 # define getpagesize() sysconf(_SC_PAGESIZE)
10379 # else /* no _SC_PAGESIZE */
10380 # ifdef HAVE_SYS_PARAM_H
10381 # include <sys/param.h>
10382 # ifdef EXEC_PAGESIZE
10383 # define getpagesize() EXEC_PAGESIZE
10384 # else /* no EXEC_PAGESIZE */
10386 # define getpagesize() NBPG * CLSIZE
10389 # endif /* no CLSIZE */
10390 # else /* no NBPG */
10392 # define getpagesize() NBPC
10393 # else /* no NBPC */
10395 # define getpagesize() PAGESIZE
10396 # endif /* PAGESIZE */
10397 # endif /* no NBPC */
10398 # endif /* no NBPG */
10399 # endif /* no EXEC_PAGESIZE */
10400 # else /* no HAVE_SYS_PARAM_H */
10401 # define getpagesize() 8192 /* punt totally */
10402 # endif /* no HAVE_SYS_PARAM_H */
10403 # endif /* no _SC_PAGESIZE */
10405 #endif /* no HAVE_GETPAGESIZE */
10410 char *data, *data2, *data3;
10414 pagesize = getpagesize ();
10416 /* First, make a file with some known garbage in it. */
10417 data = (char *) malloc (pagesize);
10420 for (i = 0; i < pagesize; ++i)
10421 *(data + i) = rand ();
10423 fd = creat ("conftest.mmap", 0600);
10426 if (write (fd, data, pagesize) != pagesize)
10430 /* Next, try to mmap the file at a fixed address which already has
10431 something else allocated at it. If we can, also make sure that
10432 we see the same garbage. */
10433 fd = open ("conftest.mmap", O_RDWR);
10436 data2 = (char *) malloc (2 * pagesize);
10439 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10440 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10441 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10443 for (i = 0; i < pagesize; ++i)
10444 if (*(data + i) != *(data2 + i))
10447 /* Finally, make sure that changes to the mapped area do not
10448 percolate back to the file as seen by read(). (This is a bug on
10449 some variants of i386 svr4.0.) */
10450 for (i = 0; i < pagesize; ++i)
10451 *(data2 + i) = *(data2 + i) + 1;
10452 data3 = (char *) malloc (pagesize);
10455 if (read (fd, data3, pagesize) != pagesize)
10457 for (i = 0; i < pagesize; ++i)
10458 if (*(data + i) != *(data3 + i))
10464 rm -f conftest$ac_exeext
10465 if { (ac_try="$ac_link"
10466 case "(($ac_try" in
10467 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10468 *) ac_try_echo
=$ac_try;;
10470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10471 (eval "$ac_link") 2>&5
10473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10475 { (case "(($ac_try" in
10476 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10477 *) ac_try_echo=$ac_try;;
10479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10480 (eval "$ac_try") 2>&5
10482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483 (exit $ac_status); }; }; then
10484 ac_cv_func_mmap_fixed_mapped=yes
10486 echo "$as_me: program exited with status $ac_status" >&5
10487 echo "$as_me: failed program was:" >&5
10488 sed 's/^/| /' conftest.$ac_ext >&5
10490 ( exit $ac_status )
10491 ac_cv_func_mmap_fixed_mapped=no
10493 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10498 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10499 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10500 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10502 cat >>confdefs.h <<\_ACEOF
10503 #define HAVE_MMAP 1
10507 rm -f conftest.mmap
10509 if test $use_mmap_for_buffers = yes; then
10513 LIBS="$libsrc_libs $LIBS"
10516 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10517 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10518 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10519 echo $ECHO_N "(cached) $ECHO_C" >&6
10521 ac_check_lib_save_LIBS=$LIBS
10522 LIBS="-ldnet $LIBS"
10523 cat >conftest.$ac_ext <<_ACEOF
10526 cat confdefs.h >>conftest.$ac_ext
10527 cat >>conftest.$ac_ext <<_ACEOF
10528 /* end confdefs.h. */
10530 /* Override any GCC internal prototype to avoid an error.
10531 Use char because int might match the return type of a GCC
10532 builtin and then its argument prototype would still apply. */
10540 return dnet_ntoa ();
10545 rm -f conftest.$ac_objext conftest$ac_exeext
10546 if { (ac_try="$ac_link"
10547 case "(($ac_try" in
10548 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10549 *) ac_try_echo
=$ac_try;;
10551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10552 (eval "$ac_link") 2>conftest.er1
10554 grep -v '^ *+' conftest.er1
>conftest.err
10556 cat conftest.err
>&5
10557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558 (exit $ac_status); } && {
10559 test -z "$ac_c_werror_flag" ||
10560 test ! -s conftest.err
10561 } && test -s conftest
$ac_exeext &&
10562 $as_test_x conftest
$ac_exeext; then
10563 ac_cv_lib_dnet_dnet_ntoa
=yes
10565 echo "$as_me: failed program was:" >&5
10566 sed 's/^/| /' conftest.
$ac_ext >&5
10568 ac_cv_lib_dnet_dnet_ntoa
=no
10571 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10572 conftest
$ac_exeext conftest.
$ac_ext
10573 LIBS
=$ac_check_lib_save_LIBS
10575 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10576 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10577 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10578 cat >>confdefs.h
<<_ACEOF
10579 #define HAVE_LIBDNET 1
10582 LIBS
="-ldnet $LIBS"
10587 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10588 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10589 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10590 echo $ECHO_N "(cached) $ECHO_C" >&6
10592 ac_check_lib_save_LIBS
=$LIBS
10593 LIBS
="-lXbsd $LIBS"
10594 cat >conftest.
$ac_ext <<_ACEOF
10597 cat confdefs.h
>>conftest.
$ac_ext
10598 cat >>conftest.
$ac_ext <<_ACEOF
10599 /* end confdefs.h. */
10610 rm -f conftest.
$ac_objext conftest
$ac_exeext
10611 if { (ac_try
="$ac_link"
10612 case "(($ac_try" in
10613 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10614 *) ac_try_echo=$ac_try;;
10616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10617 (eval "$ac_link") 2>conftest.er1
10619 grep -v '^ *+' conftest.er1 >conftest.err
10621 cat conftest.err >&5
10622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623 (exit $ac_status); } && {
10624 test -z "$ac_c_werror_flag" ||
10625 test ! -s conftest.err
10626 } && test -s conftest$ac_exeext &&
10627 $as_test_x conftest$ac_exeext; then
10628 ac_cv_lib_Xbsd_main=yes
10630 echo "$as_me: failed program was:" >&5
10631 sed 's/^/| /' conftest.$ac_ext >&5
10633 ac_cv_lib_Xbsd_main=no
10636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10637 conftest$ac_exeext conftest.$ac_ext
10638 LIBS=$ac_check_lib_save_LIBS
10640 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10641 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10642 if test $ac_cv_lib_Xbsd_main = yes; then
10643 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10648 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10649 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10650 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10651 echo $ECHO_N "(cached) $ECHO_C" >&6
10653 ac_check_lib_save_LIBS=$LIBS
10654 LIBS="-lpthreads $LIBS"
10655 cat >conftest.$ac_ext <<_ACEOF
10658 cat confdefs.h >>conftest.$ac_ext
10659 cat >>conftest.$ac_ext <<_ACEOF
10660 /* end confdefs.h. */
10662 /* Override any GCC internal prototype to avoid an error.
10663 Use char because int might match the return type of a GCC
10664 builtin and then its argument prototype would still apply. */
10672 return cma_open ();
10677 rm -f conftest.$ac_objext conftest$ac_exeext
10678 if { (ac_try="$ac_link"
10679 case "(($ac_try" in
10680 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10681 *) ac_try_echo
=$ac_try;;
10683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10684 (eval "$ac_link") 2>conftest.er1
10686 grep -v '^ *+' conftest.er1
>conftest.err
10688 cat conftest.err
>&5
10689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690 (exit $ac_status); } && {
10691 test -z "$ac_c_werror_flag" ||
10692 test ! -s conftest.err
10693 } && test -s conftest
$ac_exeext &&
10694 $as_test_x conftest
$ac_exeext; then
10695 ac_cv_lib_pthreads_cma_open
=yes
10697 echo "$as_me: failed program was:" >&5
10698 sed 's/^/| /' conftest.
$ac_ext >&5
10700 ac_cv_lib_pthreads_cma_open
=no
10703 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10704 conftest
$ac_exeext conftest.
$ac_ext
10705 LIBS
=$ac_check_lib_save_LIBS
10707 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10708 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10709 if test $ac_cv_lib_pthreads_cma_open = yes; then
10710 cat >>confdefs.h
<<_ACEOF
10711 #define HAVE_LIBPTHREADS 1
10714 LIBS
="-lpthreads $LIBS"
10719 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10720 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10721 if test -d /usr
/X386
/include
; then
10723 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10727 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10728 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10733 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10734 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10735 if test "${gdb_cv_bigtoc+set}" = set; then
10736 echo $ECHO_N "(cached) $ECHO_C" >&6
10740 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10741 *) gdb_cv_bigtoc
=-bbigtoc ;;
10744 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10745 cat >conftest.
$ac_ext <<_ACEOF
10748 cat confdefs.h
>>conftest.
$ac_ext
10749 cat >>conftest.
$ac_ext <<_ACEOF
10750 /* end confdefs.h. */
10760 rm -f conftest.
$ac_objext conftest
$ac_exeext
10761 if { (ac_try
="$ac_link"
10762 case "(($ac_try" in
10763 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10764 *) ac_try_echo=$ac_try;;
10766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10767 (eval "$ac_link") 2>conftest.er1
10769 grep -v '^ *+' conftest.er1 >conftest.err
10771 cat conftest.err >&5
10772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773 (exit $ac_status); } && {
10774 test -z "$ac_c_werror_flag" ||
10775 test ! -s conftest.err
10776 } && test -s conftest$ac_exeext &&
10777 $as_test_x conftest$ac_exeext; then
10780 echo "$as_me: failed program was:" >&5
10781 sed 's/^/| /' conftest.$ac_ext >&5
10786 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10787 conftest$ac_exeext conftest.$ac_ext
10790 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10791 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10795 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10796 # used for the tests that follow. We set them back to REAL_CFLAGS and
10797 # REAL_CPPFLAGS later on.
10799 REAL_CPPFLAGS="$CPPFLAGS"
10801 if test "${HAVE_X11}" = "yes"; then
10802 DEFS="$C_SWITCH_X_SITE $DEFS"
10803 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10805 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10806 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10808 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10809 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10810 # but it's more convenient here to set LD_RUN_PATH
10811 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10812 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10813 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10817 if test "${opsys}" = "gnu-linux"; then
10818 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10819 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10820 cat >conftest.$ac_ext <<_ACEOF
10823 cat confdefs.h >>conftest.$ac_ext
10824 cat >>conftest.$ac_ext <<_ACEOF
10825 /* end confdefs.h. */
10830 XOpenDisplay ("foo");
10835 rm -f conftest.$ac_objext conftest$ac_exeext
10836 if { (ac_try="$ac_link"
10837 case "(($ac_try" in
10838 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10839 *) ac_try_echo
=$ac_try;;
10841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10842 (eval "$ac_link") 2>conftest.er1
10844 grep -v '^ *+' conftest.er1
>conftest.err
10846 cat conftest.err
>&5
10847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10848 (exit $ac_status); } && {
10849 test -z "$ac_c_werror_flag" ||
10850 test ! -s conftest.err
10851 } && test -s conftest
$ac_exeext &&
10852 $as_test_x conftest
$ac_exeext; then
10853 xlinux_first_failure
=no
10855 echo "$as_me: failed program was:" >&5
10856 sed 's/^/| /' conftest.
$ac_ext >&5
10858 xlinux_first_failure
=yes
10861 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10862 conftest
$ac_exeext conftest.
$ac_ext
10863 if test "${xlinux_first_failure}" = "yes"; then
10864 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10865 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10866 OLD_CPPFLAGS
="$CPPFLAGS"
10868 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10869 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10870 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10871 LIBS
="$LIBS -b i486-linuxaout"
10872 cat >conftest.
$ac_ext <<_ACEOF
10875 cat confdefs.h
>>conftest.
$ac_ext
10876 cat >>conftest.
$ac_ext <<_ACEOF
10877 /* end confdefs.h. */
10882 XOpenDisplay ("foo");
10887 rm -f conftest.
$ac_objext conftest
$ac_exeext
10888 if { (ac_try
="$ac_link"
10889 case "(($ac_try" in
10890 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10891 *) ac_try_echo=$ac_try;;
10893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10894 (eval "$ac_link") 2>conftest.er1
10896 grep -v '^ *+' conftest.er1 >conftest.err
10898 cat conftest.err >&5
10899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10900 (exit $ac_status); } && {
10901 test -z "$ac_c_werror_flag" ||
10902 test ! -s conftest.err
10903 } && test -s conftest$ac_exeext &&
10904 $as_test_x conftest$ac_exeext; then
10905 xlinux_second_failure=no
10907 echo "$as_me: failed program was:" >&5
10908 sed 's/^/| /' conftest.$ac_ext >&5
10910 xlinux_second_failure=yes
10913 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10914 conftest$ac_exeext conftest.$ac_ext
10915 if test "${xlinux_second_failure}" = "yes"; then
10916 # If we get the same failure with -b, there is no use adding -b.
10917 # So take it out. This plays safe.
10918 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10919 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10920 CPPFLAGS="$OLD_CPPFLAGS"
10922 { echo "$as_me:$LINENO: result: no" >&5
10923 echo "${ECHO_T}no" >&6; }
10925 { echo "$as_me:$LINENO: result: yes" >&5
10926 echo "${ECHO_T}yes" >&6; }
10929 { echo "$as_me:$LINENO: result: no" >&5
10930 echo "${ECHO_T}no" >&6; }
10934 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10935 # header files included from there.
10936 { echo "$as_me:$LINENO: checking for Xkb" >&5
10937 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10938 cat >conftest.$ac_ext <<_ACEOF
10941 cat confdefs.h >>conftest.$ac_ext
10942 cat >>conftest.$ac_ext <<_ACEOF
10943 /* end confdefs.h. */
10944 #include <X11/Xlib.h>
10945 #include <X11/XKBlib.h>
10949 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10954 rm -f conftest.$ac_objext conftest$ac_exeext
10955 if { (ac_try="$ac_link"
10956 case "(($ac_try" in
10957 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10958 *) ac_try_echo
=$ac_try;;
10960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10961 (eval "$ac_link") 2>conftest.er1
10963 grep -v '^ *+' conftest.er1
>conftest.err
10965 cat conftest.err
>&5
10966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10967 (exit $ac_status); } && {
10968 test -z "$ac_c_werror_flag" ||
10969 test ! -s conftest.err
10970 } && test -s conftest
$ac_exeext &&
10971 $as_test_x conftest
$ac_exeext; then
10974 echo "$as_me: failed program was:" >&5
10975 sed 's/^/| /' conftest.
$ac_ext >&5
10980 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10981 conftest
$ac_exeext conftest.
$ac_ext
10982 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10983 echo "${ECHO_T}$emacs_xkb" >&6; }
10984 if test $emacs_xkb = yes; then
10986 cat >>confdefs.h
<<\_ACEOF
10987 #define HAVE_XKBGETKEYBOARD 1
10996 for ac_func
in XrmSetDatabase XScreenResourceString \
10997 XScreenNumberOfScreen XSetWMProtocols
10999 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11000 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11001 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11002 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11003 echo $ECHO_N "(cached) $ECHO_C" >&6
11005 cat >conftest.
$ac_ext <<_ACEOF
11008 cat confdefs.h
>>conftest.
$ac_ext
11009 cat >>conftest.
$ac_ext <<_ACEOF
11010 /* end confdefs.h. */
11011 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11012 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11013 #define $ac_func innocuous_$ac_func
11015 /* System header to define __stub macros and hopefully few prototypes,
11016 which can conflict with char $ac_func (); below.
11017 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11018 <limits.h> exists even on freestanding compilers. */
11021 # include <limits.h>
11023 # include <assert.h>
11028 /* Override any GCC internal prototype to avoid an error.
11029 Use char because int might match the return type of a GCC
11030 builtin and then its argument prototype would still apply. */
11035 /* The GNU C library defines this for functions which it implements
11036 to always fail with ENOSYS. Some functions are actually named
11037 something starting with __ and the normal name is an alias. */
11038 #if defined __stub_$ac_func || defined __stub___$ac_func
11045 return $ac_func ();
11050 rm -f conftest.
$ac_objext conftest
$ac_exeext
11051 if { (ac_try
="$ac_link"
11052 case "(($ac_try" in
11053 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11054 *) ac_try_echo=$ac_try;;
11056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11057 (eval "$ac_link") 2>conftest.er1
11059 grep -v '^ *+' conftest.er1 >conftest.err
11061 cat conftest.err >&5
11062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063 (exit $ac_status); } && {
11064 test -z "$ac_c_werror_flag" ||
11065 test ! -s conftest.err
11066 } && test -s conftest$ac_exeext &&
11067 $as_test_x conftest$ac_exeext; then
11068 eval "$as_ac_var=yes"
11070 echo "$as_me: failed program was:" >&5
11071 sed 's/^/| /' conftest.$ac_ext >&5
11073 eval "$as_ac_var=no"
11076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11077 conftest$ac_exeext conftest.$ac_ext
11079 ac_res=`eval echo '${'$as_ac_var'}'`
11080 { echo "$as_me:$LINENO: result: $ac_res" >&5
11081 echo "${ECHO_T}$ac_res" >&6; }
11082 if test `eval echo '${'$as_ac_var'}'` = yes; then
11083 cat >>confdefs.h <<_ACEOF
11084 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11092 if test "${window_system}" = "x11"; then
11093 { echo "$as_me:$LINENO: checking X11 version 6" >&5
11094 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
11095 if test "${emacs_cv_x11_version_6+set}" = set; then
11096 echo $ECHO_N "(cached) $ECHO_C" >&6
11098 cat >conftest.$ac_ext <<_ACEOF
11101 cat confdefs.h >>conftest.$ac_ext
11102 cat >>conftest.$ac_ext <<_ACEOF
11103 /* end confdefs.h. */
11104 #include <X11/Xlib.h>
11108 #if XlibSpecificationRelease < 6
11116 rm -f conftest.$ac_objext conftest$ac_exeext
11117 if { (ac_try="$ac_link"
11118 case "(($ac_try" in
11119 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11120 *) ac_try_echo
=$ac_try;;
11122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11123 (eval "$ac_link") 2>conftest.er1
11125 grep -v '^ *+' conftest.er1
>conftest.err
11127 cat conftest.err
>&5
11128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129 (exit $ac_status); } && {
11130 test -z "$ac_c_werror_flag" ||
11131 test ! -s conftest.err
11132 } && test -s conftest
$ac_exeext &&
11133 $as_test_x conftest
$ac_exeext; then
11134 emacs_cv_x11_version_6
=yes
11136 echo "$as_me: failed program was:" >&5
11137 sed 's/^/| /' conftest.
$ac_ext >&5
11139 emacs_cv_x11_version_6
=no
11142 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11143 conftest
$ac_exeext conftest.
$ac_ext
11146 if test $emacs_cv_x11_version_6 = yes; then
11147 { echo "$as_me:$LINENO: result: 6 or newer" >&5
11148 echo "${ECHO_T}6 or newer" >&6; }
11150 cat >>confdefs.h
<<\_ACEOF
11151 #define HAVE_X11R6 1
11155 { echo "$as_me:$LINENO: result: before 6" >&5
11156 echo "${ECHO_T}before 6" >&6; }
11161 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11163 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_CARBON}" = "yes"; then
11164 if test "${with_rsvg}" != "no"; then
11165 if test "X${with_pkg_config_prog}" != X
; then
11166 PKG_CONFIG
="${with_pkg_config_prog}"
11169 RSVG_REQUIRED
=2.0.0
11170 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
11175 if test -z "$PKG_CONFIG"; then
11176 # Extract the first word of "pkg-config", so it can be a program name with args.
11177 set dummy pkg-config
; ac_word
=$2
11178 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11180 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11181 echo $ECHO_N "(cached) $ECHO_C" >&6
11183 case $PKG_CONFIG in
11185 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11188 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11189 for as_dir
in $PATH
11192 test -z "$as_dir" && as_dir
=.
11193 for ac_exec_ext
in '' $ac_executable_extensions; do
11194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11195 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11203 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11207 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11208 if test -n "$PKG_CONFIG"; then
11209 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11210 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11212 { echo "$as_me:$LINENO: result: no" >&5
11213 echo "${ECHO_T}no" >&6; }
11219 if test "$PKG_CONFIG" = "no" ; then
11222 PKG_CONFIG_MIN_VERSION
=0.9.0
11223 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11224 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
11225 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
11227 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11228 { echo "$as_me:$LINENO: result: yes" >&5
11229 echo "${ECHO_T}yes" >&6; }
11232 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
11233 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
11234 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11235 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
11236 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
11238 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
11239 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
11240 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11241 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
11242 echo "${ECHO_T}$RSVG_LIBS" >&6; }
11244 { echo "$as_me:$LINENO: result: no" >&5
11245 echo "${ECHO_T}no" >&6; }
11248 ## If we have a custom action on failure, don't print errors, but
11249 ## do set a variable so people can do so.
11250 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11257 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11258 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11262 if test $succeeded = yes; then
11271 if test ".${RSVG_CFLAGS}" != "."; then
11274 cat >>confdefs.h
<<\_ACEOF
11275 #define HAVE_RSVG 1
11278 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
11279 LIBS
="$RSVG_LIBS $LIBS"
11286 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
11289 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "gtk" || \
11290 test "$USE_X_TOOLKIT" = "maybe"; then
11291 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
11292 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
11293 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
11294 { (exit 1); exit 1; }; };
11298 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11300 if test "X${with_pkg_config_prog}" != X
; then
11301 PKG_CONFIG
="${with_pkg_config_prog}"
11306 if test -z "$PKG_CONFIG"; then
11307 # Extract the first word of "pkg-config", so it can be a program name with args.
11308 set dummy pkg-config
; ac_word
=$2
11309 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11311 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11312 echo $ECHO_N "(cached) $ECHO_C" >&6
11314 case $PKG_CONFIG in
11316 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11319 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11320 for as_dir
in $PATH
11323 test -z "$as_dir" && as_dir
=.
11324 for ac_exec_ext
in '' $ac_executable_extensions; do
11325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11326 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11334 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11338 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11339 if test -n "$PKG_CONFIG"; then
11340 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11341 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11343 { echo "$as_me:$LINENO: result: no" >&5
11344 echo "${ECHO_T}no" >&6; }
11350 if test "$PKG_CONFIG" = "no" ; then
11353 PKG_CONFIG_MIN_VERSION
=0.9.0
11354 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11355 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11356 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
11358 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11359 { echo "$as_me:$LINENO: result: yes" >&5
11360 echo "${ECHO_T}yes" >&6; }
11363 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11364 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
11365 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11366 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11367 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11369 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11370 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11371 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11372 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11373 echo "${ECHO_T}$GTK_LIBS" >&6; }
11375 { echo "$as_me:$LINENO: result: no" >&5
11376 echo "${ECHO_T}no" >&6; }
11379 ## If we have a custom action on failure, don't print errors, but
11380 ## do set a variable so people can do so.
11381 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11388 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11389 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11393 if test $succeeded = yes; then
11399 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11400 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11401 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11402 { (exit 1); exit 1; }; }
11407 if test x
"$pkg_check_gtk" = xyes
; then
11411 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
11412 CFLAGS
="$CFLAGS $GTK_CFLAGS"
11413 LIBS
="$GTK_LIBS $LIBS"
11416 for ac_func
in gtk_main
11418 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11419 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11420 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11421 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11422 echo $ECHO_N "(cached) $ECHO_C" >&6
11424 cat >conftest.
$ac_ext <<_ACEOF
11427 cat confdefs.h
>>conftest.
$ac_ext
11428 cat >>conftest.
$ac_ext <<_ACEOF
11429 /* end confdefs.h. */
11430 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11431 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11432 #define $ac_func innocuous_$ac_func
11434 /* System header to define __stub macros and hopefully few prototypes,
11435 which can conflict with char $ac_func (); below.
11436 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11437 <limits.h> exists even on freestanding compilers. */
11440 # include <limits.h>
11442 # include <assert.h>
11447 /* Override any GCC internal prototype to avoid an error.
11448 Use char because int might match the return type of a GCC
11449 builtin and then its argument prototype would still apply. */
11454 /* The GNU C library defines this for functions which it implements
11455 to always fail with ENOSYS. Some functions are actually named
11456 something starting with __ and the normal name is an alias. */
11457 #if defined __stub_$ac_func || defined __stub___$ac_func
11464 return $ac_func ();
11469 rm -f conftest.
$ac_objext conftest
$ac_exeext
11470 if { (ac_try
="$ac_link"
11471 case "(($ac_try" in
11472 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11473 *) ac_try_echo=$ac_try;;
11475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11476 (eval "$ac_link") 2>conftest.er1
11478 grep -v '^ *+' conftest.er1 >conftest.err
11480 cat conftest.err >&5
11481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11482 (exit $ac_status); } && {
11483 test -z "$ac_c_werror_flag" ||
11484 test ! -s conftest.err
11485 } && test -s conftest$ac_exeext &&
11486 $as_test_x conftest$ac_exeext; then
11487 eval "$as_ac_var=yes"
11489 echo "$as_me: failed program was:" >&5
11490 sed 's/^/| /' conftest.$ac_ext >&5
11492 eval "$as_ac_var=no"
11495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11496 conftest$ac_exeext conftest.$ac_ext
11498 ac_res=`eval echo '${'$as_ac_var'}'`
11499 { echo "$as_me:$LINENO: result: $ac_res" >&5
11500 echo "${ECHO_T}$ac_res" >&6; }
11501 if test `eval echo '${'$as_ac_var'}'` = yes; then
11502 cat >>confdefs.h <<_ACEOF
11503 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11509 if test "${GTK_COMPILES}" != "yes"; then
11510 if test "$USE_X_TOOLKIT" != "maybe"; then
11511 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11512 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11513 { (exit 1); exit 1; }; };
11518 cat >>confdefs.h <<\_ACEOF
11528 if test "${HAVE_GTK}" = "yes"; then
11530 if test "$with_toolkit_scroll_bars" != no; then
11531 with_toolkit_scroll_bars=yes
11534 HAVE_GTK_MULTIDISPLAY=no
11536 for ac_func in gdk_display_open
11538 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11539 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11540 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11541 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11542 echo $ECHO_N "(cached) $ECHO_C" >&6
11544 cat >conftest.$ac_ext <<_ACEOF
11547 cat confdefs.h >>conftest.$ac_ext
11548 cat >>conftest.$ac_ext <<_ACEOF
11549 /* end confdefs.h. */
11550 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11551 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11552 #define $ac_func innocuous_$ac_func
11554 /* System header to define __stub macros and hopefully few prototypes,
11555 which can conflict with char $ac_func (); below.
11556 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11557 <limits.h> exists even on freestanding compilers. */
11560 # include <limits.h>
11562 # include <assert.h>
11567 /* Override any GCC internal prototype to avoid an error.
11568 Use char because int might match the return type of a GCC
11569 builtin and then its argument prototype would still apply. */
11574 /* The GNU C library defines this for functions which it implements
11575 to always fail with ENOSYS. Some functions are actually named
11576 something starting with __ and the normal name is an alias. */
11577 #if defined __stub_$ac_func || defined __stub___$ac_func
11584 return $ac_func ();
11589 rm -f conftest.$ac_objext conftest$ac_exeext
11590 if { (ac_try="$ac_link"
11591 case "(($ac_try" in
11592 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11593 *) ac_try_echo
=$ac_try;;
11595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11596 (eval "$ac_link") 2>conftest.er1
11598 grep -v '^ *+' conftest.er1
>conftest.err
11600 cat conftest.err
>&5
11601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11602 (exit $ac_status); } && {
11603 test -z "$ac_c_werror_flag" ||
11604 test ! -s conftest.err
11605 } && test -s conftest
$ac_exeext &&
11606 $as_test_x conftest
$ac_exeext; then
11607 eval "$as_ac_var=yes"
11609 echo "$as_me: failed program was:" >&5
11610 sed 's/^/| /' conftest.
$ac_ext >&5
11612 eval "$as_ac_var=no"
11615 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11616 conftest
$ac_exeext conftest.
$ac_ext
11618 ac_res
=`eval echo '${'$as_ac_var'}'`
11619 { echo "$as_me:$LINENO: result: $ac_res" >&5
11620 echo "${ECHO_T}$ac_res" >&6; }
11621 if test `eval echo '${'$as_ac_var'}'` = yes; then
11622 cat >>confdefs.h
<<_ACEOF
11623 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11625 HAVE_GTK_MULTIDISPLAY
=yes
11629 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11631 cat >>confdefs.h
<<\_ACEOF
11632 #define HAVE_GTK_MULTIDISPLAY 1
11637 HAVE_GTK_FILE_SELECTION
=no
11639 for ac_func
in gtk_file_selection_new
11641 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11642 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11643 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11644 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11645 echo $ECHO_N "(cached) $ECHO_C" >&6
11647 cat >conftest.
$ac_ext <<_ACEOF
11650 cat confdefs.h
>>conftest.
$ac_ext
11651 cat >>conftest.
$ac_ext <<_ACEOF
11652 /* end confdefs.h. */
11653 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11654 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11655 #define $ac_func innocuous_$ac_func
11657 /* System header to define __stub macros and hopefully few prototypes,
11658 which can conflict with char $ac_func (); below.
11659 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11660 <limits.h> exists even on freestanding compilers. */
11663 # include <limits.h>
11665 # include <assert.h>
11670 /* Override any GCC internal prototype to avoid an error.
11671 Use char because int might match the return type of a GCC
11672 builtin and then its argument prototype would still apply. */
11677 /* The GNU C library defines this for functions which it implements
11678 to always fail with ENOSYS. Some functions are actually named
11679 something starting with __ and the normal name is an alias. */
11680 #if defined __stub_$ac_func || defined __stub___$ac_func
11687 return $ac_func ();
11692 rm -f conftest.
$ac_objext conftest
$ac_exeext
11693 if { (ac_try
="$ac_link"
11694 case "(($ac_try" in
11695 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11696 *) ac_try_echo=$ac_try;;
11698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11699 (eval "$ac_link") 2>conftest.er1
11701 grep -v '^ *+' conftest.er1 >conftest.err
11703 cat conftest.err >&5
11704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11705 (exit $ac_status); } && {
11706 test -z "$ac_c_werror_flag" ||
11707 test ! -s conftest.err
11708 } && test -s conftest$ac_exeext &&
11709 $as_test_x conftest$ac_exeext; then
11710 eval "$as_ac_var=yes"
11712 echo "$as_me: failed program was:" >&5
11713 sed 's/^/| /' conftest.$ac_ext >&5
11715 eval "$as_ac_var=no"
11718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11719 conftest$ac_exeext conftest.$ac_ext
11721 ac_res=`eval echo '${'$as_ac_var'}'`
11722 { echo "$as_me:$LINENO: result: $ac_res" >&5
11723 echo "${ECHO_T}$ac_res" >&6; }
11724 if test `eval echo '${'$as_ac_var'}'` = yes; then
11725 cat >>confdefs.h <<_ACEOF
11726 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11728 HAVE_GTK_FILE_SELECTION=yes
11733 HAVE_GTK_FILE_CHOOSER=no
11735 for ac_func in gtk_file_chooser_dialog_new
11737 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11738 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11739 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11740 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11741 echo $ECHO_N "(cached) $ECHO_C" >&6
11743 cat >conftest.$ac_ext <<_ACEOF
11746 cat confdefs.h >>conftest.$ac_ext
11747 cat >>conftest.$ac_ext <<_ACEOF
11748 /* end confdefs.h. */
11749 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11750 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11751 #define $ac_func innocuous_$ac_func
11753 /* System header to define __stub macros and hopefully few prototypes,
11754 which can conflict with char $ac_func (); below.
11755 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11756 <limits.h> exists even on freestanding compilers. */
11759 # include <limits.h>
11761 # include <assert.h>
11766 /* Override any GCC internal prototype to avoid an error.
11767 Use char because int might match the return type of a GCC
11768 builtin and then its argument prototype would still apply. */
11773 /* The GNU C library defines this for functions which it implements
11774 to always fail with ENOSYS. Some functions are actually named
11775 something starting with __ and the normal name is an alias. */
11776 #if defined __stub_$ac_func || defined __stub___$ac_func
11783 return $ac_func ();
11788 rm -f conftest.$ac_objext conftest$ac_exeext
11789 if { (ac_try="$ac_link"
11790 case "(($ac_try" in
11791 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11792 *) ac_try_echo
=$ac_try;;
11794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11795 (eval "$ac_link") 2>conftest.er1
11797 grep -v '^ *+' conftest.er1
>conftest.err
11799 cat conftest.err
>&5
11800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801 (exit $ac_status); } && {
11802 test -z "$ac_c_werror_flag" ||
11803 test ! -s conftest.err
11804 } && test -s conftest
$ac_exeext &&
11805 $as_test_x conftest
$ac_exeext; then
11806 eval "$as_ac_var=yes"
11808 echo "$as_me: failed program was:" >&5
11809 sed 's/^/| /' conftest.
$ac_ext >&5
11811 eval "$as_ac_var=no"
11814 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11815 conftest
$ac_exeext conftest.
$ac_ext
11817 ac_res
=`eval echo '${'$as_ac_var'}'`
11818 { echo "$as_me:$LINENO: result: $ac_res" >&5
11819 echo "${ECHO_T}$ac_res" >&6; }
11820 if test `eval echo '${'$as_ac_var'}'` = yes; then
11821 cat >>confdefs.h
<<_ACEOF
11822 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11824 HAVE_GTK_FILE_CHOOSER
=yes
11829 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11830 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11832 cat >>confdefs.h
<<\_ACEOF
11833 #define HAVE_GTK_FILE_BOTH 1
11838 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11839 HAVE_GTK_AND_PTHREAD
=no
11841 for ac_header
in pthread.h
11843 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11844 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11845 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11846 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11847 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11848 echo $ECHO_N "(cached) $ECHO_C" >&6
11850 ac_res
=`eval echo '${'$as_ac_Header'}'`
11851 { echo "$as_me:$LINENO: result: $ac_res" >&5
11852 echo "${ECHO_T}$ac_res" >&6; }
11854 # Is the header compilable?
11855 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11856 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11857 cat >conftest.
$ac_ext <<_ACEOF
11860 cat confdefs.h
>>conftest.
$ac_ext
11861 cat >>conftest.
$ac_ext <<_ACEOF
11862 /* end confdefs.h. */
11863 $ac_includes_default
11864 #include <$ac_header>
11866 rm -f conftest.
$ac_objext
11867 if { (ac_try
="$ac_compile"
11868 case "(($ac_try" in
11869 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11870 *) ac_try_echo=$ac_try;;
11872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11873 (eval "$ac_compile") 2>conftest.er1
11875 grep -v '^ *+' conftest.er1 >conftest.err
11877 cat conftest.err >&5
11878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11879 (exit $ac_status); } && {
11880 test -z "$ac_c_werror_flag" ||
11881 test ! -s conftest.err
11882 } && test -s conftest.$ac_objext; then
11883 ac_header_compiler=yes
11885 echo "$as_me: failed program was:" >&5
11886 sed 's/^/| /' conftest.$ac_ext >&5
11888 ac_header_compiler=no
11891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11892 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11893 echo "${ECHO_T}$ac_header_compiler" >&6; }
11895 # Is the header present?
11896 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11897 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11898 cat >conftest.$ac_ext <<_ACEOF
11901 cat confdefs.h >>conftest.$ac_ext
11902 cat >>conftest.$ac_ext <<_ACEOF
11903 /* end confdefs.h. */
11904 #include <$ac_header>
11906 if { (ac_try="$ac_cpp conftest.$ac_ext"
11907 case "(($ac_try" in
11908 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11909 *) ac_try_echo
=$ac_try;;
11911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11912 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11914 grep -v '^ *+' conftest.er1
>conftest.err
11916 cat conftest.err
>&5
11917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11918 (exit $ac_status); } >/dev
/null
&& {
11919 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11920 test ! -s conftest.err
11922 ac_header_preproc
=yes
11924 echo "$as_me: failed program was:" >&5
11925 sed 's/^/| /' conftest.
$ac_ext >&5
11927 ac_header_preproc
=no
11930 rm -f conftest.err conftest.
$ac_ext
11931 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11932 echo "${ECHO_T}$ac_header_preproc" >&6; }
11934 # So? What about this header?
11935 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11937 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11938 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11939 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11940 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11941 ac_header_preproc
=yes
11944 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11945 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11946 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11947 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11948 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11949 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11950 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11951 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11952 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11953 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11954 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11955 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11959 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11961 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11962 echo $ECHO_N "(cached) $ECHO_C" >&6
11964 eval "$as_ac_Header=\$ac_header_preproc"
11966 ac_res
=`eval echo '${'$as_ac_Header'}'`
11967 { echo "$as_me:$LINENO: result: $ac_res" >&5
11968 echo "${ECHO_T}$ac_res" >&6; }
11971 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11972 cat >>confdefs.h
<<_ACEOF
11973 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11980 if test "$ac_cv_header_pthread_h"; then
11981 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11982 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11983 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11984 echo $ECHO_N "(cached) $ECHO_C" >&6
11986 ac_check_lib_save_LIBS
=$LIBS
11987 LIBS
="-lpthread $LIBS"
11988 cat >conftest.
$ac_ext <<_ACEOF
11991 cat confdefs.h
>>conftest.
$ac_ext
11992 cat >>conftest.
$ac_ext <<_ACEOF
11993 /* end confdefs.h. */
11995 /* Override any GCC internal prototype to avoid an error.
11996 Use char because int might match the return type of a GCC
11997 builtin and then its argument prototype would still apply. */
12001 char pthread_self ();
12005 return pthread_self ();
12010 rm -f conftest.
$ac_objext conftest
$ac_exeext
12011 if { (ac_try
="$ac_link"
12012 case "(($ac_try" in
12013 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12014 *) ac_try_echo=$ac_try;;
12016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12017 (eval "$ac_link") 2>conftest.er1
12019 grep -v '^ *+' conftest.er1 >conftest.err
12021 cat conftest.err >&5
12022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12023 (exit $ac_status); } && {
12024 test -z "$ac_c_werror_flag" ||
12025 test ! -s conftest.err
12026 } && test -s conftest$ac_exeext &&
12027 $as_test_x conftest$ac_exeext; then
12028 ac_cv_lib_pthread_pthread_self=yes
12030 echo "$as_me: failed program was:" >&5
12031 sed 's/^/| /' conftest.$ac_ext >&5
12033 ac_cv_lib_pthread_pthread_self=no
12036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12037 conftest$ac_exeext conftest.$ac_ext
12038 LIBS=$ac_check_lib_save_LIBS
12040 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
12041 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
12042 if test $ac_cv_lib_pthread_pthread_self = yes; then
12043 HAVE_GTK_AND_PTHREAD=yes
12047 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
12048 case "${canonical}" in
12050 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
12053 cat >>confdefs.h <<\_ACEOF
12054 #define HAVE_GTK_AND_PTHREAD 1
12062 if test "${with_dbus}" = "yes"; then
12066 if test -z "$PKG_CONFIG"; then
12067 # Extract the first word of "pkg-config", so it can be a program name with args.
12068 set dummy pkg-config; ac_word=$2
12069 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12071 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12072 echo $ECHO_N "(cached) $ECHO_C" >&6
12074 case $PKG_CONFIG in
12076 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12080 for as_dir in $PATH
12083 test -z "$as_dir" && as_dir=.
12084 for ac_exec_ext in '' $ac_executable_extensions; do
12085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12086 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12094 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12098 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12099 if test -n "$PKG_CONFIG"; then
12100 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12101 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12103 { echo "$as_me:$LINENO: result: no" >&5
12104 echo "${ECHO_T}no" >&6; }
12110 if test "$PKG_CONFIG" = "no" ; then
12113 PKG_CONFIG_MIN_VERSION=0.9.0
12114 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12115 { echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
12116 echo $ECHO_N "checking for dbus-1 >= 1.0... $ECHO_C" >&6; }
12118 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
12119 { echo "$as_me:$LINENO: result: yes" >&5
12120 echo "${ECHO_T}yes" >&6; }
12123 { echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
12124 echo $ECHO_N "checking DBUS_CFLAGS... $ECHO_C" >&6; }
12125 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
12126 { echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
12127 echo "${ECHO_T}$DBUS_CFLAGS" >&6; }
12129 { echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
12130 echo $ECHO_N "checking DBUS_LIBS... $ECHO_C" >&6; }
12131 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
12132 { echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
12133 echo "${ECHO_T}$DBUS_LIBS" >&6; }
12135 { echo "$as_me:$LINENO: result: no" >&5
12136 echo "${ECHO_T}no" >&6; }
12139 ## If we have a custom action on failure, don't print errors, but
12140 ## do set a variable so people can do so.
12141 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
12148 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12149 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12153 if test $succeeded = yes; then
12159 if test "$HAVE_DBUS" = yes; then
12161 cat >>confdefs.h <<\_ACEOF
12162 #define HAVE_DBUS 1
12169 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12170 if test "$with_xaw3d" != no; then
12171 { echo "$as_me:$LINENO: checking for xaw3d" >&5
12172 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
12173 if test "${emacs_cv_xaw3d+set}" = set; then
12174 echo $ECHO_N "(cached) $ECHO_C" >&6
12176 cat >conftest.$ac_ext <<_ACEOF
12179 cat confdefs.h >>conftest.$ac_ext
12180 cat >>conftest.$ac_ext <<_ACEOF
12181 /* end confdefs.h. */
12183 #include <X11/Intrinsic.h>
12184 #include <X11/Xaw3d/Simple.h>
12193 rm -f conftest.$ac_objext conftest$ac_exeext
12194 if { (ac_try="$ac_link"
12195 case "(($ac_try" in
12196 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12197 *) ac_try_echo
=$ac_try;;
12199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12200 (eval "$ac_link") 2>conftest.er1
12202 grep -v '^ *+' conftest.er1
>conftest.err
12204 cat conftest.err
>&5
12205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206 (exit $ac_status); } && {
12207 test -z "$ac_c_werror_flag" ||
12208 test ! -s conftest.err
12209 } && test -s conftest
$ac_exeext &&
12210 $as_test_x conftest
$ac_exeext; then
12213 echo "$as_me: failed program was:" >&5
12214 sed 's/^/| /' conftest.
$ac_ext >&5
12219 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12220 conftest
$ac_exeext conftest.
$ac_ext
12226 if test $emacs_cv_xaw3d = yes; then
12227 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12228 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12229 USE_X_TOOLKIT
=LUCID
12232 cat >>confdefs.h
<<\_ACEOF
12233 #define HAVE_XAW3D 1
12237 { echo "$as_me:$LINENO: result: no" >&5
12238 echo "${ECHO_T}no" >&6; }
12239 { echo "$as_me:$LINENO: checking for libXaw" >&5
12240 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
12241 if test "${emacs_cv_xaw+set}" = set; then
12242 echo $ECHO_N "(cached) $ECHO_C" >&6
12244 cat >conftest.
$ac_ext <<_ACEOF
12247 cat confdefs.h
>>conftest.
$ac_ext
12248 cat >>conftest.
$ac_ext <<_ACEOF
12249 /* end confdefs.h. */
12251 #include <X11/Intrinsic.h>
12252 #include <X11/Xaw/Simple.h>
12261 rm -f conftest.
$ac_objext conftest
$ac_exeext
12262 if { (ac_try
="$ac_link"
12263 case "(($ac_try" in
12264 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12265 *) ac_try_echo=$ac_try;;
12267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12268 (eval "$ac_link") 2>conftest.er1
12270 grep -v '^ *+' conftest.er1 >conftest.err
12272 cat conftest.err >&5
12273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12274 (exit $ac_status); } && {
12275 test -z "$ac_c_werror_flag" ||
12276 test ! -s conftest.err
12277 } && test -s conftest$ac_exeext &&
12278 $as_test_x conftest$ac_exeext; then
12281 echo "$as_me: failed program was:" >&5
12282 sed 's/^/| /' conftest.$ac_ext >&5
12287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12288 conftest$ac_exeext conftest.$ac_ext
12291 if test $emacs_cv_xaw = yes; then
12292 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12293 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12294 USE_X_TOOLKIT=LUCID
12295 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12296 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12297 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12298 { (exit 1); exit 1; }; }
12300 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
12301 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
12307 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12309 if test "${USE_X_TOOLKIT}" != "none"; then
12310 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12311 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
12312 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12313 echo $ECHO_N "(cached) $ECHO_C" >&6
12315 cat >conftest.$ac_ext <<_ACEOF
12318 cat confdefs.h >>conftest.$ac_ext
12319 cat >>conftest.$ac_ext <<_ACEOF
12320 /* end confdefs.h. */
12321 #include <X11/Intrinsic.h>
12325 #if XtSpecificationRelease < 6
12333 rm -f conftest.$ac_objext conftest$ac_exeext
12334 if { (ac_try="$ac_link"
12335 case "(($ac_try" in
12336 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12337 *) ac_try_echo
=$ac_try;;
12339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12340 (eval "$ac_link") 2>conftest.er1
12342 grep -v '^ *+' conftest.er1
>conftest.err
12344 cat conftest.err
>&5
12345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346 (exit $ac_status); } && {
12347 test -z "$ac_c_werror_flag" ||
12348 test ! -s conftest.err
12349 } && test -s conftest
$ac_exeext &&
12350 $as_test_x conftest
$ac_exeext; then
12351 emacs_cv_x11_toolkit_version_6
=yes
12353 echo "$as_me: failed program was:" >&5
12354 sed 's/^/| /' conftest.
$ac_ext >&5
12356 emacs_cv_x11_toolkit_version_6
=no
12359 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12360 conftest
$ac_exeext conftest.
$ac_ext
12363 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
12364 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12365 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12366 echo "${ECHO_T}6 or newer" >&6; }
12368 cat >>confdefs.h
<<\_ACEOF
12369 #define HAVE_X11XTR6 1
12373 { echo "$as_me:$LINENO: result: before 6" >&5
12374 echo "${ECHO_T}before 6" >&6; }
12378 if test x
$HAVE_X11XTR6 = xyes
; then
12379 LIBS
="-lXt -lSM -lICE $LIBS"
12384 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12385 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12386 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12387 echo $ECHO_N "(cached) $ECHO_C" >&6
12389 ac_check_lib_save_LIBS
=$LIBS
12391 cat >conftest.
$ac_ext <<_ACEOF
12394 cat confdefs.h
>>conftest.
$ac_ext
12395 cat >>conftest.
$ac_ext <<_ACEOF
12396 /* end confdefs.h. */
12398 /* Override any GCC internal prototype to avoid an error.
12399 Use char because int might match the return type of a GCC
12400 builtin and then its argument prototype would still apply. */
12404 char XmuConvertStandardSelection ();
12408 return XmuConvertStandardSelection ();
12413 rm -f conftest.
$ac_objext conftest
$ac_exeext
12414 if { (ac_try
="$ac_link"
12415 case "(($ac_try" in
12416 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12417 *) ac_try_echo=$ac_try;;
12419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12420 (eval "$ac_link") 2>conftest.er1
12422 grep -v '^ *+' conftest.er1 >conftest.err
12424 cat conftest.err >&5
12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426 (exit $ac_status); } && {
12427 test -z "$ac_c_werror_flag" ||
12428 test ! -s conftest.err
12429 } && test -s conftest$ac_exeext &&
12430 $as_test_x conftest$ac_exeext; then
12431 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12433 echo "$as_me: failed program was:" >&5
12434 sed 's/^/| /' conftest.$ac_ext >&5
12436 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12440 conftest$ac_exeext conftest.$ac_ext
12441 LIBS=$ac_check_lib_save_LIBS
12443 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12444 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12445 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12446 cat >>confdefs.h <<_ACEOF
12447 #define HAVE_LIBXMU 1
12454 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12457 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12458 if test "${HAVE_X11}" = "yes"; then
12459 if test "${USE_X_TOOLKIT}" != "none"; then
12461 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12462 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12463 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12464 echo $ECHO_N "(cached) $ECHO_C" >&6
12466 ac_check_lib_save_LIBS=$LIBS
12467 LIBS="-lXext $LIBS"
12468 cat >conftest.$ac_ext <<_ACEOF
12471 cat confdefs.h >>conftest.$ac_ext
12472 cat >>conftest.$ac_ext <<_ACEOF
12473 /* end confdefs.h. */
12475 /* Override any GCC internal prototype to avoid an error.
12476 Use char because int might match the return type of a GCC
12477 builtin and then its argument prototype would still apply. */
12481 char XShapeQueryExtension ();
12485 return XShapeQueryExtension ();
12490 rm -f conftest.$ac_objext conftest$ac_exeext
12491 if { (ac_try="$ac_link"
12492 case "(($ac_try" in
12493 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12494 *) ac_try_echo
=$ac_try;;
12496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12497 (eval "$ac_link") 2>conftest.er1
12499 grep -v '^ *+' conftest.er1
>conftest.err
12501 cat conftest.err
>&5
12502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12503 (exit $ac_status); } && {
12504 test -z "$ac_c_werror_flag" ||
12505 test ! -s conftest.err
12506 } && test -s conftest
$ac_exeext &&
12507 $as_test_x conftest
$ac_exeext; then
12508 ac_cv_lib_Xext_XShapeQueryExtension
=yes
12510 echo "$as_me: failed program was:" >&5
12511 sed 's/^/| /' conftest.
$ac_ext >&5
12513 ac_cv_lib_Xext_XShapeQueryExtension
=no
12516 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12517 conftest
$ac_exeext conftest.
$ac_ext
12518 LIBS
=$ac_check_lib_save_LIBS
12520 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12521 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12522 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12523 cat >>confdefs.h
<<_ACEOF
12524 #define HAVE_LIBXEXT 1
12527 LIBS
="-lXext $LIBS"
12534 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12535 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12536 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12537 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12538 echo $ECHO_N "(cached) $ECHO_C" >&6
12540 cat >conftest.
$ac_ext <<_ACEOF
12543 cat confdefs.h
>>conftest.
$ac_ext
12544 cat >>conftest.
$ac_ext <<_ACEOF
12545 /* end confdefs.h. */
12550 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12553 Motif version prior to 2.1.
12559 rm -f conftest.
$ac_objext
12560 if { (ac_try
="$ac_compile"
12561 case "(($ac_try" in
12562 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12563 *) ac_try_echo=$ac_try;;
12565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12566 (eval "$ac_compile") 2>conftest.er1
12568 grep -v '^ *+' conftest.er1 >conftest.err
12570 cat conftest.err >&5
12571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12572 (exit $ac_status); } && {
12573 test -z "$ac_c_werror_flag" ||
12574 test ! -s conftest.err
12575 } && test -s conftest.$ac_objext; then
12576 emacs_cv_motif_version_2_1=yes
12578 echo "$as_me: failed program was:" >&5
12579 sed 's/^/| /' conftest.$ac_ext >&5
12581 emacs_cv_motif_version_2_1=no
12584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12586 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12587 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12588 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12589 if test $emacs_cv_motif_version_2_1 = yes; then
12592 cat >>confdefs.h <<\_ACEOF
12593 #define HAVE_MOTIF_2_1 1
12596 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12597 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12598 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12599 echo $ECHO_N "(cached) $ECHO_C" >&6
12601 ac_check_lib_save_LIBS=$LIBS
12603 cat >conftest.$ac_ext <<_ACEOF
12606 cat confdefs.h >>conftest.$ac_ext
12607 cat >>conftest.$ac_ext <<_ACEOF
12608 /* end confdefs.h. */
12610 /* Override any GCC internal prototype to avoid an error.
12611 Use char because int might match the return type of a GCC
12612 builtin and then its argument prototype would still apply. */
12616 char XpCreateContext ();
12620 return XpCreateContext ();
12625 rm -f conftest.$ac_objext conftest$ac_exeext
12626 if { (ac_try="$ac_link"
12627 case "(($ac_try" in
12628 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12629 *) ac_try_echo
=$ac_try;;
12631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12632 (eval "$ac_link") 2>conftest.er1
12634 grep -v '^ *+' conftest.er1
>conftest.err
12636 cat conftest.err
>&5
12637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12638 (exit $ac_status); } && {
12639 test -z "$ac_c_werror_flag" ||
12640 test ! -s conftest.err
12641 } && test -s conftest
$ac_exeext &&
12642 $as_test_x conftest
$ac_exeext; then
12643 ac_cv_lib_Xp_XpCreateContext
=yes
12645 echo "$as_me: failed program was:" >&5
12646 sed 's/^/| /' conftest.
$ac_ext >&5
12648 ac_cv_lib_Xp_XpCreateContext
=no
12651 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12652 conftest
$ac_exeext conftest.
$ac_ext
12653 LIBS
=$ac_check_lib_save_LIBS
12655 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12656 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12657 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12661 if test ${HAVE_LIBXP} = yes; then
12663 cat >>confdefs.h
<<\_ACEOF
12664 #define HAVE_LIBXP 1
12669 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12670 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12671 if test "${emacs_cv_lesstif+set}" = set; then
12672 echo $ECHO_N "(cached) $ECHO_C" >&6
12674 # We put this in CFLAGS temporarily to precede other -I options
12675 # that might be in CFLAGS temporarily.
12676 # We put this in CPPFLAGS where it precedes the other -I options.
12677 OLD_CPPFLAGS
=$CPPFLAGS
12679 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12680 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12681 cat >conftest.
$ac_ext <<_ACEOF
12684 cat confdefs.h
>>conftest.
$ac_ext
12685 cat >>conftest.
$ac_ext <<_ACEOF
12686 /* end confdefs.h. */
12687 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12696 rm -f conftest.
$ac_objext
12697 if { (ac_try
="$ac_compile"
12698 case "(($ac_try" in
12699 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12700 *) ac_try_echo=$ac_try;;
12702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12703 (eval "$ac_compile") 2>conftest.er1
12705 grep -v '^ *+' conftest.er1 >conftest.err
12707 cat conftest.err >&5
12708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709 (exit $ac_status); } && {
12710 test -z "$ac_c_werror_flag" ||
12711 test ! -s conftest.err
12712 } && test -s conftest.$ac_objext; then
12713 emacs_cv_lesstif=yes
12715 echo "$as_me: failed program was:" >&5
12716 sed 's/^/| /' conftest.$ac_ext >&5
12718 emacs_cv_lesstif=no
12721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12723 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12724 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12725 if test $emacs_cv_lesstif = yes; then
12726 # Make sure this -I option remains in CPPFLAGS after it is set
12727 # back to REAL_CPPFLAGS.
12728 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12729 # have those other -I options anyway. Ultimately, having this
12730 # directory ultimately in CPPFLAGS will be enough.
12731 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12732 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12735 CPPFLAGS=$OLD_CPPFLAGS
12742 USE_TOOLKIT_SCROLL_BARS=no
12743 if test "${with_toolkit_scroll_bars}" != "no"; then
12744 if test "${USE_X_TOOLKIT}" != "none"; then
12745 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12746 cat >>confdefs.h <<\_ACEOF
12747 #define USE_TOOLKIT_SCROLL_BARS 1
12751 USE_TOOLKIT_SCROLL_BARS=yes
12752 elif test "${HAVE_XAW3D}" = "yes"; then
12753 cat >>confdefs.h <<\_ACEOF
12754 #define USE_TOOLKIT_SCROLL_BARS 1
12757 USE_TOOLKIT_SCROLL_BARS=yes
12759 elif test "${HAVE_GTK}" = "yes"; then
12760 cat >>confdefs.h <<\_ACEOF
12761 #define USE_TOOLKIT_SCROLL_BARS 1
12764 USE_TOOLKIT_SCROLL_BARS=yes
12765 elif test "${HAVE_CARBON}" = "yes"; then
12766 cat >>confdefs.h <<\_ACEOF
12767 #define USE_TOOLKIT_SCROLL_BARS 1
12770 USE_TOOLKIT_SCROLL_BARS=yes
12774 cat >conftest.$ac_ext <<_ACEOF
12777 cat confdefs.h >>conftest.$ac_ext
12778 cat >>conftest.$ac_ext <<_ACEOF
12779 /* end confdefs.h. */
12781 #include <X11/Xlib.h>
12782 #include <X11/Xresource.h>
12791 rm -f conftest.$ac_objext
12792 if { (ac_try="$ac_compile"
12793 case "(($ac_try" in
12794 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12795 *) ac_try_echo
=$ac_try;;
12797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12798 (eval "$ac_compile") 2>conftest.er1
12800 grep -v '^ *+' conftest.er1
>conftest.err
12802 cat conftest.err
>&5
12803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12804 (exit $ac_status); } && {
12805 test -z "$ac_c_werror_flag" ||
12806 test ! -s conftest.err
12807 } && test -s conftest.
$ac_objext; then
12810 cat >>confdefs.h
<<\_ACEOF
12815 echo "$as_me: failed program was:" >&5
12816 sed 's/^/| /' conftest.
$ac_ext >&5
12821 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12824 if test "${with_xim}" != "no"; then
12826 cat >>confdefs.h
<<\_ACEOF
12833 if test "${HAVE_XIM}" != "no"; then
12834 late_CFLAGS
=$CFLAGS
12835 if test "$GCC" = yes; then
12836 CFLAGS
="$CFLAGS --pedantic-errors"
12838 cat >conftest.
$ac_ext <<_ACEOF
12841 cat confdefs.h
>>conftest.
$ac_ext
12842 cat >>conftest.
$ac_ext <<_ACEOF
12843 /* end confdefs.h. */
12845 #include <X11/Xlib.h>
12846 #include <X11/Xresource.h>
12855 XPointer *client_data;
12857 /* If we're not using GCC, it's probably not XFree86, and this is
12858 probably right, but we can't use something like --pedantic-errors. */
12859 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12860 char*, XIMProc, XPointer*);
12862 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12868 rm -f conftest.
$ac_objext
12869 if { (ac_try
="$ac_compile"
12870 case "(($ac_try" in
12871 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12872 *) ac_try_echo=$ac_try;;
12874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12875 (eval "$ac_compile") 2>conftest.er1
12877 grep -v '^ *+' conftest.er1 >conftest.err
12879 cat conftest.err >&5
12880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12881 (exit $ac_status); } && {
12882 test -z "$ac_c_werror_flag" ||
12883 test ! -s conftest.err
12884 } && test -s conftest.$ac_objext; then
12885 emacs_cv_arg6_star=yes
12887 echo "$as_me: failed program was:" >&5
12888 sed 's/^/| /' conftest.$ac_ext >&5
12893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12895 if test "$emacs_cv_arg6_star" = yes; then
12896 cat >>confdefs.h <<\_ACEOF
12897 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12901 cat >>confdefs.h <<\_ACEOF
12902 #define XRegisterIMInstantiateCallback_arg6 XPointer
12906 CFLAGS=$late_CFLAGS
12909 #### For font-backend
12910 if test "${USE_FONT_BACKEND}" = "yes"; then
12913 cat >>confdefs.h <<\_ACEOF
12914 #define USE_FONT_BACKEND 1
12918 ### Use -lXft if available, unless `--with-freetype=no
' nor `--with-xft=no'.
12920 if test "${HAVE_X11}" = "yes"; then
12921 if test "x${with_freetype}" = "xno"; then
12924 if test "x${with_xft}" != "xno"; then
12926 if test "X${with_pkg_config_prog}" != X
; then
12927 PKG_CONFIG
="${with_pkg_config_prog}"
12933 if test -z "$PKG_CONFIG"; then
12934 # Extract the first word of "pkg-config", so it can be a program name with args.
12935 set dummy pkg-config
; ac_word
=$2
12936 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12938 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12939 echo $ECHO_N "(cached) $ECHO_C" >&6
12941 case $PKG_CONFIG in
12943 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12946 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12947 for as_dir
in $PATH
12950 test -z "$as_dir" && as_dir
=.
12951 for ac_exec_ext
in '' $ac_executable_extensions; do
12952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12953 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12961 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12965 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12966 if test -n "$PKG_CONFIG"; then
12967 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12968 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12970 { echo "$as_me:$LINENO: result: no" >&5
12971 echo "${ECHO_T}no" >&6; }
12977 if test "$PKG_CONFIG" = "no" ; then
12980 PKG_CONFIG_MIN_VERSION
=0.9.0
12981 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12982 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12983 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12985 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12986 { echo "$as_me:$LINENO: result: yes" >&5
12987 echo "${ECHO_T}yes" >&6; }
12990 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12991 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12992 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12993 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12994 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12996 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12997 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12998 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12999 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
13000 echo "${ECHO_T}$XFT_LIBS" >&6; }
13002 { echo "$as_me:$LINENO: result: no" >&5
13003 echo "${ECHO_T}no" >&6; }
13006 ## If we have a custom action on failure, don't print errors, but
13007 ## do set a variable so people can do so.
13008 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
13015 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13016 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13020 if test $succeeded = yes; then
13026 if test "$HAVE_XFT" != no
; then
13027 OLD_CPPFLAGS
="$CPPFLAGS"
13028 OLD_CFLAGS
="$CFLAGS"
13030 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
13031 CFLAGS
="$CFLAGS $XFT_CFLAGS"
13032 LIBS
="$XFT_LIBS $LIBS"
13033 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13034 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
13035 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
13036 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13037 echo $ECHO_N "(cached) $ECHO_C" >&6
13039 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
13040 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
13042 # Is the header compilable?
13043 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
13044 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
13045 cat >conftest.
$ac_ext <<_ACEOF
13048 cat confdefs.h
>>conftest.
$ac_ext
13049 cat >>conftest.
$ac_ext <<_ACEOF
13050 /* end confdefs.h. */
13051 $ac_includes_default
13052 #include <X11/Xft/Xft.h>
13054 rm -f conftest.
$ac_objext
13055 if { (ac_try
="$ac_compile"
13056 case "(($ac_try" in
13057 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13058 *) ac_try_echo=$ac_try;;
13060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13061 (eval "$ac_compile") 2>conftest.er1
13063 grep -v '^ *+' conftest.er1 >conftest.err
13065 cat conftest.err >&5
13066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13067 (exit $ac_status); } && {
13068 test -z "$ac_c_werror_flag" ||
13069 test ! -s conftest.err
13070 } && test -s conftest.$ac_objext; then
13071 ac_header_compiler=yes
13073 echo "$as_me: failed program was:" >&5
13074 sed 's/^/| /' conftest.$ac_ext >&5
13076 ac_header_compiler=no
13079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13080 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13081 echo "${ECHO_T}$ac_header_compiler" >&6; }
13083 # Is the header present?
13084 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
13085 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
13086 cat >conftest.$ac_ext <<_ACEOF
13089 cat confdefs.h >>conftest.$ac_ext
13090 cat >>conftest.$ac_ext <<_ACEOF
13091 /* end confdefs.h. */
13092 #include <X11/Xft/Xft.h>
13094 if { (ac_try="$ac_cpp conftest.$ac_ext"
13095 case "(($ac_try" in
13096 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13097 *) ac_try_echo
=$ac_try;;
13099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13100 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13102 grep -v '^ *+' conftest.er1
>conftest.err
13104 cat conftest.err
>&5
13105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13106 (exit $ac_status); } >/dev
/null
&& {
13107 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13108 test ! -s conftest.err
13110 ac_header_preproc
=yes
13112 echo "$as_me: failed program was:" >&5
13113 sed 's/^/| /' conftest.
$ac_ext >&5
13115 ac_header_preproc
=no
13118 rm -f conftest.err conftest.
$ac_ext
13119 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13120 echo "${ECHO_T}$ac_header_preproc" >&6; }
13122 # So? What about this header?
13123 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13125 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
13126 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13127 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
13128 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
13129 ac_header_preproc
=yes
13132 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
13133 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
13134 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
13135 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
13136 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
13137 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
13138 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
13139 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
13140 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
13141 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
13142 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
13143 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
13147 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
13148 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
13149 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13150 echo $ECHO_N "(cached) $ECHO_C" >&6
13152 ac_cv_header_X11_Xft_Xft_h
=$ac_header_preproc
13154 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
13155 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
13158 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
13159 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
13160 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
13161 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
13162 echo $ECHO_N "(cached) $ECHO_C" >&6
13164 ac_check_lib_save_LIBS
=$LIBS
13165 LIBS
="-lXft $XFT_LIBS $LIBS"
13166 cat >conftest.
$ac_ext <<_ACEOF
13169 cat confdefs.h
>>conftest.
$ac_ext
13170 cat >>conftest.
$ac_ext <<_ACEOF
13171 /* end confdefs.h. */
13173 /* Override any GCC internal prototype to avoid an error.
13174 Use char because int might match the return type of a GCC
13175 builtin and then its argument prototype would still apply. */
13179 char XftFontOpen ();
13183 return XftFontOpen ();
13188 rm -f conftest.
$ac_objext conftest
$ac_exeext
13189 if { (ac_try
="$ac_link"
13190 case "(($ac_try" in
13191 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13192 *) ac_try_echo=$ac_try;;
13194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13195 (eval "$ac_link") 2>conftest.er1
13197 grep -v '^ *+' conftest.er1 >conftest.err
13199 cat conftest.err >&5
13200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13201 (exit $ac_status); } && {
13202 test -z "$ac_c_werror_flag" ||
13203 test ! -s conftest.err
13204 } && test -s conftest$ac_exeext &&
13205 $as_test_x conftest$ac_exeext; then
13206 ac_cv_lib_Xft_XftFontOpen=yes
13208 echo "$as_me: failed program was:" >&5
13209 sed 's/^/| /' conftest.$ac_ext >&5
13211 ac_cv_lib_Xft_XftFontOpen=no
13214 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13215 conftest$ac_exeext conftest.$ac_ext
13216 LIBS=$ac_check_lib_save_LIBS
13218 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
13219 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
13220 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
13228 if test "${HAVE_XFT}" = "yes"; then
13230 cat >>confdefs.h <<\_ACEOF
13235 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
13237 CPPFLAGS="$OLD_CPPFLAGS"
13238 CFLAGS="$OLD_CFLAGS"
13246 ### Use -lfreetype if available, unless `--with-freetype=no
'.
13247 if test "${HAVE_XFT}" = "yes"; then
13249 elif test "x${with_freetype}" != "xno"; then
13250 if test "X${with_pkg_config_prog}" != X; then
13251 PKG_CONFIG="${with_pkg_config_prog}"
13256 if test -z "$PKG_CONFIG"; then
13257 # Extract the first word of "pkg-config", so it can be a program name with args.
13258 set dummy pkg-config; ac_word=$2
13259 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13261 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13262 echo $ECHO_N "(cached) $ECHO_C" >&6
13264 case $PKG_CONFIG in
13266 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13270 for as_dir in $PATH
13273 test -z "$as_dir" && as_dir=.
13274 for ac_exec_ext in '' $ac_executable_extensions; do
13275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13276 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13284 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13288 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13289 if test -n "$PKG_CONFIG"; then
13290 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13291 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13293 { echo "$as_me:$LINENO: result: no" >&5
13294 echo "${ECHO_T}no" >&6; }
13300 if test "$PKG_CONFIG" = "no" ; then
13303 PKG_CONFIG_MIN_VERSION=0.9.0
13304 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13305 { echo "$as_me:$LINENO: checking for freetype2" >&5
13306 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6; }
13308 if $PKG_CONFIG --exists "freetype2" 2>&5; then
13309 { echo "$as_me:$LINENO: result: yes" >&5
13310 echo "${ECHO_T}yes" >&6; }
13313 { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
13314 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6; }
13315 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's
,///*,/,g
'`
13316 { echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
13317 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; }
13319 { echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
13320 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6; }
13321 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's
,///*,/,g
'`
13322 { echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
13323 echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
13325 { echo "$as_me:$LINENO: result: no" >&5
13326 echo "${ECHO_T}no" >&6; }
13329 ## If we have a custom action on failure, don't print errors
, but
13330 ## do set a variable so people can do so.
13331 FREETYPE_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
13338 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13339 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13343 if test $succeeded = yes; then
13349 if test "${HAVE_FREETYPE}" = "yes"; then
13353 if test -z "$PKG_CONFIG"; then
13354 # Extract the first word of "pkg-config", so it can be a program name with args.
13355 set dummy pkg-config
; ac_word
=$2
13356 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13358 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13359 echo $ECHO_N "(cached) $ECHO_C" >&6
13361 case $PKG_CONFIG in
13363 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13366 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13367 for as_dir
in $PATH
13370 test -z "$as_dir" && as_dir
=.
13371 for ac_exec_ext
in '' $ac_executable_extensions; do
13372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13373 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13381 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13385 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13386 if test -n "$PKG_CONFIG"; then
13387 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13388 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13390 { echo "$as_me:$LINENO: result: no" >&5
13391 echo "${ECHO_T}no" >&6; }
13397 if test "$PKG_CONFIG" = "no" ; then
13400 PKG_CONFIG_MIN_VERSION
=0.9.0
13401 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13402 { echo "$as_me:$LINENO: checking for fontconfig" >&5
13403 echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6; }
13405 if $PKG_CONFIG --exists "fontconfig" 2>&5; then
13406 { echo "$as_me:$LINENO: result: yes" >&5
13407 echo "${ECHO_T}yes" >&6; }
13410 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13411 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6; }
13412 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig"|sed -e 's,///*,/,g'`
13413 { echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13414 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
13416 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13417 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6; }
13418 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig"|sed -e 's,///*,/,g'`
13419 { echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13420 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
13422 { echo "$as_me:$LINENO: result: no" >&5
13423 echo "${ECHO_T}no" >&6; }
13424 FONTCONFIG_CFLAGS
=""
13426 ## If we have a custom action on failure, don't print errors, but
13427 ## do set a variable so people can do so.
13428 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
13435 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13436 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13440 if test $succeeded = yes; then
13446 if test "${HAVE_FC}" = "no"; then
13453 if test "${HAVE_FREETYPE}" = "yes"; then
13455 cat >>confdefs.h
<<\_ACEOF
13456 #define HAVE_FREETYPE 1
13459 if test "${with_libotf}" != "no"; then
13460 if test "X${with_pkg_config_prog}" != X
; then
13461 PKG_CONFIG
="${with_pkg_config_prog}"
13466 if test -z "$PKG_CONFIG"; then
13467 # Extract the first word of "pkg-config", so it can be a program name with args.
13468 set dummy pkg-config
; ac_word
=$2
13469 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13471 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13472 echo $ECHO_N "(cached) $ECHO_C" >&6
13474 case $PKG_CONFIG in
13476 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13479 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13480 for as_dir
in $PATH
13483 test -z "$as_dir" && as_dir
=.
13484 for ac_exec_ext
in '' $ac_executable_extensions; do
13485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13486 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13494 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13498 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13499 if test -n "$PKG_CONFIG"; then
13500 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13501 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13503 { echo "$as_me:$LINENO: result: no" >&5
13504 echo "${ECHO_T}no" >&6; }
13510 if test "$PKG_CONFIG" = "no" ; then
13511 pkg_check_libotf
=no
13513 PKG_CONFIG_MIN_VERSION
=0.9.0
13514 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13515 { echo "$as_me:$LINENO: checking for libotf" >&5
13516 echo $ECHO_N "checking for libotf... $ECHO_C" >&6; }
13518 if $PKG_CONFIG --exists "libotf" 2>&5; then
13519 { echo "$as_me:$LINENO: result: yes" >&5
13520 echo "${ECHO_T}yes" >&6; }
13523 { echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
13524 echo $ECHO_N "checking LIBOTF_CFLAGS... $ECHO_C" >&6; }
13525 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
13526 { echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
13527 echo "${ECHO_T}$LIBOTF_CFLAGS" >&6; }
13529 { echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
13530 echo $ECHO_N "checking LIBOTF_LIBS... $ECHO_C" >&6; }
13531 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
13532 { echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
13533 echo "${ECHO_T}$LIBOTF_LIBS" >&6; }
13535 { echo "$as_me:$LINENO: result: no" >&5
13536 echo "${ECHO_T}no" >&6; }
13539 ## If we have a custom action on failure, don't print errors, but
13540 ## do set a variable so people can do so.
13541 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
13548 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13549 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13553 if test $succeeded = yes; then
13554 pkg_check_libotf
=yes
13556 pkg_check_libotf
=no
13559 if test "$pkg_check_libotf" = "yes"; then
13561 cat >>confdefs.h
<<\_ACEOF
13562 #define HAVE_LIBOTF 1
13570 if test "${with_m17n_flt}" != "no"; then
13571 if test "X${with_pkg_config_prog}" != X
; then
13572 PKG_CONFIG
="${with_pkg_config_prog}"
13577 if test -z "$PKG_CONFIG"; then
13578 # Extract the first word of "pkg-config", so it can be a program name with args.
13579 set dummy pkg-config
; ac_word
=$2
13580 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13582 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13583 echo $ECHO_N "(cached) $ECHO_C" >&6
13585 case $PKG_CONFIG in
13587 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13590 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13591 for as_dir
in $PATH
13594 test -z "$as_dir" && as_dir
=.
13595 for ac_exec_ext
in '' $ac_executable_extensions; do
13596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13597 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13605 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13609 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13610 if test -n "$PKG_CONFIG"; then
13611 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13612 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13614 { echo "$as_me:$LINENO: result: no" >&5
13615 echo "${ECHO_T}no" >&6; }
13621 if test "$PKG_CONFIG" = "no" ; then
13622 pkg_check_m17n_flt
=no
13624 PKG_CONFIG_MIN_VERSION
=0.9.0
13625 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13626 { echo "$as_me:$LINENO: checking for m17n-flt" >&5
13627 echo $ECHO_N "checking for m17n-flt... $ECHO_C" >&6; }
13629 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
13630 { echo "$as_me:$LINENO: result: yes" >&5
13631 echo "${ECHO_T}yes" >&6; }
13634 { echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
13635 echo $ECHO_N "checking M17N_FLT_CFLAGS... $ECHO_C" >&6; }
13636 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
13637 { echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
13638 echo "${ECHO_T}$M17N_FLT_CFLAGS" >&6; }
13640 { echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
13641 echo $ECHO_N "checking M17N_FLT_LIBS... $ECHO_C" >&6; }
13642 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
13643 { echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
13644 echo "${ECHO_T}$M17N_FLT_LIBS" >&6; }
13646 { echo "$as_me:$LINENO: result: no" >&5
13647 echo "${ECHO_T}no" >&6; }
13650 ## If we have a custom action on failure, don't print errors, but
13651 ## do set a variable so people can do so.
13652 M17N_FLT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13659 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13660 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13664 if test $succeeded = yes; then
13665 pkg_check_m17n_flt
=yes
13667 pkg_check_m17n_flt
=no
13670 if test "$pkg_check_m17n_flt" = "yes"; then
13672 cat >>confdefs.h
<<\_ACEOF
13673 #define HAVE_M17N_FLT 1
13689 #### End for font-backend
13691 ### Use -lXpm if available, unless `--with-xpm=no'.
13693 if test "${HAVE_X11}" = "yes"; then
13694 if test "${with_xpm}" != "no"; then
13695 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13696 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13697 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13698 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13699 echo $ECHO_N "(cached) $ECHO_C" >&6
13701 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13702 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13704 # Is the header compilable?
13705 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13706 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13707 cat >conftest.
$ac_ext <<_ACEOF
13710 cat confdefs.h
>>conftest.
$ac_ext
13711 cat >>conftest.
$ac_ext <<_ACEOF
13712 /* end confdefs.h. */
13713 $ac_includes_default
13714 #include <X11/xpm.h>
13716 rm -f conftest.
$ac_objext
13717 if { (ac_try
="$ac_compile"
13718 case "(($ac_try" in
13719 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13720 *) ac_try_echo=$ac_try;;
13722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13723 (eval "$ac_compile") 2>conftest.er1
13725 grep -v '^ *+' conftest.er1 >conftest.err
13727 cat conftest.err >&5
13728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729 (exit $ac_status); } && {
13730 test -z "$ac_c_werror_flag" ||
13731 test ! -s conftest.err
13732 } && test -s conftest.$ac_objext; then
13733 ac_header_compiler=yes
13735 echo "$as_me: failed program was:" >&5
13736 sed 's/^/| /' conftest.$ac_ext >&5
13738 ac_header_compiler=no
13741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13742 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13743 echo "${ECHO_T}$ac_header_compiler" >&6; }
13745 # Is the header present?
13746 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13747 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13748 cat >conftest.$ac_ext <<_ACEOF
13751 cat confdefs.h >>conftest.$ac_ext
13752 cat >>conftest.$ac_ext <<_ACEOF
13753 /* end confdefs.h. */
13754 #include <X11/xpm.h>
13756 if { (ac_try="$ac_cpp conftest.$ac_ext"
13757 case "(($ac_try" in
13758 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13759 *) ac_try_echo
=$ac_try;;
13761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13762 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13764 grep -v '^ *+' conftest.er1
>conftest.err
13766 cat conftest.err
>&5
13767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768 (exit $ac_status); } >/dev
/null
&& {
13769 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13770 test ! -s conftest.err
13772 ac_header_preproc
=yes
13774 echo "$as_me: failed program was:" >&5
13775 sed 's/^/| /' conftest.
$ac_ext >&5
13777 ac_header_preproc
=no
13780 rm -f conftest.err conftest.
$ac_ext
13781 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13782 echo "${ECHO_T}$ac_header_preproc" >&6; }
13784 # So? What about this header?
13785 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13787 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13788 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13789 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13790 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13791 ac_header_preproc
=yes
13794 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13795 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13796 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13797 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13798 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13799 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13800 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13801 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13802 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13803 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13804 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13805 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13809 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13810 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13811 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13812 echo $ECHO_N "(cached) $ECHO_C" >&6
13814 ac_cv_header_X11_xpm_h
=$ac_header_preproc
13816 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13817 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13820 if test $ac_cv_header_X11_xpm_h = yes; then
13821 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13822 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13823 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13824 echo $ECHO_N "(cached) $ECHO_C" >&6
13826 ac_check_lib_save_LIBS
=$LIBS
13827 LIBS
="-lXpm -lX11 $LIBS"
13828 cat >conftest.
$ac_ext <<_ACEOF
13831 cat confdefs.h
>>conftest.
$ac_ext
13832 cat >>conftest.
$ac_ext <<_ACEOF
13833 /* end confdefs.h. */
13835 /* Override any GCC internal prototype to avoid an error.
13836 Use char because int might match the return type of a GCC
13837 builtin and then its argument prototype would still apply. */
13841 char XpmReadFileToPixmap ();
13845 return XpmReadFileToPixmap ();
13850 rm -f conftest.
$ac_objext conftest
$ac_exeext
13851 if { (ac_try
="$ac_link"
13852 case "(($ac_try" in
13853 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13854 *) ac_try_echo=$ac_try;;
13856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13857 (eval "$ac_link") 2>conftest.er1
13859 grep -v '^ *+' conftest.er1 >conftest.err
13861 cat conftest.err >&5
13862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13863 (exit $ac_status); } && {
13864 test -z "$ac_c_werror_flag" ||
13865 test ! -s conftest.err
13866 } && test -s conftest$ac_exeext &&
13867 $as_test_x conftest$ac_exeext; then
13868 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13870 echo "$as_me: failed program was:" >&5
13871 sed 's/^/| /' conftest.$ac_ext >&5
13873 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13877 conftest$ac_exeext conftest.$ac_ext
13878 LIBS=$ac_check_lib_save_LIBS
13880 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13881 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13882 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13889 if test "${HAVE_XPM}" = "yes"; then
13890 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13891 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13892 cat >conftest.$ac_ext <<_ACEOF
13895 cat confdefs.h >>conftest.$ac_ext
13896 cat >>conftest.$ac_ext <<_ACEOF
13897 /* end confdefs.h. */
13898 #include "X11/xpm.h"
13899 #ifndef XpmReturnAllocPixels
13900 no_return_alloc_pixels
13904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13905 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13913 if test "${HAVE_XPM}" = "yes"; then
13914 { echo "$as_me:$LINENO: result: yes" >&5
13915 echo "${ECHO_T}yes" >&6; }
13917 { echo "$as_me:$LINENO: result: no" >&5
13918 echo "${ECHO_T}no" >&6; }
13923 if test "${HAVE_XPM}" = "yes"; then
13925 cat >>confdefs.h <<\_ACEOF
13932 ### Use -ljpeg if available, unless `--with-jpeg=no
'.
13934 if test "${HAVE_X11}" = "yes"; then
13935 if test "${with_jpeg}" != "no"; then
13936 if test "${ac_cv_header_jerror_h+set}" = set; then
13937 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13938 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13939 if test "${ac_cv_header_jerror_h+set}" = set; then
13940 echo $ECHO_N "(cached) $ECHO_C" >&6
13942 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13943 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13945 # Is the header compilable?
13946 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13947 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13948 cat >conftest.$ac_ext <<_ACEOF
13951 cat confdefs.h >>conftest.$ac_ext
13952 cat >>conftest.$ac_ext <<_ACEOF
13953 /* end confdefs.h. */
13954 $ac_includes_default
13955 #include <jerror.h>
13957 rm -f conftest.$ac_objext
13958 if { (ac_try="$ac_compile"
13959 case "(($ac_try" in
13960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13961 *) ac_try_echo=$ac_try;;
13963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13964 (eval "$ac_compile") 2>conftest.er1
13966 grep -v '^
*+' conftest.er1 >conftest.err
13968 cat conftest.err >&5
13969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13970 (exit $ac_status); } && {
13971 test -z "$ac_c_werror_flag" ||
13972 test ! -s conftest.err
13973 } && test -s conftest.$ac_objext; then
13974 ac_header_compiler=yes
13976 echo "$as_me: failed program was:" >&5
13977 sed 's
/^
/|
/' conftest.$ac_ext >&5
13979 ac_header_compiler=no
13982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13983 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13984 echo "${ECHO_T}$ac_header_compiler" >&6; }
13986 # Is the header present?
13987 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13988 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13989 cat >conftest.$ac_ext <<_ACEOF
13992 cat confdefs.h >>conftest.$ac_ext
13993 cat >>conftest.$ac_ext <<_ACEOF
13994 /* end confdefs.h. */
13995 #include <jerror.h>
13997 if { (ac_try="$ac_cpp conftest.$ac_ext"
13998 case "(($ac_try" in
13999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14000 *) ac_try_echo=$ac_try;;
14002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14003 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14005 grep -v '^
*+' conftest.er1 >conftest.err
14007 cat conftest.err >&5
14008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14009 (exit $ac_status); } >/dev/null && {
14010 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14011 test ! -s conftest.err
14013 ac_header_preproc=yes
14015 echo "$as_me: failed program was:" >&5
14016 sed 's
/^
/|
/' conftest.$ac_ext >&5
14018 ac_header_preproc=no
14021 rm -f conftest.err conftest.$ac_ext
14022 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14023 echo "${ECHO_T}$ac_header_preproc" >&6; }
14025 # So? What about this header?
14026 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14028 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
14029 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14030 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result
" >&5
14031 echo "$as_me: WARNING
: jerror.h
: proceeding with the compiler
's result" >&2;}
14032 ac_header_preproc=yes
14035 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
14036 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
14037 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
14038 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
14039 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
14040 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
14041 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
14042 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
14043 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result
" >&5
14044 echo "$as_me: WARNING
: jerror.h
: proceeding with the preprocessor
's result" >&2;}
14045 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
14046 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
14050 { echo "$as_me:$LINENO: checking for jerror.h" >&5
14051 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
14052 if test "${ac_cv_header_jerror_h+set}" = set; then
14053 echo $ECHO_N "(cached) $ECHO_C" >&6
14055 ac_cv_header_jerror_h=$ac_header_preproc
14057 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14058 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
14061 if test $ac_cv_header_jerror_h = yes; then
14062 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
14063 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
14064 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
14065 echo $ECHO_N "(cached) $ECHO_C" >&6
14067 ac_check_lib_save_LIBS=$LIBS
14068 LIBS="-ljpeg $LIBS"
14069 cat >conftest.$ac_ext <<_ACEOF
14072 cat confdefs.h >>conftest.$ac_ext
14073 cat >>conftest.$ac_ext <<_ACEOF
14074 /* end confdefs.h. */
14076 /* Override any GCC internal prototype to avoid an error.
14077 Use char because int might match the return type of a GCC
14078 builtin and then its argument prototype would still apply. */
14082 char jpeg_destroy_compress ();
14086 return jpeg_destroy_compress ();
14091 rm -f conftest.$ac_objext conftest$ac_exeext
14092 if { (ac_try="$ac_link"
14093 case "(($ac_try" in
14094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14095 *) ac_try_echo=$ac_try;;
14097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14098 (eval "$ac_link") 2>conftest.er1
14100 grep -v '^
*+' conftest.er1 >conftest.err
14102 cat conftest.err >&5
14103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14104 (exit $ac_status); } && {
14105 test -z "$ac_c_werror_flag" ||
14106 test ! -s conftest.err
14107 } && test -s conftest$ac_exeext &&
14108 $as_test_x conftest$ac_exeext; then
14109 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
14111 echo "$as_me: failed program was:" >&5
14112 sed 's
/^
/|
/' conftest.$ac_ext >&5
14114 ac_cv_lib_jpeg_jpeg_destroy_compress=no
14117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14118 conftest$ac_exeext conftest.$ac_ext
14119 LIBS=$ac_check_lib_save_LIBS
14121 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
14122 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
14123 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
14133 if test "${HAVE_JPEG}" = "yes"; then
14134 cat >>confdefs.h <<\_ACEOF
14135 #define HAVE_JPEG 1
14138 cat >conftest.$ac_ext <<_ACEOF
14141 cat confdefs.h >>conftest.$ac_ext
14142 cat >>conftest.$ac_ext <<_ACEOF
14143 /* end confdefs.h. */
14144 #include <jpeglib.h>
14145 version=JPEG_LIB_VERSION
14148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14149 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
14150 cat >>confdefs.h <<\_ACEOF
14151 #define HAVE_JPEG 1
14155 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
14156 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
14164 ### Use -lpng if available, unless `--with-png=no'.
14166 if test "${HAVE_X11}" = "yes"; then
14167 if test "${with_png}" != "no"; then
14168 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
14169 # in /usr/include/libpng.
14172 for ac_header
in png.h libpng
/png.h
14174 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14175 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14176 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14177 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14178 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14179 echo $ECHO_N "(cached) $ECHO_C" >&6
14181 ac_res
=`eval echo '${'$as_ac_Header'}'`
14182 { echo "$as_me:$LINENO: result: $ac_res" >&5
14183 echo "${ECHO_T}$ac_res" >&6; }
14185 # Is the header compilable?
14186 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14187 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14188 cat >conftest.
$ac_ext <<_ACEOF
14191 cat confdefs.h
>>conftest.
$ac_ext
14192 cat >>conftest.
$ac_ext <<_ACEOF
14193 /* end confdefs.h. */
14194 $ac_includes_default
14195 #include <$ac_header>
14197 rm -f conftest.
$ac_objext
14198 if { (ac_try
="$ac_compile"
14199 case "(($ac_try" in
14200 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14201 *) ac_try_echo=$ac_try;;
14203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14204 (eval "$ac_compile") 2>conftest.er1
14206 grep -v '^ *+' conftest.er1 >conftest.err
14208 cat conftest.err >&5
14209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14210 (exit $ac_status); } && {
14211 test -z "$ac_c_werror_flag" ||
14212 test ! -s conftest.err
14213 } && test -s conftest.$ac_objext; then
14214 ac_header_compiler=yes
14216 echo "$as_me: failed program was:" >&5
14217 sed 's/^/| /' conftest.$ac_ext >&5
14219 ac_header_compiler=no
14222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14223 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14224 echo "${ECHO_T}$ac_header_compiler" >&6; }
14226 # Is the header present?
14227 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14228 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14229 cat >conftest.$ac_ext <<_ACEOF
14232 cat confdefs.h >>conftest.$ac_ext
14233 cat >>conftest.$ac_ext <<_ACEOF
14234 /* end confdefs.h. */
14235 #include <$ac_header>
14237 if { (ac_try="$ac_cpp conftest.$ac_ext"
14238 case "(($ac_try" in
14239 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14240 *) ac_try_echo
=$ac_try;;
14242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14243 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14245 grep -v '^ *+' conftest.er1
>conftest.err
14247 cat conftest.err
>&5
14248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14249 (exit $ac_status); } >/dev
/null
&& {
14250 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14251 test ! -s conftest.err
14253 ac_header_preproc
=yes
14255 echo "$as_me: failed program was:" >&5
14256 sed 's/^/| /' conftest.
$ac_ext >&5
14258 ac_header_preproc
=no
14261 rm -f conftest.err conftest.
$ac_ext
14262 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14263 echo "${ECHO_T}$ac_header_preproc" >&6; }
14265 # So? What about this header?
14266 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14268 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14269 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14270 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14271 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14272 ac_header_preproc
=yes
14275 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14276 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14277 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14278 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14279 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14280 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14281 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14282 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14283 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14284 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14285 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14286 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14290 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14291 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14292 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14293 echo $ECHO_N "(cached) $ECHO_C" >&6
14295 eval "$as_ac_Header=\$ac_header_preproc"
14297 ac_res
=`eval echo '${'$as_ac_Header'}'`
14298 { echo "$as_me:$LINENO: result: $ac_res" >&5
14299 echo "${ECHO_T}$ac_res" >&6; }
14302 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14303 cat >>confdefs.h
<<_ACEOF
14304 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14311 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
14312 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
14313 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
14314 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
14315 echo $ECHO_N "(cached) $ECHO_C" >&6
14317 ac_check_lib_save_LIBS
=$LIBS
14318 LIBS
="-lpng -lz -lm $LIBS"
14319 cat >conftest.
$ac_ext <<_ACEOF
14322 cat confdefs.h
>>conftest.
$ac_ext
14323 cat >>conftest.
$ac_ext <<_ACEOF
14324 /* end confdefs.h. */
14326 /* Override any GCC internal prototype to avoid an error.
14327 Use char because int might match the return type of a GCC
14328 builtin and then its argument prototype would still apply. */
14332 char png_get_channels ();
14336 return png_get_channels ();
14341 rm -f conftest.
$ac_objext conftest
$ac_exeext
14342 if { (ac_try
="$ac_link"
14343 case "(($ac_try" in
14344 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14345 *) ac_try_echo=$ac_try;;
14347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14348 (eval "$ac_link") 2>conftest.er1
14350 grep -v '^ *+' conftest.er1 >conftest.err
14352 cat conftest.err >&5
14353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14354 (exit $ac_status); } && {
14355 test -z "$ac_c_werror_flag" ||
14356 test ! -s conftest.err
14357 } && test -s conftest$ac_exeext &&
14358 $as_test_x conftest$ac_exeext; then
14359 ac_cv_lib_png_png_get_channels=yes
14361 echo "$as_me: failed program was:" >&5
14362 sed 's/^/| /' conftest.$ac_ext >&5
14364 ac_cv_lib_png_png_get_channels=no
14367 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14368 conftest$ac_exeext conftest.$ac_ext
14369 LIBS=$ac_check_lib_save_LIBS
14371 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
14372 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
14373 if test $ac_cv_lib_png_png_get_channels = yes; then
14380 if test "${HAVE_PNG}" = "yes"; then
14382 cat >>confdefs.h <<\_ACEOF
14389 ### Use -ltiff if available, unless `--with-tiff=no
'.
14391 if test "${HAVE_X11}" = "yes"; then
14392 if test "${with_tiff}" != "no"; then
14393 if test "${ac_cv_header_tiffio_h+set}" = set; then
14394 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14395 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14396 if test "${ac_cv_header_tiffio_h+set}" = set; then
14397 echo $ECHO_N "(cached) $ECHO_C" >&6
14399 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14400 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14402 # Is the header compilable?
14403 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
14404 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
14405 cat >conftest.$ac_ext <<_ACEOF
14408 cat confdefs.h >>conftest.$ac_ext
14409 cat >>conftest.$ac_ext <<_ACEOF
14410 /* end confdefs.h. */
14411 $ac_includes_default
14412 #include <tiffio.h>
14414 rm -f conftest.$ac_objext
14415 if { (ac_try="$ac_compile"
14416 case "(($ac_try" in
14417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14418 *) ac_try_echo=$ac_try;;
14420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14421 (eval "$ac_compile") 2>conftest.er1
14423 grep -v '^
*+' conftest.er1 >conftest.err
14425 cat conftest.err >&5
14426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14427 (exit $ac_status); } && {
14428 test -z "$ac_c_werror_flag" ||
14429 test ! -s conftest.err
14430 } && test -s conftest.$ac_objext; then
14431 ac_header_compiler=yes
14433 echo "$as_me: failed program was:" >&5
14434 sed 's
/^
/|
/' conftest.$ac_ext >&5
14436 ac_header_compiler=no
14439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14440 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14441 echo "${ECHO_T}$ac_header_compiler" >&6; }
14443 # Is the header present?
14444 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
14445 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
14446 cat >conftest.$ac_ext <<_ACEOF
14449 cat confdefs.h >>conftest.$ac_ext
14450 cat >>conftest.$ac_ext <<_ACEOF
14451 /* end confdefs.h. */
14452 #include <tiffio.h>
14454 if { (ac_try="$ac_cpp conftest.$ac_ext"
14455 case "(($ac_try" in
14456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14457 *) ac_try_echo=$ac_try;;
14459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14460 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14462 grep -v '^
*+' conftest.er1 >conftest.err
14464 cat conftest.err >&5
14465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466 (exit $ac_status); } >/dev/null && {
14467 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14468 test ! -s conftest.err
14470 ac_header_preproc=yes
14472 echo "$as_me: failed program was:" >&5
14473 sed 's
/^
/|
/' conftest.$ac_ext >&5
14475 ac_header_preproc=no
14478 rm -f conftest.err conftest.$ac_ext
14479 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14480 echo "${ECHO_T}$ac_header_preproc" >&6; }
14482 # So? What about this header?
14483 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14485 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
14486 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14487 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result
" >&5
14488 echo "$as_me: WARNING
: tiffio.h
: proceeding with the compiler
's result" >&2;}
14489 ac_header_preproc=yes
14492 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
14493 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
14494 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
14495 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
14496 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
14497 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
14498 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
14499 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
14500 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result
" >&5
14501 echo "$as_me: WARNING
: tiffio.h
: proceeding with the preprocessor
's result" >&2;}
14502 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
14503 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
14507 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14508 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14509 if test "${ac_cv_header_tiffio_h+set}" = set; then
14510 echo $ECHO_N "(cached) $ECHO_C" >&6
14512 ac_cv_header_tiffio_h=$ac_header_preproc
14514 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14515 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14518 if test $ac_cv_header_tiffio_h = yes; then
14520 # At least one tiff package requires the jpeg library.
14521 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14522 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
14523 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
14524 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14525 echo $ECHO_N "(cached) $ECHO_C" >&6
14527 ac_check_lib_save_LIBS=$LIBS
14528 LIBS="-ltiff $tifflibs $LIBS"
14529 cat >conftest.$ac_ext <<_ACEOF
14532 cat confdefs.h >>conftest.$ac_ext
14533 cat >>conftest.$ac_ext <<_ACEOF
14534 /* end confdefs.h. */
14536 /* Override any GCC internal prototype to avoid an error.
14537 Use char because int might match the return type of a GCC
14538 builtin and then its argument prototype would still apply. */
14542 char TIFFGetVersion ();
14546 return TIFFGetVersion ();
14551 rm -f conftest.$ac_objext conftest$ac_exeext
14552 if { (ac_try="$ac_link"
14553 case "(($ac_try" in
14554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14555 *) ac_try_echo=$ac_try;;
14557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14558 (eval "$ac_link") 2>conftest.er1
14560 grep -v '^
*+' conftest.er1 >conftest.err
14562 cat conftest.err >&5
14563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14564 (exit $ac_status); } && {
14565 test -z "$ac_c_werror_flag" ||
14566 test ! -s conftest.err
14567 } && test -s conftest$ac_exeext &&
14568 $as_test_x conftest$ac_exeext; then
14569 ac_cv_lib_tiff_TIFFGetVersion=yes
14571 echo "$as_me: failed program was:" >&5
14572 sed 's
/^
/|
/' conftest.$ac_ext >&5
14574 ac_cv_lib_tiff_TIFFGetVersion=no
14577 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14578 conftest$ac_exeext conftest.$ac_ext
14579 LIBS=$ac_check_lib_save_LIBS
14581 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14582 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14583 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14592 if test "${HAVE_TIFF}" = "yes"; then
14594 cat >>confdefs.h <<\_ACEOF
14595 #define HAVE_TIFF 1
14601 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14603 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14604 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14605 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14606 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14607 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14608 echo $ECHO_N "(cached) $ECHO_C" >&6
14610 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14611 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14613 # Is the header compilable?
14614 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14615 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14616 cat >conftest.
$ac_ext <<_ACEOF
14619 cat confdefs.h
>>conftest.
$ac_ext
14620 cat >>conftest.
$ac_ext <<_ACEOF
14621 /* end confdefs.h. */
14622 $ac_includes_default
14623 #include <gif_lib.h>
14625 rm -f conftest.
$ac_objext
14626 if { (ac_try
="$ac_compile"
14627 case "(($ac_try" in
14628 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14629 *) ac_try_echo=$ac_try;;
14631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14632 (eval "$ac_compile") 2>conftest.er1
14634 grep -v '^ *+' conftest.er1 >conftest.err
14636 cat conftest.err >&5
14637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14638 (exit $ac_status); } && {
14639 test -z "$ac_c_werror_flag" ||
14640 test ! -s conftest.err
14641 } && test -s conftest.$ac_objext; then
14642 ac_header_compiler=yes
14644 echo "$as_me: failed program was:" >&5
14645 sed 's/^/| /' conftest.$ac_ext >&5
14647 ac_header_compiler=no
14650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14651 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14652 echo "${ECHO_T}$ac_header_compiler" >&6; }
14654 # Is the header present?
14655 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14656 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14657 cat >conftest.$ac_ext <<_ACEOF
14660 cat confdefs.h >>conftest.$ac_ext
14661 cat >>conftest.$ac_ext <<_ACEOF
14662 /* end confdefs.h. */
14663 #include <gif_lib.h>
14665 if { (ac_try="$ac_cpp conftest.$ac_ext"
14666 case "(($ac_try" in
14667 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14668 *) ac_try_echo
=$ac_try;;
14670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14671 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14673 grep -v '^ *+' conftest.er1
>conftest.err
14675 cat conftest.err
>&5
14676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14677 (exit $ac_status); } >/dev
/null
&& {
14678 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14679 test ! -s conftest.err
14681 ac_header_preproc
=yes
14683 echo "$as_me: failed program was:" >&5
14684 sed 's/^/| /' conftest.
$ac_ext >&5
14686 ac_header_preproc
=no
14689 rm -f conftest.err conftest.
$ac_ext
14690 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14691 echo "${ECHO_T}$ac_header_preproc" >&6; }
14693 # So? What about this header?
14694 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14696 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14697 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14698 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14699 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14700 ac_header_preproc
=yes
14703 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14704 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14705 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14706 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14707 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14708 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14709 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14710 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14711 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14712 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14713 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14714 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14718 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14719 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14720 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14721 echo $ECHO_N "(cached) $ECHO_C" >&6
14723 ac_cv_header_gif_lib_h
=$ac_header_preproc
14725 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14726 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14729 if test $ac_cv_header_gif_lib_h = yes; then
14730 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14731 # Earlier versions can crash Emacs.
14732 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14733 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
14734 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14735 echo $ECHO_N "(cached) $ECHO_C" >&6
14737 ac_check_lib_save_LIBS
=$LIBS
14739 cat >conftest.
$ac_ext <<_ACEOF
14742 cat confdefs.h
>>conftest.
$ac_ext
14743 cat >>conftest.
$ac_ext <<_ACEOF
14744 /* end confdefs.h. */
14746 /* Override any GCC internal prototype to avoid an error.
14747 Use char because int might match the return type of a GCC
14748 builtin and then its argument prototype would still apply. */
14752 char EGifPutExtensionLast ();
14756 return EGifPutExtensionLast ();
14761 rm -f conftest.
$ac_objext conftest
$ac_exeext
14762 if { (ac_try
="$ac_link"
14763 case "(($ac_try" in
14764 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14765 *) ac_try_echo=$ac_try;;
14767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14768 (eval "$ac_link") 2>conftest.er1
14770 grep -v '^ *+' conftest.er1 >conftest.err
14772 cat conftest.err >&5
14773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774 (exit $ac_status); } && {
14775 test -z "$ac_c_werror_flag" ||
14776 test ! -s conftest.err
14777 } && test -s conftest$ac_exeext &&
14778 $as_test_x conftest$ac_exeext; then
14779 ac_cv_lib_gif_EGifPutExtensionLast=yes
14781 echo "$as_me: failed program was:" >&5
14782 sed 's/^/| /' conftest.$ac_ext >&5
14784 ac_cv_lib_gif_EGifPutExtensionLast=no
14787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14788 conftest$ac_exeext conftest.$ac_ext
14789 LIBS=$ac_check_lib_save_LIBS
14791 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14792 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14793 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14803 if test "$HAVE_GIF" = yes; then
14804 ac_gif_lib_name="-lgif"
14807 # If gif_lib.h but no libgif, try libungif.
14808 if test x"$try_libungif" = xyes; then
14809 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14810 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14811 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14812 echo $ECHO_N "(cached) $ECHO_C" >&6
14814 ac_check_lib_save_LIBS=$LIBS
14815 LIBS="-lungif $LIBS"
14816 cat >conftest.$ac_ext <<_ACEOF
14819 cat confdefs.h >>conftest.$ac_ext
14820 cat >>conftest.$ac_ext <<_ACEOF
14821 /* end confdefs.h. */
14823 /* Override any GCC internal prototype to avoid an error.
14824 Use char because int might match the return type of a GCC
14825 builtin and then its argument prototype would still apply. */
14829 char EGifPutExtensionLast ();
14833 return EGifPutExtensionLast ();
14838 rm -f conftest.$ac_objext conftest$ac_exeext
14839 if { (ac_try="$ac_link"
14840 case "(($ac_try" in
14841 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14842 *) ac_try_echo
=$ac_try;;
14844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14845 (eval "$ac_link") 2>conftest.er1
14847 grep -v '^ *+' conftest.er1
>conftest.err
14849 cat conftest.err
>&5
14850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14851 (exit $ac_status); } && {
14852 test -z "$ac_c_werror_flag" ||
14853 test ! -s conftest.err
14854 } && test -s conftest
$ac_exeext &&
14855 $as_test_x conftest
$ac_exeext; then
14856 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
14858 echo "$as_me: failed program was:" >&5
14859 sed 's/^/| /' conftest.
$ac_ext >&5
14861 ac_cv_lib_ungif_EGifPutExtensionLast
=no
14864 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14865 conftest
$ac_exeext conftest.
$ac_ext
14866 LIBS
=$ac_check_lib_save_LIBS
14868 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14869 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14870 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14875 if test "$HAVE_GIF" = yes; then
14877 cat >>confdefs.h
<<\_ACEOF
14878 #define LIBGIF -lungif
14881 ac_gif_lib_name
="-lungif"
14885 if test "${HAVE_GIF}" = "yes"; then
14887 cat >>confdefs.h
<<\_ACEOF
14894 if test "${HAVE_X11}" = "yes"; then
14897 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14898 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
14899 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14900 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
14901 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14902 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
14903 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14904 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
14905 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14906 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
14908 if test "X${MISSING}" != X
; then
14909 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
14911 Maybe some development libraries/packages are missing?
14912 If you don't want to link with them give
14914 as options to configure" >&5
14915 echo "$as_me: error: The following required libraries were not found:
14917 Maybe some development libraries/packages are missing?
14918 If you don't want to link with them give
14920 as options to configure" >&2;}
14921 { (exit 1); exit 1; }; }
14925 ### Use -lgpm if available, unless `--with-gpm=no'.
14927 if test "${with_gpm}" != "no"; then
14928 if test "${ac_cv_header_gpm_h+set}" = set; then
14929 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14930 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14931 if test "${ac_cv_header_gpm_h+set}" = set; then
14932 echo $ECHO_N "(cached) $ECHO_C" >&6
14934 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14935 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14937 # Is the header compilable?
14938 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14939 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14940 cat >conftest.
$ac_ext <<_ACEOF
14943 cat confdefs.h
>>conftest.
$ac_ext
14944 cat >>conftest.
$ac_ext <<_ACEOF
14945 /* end confdefs.h. */
14946 $ac_includes_default
14949 rm -f conftest.
$ac_objext
14950 if { (ac_try
="$ac_compile"
14951 case "(($ac_try" in
14952 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14953 *) ac_try_echo=$ac_try;;
14955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14956 (eval "$ac_compile") 2>conftest.er1
14958 grep -v '^ *+' conftest.er1 >conftest.err
14960 cat conftest.err >&5
14961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14962 (exit $ac_status); } && {
14963 test -z "$ac_c_werror_flag" ||
14964 test ! -s conftest.err
14965 } && test -s conftest.$ac_objext; then
14966 ac_header_compiler=yes
14968 echo "$as_me: failed program was:" >&5
14969 sed 's/^/| /' conftest.$ac_ext >&5
14971 ac_header_compiler=no
14974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14975 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14976 echo "${ECHO_T}$ac_header_compiler" >&6; }
14978 # Is the header present?
14979 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14980 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14981 cat >conftest.$ac_ext <<_ACEOF
14984 cat confdefs.h >>conftest.$ac_ext
14985 cat >>conftest.$ac_ext <<_ACEOF
14986 /* end confdefs.h. */
14989 if { (ac_try="$ac_cpp conftest.$ac_ext"
14990 case "(($ac_try" in
14991 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14992 *) ac_try_echo
=$ac_try;;
14994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14995 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14997 grep -v '^ *+' conftest.er1
>conftest.err
14999 cat conftest.err
>&5
15000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15001 (exit $ac_status); } >/dev
/null
&& {
15002 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15003 test ! -s conftest.err
15005 ac_header_preproc
=yes
15007 echo "$as_me: failed program was:" >&5
15008 sed 's/^/| /' conftest.
$ac_ext >&5
15010 ac_header_preproc
=no
15013 rm -f conftest.err conftest.
$ac_ext
15014 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15015 echo "${ECHO_T}$ac_header_preproc" >&6; }
15017 # So? What about this header?
15018 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15020 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
15021 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15022 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
15023 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
15024 ac_header_preproc
=yes
15027 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
15028 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
15029 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
15030 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
15031 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
15032 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
15033 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
15034 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
15035 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
15036 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
15037 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
15038 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
15042 { echo "$as_me:$LINENO: checking for gpm.h" >&5
15043 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
15044 if test "${ac_cv_header_gpm_h+set}" = set; then
15045 echo $ECHO_N "(cached) $ECHO_C" >&6
15047 ac_cv_header_gpm_h
=$ac_header_preproc
15049 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
15050 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
15053 if test $ac_cv_header_gpm_h = yes; then
15054 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
15055 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
15056 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
15057 echo $ECHO_N "(cached) $ECHO_C" >&6
15059 ac_check_lib_save_LIBS
=$LIBS
15061 cat >conftest.
$ac_ext <<_ACEOF
15064 cat confdefs.h
>>conftest.
$ac_ext
15065 cat >>conftest.
$ac_ext <<_ACEOF
15066 /* end confdefs.h. */
15068 /* Override any GCC internal prototype to avoid an error.
15069 Use char because int might match the return type of a GCC
15070 builtin and then its argument prototype would still apply. */
15078 return Gpm_Open ();
15083 rm -f conftest.
$ac_objext conftest
$ac_exeext
15084 if { (ac_try
="$ac_link"
15085 case "(($ac_try" in
15086 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15087 *) ac_try_echo=$ac_try;;
15089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15090 (eval "$ac_link") 2>conftest.er1
15092 grep -v '^ *+' conftest.er1 >conftest.err
15094 cat conftest.err >&5
15095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15096 (exit $ac_status); } && {
15097 test -z "$ac_c_werror_flag" ||
15098 test ! -s conftest.err
15099 } && test -s conftest$ac_exeext &&
15100 $as_test_x conftest$ac_exeext; then
15101 ac_cv_lib_gpm_Gpm_Open=yes
15103 echo "$as_me: failed program was:" >&5
15104 sed 's/^/| /' conftest.$ac_ext >&5
15106 ac_cv_lib_gpm_Gpm_Open=no
15109 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15110 conftest$ac_exeext conftest.$ac_ext
15111 LIBS=$ac_check_lib_save_LIBS
15113 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
15114 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
15115 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
15124 if test "${HAVE_GPM}" = "yes"; then
15126 cat >>confdefs.h <<\_ACEOF
15132 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15133 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
15134 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
15135 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15136 echo $ECHO_N "(cached) $ECHO_C" >&6
15138 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
15139 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
15141 # Is the header compilable?
15142 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
15143 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
15144 cat >conftest.$ac_ext <<_ACEOF
15147 cat confdefs.h >>conftest.$ac_ext
15148 cat >>conftest.$ac_ext <<_ACEOF
15149 /* end confdefs.h. */
15150 $ac_includes_default
15151 #include <malloc/malloc.h>
15153 rm -f conftest.$ac_objext
15154 if { (ac_try="$ac_compile"
15155 case "(($ac_try" in
15156 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15157 *) ac_try_echo
=$ac_try;;
15159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15160 (eval "$ac_compile") 2>conftest.er1
15162 grep -v '^ *+' conftest.er1
>conftest.err
15164 cat conftest.err
>&5
15165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15166 (exit $ac_status); } && {
15167 test -z "$ac_c_werror_flag" ||
15168 test ! -s conftest.err
15169 } && test -s conftest.
$ac_objext; then
15170 ac_header_compiler
=yes
15172 echo "$as_me: failed program was:" >&5
15173 sed 's/^/| /' conftest.
$ac_ext >&5
15175 ac_header_compiler
=no
15178 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15179 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15180 echo "${ECHO_T}$ac_header_compiler" >&6; }
15182 # Is the header present?
15183 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
15184 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
15185 cat >conftest.
$ac_ext <<_ACEOF
15188 cat confdefs.h
>>conftest.
$ac_ext
15189 cat >>conftest.
$ac_ext <<_ACEOF
15190 /* end confdefs.h. */
15191 #include <malloc/malloc.h>
15193 if { (ac_try
="$ac_cpp conftest.$ac_ext"
15194 case "(($ac_try" in
15195 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15196 *) ac_try_echo=$ac_try;;
15198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15199 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15201 grep -v '^ *+' conftest.er1 >conftest.err
15203 cat conftest.err >&5
15204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15205 (exit $ac_status); } >/dev/null && {
15206 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15207 test ! -s conftest.err
15209 ac_header_preproc=yes
15211 echo "$as_me: failed program was:" >&5
15212 sed 's/^/| /' conftest.$ac_ext >&5
15214 ac_header_preproc=no
15217 rm -f conftest.err conftest.$ac_ext
15218 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15219 echo "${ECHO_T}$ac_header_preproc" >&6; }
15221 # So? What about this header?
15222 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15224 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
15225 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15226 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
15227 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
15228 ac_header_preproc=yes
15231 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
15232 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
15233 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
15234 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
15235 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
15236 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
15237 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
15238 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
15239 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
15240 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
15241 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
15242 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
15246 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
15247 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
15248 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15249 echo $ECHO_N "(cached) $ECHO_C" >&6
15251 ac_cv_header_malloc_malloc_h=$ac_header_preproc
15253 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
15254 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
15257 if test $ac_cv_header_malloc_malloc_h = yes; then
15259 cat >>confdefs.h <<\_ACEOF
15260 #define HAVE_MALLOC_MALLOC_H 1
15267 ### Use Mac OS X Carbon API to implement GUI.
15268 if test "${HAVE_CARBON}" = "yes"; then
15270 cat >>confdefs.h <<\_ACEOF
15271 #define HAVE_CARBON 1
15274 ## Specify the install directory
15276 if test "${carbon_appdir_x}" != ""; then
15277 case ${carbon_appdir_x} in
15278 y | ye | yes) carbon_appdir=/Applications ;;
15279 * ) carbon_appdir=${carbon_appdir_x} ;;
15282 # We also have mouse menus.
15286 ### Use session management (-lSM -lICE) if available
15288 if test "${HAVE_X11}" = "yes"; then
15289 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15290 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15291 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
15292 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15293 echo $ECHO_N "(cached) $ECHO_C" >&6
15295 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15296 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
15298 # Is the header compilable?
15299 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
15300 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
15301 cat >conftest.$ac_ext <<_ACEOF
15304 cat confdefs.h >>conftest.$ac_ext
15305 cat >>conftest.$ac_ext <<_ACEOF
15306 /* end confdefs.h. */
15307 $ac_includes_default
15308 #include <X11/SM/SMlib.h>
15310 rm -f conftest.$ac_objext
15311 if { (ac_try="$ac_compile"
15312 case "(($ac_try" in
15313 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15314 *) ac_try_echo
=$ac_try;;
15316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15317 (eval "$ac_compile") 2>conftest.er1
15319 grep -v '^ *+' conftest.er1
>conftest.err
15321 cat conftest.err
>&5
15322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15323 (exit $ac_status); } && {
15324 test -z "$ac_c_werror_flag" ||
15325 test ! -s conftest.err
15326 } && test -s conftest.
$ac_objext; then
15327 ac_header_compiler
=yes
15329 echo "$as_me: failed program was:" >&5
15330 sed 's/^/| /' conftest.
$ac_ext >&5
15332 ac_header_compiler
=no
15335 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15336 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15337 echo "${ECHO_T}$ac_header_compiler" >&6; }
15339 # Is the header present?
15340 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
15341 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
15342 cat >conftest.
$ac_ext <<_ACEOF
15345 cat confdefs.h
>>conftest.
$ac_ext
15346 cat >>conftest.
$ac_ext <<_ACEOF
15347 /* end confdefs.h. */
15348 #include <X11/SM/SMlib.h>
15350 if { (ac_try
="$ac_cpp conftest.$ac_ext"
15351 case "(($ac_try" in
15352 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15353 *) ac_try_echo=$ac_try;;
15355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15356 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15358 grep -v '^ *+' conftest.er1 >conftest.err
15360 cat conftest.err >&5
15361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15362 (exit $ac_status); } >/dev/null && {
15363 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15364 test ! -s conftest.err
15366 ac_header_preproc=yes
15368 echo "$as_me: failed program was:" >&5
15369 sed 's/^/| /' conftest.$ac_ext >&5
15371 ac_header_preproc=no
15374 rm -f conftest.err conftest.$ac_ext
15375 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15376 echo "${ECHO_T}$ac_header_preproc" >&6; }
15378 # So? What about this header?
15379 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15381 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15382 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15383 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
15384 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
15385 ac_header_preproc=yes
15388 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
15389 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
15390 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
15391 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
15392 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
15393 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
15394 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
15395 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15396 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
15397 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
15398 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
15399 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
15403 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15404 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
15405 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15406 echo $ECHO_N "(cached) $ECHO_C" >&6
15408 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
15410 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15411 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
15414 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
15415 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
15416 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
15417 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
15418 echo $ECHO_N "(cached) $ECHO_C" >&6
15420 ac_check_lib_save_LIBS=$LIBS
15421 LIBS="-lSM -lICE $LIBS"
15422 cat >conftest.$ac_ext <<_ACEOF
15425 cat confdefs.h >>conftest.$ac_ext
15426 cat >>conftest.$ac_ext <<_ACEOF
15427 /* end confdefs.h. */
15429 /* Override any GCC internal prototype to avoid an error.
15430 Use char because int might match the return type of a GCC
15431 builtin and then its argument prototype would still apply. */
15435 char SmcOpenConnection ();
15439 return SmcOpenConnection ();
15444 rm -f conftest.$ac_objext conftest$ac_exeext
15445 if { (ac_try="$ac_link"
15446 case "(($ac_try" in
15447 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15448 *) ac_try_echo
=$ac_try;;
15450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15451 (eval "$ac_link") 2>conftest.er1
15453 grep -v '^ *+' conftest.er1
>conftest.err
15455 cat conftest.err
>&5
15456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15457 (exit $ac_status); } && {
15458 test -z "$ac_c_werror_flag" ||
15459 test ! -s conftest.err
15460 } && test -s conftest
$ac_exeext &&
15461 $as_test_x conftest
$ac_exeext; then
15462 ac_cv_lib_SM_SmcOpenConnection
=yes
15464 echo "$as_me: failed program was:" >&5
15465 sed 's/^/| /' conftest.
$ac_ext >&5
15467 ac_cv_lib_SM_SmcOpenConnection
=no
15470 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15471 conftest
$ac_exeext conftest.
$ac_ext
15472 LIBS
=$ac_check_lib_save_LIBS
15474 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
15475 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
15476 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
15484 if test "${HAVE_X_SM}" = "yes"; then
15486 cat >>confdefs.h
<<\_ACEOF
15487 #define HAVE_X_SM 1
15492 *) LIBS
="-lSM -lICE $LIBS" ;;
15497 # If netdb.h doesn't declare h_errno, we must declare it by hand.
15498 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
15499 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
15500 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
15501 echo $ECHO_N "(cached) $ECHO_C" >&6
15503 cat >conftest.
$ac_ext <<_ACEOF
15506 cat confdefs.h
>>conftest.
$ac_ext
15507 cat >>conftest.
$ac_ext <<_ACEOF
15508 /* end confdefs.h. */
15518 rm -f conftest.
$ac_objext conftest
$ac_exeext
15519 if { (ac_try
="$ac_link"
15520 case "(($ac_try" in
15521 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15522 *) ac_try_echo=$ac_try;;
15524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15525 (eval "$ac_link") 2>conftest.er1
15527 grep -v '^ *+' conftest.er1 >conftest.err
15529 cat conftest.err >&5
15530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15531 (exit $ac_status); } && {
15532 test -z "$ac_c_werror_flag" ||
15533 test ! -s conftest.err
15534 } && test -s conftest$ac_exeext &&
15535 $as_test_x conftest$ac_exeext; then
15536 emacs_cv_netdb_declares_h_errno=yes
15538 echo "$as_me: failed program was:" >&5
15539 sed 's/^/| /' conftest.$ac_ext >&5
15541 emacs_cv_netdb_declares_h_errno=no
15544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15545 conftest$ac_exeext conftest.$ac_ext
15547 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15548 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
15549 if test $emacs_cv_netdb_declares_h_errno = yes; then
15551 cat >>confdefs.h <<\_ACEOF
15552 #define HAVE_H_ERRNO 1
15557 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15558 # for constant arguments. Useless!
15559 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
15560 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
15561 if test "${ac_cv_working_alloca_h+set}" = set; then
15562 echo $ECHO_N "(cached) $ECHO_C" >&6
15564 cat >conftest.$ac_ext <<_ACEOF
15567 cat confdefs.h >>conftest.$ac_ext
15568 cat >>conftest.$ac_ext <<_ACEOF
15569 /* end confdefs.h. */
15570 #include <alloca.h>
15574 char *p = (char *) alloca (2 * sizeof (int));
15580 rm -f conftest.$ac_objext conftest$ac_exeext
15581 if { (ac_try="$ac_link"
15582 case "(($ac_try" in
15583 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15584 *) ac_try_echo
=$ac_try;;
15586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15587 (eval "$ac_link") 2>conftest.er1
15589 grep -v '^ *+' conftest.er1
>conftest.err
15591 cat conftest.err
>&5
15592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15593 (exit $ac_status); } && {
15594 test -z "$ac_c_werror_flag" ||
15595 test ! -s conftest.err
15596 } && test -s conftest
$ac_exeext &&
15597 $as_test_x conftest
$ac_exeext; then
15598 ac_cv_working_alloca_h
=yes
15600 echo "$as_me: failed program was:" >&5
15601 sed 's/^/| /' conftest.
$ac_ext >&5
15603 ac_cv_working_alloca_h
=no
15606 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15607 conftest
$ac_exeext conftest.
$ac_ext
15609 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15610 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15611 if test $ac_cv_working_alloca_h = yes; then
15613 cat >>confdefs.h
<<\_ACEOF
15614 #define HAVE_ALLOCA_H 1
15619 { echo "$as_me:$LINENO: checking for alloca" >&5
15620 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15621 if test "${ac_cv_func_alloca_works+set}" = set; then
15622 echo $ECHO_N "(cached) $ECHO_C" >&6
15624 cat >conftest.
$ac_ext <<_ACEOF
15627 cat confdefs.h
>>conftest.
$ac_ext
15628 cat >>conftest.
$ac_ext <<_ACEOF
15629 /* end confdefs.h. */
15631 # define alloca __builtin_alloca
15634 # include <malloc.h>
15635 # define alloca _alloca
15637 # ifdef HAVE_ALLOCA_H
15638 # include <alloca.h>
15643 # ifndef alloca /* predefined by HP cc +Olibcalls */
15654 char *p = (char *) alloca (1);
15660 rm -f conftest.
$ac_objext conftest
$ac_exeext
15661 if { (ac_try
="$ac_link"
15662 case "(($ac_try" in
15663 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15664 *) ac_try_echo=$ac_try;;
15666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15667 (eval "$ac_link") 2>conftest.er1
15669 grep -v '^ *+' conftest.er1 >conftest.err
15671 cat conftest.err >&5
15672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15673 (exit $ac_status); } && {
15674 test -z "$ac_c_werror_flag" ||
15675 test ! -s conftest.err
15676 } && test -s conftest$ac_exeext &&
15677 $as_test_x conftest$ac_exeext; then
15678 ac_cv_func_alloca_works=yes
15680 echo "$as_me: failed program was:" >&5
15681 sed 's/^/| /' conftest.$ac_ext >&5
15683 ac_cv_func_alloca_works=no
15686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15687 conftest$ac_exeext conftest.$ac_ext
15689 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15690 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15692 if test $ac_cv_func_alloca_works = yes; then
15694 cat >>confdefs.h <<\_ACEOF
15695 #define HAVE_ALLOCA 1
15699 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15700 # that cause trouble. Some versions do not even contain alloca or
15701 # contain a buggy version. If you still want to use their alloca,
15702 # use ar to extract alloca.o from them instead of compiling alloca.c.
15704 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15706 cat >>confdefs.h <<\_ACEOF
15711 { echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
15712 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks...
$ECHO_C" >&6; }
15713 if test "${ac_cv_os_cray+set}" = set; then
15714 echo $ECHO_N "(cached
) $ECHO_C" >&6
15716 cat >conftest.$ac_ext <<_ACEOF
15719 cat confdefs.h >>conftest.$ac_ext
15720 cat >>conftest.$ac_ext <<_ACEOF
15721 /* end confdefs.h. */
15722 #if defined CRAY && ! defined CRAY2
15729 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
15730 $EGREP "webecray
" >/dev/null 2>&1; then
15738 { echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
15739 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15740 if test $ac_cv_os_cray = yes; then
15741 for ac_func in _getb67 GETB67 getb67; do
15742 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15743 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15744 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15745 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15746 echo $ECHO_N "(cached
) $ECHO_C" >&6
15748 cat >conftest.$ac_ext <<_ACEOF
15751 cat confdefs.h >>conftest.$ac_ext
15752 cat >>conftest.$ac_ext <<_ACEOF
15753 /* end confdefs.h. */
15754 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15755 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15756 #define $ac_func innocuous_$ac_func
15758 /* System header to define __stub macros and hopefully few prototypes,
15759 which can conflict with char $ac_func (); below.
15760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15761 <limits.h> exists even on freestanding compilers. */
15764 # include <limits.h>
15766 # include <assert.h>
15771 /* Override any GCC internal prototype to avoid an error.
15772 Use char because int might match the return type of a GCC
15773 builtin and then its argument prototype would still apply. */
15778 /* The GNU C library defines this for functions which it implements
15779 to always fail with ENOSYS. Some functions are actually named
15780 something starting with __ and the normal name is an alias. */
15781 #if defined __stub_$ac_func || defined __stub___$ac_func
15788 return $ac_func ();
15793 rm -f conftest.$ac_objext conftest$ac_exeext
15794 if { (ac_try="$ac_link"
15795 case "(($ac_try" in
15796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15797 *) ac_try_echo=$ac_try;;
15799 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15800 (eval "$ac_link") 2>conftest.er1
15802 grep -v '^ *+' conftest.er1 >conftest.err
15804 cat conftest.err >&5
15805 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15806 (exit $ac_status); } && {
15807 test -z "$ac_c_werror_flag" ||
15808 test ! -s conftest.err
15809 } && test -s conftest$ac_exeext &&
15810 $as_test_x conftest$ac_exeext; then
15811 eval "$as_ac_var=yes"
15813 echo "$as_me: failed program was
:" >&5
15814 sed 's/^/| /' conftest.$ac_ext >&5
15816 eval "$as_ac_var=no
"
15819 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15820 conftest$ac_exeext conftest.$ac_ext
15822 ac_res=`eval echo '${'$as_ac_var'}'`
15823 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15824 echo "${ECHO_T}$ac_res" >&6; }
15825 if test `eval echo '${'$as_ac_var'}'` = yes; then
15827 cat >>confdefs.h <<_ACEOF
15828 #define CRAY_STACKSEG_END $ac_func
15837 { echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
15838 echo $ECHO_N "checking stack direction
for C alloca...
$ECHO_C" >&6; }
15839 if test "${ac_cv_c_stack_direction+set}" = set; then
15840 echo $ECHO_N "(cached
) $ECHO_C" >&6
15842 if test "$cross_compiling" = yes; then
15843 ac_cv_c_stack_direction=0
15845 cat >conftest.$ac_ext <<_ACEOF
15848 cat confdefs.h >>conftest.$ac_ext
15849 cat >>conftest.$ac_ext <<_ACEOF
15850 /* end confdefs.h. */
15851 $ac_includes_default
15853 find_stack_direction ()
15855 static char *addr = 0;
15860 return find_stack_direction ();
15863 return (&dummy > addr) ? 1 : -1;
15869 return find_stack_direction () < 0;
15872 rm -f conftest$ac_exeext
15873 if { (ac_try="$ac_link"
15874 case "(($ac_try" in
15875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15876 *) ac_try_echo=$ac_try;;
15878 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15879 (eval "$ac_link") 2>&5
15881 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15882 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15883 { (case "(($ac_try" in
15884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15885 *) ac_try_echo=$ac_try;;
15887 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15888 (eval "$ac_try") 2>&5
15890 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15891 (exit $ac_status); }; }; then
15892 ac_cv_c_stack_direction=1
15894 echo "$as_me: program exited with status
$ac_status" >&5
15895 echo "$as_me: failed program was
:" >&5
15896 sed 's/^/| /' conftest.$ac_ext >&5
15898 ( exit $ac_status )
15899 ac_cv_c_stack_direction=-1
15901 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15906 { echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
15907 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15909 cat >>confdefs.h <<_ACEOF
15910 #define STACK_DIRECTION $ac_cv_c_stack_direction
15917 if test x"$ac_cv_func_alloca_works" != xyes; then
15918 { { echo "$as_me:$LINENO: error
: a system implementation of alloca is required
" >&5
15919 echo "$as_me: error
: a system implementation of alloca is required
" >&2;}
15920 { (exit 1); exit 1; }; }
15923 # fmod, logb, and frexp are found in -lm on most systems.
15924 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15926 { echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
15927 echo $ECHO_N "checking
for sqrt
in -lm...
$ECHO_C" >&6; }
15928 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15929 echo $ECHO_N "(cached
) $ECHO_C" >&6
15931 ac_check_lib_save_LIBS=$LIBS
15933 cat >conftest.$ac_ext <<_ACEOF
15936 cat confdefs.h >>conftest.$ac_ext
15937 cat >>conftest.$ac_ext <<_ACEOF
15938 /* end confdefs.h. */
15940 /* Override any GCC internal prototype to avoid an error.
15941 Use char because int might match the return type of a GCC
15942 builtin and then its argument prototype would still apply. */
15955 rm -f conftest.$ac_objext conftest$ac_exeext
15956 if { (ac_try="$ac_link"
15957 case "(($ac_try" in
15958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15959 *) ac_try_echo=$ac_try;;
15961 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15962 (eval "$ac_link") 2>conftest.er1
15964 grep -v '^ *+' conftest.er1 >conftest.err
15966 cat conftest.err >&5
15967 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15968 (exit $ac_status); } && {
15969 test -z "$ac_c_werror_flag" ||
15970 test ! -s conftest.err
15971 } && test -s conftest$ac_exeext &&
15972 $as_test_x conftest$ac_exeext; then
15973 ac_cv_lib_m_sqrt=yes
15975 echo "$as_me: failed program was
:" >&5
15976 sed 's/^/| /' conftest.$ac_ext >&5
15978 ac_cv_lib_m_sqrt=no
15981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15982 conftest$ac_exeext conftest.$ac_ext
15983 LIBS=$ac_check_lib_save_LIBS
15985 { echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
15986 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15987 if test $ac_cv_lib_m_sqrt = yes; then
15988 cat >>confdefs.h <<_ACEOF
15989 #define HAVE_LIBM 1
15997 # Check for mail-locking functions in a "mail" library. Probably this should
15998 # have the same check as for liblockfile below.
16000 { echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
16001 echo $ECHO_N "checking
for maillock
in -lmail...
$ECHO_C" >&6; }
16002 if test "${ac_cv_lib_mail_maillock+set}" = set; then
16003 echo $ECHO_N "(cached
) $ECHO_C" >&6
16005 ac_check_lib_save_LIBS=$LIBS
16006 LIBS="-lmail $LIBS"
16007 cat >conftest.$ac_ext <<_ACEOF
16010 cat confdefs.h >>conftest.$ac_ext
16011 cat >>conftest.$ac_ext <<_ACEOF
16012 /* end confdefs.h. */
16014 /* Override any GCC internal prototype to avoid an error.
16015 Use char because int might match the return type of a GCC
16016 builtin and then its argument prototype would still apply. */
16024 return maillock ();
16029 rm -f conftest.$ac_objext conftest$ac_exeext
16030 if { (ac_try="$ac_link"
16031 case "(($ac_try" in
16032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16033 *) ac_try_echo=$ac_try;;
16035 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16036 (eval "$ac_link") 2>conftest.er1
16038 grep -v '^ *+' conftest.er1 >conftest.err
16040 cat conftest.err >&5
16041 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16042 (exit $ac_status); } && {
16043 test -z "$ac_c_werror_flag" ||
16044 test ! -s conftest.err
16045 } && test -s conftest$ac_exeext &&
16046 $as_test_x conftest$ac_exeext; then
16047 ac_cv_lib_mail_maillock=yes
16049 echo "$as_me: failed program was
:" >&5
16050 sed 's/^/| /' conftest.$ac_ext >&5
16052 ac_cv_lib_mail_maillock=no
16055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16056 conftest$ac_exeext conftest.$ac_ext
16057 LIBS=$ac_check_lib_save_LIBS
16059 { echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
16060 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
16061 if test $ac_cv_lib_mail_maillock = yes; then
16062 cat >>confdefs.h <<_ACEOF
16063 #define HAVE_LIBMAIL 1
16066 LIBS="-lmail $LIBS"
16071 { echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
16072 echo $ECHO_N "checking
for maillock
in -llockfile...
$ECHO_C" >&6; }
16073 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
16074 echo $ECHO_N "(cached
) $ECHO_C" >&6
16076 ac_check_lib_save_LIBS=$LIBS
16077 LIBS="-llockfile $LIBS"
16078 cat >conftest.$ac_ext <<_ACEOF
16081 cat confdefs.h >>conftest.$ac_ext
16082 cat >>conftest.$ac_ext <<_ACEOF
16083 /* end confdefs.h. */
16085 /* Override any GCC internal prototype to avoid an error.
16086 Use char because int might match the return type of a GCC
16087 builtin and then its argument prototype would still apply. */
16095 return maillock ();
16100 rm -f conftest.$ac_objext conftest$ac_exeext
16101 if { (ac_try="$ac_link"
16102 case "(($ac_try" in
16103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16104 *) ac_try_echo=$ac_try;;
16106 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16107 (eval "$ac_link") 2>conftest.er1
16109 grep -v '^ *+' conftest.er1 >conftest.err
16111 cat conftest.err >&5
16112 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16113 (exit $ac_status); } && {
16114 test -z "$ac_c_werror_flag" ||
16115 test ! -s conftest.err
16116 } && test -s conftest$ac_exeext &&
16117 $as_test_x conftest$ac_exeext; then
16118 ac_cv_lib_lockfile_maillock=yes
16120 echo "$as_me: failed program was
:" >&5
16121 sed 's/^/| /' conftest.$ac_ext >&5
16123 ac_cv_lib_lockfile_maillock=no
16126 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16127 conftest$ac_exeext conftest.$ac_ext
16128 LIBS=$ac_check_lib_save_LIBS
16130 { echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
16131 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
16132 if test $ac_cv_lib_lockfile_maillock = yes; then
16133 cat >>confdefs.h <<_ACEOF
16134 #define HAVE_LIBLOCKFILE 1
16137 LIBS="-llockfile $LIBS"
16141 # If we have the shared liblockfile, assume we must use it for mail
16142 # locking (e.g. Debian). If we couldn't link against liblockfile
16143 # (no liblockfile.a installed), ensure that we don't need to.
16144 if test "$ac_cv_lib_lockfile_maillock" = no; then
16145 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
16146 set dummy liblockfile.so; ac_word=$2
16147 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
16148 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
16149 if test "${ac_cv_prog_liblockfile+set}" = set; then
16150 echo $ECHO_N "(cached
) $ECHO_C" >&6
16152 if test -n "$liblockfile"; then
16153 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
16155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16156 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
16157 for as_dir in $as_dummy
16160 test -z "$as_dir" && as_dir=.
16161 for ac_exec_ext in '' $ac_executable_extensions; do
16162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16163 ac_cv_prog_liblockfile="yes"
16164 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
16171 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
16174 liblockfile=$ac_cv_prog_liblockfile
16175 if test -n "$liblockfile"; then
16176 { echo "$as_me:$LINENO: result
: $liblockfile" >&5
16177 echo "${ECHO_T}$liblockfile" >&6; }
16179 { echo "$as_me:$LINENO: result
: no
" >&5
16180 echo "${ECHO_T}no
" >&6; }
16184 if test $ac_cv_prog_liblockfile = yes; then
16185 { { echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
16186 This probably means that movemail could lose mail.
16187 There may be a \`development' package to
install containing liblockfile.
" >&5
16188 echo "$as_me: error
: Shared liblockfile found but can
't link against it.
16189 This probably means that movemail could lose mail.
16190 There may be a \`development' package to
install containing liblockfile.
" >&2;}
16191 { (exit 1); exit 1; }; }
16196 for ac_func in touchlock
16198 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16199 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16200 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16201 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16202 echo $ECHO_N "(cached
) $ECHO_C" >&6
16204 cat >conftest.$ac_ext <<_ACEOF
16207 cat confdefs.h >>conftest.$ac_ext
16208 cat >>conftest.$ac_ext <<_ACEOF
16209 /* end confdefs.h. */
16210 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16211 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16212 #define $ac_func innocuous_$ac_func
16214 /* System header to define __stub macros and hopefully few prototypes,
16215 which can conflict with char $ac_func (); below.
16216 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16217 <limits.h> exists even on freestanding compilers. */
16220 # include <limits.h>
16222 # include <assert.h>
16227 /* Override any GCC internal prototype to avoid an error.
16228 Use char because int might match the return type of a GCC
16229 builtin and then its argument prototype would still apply. */
16234 /* The GNU C library defines this for functions which it implements
16235 to always fail with ENOSYS. Some functions are actually named
16236 something starting with __ and the normal name is an alias. */
16237 #if defined __stub_$ac_func || defined __stub___$ac_func
16244 return $ac_func ();
16249 rm -f conftest.$ac_objext conftest$ac_exeext
16250 if { (ac_try="$ac_link"
16251 case "(($ac_try" in
16252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16253 *) ac_try_echo=$ac_try;;
16255 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16256 (eval "$ac_link") 2>conftest.er1
16258 grep -v '^ *+' conftest.er1 >conftest.err
16260 cat conftest.err >&5
16261 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16262 (exit $ac_status); } && {
16263 test -z "$ac_c_werror_flag" ||
16264 test ! -s conftest.err
16265 } && test -s conftest$ac_exeext &&
16266 $as_test_x conftest$ac_exeext; then
16267 eval "$as_ac_var=yes"
16269 echo "$as_me: failed program was
:" >&5
16270 sed 's/^/| /' conftest.$ac_ext >&5
16272 eval "$as_ac_var=no
"
16275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16276 conftest$ac_exeext conftest.$ac_ext
16278 ac_res=`eval echo '${'$as_ac_var'}'`
16279 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16280 echo "${ECHO_T}$ac_res" >&6; }
16281 if test `eval echo '${'$as_ac_var'}'` = yes; then
16282 cat >>confdefs.h <<_ACEOF
16283 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16290 for ac_header in maillock.h
16292 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16293 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16294 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16295 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16296 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16297 echo $ECHO_N "(cached
) $ECHO_C" >&6
16299 ac_res=`eval echo '${'$as_ac_Header'}'`
16300 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16301 echo "${ECHO_T}$ac_res" >&6; }
16303 # Is the header compilable?
16304 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16305 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16306 cat >conftest.$ac_ext <<_ACEOF
16309 cat confdefs.h >>conftest.$ac_ext
16310 cat >>conftest.$ac_ext <<_ACEOF
16311 /* end confdefs.h. */
16312 $ac_includes_default
16313 #include <$ac_header>
16315 rm -f conftest.$ac_objext
16316 if { (ac_try="$ac_compile"
16317 case "(($ac_try" in
16318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16319 *) ac_try_echo=$ac_try;;
16321 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16322 (eval "$ac_compile") 2>conftest.er1
16324 grep -v '^ *+' conftest.er1 >conftest.err
16326 cat conftest.err >&5
16327 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16328 (exit $ac_status); } && {
16329 test -z "$ac_c_werror_flag" ||
16330 test ! -s conftest.err
16331 } && test -s conftest.$ac_objext; then
16332 ac_header_compiler=yes
16334 echo "$as_me: failed program was
:" >&5
16335 sed 's/^/| /' conftest.$ac_ext >&5
16337 ac_header_compiler=no
16340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16341 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16342 echo "${ECHO_T}$ac_header_compiler" >&6; }
16344 # Is the header present?
16345 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16346 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16347 cat >conftest.$ac_ext <<_ACEOF
16350 cat confdefs.h >>conftest.$ac_ext
16351 cat >>conftest.$ac_ext <<_ACEOF
16352 /* end confdefs.h. */
16353 #include <$ac_header>
16355 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16356 case "(($ac_try" in
16357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16358 *) ac_try_echo=$ac_try;;
16360 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16361 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16363 grep -v '^ *+' conftest.er1 >conftest.err
16365 cat conftest.err >&5
16366 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16367 (exit $ac_status); } >/dev/null && {
16368 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16369 test ! -s conftest.err
16371 ac_header_preproc=yes
16373 echo "$as_me: failed program was
:" >&5
16374 sed 's/^/| /' conftest.$ac_ext >&5
16376 ac_header_preproc=no
16379 rm -f conftest.err conftest.$ac_ext
16380 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16381 echo "${ECHO_T}$ac_header_preproc" >&6; }
16383 # So? What about this header?
16384 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16386 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16387 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16388 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16389 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16390 ac_header_preproc=yes
16393 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16394 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16395 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16396 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16397 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16398 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16399 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16400 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16401 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16402 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16403 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16404 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16408 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16409 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16410 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16411 echo $ECHO_N "(cached
) $ECHO_C" >&6
16413 eval "$as_ac_Header=\
$ac_header_preproc"
16415 ac_res=`eval echo '${'$as_ac_Header'}'`
16416 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16417 echo "${ECHO_T}$ac_res" >&6; }
16420 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16421 cat >>confdefs.h <<_ACEOF
16422 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16498 for ac_func in gethostname getdomainname dup2 \
16499 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
16500 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
16501 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
16502 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
16503 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
16504 sendto recvfrom getsockopt setsockopt getsockname getpeername \
16505 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
16506 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
16508 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16509 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16510 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16511 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16512 echo $ECHO_N "(cached
) $ECHO_C" >&6
16514 cat >conftest.$ac_ext <<_ACEOF
16517 cat confdefs.h >>conftest.$ac_ext
16518 cat >>conftest.$ac_ext <<_ACEOF
16519 /* end confdefs.h. */
16520 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16521 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16522 #define $ac_func innocuous_$ac_func
16524 /* System header to define __stub macros and hopefully few prototypes,
16525 which can conflict with char $ac_func (); below.
16526 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16527 <limits.h> exists even on freestanding compilers. */
16530 # include <limits.h>
16532 # include <assert.h>
16537 /* Override any GCC internal prototype to avoid an error.
16538 Use char because int might match the return type of a GCC
16539 builtin and then its argument prototype would still apply. */
16544 /* The GNU C library defines this for functions which it implements
16545 to always fail with ENOSYS. Some functions are actually named
16546 something starting with __ and the normal name is an alias. */
16547 #if defined __stub_$ac_func || defined __stub___$ac_func
16554 return $ac_func ();
16559 rm -f conftest.$ac_objext conftest$ac_exeext
16560 if { (ac_try="$ac_link"
16561 case "(($ac_try" in
16562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16563 *) ac_try_echo=$ac_try;;
16565 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16566 (eval "$ac_link") 2>conftest.er1
16568 grep -v '^ *+' conftest.er1 >conftest.err
16570 cat conftest.err >&5
16571 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16572 (exit $ac_status); } && {
16573 test -z "$ac_c_werror_flag" ||
16574 test ! -s conftest.err
16575 } && test -s conftest$ac_exeext &&
16576 $as_test_x conftest$ac_exeext; then
16577 eval "$as_ac_var=yes"
16579 echo "$as_me: failed program was
:" >&5
16580 sed 's/^/| /' conftest.$ac_ext >&5
16582 eval "$as_ac_var=no
"
16585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16586 conftest$ac_exeext conftest.$ac_ext
16588 ac_res=`eval echo '${'$as_ac_var'}'`
16589 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16590 echo "${ECHO_T}$ac_res" >&6; }
16591 if test `eval echo '${'$as_ac_var'}'` = yes; then
16592 cat >>confdefs.h <<_ACEOF
16593 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16601 for ac_header in sys/un.h
16603 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16604 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16605 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16606 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16607 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16608 echo $ECHO_N "(cached
) $ECHO_C" >&6
16610 ac_res=`eval echo '${'$as_ac_Header'}'`
16611 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16612 echo "${ECHO_T}$ac_res" >&6; }
16614 # Is the header compilable?
16615 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16616 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16617 cat >conftest.$ac_ext <<_ACEOF
16620 cat confdefs.h >>conftest.$ac_ext
16621 cat >>conftest.$ac_ext <<_ACEOF
16622 /* end confdefs.h. */
16623 $ac_includes_default
16624 #include <$ac_header>
16626 rm -f conftest.$ac_objext
16627 if { (ac_try="$ac_compile"
16628 case "(($ac_try" in
16629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16630 *) ac_try_echo=$ac_try;;
16632 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16633 (eval "$ac_compile") 2>conftest.er1
16635 grep -v '^ *+' conftest.er1 >conftest.err
16637 cat conftest.err >&5
16638 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16639 (exit $ac_status); } && {
16640 test -z "$ac_c_werror_flag" ||
16641 test ! -s conftest.err
16642 } && test -s conftest.$ac_objext; then
16643 ac_header_compiler=yes
16645 echo "$as_me: failed program was
:" >&5
16646 sed 's/^/| /' conftest.$ac_ext >&5
16648 ac_header_compiler=no
16651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16652 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16653 echo "${ECHO_T}$ac_header_compiler" >&6; }
16655 # Is the header present?
16656 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16657 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16658 cat >conftest.$ac_ext <<_ACEOF
16661 cat confdefs.h >>conftest.$ac_ext
16662 cat >>conftest.$ac_ext <<_ACEOF
16663 /* end confdefs.h. */
16664 #include <$ac_header>
16666 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16667 case "(($ac_try" in
16668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16669 *) ac_try_echo=$ac_try;;
16671 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16672 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16674 grep -v '^ *+' conftest.er1 >conftest.err
16676 cat conftest.err >&5
16677 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16678 (exit $ac_status); } >/dev/null && {
16679 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16680 test ! -s conftest.err
16682 ac_header_preproc=yes
16684 echo "$as_me: failed program was
:" >&5
16685 sed 's/^/| /' conftest.$ac_ext >&5
16687 ac_header_preproc=no
16690 rm -f conftest.err conftest.$ac_ext
16691 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16692 echo "${ECHO_T}$ac_header_preproc" >&6; }
16694 # So? What about this header?
16695 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16697 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16698 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16699 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16700 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16701 ac_header_preproc=yes
16704 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16705 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16706 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16707 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16708 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16709 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16710 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16711 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16712 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16713 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16714 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16715 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16719 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16720 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16721 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16722 echo $ECHO_N "(cached
) $ECHO_C" >&6
16724 eval "$as_ac_Header=\
$ac_header_preproc"
16726 ac_res=`eval echo '${'$as_ac_Header'}'`
16727 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16728 echo "${ECHO_T}$ac_res" >&6; }
16731 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16732 cat >>confdefs.h <<_ACEOF
16733 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16745 for ac_header in $ac_header_list
16747 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16748 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16749 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16750 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16751 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16752 echo $ECHO_N "(cached
) $ECHO_C" >&6
16754 ac_res=`eval echo '${'$as_ac_Header'}'`
16755 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16756 echo "${ECHO_T}$ac_res" >&6; }
16758 # Is the header compilable?
16759 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16760 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16761 cat >conftest.$ac_ext <<_ACEOF
16764 cat confdefs.h >>conftest.$ac_ext
16765 cat >>conftest.$ac_ext <<_ACEOF
16766 /* end confdefs.h. */
16767 $ac_includes_default
16768 #include <$ac_header>
16770 rm -f conftest.$ac_objext
16771 if { (ac_try="$ac_compile"
16772 case "(($ac_try" in
16773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16774 *) ac_try_echo=$ac_try;;
16776 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16777 (eval "$ac_compile") 2>conftest.er1
16779 grep -v '^ *+' conftest.er1 >conftest.err
16781 cat conftest.err >&5
16782 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16783 (exit $ac_status); } && {
16784 test -z "$ac_c_werror_flag" ||
16785 test ! -s conftest.err
16786 } && test -s conftest.$ac_objext; then
16787 ac_header_compiler=yes
16789 echo "$as_me: failed program was
:" >&5
16790 sed 's/^/| /' conftest.$ac_ext >&5
16792 ac_header_compiler=no
16795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16796 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16797 echo "${ECHO_T}$ac_header_compiler" >&6; }
16799 # Is the header present?
16800 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16801 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16802 cat >conftest.$ac_ext <<_ACEOF
16805 cat confdefs.h >>conftest.$ac_ext
16806 cat >>conftest.$ac_ext <<_ACEOF
16807 /* end confdefs.h. */
16808 #include <$ac_header>
16810 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16811 case "(($ac_try" in
16812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16813 *) ac_try_echo=$ac_try;;
16815 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16816 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16818 grep -v '^ *+' conftest.er1 >conftest.err
16820 cat conftest.err >&5
16821 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16822 (exit $ac_status); } >/dev/null && {
16823 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16824 test ! -s conftest.err
16826 ac_header_preproc=yes
16828 echo "$as_me: failed program was
:" >&5
16829 sed 's/^/| /' conftest.$ac_ext >&5
16831 ac_header_preproc=no
16834 rm -f conftest.err conftest.$ac_ext
16835 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16836 echo "${ECHO_T}$ac_header_preproc" >&6; }
16838 # So? What about this header?
16839 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16841 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16842 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16843 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16844 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16845 ac_header_preproc=yes
16848 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16849 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16850 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16851 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16852 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16853 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16854 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16855 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16856 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16857 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16858 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16859 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16863 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16864 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16865 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16866 echo $ECHO_N "(cached
) $ECHO_C" >&6
16868 eval "$as_ac_Header=\
$ac_header_preproc"
16870 ac_res=`eval echo '${'$as_ac_Header'}'`
16871 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16872 echo "${ECHO_T}$ac_res" >&6; }
16875 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16876 cat >>confdefs.h <<_ACEOF
16877 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16892 for ac_func in $ac_func_list
16894 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16895 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16896 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16897 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16898 echo $ECHO_N "(cached
) $ECHO_C" >&6
16900 cat >conftest.$ac_ext <<_ACEOF
16903 cat confdefs.h >>conftest.$ac_ext
16904 cat >>conftest.$ac_ext <<_ACEOF
16905 /* end confdefs.h. */
16906 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16907 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16908 #define $ac_func innocuous_$ac_func
16910 /* System header to define __stub macros and hopefully few prototypes,
16911 which can conflict with char $ac_func (); below.
16912 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16913 <limits.h> exists even on freestanding compilers. */
16916 # include <limits.h>
16918 # include <assert.h>
16923 /* Override any GCC internal prototype to avoid an error.
16924 Use char because int might match the return type of a GCC
16925 builtin and then its argument prototype would still apply. */
16930 /* The GNU C library defines this for functions which it implements
16931 to always fail with ENOSYS. Some functions are actually named
16932 something starting with __ and the normal name is an alias. */
16933 #if defined __stub_$ac_func || defined __stub___$ac_func
16940 return $ac_func ();
16945 rm -f conftest.$ac_objext conftest$ac_exeext
16946 if { (ac_try="$ac_link"
16947 case "(($ac_try" in
16948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16949 *) ac_try_echo=$ac_try;;
16951 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16952 (eval "$ac_link") 2>conftest.er1
16954 grep -v '^ *+' conftest.er1 >conftest.err
16956 cat conftest.err >&5
16957 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16958 (exit $ac_status); } && {
16959 test -z "$ac_c_werror_flag" ||
16960 test ! -s conftest.err
16961 } && test -s conftest$ac_exeext &&
16962 $as_test_x conftest$ac_exeext; then
16963 eval "$as_ac_var=yes"
16965 echo "$as_me: failed program was
:" >&5
16966 sed 's/^/| /' conftest.$ac_ext >&5
16968 eval "$as_ac_var=no
"
16971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16972 conftest$ac_exeext conftest.$ac_ext
16974 ac_res=`eval echo '${'$as_ac_var'}'`
16975 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16976 echo "${ECHO_T}$ac_res" >&6; }
16977 if test `eval echo '${'$as_ac_var'}'` = yes; then
16978 cat >>confdefs.h <<_ACEOF
16979 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17001 { echo "$as_me:$LINENO: checking
for working mktime
" >&5
17002 echo $ECHO_N "checking
for working mktime...
$ECHO_C" >&6; }
17003 if test "${ac_cv_func_working_mktime+set}" = set; then
17004 echo $ECHO_N "(cached
) $ECHO_C" >&6
17006 if test "$cross_compiling" = yes; then
17007 ac_cv_func_working_mktime=no
17009 cat >conftest.$ac_ext <<_ACEOF
17012 cat confdefs.h >>conftest.$ac_ext
17013 cat >>conftest.$ac_ext <<_ACEOF
17014 /* end confdefs.h. */
17015 /* Test program from Paul Eggert and Tony Leneis. */
17016 #ifdef TIME_WITH_SYS_TIME
17017 # include <sys/time.h>
17020 # ifdef HAVE_SYS_TIME_H
17021 # include <sys/time.h>
17027 #include <stdlib.h>
17029 #ifdef HAVE_UNISTD_H
17030 # include <unistd.h>
17034 # define alarm(X) /* empty */
17037 /* Work around redefinition to rpl_putenv by other config tests. */
17040 static time_t time_t_max;
17041 static time_t time_t_min;
17043 /* Values we'll use to set the TZ environment variable. */
17044 static char *tz_strings[] = {
17045 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
17046 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
17048 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
17050 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
17051 Based on a problem report from Andreas Jaeger. */
17053 spring_forward_gap ()
17055 /* glibc (up to about 1998-10-07) failed this test. */
17058 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
17059 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
17060 on systems that don't support the Olson extension, or don't have the
17061 full zoneinfo tables installed. */
17062 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
17071 return mktime (&tm) != (time_t) -1;
17079 return ! (lt = localtime (&now)) || mktime (lt) == now;
17086 return (mktime_test1 (now)
17087 && mktime_test1 ((time_t) (time_t_max - now))
17088 && mktime_test1 ((time_t) (time_t_min + now)));
17094 /* Based on code from Ariel Faigon. */
17104 return tm.tm_mon == 2 && tm.tm_mday == 31;
17113 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
17114 now = mktime (&tm);
17115 if (now != (time_t) -1)
17117 struct tm *lt = localtime (&now);
17119 && lt->tm_year == tm.tm_year
17120 && lt->tm_mon == tm.tm_mon
17121 && lt->tm_mday == tm.tm_mday
17122 && lt->tm_hour == tm.tm_hour
17123 && lt->tm_min == tm.tm_min
17124 && lt->tm_sec == tm.tm_sec
17125 && lt->tm_yday == tm.tm_yday
17126 && lt->tm_wday == tm.tm_wday
17127 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
17128 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
17137 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
17138 ignoring leap seconds. */
17139 unsigned long int answer = 2527315200UL;
17143 tm.tm_year = 2050 - 1900;
17146 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
17149 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
17150 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
17151 on systems that don't support the Olson extension, or don't have the
17152 full zoneinfo tables installed. */
17153 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
17157 /* Check that the result is either a failure, or close enough
17158 to the correct answer that we can assume the discrepancy is
17159 due to leap seconds. */
17160 return (t == (time_t) -1
17161 || (0 < t && answer - 120 <= t && t <= answer + 120));
17170 /* This test makes some buggy mktime implementations loop.
17171 Give up after 60 seconds; a mktime slower than that
17172 isn't worth using anyway. */
17175 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
17178 if ((time_t) -1 < 0)
17179 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
17181 delta = time_t_max / 997; /* a suitable prime number */
17182 for (i = 0; i < N_STRINGS; i++)
17185 putenv (tz_strings[i]);
17187 for (t = 0; t <= time_t_max - delta; t += delta)
17188 if (! mktime_test (t))
17190 if (! (mktime_test ((time_t) 1)
17191 && mktime_test ((time_t) (60 * 60))
17192 && mktime_test ((time_t) (60 * 60 * 24))))
17195 for (j = 1; 0 < j; j *= 2)
17196 if (! bigtime_test (j))
17198 if (! bigtime_test (j - 1))
17201 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
17204 rm -f conftest$ac_exeext
17205 if { (ac_try="$ac_link"
17206 case "(($ac_try" in
17207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17208 *) ac_try_echo=$ac_try;;
17210 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17211 (eval "$ac_link") 2>&5
17213 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17214 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17215 { (case "(($ac_try" in
17216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17217 *) ac_try_echo=$ac_try;;
17219 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17220 (eval "$ac_try") 2>&5
17222 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17223 (exit $ac_status); }; }; then
17224 ac_cv_func_working_mktime=yes
17226 echo "$as_me: program exited with status
$ac_status" >&5
17227 echo "$as_me: failed program was
:" >&5
17228 sed 's/^/| /' conftest.$ac_ext >&5
17230 ( exit $ac_status )
17231 ac_cv_func_working_mktime=no
17233 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17238 { echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
17239 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
17240 if test $ac_cv_func_working_mktime = no; then
17241 case " $LIBOBJS " in
17242 *" mktime.
$ac_objext "* ) ;;
17243 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
17249 if test "$ac_cv_func_working_mktime" = no; then
17251 cat >>confdefs.h <<\_ACEOF
17252 #define BROKEN_MKTIME 1
17257 ac_have_func=no # yes means we've found a way to get the load average.
17259 # Make sure getloadavg.c is where it belongs, at configure-time.
17260 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
17261 { { echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
17262 echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
17263 { (exit 1); exit 1; }; }
17267 # Check for getloadavg, but be sure not to touch the cache variable.
17268 ({ echo "$as_me:$LINENO: checking
for getloadavg
" >&5
17269 echo $ECHO_N "checking
for getloadavg...
$ECHO_C" >&6; }
17270 if test "${ac_cv_func_getloadavg+set}" = set; then
17271 echo $ECHO_N "(cached
) $ECHO_C" >&6
17273 cat >conftest.$ac_ext <<_ACEOF
17276 cat confdefs.h >>conftest.$ac_ext
17277 cat >>conftest.$ac_ext <<_ACEOF
17278 /* end confdefs.h. */
17279 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
17280 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17281 #define getloadavg innocuous_getloadavg
17283 /* System header to define __stub macros and hopefully few prototypes,
17284 which can conflict with char getloadavg (); below.
17285 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17286 <limits.h> exists even on freestanding compilers. */
17289 # include <limits.h>
17291 # include <assert.h>
17296 /* Override any GCC internal prototype to avoid an error.
17297 Use char because int might match the return type of a GCC
17298 builtin and then its argument prototype would still apply. */
17302 char getloadavg ();
17303 /* The GNU C library defines this for functions which it implements
17304 to always fail with ENOSYS. Some functions are actually named
17305 something starting with __ and the normal name is an alias. */
17306 #if defined __stub_getloadavg || defined __stub___getloadavg
17313 return getloadavg ();
17318 rm -f conftest.$ac_objext conftest$ac_exeext
17319 if { (ac_try="$ac_link"
17320 case "(($ac_try" in
17321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17322 *) ac_try_echo=$ac_try;;
17324 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17325 (eval "$ac_link") 2>conftest.er1
17327 grep -v '^ *+' conftest.er1 >conftest.err
17329 cat conftest.err >&5
17330 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17331 (exit $ac_status); } && {
17332 test -z "$ac_c_werror_flag" ||
17333 test ! -s conftest.err
17334 } && test -s conftest$ac_exeext &&
17335 $as_test_x conftest$ac_exeext; then
17336 ac_cv_func_getloadavg=yes
17338 echo "$as_me: failed program was
:" >&5
17339 sed 's/^/| /' conftest.$ac_ext >&5
17341 ac_cv_func_getloadavg=no
17344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17345 conftest$ac_exeext conftest.$ac_ext
17347 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
17348 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
17349 if test $ac_cv_func_getloadavg = yes; then
17354 ) && ac_have_func=yes
17356 # On HPUX9, an unprivileged user can get load averages through this function.
17358 for ac_func in pstat_getdynamic
17360 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17361 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17362 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17363 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17364 echo $ECHO_N "(cached
) $ECHO_C" >&6
17366 cat >conftest.$ac_ext <<_ACEOF
17369 cat confdefs.h >>conftest.$ac_ext
17370 cat >>conftest.$ac_ext <<_ACEOF
17371 /* end confdefs.h. */
17372 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17373 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17374 #define $ac_func innocuous_$ac_func
17376 /* System header to define __stub macros and hopefully few prototypes,
17377 which can conflict with char $ac_func (); below.
17378 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17379 <limits.h> exists even on freestanding compilers. */
17382 # include <limits.h>
17384 # include <assert.h>
17389 /* Override any GCC internal prototype to avoid an error.
17390 Use char because int might match the return type of a GCC
17391 builtin and then its argument prototype would still apply. */
17396 /* The GNU C library defines this for functions which it implements
17397 to always fail with ENOSYS. Some functions are actually named
17398 something starting with __ and the normal name is an alias. */
17399 #if defined __stub_$ac_func || defined __stub___$ac_func
17406 return $ac_func ();
17411 rm -f conftest.$ac_objext conftest$ac_exeext
17412 if { (ac_try="$ac_link"
17413 case "(($ac_try" in
17414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17415 *) ac_try_echo=$ac_try;;
17417 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17418 (eval "$ac_link") 2>conftest.er1
17420 grep -v '^ *+' conftest.er1 >conftest.err
17422 cat conftest.err >&5
17423 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17424 (exit $ac_status); } && {
17425 test -z "$ac_c_werror_flag" ||
17426 test ! -s conftest.err
17427 } && test -s conftest$ac_exeext &&
17428 $as_test_x conftest$ac_exeext; then
17429 eval "$as_ac_var=yes"
17431 echo "$as_me: failed program was
:" >&5
17432 sed 's/^/| /' conftest.$ac_ext >&5
17434 eval "$as_ac_var=no
"
17437 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17438 conftest$ac_exeext conftest.$ac_ext
17440 ac_res=`eval echo '${'$as_ac_var'}'`
17441 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17442 echo "${ECHO_T}$ac_res" >&6; }
17443 if test `eval echo '${'$as_ac_var'}'` = yes; then
17444 cat >>confdefs.h <<_ACEOF
17445 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17452 # Solaris has libkstat which does not require root.
17454 { echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
17455 echo $ECHO_N "checking
for kstat_open
in -lkstat...
$ECHO_C" >&6; }
17456 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
17457 echo $ECHO_N "(cached
) $ECHO_C" >&6
17459 ac_check_lib_save_LIBS=$LIBS
17460 LIBS="-lkstat $LIBS"
17461 cat >conftest.$ac_ext <<_ACEOF
17464 cat confdefs.h >>conftest.$ac_ext
17465 cat >>conftest.$ac_ext <<_ACEOF
17466 /* end confdefs.h. */
17468 /* Override any GCC internal prototype to avoid an error.
17469 Use char because int might match the return type of a GCC
17470 builtin and then its argument prototype would still apply. */
17474 char kstat_open ();
17478 return kstat_open ();
17483 rm -f conftest.$ac_objext conftest$ac_exeext
17484 if { (ac_try="$ac_link"
17485 case "(($ac_try" in
17486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17487 *) ac_try_echo=$ac_try;;
17489 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17490 (eval "$ac_link") 2>conftest.er1
17492 grep -v '^ *+' conftest.er1 >conftest.err
17494 cat conftest.err >&5
17495 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17496 (exit $ac_status); } && {
17497 test -z "$ac_c_werror_flag" ||
17498 test ! -s conftest.err
17499 } && test -s conftest$ac_exeext &&
17500 $as_test_x conftest$ac_exeext; then
17501 ac_cv_lib_kstat_kstat_open=yes
17503 echo "$as_me: failed program was
:" >&5
17504 sed 's/^/| /' conftest.$ac_ext >&5
17506 ac_cv_lib_kstat_kstat_open=no
17509 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17510 conftest$ac_exeext conftest.$ac_ext
17511 LIBS=$ac_check_lib_save_LIBS
17513 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
17514 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
17515 if test $ac_cv_lib_kstat_kstat_open = yes; then
17516 cat >>confdefs.h <<_ACEOF
17517 #define HAVE_LIBKSTAT 1
17520 LIBS="-lkstat $LIBS"
17524 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
17526 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17527 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17528 # to get the right answer into the cache.
17529 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17530 if test $ac_have_func = no; then
17531 { echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
17532 echo $ECHO_N "checking
for elf_begin
in -lelf...
$ECHO_C" >&6; }
17533 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17534 echo $ECHO_N "(cached
) $ECHO_C" >&6
17536 ac_check_lib_save_LIBS=$LIBS
17538 cat >conftest.$ac_ext <<_ACEOF
17541 cat confdefs.h >>conftest.$ac_ext
17542 cat >>conftest.$ac_ext <<_ACEOF
17543 /* end confdefs.h. */
17545 /* Override any GCC internal prototype to avoid an error.
17546 Use char because int might match the return type of a GCC
17547 builtin and then its argument prototype would still apply. */
17555 return elf_begin ();
17560 rm -f conftest.$ac_objext conftest$ac_exeext
17561 if { (ac_try="$ac_link"
17562 case "(($ac_try" in
17563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17564 *) ac_try_echo=$ac_try;;
17566 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17567 (eval "$ac_link") 2>conftest.er1
17569 grep -v '^ *+' conftest.er1 >conftest.err
17571 cat conftest.err >&5
17572 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17573 (exit $ac_status); } && {
17574 test -z "$ac_c_werror_flag" ||
17575 test ! -s conftest.err
17576 } && test -s conftest$ac_exeext &&
17577 $as_test_x conftest$ac_exeext; then
17578 ac_cv_lib_elf_elf_begin=yes
17580 echo "$as_me: failed program was
:" >&5
17581 sed 's/^/| /' conftest.$ac_ext >&5
17583 ac_cv_lib_elf_elf_begin=no
17586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17587 conftest$ac_exeext conftest.$ac_ext
17588 LIBS=$ac_check_lib_save_LIBS
17590 { echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
17591 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17592 if test $ac_cv_lib_elf_elf_begin = yes; then
17597 if test $ac_have_func = no; then
17598 { echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
17599 echo $ECHO_N "checking
for kvm_open
in -lkvm...
$ECHO_C" >&6; }
17600 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17601 echo $ECHO_N "(cached
) $ECHO_C" >&6
17603 ac_check_lib_save_LIBS=$LIBS
17605 cat >conftest.$ac_ext <<_ACEOF
17608 cat confdefs.h >>conftest.$ac_ext
17609 cat >>conftest.$ac_ext <<_ACEOF
17610 /* end confdefs.h. */
17612 /* Override any GCC internal prototype to avoid an error.
17613 Use char because int might match the return type of a GCC
17614 builtin and then its argument prototype would still apply. */
17622 return kvm_open ();
17627 rm -f conftest.$ac_objext conftest$ac_exeext
17628 if { (ac_try="$ac_link"
17629 case "(($ac_try" in
17630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17631 *) ac_try_echo=$ac_try;;
17633 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17634 (eval "$ac_link") 2>conftest.er1
17636 grep -v '^ *+' conftest.er1 >conftest.err
17638 cat conftest.err >&5
17639 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17640 (exit $ac_status); } && {
17641 test -z "$ac_c_werror_flag" ||
17642 test ! -s conftest.err
17643 } && test -s conftest$ac_exeext &&
17644 $as_test_x conftest$ac_exeext; then
17645 ac_cv_lib_kvm_kvm_open=yes
17647 echo "$as_me: failed program was
:" >&5
17648 sed 's/^/| /' conftest.$ac_ext >&5
17650 ac_cv_lib_kvm_kvm_open=no
17653 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17654 conftest$ac_exeext conftest.$ac_ext
17655 LIBS=$ac_check_lib_save_LIBS
17657 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
17658 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17659 if test $ac_cv_lib_kvm_kvm_open = yes; then
17663 # Check for the 4.4BSD definition of getloadavg.
17664 { echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
17665 echo $ECHO_N "checking
for getloadavg
in -lutil...
$ECHO_C" >&6; }
17666 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17667 echo $ECHO_N "(cached
) $ECHO_C" >&6
17669 ac_check_lib_save_LIBS=$LIBS
17670 LIBS="-lutil $LIBS"
17671 cat >conftest.$ac_ext <<_ACEOF
17674 cat confdefs.h >>conftest.$ac_ext
17675 cat >>conftest.$ac_ext <<_ACEOF
17676 /* end confdefs.h. */
17678 /* Override any GCC internal prototype to avoid an error.
17679 Use char because int might match the return type of a GCC
17680 builtin and then its argument prototype would still apply. */
17684 char getloadavg ();
17688 return getloadavg ();
17693 rm -f conftest.$ac_objext conftest$ac_exeext
17694 if { (ac_try="$ac_link"
17695 case "(($ac_try" in
17696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17697 *) ac_try_echo=$ac_try;;
17699 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17700 (eval "$ac_link") 2>conftest.er1
17702 grep -v '^ *+' conftest.er1 >conftest.err
17704 cat conftest.err >&5
17705 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17706 (exit $ac_status); } && {
17707 test -z "$ac_c_werror_flag" ||
17708 test ! -s conftest.err
17709 } && test -s conftest$ac_exeext &&
17710 $as_test_x conftest$ac_exeext; then
17711 ac_cv_lib_util_getloadavg=yes
17713 echo "$as_me: failed program was
:" >&5
17714 sed 's/^/| /' conftest.$ac_ext >&5
17716 ac_cv_lib_util_getloadavg=no
17719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17720 conftest$ac_exeext conftest.$ac_ext
17721 LIBS=$ac_check_lib_save_LIBS
17723 { echo "$as_me:$LINENO: result
: $ac_cv_lib_util_getloadavg" >&5
17724 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17725 if test $ac_cv_lib_util_getloadavg = yes; then
17726 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17731 if test $ac_have_func = no; then
17732 # There is a commonly available library for RS/6000 AIX.
17733 # Since it is not a standard part of AIX, it might be installed locally.
17734 ac_getloadavg_LIBS=$LIBS
17735 LIBS="-L/usr
/local
/lib
$LIBS"
17736 { echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
17737 echo $ECHO_N "checking
for getloadavg
in -lgetloadavg...
$ECHO_C" >&6; }
17738 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17739 echo $ECHO_N "(cached
) $ECHO_C" >&6
17741 ac_check_lib_save_LIBS=$LIBS
17742 LIBS="-lgetloadavg $LIBS"
17743 cat >conftest.$ac_ext <<_ACEOF
17746 cat confdefs.h >>conftest.$ac_ext
17747 cat >>conftest.$ac_ext <<_ACEOF
17748 /* end confdefs.h. */
17750 /* Override any GCC internal prototype to avoid an error.
17751 Use char because int might match the return type of a GCC
17752 builtin and then its argument prototype would still apply. */
17756 char getloadavg ();
17760 return getloadavg ();
17765 rm -f conftest.$ac_objext conftest$ac_exeext
17766 if { (ac_try="$ac_link"
17767 case "(($ac_try" in
17768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17769 *) ac_try_echo=$ac_try;;
17771 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17772 (eval "$ac_link") 2>conftest.er1
17774 grep -v '^ *+' conftest.er1 >conftest.err
17776 cat conftest.err >&5
17777 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17778 (exit $ac_status); } && {
17779 test -z "$ac_c_werror_flag" ||
17780 test ! -s conftest.err
17781 } && test -s conftest$ac_exeext &&
17782 $as_test_x conftest$ac_exeext; then
17783 ac_cv_lib_getloadavg_getloadavg=yes
17785 echo "$as_me: failed program was
:" >&5
17786 sed 's/^/| /' conftest.$ac_ext >&5
17788 ac_cv_lib_getloadavg_getloadavg=no
17791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17792 conftest$ac_exeext conftest.$ac_ext
17793 LIBS=$ac_check_lib_save_LIBS
17795 { echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
17796 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17797 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17798 LIBS="-lgetloadavg $LIBS"
17800 LIBS=$ac_getloadavg_LIBS
17805 # Make sure it is really in the library, if we think we found it,
17806 # otherwise set up the replacement function.
17808 for ac_func in getloadavg
17810 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17811 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17812 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17813 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17814 echo $ECHO_N "(cached
) $ECHO_C" >&6
17816 cat >conftest.$ac_ext <<_ACEOF
17819 cat confdefs.h >>conftest.$ac_ext
17820 cat >>conftest.$ac_ext <<_ACEOF
17821 /* end confdefs.h. */
17822 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17823 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17824 #define $ac_func innocuous_$ac_func
17826 /* System header to define __stub macros and hopefully few prototypes,
17827 which can conflict with char $ac_func (); below.
17828 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17829 <limits.h> exists even on freestanding compilers. */
17832 # include <limits.h>
17834 # include <assert.h>
17839 /* Override any GCC internal prototype to avoid an error.
17840 Use char because int might match the return type of a GCC
17841 builtin and then its argument prototype would still apply. */
17846 /* The GNU C library defines this for functions which it implements
17847 to always fail with ENOSYS. Some functions are actually named
17848 something starting with __ and the normal name is an alias. */
17849 #if defined __stub_$ac_func || defined __stub___$ac_func
17856 return $ac_func ();
17861 rm -f conftest.$ac_objext conftest$ac_exeext
17862 if { (ac_try="$ac_link"
17863 case "(($ac_try" in
17864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17865 *) ac_try_echo=$ac_try;;
17867 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17868 (eval "$ac_link") 2>conftest.er1
17870 grep -v '^ *+' conftest.er1 >conftest.err
17872 cat conftest.err >&5
17873 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17874 (exit $ac_status); } && {
17875 test -z "$ac_c_werror_flag" ||
17876 test ! -s conftest.err
17877 } && test -s conftest$ac_exeext &&
17878 $as_test_x conftest$ac_exeext; then
17879 eval "$as_ac_var=yes"
17881 echo "$as_me: failed program was
:" >&5
17882 sed 's/^/| /' conftest.$ac_ext >&5
17884 eval "$as_ac_var=no
"
17887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17888 conftest$ac_exeext conftest.$ac_ext
17890 ac_res=`eval echo '${'$as_ac_var'}'`
17891 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17892 echo "${ECHO_T}$ac_res" >&6; }
17893 if test `eval echo '${'$as_ac_var'}'` = yes; then
17894 cat >>confdefs.h <<_ACEOF
17895 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17899 case " $LIBOBJS " in
17900 *" getloadavg.
$ac_objext "* ) ;;
17901 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
17906 cat >>confdefs.h <<\_ACEOF
17907 #define C_GETLOADAVG 1
17910 # Figure out what our getloadavg.c needs.
17912 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17913 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17914 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17915 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17916 echo $ECHO_N "(cached
) $ECHO_C" >&6
17918 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17919 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17921 # Is the header compilable?
17922 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
17923 echo $ECHO_N "checking sys
/dg_sys_info.h usability...
$ECHO_C" >&6; }
17924 cat >conftest.$ac_ext <<_ACEOF
17927 cat confdefs.h >>conftest.$ac_ext
17928 cat >>conftest.$ac_ext <<_ACEOF
17929 /* end confdefs.h. */
17930 $ac_includes_default
17931 #include <sys/dg_sys_info.h>
17933 rm -f conftest.$ac_objext
17934 if { (ac_try="$ac_compile"
17935 case "(($ac_try" in
17936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17937 *) ac_try_echo=$ac_try;;
17939 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17940 (eval "$ac_compile") 2>conftest.er1
17942 grep -v '^ *+' conftest.er1 >conftest.err
17944 cat conftest.err >&5
17945 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17946 (exit $ac_status); } && {
17947 test -z "$ac_c_werror_flag" ||
17948 test ! -s conftest.err
17949 } && test -s conftest.$ac_objext; then
17950 ac_header_compiler=yes
17952 echo "$as_me: failed program was
:" >&5
17953 sed 's/^/| /' conftest.$ac_ext >&5
17955 ac_header_compiler=no
17958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17959 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17960 echo "${ECHO_T}$ac_header_compiler" >&6; }
17962 # Is the header present?
17963 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
17964 echo $ECHO_N "checking sys
/dg_sys_info.h presence...
$ECHO_C" >&6; }
17965 cat >conftest.$ac_ext <<_ACEOF
17968 cat confdefs.h >>conftest.$ac_ext
17969 cat >>conftest.$ac_ext <<_ACEOF
17970 /* end confdefs.h. */
17971 #include <sys/dg_sys_info.h>
17973 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17974 case "(($ac_try" in
17975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17976 *) ac_try_echo=$ac_try;;
17978 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17979 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17981 grep -v '^ *+' conftest.er1 >conftest.err
17983 cat conftest.err >&5
17984 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17985 (exit $ac_status); } >/dev/null && {
17986 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17987 test ! -s conftest.err
17989 ac_header_preproc=yes
17991 echo "$as_me: failed program was
:" >&5
17992 sed 's/^/| /' conftest.$ac_ext >&5
17994 ac_header_preproc=no
17997 rm -f conftest.err conftest.$ac_ext
17998 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17999 echo "${ECHO_T}$ac_header_preproc" >&6; }
18001 # So? What about this header?
18002 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18004 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
18005 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18006 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
18007 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
18008 ac_header_preproc=yes
18011 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
18012 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
18013 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
18014 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
18015 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
18016 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
18017 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
18018 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
18019 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
18020 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
18021 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
18022 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
18026 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
18027 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
18028 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18029 echo $ECHO_N "(cached
) $ECHO_C" >&6
18031 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
18033 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
18034 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
18037 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
18040 cat >>confdefs.h <<\_ACEOF
18045 { echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
18046 echo $ECHO_N "checking
for dg_sys_info
in -ldgc...
$ECHO_C" >&6; }
18047 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
18048 echo $ECHO_N "(cached
) $ECHO_C" >&6
18050 ac_check_lib_save_LIBS=$LIBS
18052 cat >conftest.$ac_ext <<_ACEOF
18055 cat confdefs.h >>conftest.$ac_ext
18056 cat >>conftest.$ac_ext <<_ACEOF
18057 /* end confdefs.h. */
18059 /* Override any GCC internal prototype to avoid an error.
18060 Use char because int might match the return type of a GCC
18061 builtin and then its argument prototype would still apply. */
18065 char dg_sys_info ();
18069 return dg_sys_info ();
18074 rm -f conftest.$ac_objext conftest$ac_exeext
18075 if { (ac_try="$ac_link"
18076 case "(($ac_try" in
18077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18078 *) ac_try_echo=$ac_try;;
18080 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18081 (eval "$ac_link") 2>conftest.er1
18083 grep -v '^ *+' conftest.er1 >conftest.err
18085 cat conftest.err >&5
18086 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18087 (exit $ac_status); } && {
18088 test -z "$ac_c_werror_flag" ||
18089 test ! -s conftest.err
18090 } && test -s conftest$ac_exeext &&
18091 $as_test_x conftest$ac_exeext; then
18092 ac_cv_lib_dgc_dg_sys_info=yes
18094 echo "$as_me: failed program was
:" >&5
18095 sed 's/^/| /' conftest.$ac_ext >&5
18097 ac_cv_lib_dgc_dg_sys_info=no
18100 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18101 conftest$ac_exeext conftest.$ac_ext
18102 LIBS=$ac_check_lib_save_LIBS
18104 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
18105 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
18106 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
18107 cat >>confdefs.h <<_ACEOF
18108 #define HAVE_LIBDGC 1
18119 if test "${ac_cv_header_locale_h+set}" = set; then
18120 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
18121 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
18122 if test "${ac_cv_header_locale_h+set}" = set; then
18123 echo $ECHO_N "(cached
) $ECHO_C" >&6
18125 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
18126 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
18128 # Is the header compilable?
18129 { echo "$as_me:$LINENO: checking locale.h usability
" >&5
18130 echo $ECHO_N "checking locale.h usability...
$ECHO_C" >&6; }
18131 cat >conftest.$ac_ext <<_ACEOF
18134 cat confdefs.h >>conftest.$ac_ext
18135 cat >>conftest.$ac_ext <<_ACEOF
18136 /* end confdefs.h. */
18137 $ac_includes_default
18138 #include <locale.h>
18140 rm -f conftest.$ac_objext
18141 if { (ac_try="$ac_compile"
18142 case "(($ac_try" in
18143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18144 *) ac_try_echo=$ac_try;;
18146 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18147 (eval "$ac_compile") 2>conftest.er1
18149 grep -v '^ *+' conftest.er1 >conftest.err
18151 cat conftest.err >&5
18152 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18153 (exit $ac_status); } && {
18154 test -z "$ac_c_werror_flag" ||
18155 test ! -s conftest.err
18156 } && test -s conftest.$ac_objext; then
18157 ac_header_compiler=yes
18159 echo "$as_me: failed program was
:" >&5
18160 sed 's/^/| /' conftest.$ac_ext >&5
18162 ac_header_compiler=no
18165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18166 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18167 echo "${ECHO_T}$ac_header_compiler" >&6; }
18169 # Is the header present?
18170 { echo "$as_me:$LINENO: checking locale.h presence
" >&5
18171 echo $ECHO_N "checking locale.h presence...
$ECHO_C" >&6; }
18172 cat >conftest.$ac_ext <<_ACEOF
18175 cat confdefs.h >>conftest.$ac_ext
18176 cat >>conftest.$ac_ext <<_ACEOF
18177 /* end confdefs.h. */
18178 #include <locale.h>
18180 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18181 case "(($ac_try" in
18182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18183 *) ac_try_echo=$ac_try;;
18185 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18186 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18188 grep -v '^ *+' conftest.er1 >conftest.err
18190 cat conftest.err >&5
18191 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18192 (exit $ac_status); } >/dev/null && {
18193 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18194 test ! -s conftest.err
18196 ac_header_preproc=yes
18198 echo "$as_me: failed program was
:" >&5
18199 sed 's/^/| /' conftest.$ac_ext >&5
18201 ac_header_preproc=no
18204 rm -f conftest.err conftest.$ac_ext
18205 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18206 echo "${ECHO_T}$ac_header_preproc" >&6; }
18208 # So? What about this header?
18209 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18211 { echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
18212 echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18213 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
18214 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
18215 ac_header_preproc=yes
18218 { echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
18219 echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
18220 { echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
18221 echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
18222 { echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
18223 echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
18224 { echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
18225 echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
18226 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
18227 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
18228 { echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
18229 echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
18233 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
18234 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
18235 if test "${ac_cv_header_locale_h+set}" = set; then
18236 echo $ECHO_N "(cached
) $ECHO_C" >&6
18238 ac_cv_header_locale_h=$ac_header_preproc
18240 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
18241 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
18247 for ac_func in setlocale
18249 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18250 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18251 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18252 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18253 echo $ECHO_N "(cached
) $ECHO_C" >&6
18255 cat >conftest.$ac_ext <<_ACEOF
18258 cat confdefs.h >>conftest.$ac_ext
18259 cat >>conftest.$ac_ext <<_ACEOF
18260 /* end confdefs.h. */
18261 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18262 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18263 #define $ac_func innocuous_$ac_func
18265 /* System header to define __stub macros and hopefully few prototypes,
18266 which can conflict with char $ac_func (); below.
18267 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18268 <limits.h> exists even on freestanding compilers. */
18271 # include <limits.h>
18273 # include <assert.h>
18278 /* Override any GCC internal prototype to avoid an error.
18279 Use char because int might match the return type of a GCC
18280 builtin and then its argument prototype would still apply. */
18285 /* The GNU C library defines this for functions which it implements
18286 to always fail with ENOSYS. Some functions are actually named
18287 something starting with __ and the normal name is an alias. */
18288 #if defined __stub_$ac_func || defined __stub___$ac_func
18295 return $ac_func ();
18300 rm -f conftest.$ac_objext conftest$ac_exeext
18301 if { (ac_try="$ac_link"
18302 case "(($ac_try" in
18303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18304 *) ac_try_echo=$ac_try;;
18306 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18307 (eval "$ac_link") 2>conftest.er1
18309 grep -v '^ *+' conftest.er1 >conftest.err
18311 cat conftest.err >&5
18312 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18313 (exit $ac_status); } && {
18314 test -z "$ac_c_werror_flag" ||
18315 test ! -s conftest.err
18316 } && test -s conftest$ac_exeext &&
18317 $as_test_x conftest$ac_exeext; then
18318 eval "$as_ac_var=yes"
18320 echo "$as_me: failed program was
:" >&5
18321 sed 's/^/| /' conftest.$ac_ext >&5
18323 eval "$as_ac_var=no
"
18326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18327 conftest$ac_exeext conftest.$ac_ext
18329 ac_res=`eval echo '${'$as_ac_var'}'`
18330 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18331 echo "${ECHO_T}$ac_res" >&6; }
18332 if test `eval echo '${'$as_ac_var'}'` = yes; then
18333 cat >>confdefs.h <<_ACEOF
18334 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18341 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
18342 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
18343 # Irix 4.0.5F has the header but not the library.
18344 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
18347 cat >>confdefs.h <<\_ACEOF
18353 if test $ac_have_func = no; then
18354 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18355 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
18356 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
18357 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18358 echo $ECHO_N "(cached
) $ECHO_C" >&6
18360 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
18361 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18363 # Is the header compilable?
18364 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
18365 echo $ECHO_N "checking inq_stats
/cpustats.h usability...
$ECHO_C" >&6; }
18366 cat >conftest.$ac_ext <<_ACEOF
18369 cat confdefs.h >>conftest.$ac_ext
18370 cat >>conftest.$ac_ext <<_ACEOF
18371 /* end confdefs.h. */
18372 $ac_includes_default
18373 #include <inq_stats/cpustats.h>
18375 rm -f conftest.$ac_objext
18376 if { (ac_try="$ac_compile"
18377 case "(($ac_try" in
18378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18379 *) ac_try_echo=$ac_try;;
18381 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18382 (eval "$ac_compile") 2>conftest.er1
18384 grep -v '^ *+' conftest.er1 >conftest.err
18386 cat conftest.err >&5
18387 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18388 (exit $ac_status); } && {
18389 test -z "$ac_c_werror_flag" ||
18390 test ! -s conftest.err
18391 } && test -s conftest.$ac_objext; then
18392 ac_header_compiler=yes
18394 echo "$as_me: failed program was
:" >&5
18395 sed 's/^/| /' conftest.$ac_ext >&5
18397 ac_header_compiler=no
18400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18401 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18402 echo "${ECHO_T}$ac_header_compiler" >&6; }
18404 # Is the header present?
18405 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
18406 echo $ECHO_N "checking inq_stats
/cpustats.h presence...
$ECHO_C" >&6; }
18407 cat >conftest.$ac_ext <<_ACEOF
18410 cat confdefs.h >>conftest.$ac_ext
18411 cat >>conftest.$ac_ext <<_ACEOF
18412 /* end confdefs.h. */
18413 #include <inq_stats/cpustats.h>
18415 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18416 case "(($ac_try" in
18417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18418 *) ac_try_echo=$ac_try;;
18420 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18421 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18423 grep -v '^ *+' conftest.er1 >conftest.err
18425 cat conftest.err >&5
18426 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18427 (exit $ac_status); } >/dev/null && {
18428 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18429 test ! -s conftest.err
18431 ac_header_preproc=yes
18433 echo "$as_me: failed program was
:" >&5
18434 sed 's/^/| /' conftest.$ac_ext >&5
18436 ac_header_preproc=no
18439 rm -f conftest.err conftest.$ac_ext
18440 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18441 echo "${ECHO_T}$ac_header_preproc" >&6; }
18443 # So? What about this header?
18444 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18446 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
18447 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18448 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
18449 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
18450 ac_header_preproc=yes
18453 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
18454 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
18455 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
18456 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
18457 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
18458 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
18459 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
18460 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
18461 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
18462 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
18463 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
18464 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
18468 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
18469 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
18470 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18471 echo $ECHO_N "(cached
) $ECHO_C" >&6
18473 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
18475 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
18476 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18479 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
18482 cat >>confdefs.h <<\_ACEOF
18487 cat >>confdefs.h <<\_ACEOF
18496 if test $ac_have_func = no; then
18497 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18498 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
18499 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
18500 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18501 echo $ECHO_N "(cached
) $ECHO_C" >&6
18503 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
18504 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18506 # Is the header compilable?
18507 { echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
18508 echo $ECHO_N "checking sys
/cpustats.h usability...
$ECHO_C" >&6; }
18509 cat >conftest.$ac_ext <<_ACEOF
18512 cat confdefs.h >>conftest.$ac_ext
18513 cat >>conftest.$ac_ext <<_ACEOF
18514 /* end confdefs.h. */
18515 $ac_includes_default
18516 #include <sys/cpustats.h>
18518 rm -f conftest.$ac_objext
18519 if { (ac_try="$ac_compile"
18520 case "(($ac_try" in
18521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18522 *) ac_try_echo=$ac_try;;
18524 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18525 (eval "$ac_compile") 2>conftest.er1
18527 grep -v '^ *+' conftest.er1 >conftest.err
18529 cat conftest.err >&5
18530 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18531 (exit $ac_status); } && {
18532 test -z "$ac_c_werror_flag" ||
18533 test ! -s conftest.err
18534 } && test -s conftest.$ac_objext; then
18535 ac_header_compiler=yes
18537 echo "$as_me: failed program was
:" >&5
18538 sed 's/^/| /' conftest.$ac_ext >&5
18540 ac_header_compiler=no
18543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18544 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18545 echo "${ECHO_T}$ac_header_compiler" >&6; }
18547 # Is the header present?
18548 { echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
18549 echo $ECHO_N "checking sys
/cpustats.h presence...
$ECHO_C" >&6; }
18550 cat >conftest.$ac_ext <<_ACEOF
18553 cat confdefs.h >>conftest.$ac_ext
18554 cat >>conftest.$ac_ext <<_ACEOF
18555 /* end confdefs.h. */
18556 #include <sys/cpustats.h>
18558 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18559 case "(($ac_try" in
18560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18561 *) ac_try_echo=$ac_try;;
18563 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18564 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18566 grep -v '^ *+' conftest.er1 >conftest.err
18568 cat conftest.err >&5
18569 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18570 (exit $ac_status); } >/dev/null && {
18571 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18572 test ! -s conftest.err
18574 ac_header_preproc=yes
18576 echo "$as_me: failed program was
:" >&5
18577 sed 's/^/| /' conftest.$ac_ext >&5
18579 ac_header_preproc=no
18582 rm -f conftest.err conftest.$ac_ext
18583 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18584 echo "${ECHO_T}$ac_header_preproc" >&6; }
18586 # So? What about this header?
18587 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18589 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
18590 echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18591 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
18592 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
18593 ac_header_preproc=yes
18596 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
18597 echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
18598 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
18599 echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
18600 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
18601 echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
18602 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
18603 echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
18604 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
18605 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
18606 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
18607 echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
18611 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
18612 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
18613 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18614 echo $ECHO_N "(cached
) $ECHO_C" >&6
18616 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18618 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
18619 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18622 if test $ac_cv_header_sys_cpustats_h = yes; then
18623 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18632 if test $ac_have_func = no; then
18634 for ac_header in mach/mach.h
18636 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18637 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18638 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18639 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18640 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18641 echo $ECHO_N "(cached
) $ECHO_C" >&6
18643 ac_res=`eval echo '${'$as_ac_Header'}'`
18644 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18645 echo "${ECHO_T}$ac_res" >&6; }
18647 # Is the header compilable?
18648 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18649 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18650 cat >conftest.$ac_ext <<_ACEOF
18653 cat confdefs.h >>conftest.$ac_ext
18654 cat >>conftest.$ac_ext <<_ACEOF
18655 /* end confdefs.h. */
18656 $ac_includes_default
18657 #include <$ac_header>
18659 rm -f conftest.$ac_objext
18660 if { (ac_try="$ac_compile"
18661 case "(($ac_try" in
18662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18663 *) ac_try_echo=$ac_try;;
18665 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18666 (eval "$ac_compile") 2>conftest.er1
18668 grep -v '^ *+' conftest.er1 >conftest.err
18670 cat conftest.err >&5
18671 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18672 (exit $ac_status); } && {
18673 test -z "$ac_c_werror_flag" ||
18674 test ! -s conftest.err
18675 } && test -s conftest.$ac_objext; then
18676 ac_header_compiler=yes
18678 echo "$as_me: failed program was
:" >&5
18679 sed 's/^/| /' conftest.$ac_ext >&5
18681 ac_header_compiler=no
18684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18685 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18686 echo "${ECHO_T}$ac_header_compiler" >&6; }
18688 # Is the header present?
18689 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18690 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18691 cat >conftest.$ac_ext <<_ACEOF
18694 cat confdefs.h >>conftest.$ac_ext
18695 cat >>conftest.$ac_ext <<_ACEOF
18696 /* end confdefs.h. */
18697 #include <$ac_header>
18699 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18700 case "(($ac_try" in
18701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18702 *) ac_try_echo=$ac_try;;
18704 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18705 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18707 grep -v '^ *+' conftest.er1 >conftest.err
18709 cat conftest.err >&5
18710 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18711 (exit $ac_status); } >/dev/null && {
18712 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18713 test ! -s conftest.err
18715 ac_header_preproc=yes
18717 echo "$as_me: failed program was
:" >&5
18718 sed 's/^/| /' conftest.$ac_ext >&5
18720 ac_header_preproc=no
18723 rm -f conftest.err conftest.$ac_ext
18724 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18725 echo "${ECHO_T}$ac_header_preproc" >&6; }
18727 # So? What about this header?
18728 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18730 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18731 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18732 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18733 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18734 ac_header_preproc=yes
18737 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18738 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18739 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18740 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18741 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18742 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18743 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18744 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18745 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18746 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18747 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18748 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18752 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18753 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18754 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18755 echo $ECHO_N "(cached
) $ECHO_C" >&6
18757 eval "$as_ac_Header=\
$ac_header_preproc"
18759 ac_res=`eval echo '${'$as_ac_Header'}'`
18760 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18761 echo "${ECHO_T}$ac_res" >&6; }
18764 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18765 cat >>confdefs.h <<_ACEOF
18766 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18776 for ac_header in nlist.h
18778 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18779 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18780 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18781 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18782 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18783 echo $ECHO_N "(cached
) $ECHO_C" >&6
18785 ac_res=`eval echo '${'$as_ac_Header'}'`
18786 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18787 echo "${ECHO_T}$ac_res" >&6; }
18789 # Is the header compilable?
18790 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18791 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18792 cat >conftest.$ac_ext <<_ACEOF
18795 cat confdefs.h >>conftest.$ac_ext
18796 cat >>conftest.$ac_ext <<_ACEOF
18797 /* end confdefs.h. */
18798 $ac_includes_default
18799 #include <$ac_header>
18801 rm -f conftest.$ac_objext
18802 if { (ac_try="$ac_compile"
18803 case "(($ac_try" in
18804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18805 *) ac_try_echo=$ac_try;;
18807 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18808 (eval "$ac_compile") 2>conftest.er1
18810 grep -v '^ *+' conftest.er1 >conftest.err
18812 cat conftest.err >&5
18813 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18814 (exit $ac_status); } && {
18815 test -z "$ac_c_werror_flag" ||
18816 test ! -s conftest.err
18817 } && test -s conftest.$ac_objext; then
18818 ac_header_compiler=yes
18820 echo "$as_me: failed program was
:" >&5
18821 sed 's/^/| /' conftest.$ac_ext >&5
18823 ac_header_compiler=no
18826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18827 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18828 echo "${ECHO_T}$ac_header_compiler" >&6; }
18830 # Is the header present?
18831 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18832 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18833 cat >conftest.$ac_ext <<_ACEOF
18836 cat confdefs.h >>conftest.$ac_ext
18837 cat >>conftest.$ac_ext <<_ACEOF
18838 /* end confdefs.h. */
18839 #include <$ac_header>
18841 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18842 case "(($ac_try" in
18843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18844 *) ac_try_echo=$ac_try;;
18846 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18847 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18849 grep -v '^ *+' conftest.er1 >conftest.err
18851 cat conftest.err >&5
18852 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18853 (exit $ac_status); } >/dev/null && {
18854 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18855 test ! -s conftest.err
18857 ac_header_preproc=yes
18859 echo "$as_me: failed program was
:" >&5
18860 sed 's/^/| /' conftest.$ac_ext >&5
18862 ac_header_preproc=no
18865 rm -f conftest.err conftest.$ac_ext
18866 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18867 echo "${ECHO_T}$ac_header_preproc" >&6; }
18869 # So? What about this header?
18870 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18872 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18873 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18874 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18875 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18876 ac_header_preproc=yes
18879 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18880 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18881 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18882 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18883 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18884 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18885 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18886 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18887 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18888 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18889 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18890 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18894 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18895 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18896 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18897 echo $ECHO_N "(cached
) $ECHO_C" >&6
18899 eval "$as_ac_Header=\
$ac_header_preproc"
18901 ac_res=`eval echo '${'$as_ac_Header'}'`
18902 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18903 echo "${ECHO_T}$ac_res" >&6; }
18906 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18907 cat >>confdefs.h <<_ACEOF
18908 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18910 { echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
18911 echo $ECHO_N "checking
for struct nlist.n_un.n_name...
$ECHO_C" >&6; }
18912 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18913 echo $ECHO_N "(cached
) $ECHO_C" >&6
18915 cat >conftest.$ac_ext <<_ACEOF
18918 cat confdefs.h >>conftest.$ac_ext
18919 cat >>conftest.$ac_ext <<_ACEOF
18920 /* end confdefs.h. */
18926 static struct nlist ac_aggr;
18927 if (ac_aggr.n_un.n_name)
18933 rm -f conftest.$ac_objext
18934 if { (ac_try="$ac_compile"
18935 case "(($ac_try" in
18936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18937 *) ac_try_echo=$ac_try;;
18939 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18940 (eval "$ac_compile") 2>conftest.er1
18942 grep -v '^ *+' conftest.er1 >conftest.err
18944 cat conftest.err >&5
18945 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18946 (exit $ac_status); } && {
18947 test -z "$ac_c_werror_flag" ||
18948 test ! -s conftest.err
18949 } && test -s conftest.$ac_objext; then
18950 ac_cv_member_struct_nlist_n_un_n_name=yes
18952 echo "$as_me: failed program was
:" >&5
18953 sed 's/^/| /' conftest.$ac_ext >&5
18955 cat >conftest.$ac_ext <<_ACEOF
18958 cat confdefs.h >>conftest.$ac_ext
18959 cat >>conftest.$ac_ext <<_ACEOF
18960 /* end confdefs.h. */
18966 static struct nlist ac_aggr;
18967 if (sizeof ac_aggr.n_un.n_name)
18973 rm -f conftest.$ac_objext
18974 if { (ac_try="$ac_compile"
18975 case "(($ac_try" in
18976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18977 *) ac_try_echo=$ac_try;;
18979 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18980 (eval "$ac_compile") 2>conftest.er1
18982 grep -v '^ *+' conftest.er1 >conftest.err
18984 cat conftest.err >&5
18985 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18986 (exit $ac_status); } && {
18987 test -z "$ac_c_werror_flag" ||
18988 test ! -s conftest.err
18989 } && test -s conftest.$ac_objext; then
18990 ac_cv_member_struct_nlist_n_un_n_name=yes
18992 echo "$as_me: failed program was
:" >&5
18993 sed 's/^/| /' conftest.$ac_ext >&5
18995 ac_cv_member_struct_nlist_n_un_n_name=no
18998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19003 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
19004 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
19005 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
19007 cat >>confdefs.h <<_ACEOF
19008 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
19012 cat >>confdefs.h <<\_ACEOF
19013 #define NLIST_NAME_UNION 1
19027 # Some definitions of getloadavg require that the program be installed setgid.
19028 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
19029 echo $ECHO_N "checking whether getloadavg requires setgid...
$ECHO_C" >&6; }
19030 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
19031 echo $ECHO_N "(cached
) $ECHO_C" >&6
19033 cat >conftest.$ac_ext <<_ACEOF
19036 cat confdefs.h >>conftest.$ac_ext
19037 cat >>conftest.$ac_ext <<_ACEOF
19038 /* end confdefs.h. */
19039 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
19040 #ifdef LDAV_PRIVILEGED
19041 Yowza Am I SETGID yet
19044 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
19045 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
19046 ac_cv_func_getloadavg_setgid=yes
19048 ac_cv_func_getloadavg_setgid=no
19053 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
19054 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
19055 if test $ac_cv_func_getloadavg_setgid = yes; then
19058 cat >>confdefs.h <<\_ACEOF
19059 #define GETLOADAVG_PRIVILEGED 1
19066 if test $ac_cv_func_getloadavg_setgid = yes; then
19067 { echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
19068 echo $ECHO_N "checking group of
/dev
/kmem...
$ECHO_C" >&6; }
19069 if test "${ac_cv_group_kmem+set}" = set; then
19070 echo $ECHO_N "(cached
) $ECHO_C" >&6
19072 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
19073 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
19074 # If we got an error (system does not support symlinks), try without -L.
19075 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
19076 ac_cv_group_kmem=`echo $ac_ls_output \
19077 | sed -ne 's/[ ][ ]*/ /g;
19078 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
19082 { echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
19083 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
19084 KMEM_GROUP=$ac_cv_group_kmem
19086 if test "x
$ac_save_LIBS" = x; then
19087 GETLOADAVG_LIBS=$LIBS
19089 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s
!$ac_save_LIBS!!"`
19095 { echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
19096 echo $ECHO_N "checking
for _LARGEFILE_SOURCE value needed
for large files...
$ECHO_C" >&6; }
19097 if test "${ac_cv_sys_largefile_source+set}" = set; then
19098 echo $ECHO_N "(cached
) $ECHO_C" >&6
19101 cat >conftest.$ac_ext <<_ACEOF
19104 cat confdefs.h >>conftest.$ac_ext
19105 cat >>conftest.$ac_ext <<_ACEOF
19106 /* end confdefs.h. */
19107 #include <sys/types.h> /* for off_t */
19112 int (*fp) (FILE *, off_t, int) = fseeko;
19113 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19118 rm -f conftest.$ac_objext conftest$ac_exeext
19119 if { (ac_try="$ac_link"
19120 case "(($ac_try" in
19121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19122 *) ac_try_echo=$ac_try;;
19124 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19125 (eval "$ac_link") 2>conftest.er1
19127 grep -v '^ *+' conftest.er1 >conftest.err
19129 cat conftest.err >&5
19130 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19131 (exit $ac_status); } && {
19132 test -z "$ac_c_werror_flag" ||
19133 test ! -s conftest.err
19134 } && test -s conftest$ac_exeext &&
19135 $as_test_x conftest$ac_exeext; then
19136 ac_cv_sys_largefile_source=no; break
19138 echo "$as_me: failed program was
:" >&5
19139 sed 's/^/| /' conftest.$ac_ext >&5
19144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19145 conftest$ac_exeext conftest.$ac_ext
19146 cat >conftest.$ac_ext <<_ACEOF
19149 cat confdefs.h >>conftest.$ac_ext
19150 cat >>conftest.$ac_ext <<_ACEOF
19151 /* end confdefs.h. */
19152 #define _LARGEFILE_SOURCE 1
19153 #include <sys/types.h> /* for off_t */
19158 int (*fp) (FILE *, off_t, int) = fseeko;
19159 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19164 rm -f conftest.$ac_objext conftest$ac_exeext
19165 if { (ac_try="$ac_link"
19166 case "(($ac_try" in
19167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19168 *) ac_try_echo=$ac_try;;
19170 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19171 (eval "$ac_link") 2>conftest.er1
19173 grep -v '^ *+' conftest.er1 >conftest.err
19175 cat conftest.err >&5
19176 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19177 (exit $ac_status); } && {
19178 test -z "$ac_c_werror_flag" ||
19179 test ! -s conftest.err
19180 } && test -s conftest$ac_exeext &&
19181 $as_test_x conftest$ac_exeext; then
19182 ac_cv_sys_largefile_source=1; break
19184 echo "$as_me: failed program was
:" >&5
19185 sed 's/^/| /' conftest.$ac_ext >&5
19190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19191 conftest$ac_exeext conftest.$ac_ext
19192 ac_cv_sys_largefile_source=unknown
19196 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
19197 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
19198 case $ac_cv_sys_largefile_source in #(
19201 cat >>confdefs.h <<_ACEOF
19202 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19208 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19209 # in glibc 2.1.3, but that breaks too many other things.
19210 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19211 if test $ac_cv_sys_largefile_source != unknown; then
19213 cat >>confdefs.h <<\_ACEOF
19214 #define HAVE_FSEEKO 1
19220 # Configure getopt.
19221 # getopt.m4 serial 10
19223 # The getopt module assume you want GNU getopt, with getopt_long etc,
19224 # rather than vanilla POSIX getopt. This means your your code should
19225 # always include <getopt.h> for the getopt prototypes.
19237 # Prerequisites of lib/getopt*.
19244 for ac_header in getopt.h
19246 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
19247 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19248 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
19249 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
19250 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19251 echo $ECHO_N "(cached
) $ECHO_C" >&6
19253 ac_res=`eval echo '${'$as_ac_Header'}'`
19254 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19255 echo "${ECHO_T}$ac_res" >&6; }
19257 # Is the header compilable?
19258 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
19259 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
19260 cat >conftest.$ac_ext <<_ACEOF
19263 cat confdefs.h >>conftest.$ac_ext
19264 cat >>conftest.$ac_ext <<_ACEOF
19265 /* end confdefs.h. */
19266 $ac_includes_default
19267 #include <$ac_header>
19269 rm -f conftest.$ac_objext
19270 if { (ac_try="$ac_compile"
19271 case "(($ac_try" in
19272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19273 *) ac_try_echo=$ac_try;;
19275 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19276 (eval "$ac_compile") 2>conftest.er1
19278 grep -v '^ *+' conftest.er1 >conftest.err
19280 cat conftest.err >&5
19281 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19282 (exit $ac_status); } && {
19283 test -z "$ac_c_werror_flag" ||
19284 test ! -s conftest.err
19285 } && test -s conftest.$ac_objext; then
19286 ac_header_compiler=yes
19288 echo "$as_me: failed program was
:" >&5
19289 sed 's/^/| /' conftest.$ac_ext >&5
19291 ac_header_compiler=no
19294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19295 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19296 echo "${ECHO_T}$ac_header_compiler" >&6; }
19298 # Is the header present?
19299 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
19300 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
19301 cat >conftest.$ac_ext <<_ACEOF
19304 cat confdefs.h >>conftest.$ac_ext
19305 cat >>conftest.$ac_ext <<_ACEOF
19306 /* end confdefs.h. */
19307 #include <$ac_header>
19309 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19310 case "(($ac_try" in
19311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19312 *) ac_try_echo=$ac_try;;
19314 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19315 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19317 grep -v '^ *+' conftest.er1 >conftest.err
19319 cat conftest.err >&5
19320 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19321 (exit $ac_status); } >/dev/null && {
19322 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19323 test ! -s conftest.err
19325 ac_header_preproc=yes
19327 echo "$as_me: failed program was
:" >&5
19328 sed 's/^/| /' conftest.$ac_ext >&5
19330 ac_header_preproc=no
19333 rm -f conftest.err conftest.$ac_ext
19334 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19335 echo "${ECHO_T}$ac_header_preproc" >&6; }
19337 # So? What about this header?
19338 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19340 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
19341 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19342 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
19343 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
19344 ac_header_preproc=yes
19347 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
19348 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
19349 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
19350 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
19351 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
19352 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
19353 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
19354 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
19355 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
19356 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
19357 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
19358 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
19362 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
19363 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
19364 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19365 echo $ECHO_N "(cached
) $ECHO_C" >&6
19367 eval "$as_ac_Header=\
$ac_header_preproc"
19369 ac_res=`eval echo '${'$as_ac_Header'}'`
19370 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19371 echo "${ECHO_T}$ac_res" >&6; }
19374 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19375 cat >>confdefs.h <<_ACEOF
19376 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
19385 if test -z "$GETOPT_H"; then
19387 for ac_func in getopt_long_only
19389 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19390 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19391 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19392 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19393 echo $ECHO_N "(cached
) $ECHO_C" >&6
19395 cat >conftest.$ac_ext <<_ACEOF
19398 cat confdefs.h >>conftest.$ac_ext
19399 cat >>conftest.$ac_ext <<_ACEOF
19400 /* end confdefs.h. */
19401 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19402 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19403 #define $ac_func innocuous_$ac_func
19405 /* System header to define __stub macros and hopefully few prototypes,
19406 which can conflict with char $ac_func (); below.
19407 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19408 <limits.h> exists even on freestanding compilers. */
19411 # include <limits.h>
19413 # include <assert.h>
19418 /* Override any GCC internal prototype to avoid an error.
19419 Use char because int might match the return type of a GCC
19420 builtin and then its argument prototype would still apply. */
19425 /* The GNU C library defines this for functions which it implements
19426 to always fail with ENOSYS. Some functions are actually named
19427 something starting with __ and the normal name is an alias. */
19428 #if defined __stub_$ac_func || defined __stub___$ac_func
19435 return $ac_func ();
19440 rm -f conftest.$ac_objext conftest$ac_exeext
19441 if { (ac_try="$ac_link"
19442 case "(($ac_try" in
19443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19444 *) ac_try_echo=$ac_try;;
19446 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19447 (eval "$ac_link") 2>conftest.er1
19449 grep -v '^ *+' conftest.er1 >conftest.err
19451 cat conftest.err >&5
19452 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19453 (exit $ac_status); } && {
19454 test -z "$ac_c_werror_flag" ||
19455 test ! -s conftest.err
19456 } && test -s conftest$ac_exeext &&
19457 $as_test_x conftest$ac_exeext; then
19458 eval "$as_ac_var=yes"
19460 echo "$as_me: failed program was
:" >&5
19461 sed 's/^/| /' conftest.$ac_ext >&5
19463 eval "$as_ac_var=no
"
19466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19467 conftest$ac_exeext conftest.$ac_ext
19469 ac_res=`eval echo '${'$as_ac_var'}'`
19470 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19471 echo "${ECHO_T}$ac_res" >&6; }
19472 if test `eval echo '${'$as_ac_var'}'` = yes; then
19473 cat >>confdefs.h <<_ACEOF
19474 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19484 if test -z "$GETOPT_H"; then
19485 { echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
19486 echo $ECHO_N "checking whether optreset is declared...
$ECHO_C" >&6; }
19487 if test "${ac_cv_have_decl_optreset+set}" = set; then
19488 echo $ECHO_N "(cached
) $ECHO_C" >&6
19490 cat >conftest.$ac_ext <<_ACEOF
19493 cat confdefs.h >>conftest.$ac_ext
19494 cat >>conftest.$ac_ext <<_ACEOF
19495 /* end confdefs.h. */
19496 #include <getopt.h>
19509 rm -f conftest.$ac_objext
19510 if { (ac_try="$ac_compile"
19511 case "(($ac_try" in
19512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19513 *) ac_try_echo=$ac_try;;
19515 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19516 (eval "$ac_compile") 2>conftest.er1
19518 grep -v '^ *+' conftest.er1 >conftest.err
19520 cat conftest.err >&5
19521 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19522 (exit $ac_status); } && {
19523 test -z "$ac_c_werror_flag" ||
19524 test ! -s conftest.err
19525 } && test -s conftest.$ac_objext; then
19526 ac_cv_have_decl_optreset=yes
19528 echo "$as_me: failed program was
:" >&5
19529 sed 's/^/| /' conftest.$ac_ext >&5
19531 ac_cv_have_decl_optreset=no
19534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19536 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
19537 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
19538 if test $ac_cv_have_decl_optreset = yes; then
19544 if test -z "$GETOPT_H"; then
19545 { echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
19546 echo $ECHO_N "checking
for working GNU getopt
function...
$ECHO_C" >&6; }
19547 if test "${gl_cv_func_gnu_getopt+set}" = set; then
19548 echo $ECHO_N "(cached
) $ECHO_C" >&6
19550 if test "$cross_compiling" = yes; then
19551 { echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
19552 echo $ECHO_N "checking whether getopt_clip is declared...
$ECHO_C" >&6; }
19553 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
19554 echo $ECHO_N "(cached
) $ECHO_C" >&6
19556 cat >conftest.$ac_ext <<_ACEOF
19559 cat confdefs.h >>conftest.$ac_ext
19560 cat >>conftest.$ac_ext <<_ACEOF
19561 /* end confdefs.h. */
19562 #include <getopt.h>
19567 #ifndef getopt_clip
19568 (void) getopt_clip;
19575 rm -f conftest.$ac_objext
19576 if { (ac_try="$ac_compile"
19577 case "(($ac_try" in
19578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19579 *) ac_try_echo=$ac_try;;
19581 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19582 (eval "$ac_compile") 2>conftest.er1
19584 grep -v '^ *+' conftest.er1 >conftest.err
19586 cat conftest.err >&5
19587 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19588 (exit $ac_status); } && {
19589 test -z "$ac_c_werror_flag" ||
19590 test ! -s conftest.err
19591 } && test -s conftest.$ac_objext; then
19592 ac_cv_have_decl_getopt_clip=yes
19594 echo "$as_me: failed program was
:" >&5
19595 sed 's/^/| /' conftest.$ac_ext >&5
19597 ac_cv_have_decl_getopt_clip=no
19600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19602 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
19603 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19604 if test $ac_cv_have_decl_getopt_clip = yes; then
19605 gl_cv_func_gnu_getopt=no
19607 gl_cv_func_gnu_getopt=yes
19611 cat >conftest.$ac_ext <<_ACEOF
19614 cat confdefs.h >>conftest.$ac_ext
19615 cat >>conftest.$ac_ext <<_ACEOF
19616 /* end confdefs.h. */
19617 #include <getopt.h>
19623 myargv[0] = "conftest
";
19626 return getopt (2, myargv, "+a
") != '?';
19632 rm -f conftest$ac_exeext
19633 if { (ac_try="$ac_link"
19634 case "(($ac_try" in
19635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19636 *) ac_try_echo=$ac_try;;
19638 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19639 (eval "$ac_link") 2>&5
19641 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19642 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19643 { (case "(($ac_try" in
19644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19645 *) ac_try_echo=$ac_try;;
19647 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19648 (eval "$ac_try") 2>&5
19650 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19651 (exit $ac_status); }; }; then
19652 gl_cv_func_gnu_getopt=yes
19654 echo "$as_me: program exited with status
$ac_status" >&5
19655 echo "$as_me: failed program was
:" >&5
19656 sed 's/^/| /' conftest.$ac_ext >&5
19658 ( exit $ac_status )
19659 gl_cv_func_gnu_getopt=no
19661 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19666 { echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
19667 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19668 if test "$gl_cv_func_gnu_getopt" = "no
"; then
19675 if test -n "$GETOPT_H"; then
19680 cat >>confdefs.h <<\_ACEOF
19681 #define __GETOPT_PREFIX rpl_
19687 GETOPTOBJS='getopt.o getopt1.o'
19694 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
19695 echo $ECHO_N "checking whether getpgrp requires zero arguments...
$ECHO_C" >&6; }
19696 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19697 echo $ECHO_N "(cached
) $ECHO_C" >&6
19699 # Use it with a single arg.
19700 cat >conftest.$ac_ext <<_ACEOF
19703 cat confdefs.h >>conftest.$ac_ext
19704 cat >>conftest.$ac_ext <<_ACEOF
19705 /* end confdefs.h. */
19706 $ac_includes_default
19715 rm -f conftest.$ac_objext
19716 if { (ac_try="$ac_compile"
19717 case "(($ac_try" in
19718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19719 *) ac_try_echo=$ac_try;;
19721 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19722 (eval "$ac_compile") 2>conftest.er1
19724 grep -v '^ *+' conftest.er1 >conftest.err
19726 cat conftest.err >&5
19727 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19728 (exit $ac_status); } && {
19729 test -z "$ac_c_werror_flag" ||
19730 test ! -s conftest.err
19731 } && test -s conftest.$ac_objext; then
19732 ac_cv_func_getpgrp_void=no
19734 echo "$as_me: failed program was
:" >&5
19735 sed 's/^/| /' conftest.$ac_ext >&5
19737 ac_cv_func_getpgrp_void=yes
19740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19743 { echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
19744 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19745 if test $ac_cv_func_getpgrp_void = yes; then
19747 cat >>confdefs.h <<\_ACEOF
19748 #define GETPGRP_VOID 1
19755 for ac_func in strftime
19757 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19758 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19759 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19760 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19761 echo $ECHO_N "(cached
) $ECHO_C" >&6
19763 cat >conftest.$ac_ext <<_ACEOF
19766 cat confdefs.h >>conftest.$ac_ext
19767 cat >>conftest.$ac_ext <<_ACEOF
19768 /* end confdefs.h. */
19769 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19770 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19771 #define $ac_func innocuous_$ac_func
19773 /* System header to define __stub macros and hopefully few prototypes,
19774 which can conflict with char $ac_func (); below.
19775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19776 <limits.h> exists even on freestanding compilers. */
19779 # include <limits.h>
19781 # include <assert.h>
19786 /* Override any GCC internal prototype to avoid an error.
19787 Use char because int might match the return type of a GCC
19788 builtin and then its argument prototype would still apply. */
19793 /* The GNU C library defines this for functions which it implements
19794 to always fail with ENOSYS. Some functions are actually named
19795 something starting with __ and the normal name is an alias. */
19796 #if defined __stub_$ac_func || defined __stub___$ac_func
19803 return $ac_func ();
19808 rm -f conftest.$ac_objext conftest$ac_exeext
19809 if { (ac_try="$ac_link"
19810 case "(($ac_try" in
19811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19812 *) ac_try_echo=$ac_try;;
19814 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19815 (eval "$ac_link") 2>conftest.er1
19817 grep -v '^ *+' conftest.er1 >conftest.err
19819 cat conftest.err >&5
19820 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19821 (exit $ac_status); } && {
19822 test -z "$ac_c_werror_flag" ||
19823 test ! -s conftest.err
19824 } && test -s conftest$ac_exeext &&
19825 $as_test_x conftest$ac_exeext; then
19826 eval "$as_ac_var=yes"
19828 echo "$as_me: failed program was
:" >&5
19829 sed 's/^/| /' conftest.$ac_ext >&5
19831 eval "$as_ac_var=no
"
19834 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19835 conftest$ac_exeext conftest.$ac_ext
19837 ac_res=`eval echo '${'$as_ac_var'}'`
19838 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19839 echo "${ECHO_T}$ac_res" >&6; }
19840 if test `eval echo '${'$as_ac_var'}'` = yes; then
19841 cat >>confdefs.h <<_ACEOF
19842 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19846 # strftime is in -lintl on SCO UNIX.
19847 { echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
19848 echo $ECHO_N "checking
for strftime
in -lintl...
$ECHO_C" >&6; }
19849 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19850 echo $ECHO_N "(cached
) $ECHO_C" >&6
19852 ac_check_lib_save_LIBS=$LIBS
19853 LIBS="-lintl $LIBS"
19854 cat >conftest.$ac_ext <<_ACEOF
19857 cat confdefs.h >>conftest.$ac_ext
19858 cat >>conftest.$ac_ext <<_ACEOF
19859 /* end confdefs.h. */
19861 /* Override any GCC internal prototype to avoid an error.
19862 Use char because int might match the return type of a GCC
19863 builtin and then its argument prototype would still apply. */
19871 return strftime ();
19876 rm -f conftest.$ac_objext conftest$ac_exeext
19877 if { (ac_try="$ac_link"
19878 case "(($ac_try" in
19879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19880 *) ac_try_echo=$ac_try;;
19882 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19883 (eval "$ac_link") 2>conftest.er1
19885 grep -v '^ *+' conftest.er1 >conftest.err
19887 cat conftest.err >&5
19888 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19889 (exit $ac_status); } && {
19890 test -z "$ac_c_werror_flag" ||
19891 test ! -s conftest.err
19892 } && test -s conftest$ac_exeext &&
19893 $as_test_x conftest$ac_exeext; then
19894 ac_cv_lib_intl_strftime=yes
19896 echo "$as_me: failed program was
:" >&5
19897 sed 's/^/| /' conftest.$ac_ext >&5
19899 ac_cv_lib_intl_strftime=no
19902 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19903 conftest$ac_exeext conftest.$ac_ext
19904 LIBS=$ac_check_lib_save_LIBS
19906 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
19907 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19908 if test $ac_cv_lib_intl_strftime = yes; then
19909 cat >>confdefs.h <<\_ACEOF
19910 #define HAVE_STRFTIME 1
19913 LIBS="-lintl $LIBS"
19922 for ac_func in grantpt
19924 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19925 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19926 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19927 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19928 echo $ECHO_N "(cached
) $ECHO_C" >&6
19930 cat >conftest.$ac_ext <<_ACEOF
19933 cat confdefs.h >>conftest.$ac_ext
19934 cat >>conftest.$ac_ext <<_ACEOF
19935 /* end confdefs.h. */
19936 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19937 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19938 #define $ac_func innocuous_$ac_func
19940 /* System header to define __stub macros and hopefully few prototypes,
19941 which can conflict with char $ac_func (); below.
19942 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19943 <limits.h> exists even on freestanding compilers. */
19946 # include <limits.h>
19948 # include <assert.h>
19953 /* Override any GCC internal prototype to avoid an error.
19954 Use char because int might match the return type of a GCC
19955 builtin and then its argument prototype would still apply. */
19960 /* The GNU C library defines this for functions which it implements
19961 to always fail with ENOSYS. Some functions are actually named
19962 something starting with __ and the normal name is an alias. */
19963 #if defined __stub_$ac_func || defined __stub___$ac_func
19970 return $ac_func ();
19975 rm -f conftest.$ac_objext conftest$ac_exeext
19976 if { (ac_try="$ac_link"
19977 case "(($ac_try" in
19978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19979 *) ac_try_echo=$ac_try;;
19981 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19982 (eval "$ac_link") 2>conftest.er1
19984 grep -v '^ *+' conftest.er1 >conftest.err
19986 cat conftest.err >&5
19987 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19988 (exit $ac_status); } && {
19989 test -z "$ac_c_werror_flag" ||
19990 test ! -s conftest.err
19991 } && test -s conftest$ac_exeext &&
19992 $as_test_x conftest$ac_exeext; then
19993 eval "$as_ac_var=yes"
19995 echo "$as_me: failed program was
:" >&5
19996 sed 's/^/| /' conftest.$ac_ext >&5
19998 eval "$as_ac_var=no
"
20001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20002 conftest$ac_exeext conftest.$ac_ext
20004 ac_res=`eval echo '${'$as_ac_var'}'`
20005 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20006 echo "${ECHO_T}$ac_res" >&6; }
20007 if test `eval echo '${'$as_ac_var'}'` = yes; then
20008 cat >>confdefs.h <<_ACEOF
20009 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
20016 # PTY-related GNU extensions.
20018 for ac_func in getpt
20020 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
20021 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
20022 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
20023 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
20024 echo $ECHO_N "(cached
) $ECHO_C" >&6
20026 cat >conftest.$ac_ext <<_ACEOF
20029 cat confdefs.h >>conftest.$ac_ext
20030 cat >>conftest.$ac_ext <<_ACEOF
20031 /* end confdefs.h. */
20032 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20033 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20034 #define $ac_func innocuous_$ac_func
20036 /* System header to define __stub macros and hopefully few prototypes,
20037 which can conflict with char $ac_func (); below.
20038 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20039 <limits.h> exists even on freestanding compilers. */
20042 # include <limits.h>
20044 # include <assert.h>
20049 /* Override any GCC internal prototype to avoid an error.
20050 Use char because int might match the return type of a GCC
20051 builtin and then its argument prototype would still apply. */
20056 /* The GNU C library defines this for functions which it implements
20057 to always fail with ENOSYS. Some functions are actually named
20058 something starting with __ and the normal name is an alias. */
20059 #if defined __stub_$ac_func || defined __stub___$ac_func
20066 return $ac_func ();
20071 rm -f conftest.$ac_objext conftest$ac_exeext
20072 if { (ac_try="$ac_link"
20073 case "(($ac_try" in
20074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20075 *) ac_try_echo=$ac_try;;
20077 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20078 (eval "$ac_link") 2>conftest.er1
20080 grep -v '^ *+' conftest.er1 >conftest.err
20082 cat conftest.err >&5
20083 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20084 (exit $ac_status); } && {
20085 test -z "$ac_c_werror_flag" ||
20086 test ! -s conftest.err
20087 } && test -s conftest$ac_exeext &&
20088 $as_test_x conftest$ac_exeext; then
20089 eval "$as_ac_var=yes"
20091 echo "$as_me: failed program was
:" >&5
20092 sed 's/^/| /' conftest.$ac_ext >&5
20094 eval "$as_ac_var=no
"
20097 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20098 conftest$ac_exeext conftest.$ac_ext
20100 ac_res=`eval echo '${'$as_ac_var'}'`
20101 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20102 echo "${ECHO_T}$ac_res" >&6; }
20103 if test `eval echo '${'$as_ac_var'}'` = yes; then
20104 cat >>confdefs.h <<_ACEOF
20105 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
20112 # Check this now, so that we will NOT find the above functions in ncurses.
20113 # That is because we have not set up to link ncurses in lib-src.
20114 # It's better to believe a function is not available
20115 # than to expect to find it in ncurses.
20117 { echo "$as_me:$LINENO: checking
for tparm
in -lncurses" >&5
20118 echo $ECHO_N "checking
for tparm
in -lncurses...
$ECHO_C" >&6; }
20119 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
20120 echo $ECHO_N "(cached
) $ECHO_C" >&6
20122 ac_check_lib_save_LIBS=$LIBS
20123 LIBS="-lncurses $LIBS"
20124 cat >conftest.$ac_ext <<_ACEOF
20127 cat confdefs.h >>conftest.$ac_ext
20128 cat >>conftest.$ac_ext <<_ACEOF
20129 /* end confdefs.h. */
20131 /* Override any GCC internal prototype to avoid an error.
20132 Use char because int might match the return type of a GCC
20133 builtin and then its argument prototype would still apply. */
20146 rm -f conftest.$ac_objext conftest$ac_exeext
20147 if { (ac_try="$ac_link"
20148 case "(($ac_try" in
20149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20150 *) ac_try_echo=$ac_try;;
20152 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20153 (eval "$ac_link") 2>conftest.er1
20155 grep -v '^ *+' conftest.er1 >conftest.err
20157 cat conftest.err >&5
20158 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20159 (exit $ac_status); } && {
20160 test -z "$ac_c_werror_flag" ||
20161 test ! -s conftest.err
20162 } && test -s conftest$ac_exeext &&
20163 $as_test_x conftest$ac_exeext; then
20164 ac_cv_lib_ncurses_tparm=yes
20166 echo "$as_me: failed program was
:" >&5
20167 sed 's/^/| /' conftest.$ac_ext >&5
20169 ac_cv_lib_ncurses_tparm=no
20172 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20173 conftest$ac_exeext conftest.$ac_ext
20174 LIBS=$ac_check_lib_save_LIBS
20176 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ncurses_tparm" >&5
20177 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
20178 if test $ac_cv_lib_ncurses_tparm = yes; then
20179 cat >>confdefs.h <<_ACEOF
20180 #define HAVE_LIBNCURSES 1
20183 LIBS="-lncurses $LIBS"
20188 # Do we have res_init, for detecting changes in /etc/resolv.conf?
20191 cat >conftest.$ac_ext <<_ACEOF
20194 cat confdefs.h >>conftest.$ac_ext
20195 cat >>conftest.$ac_ext <<_ACEOF
20196 /* end confdefs.h. */
20197 #include <netinet/in.h>
20198 #include <arpa/nameser.h>
20199 #include <resolv.h>
20208 rm -f conftest.$ac_objext conftest$ac_exeext
20209 if { (ac_try="$ac_link"
20210 case "(($ac_try" in
20211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20212 *) ac_try_echo=$ac_try;;
20214 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20215 (eval "$ac_link") 2>conftest.er1
20217 grep -v '^ *+' conftest.er1 >conftest.err
20219 cat conftest.err >&5
20220 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20221 (exit $ac_status); } && {
20222 test -z "$ac_c_werror_flag" ||
20223 test ! -s conftest.err
20224 } && test -s conftest$ac_exeext &&
20225 $as_test_x conftest$ac_exeext; then
20228 echo "$as_me: failed program was
:" >&5
20229 sed 's/^/| /' conftest.$ac_ext >&5
20234 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20235 conftest$ac_exeext conftest.$ac_ext
20236 if test "$have_res_init" = no; then
20238 LIBS="$LIBS -lresolv"
20239 { echo "$as_me:$LINENO: checking
for res_init with
-lresolv" >&5
20240 echo $ECHO_N "checking
for res_init with
-lresolv...
$ECHO_C" >&6; }
20241 cat >conftest.$ac_ext <<_ACEOF
20244 cat confdefs.h >>conftest.$ac_ext
20245 cat >>conftest.$ac_ext <<_ACEOF
20246 /* end confdefs.h. */
20247 #include <netinet/in.h>
20248 #include <arpa/nameser.h>
20249 #include <resolv.h>
20258 rm -f conftest.$ac_objext conftest$ac_exeext
20259 if { (ac_try="$ac_link"
20260 case "(($ac_try" in
20261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20262 *) ac_try_echo=$ac_try;;
20264 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20265 (eval "$ac_link") 2>conftest.er1
20267 grep -v '^ *+' conftest.er1 >conftest.err
20269 cat conftest.err >&5
20270 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20271 (exit $ac_status); } && {
20272 test -z "$ac_c_werror_flag" ||
20273 test ! -s conftest.err
20274 } && test -s conftest$ac_exeext &&
20275 $as_test_x conftest$ac_exeext; then
20278 echo "$as_me: failed program was
:" >&5
20279 sed 's/^/| /' conftest.$ac_ext >&5
20284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20285 conftest$ac_exeext conftest.$ac_ext
20286 { echo "$as_me:$LINENO: result
: $have_res_init" >&5
20287 echo "${ECHO_T}$have_res_init" >&6; }
20288 if test "$have_res_init" = yes ; then
20294 if test "$have_res_init" = yes; then
20296 cat >>confdefs.h <<\_ACEOF
20297 #define HAVE_RES_INIT 1
20302 # Do we need the Hesiod library to provide the support routines?
20303 if test "$with_hesiod" = yes ; then
20304 # Don't set $LIBS here -- see comments above.
20305 { echo "$as_me:$LINENO: checking
for res_send
" >&5
20306 echo $ECHO_N "checking
for res_send...
$ECHO_C" >&6; }
20307 if test "${ac_cv_func_res_send+set}" = set; then
20308 echo $ECHO_N "(cached
) $ECHO_C" >&6
20310 cat >conftest.$ac_ext <<_ACEOF
20313 cat confdefs.h >>conftest.$ac_ext
20314 cat >>conftest.$ac_ext <<_ACEOF
20315 /* end confdefs.h. */
20316 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
20317 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20318 #define res_send innocuous_res_send
20320 /* System header to define __stub macros and hopefully few prototypes,
20321 which can conflict with char res_send (); below.
20322 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20323 <limits.h> exists even on freestanding compilers. */
20326 # include <limits.h>
20328 # include <assert.h>
20333 /* Override any GCC internal prototype to avoid an error.
20334 Use char because int might match the return type of a GCC
20335 builtin and then its argument prototype would still apply. */
20340 /* The GNU C library defines this for functions which it implements
20341 to always fail with ENOSYS. Some functions are actually named
20342 something starting with __ and the normal name is an alias. */
20343 #if defined __stub_res_send || defined __stub___res_send
20350 return res_send ();
20355 rm -f conftest.$ac_objext conftest$ac_exeext
20356 if { (ac_try="$ac_link"
20357 case "(($ac_try" in
20358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20359 *) ac_try_echo=$ac_try;;
20361 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20362 (eval "$ac_link") 2>conftest.er1
20364 grep -v '^ *+' conftest.er1 >conftest.err
20366 cat conftest.err >&5
20367 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20368 (exit $ac_status); } && {
20369 test -z "$ac_c_werror_flag" ||
20370 test ! -s conftest.err
20371 } && test -s conftest$ac_exeext &&
20372 $as_test_x conftest$ac_exeext; then
20373 ac_cv_func_res_send=yes
20375 echo "$as_me: failed program was
:" >&5
20376 sed 's/^/| /' conftest.$ac_ext >&5
20378 ac_cv_func_res_send=no
20381 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20382 conftest$ac_exeext conftest.$ac_ext
20384 { echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
20385 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
20386 if test $ac_cv_func_res_send = yes; then
20389 { echo "$as_me:$LINENO: checking
for __res_send
" >&5
20390 echo $ECHO_N "checking
for __res_send...
$ECHO_C" >&6; }
20391 if test "${ac_cv_func___res_send+set}" = set; then
20392 echo $ECHO_N "(cached
) $ECHO_C" >&6
20394 cat >conftest.$ac_ext <<_ACEOF
20397 cat confdefs.h >>conftest.$ac_ext
20398 cat >>conftest.$ac_ext <<_ACEOF
20399 /* end confdefs.h. */
20400 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
20401 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20402 #define __res_send innocuous___res_send
20404 /* System header to define __stub macros and hopefully few prototypes,
20405 which can conflict with char __res_send (); below.
20406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20407 <limits.h> exists even on freestanding compilers. */
20410 # include <limits.h>
20412 # include <assert.h>
20417 /* Override any GCC internal prototype to avoid an error.
20418 Use char because int might match the return type of a GCC
20419 builtin and then its argument prototype would still apply. */
20423 char __res_send ();
20424 /* The GNU C library defines this for functions which it implements
20425 to always fail with ENOSYS. Some functions are actually named
20426 something starting with __ and the normal name is an alias. */
20427 #if defined __stub___res_send || defined __stub_____res_send
20434 return __res_send ();
20439 rm -f conftest.$ac_objext conftest$ac_exeext
20440 if { (ac_try="$ac_link"
20441 case "(($ac_try" in
20442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20443 *) ac_try_echo=$ac_try;;
20445 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20446 (eval "$ac_link") 2>conftest.er1
20448 grep -v '^ *+' conftest.er1 >conftest.err
20450 cat conftest.err >&5
20451 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20452 (exit $ac_status); } && {
20453 test -z "$ac_c_werror_flag" ||
20454 test ! -s conftest.err
20455 } && test -s conftest$ac_exeext &&
20456 $as_test_x conftest$ac_exeext; then
20457 ac_cv_func___res_send=yes
20459 echo "$as_me: failed program was
:" >&5
20460 sed 's/^/| /' conftest.$ac_ext >&5
20462 ac_cv_func___res_send=no
20465 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20466 conftest$ac_exeext conftest.$ac_ext
20468 { echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
20469 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
20470 if test $ac_cv_func___res_send = yes; then
20473 { echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
20474 echo $ECHO_N "checking
for res_send
in -lresolv...
$ECHO_C" >&6; }
20475 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
20476 echo $ECHO_N "(cached
) $ECHO_C" >&6
20478 ac_check_lib_save_LIBS=$LIBS
20479 LIBS="-lresolv $LIBS"
20480 cat >conftest.$ac_ext <<_ACEOF
20483 cat confdefs.h >>conftest.$ac_ext
20484 cat >>conftest.$ac_ext <<_ACEOF
20485 /* end confdefs.h. */
20487 /* Override any GCC internal prototype to avoid an error.
20488 Use char because int might match the return type of a GCC
20489 builtin and then its argument prototype would still apply. */
20497 return res_send ();
20502 rm -f conftest.$ac_objext conftest$ac_exeext
20503 if { (ac_try="$ac_link"
20504 case "(($ac_try" in
20505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20506 *) ac_try_echo=$ac_try;;
20508 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20509 (eval "$ac_link") 2>conftest.er1
20511 grep -v '^ *+' conftest.er1 >conftest.err
20513 cat conftest.err >&5
20514 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20515 (exit $ac_status); } && {
20516 test -z "$ac_c_werror_flag" ||
20517 test ! -s conftest.err
20518 } && test -s conftest$ac_exeext &&
20519 $as_test_x conftest$ac_exeext; then
20520 ac_cv_lib_resolv_res_send=yes
20522 echo "$as_me: failed program was
:" >&5
20523 sed 's/^/| /' conftest.$ac_ext >&5
20525 ac_cv_lib_resolv_res_send=no
20528 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20529 conftest$ac_exeext conftest.$ac_ext
20530 LIBS=$ac_check_lib_save_LIBS
20532 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
20533 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
20534 if test $ac_cv_lib_resolv_res_send = yes; then
20537 { echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
20538 echo $ECHO_N "checking
for __res_send
in -lresolv...
$ECHO_C" >&6; }
20539 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
20540 echo $ECHO_N "(cached
) $ECHO_C" >&6
20542 ac_check_lib_save_LIBS=$LIBS
20543 LIBS="-lresolv $LIBS"
20544 cat >conftest.$ac_ext <<_ACEOF
20547 cat confdefs.h >>conftest.$ac_ext
20548 cat >>conftest.$ac_ext <<_ACEOF
20549 /* end confdefs.h. */
20551 /* Override any GCC internal prototype to avoid an error.
20552 Use char because int might match the return type of a GCC
20553 builtin and then its argument prototype would still apply. */
20557 char __res_send ();
20561 return __res_send ();
20566 rm -f conftest.$ac_objext conftest$ac_exeext
20567 if { (ac_try="$ac_link"
20568 case "(($ac_try" in
20569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20570 *) ac_try_echo=$ac_try;;
20572 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20573 (eval "$ac_link") 2>conftest.er1
20575 grep -v '^ *+' conftest.er1 >conftest.err
20577 cat conftest.err >&5
20578 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20579 (exit $ac_status); } && {
20580 test -z "$ac_c_werror_flag" ||
20581 test ! -s conftest.err
20582 } && test -s conftest$ac_exeext &&
20583 $as_test_x conftest$ac_exeext; then
20584 ac_cv_lib_resolv___res_send=yes
20586 echo "$as_me: failed program was
:" >&5
20587 sed 's/^/| /' conftest.$ac_ext >&5
20589 ac_cv_lib_resolv___res_send=no
20592 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20593 conftest$ac_exeext conftest.$ac_ext
20594 LIBS=$ac_check_lib_save_LIBS
20596 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
20597 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
20598 if test $ac_cv_lib_resolv___res_send = yes; then
20608 if test "$resolv" = yes ; then
20613 { echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
20614 echo $ECHO_N "checking
for hes_getmailhost...
$ECHO_C" >&6; }
20615 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
20616 echo $ECHO_N "(cached
) $ECHO_C" >&6
20618 cat >conftest.$ac_ext <<_ACEOF
20621 cat confdefs.h >>conftest.$ac_ext
20622 cat >>conftest.$ac_ext <<_ACEOF
20623 /* end confdefs.h. */
20624 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
20625 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20626 #define hes_getmailhost innocuous_hes_getmailhost
20628 /* System header to define __stub macros and hopefully few prototypes,
20629 which can conflict with char hes_getmailhost (); below.
20630 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20631 <limits.h> exists even on freestanding compilers. */
20634 # include <limits.h>
20636 # include <assert.h>
20639 #undef hes_getmailhost
20641 /* Override any GCC internal prototype to avoid an error.
20642 Use char because int might match the return type of a GCC
20643 builtin and then its argument prototype would still apply. */
20647 char hes_getmailhost ();
20648 /* The GNU C library defines this for functions which it implements
20649 to always fail with ENOSYS. Some functions are actually named
20650 something starting with __ and the normal name is an alias. */
20651 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
20658 return hes_getmailhost ();
20663 rm -f conftest.$ac_objext conftest$ac_exeext
20664 if { (ac_try="$ac_link"
20665 case "(($ac_try" in
20666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20667 *) ac_try_echo=$ac_try;;
20669 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20670 (eval "$ac_link") 2>conftest.er1
20672 grep -v '^ *+' conftest.er1 >conftest.err
20674 cat conftest.err >&5
20675 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20676 (exit $ac_status); } && {
20677 test -z "$ac_c_werror_flag" ||
20678 test ! -s conftest.err
20679 } && test -s conftest$ac_exeext &&
20680 $as_test_x conftest$ac_exeext; then
20681 ac_cv_func_hes_getmailhost=yes
20683 echo "$as_me: failed program was
:" >&5
20684 sed 's/^/| /' conftest.$ac_ext >&5
20686 ac_cv_func_hes_getmailhost=no
20689 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20690 conftest$ac_exeext conftest.$ac_ext
20692 { echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
20693 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20694 if test $ac_cv_func_hes_getmailhost = yes; then
20697 { echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
20698 echo $ECHO_N "checking
for hes_getmailhost
in -lhesiod...
$ECHO_C" >&6; }
20699 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20700 echo $ECHO_N "(cached
) $ECHO_C" >&6
20702 ac_check_lib_save_LIBS=$LIBS
20703 LIBS="-lhesiod $RESOLVLIB $LIBS"
20704 cat >conftest.$ac_ext <<_ACEOF
20707 cat confdefs.h >>conftest.$ac_ext
20708 cat >>conftest.$ac_ext <<_ACEOF
20709 /* end confdefs.h. */
20711 /* Override any GCC internal prototype to avoid an error.
20712 Use char because int might match the return type of a GCC
20713 builtin and then its argument prototype would still apply. */
20717 char hes_getmailhost ();
20721 return hes_getmailhost ();
20726 rm -f conftest.$ac_objext conftest$ac_exeext
20727 if { (ac_try="$ac_link"
20728 case "(($ac_try" in
20729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20730 *) ac_try_echo=$ac_try;;
20732 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20733 (eval "$ac_link") 2>conftest.er1
20735 grep -v '^ *+' conftest.er1 >conftest.err
20737 cat conftest.err >&5
20738 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20739 (exit $ac_status); } && {
20740 test -z "$ac_c_werror_flag" ||
20741 test ! -s conftest.err
20742 } && test -s conftest$ac_exeext &&
20743 $as_test_x conftest$ac_exeext; then
20744 ac_cv_lib_hesiod_hes_getmailhost=yes
20746 echo "$as_me: failed program was
:" >&5
20747 sed 's/^/| /' conftest.$ac_ext >&5
20749 ac_cv_lib_hesiod_hes_getmailhost=no
20752 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20753 conftest$ac_exeext conftest.$ac_ext
20754 LIBS=$ac_check_lib_save_LIBS
20756 { echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20757 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20758 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20760 cat >>confdefs.h <<\_ACEOF
20761 #define HAVE_LIBHESIOD 1
20772 # Do we need libresolv (due to res_init or Hesiod)?
20773 if test "$resolv" = yes ; then
20775 cat >>confdefs.h <<\_ACEOF
20776 #define HAVE_LIBRESOLV 1
20781 # These tell us which Kerberos-related libraries to use.
20782 if test "${with_kerberos+set}" = set; then
20784 { echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
20785 echo $ECHO_N "checking
for com_err
in -lcom_err...
$ECHO_C" >&6; }
20786 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20787 echo $ECHO_N "(cached
) $ECHO_C" >&6
20789 ac_check_lib_save_LIBS=$LIBS
20790 LIBS="-lcom_err $LIBS"
20791 cat >conftest.$ac_ext <<_ACEOF
20794 cat confdefs.h >>conftest.$ac_ext
20795 cat >>conftest.$ac_ext <<_ACEOF
20796 /* end confdefs.h. */
20798 /* Override any GCC internal prototype to avoid an error.
20799 Use char because int might match the return type of a GCC
20800 builtin and then its argument prototype would still apply. */
20813 rm -f conftest.$ac_objext conftest$ac_exeext
20814 if { (ac_try="$ac_link"
20815 case "(($ac_try" in
20816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20817 *) ac_try_echo=$ac_try;;
20819 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20820 (eval "$ac_link") 2>conftest.er1
20822 grep -v '^ *+' conftest.er1 >conftest.err
20824 cat conftest.err >&5
20825 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20826 (exit $ac_status); } && {
20827 test -z "$ac_c_werror_flag" ||
20828 test ! -s conftest.err
20829 } && test -s conftest$ac_exeext &&
20830 $as_test_x conftest$ac_exeext; then
20831 ac_cv_lib_com_err_com_err=yes
20833 echo "$as_me: failed program was
:" >&5
20834 sed 's/^/| /' conftest.$ac_ext >&5
20836 ac_cv_lib_com_err_com_err=no
20839 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20840 conftest$ac_exeext conftest.$ac_ext
20841 LIBS=$ac_check_lib_save_LIBS
20843 { echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
20844 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20845 if test $ac_cv_lib_com_err_com_err = yes; then
20846 cat >>confdefs.h <<_ACEOF
20847 #define HAVE_LIBCOM_ERR 1
20850 LIBS="-lcom_err $LIBS"
20855 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
20856 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lk5crypto...
$ECHO_C" >&6; }
20857 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20858 echo $ECHO_N "(cached
) $ECHO_C" >&6
20860 ac_check_lib_save_LIBS=$LIBS
20861 LIBS="-lk5crypto $LIBS"
20862 cat >conftest.$ac_ext <<_ACEOF
20865 cat confdefs.h >>conftest.$ac_ext
20866 cat >>conftest.$ac_ext <<_ACEOF
20867 /* end confdefs.h. */
20869 /* Override any GCC internal prototype to avoid an error.
20870 Use char because int might match the return type of a GCC
20871 builtin and then its argument prototype would still apply. */
20875 char mit_des_cbc_encrypt ();
20879 return mit_des_cbc_encrypt ();
20884 rm -f conftest.$ac_objext conftest$ac_exeext
20885 if { (ac_try="$ac_link"
20886 case "(($ac_try" in
20887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20888 *) ac_try_echo=$ac_try;;
20890 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20891 (eval "$ac_link") 2>conftest.er1
20893 grep -v '^ *+' conftest.er1 >conftest.err
20895 cat conftest.err >&5
20896 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20897 (exit $ac_status); } && {
20898 test -z "$ac_c_werror_flag" ||
20899 test ! -s conftest.err
20900 } && test -s conftest$ac_exeext &&
20901 $as_test_x conftest$ac_exeext; then
20902 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20904 echo "$as_me: failed program was
:" >&5
20905 sed 's/^/| /' conftest.$ac_ext >&5
20907 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20910 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20911 conftest$ac_exeext conftest.$ac_ext
20912 LIBS=$ac_check_lib_save_LIBS
20914 { echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20915 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20916 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20917 cat >>confdefs.h <<_ACEOF
20918 #define HAVE_LIBK5CRYPTO 1
20921 LIBS="-lk5crypto $LIBS"
20926 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
20927 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lcrypto...
$ECHO_C" >&6; }
20928 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20929 echo $ECHO_N "(cached
) $ECHO_C" >&6
20931 ac_check_lib_save_LIBS=$LIBS
20932 LIBS="-lcrypto $LIBS"
20933 cat >conftest.$ac_ext <<_ACEOF
20936 cat confdefs.h >>conftest.$ac_ext
20937 cat >>conftest.$ac_ext <<_ACEOF
20938 /* end confdefs.h. */
20940 /* Override any GCC internal prototype to avoid an error.
20941 Use char because int might match the return type of a GCC
20942 builtin and then its argument prototype would still apply. */
20946 char mit_des_cbc_encrypt ();
20950 return mit_des_cbc_encrypt ();
20955 rm -f conftest.$ac_objext conftest$ac_exeext
20956 if { (ac_try="$ac_link"
20957 case "(($ac_try" in
20958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20959 *) ac_try_echo=$ac_try;;
20961 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20962 (eval "$ac_link") 2>conftest.er1
20964 grep -v '^ *+' conftest.er1 >conftest.err
20966 cat conftest.err >&5
20967 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20968 (exit $ac_status); } && {
20969 test -z "$ac_c_werror_flag" ||
20970 test ! -s conftest.err
20971 } && test -s conftest$ac_exeext &&
20972 $as_test_x conftest$ac_exeext; then
20973 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20975 echo "$as_me: failed program was
:" >&5
20976 sed 's/^/| /' conftest.$ac_ext >&5
20978 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20982 conftest$ac_exeext conftest.$ac_ext
20983 LIBS=$ac_check_lib_save_LIBS
20985 { echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20986 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20987 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20988 cat >>confdefs.h <<_ACEOF
20989 #define HAVE_LIBCRYPTO 1
20992 LIBS="-lcrypto $LIBS"
20997 { echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
20998 echo $ECHO_N "checking
for krb5_init_context
in -lkrb5...
$ECHO_C" >&6; }
20999 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
21000 echo $ECHO_N "(cached
) $ECHO_C" >&6
21002 ac_check_lib_save_LIBS=$LIBS
21003 LIBS="-lkrb5 $LIBS"
21004 cat >conftest.$ac_ext <<_ACEOF
21007 cat confdefs.h >>conftest.$ac_ext
21008 cat >>conftest.$ac_ext <<_ACEOF
21009 /* end confdefs.h. */
21011 /* Override any GCC internal prototype to avoid an error.
21012 Use char because int might match the return type of a GCC
21013 builtin and then its argument prototype would still apply. */
21017 char krb5_init_context ();
21021 return krb5_init_context ();
21026 rm -f conftest.$ac_objext conftest$ac_exeext
21027 if { (ac_try="$ac_link"
21028 case "(($ac_try" in
21029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21030 *) ac_try_echo=$ac_try;;
21032 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21033 (eval "$ac_link") 2>conftest.er1
21035 grep -v '^ *+' conftest.er1 >conftest.err
21037 cat conftest.err >&5
21038 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21039 (exit $ac_status); } && {
21040 test -z "$ac_c_werror_flag" ||
21041 test ! -s conftest.err
21042 } && test -s conftest$ac_exeext &&
21043 $as_test_x conftest$ac_exeext; then
21044 ac_cv_lib_krb5_krb5_init_context=yes
21046 echo "$as_me: failed program was
:" >&5
21047 sed 's/^/| /' conftest.$ac_ext >&5
21049 ac_cv_lib_krb5_krb5_init_context=no
21052 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21053 conftest$ac_exeext conftest.$ac_ext
21054 LIBS=$ac_check_lib_save_LIBS
21056 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
21057 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
21058 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
21059 cat >>confdefs.h <<_ACEOF
21060 #define HAVE_LIBKRB5 1
21063 LIBS="-lkrb5 $LIBS"
21067 if test "${with_kerberos5+set}" != set; then
21069 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
21070 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes425...
$ECHO_C" >&6; }
21071 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
21072 echo $ECHO_N "(cached
) $ECHO_C" >&6
21074 ac_check_lib_save_LIBS=$LIBS
21075 LIBS="-ldes425 $LIBS"
21076 cat >conftest.$ac_ext <<_ACEOF
21079 cat confdefs.h >>conftest.$ac_ext
21080 cat >>conftest.$ac_ext <<_ACEOF
21081 /* end confdefs.h. */
21083 /* Override any GCC internal prototype to avoid an error.
21084 Use char because int might match the return type of a GCC
21085 builtin and then its argument prototype would still apply. */
21089 char des_cbc_encrypt ();
21093 return des_cbc_encrypt ();
21098 rm -f conftest.$ac_objext conftest$ac_exeext
21099 if { (ac_try="$ac_link"
21100 case "(($ac_try" in
21101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21102 *) ac_try_echo=$ac_try;;
21104 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21105 (eval "$ac_link") 2>conftest.er1
21107 grep -v '^ *+' conftest.er1 >conftest.err
21109 cat conftest.err >&5
21110 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21111 (exit $ac_status); } && {
21112 test -z "$ac_c_werror_flag" ||
21113 test ! -s conftest.err
21114 } && test -s conftest$ac_exeext &&
21115 $as_test_x conftest$ac_exeext; then
21116 ac_cv_lib_des425_des_cbc_encrypt=yes
21118 echo "$as_me: failed program was
:" >&5
21119 sed 's/^/| /' conftest.$ac_ext >&5
21121 ac_cv_lib_des425_des_cbc_encrypt=no
21124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21125 conftest$ac_exeext conftest.$ac_ext
21126 LIBS=$ac_check_lib_save_LIBS
21128 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
21129 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
21130 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
21131 cat >>confdefs.h <<_ACEOF
21132 #define HAVE_LIBDES425 1
21135 LIBS="-ldes425 $LIBS"
21139 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
21140 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes...
$ECHO_C" >&6; }
21141 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
21142 echo $ECHO_N "(cached
) $ECHO_C" >&6
21144 ac_check_lib_save_LIBS=$LIBS
21146 cat >conftest.$ac_ext <<_ACEOF
21149 cat confdefs.h >>conftest.$ac_ext
21150 cat >>conftest.$ac_ext <<_ACEOF
21151 /* end confdefs.h. */
21153 /* Override any GCC internal prototype to avoid an error.
21154 Use char because int might match the return type of a GCC
21155 builtin and then its argument prototype would still apply. */
21159 char des_cbc_encrypt ();
21163 return des_cbc_encrypt ();
21168 rm -f conftest.$ac_objext conftest$ac_exeext
21169 if { (ac_try="$ac_link"
21170 case "(($ac_try" in
21171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21172 *) ac_try_echo=$ac_try;;
21174 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21175 (eval "$ac_link") 2>conftest.er1
21177 grep -v '^ *+' conftest.er1 >conftest.err
21179 cat conftest.err >&5
21180 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21181 (exit $ac_status); } && {
21182 test -z "$ac_c_werror_flag" ||
21183 test ! -s conftest.err
21184 } && test -s conftest$ac_exeext &&
21185 $as_test_x conftest$ac_exeext; then
21186 ac_cv_lib_des_des_cbc_encrypt=yes
21188 echo "$as_me: failed program was
:" >&5
21189 sed 's/^/| /' conftest.$ac_ext >&5
21191 ac_cv_lib_des_des_cbc_encrypt=no
21194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21195 conftest$ac_exeext conftest.$ac_ext
21196 LIBS=$ac_check_lib_save_LIBS
21198 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
21199 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
21200 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
21201 cat >>confdefs.h <<_ACEOF
21202 #define HAVE_LIBDES 1
21212 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
21213 echo $ECHO_N "checking
for krb_get_cred
in -lkrb4...
$ECHO_C" >&6; }
21214 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
21215 echo $ECHO_N "(cached
) $ECHO_C" >&6
21217 ac_check_lib_save_LIBS=$LIBS
21218 LIBS="-lkrb4 $LIBS"
21219 cat >conftest.$ac_ext <<_ACEOF
21222 cat confdefs.h >>conftest.$ac_ext
21223 cat >>conftest.$ac_ext <<_ACEOF
21224 /* end confdefs.h. */
21226 /* Override any GCC internal prototype to avoid an error.
21227 Use char because int might match the return type of a GCC
21228 builtin and then its argument prototype would still apply. */
21232 char krb_get_cred ();
21236 return krb_get_cred ();
21241 rm -f conftest.$ac_objext conftest$ac_exeext
21242 if { (ac_try="$ac_link"
21243 case "(($ac_try" in
21244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21245 *) ac_try_echo=$ac_try;;
21247 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21248 (eval "$ac_link") 2>conftest.er1
21250 grep -v '^ *+' conftest.er1 >conftest.err
21252 cat conftest.err >&5
21253 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21254 (exit $ac_status); } && {
21255 test -z "$ac_c_werror_flag" ||
21256 test ! -s conftest.err
21257 } && test -s conftest$ac_exeext &&
21258 $as_test_x conftest$ac_exeext; then
21259 ac_cv_lib_krb4_krb_get_cred=yes
21261 echo "$as_me: failed program was
:" >&5
21262 sed 's/^/| /' conftest.$ac_ext >&5
21264 ac_cv_lib_krb4_krb_get_cred=no
21267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21268 conftest$ac_exeext conftest.$ac_ext
21269 LIBS=$ac_check_lib_save_LIBS
21271 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
21272 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
21273 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
21274 cat >>confdefs.h <<_ACEOF
21275 #define HAVE_LIBKRB4 1
21278 LIBS="-lkrb4 $LIBS"
21282 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
21283 echo $ECHO_N "checking
for krb_get_cred
in -lkrb...
$ECHO_C" >&6; }
21284 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
21285 echo $ECHO_N "(cached
) $ECHO_C" >&6
21287 ac_check_lib_save_LIBS=$LIBS
21289 cat >conftest.$ac_ext <<_ACEOF
21292 cat confdefs.h >>conftest.$ac_ext
21293 cat >>conftest.$ac_ext <<_ACEOF
21294 /* end confdefs.h. */
21296 /* Override any GCC internal prototype to avoid an error.
21297 Use char because int might match the return type of a GCC
21298 builtin and then its argument prototype would still apply. */
21302 char krb_get_cred ();
21306 return krb_get_cred ();
21311 rm -f conftest.$ac_objext conftest$ac_exeext
21312 if { (ac_try="$ac_link"
21313 case "(($ac_try" in
21314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21315 *) ac_try_echo=$ac_try;;
21317 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21318 (eval "$ac_link") 2>conftest.er1
21320 grep -v '^ *+' conftest.er1 >conftest.err
21322 cat conftest.err >&5
21323 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21324 (exit $ac_status); } && {
21325 test -z "$ac_c_werror_flag" ||
21326 test ! -s conftest.err
21327 } && test -s conftest$ac_exeext &&
21328 $as_test_x conftest$ac_exeext; then
21329 ac_cv_lib_krb_krb_get_cred=yes
21331 echo "$as_me: failed program was
:" >&5
21332 sed 's/^/| /' conftest.$ac_ext >&5
21334 ac_cv_lib_krb_krb_get_cred=no
21337 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21338 conftest$ac_exeext conftest.$ac_ext
21339 LIBS=$ac_check_lib_save_LIBS
21341 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
21342 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
21343 if test $ac_cv_lib_krb_krb_get_cred = yes; then
21344 cat >>confdefs.h <<_ACEOF
21345 #define HAVE_LIBKRB 1
21356 if test "${with_kerberos5+set}" = set; then
21358 for ac_header in krb5.h
21360 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21361 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21362 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21363 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21364 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21365 echo $ECHO_N "(cached
) $ECHO_C" >&6
21367 ac_res=`eval echo '${'$as_ac_Header'}'`
21368 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21369 echo "${ECHO_T}$ac_res" >&6; }
21371 # Is the header compilable?
21372 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21373 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21374 cat >conftest.$ac_ext <<_ACEOF
21377 cat confdefs.h >>conftest.$ac_ext
21378 cat >>conftest.$ac_ext <<_ACEOF
21379 /* end confdefs.h. */
21380 $ac_includes_default
21381 #include <$ac_header>
21383 rm -f conftest.$ac_objext
21384 if { (ac_try="$ac_compile"
21385 case "(($ac_try" in
21386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21387 *) ac_try_echo=$ac_try;;
21389 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21390 (eval "$ac_compile") 2>conftest.er1
21392 grep -v '^ *+' conftest.er1 >conftest.err
21394 cat conftest.err >&5
21395 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21396 (exit $ac_status); } && {
21397 test -z "$ac_c_werror_flag" ||
21398 test ! -s conftest.err
21399 } && test -s conftest.$ac_objext; then
21400 ac_header_compiler=yes
21402 echo "$as_me: failed program was
:" >&5
21403 sed 's/^/| /' conftest.$ac_ext >&5
21405 ac_header_compiler=no
21408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21409 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21410 echo "${ECHO_T}$ac_header_compiler" >&6; }
21412 # Is the header present?
21413 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21414 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21415 cat >conftest.$ac_ext <<_ACEOF
21418 cat confdefs.h >>conftest.$ac_ext
21419 cat >>conftest.$ac_ext <<_ACEOF
21420 /* end confdefs.h. */
21421 #include <$ac_header>
21423 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21424 case "(($ac_try" in
21425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21426 *) ac_try_echo=$ac_try;;
21428 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21429 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21431 grep -v '^ *+' conftest.er1 >conftest.err
21433 cat conftest.err >&5
21434 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21435 (exit $ac_status); } >/dev/null && {
21436 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21437 test ! -s conftest.err
21439 ac_header_preproc=yes
21441 echo "$as_me: failed program was
:" >&5
21442 sed 's/^/| /' conftest.$ac_ext >&5
21444 ac_header_preproc=no
21447 rm -f conftest.err conftest.$ac_ext
21448 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21449 echo "${ECHO_T}$ac_header_preproc" >&6; }
21451 # So? What about this header?
21452 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21454 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21455 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21456 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21457 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21458 ac_header_preproc=yes
21461 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21462 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21463 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21464 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21465 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21466 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21467 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21468 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21469 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21470 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21471 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21472 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21476 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21477 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21478 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21479 echo $ECHO_N "(cached
) $ECHO_C" >&6
21481 eval "$as_ac_Header=\
$ac_header_preproc"
21483 ac_res=`eval echo '${'$as_ac_Header'}'`
21484 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21485 echo "${ECHO_T}$ac_res" >&6; }
21488 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21489 cat >>confdefs.h <<_ACEOF
21490 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21499 for ac_header in des.h
21501 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21502 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21503 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21504 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21505 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21506 echo $ECHO_N "(cached
) $ECHO_C" >&6
21508 ac_res=`eval echo '${'$as_ac_Header'}'`
21509 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21510 echo "${ECHO_T}$ac_res" >&6; }
21512 # Is the header compilable?
21513 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21514 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21515 cat >conftest.$ac_ext <<_ACEOF
21518 cat confdefs.h >>conftest.$ac_ext
21519 cat >>conftest.$ac_ext <<_ACEOF
21520 /* end confdefs.h. */
21521 $ac_includes_default
21522 #include <$ac_header>
21524 rm -f conftest.$ac_objext
21525 if { (ac_try="$ac_compile"
21526 case "(($ac_try" in
21527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21528 *) ac_try_echo=$ac_try;;
21530 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21531 (eval "$ac_compile") 2>conftest.er1
21533 grep -v '^ *+' conftest.er1 >conftest.err
21535 cat conftest.err >&5
21536 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21537 (exit $ac_status); } && {
21538 test -z "$ac_c_werror_flag" ||
21539 test ! -s conftest.err
21540 } && test -s conftest.$ac_objext; then
21541 ac_header_compiler=yes
21543 echo "$as_me: failed program was
:" >&5
21544 sed 's/^/| /' conftest.$ac_ext >&5
21546 ac_header_compiler=no
21549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21550 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21551 echo "${ECHO_T}$ac_header_compiler" >&6; }
21553 # Is the header present?
21554 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21555 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21556 cat >conftest.$ac_ext <<_ACEOF
21559 cat confdefs.h >>conftest.$ac_ext
21560 cat >>conftest.$ac_ext <<_ACEOF
21561 /* end confdefs.h. */
21562 #include <$ac_header>
21564 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21565 case "(($ac_try" in
21566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21567 *) ac_try_echo=$ac_try;;
21569 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21570 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21572 grep -v '^ *+' conftest.er1 >conftest.err
21574 cat conftest.err >&5
21575 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21576 (exit $ac_status); } >/dev/null && {
21577 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21578 test ! -s conftest.err
21580 ac_header_preproc=yes
21582 echo "$as_me: failed program was
:" >&5
21583 sed 's/^/| /' conftest.$ac_ext >&5
21585 ac_header_preproc=no
21588 rm -f conftest.err conftest.$ac_ext
21589 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21590 echo "${ECHO_T}$ac_header_preproc" >&6; }
21592 # So? What about this header?
21593 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21595 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21596 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21597 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21598 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21599 ac_header_preproc=yes
21602 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21603 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21604 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21605 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21606 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21607 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21608 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21609 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21610 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21611 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21612 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21613 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21617 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21618 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21619 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21620 echo $ECHO_N "(cached
) $ECHO_C" >&6
21622 eval "$as_ac_Header=\
$ac_header_preproc"
21624 ac_res=`eval echo '${'$as_ac_Header'}'`
21625 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21626 echo "${ECHO_T}$ac_res" >&6; }
21629 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21630 cat >>confdefs.h <<_ACEOF
21631 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21636 for ac_header in kerberosIV/des.h
21638 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21639 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21640 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21641 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21642 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21643 echo $ECHO_N "(cached
) $ECHO_C" >&6
21645 ac_res=`eval echo '${'$as_ac_Header'}'`
21646 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21647 echo "${ECHO_T}$ac_res" >&6; }
21649 # Is the header compilable?
21650 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21651 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21652 cat >conftest.$ac_ext <<_ACEOF
21655 cat confdefs.h >>conftest.$ac_ext
21656 cat >>conftest.$ac_ext <<_ACEOF
21657 /* end confdefs.h. */
21658 $ac_includes_default
21659 #include <$ac_header>
21661 rm -f conftest.$ac_objext
21662 if { (ac_try="$ac_compile"
21663 case "(($ac_try" in
21664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21665 *) ac_try_echo=$ac_try;;
21667 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21668 (eval "$ac_compile") 2>conftest.er1
21670 grep -v '^ *+' conftest.er1 >conftest.err
21672 cat conftest.err >&5
21673 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21674 (exit $ac_status); } && {
21675 test -z "$ac_c_werror_flag" ||
21676 test ! -s conftest.err
21677 } && test -s conftest.$ac_objext; then
21678 ac_header_compiler=yes
21680 echo "$as_me: failed program was
:" >&5
21681 sed 's/^/| /' conftest.$ac_ext >&5
21683 ac_header_compiler=no
21686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21687 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21688 echo "${ECHO_T}$ac_header_compiler" >&6; }
21690 # Is the header present?
21691 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21692 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21693 cat >conftest.$ac_ext <<_ACEOF
21696 cat confdefs.h >>conftest.$ac_ext
21697 cat >>conftest.$ac_ext <<_ACEOF
21698 /* end confdefs.h. */
21699 #include <$ac_header>
21701 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21702 case "(($ac_try" in
21703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21704 *) ac_try_echo=$ac_try;;
21706 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21707 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21709 grep -v '^ *+' conftest.er1 >conftest.err
21711 cat conftest.err >&5
21712 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21713 (exit $ac_status); } >/dev/null && {
21714 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21715 test ! -s conftest.err
21717 ac_header_preproc=yes
21719 echo "$as_me: failed program was
:" >&5
21720 sed 's/^/| /' conftest.$ac_ext >&5
21722 ac_header_preproc=no
21725 rm -f conftest.err conftest.$ac_ext
21726 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21727 echo "${ECHO_T}$ac_header_preproc" >&6; }
21729 # So? What about this header?
21730 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21732 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21733 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21734 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21735 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21736 ac_header_preproc=yes
21739 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21740 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21741 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21742 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21743 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21744 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21745 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21746 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21747 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21748 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21749 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21750 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21754 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21755 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21756 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21757 echo $ECHO_N "(cached
) $ECHO_C" >&6
21759 eval "$as_ac_Header=\
$ac_header_preproc"
21761 ac_res=`eval echo '${'$as_ac_Header'}'`
21762 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21763 echo "${ECHO_T}$ac_res" >&6; }
21766 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21767 cat >>confdefs.h <<_ACEOF
21768 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21773 for ac_header in kerberos/des.h
21775 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21776 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21777 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21778 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21779 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21780 echo $ECHO_N "(cached
) $ECHO_C" >&6
21782 ac_res=`eval echo '${'$as_ac_Header'}'`
21783 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21784 echo "${ECHO_T}$ac_res" >&6; }
21786 # Is the header compilable?
21787 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21788 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21789 cat >conftest.$ac_ext <<_ACEOF
21792 cat confdefs.h >>conftest.$ac_ext
21793 cat >>conftest.$ac_ext <<_ACEOF
21794 /* end confdefs.h. */
21795 $ac_includes_default
21796 #include <$ac_header>
21798 rm -f conftest.$ac_objext
21799 if { (ac_try="$ac_compile"
21800 case "(($ac_try" in
21801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21802 *) ac_try_echo=$ac_try;;
21804 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21805 (eval "$ac_compile") 2>conftest.er1
21807 grep -v '^ *+' conftest.er1 >conftest.err
21809 cat conftest.err >&5
21810 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21811 (exit $ac_status); } && {
21812 test -z "$ac_c_werror_flag" ||
21813 test ! -s conftest.err
21814 } && test -s conftest.$ac_objext; then
21815 ac_header_compiler=yes
21817 echo "$as_me: failed program was
:" >&5
21818 sed 's/^/| /' conftest.$ac_ext >&5
21820 ac_header_compiler=no
21823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21824 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21825 echo "${ECHO_T}$ac_header_compiler" >&6; }
21827 # Is the header present?
21828 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21829 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21830 cat >conftest.$ac_ext <<_ACEOF
21833 cat confdefs.h >>conftest.$ac_ext
21834 cat >>conftest.$ac_ext <<_ACEOF
21835 /* end confdefs.h. */
21836 #include <$ac_header>
21838 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21839 case "(($ac_try" in
21840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21841 *) ac_try_echo=$ac_try;;
21843 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21844 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21846 grep -v '^ *+' conftest.er1 >conftest.err
21848 cat conftest.err >&5
21849 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21850 (exit $ac_status); } >/dev/null && {
21851 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21852 test ! -s conftest.err
21854 ac_header_preproc=yes
21856 echo "$as_me: failed program was
:" >&5
21857 sed 's/^/| /' conftest.$ac_ext >&5
21859 ac_header_preproc=no
21862 rm -f conftest.err conftest.$ac_ext
21863 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21864 echo "${ECHO_T}$ac_header_preproc" >&6; }
21866 # So? What about this header?
21867 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21869 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21870 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21871 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21872 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21873 ac_header_preproc=yes
21876 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21877 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21878 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21879 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21880 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21881 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21882 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21883 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21884 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21885 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21886 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21887 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21891 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21892 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21893 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21894 echo $ECHO_N "(cached
) $ECHO_C" >&6
21896 eval "$as_ac_Header=\
$ac_header_preproc"
21898 ac_res=`eval echo '${'$as_ac_Header'}'`
21899 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21900 echo "${ECHO_T}$ac_res" >&6; }
21903 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21904 cat >>confdefs.h <<_ACEOF
21905 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21921 for ac_header in krb.h
21923 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21924 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21925 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21926 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21927 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21928 echo $ECHO_N "(cached
) $ECHO_C" >&6
21930 ac_res=`eval echo '${'$as_ac_Header'}'`
21931 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21932 echo "${ECHO_T}$ac_res" >&6; }
21934 # Is the header compilable?
21935 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21936 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21937 cat >conftest.$ac_ext <<_ACEOF
21940 cat confdefs.h >>conftest.$ac_ext
21941 cat >>conftest.$ac_ext <<_ACEOF
21942 /* end confdefs.h. */
21943 $ac_includes_default
21944 #include <$ac_header>
21946 rm -f conftest.$ac_objext
21947 if { (ac_try="$ac_compile"
21948 case "(($ac_try" in
21949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21950 *) ac_try_echo=$ac_try;;
21952 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21953 (eval "$ac_compile") 2>conftest.er1
21955 grep -v '^ *+' conftest.er1 >conftest.err
21957 cat conftest.err >&5
21958 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21959 (exit $ac_status); } && {
21960 test -z "$ac_c_werror_flag" ||
21961 test ! -s conftest.err
21962 } && test -s conftest.$ac_objext; then
21963 ac_header_compiler=yes
21965 echo "$as_me: failed program was
:" >&5
21966 sed 's/^/| /' conftest.$ac_ext >&5
21968 ac_header_compiler=no
21971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21972 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21973 echo "${ECHO_T}$ac_header_compiler" >&6; }
21975 # Is the header present?
21976 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21977 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21978 cat >conftest.$ac_ext <<_ACEOF
21981 cat confdefs.h >>conftest.$ac_ext
21982 cat >>conftest.$ac_ext <<_ACEOF
21983 /* end confdefs.h. */
21984 #include <$ac_header>
21986 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21987 case "(($ac_try" in
21988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21989 *) ac_try_echo=$ac_try;;
21991 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21992 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21994 grep -v '^ *+' conftest.er1 >conftest.err
21996 cat conftest.err >&5
21997 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21998 (exit $ac_status); } >/dev/null && {
21999 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22000 test ! -s conftest.err
22002 ac_header_preproc=yes
22004 echo "$as_me: failed program was
:" >&5
22005 sed 's/^/| /' conftest.$ac_ext >&5
22007 ac_header_preproc=no
22010 rm -f conftest.err conftest.$ac_ext
22011 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22012 echo "${ECHO_T}$ac_header_preproc" >&6; }
22014 # So? What about this header?
22015 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22017 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22018 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22019 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22020 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22021 ac_header_preproc=yes
22024 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22025 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22026 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22027 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22028 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22029 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22030 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22031 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22032 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22033 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22034 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22035 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22039 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22040 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22041 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22042 echo $ECHO_N "(cached
) $ECHO_C" >&6
22044 eval "$as_ac_Header=\
$ac_header_preproc"
22046 ac_res=`eval echo '${'$as_ac_Header'}'`
22047 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22048 echo "${ECHO_T}$ac_res" >&6; }
22051 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22052 cat >>confdefs.h <<_ACEOF
22053 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22058 for ac_header in kerberosIV/krb.h
22060 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22061 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22062 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22063 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22064 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22065 echo $ECHO_N "(cached
) $ECHO_C" >&6
22067 ac_res=`eval echo '${'$as_ac_Header'}'`
22068 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22069 echo "${ECHO_T}$ac_res" >&6; }
22071 # Is the header compilable?
22072 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22073 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22074 cat >conftest.$ac_ext <<_ACEOF
22077 cat confdefs.h >>conftest.$ac_ext
22078 cat >>conftest.$ac_ext <<_ACEOF
22079 /* end confdefs.h. */
22080 $ac_includes_default
22081 #include <$ac_header>
22083 rm -f conftest.$ac_objext
22084 if { (ac_try="$ac_compile"
22085 case "(($ac_try" in
22086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22087 *) ac_try_echo=$ac_try;;
22089 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22090 (eval "$ac_compile") 2>conftest.er1
22092 grep -v '^ *+' conftest.er1 >conftest.err
22094 cat conftest.err >&5
22095 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22096 (exit $ac_status); } && {
22097 test -z "$ac_c_werror_flag" ||
22098 test ! -s conftest.err
22099 } && test -s conftest.$ac_objext; then
22100 ac_header_compiler=yes
22102 echo "$as_me: failed program was
:" >&5
22103 sed 's/^/| /' conftest.$ac_ext >&5
22105 ac_header_compiler=no
22108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22109 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22110 echo "${ECHO_T}$ac_header_compiler" >&6; }
22112 # Is the header present?
22113 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22114 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22115 cat >conftest.$ac_ext <<_ACEOF
22118 cat confdefs.h >>conftest.$ac_ext
22119 cat >>conftest.$ac_ext <<_ACEOF
22120 /* end confdefs.h. */
22121 #include <$ac_header>
22123 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22124 case "(($ac_try" in
22125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22126 *) ac_try_echo=$ac_try;;
22128 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22129 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22131 grep -v '^ *+' conftest.er1 >conftest.err
22133 cat conftest.err >&5
22134 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22135 (exit $ac_status); } >/dev/null && {
22136 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22137 test ! -s conftest.err
22139 ac_header_preproc=yes
22141 echo "$as_me: failed program was
:" >&5
22142 sed 's/^/| /' conftest.$ac_ext >&5
22144 ac_header_preproc=no
22147 rm -f conftest.err conftest.$ac_ext
22148 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22149 echo "${ECHO_T}$ac_header_preproc" >&6; }
22151 # So? What about this header?
22152 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22154 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22155 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22156 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22157 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22158 ac_header_preproc=yes
22161 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22162 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22163 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22164 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22165 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22166 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22167 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22168 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22169 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22170 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22171 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22172 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22176 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22177 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22178 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22179 echo $ECHO_N "(cached
) $ECHO_C" >&6
22181 eval "$as_ac_Header=\
$ac_header_preproc"
22183 ac_res=`eval echo '${'$as_ac_Header'}'`
22184 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22185 echo "${ECHO_T}$ac_res" >&6; }
22188 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22189 cat >>confdefs.h <<_ACEOF
22190 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22195 for ac_header in kerberos/krb.h
22197 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22198 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22199 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22200 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22201 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22202 echo $ECHO_N "(cached
) $ECHO_C" >&6
22204 ac_res=`eval echo '${'$as_ac_Header'}'`
22205 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22206 echo "${ECHO_T}$ac_res" >&6; }
22208 # Is the header compilable?
22209 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22210 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22211 cat >conftest.$ac_ext <<_ACEOF
22214 cat confdefs.h >>conftest.$ac_ext
22215 cat >>conftest.$ac_ext <<_ACEOF
22216 /* end confdefs.h. */
22217 $ac_includes_default
22218 #include <$ac_header>
22220 rm -f conftest.$ac_objext
22221 if { (ac_try="$ac_compile"
22222 case "(($ac_try" in
22223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22224 *) ac_try_echo=$ac_try;;
22226 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22227 (eval "$ac_compile") 2>conftest.er1
22229 grep -v '^ *+' conftest.er1 >conftest.err
22231 cat conftest.err >&5
22232 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22233 (exit $ac_status); } && {
22234 test -z "$ac_c_werror_flag" ||
22235 test ! -s conftest.err
22236 } && test -s conftest.$ac_objext; then
22237 ac_header_compiler=yes
22239 echo "$as_me: failed program was
:" >&5
22240 sed 's/^/| /' conftest.$ac_ext >&5
22242 ac_header_compiler=no
22245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22246 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22247 echo "${ECHO_T}$ac_header_compiler" >&6; }
22249 # Is the header present?
22250 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22251 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22252 cat >conftest.$ac_ext <<_ACEOF
22255 cat confdefs.h >>conftest.$ac_ext
22256 cat >>conftest.$ac_ext <<_ACEOF
22257 /* end confdefs.h. */
22258 #include <$ac_header>
22260 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22261 case "(($ac_try" in
22262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22263 *) ac_try_echo=$ac_try;;
22265 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22266 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22268 grep -v '^ *+' conftest.er1 >conftest.err
22270 cat conftest.err >&5
22271 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22272 (exit $ac_status); } >/dev/null && {
22273 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22274 test ! -s conftest.err
22276 ac_header_preproc=yes
22278 echo "$as_me: failed program was
:" >&5
22279 sed 's/^/| /' conftest.$ac_ext >&5
22281 ac_header_preproc=no
22284 rm -f conftest.err conftest.$ac_ext
22285 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22286 echo "${ECHO_T}$ac_header_preproc" >&6; }
22288 # So? What about this header?
22289 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22291 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22292 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22293 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22294 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22295 ac_header_preproc=yes
22298 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22299 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22300 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22301 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22302 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22303 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22304 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22305 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22306 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22307 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22308 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22309 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22313 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22314 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22315 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22316 echo $ECHO_N "(cached
) $ECHO_C" >&6
22318 eval "$as_ac_Header=\
$ac_header_preproc"
22320 ac_res=`eval echo '${'$as_ac_Header'}'`
22321 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22322 echo "${ECHO_T}$ac_res" >&6; }
22325 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22326 cat >>confdefs.h <<_ACEOF
22327 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22344 for ac_header in com_err.h
22346 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22347 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22348 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22349 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22350 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22351 echo $ECHO_N "(cached
) $ECHO_C" >&6
22353 ac_res=`eval echo '${'$as_ac_Header'}'`
22354 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22355 echo "${ECHO_T}$ac_res" >&6; }
22357 # Is the header compilable?
22358 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22359 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22360 cat >conftest.$ac_ext <<_ACEOF
22363 cat confdefs.h >>conftest.$ac_ext
22364 cat >>conftest.$ac_ext <<_ACEOF
22365 /* end confdefs.h. */
22366 $ac_includes_default
22367 #include <$ac_header>
22369 rm -f conftest.$ac_objext
22370 if { (ac_try="$ac_compile"
22371 case "(($ac_try" in
22372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22373 *) ac_try_echo=$ac_try;;
22375 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22376 (eval "$ac_compile") 2>conftest.er1
22378 grep -v '^ *+' conftest.er1 >conftest.err
22380 cat conftest.err >&5
22381 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22382 (exit $ac_status); } && {
22383 test -z "$ac_c_werror_flag" ||
22384 test ! -s conftest.err
22385 } && test -s conftest.$ac_objext; then
22386 ac_header_compiler=yes
22388 echo "$as_me: failed program was
:" >&5
22389 sed 's/^/| /' conftest.$ac_ext >&5
22391 ac_header_compiler=no
22394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22395 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22396 echo "${ECHO_T}$ac_header_compiler" >&6; }
22398 # Is the header present?
22399 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22400 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22401 cat >conftest.$ac_ext <<_ACEOF
22404 cat confdefs.h >>conftest.$ac_ext
22405 cat >>conftest.$ac_ext <<_ACEOF
22406 /* end confdefs.h. */
22407 #include <$ac_header>
22409 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22410 case "(($ac_try" in
22411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22412 *) ac_try_echo=$ac_try;;
22414 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22415 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22417 grep -v '^ *+' conftest.er1 >conftest.err
22419 cat conftest.err >&5
22420 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22421 (exit $ac_status); } >/dev/null && {
22422 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22423 test ! -s conftest.err
22425 ac_header_preproc=yes
22427 echo "$as_me: failed program was
:" >&5
22428 sed 's/^/| /' conftest.$ac_ext >&5
22430 ac_header_preproc=no
22433 rm -f conftest.err conftest.$ac_ext
22434 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22435 echo "${ECHO_T}$ac_header_preproc" >&6; }
22437 # So? What about this header?
22438 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22440 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22441 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22442 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22443 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22444 ac_header_preproc=yes
22447 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22448 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22449 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22450 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22451 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22452 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22453 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22454 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22455 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22456 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22457 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22458 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22462 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22463 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22464 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22465 echo $ECHO_N "(cached
) $ECHO_C" >&6
22467 eval "$as_ac_Header=\
$ac_header_preproc"
22469 ac_res=`eval echo '${'$as_ac_Header'}'`
22470 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22471 echo "${ECHO_T}$ac_res" >&6; }
22474 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22475 cat >>confdefs.h <<_ACEOF
22476 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22485 # Solaris requires -lintl if you want strerror (which calls dgettext)
22486 # to return localized messages.
22488 { echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
22489 echo $ECHO_N "checking
for dgettext
in -lintl...
$ECHO_C" >&6; }
22490 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
22491 echo $ECHO_N "(cached
) $ECHO_C" >&6
22493 ac_check_lib_save_LIBS=$LIBS
22494 LIBS="-lintl $LIBS"
22495 cat >conftest.$ac_ext <<_ACEOF
22498 cat confdefs.h >>conftest.$ac_ext
22499 cat >>conftest.$ac_ext <<_ACEOF
22500 /* end confdefs.h. */
22502 /* Override any GCC internal prototype to avoid an error.
22503 Use char because int might match the return type of a GCC
22504 builtin and then its argument prototype would still apply. */
22512 return dgettext ();
22517 rm -f conftest.$ac_objext conftest$ac_exeext
22518 if { (ac_try="$ac_link"
22519 case "(($ac_try" in
22520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22521 *) ac_try_echo=$ac_try;;
22523 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22524 (eval "$ac_link") 2>conftest.er1
22526 grep -v '^ *+' conftest.er1 >conftest.err
22528 cat conftest.err >&5
22529 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22530 (exit $ac_status); } && {
22531 test -z "$ac_c_werror_flag" ||
22532 test ! -s conftest.err
22533 } && test -s conftest$ac_exeext &&
22534 $as_test_x conftest$ac_exeext; then
22535 ac_cv_lib_intl_dgettext=yes
22537 echo "$as_me: failed program was
:" >&5
22538 sed 's/^/| /' conftest.$ac_ext >&5
22540 ac_cv_lib_intl_dgettext=no
22543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22544 conftest$ac_exeext conftest.$ac_ext
22545 LIBS=$ac_check_lib_save_LIBS
22547 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
22548 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
22549 if test $ac_cv_lib_intl_dgettext = yes; then
22550 cat >>confdefs.h <<_ACEOF
22551 #define HAVE_LIBINTL 1
22554 LIBS="-lintl $LIBS"
22559 { echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
22560 echo $ECHO_N "checking whether localtime caches TZ...
$ECHO_C" >&6; }
22561 if test "${emacs_cv_localtime_cache+set}" = set; then
22562 echo $ECHO_N "(cached
) $ECHO_C" >&6
22564 if test x$ac_cv_func_tzset = xyes; then
22565 if test "$cross_compiling" = yes; then
22566 # If we have tzset, assume the worst when cross-compiling.
22567 emacs_cv_localtime_cache=yes
22569 cat >conftest.$ac_ext <<_ACEOF
22572 cat confdefs.h >>conftest.$ac_ext
22573 cat >>conftest.$ac_ext <<_ACEOF
22574 /* end confdefs.h. */
22576 extern char **environ;
22580 for (to = from = environ; (*to = *from); from++)
22581 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
22584 char TZ_GMT0[] = "TZ
=GMT0
";
22585 char TZ_PST8[] = "TZ
=PST8
";
22588 time_t now = time ((time_t *) 0);
22589 int hour_GMT0, hour_unset;
22590 if (putenv (TZ_GMT0) != 0)
22592 hour_GMT0 = localtime (&now)->tm_hour;
22594 hour_unset = localtime (&now)->tm_hour;
22595 if (putenv (TZ_PST8) != 0)
22597 if (localtime (&now)->tm_hour == hour_GMT0)
22600 if (localtime (&now)->tm_hour != hour_unset)
22605 rm -f conftest$ac_exeext
22606 if { (ac_try="$ac_link"
22607 case "(($ac_try" in
22608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22609 *) ac_try_echo=$ac_try;;
22611 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22612 (eval "$ac_link") 2>&5
22614 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22615 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22616 { (case "(($ac_try" in
22617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22618 *) ac_try_echo=$ac_try;;
22620 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22621 (eval "$ac_try") 2>&5
22623 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22624 (exit $ac_status); }; }; then
22625 emacs_cv_localtime_cache=no
22627 echo "$as_me: program exited with status
$ac_status" >&5
22628 echo "$as_me: failed program was
:" >&5
22629 sed 's/^/| /' conftest.$ac_ext >&5
22631 ( exit $ac_status )
22632 emacs_cv_localtime_cache=yes
22634 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22639 # If we lack tzset, report that localtime does not cache TZ,
22640 # since we can't invalidate the cache if we don't have tzset.
22641 emacs_cv_localtime_cache=no
22644 { echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
22645 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
22646 if test $emacs_cv_localtime_cache = yes; then
22648 cat >>confdefs.h <<\_ACEOF
22649 #define LOCALTIME_CACHE 1
22654 if test "x
$HAVE_TIMEVAL" = xyes; then
22656 for ac_func in gettimeofday
22658 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
22659 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
22660 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
22661 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
22662 echo $ECHO_N "(cached
) $ECHO_C" >&6
22664 cat >conftest.$ac_ext <<_ACEOF
22667 cat confdefs.h >>conftest.$ac_ext
22668 cat >>conftest.$ac_ext <<_ACEOF
22669 /* end confdefs.h. */
22670 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22671 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22672 #define $ac_func innocuous_$ac_func
22674 /* System header to define __stub macros and hopefully few prototypes,
22675 which can conflict with char $ac_func (); below.
22676 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22677 <limits.h> exists even on freestanding compilers. */
22680 # include <limits.h>
22682 # include <assert.h>
22687 /* Override any GCC internal prototype to avoid an error.
22688 Use char because int might match the return type of a GCC
22689 builtin and then its argument prototype would still apply. */
22694 /* The GNU C library defines this for functions which it implements
22695 to always fail with ENOSYS. Some functions are actually named
22696 something starting with __ and the normal name is an alias. */
22697 #if defined __stub_$ac_func || defined __stub___$ac_func
22704 return $ac_func ();
22709 rm -f conftest.$ac_objext conftest$ac_exeext
22710 if { (ac_try="$ac_link"
22711 case "(($ac_try" in
22712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22713 *) ac_try_echo=$ac_try;;
22715 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22716 (eval "$ac_link") 2>conftest.er1
22718 grep -v '^ *+' conftest.er1 >conftest.err
22720 cat conftest.err >&5
22721 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22722 (exit $ac_status); } && {
22723 test -z "$ac_c_werror_flag" ||
22724 test ! -s conftest.err
22725 } && test -s conftest$ac_exeext &&
22726 $as_test_x conftest$ac_exeext; then
22727 eval "$as_ac_var=yes"
22729 echo "$as_me: failed program was
:" >&5
22730 sed 's/^/| /' conftest.$ac_ext >&5
22732 eval "$as_ac_var=no
"
22735 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22736 conftest$ac_exeext conftest.$ac_ext
22738 ac_res=`eval echo '${'$as_ac_var'}'`
22739 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22740 echo "${ECHO_T}$ac_res" >&6; }
22741 if test `eval echo '${'$as_ac_var'}'` = yes; then
22742 cat >>confdefs.h <<_ACEOF
22743 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
22749 if test $ac_cv_func_gettimeofday = yes; then
22750 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
22751 echo $ECHO_N "checking whether gettimeofday can accept two arguments...
$ECHO_C" >&6; }
22752 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22753 echo $ECHO_N "(cached
) $ECHO_C" >&6
22755 cat >conftest.$ac_ext <<_ACEOF
22758 cat confdefs.h >>conftest.$ac_ext
22759 cat >>conftest.$ac_ext <<_ACEOF
22760 /* end confdefs.h. */
22762 #ifdef TIME_WITH_SYS_TIME
22763 #include <sys/time.h>
22766 #ifdef HAVE_SYS_TIME_H
22767 #include <sys/time.h>
22775 struct timeval time;
22776 gettimeofday (&time, 0);
22781 rm -f conftest.$ac_objext
22782 if { (ac_try="$ac_compile"
22783 case "(($ac_try" in
22784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22785 *) ac_try_echo=$ac_try;;
22787 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22788 (eval "$ac_compile") 2>conftest.er1
22790 grep -v '^ *+' conftest.er1 >conftest.err
22792 cat conftest.err >&5
22793 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22794 (exit $ac_status); } && {
22795 test -z "$ac_c_werror_flag" ||
22796 test ! -s conftest.err
22797 } && test -s conftest.$ac_objext; then
22798 emacs_cv_gettimeofday_two_arguments=yes
22800 echo "$as_me: failed program was
:" >&5
22801 sed 's/^/| /' conftest.$ac_ext >&5
22803 emacs_cv_gettimeofday_two_arguments=no
22806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22808 { echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
22809 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22810 if test $emacs_cv_gettimeofday_two_arguments = no; then
22812 cat >>confdefs.h <<\_ACEOF
22813 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22821 { echo "$as_me:$LINENO: checking
for socket
" >&5
22822 echo $ECHO_N "checking
for socket...
$ECHO_C" >&6; }
22823 if test "${ac_cv_func_socket+set}" = set; then
22824 echo $ECHO_N "(cached
) $ECHO_C" >&6
22826 cat >conftest.$ac_ext <<_ACEOF
22829 cat confdefs.h >>conftest.$ac_ext
22830 cat >>conftest.$ac_ext <<_ACEOF
22831 /* end confdefs.h. */
22832 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22833 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22834 #define socket innocuous_socket
22836 /* System header to define __stub macros and hopefully few prototypes,
22837 which can conflict with char socket (); below.
22838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22839 <limits.h> exists even on freestanding compilers. */
22842 # include <limits.h>
22844 # include <assert.h>
22849 /* Override any GCC internal prototype to avoid an error.
22850 Use char because int might match the return type of a GCC
22851 builtin and then its argument prototype would still apply. */
22856 /* The GNU C library defines this for functions which it implements
22857 to always fail with ENOSYS. Some functions are actually named
22858 something starting with __ and the normal name is an alias. */
22859 #if defined __stub_socket || defined __stub___socket
22871 rm -f conftest.$ac_objext conftest$ac_exeext
22872 if { (ac_try="$ac_link"
22873 case "(($ac_try" in
22874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22875 *) ac_try_echo=$ac_try;;
22877 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22878 (eval "$ac_link") 2>conftest.er1
22880 grep -v '^ *+' conftest.er1 >conftest.err
22882 cat conftest.err >&5
22883 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22884 (exit $ac_status); } && {
22885 test -z "$ac_c_werror_flag" ||
22886 test ! -s conftest.err
22887 } && test -s conftest$ac_exeext &&
22888 $as_test_x conftest$ac_exeext; then
22889 ac_cv_func_socket=yes
22891 echo "$as_me: failed program was
:" >&5
22892 sed 's/^/| /' conftest.$ac_ext >&5
22894 ac_cv_func_socket=no
22897 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22898 conftest$ac_exeext conftest.$ac_ext
22900 { echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
22901 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22902 if test $ac_cv_func_socket = yes; then
22908 if test $ok_so_far = yes; then
22909 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22910 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
22911 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
22912 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22913 echo $ECHO_N "(cached
) $ECHO_C" >&6
22915 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
22916 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22918 # Is the header compilable?
22919 { echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
22920 echo $ECHO_N "checking netinet
/in.h usability...
$ECHO_C" >&6; }
22921 cat >conftest.$ac_ext <<_ACEOF
22924 cat confdefs.h >>conftest.$ac_ext
22925 cat >>conftest.$ac_ext <<_ACEOF
22926 /* end confdefs.h. */
22927 $ac_includes_default
22928 #include <netinet/in.h>
22930 rm -f conftest.$ac_objext
22931 if { (ac_try="$ac_compile"
22932 case "(($ac_try" in
22933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22934 *) ac_try_echo=$ac_try;;
22936 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22937 (eval "$ac_compile") 2>conftest.er1
22939 grep -v '^ *+' conftest.er1 >conftest.err
22941 cat conftest.err >&5
22942 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22943 (exit $ac_status); } && {
22944 test -z "$ac_c_werror_flag" ||
22945 test ! -s conftest.err
22946 } && test -s conftest.$ac_objext; then
22947 ac_header_compiler=yes
22949 echo "$as_me: failed program was
:" >&5
22950 sed 's/^/| /' conftest.$ac_ext >&5
22952 ac_header_compiler=no
22955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22956 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22957 echo "${ECHO_T}$ac_header_compiler" >&6; }
22959 # Is the header present?
22960 { echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
22961 echo $ECHO_N "checking netinet
/in.h presence...
$ECHO_C" >&6; }
22962 cat >conftest.$ac_ext <<_ACEOF
22965 cat confdefs.h >>conftest.$ac_ext
22966 cat >>conftest.$ac_ext <<_ACEOF
22967 /* end confdefs.h. */
22968 #include <netinet/in.h>
22970 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22971 case "(($ac_try" in
22972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22973 *) ac_try_echo=$ac_try;;
22975 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22976 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22978 grep -v '^ *+' conftest.er1 >conftest.err
22980 cat conftest.err >&5
22981 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22982 (exit $ac_status); } >/dev/null && {
22983 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22984 test ! -s conftest.err
22986 ac_header_preproc=yes
22988 echo "$as_me: failed program was
:" >&5
22989 sed 's/^/| /' conftest.$ac_ext >&5
22991 ac_header_preproc=no
22994 rm -f conftest.err conftest.$ac_ext
22995 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22996 echo "${ECHO_T}$ac_header_preproc" >&6; }
22998 # So? What about this header?
22999 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23001 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
23002 echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23003 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
23004 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
23005 ac_header_preproc=yes
23008 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
23009 echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
23010 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
23011 echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
23012 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
23013 echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
23014 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
23015 echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
23016 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
23017 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
23018 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
23019 echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
23023 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
23024 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
23025 if test "${ac_cv_header_netinet_in_h+set}" = set; then
23026 echo $ECHO_N "(cached
) $ECHO_C" >&6
23028 ac_cv_header_netinet_in_h=$ac_header_preproc
23030 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
23031 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
23034 if test $ac_cv_header_netinet_in_h = yes; then
23042 if test $ok_so_far = yes; then
23043 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
23044 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
23045 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
23046 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
23047 echo $ECHO_N "(cached
) $ECHO_C" >&6
23049 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
23050 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
23052 # Is the header compilable?
23053 { echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
23054 echo $ECHO_N "checking arpa
/inet.h usability...
$ECHO_C" >&6; }
23055 cat >conftest.$ac_ext <<_ACEOF
23058 cat confdefs.h >>conftest.$ac_ext
23059 cat >>conftest.$ac_ext <<_ACEOF
23060 /* end confdefs.h. */
23061 $ac_includes_default
23062 #include <arpa/inet.h>
23064 rm -f conftest.$ac_objext
23065 if { (ac_try="$ac_compile"
23066 case "(($ac_try" in
23067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23068 *) ac_try_echo=$ac_try;;
23070 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23071 (eval "$ac_compile") 2>conftest.er1
23073 grep -v '^ *+' conftest.er1 >conftest.err
23075 cat conftest.err >&5
23076 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23077 (exit $ac_status); } && {
23078 test -z "$ac_c_werror_flag" ||
23079 test ! -s conftest.err
23080 } && test -s conftest.$ac_objext; then
23081 ac_header_compiler=yes
23083 echo "$as_me: failed program was
:" >&5
23084 sed 's/^/| /' conftest.$ac_ext >&5
23086 ac_header_compiler=no
23089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23090 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23091 echo "${ECHO_T}$ac_header_compiler" >&6; }
23093 # Is the header present?
23094 { echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
23095 echo $ECHO_N "checking arpa
/inet.h presence...
$ECHO_C" >&6; }
23096 cat >conftest.$ac_ext <<_ACEOF
23099 cat confdefs.h >>conftest.$ac_ext
23100 cat >>conftest.$ac_ext <<_ACEOF
23101 /* end confdefs.h. */
23102 #include <arpa/inet.h>
23104 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23105 case "(($ac_try" in
23106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23107 *) ac_try_echo=$ac_try;;
23109 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23110 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23112 grep -v '^ *+' conftest.er1 >conftest.err
23114 cat conftest.err >&5
23115 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23116 (exit $ac_status); } >/dev/null && {
23117 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23118 test ! -s conftest.err
23120 ac_header_preproc=yes
23122 echo "$as_me: failed program was
:" >&5
23123 sed 's/^/| /' conftest.$ac_ext >&5
23125 ac_header_preproc=no
23128 rm -f conftest.err conftest.$ac_ext
23129 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23130 echo "${ECHO_T}$ac_header_preproc" >&6; }
23132 # So? What about this header?
23133 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23135 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
23136 echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23137 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
23138 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
23139 ac_header_preproc=yes
23142 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
23143 echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
23144 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
23145 echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
23146 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
23147 echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
23148 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
23149 echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
23150 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
23151 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
23152 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
23153 echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
23157 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
23158 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
23159 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
23160 echo $ECHO_N "(cached
) $ECHO_C" >&6
23162 ac_cv_header_arpa_inet_h=$ac_header_preproc
23164 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
23165 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
23168 if test $ac_cv_header_arpa_inet_h = yes; then
23176 if test $ok_so_far = yes; then
23178 cat >>confdefs.h <<\_ACEOF
23179 #define HAVE_INET_SOCKETS 1
23185 for ac_header in sys/ioctl.h
23187 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23188 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23189 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
23190 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
23191 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23192 echo $ECHO_N "(cached
) $ECHO_C" >&6
23194 ac_res=`eval echo '${'$as_ac_Header'}'`
23195 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23196 echo "${ECHO_T}$ac_res" >&6; }
23198 # Is the header compilable?
23199 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23200 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
23201 cat >conftest.$ac_ext <<_ACEOF
23204 cat confdefs.h >>conftest.$ac_ext
23205 cat >>conftest.$ac_ext <<_ACEOF
23206 /* end confdefs.h. */
23207 $ac_includes_default
23208 #include <$ac_header>
23210 rm -f conftest.$ac_objext
23211 if { (ac_try="$ac_compile"
23212 case "(($ac_try" in
23213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23214 *) ac_try_echo=$ac_try;;
23216 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23217 (eval "$ac_compile") 2>conftest.er1
23219 grep -v '^ *+' conftest.er1 >conftest.err
23221 cat conftest.err >&5
23222 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23223 (exit $ac_status); } && {
23224 test -z "$ac_c_werror_flag" ||
23225 test ! -s conftest.err
23226 } && test -s conftest.$ac_objext; then
23227 ac_header_compiler=yes
23229 echo "$as_me: failed program was
:" >&5
23230 sed 's/^/| /' conftest.$ac_ext >&5
23232 ac_header_compiler=no
23235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23236 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23237 echo "${ECHO_T}$ac_header_compiler" >&6; }
23239 # Is the header present?
23240 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23241 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
23242 cat >conftest.$ac_ext <<_ACEOF
23245 cat confdefs.h >>conftest.$ac_ext
23246 cat >>conftest.$ac_ext <<_ACEOF
23247 /* end confdefs.h. */
23248 #include <$ac_header>
23250 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23251 case "(($ac_try" in
23252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23253 *) ac_try_echo=$ac_try;;
23255 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23256 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23258 grep -v '^ *+' conftest.er1 >conftest.err
23260 cat conftest.err >&5
23261 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23262 (exit $ac_status); } >/dev/null && {
23263 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23264 test ! -s conftest.err
23266 ac_header_preproc=yes
23268 echo "$as_me: failed program was
:" >&5
23269 sed 's/^/| /' conftest.$ac_ext >&5
23271 ac_header_preproc=no
23274 rm -f conftest.err conftest.$ac_ext
23275 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23276 echo "${ECHO_T}$ac_header_preproc" >&6; }
23278 # So? What about this header?
23279 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23281 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23282 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23283 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23284 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23285 ac_header_preproc=yes
23288 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23289 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23290 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23291 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23292 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23293 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23294 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23295 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23296 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23297 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23298 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23299 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23303 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
23304 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
23305 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23306 echo $ECHO_N "(cached
) $ECHO_C" >&6
23308 eval "$as_ac_Header=\
$ac_header_preproc"
23310 ac_res=`eval echo '${'$as_ac_Header'}'`
23311 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23312 echo "${ECHO_T}$ac_res" >&6; }
23315 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23316 cat >>confdefs.h <<_ACEOF
23317 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23325 if test -f /usr/lpp/X11/bin/smt.exp; then
23327 cat >>confdefs.h <<\_ACEOF
23328 #define HAVE_AIX_SMT_EXP 1
23333 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
23334 echo $ECHO_N "checking whether system supports dynamic ptys...
$ECHO_C" >&6; }
23335 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
23336 { echo "$as_me:$LINENO: result
: yes" >&5
23337 echo "${ECHO_T}yes" >&6; }
23339 cat >>confdefs.h <<\_ACEOF
23340 #define HAVE_DEV_PTMX 1
23344 { echo "$as_me:$LINENO: result
: no
" >&5
23345 echo "${ECHO_T}no
" >&6; }
23348 { echo "$as_me:$LINENO: checking
for pid_t
" >&5
23349 echo $ECHO_N "checking
for pid_t...
$ECHO_C" >&6; }
23350 if test "${ac_cv_type_pid_t+set}" = set; then
23351 echo $ECHO_N "(cached
) $ECHO_C" >&6
23353 cat >conftest.$ac_ext <<_ACEOF
23356 cat confdefs.h >>conftest.$ac_ext
23357 cat >>conftest.$ac_ext <<_ACEOF
23358 /* end confdefs.h. */
23359 $ac_includes_default
23360 typedef pid_t ac__type_new_;
23364 if ((ac__type_new_ *) 0)
23366 if (sizeof (ac__type_new_))
23372 rm -f conftest.$ac_objext
23373 if { (ac_try="$ac_compile"
23374 case "(($ac_try" in
23375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23376 *) ac_try_echo=$ac_try;;
23378 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23379 (eval "$ac_compile") 2>conftest.er1
23381 grep -v '^ *+' conftest.er1 >conftest.err
23383 cat conftest.err >&5
23384 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23385 (exit $ac_status); } && {
23386 test -z "$ac_c_werror_flag" ||
23387 test ! -s conftest.err
23388 } && test -s conftest.$ac_objext; then
23389 ac_cv_type_pid_t=yes
23391 echo "$as_me: failed program was
:" >&5
23392 sed 's/^/| /' conftest.$ac_ext >&5
23394 ac_cv_type_pid_t=no
23397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23399 { echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
23400 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
23401 if test $ac_cv_type_pid_t = yes; then
23405 cat >>confdefs.h <<_ACEOF
23412 for ac_header in vfork.h
23414 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23415 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23416 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
23417 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
23418 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23419 echo $ECHO_N "(cached
) $ECHO_C" >&6
23421 ac_res=`eval echo '${'$as_ac_Header'}'`
23422 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23423 echo "${ECHO_T}$ac_res" >&6; }
23425 # Is the header compilable?
23426 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23427 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
23428 cat >conftest.$ac_ext <<_ACEOF
23431 cat confdefs.h >>conftest.$ac_ext
23432 cat >>conftest.$ac_ext <<_ACEOF
23433 /* end confdefs.h. */
23434 $ac_includes_default
23435 #include <$ac_header>
23437 rm -f conftest.$ac_objext
23438 if { (ac_try="$ac_compile"
23439 case "(($ac_try" in
23440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23441 *) ac_try_echo=$ac_try;;
23443 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23444 (eval "$ac_compile") 2>conftest.er1
23446 grep -v '^ *+' conftest.er1 >conftest.err
23448 cat conftest.err >&5
23449 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23450 (exit $ac_status); } && {
23451 test -z "$ac_c_werror_flag" ||
23452 test ! -s conftest.err
23453 } && test -s conftest.$ac_objext; then
23454 ac_header_compiler=yes
23456 echo "$as_me: failed program was
:" >&5
23457 sed 's/^/| /' conftest.$ac_ext >&5
23459 ac_header_compiler=no
23462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23463 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23464 echo "${ECHO_T}$ac_header_compiler" >&6; }
23466 # Is the header present?
23467 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23468 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
23469 cat >conftest.$ac_ext <<_ACEOF
23472 cat confdefs.h >>conftest.$ac_ext
23473 cat >>conftest.$ac_ext <<_ACEOF
23474 /* end confdefs.h. */
23475 #include <$ac_header>
23477 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23478 case "(($ac_try" in
23479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23480 *) ac_try_echo=$ac_try;;
23482 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23483 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23485 grep -v '^ *+' conftest.er1 >conftest.err
23487 cat conftest.err >&5
23488 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23489 (exit $ac_status); } >/dev/null && {
23490 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23491 test ! -s conftest.err
23493 ac_header_preproc=yes
23495 echo "$as_me: failed program was
:" >&5
23496 sed 's/^/| /' conftest.$ac_ext >&5
23498 ac_header_preproc=no
23501 rm -f conftest.err conftest.$ac_ext
23502 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23503 echo "${ECHO_T}$ac_header_preproc" >&6; }
23505 # So? What about this header?
23506 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23508 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23509 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23510 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23511 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23512 ac_header_preproc=yes
23515 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23516 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23517 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23518 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23519 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23520 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23521 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23522 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23523 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23524 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23525 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23526 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23530 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
23531 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
23532 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23533 echo $ECHO_N "(cached
) $ECHO_C" >&6
23535 eval "$as_ac_Header=\
$ac_header_preproc"
23537 ac_res=`eval echo '${'$as_ac_Header'}'`
23538 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23539 echo "${ECHO_T}$ac_res" >&6; }
23542 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23543 cat >>confdefs.h <<_ACEOF
23544 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23553 for ac_func in fork vfork
23555 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
23556 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
23557 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
23558 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
23559 echo $ECHO_N "(cached
) $ECHO_C" >&6
23561 cat >conftest.$ac_ext <<_ACEOF
23564 cat confdefs.h >>conftest.$ac_ext
23565 cat >>conftest.$ac_ext <<_ACEOF
23566 /* end confdefs.h. */
23567 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23568 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23569 #define $ac_func innocuous_$ac_func
23571 /* System header to define __stub macros and hopefully few prototypes,
23572 which can conflict with char $ac_func (); below.
23573 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23574 <limits.h> exists even on freestanding compilers. */
23577 # include <limits.h>
23579 # include <assert.h>
23584 /* Override any GCC internal prototype to avoid an error.
23585 Use char because int might match the return type of a GCC
23586 builtin and then its argument prototype would still apply. */
23591 /* The GNU C library defines this for functions which it implements
23592 to always fail with ENOSYS. Some functions are actually named
23593 something starting with __ and the normal name is an alias. */
23594 #if defined __stub_$ac_func || defined __stub___$ac_func
23601 return $ac_func ();
23606 rm -f conftest.$ac_objext conftest$ac_exeext
23607 if { (ac_try="$ac_link"
23608 case "(($ac_try" in
23609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23610 *) ac_try_echo=$ac_try;;
23612 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23613 (eval "$ac_link") 2>conftest.er1
23615 grep -v '^ *+' conftest.er1 >conftest.err
23617 cat conftest.err >&5
23618 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23619 (exit $ac_status); } && {
23620 test -z "$ac_c_werror_flag" ||
23621 test ! -s conftest.err
23622 } && test -s conftest$ac_exeext &&
23623 $as_test_x conftest$ac_exeext; then
23624 eval "$as_ac_var=yes"
23626 echo "$as_me: failed program was
:" >&5
23627 sed 's/^/| /' conftest.$ac_ext >&5
23629 eval "$as_ac_var=no
"
23632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23633 conftest$ac_exeext conftest.$ac_ext
23635 ac_res=`eval echo '${'$as_ac_var'}'`
23636 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23637 echo "${ECHO_T}$ac_res" >&6; }
23638 if test `eval echo '${'$as_ac_var'}'` = yes; then
23639 cat >>confdefs.h <<_ACEOF
23640 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
23646 if test "x
$ac_cv_func_fork" = xyes; then
23647 { echo "$as_me:$LINENO: checking
for working fork
" >&5
23648 echo $ECHO_N "checking
for working fork...
$ECHO_C" >&6; }
23649 if test "${ac_cv_func_fork_works+set}" = set; then
23650 echo $ECHO_N "(cached
) $ECHO_C" >&6
23652 if test "$cross_compiling" = yes; then
23653 ac_cv_func_fork_works=cross
23655 cat >conftest.$ac_ext <<_ACEOF
23658 cat confdefs.h >>conftest.$ac_ext
23659 cat >>conftest.$ac_ext <<_ACEOF
23660 /* end confdefs.h. */
23661 $ac_includes_default
23666 /* By Ruediger Kuhlmann. */
23667 return fork () < 0;
23673 rm -f conftest$ac_exeext
23674 if { (ac_try="$ac_link"
23675 case "(($ac_try" in
23676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23677 *) ac_try_echo=$ac_try;;
23679 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23680 (eval "$ac_link") 2>&5
23682 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23683 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23684 { (case "(($ac_try" in
23685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23686 *) ac_try_echo=$ac_try;;
23688 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23689 (eval "$ac_try") 2>&5
23691 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23692 (exit $ac_status); }; }; then
23693 ac_cv_func_fork_works=yes
23695 echo "$as_me: program exited with status
$ac_status" >&5
23696 echo "$as_me: failed program was
:" >&5
23697 sed 's/^/| /' conftest.$ac_ext >&5
23699 ( exit $ac_status )
23700 ac_cv_func_fork_works=no
23702 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23707 { echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
23708 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23711 ac_cv_func_fork_works=$ac_cv_func_fork
23713 if test "x
$ac_cv_func_fork_works" = xcross; then
23715 *-*-amigaos* | *-*-msdosdjgpp*)
23716 # Override, as these systems have only a dummy fork() stub
23717 ac_cv_func_fork_works=no
23720 ac_cv_func_fork_works=yes
23723 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
23724 echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
23726 ac_cv_func_vfork_works=$ac_cv_func_vfork
23727 if test "x
$ac_cv_func_vfork" = xyes; then
23728 { echo "$as_me:$LINENO: checking
for working vfork
" >&5
23729 echo $ECHO_N "checking
for working vfork...
$ECHO_C" >&6; }
23730 if test "${ac_cv_func_vfork_works+set}" = set; then
23731 echo $ECHO_N "(cached
) $ECHO_C" >&6
23733 if test "$cross_compiling" = yes; then
23734 ac_cv_func_vfork_works=cross
23736 cat >conftest.$ac_ext <<_ACEOF
23739 cat confdefs.h >>conftest.$ac_ext
23740 cat >>conftest.$ac_ext <<_ACEOF
23741 /* end confdefs.h. */
23742 /* Thanks to Paul Eggert for this test. */
23743 $ac_includes_default
23744 #include <sys/wait.h>
23745 #ifdef HAVE_VFORK_H
23746 # include <vfork.h>
23748 /* On some sparc systems, changes by the child to local and incoming
23749 argument registers are propagated back to the parent. The compiler
23750 is told about this with #include <vfork.h>, but some compilers
23751 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23752 static variable whose address is put into a register that is
23753 clobbered by the vfork. */
23756 sparc_address_test (int arg)
23758 sparc_address_test (arg) int arg;
23761 static pid_t child;
23779 pid_t parent = getpid ();
23782 sparc_address_test (0);
23787 /* Here is another test for sparc vfork register problems. This
23788 test uses lots of local variables, at least as many local
23789 variables as main has allocated so far including compiler
23790 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23791 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23792 reuse the register of parent for one of the local variables,
23793 since it will think that parent can't possibly be used any more
23794 in this routine. Assigning to the local variable will thus
23795 munge parent in the parent process. */
23797 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23798 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23799 /* Convince the compiler that p..p7 are live; otherwise, it might
23800 use the same hardware register for all 8 local variables. */
23801 if (p != p1 || p != p2 || p != p3 || p != p4
23802 || p != p5 || p != p6 || p != p7)
23805 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23806 from child file descriptors. If the child closes a descriptor
23807 before it execs or exits, this munges the parent's descriptor
23808 as well. Test for this by closing stdout in the child. */
23809 _exit(close(fileno(stdout)) != 0);
23814 while (wait(&status) != child)
23817 /* Was there some problem with vforking? */
23820 /* Did the child fail? (This shouldn't happen.) */
23823 /* Did the vfork/compiler bug occur? */
23824 || parent != getpid()
23826 /* Did the file descriptor bug occur? */
23827 || fstat(fileno(stdout), &st) != 0
23832 rm -f conftest$ac_exeext
23833 if { (ac_try="$ac_link"
23834 case "(($ac_try" in
23835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23836 *) ac_try_echo=$ac_try;;
23838 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23839 (eval "$ac_link") 2>&5
23841 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23842 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23843 { (case "(($ac_try" in
23844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23845 *) ac_try_echo=$ac_try;;
23847 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23848 (eval "$ac_try") 2>&5
23850 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23851 (exit $ac_status); }; }; then
23852 ac_cv_func_vfork_works=yes
23854 echo "$as_me: program exited with status
$ac_status" >&5
23855 echo "$as_me: failed program was
:" >&5
23856 sed 's/^/| /' conftest.$ac_ext >&5
23858 ( exit $ac_status )
23859 ac_cv_func_vfork_works=no
23861 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23866 { echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
23867 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23870 if test "x
$ac_cv_func_fork_works" = xcross; then
23871 ac_cv_func_vfork_works=$ac_cv_func_vfork
23872 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
23873 echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
23876 if test "x
$ac_cv_func_vfork_works" = xyes; then
23878 cat >>confdefs.h <<\_ACEOF
23879 #define HAVE_WORKING_VFORK 1
23884 cat >>confdefs.h <<\_ACEOF
23889 if test "x
$ac_cv_func_fork_works" = xyes; then
23891 cat >>confdefs.h <<\_ACEOF
23892 #define HAVE_WORKING_FORK 1
23898 { echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
23899 echo $ECHO_N "checking
for nl_langinfo and CODESET...
$ECHO_C" >&6; }
23900 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23901 echo $ECHO_N "(cached
) $ECHO_C" >&6
23903 cat >conftest.$ac_ext <<_ACEOF
23906 cat confdefs.h >>conftest.$ac_ext
23907 cat >>conftest.$ac_ext <<_ACEOF
23908 /* end confdefs.h. */
23909 #include <langinfo.h>
23913 char* cs = nl_langinfo(CODESET);
23918 rm -f conftest.$ac_objext conftest$ac_exeext
23919 if { (ac_try="$ac_link"
23920 case "(($ac_try" in
23921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23922 *) ac_try_echo=$ac_try;;
23924 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23925 (eval "$ac_link") 2>conftest.er1
23927 grep -v '^ *+' conftest.er1 >conftest.err
23929 cat conftest.err >&5
23930 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23931 (exit $ac_status); } && {
23932 test -z "$ac_c_werror_flag" ||
23933 test ! -s conftest.err
23934 } && test -s conftest$ac_exeext &&
23935 $as_test_x conftest$ac_exeext; then
23936 emacs_cv_langinfo_codeset=yes
23938 echo "$as_me: failed program was
:" >&5
23939 sed 's/^/| /' conftest.$ac_ext >&5
23941 emacs_cv_langinfo_codeset=no
23944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23945 conftest$ac_exeext conftest.$ac_ext
23948 { echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
23949 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23950 if test $emacs_cv_langinfo_codeset = yes; then
23952 cat >>confdefs.h <<\_ACEOF
23953 #define HAVE_LANGINFO_CODESET 1
23958 { echo "$as_me:$LINENO: checking
for size_t
" >&5
23959 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
23960 if test "${ac_cv_type_size_t+set}" = set; then
23961 echo $ECHO_N "(cached
) $ECHO_C" >&6
23963 cat >conftest.$ac_ext <<_ACEOF
23966 cat confdefs.h >>conftest.$ac_ext
23967 cat >>conftest.$ac_ext <<_ACEOF
23968 /* end confdefs.h. */
23969 $ac_includes_default
23970 typedef size_t ac__type_new_;
23974 if ((ac__type_new_ *) 0)
23976 if (sizeof (ac__type_new_))
23982 rm -f conftest.$ac_objext
23983 if { (ac_try="$ac_compile"
23984 case "(($ac_try" in
23985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23986 *) ac_try_echo=$ac_try;;
23988 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23989 (eval "$ac_compile") 2>conftest.er1
23991 grep -v '^ *+' conftest.er1 >conftest.err
23993 cat conftest.err >&5
23994 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23995 (exit $ac_status); } && {
23996 test -z "$ac_c_werror_flag" ||
23997 test ! -s conftest.err
23998 } && test -s conftest.$ac_objext; then
23999 ac_cv_type_size_t=yes
24001 echo "$as_me: failed program was
:" >&5
24002 sed 's/^/| /' conftest.$ac_ext >&5
24004 ac_cv_type_size_t=no
24007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24009 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
24010 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
24011 if test $ac_cv_type_size_t = yes; then
24013 cat >>confdefs.h <<_ACEOF
24014 #define HAVE_SIZE_T 1
24021 { echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
24022 echo $ECHO_N "checking
for mbstate_t...
$ECHO_C" >&6; }
24023 if test "${ac_cv_type_mbstate_t+set}" = set; then
24024 echo $ECHO_N "(cached
) $ECHO_C" >&6
24026 cat >conftest.$ac_ext <<_ACEOF
24029 cat confdefs.h >>conftest.$ac_ext
24030 cat >>conftest.$ac_ext <<_ACEOF
24031 /* end confdefs.h. */
24032 $ac_includes_default
24033 # include <wchar.h>
24037 mbstate_t x; return sizeof x;
24042 rm -f conftest.$ac_objext
24043 if { (ac_try="$ac_compile"
24044 case "(($ac_try" in
24045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24046 *) ac_try_echo=$ac_try;;
24048 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24049 (eval "$ac_compile") 2>conftest.er1
24051 grep -v '^ *+' conftest.er1 >conftest.err
24053 cat conftest.err >&5
24054 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24055 (exit $ac_status); } && {
24056 test -z "$ac_c_werror_flag" ||
24057 test ! -s conftest.err
24058 } && test -s conftest.$ac_objext; then
24059 ac_cv_type_mbstate_t=yes
24061 echo "$as_me: failed program was
:" >&5
24062 sed 's/^/| /' conftest.$ac_ext >&5
24064 ac_cv_type_mbstate_t=no
24067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24069 { echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
24070 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
24071 if test $ac_cv_type_mbstate_t = yes; then
24073 cat >>confdefs.h <<\_ACEOF
24074 #define HAVE_MBSTATE_T 1
24079 cat >>confdefs.h <<\_ACEOF
24080 #define mbstate_t int
24085 { echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
24086 echo $ECHO_N "checking
for C restrict keyword...
$ECHO_C" >&6; }
24087 if test "${emacs_cv_c_restrict+set}" = set; then
24088 echo $ECHO_N "(cached
) $ECHO_C" >&6
24090 cat >conftest.$ac_ext <<_ACEOF
24093 cat confdefs.h >>conftest.$ac_ext
24094 cat >>conftest.$ac_ext <<_ACEOF
24095 /* end confdefs.h. */
24096 void fred (int *restrict x);
24105 rm -f conftest.$ac_objext
24106 if { (ac_try="$ac_compile"
24107 case "(($ac_try" in
24108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24109 *) ac_try_echo=$ac_try;;
24111 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24112 (eval "$ac_compile") 2>conftest.er1
24114 grep -v '^ *+' conftest.er1 >conftest.err
24116 cat conftest.err >&5
24117 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24118 (exit $ac_status); } && {
24119 test -z "$ac_c_werror_flag" ||
24120 test ! -s conftest.err
24121 } && test -s conftest.$ac_objext; then
24122 emacs_cv_c_restrict=yes
24124 echo "$as_me: failed program was
:" >&5
24125 sed 's/^/| /' conftest.$ac_ext >&5
24127 cat >conftest.$ac_ext <<_ACEOF
24130 cat confdefs.h >>conftest.$ac_ext
24131 cat >>conftest.$ac_ext <<_ACEOF
24132 /* end confdefs.h. */
24133 void fred (int *__restrict x);
24142 rm -f conftest.$ac_objext
24143 if { (ac_try="$ac_compile"
24144 case "(($ac_try" in
24145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24146 *) ac_try_echo=$ac_try;;
24148 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24149 (eval "$ac_compile") 2>conftest.er1
24151 grep -v '^ *+' conftest.er1 >conftest.err
24153 cat conftest.err >&5
24154 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24155 (exit $ac_status); } && {
24156 test -z "$ac_c_werror_flag" ||
24157 test ! -s conftest.err
24158 } && test -s conftest.$ac_objext; then
24159 emacs_cv_c_restrict=__restrict
24161 echo "$as_me: failed program was
:" >&5
24162 sed 's/^/| /' conftest.$ac_ext >&5
24164 emacs_cv_c_restrict=no
24167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24172 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
24173 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
24174 case "$emacs_cv_c_restrict" in
24175 yes) emacs_restrict=restrict;;
24176 no) emacs_restrict="";;
24177 *) emacs_restrict="$emacs_cv_c_restrict";;
24179 if test "$emacs_restrict" != __restrict; then
24181 cat >>confdefs.h <<_ACEOF
24182 #define __restrict $emacs_restrict
24187 { echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
24188 echo $ECHO_N "checking
for C restricted array declarations...
$ECHO_C" >&6; }
24189 if test "${emacs_cv_c_restrict_arr+set}" = set; then
24190 echo $ECHO_N "(cached
) $ECHO_C" >&6
24192 cat >conftest.$ac_ext <<_ACEOF
24195 cat confdefs.h >>conftest.$ac_ext
24196 cat >>conftest.$ac_ext <<_ACEOF
24197 /* end confdefs.h. */
24198 void fred (int x[__restrict]);
24207 rm -f conftest.$ac_objext
24208 if { (ac_try="$ac_compile"
24209 case "(($ac_try" in
24210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24211 *) ac_try_echo=$ac_try;;
24213 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24214 (eval "$ac_compile") 2>conftest.er1
24216 grep -v '^ *+' conftest.er1 >conftest.err
24218 cat conftest.err >&5
24219 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24220 (exit $ac_status); } && {
24221 test -z "$ac_c_werror_flag" ||
24222 test ! -s conftest.err
24223 } && test -s conftest.$ac_objext; then
24224 emacs_cv_c_restrict_arr=yes
24226 echo "$as_me: failed program was
:" >&5
24227 sed 's/^/| /' conftest.$ac_ext >&5
24229 emacs_cv_c_restrict_arr=no
24232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24234 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
24235 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
24236 if test "$emacs_cv_c_restrict_arr" = yes; then
24238 cat >>confdefs.h <<\_ACEOF
24239 #define __restrict_arr __restrict
24246 # Set up the CFLAGS for real compilation, so we can substitute it.
24247 CFLAGS="$REAL_CFLAGS"
24248 CPPFLAGS="$REAL_CPPFLAGS"
24250 #### Find out which version of Emacs this is.
24251 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
24252 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
24253 if test x"${version}" = x; then
24254 { { echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&5
24255 echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&2;}
24256 { (exit 1); exit 1; }; }
24259 ### Specify what sort of things we'll be editing into Makefile and config.h.
24260 ### Use configuration here uncanonicalized to avoid exceeding size limits.
24296 cat >>confdefs.h <<_ACEOF
24297 #define EMACS_CONFIGURATION "${canonical}"
24301 cat >>confdefs.h <<_ACEOF
24302 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
24306 cat >>confdefs.h <<_ACEOF
24307 #define config_machfile "${machfile}"
24311 cat >>confdefs.h <<_ACEOF
24312 #define config_opsysfile "${opsysfile}"
24316 cat >>confdefs.h <<_ACEOF
24317 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
24321 cat >>confdefs.h <<_ACEOF
24322 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
24326 cat >>confdefs.h <<_ACEOF
24327 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
24331 cat >>confdefs.h <<_ACEOF
24332 #define UNEXEC_SRC ${UNEXEC_SRC}
24336 if test "${HAVE_X_WINDOWS}" = "yes" ; then
24338 cat >>confdefs.h <<\_ACEOF
24339 #define HAVE_X_WINDOWS 1
24343 if test "${USE_X_TOOLKIT}" != "none
" ; then
24345 cat >>confdefs.h <<\_ACEOF
24346 #define USE_X_TOOLKIT 1
24350 if test "${HAVE_X11}" = "yes" ; then
24352 cat >>confdefs.h <<\_ACEOF
24357 if test "${HAVE_XFREE386}" = "yes" ; then
24359 cat >>confdefs.h <<\_ACEOF
24360 #define HAVE_XFREE386 1
24364 if test "${HAVE_MENUS}" = "yes" ; then
24366 cat >>confdefs.h <<\_ACEOF
24367 #define HAVE_MENUS 1
24371 if test "${GNU_MALLOC}" = "yes" ; then
24373 cat >>confdefs.h <<\_ACEOF
24374 #define GNU_MALLOC 1
24378 if test "${REL_ALLOC}" = "yes" ; then
24380 cat >>confdefs.h <<\_ACEOF
24381 #define REL_ALLOC 1
24391 #### Report on what we decided to do.
24392 #### Report GTK as a toolkit, even if it doesn't use Xt.
24393 #### It makes printing result more understandable as using GTK sets
24394 #### toolkit_scroll_bars to yes by default.
24395 if test "${HAVE_GTK}" = "yes"; then
24400 Configured
for \
`${canonical}'.
24402 Where should the build process find the source code? ${srcdir}
24403 What operating system and machine description files should Emacs use?
24404 \`${opsysfile}' and \`${machfile}'
24405 What compiler should emacs be built with?
${CC} ${CFLAGS}
24406 Should Emacs use the GNU version of malloc?
${GNU_MALLOC}${GNU_MALLOC_reason}
24407 Should Emacs use a relocating allocator
for buffers?
${REL_ALLOC}
24408 Should Emacs use mmap
(2) for buffer allocation?
$use_mmap_for_buffers
24409 What window system should Emacs use?
${window_system}
24410 What toolkit should Emacs use?
${USE_X_TOOLKIT}"
24412 if test -n "${x_includes}"; then
24413 echo " Where
do we
find X Windows header files?
${x_includes}"
24415 echo " Where
do we
find X Windows header files? Standard
dirs"
24417 if test -n "${x_libraries}"; then
24418 echo " Where
do we
find X Windows libraries?
${x_libraries}"
24420 echo " Where
do we
find X Windows libraries? Standard
dirs"
24423 echo " Does Emacs use
-lXaw3d?
${HAVE_XAW3D}"
24424 echo " Does Emacs use
-lXpm?
${HAVE_XPM}"
24425 echo " Does Emacs use
-ljpeg?
${HAVE_JPEG}"
24426 echo " Does Emacs use
-ltiff?
${HAVE_TIFF}"
24427 echo " Does Emacs use a gif library?
${HAVE_GIF} $ac_gif_lib_name"
24428 echo " Does Emacs use
-lpng?
${HAVE_PNG}"
24429 echo " Does Emacs use
-lrsvg-2?
${HAVE_RSVG}"
24430 echo " Does Emacs use
-lgpm?
${HAVE_GPM}"
24431 echo " Does Emacs use X toolkit scroll bars?
${USE_TOOLKIT_SCROLL_BARS}"
24434 if test $USE_XASSERTS = yes; then
24435 echo " Compiling with asserts turned on.
"
24436 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
24440 if test "$USE_X_TOOLKIT" = GTK; then
24441 case "$canonical" in
24443 echo "There are known problems with Emacs and Gtk
+ on cygwin
, so you
24444 will probably get a crash on startup. If this happens
, please use another
24445 toolkit
for Emacs. See etc
/PROBLEMS
for more information.
"
24451 if test "$HAVE_CARBON" = "yes"; then
24453 echo "Warning
: The Mac Carbon port is currently unsupported and has
24454 known problems. It is not recommended
for use by non-developers.
24455 Read the emacs-devel archives
for more information.
"
24459 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux
"; then
24460 echo "D-Bus integration has been tested
for GNU
/Linux only.
"
24465 # Remove any trailing slashes in these variables.
24466 test "${prefix}" != NONE &&
24467 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
24468 test "${exec_prefix}" != NONE &&
24469 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
24471 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
24472 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
24473 ## from Makefile.c can correctly provide the arg `-traditional' to the
24476 cat >conftest.$ac_ext <<_ACEOF
24479 cat confdefs.h >>conftest.$ac_ext
24480 cat >>conftest.$ac_ext <<_ACEOF
24481 /* end confdefs.h. */
24484 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
24485 $EGREP "yes..
yes" >/dev/null 2>&1; then
24486 CPP_NEED_TRADITIONAL=no
24488 CPP_NEED_TRADITIONAL=yes
24493 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
"
24495 ac_config_commands="$ac_config_commands default
"
24497 cat >confcache <<\_ACEOF
24498 # This file is a shell script that caches the results of configure
24499 # tests run on this system so they can be shared between configure
24500 # scripts and configure runs, see configure's option --config-cache.
24501 # It is not useful on other systems. If it contains results you don't
24502 # want to keep, you may remove or edit it.
24504 # config.status only pays attention to the cache file if you give it
24505 # the --recheck option to rerun configure.
24507 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24508 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24509 # following values.
24513 # The following way of writing the cache mishandles newlines in values,
24514 # but we know of no workaround that is simple, portable, and efficient.
24515 # So, we kill variables containing newlines.
24516 # Ultrix sh set writes to stderr and can't be redirected directly,
24517 # and sets the high bit in the cache file unless we assign to the vars.
24519 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24520 eval ac_val=\$$ac_var
24524 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
24525 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
24528 _ | IFS | as_nl) ;; #(
24529 *) $as_unset $ac_var ;;
24535 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24536 *${as_nl}ac_space=\ *)
24537 # `set' does not quote correctly, so add quotes (double-quote
24538 # substitution turns \\\\ into \\, and sed turns \\ into \).
24541 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
24544 # `set' quotes correctly as required by POSIX, so do not add quotes.
24545 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
24554 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24556 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24558 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24559 if test -w "$cache_file"; then
24560 test "x
$cache_file" != "x
/dev
/null
" &&
24561 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
24562 echo "$as_me: updating cache
$cache_file" >&6;}
24563 cat confcache >$cache_file
24565 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
24566 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
24571 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
24572 # Let make expand exec_prefix.
24573 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
24575 DEFS=-DHAVE_CONFIG_H
24579 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
24580 # 1. Remove the extension, and $U if already installed.
24581 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24582 ac_i=`echo "$ac_i" | sed "$ac_script"`
24583 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24584 # will be set to the directory where LIBOBJS objects are built.
24585 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
24586 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
24588 LIBOBJS=$ac_libobjs
24590 LTLIBOBJS=$ac_ltlibobjs
24594 : ${CONFIG_STATUS=./config.status}
24595 ac_clean_files_save=$ac_clean_files
24596 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24597 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
24598 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
24599 cat >$CONFIG_STATUS <<_ACEOF
24601 # Generated by $as_me.
24602 # Run this file to recreate the current configuration.
24603 # Compiler output produced by configure, useful for debugging
24604 # configure, is in config.log if it exists.
24607 ac_cs_recheck=false
24609 SHELL=\${CONFIG_SHELL-$SHELL}
24612 cat >>$CONFIG_STATUS <<\_ACEOF
24613 ## --------------------- ##
24614 ## M4sh Initialization. ##
24615 ## --------------------- ##
24617 # Be more Bourne compatible
24618 DUALCASE=1; export DUALCASE # for MKS sh
24619 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24622 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24623 # is contrary to our usage. Disable this feature.
24624 alias -g '${1+"$@"}'='"$@
"'
24625 setopt NO_GLOB_SUBST
24627 case `(set -o) 2>/dev/null` in
24628 *posix*) set -o posix ;;
24637 # Avoid depending upon Character Ranges.
24638 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24639 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24640 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24641 as_cr_digits='0123456789'
24642 as_cr_alnum=$as_cr_Letters$as_cr_digits
24644 # The user is always right.
24645 if test "${PATH_SEPARATOR+set}" != set; then
24646 echo "#! /bin/sh" >conf$$.sh
24647 echo "exit 0" >>conf$$.sh
24649 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
24657 # Support unset when possible.
24658 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
24666 # We need space, tab and new line, in precisely that order. Quoting is
24667 # there to prevent editors from complaining about space-tab.
24668 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24669 # splitting by setting IFS to empty value.)
24674 # Find who we are. Look in the path if we contain no directory separator.
24676 *[\\/]* ) as_myself
=$0 ;;
24677 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24678 for as_dir
in $PATH
24681 test -z "$as_dir" && as_dir
=.
24682 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
24688 # We did not find ourselves, most probably we were run as `sh COMMAND'
24689 # in which case we are not to be found in the path.
24690 if test "x$as_myself" = x
; then
24693 if test ! -f "$as_myself"; then
24694 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24695 { (exit 1); exit 1; }
24698 # Work around bugs in pre-3.0 UWIN ksh.
24699 for as_var
in ENV MAIL MAILPATH
24700 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24708 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24709 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24710 LC_TELEPHONE LC_TIME
24712 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24713 eval $as_var=C
; export $as_var
24715 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24719 # Required to use basename.
24720 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24721 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24727 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24728 as_basename
=basename
24734 # Name of the executable.
24735 as_me
=`$as_basename -- "$0" ||
24736 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24737 X"$0" : 'X\(//\)$' \| \
24738 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24740 sed '/^.*\/\([^/][^/]*\)\/*$/{
24759 as_lineno_1
=$LINENO
24760 as_lineno_2
=$LINENO
24761 test "x$as_lineno_1" != "x$as_lineno_2" &&
24762 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
24764 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24765 # uniformly replaced by the line number. The first 'sed' inserts a
24766 # line-number line after each line using $LINENO; the second 'sed'
24767 # does the real work. The second script uses 'N' to pair each
24768 # line-number line with the line containing $LINENO, and appends
24769 # trailing '-' during substitution so that $LINENO is not a special
24770 # case at line end.
24771 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24772 # scripts with optimization help from Paolo Bonzini. Blame Lee
24773 # E. McMahon (1931-1989) for sed's syntax. :-)
24785 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24788 ' >$as_me.lineno
&&
24789 chmod +x
"$as_me.lineno" ||
24790 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24791 { (exit 1); exit 1; }; }
24793 # Don't try to exec as it changes $[0], causing all sort of problems
24794 # (the dirname of $[0] is not the place where we might find the
24795 # original and so on. Autoconf is especially sensitive to this).
24796 .
"./$as_me.lineno"
24797 # Exit status is that of the last command.
24802 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
24808 ECHO_C
= ECHO_N
= ECHO_T
=
24809 case `echo -n x` in
24811 case `echo 'x\c'` in
24812 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
24819 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24820 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24826 rm -f conf$$ conf$$.exe conf$$.
file
24827 if test -d conf$$.dir
; then
24828 rm -f conf$$.dir
/conf$$.
file
24834 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
24836 # ... but there are two gotchas:
24837 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24838 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24839 # In both cases, we have to default to `cp -p'.
24840 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
24842 elif ln conf$$.
file conf$$
2>/dev
/null
; then
24847 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
24848 rmdir conf$$.dir
2>/dev
/null
24850 if mkdir
-p .
2>/dev
/null
; then
24853 test -d .
/-p && rmdir .
/-p
24857 if test -x / >/dev
/null
2>&1; then
24858 as_test_x
='test -x'
24860 if ls -dL / >/dev
/null
2>&1; then
24867 if test -d "$1"; then
24873 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24874 ???[sx]*):;;*)false;;esac;fi
24878 as_executable_p
=$as_test_x
24880 # Sed expression to map a string onto a valid CPP name.
24881 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24883 # Sed expression to map a string onto a valid variable name.
24884 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24889 # Save the log message, to keep $[0] and so on meaningful, and to
24890 # report actual input values of CONFIG_FILES etc. instead of their
24891 # values after options handling.
24893 This file was extended by emacs $as_me 23.0.50, which was
24894 generated by GNU Autoconf 2.61. Invocation command line was
24896 CONFIG_FILES = $CONFIG_FILES
24897 CONFIG_HEADERS = $CONFIG_HEADERS
24898 CONFIG_LINKS = $CONFIG_LINKS
24899 CONFIG_COMMANDS = $CONFIG_COMMANDS
24902 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24907 cat >>$CONFIG_STATUS <<_ACEOF
24908 # Files that config.status was made for.
24909 config_files="$ac_config_files"
24910 config_headers="$ac_config_headers"
24911 config_commands="$ac_config_commands"
24915 cat >>$CONFIG_STATUS <<\_ACEOF
24917 \`$as_me' instantiates files from templates according to the
24918 current configuration.
24920 Usage: $0 [OPTIONS] [FILE]...
24922 -h, --help print this help, then exit
24923 -V, --version print version number and configuration settings, then exit
24924 -q, --quiet do not print progress messages
24925 -d, --debug don't remove temporary files
24926 --recheck update $as_me by reconfiguring in the same conditions
24927 --file=FILE[:TEMPLATE]
24928 instantiate the configuration file FILE
24929 --header=FILE[:TEMPLATE]
24930 instantiate the configuration header FILE
24932 Configuration files:
24935 Configuration headers:
24938 Configuration commands:
24941 Report bugs to <bug-autoconf@gnu.org>."
24944 cat >>$CONFIG_STATUS <<_ACEOF
24946 emacs config.status 23.0.50
24947 configured by $0, generated by GNU Autoconf 2.61,
24948 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24950 Copyright (C) 2006 Free Software Foundation, Inc.
24951 This config.status script is free software; the Free Software Foundation
24952 gives unlimited permission to copy, distribute and modify it."
24959 cat >>$CONFIG_STATUS <<\_ACEOF
24960 # If no file are specified by the user, then we need to provide default
24961 # value. By we need to know if files were specified by the user.
24967 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
24968 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
24979 # Handling of the options.
24980 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
24982 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
24983 echo "$ac_cs_version"; exit ;;
24984 --debug |
--debu |
--deb |
--de |
--d |
-d )
24986 --file |
--fil |
--fi |
--f )
24988 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
24989 ac_need_defaults
=false
;;
24990 --header |
--heade |
--head |
--hea )
24992 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
24993 ac_need_defaults
=false
;;
24995 # Conflict between --help and --header
24996 { echo "$as_me: error: ambiguous option: $1
24997 Try \`$0 --help' for more information." >&2
24998 { (exit 1); exit 1; }; };;
24999 --help |
--hel |
-h )
25000 echo "$ac_cs_usage"; exit ;;
25001 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
25002 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
25005 # This is an error.
25006 -*) { echo "$as_me: error: unrecognized option: $1
25007 Try \`$0 --help' for more information." >&2
25008 { (exit 1); exit 1; }; } ;;
25010 *) ac_config_targets
="$ac_config_targets $1"
25011 ac_need_defaults
=false
;;
25017 ac_configure_extra_args
=
25019 if $ac_cs_silent; then
25021 ac_configure_extra_args
="$ac_configure_extra_args --silent"
25025 cat >>$CONFIG_STATUS <<_ACEOF
25026 if \$ac_cs_recheck; then
25027 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25028 CONFIG_SHELL=$SHELL
25029 export CONFIG_SHELL
25030 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25034 cat >>$CONFIG_STATUS <<\_ACEOF
25038 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25039 ## Running $as_me. ##
25045 cat >>$CONFIG_STATUS <<_ACEOF
25049 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
25053 cat >>$CONFIG_STATUS <<\_ACEOF
25055 # Handling of arguments.
25056 for ac_config_target
in $ac_config_targets
25058 case $ac_config_target in
25059 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
25060 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
25061 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
25062 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
25063 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
25064 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
25065 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
25066 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
25067 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
25068 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
25069 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
25070 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
25071 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
25073 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25074 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25075 { (exit 1); exit 1; }; };;
25080 # If the user did not use the arguments to specify the items to instantiate,
25081 # then the envvar interface is used. Set only those that are not.
25082 # We use the long form for the default assignment because of an extremely
25083 # bizarre bug on SunOS 4.1.3.
25084 if $ac_need_defaults; then
25085 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
25086 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
25087 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
25090 # Have a temporary directory for convenience. Make it in the build tree
25091 # simply because there is no reason against having it here, and in addition,
25092 # creating and moving files from /tmp can sometimes cause problems.
25093 # Hook for its removal unless debugging.
25094 # Note that there is a small window in which the directory will not be cleaned:
25095 # after its creation but before its name has been assigned to `$tmp'.
25099 trap 'exit_status=$?
25100 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25102 trap '{ (exit 1); exit 1; }' 1 2 13 15
25104 # Create a (secure) tmp directory for tmp files.
25107 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25108 test -n "$tmp" && test -d "$tmp"
25111 tmp
=.
/conf$$
-$RANDOM
25112 (umask 077 && mkdir
"$tmp")
25115 echo "$me: cannot create a temporary directory in ." >&2
25116 { (exit 1); exit 1; }
25120 # Set up the sed scripts for CONFIG_FILES section.
25123 # No need to generate the scripts if there are no CONFIG_FILES.
25124 # This happens for instance when ./config.status config.h
25125 if test -n "$CONFIG_FILES"; then
25132 for ac_last_try
in false false false false false
:; do
25133 cat >conf$
$subs.
sed <<_ACEOF
25134 SHELL!$SHELL$ac_delim
25135 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25136 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25137 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25138 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25139 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25140 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25141 exec_prefix!$exec_prefix$ac_delim
25142 prefix!$prefix$ac_delim
25143 program_transform_name!$program_transform_name$ac_delim
25144 bindir!$bindir$ac_delim
25145 sbindir!$sbindir$ac_delim
25146 libexecdir!$libexecdir$ac_delim
25147 datarootdir!$datarootdir$ac_delim
25148 datadir!$datadir$ac_delim
25149 sysconfdir!$sysconfdir$ac_delim
25150 sharedstatedir!$sharedstatedir$ac_delim
25151 localstatedir!$localstatedir$ac_delim
25152 includedir!$includedir$ac_delim
25153 oldincludedir!$oldincludedir$ac_delim
25154 docdir!$docdir$ac_delim
25155 infodir!$infodir$ac_delim
25156 htmldir!$htmldir$ac_delim
25157 dvidir!$dvidir$ac_delim
25158 pdfdir!$pdfdir$ac_delim
25159 psdir!$psdir$ac_delim
25160 libdir!$libdir$ac_delim
25161 localedir!$localedir$ac_delim
25162 mandir!$mandir$ac_delim
25163 DEFS!$DEFS$ac_delim
25164 ECHO_C!$ECHO_C$ac_delim
25165 ECHO_N!$ECHO_N$ac_delim
25166 ECHO_T!$ECHO_T$ac_delim
25167 LIBS!$LIBS$ac_delim
25168 build_alias!$build_alias$ac_delim
25169 host_alias!$host_alias$ac_delim
25170 target_alias!$target_alias$ac_delim
25171 MAINT!$MAINT$ac_delim
25172 build!$build$ac_delim
25173 build_cpu!$build_cpu$ac_delim
25174 build_vendor!$build_vendor$ac_delim
25175 build_os!$build_os$ac_delim
25176 host!$host$ac_delim
25177 host_cpu!$host_cpu$ac_delim
25178 host_vendor!$host_vendor$ac_delim
25179 host_os!$host_os$ac_delim
25181 CFLAGS!$CFLAGS$ac_delim
25182 LDFLAGS!$LDFLAGS$ac_delim
25183 CPPFLAGS!$CPPFLAGS$ac_delim
25184 ac_ct_CC!$ac_ct_CC$ac_delim
25185 EXEEXT!$EXEEXT$ac_delim
25186 OBJEXT!$OBJEXT$ac_delim
25188 GREP!$GREP$ac_delim
25189 EGREP!$EGREP$ac_delim
25190 LN_S!$LN_S$ac_delim
25191 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
25192 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
25193 INSTALL_DATA!$INSTALL_DATA$ac_delim
25194 RANLIB!$RANLIB$ac_delim
25195 INSTALL_INFO!$INSTALL_INFO$ac_delim
25196 GZIP_PROG!$GZIP_PROG$ac_delim
25197 MAKEINFO!$MAKEINFO$ac_delim
25198 LIBSOUND!$LIBSOUND$ac_delim
25199 PKG_CONFIG!$PKG_CONFIG$ac_delim
25200 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
25201 ALSA_LIBS!$ALSA_LIBS$ac_delim
25202 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
25203 SET_MAKE!$SET_MAKE$ac_delim
25204 XMKMF!$XMKMF$ac_delim
25205 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
25206 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
25207 RSVG_LIBS!$RSVG_LIBS$ac_delim
25208 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
25209 GTK_LIBS!$GTK_LIBS$ac_delim
25210 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
25211 DBUS_LIBS!$DBUS_LIBS$ac_delim
25212 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
25213 XFT_LIBS!$XFT_LIBS$ac_delim
25214 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
25215 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
25216 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
25217 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
25218 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
25219 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
25220 M17N_FLT_CFLAGS!$M17N_FLT_CFLAGS$ac_delim
25221 M17N_FLT_LIBS!$M17N_FLT_LIBS$ac_delim
25222 ALLOCA!$ALLOCA$ac_delim
25223 liblockfile!$liblockfile$ac_delim
25224 LIBOBJS!$LIBOBJS$ac_delim
25225 NEED_SETGID!$NEED_SETGID$ac_delim
25226 KMEM_GROUP!$KMEM_GROUP$ac_delim
25227 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
25228 GETOPT_H!$GETOPT_H$ac_delim
25229 GETOPTOBJS!$GETOPTOBJS$ac_delim
25230 version!$version$ac_delim
25233 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25235 elif $ac_last_try; then
25236 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25237 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25238 { (exit 1); exit 1; }; }
25240 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
25244 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25245 if test -n "$ac_eof"; then
25246 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
25247 ac_eof
=`expr $ac_eof + 1`
25250 cat >>$CONFIG_STATUS <<_ACEOF
25251 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25252 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25255 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25256 s/^/s,@/; s/!/@,|#_!!_#|/
25259 s/'"$ac_delim"'$/,g/; t
25261 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25262 ' >>$CONFIG_STATUS <conf$
$subs.
sed
25263 rm -f conf$
$subs.
sed
25264 cat >>$CONFIG_STATUS <<_ACEOF
25270 for ac_last_try
in false false false false false
:; do
25271 cat >conf$
$subs.
sed <<_ACEOF
25272 configuration!$configuration$ac_delim
25273 canonical!$canonical$ac_delim
25274 srcdir!$srcdir$ac_delim
25275 lispdir!$lispdir$ac_delim
25276 locallisppath!$locallisppath$ac_delim
25277 lisppath!$lisppath$ac_delim
25278 x_default_search_path!$x_default_search_path$ac_delim
25279 etcdir!$etcdir$ac_delim
25280 archlibdir!$archlibdir$ac_delim
25281 bitmapdir!$bitmapdir$ac_delim
25282 gamedir!$gamedir$ac_delim
25283 gameuser!$gameuser$ac_delim
25284 c_switch_system!$c_switch_system$ac_delim
25285 c_switch_machine!$c_switch_machine$ac_delim
25286 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
25287 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
25288 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
25289 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
25290 machfile!$machfile$ac_delim
25291 opsysfile!$opsysfile$ac_delim
25292 carbon_appdir!$carbon_appdir$ac_delim
25293 LTLIBOBJS!$LTLIBOBJS$ac_delim
25296 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 22; then
25298 elif $ac_last_try; then
25299 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25300 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25301 { (exit 1); exit 1; }; }
25303 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
25307 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25308 if test -n "$ac_eof"; then
25309 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
25310 ac_eof
=`expr $ac_eof + 1`
25313 cat >>$CONFIG_STATUS <<_ACEOF
25314 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25315 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25318 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25319 s/^/s,@/; s/!/@,|#_!!_#|/
25322 s/'"$ac_delim"'$/,g/; t
25324 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25325 ' >>$CONFIG_STATUS <conf$
$subs.
sed
25326 rm -f conf$
$subs.
sed
25327 cat >>$CONFIG_STATUS <<_ACEOF
25334 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25335 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25336 # trailing colons and then remove the whole line if VPATH becomes empty
25337 # (actually we leave an empty line to preserve line numbers).
25338 if test "x$srcdir" = x.
; then
25339 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
25340 s/:*\$(srcdir):*/:/
25341 s/:*\${srcdir}:*/:/
25343 s/^\([^=]*=[ ]*\):*/\1/
25349 cat >>$CONFIG_STATUS <<\_ACEOF
25350 fi # test -n "$CONFIG_FILES"
25353 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
25356 :[FHLC
]) ac_mode
=$ac_tag; continue;;
25358 case $ac_mode$ac_tag in
25360 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25361 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25362 { (exit 1); exit 1; }; };;
25363 :[FH
]-) ac_tag
=-:-;;
25364 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
25381 -) ac_f
="$tmp/stdin";;
25382 *) # Look for the file first in the build tree, then in the source tree
25383 # (if the path is not absolute). The absolute path cannot be DOS-style,
25384 # because $ac_f cannot contain `:'.
25388 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
25390 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25391 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25392 { (exit 1); exit 1; }; };;
25394 ac_file_inputs
="$ac_file_inputs $ac_f"
25397 # Let's still pretend it is `configure' which instantiates (i.e., don't
25398 # use $as_me), people would be surprised to read:
25399 # /* config.h. Generated by config.status. */
25400 configure_input
="Generated from "`IFS=:
25401 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25402 if test x
"$ac_file" != x-
; then
25403 configure_input
="$ac_file. $configure_input"
25404 { echo "$as_me:$LINENO: creating $ac_file" >&5
25405 echo "$as_me: creating $ac_file" >&6;}
25409 *:-:* |
*:-) cat >"$tmp/stdin";;
25414 ac_dir
=`$as_dirname -- "$ac_file" ||
25415 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25416 X"$ac_file" : 'X\(//\)[^/]' \| \
25417 X"$ac_file" : 'X\(//\)$' \| \
25418 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25420 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25424 /^X\(\/\/\)[^/].*/{
25439 -*) as_dir
=.
/$as_dir;;
25441 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
25445 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25446 *) as_qdir
=$as_dir;;
25448 as_dirs
="'$as_qdir' $as_dirs"
25449 as_dir
=`$as_dirname -- "$as_dir" ||
25450 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25451 X"$as_dir" : 'X\(//\)[^/]' \| \
25452 X"$as_dir" : 'X\(//\)$' \| \
25453 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25455 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25459 /^X\(\/\/\)[^/].*/{
25472 test -d "$as_dir" && break
25474 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
25475 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25476 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25477 { (exit 1); exit 1; }; }; }
25481 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25483 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25484 # A ".." for each directory in $ac_dir_suffix.
25485 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25486 case $ac_top_builddir_sub in
25487 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25488 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
25491 ac_abs_top_builddir
=$ac_pwd
25492 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
25493 # for backward compatibility:
25494 ac_top_builddir
=$ac_top_build_prefix
25497 .
) # We are building in place.
25499 ac_top_srcdir
=$ac_top_builddir_sub
25500 ac_abs_top_srcdir
=$ac_pwd ;;
25501 [\\/]* | ?
:[\\/]* ) # Absolute name.
25502 ac_srcdir
=$srcdir$ac_dir_suffix;
25503 ac_top_srcdir
=$srcdir
25504 ac_abs_top_srcdir
=$srcdir ;;
25505 *) # Relative name.
25506 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
25507 ac_top_srcdir
=$ac_top_build_prefix$srcdir
25508 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
25510 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
25520 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
25521 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
25525 cat >>$CONFIG_STATUS <<\_ACEOF
25526 # If the template does not know about datarootdir, expand it.
25527 # FIXME: This hack should be removed a few years after 2.60.
25528 ac_datarootdir_hack
=; ac_datarootdir_seen
=
25530 case `sed -n '/datarootdir/ {
25539 ' $ac_file_inputs` in
25540 *datarootdir
*) ac_datarootdir_seen
=yes;;
25541 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
25542 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25543 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25545 cat >>$CONFIG_STATUS <<_ACEOF
25546 ac_datarootdir_hack='
25547 s&@datadir@&$datadir&g
25548 s&@docdir@&$docdir&g
25549 s&@infodir@&$infodir&g
25550 s&@localedir@&$localedir&g
25551 s&@mandir@&$mandir&g
25552 s&\\\${datarootdir}&$datarootdir&g' ;;
25556 # Neutralize VPATH when `$srcdir' = `.'.
25557 # Shell code in configure.ac might set extrasub.
25558 # FIXME: do we really want to maintain this feature?
25559 cat >>$CONFIG_STATUS <<_ACEOF
25563 cat >>$CONFIG_STATUS <<\_ACEOF
25565 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
25566 s
&@configure_input@
&$configure_input&;t t
25567 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
25568 s
&@srcdir@
&$ac_srcdir&;t t
25569 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
25570 s
&@top_srcdir@
&$ac_top_srcdir&;t t
25571 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
25572 s
&@builddir@
&$ac_builddir&;t t
25573 s
&@abs_builddir@
&$ac_abs_builddir&;t t
25574 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
25575 s
&@INSTALL@
&$ac_INSTALL&;t t
25576 $ac_datarootdir_hack
25577 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
25579 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25580 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
25581 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
25582 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
25583 which seems to be undefined. Please make sure it is defined." >&5
25584 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
25585 which seems to be undefined. Please make sure it is defined." >&2;}
25589 -) cat "$tmp/out"; rm -f "$tmp/out";;
25590 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25599 # Transform confdefs.h into a sed script `conftest.defines', that
25600 # substitutes the proper values into config.h.in to produce config.h.
25601 rm -f conftest.defines conftest.
tail
25602 # First, append a space to every undef/define line, to ease matching.
25603 echo 's/$/ /' >conftest.defines
25604 # Then, protect against being on the right side of a sed subst, or in
25605 # an unquoted here document, in config.status. If some macros were
25606 # called several times there might be several #defines for the same
25607 # symbol, which is useless. But do not sort them, since the last
25608 # AC_DEFINE must be honored.
25609 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
25610 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25611 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25612 # PARAMS is the parameter list in the macro definition--in most cases, it's
25613 # just an empty string.
25614 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25615 ac_dB
='\\)[ (].*,\\1define\\2'
25623 s/^[ ]*#[ ]*define[ ][ ]*//
25628 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25629 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25630 ' >>conftest.defines
25632 # Remove the space that was appended to ease matching.
25633 # Then replace #undef with comments. This is necessary, for
25634 # example, in the case of _POSIX_SOURCE, which is predefined and required
25635 # on some systems where configure will not decide to define it.
25636 # (The regexp can be short, since the line contains either #define or #undef.)
25638 s,^[ #]*u.*,/* & */,' >>conftest.defines
25640 # Break up conftest.defines:
25641 ac_max_sed_lines
=50
25643 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25644 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25645 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25647 ac_in
='$ac_file_inputs'
25648 ac_out
='"$tmp/out1"'
25649 ac_nxt
='"$tmp/out2"'
25653 # Write a here document:
25654 cat >>$CONFIG_STATUS <<_ACEOF
25655 # First, check the format of the line:
25656 cat >"\$tmp/defines.sed" <<\\CEOF
25657 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25658 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25662 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
25664 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25665 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
25666 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
25667 grep . conftest.
tail >/dev
/null ||
break
25668 rm -f conftest.defines
25669 mv conftest.
tail conftest.defines
25671 rm -f conftest.defines conftest.
tail
25673 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25674 cat >>$CONFIG_STATUS <<\_ACEOF
25675 if test x
"$ac_file" != x-
; then
25676 echo "/* $configure_input */" >"$tmp/config.h"
25677 cat "$ac_result" >>"$tmp/config.h"
25678 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
25679 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25680 echo "$as_me: $ac_file is unchanged" >&6;}
25683 mv "$tmp/config.h" $ac_file
25686 echo "/* $configure_input */"
25692 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25693 echo "$as_me: executing $ac_file commands" >&6;}
25698 case $ac_file$ac_mode in
25701 ### Make the necessary directories, if they don't exist.
25702 for dir
in etc lisp
; do
25703 test -d ${dir} || mkdir
${dir}
25706 # Build src/Makefile from ${srcdir}/src/Makefile.c
25707 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25708 # This must be done after src/config.h is built, since we rely on that file.
25710 # Now get this: Some word that is part of the ${srcdir} directory name
25711 # or the ${configuration} value might, just might, happen to be an
25712 # identifier like `sun4' or `i386' or something, and be predefined by
25713 # the C preprocessor to some helpful value like 1, or maybe the empty
25714 # string. Needless to say consequent macro substitutions are less
25715 # than conducive to the makefile finding the correct directory.
25716 undefs
="`echo $top_srcdir $configuration $canonical |
25717 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
25718 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
25721 echo creating src
/epaths.h
25722 ${MAKE-make} epaths-force
25724 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25725 # `..' to `. .' unless invoked with -traditional
25727 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
25728 CPPFLAGS
="$CPPFLAGS -traditional"
25731 echo creating lib-src
/Makefile
25733 rm -f junk.c junk1.c junk2.c
25734 sed -e '/start of cpp stuff/q' \
25735 < Makefile.c
> junk1.c
25736 sed -e '1,/start of cpp stuff/d'\
25737 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25738 < Makefile.c
> junk.c
25739 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
25740 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25741 cat junk1.c junk2.c
> Makefile.new
25742 rm -f junk.c junk1.c junk2.c
25743 chmod 444 Makefile.new
25744 mv -f Makefile.new Makefile
25747 echo creating src
/Makefile
25749 rm -f junk.c junk1.c junk2.c
25750 sed -e '/start of cpp stuff/q' \
25751 < Makefile.c
> junk1.c
25752 sed -e '1,/start of cpp stuff/d'\
25753 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25754 < Makefile.c
> junk.c
25755 if test -f ${srcdir}/admin
/unidata
/UnicodeData.txt
; then
25756 CPPFLAGS
="$CPPFLAGS -DHAVE_UNIDATA"
25758 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
25759 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25760 cat junk1.c junk2.c
> Makefile.new
25761 rm -f junk.c junk1.c junk2.c
25762 chmod 444 Makefile.new
25763 mv -f Makefile.new Makefile
25766 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
25767 echo creating src
/.gdbinit
25768 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
25771 # This is how we know whether to re-run configure in certain cases.
25772 touch src
/config.stamp
25780 { (exit 0); exit 0; }
25782 chmod +x
$CONFIG_STATUS
25783 ac_clean_files
=$ac_clean_files_save
25786 # configure is writing to config.log, and then calls config.status.
25787 # config.status does its own redirection, appending to config.log.
25788 # Unfortunately, on DOS this fails, as config.log is still kept open
25789 # by configure, so config.status won't be able to write to it; its
25790 # output is simply discarded. So we exec the FD to /dev/null,
25791 # effectively closing config.log, so it can be properly (re)opened and
25792 # appended to by config.status. When coming back to configure, we
25793 # need to make the FD available again.
25794 if test "$no_create" != yes; then
25796 ac_config_status_args
=
25797 test "$silent" = yes &&
25798 ac_config_status_args
="$ac_config_status_args --quiet"
25800 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
25802 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25803 # would make configure fail if this is the last instruction.
25804 $ac_cs_success ||
{ (exit 1); exit 1; }